Changes between Version 25 and Version 26 of Tutorials/4G5G/Inter Digital-5G
- Timestamp:
- Sep 22, 2023, 5:18:28 PM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/4G5G/Inter Digital-5G
v25 v26 10 10 [[Image(InterDigital-5G-NR-Tut.png, 800px)]] 11 11 12 As can be seen from the figure, the setup consists of one gNodeB and one UE unit and the two sandbox 1 servers (in this case srv1-in1.sb1.cosmos-lab.org and srv1-in2.sb1.cosmos-lab.org). The first server (srv1-in1) acts as a gateway while the second one is acting as a UE computing platform (to which a UE modem is attached). The 5G Platform devices and the nodes are connected to the sandbox 1 data 1 network and rel ies on IP routing to ensure that the traffic flow from the client follows the dashed red line in the figure. The intended route is divided into three segment(IP subnets):12 As can be seen from the figure, the setup consists of one gNodeB and one UE unit and the two sandbox 1 servers (in this case srv1-in1.sb1.cosmos-lab.org and srv1-in2.sb1.cosmos-lab.org). The first server (srv1-in1) acts as a gateway while the second one is acting as a UE computing platform (to which a UE modem is attached). The 5G Platform devices and the nodes are connected to the sandbox 1 data 1 network and rely on IP routing to ensure that the traffic flow from the client follows the dashed red line in the figure. The intended route is divided into three segments (IP subnets): 13 13 * gNodeB Subnet (192.168.1.X) - connecting gateway to the gNodeB device 14 14 * UE Subnet (192.168.2.X) - connects client node to the UE device … … 17 17 18 18 == Prerequisites == 19 In order to access the test bed, create a reservation and have it approved by the reservation service. Access to the resources aregranted only after the reservation is confirmed. Please follow the process shown on [wiki:CosmosOverview/Workflow the COSMOS work flow page] to get started.19 In order to access the test bed, create a reservation and have it approved by the reservation service. Access to the resources is granted only after the reservation is confirmed. Please follow the process shown on [wiki:CosmosOverview/Workflow the COSMOS work flow page] to get started. 20 20 21 21 == Tutorial Setup == … … 35 35 1. Turn the server nodes and NR platform devices on: 36 36 {{{#!shell-session 37 omf tell -a on -t srv1-in1,srv1-in2,rfdev2- 1,rfdev2-237 omf tell -a on -t srv1-in1,srv1-in2,rfdev2-in1,rfdev2-in2 38 38 }}} 39 39 … … 87 87 ip route add 192.168.3.0/24 via 192.168.1.2 88 88 # as well as for the measurements to come back from the UE over the wire 89 ip route add 192.168.2.1 via 10. 113.1.4 dev eth189 ip route add 192.168.2.1 via 10.37.1.4 dev eth1 90 90 # and configure NAT for them 91 91 iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE … … 135 135 logout 136 136 Connection to 192.168.1.2 closed. 137 root@srv 3-lg1:~#137 root@srv1-in1:~# 138 138 }}} 139 139 1. ssh into UE MPU at 192.168.2.1 with username "root" and password "root: and execute the setup script "start_all.sh": 140 140 {{{#!shell-session 141 root@srv 4-lg1:~# sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.2.1141 root@srv1-in2:~# sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.2.1 142 142 root@NR-SW-MPU-UE:~# ./start_all.sh 143 143 root@NR-SW-MPU-UE:~# metal: info: metal_uio_dev_open: No IRQ for device 3ed80000.shm. … … 146 146 logout 147 147 Connection to 192.168.2.1 closed. 148 root@srv 4-lg1:~#148 root@srv1-in2:~# 149 149 }}} 150 150 … … 155 155 Use '''mtr''' utility to confirm that traffic is going through the NR link: 156 156 {{{#!shell-session 157 root@srv 4-lg1:~# mtr -c 1 -r 8.8.8.8158 Start: Sat Feb 29 14:32:31 2020159 HOST: srv 4-lg1.sb1.cosmos-lab.org Loss% Snt Last Avg Best Wrst StDev157 root@srv1-in2:~# mtr -c 1 -r 8.8.8.8 158 Start: Fri Sep 22 13:14:06 2023 159 HOST: srv1-in2.sb1.cosmos-lab.org Loss% Snt Last Avg Best Wrst StDev 160 160 1.|-- 192.168.2.1 0.0% 1 0.2 0.2 0.2 0.2 0.0 161 161 2.|-- 192.168.3.1 0.0% 1 1.1 1.1 1.1 1.1 0.0 162 3.|-- 192.168.1.1 0.0% 1 1. 3 1.3 1.3 1.30.0162 3.|-- 192.168.1.1 0.0% 1 1.2 1.2 1.2 1.2 0.0 163 163 4.|-- ??? 100.0 1 0.0 0.0 0.0 0.0 0.0 164 5.|-- vlan-102-ar01-winlab-fsci 0.0% 1 2.2 2.2 2.2 2.20.0165 6.|-- xe-1-0-6-2000-dr10-lor-cd 0.0% 1 1.8 1.8 1.8 1.80.0166 7.|-- ae14-2000-cr10-fsci-nbp.r 0.0% 1 1.8 1.8 1.8 1.80.0167 8.|-- ae17-2000-cr10-hill-nbp.r 0.0% 1 2.3 2.3 2.3 2.30.0168 9.|-- ae16-2000-cr02-halsey-nwk 0.0% 1 2.7 2.7 2.7 2.70.0169 10.|-- ae17-0-er10-halsey-ext.ru 0.0% 1 2.8 2.8 2.8 2.80.0170 11.|-- gateway-pni.google.com 0.0% 1 4.0 4.0 4.0 4.0 0.0171 12.|-- 1 08.170.248.65 0.0% 1 3.0 3.0 3.0 3.00.0172 13.|-- ??? 100.0 1 0.0 0.0 0.0 0.00.0173 14.|-- dns.google 0.0% 1 2. 9 2.9 2.9 2.90.0174 root@srv 4-lg1:~#164 5.|-- ??? 100.0 1 0.0 0.0 0.0 0.0 0.0 165 6.|-- vlan-102-ar01-winlab-fsci 0.0% 1 1.9 1.9 1.9 1.9 0.0 166 7.|-- 172.29.50.14 0.0% 1 2.1 2.1 2.1 2.1 0.0 167 8.|-- 172.29.6.25 0.0% 1 1.8 1.8 1.8 1.8 0.0 168 9.|-- 172.29.6.58 0.0% 1 3.2 3.2 3.2 3.2 0.0 169 10.|-- 172.29.6.96 0.0% 1 2.7 2.7 2.7 2.7 0.0 170 11.|-- ??? 100.0 1 0.0 0.0 0.0 0.0 0.0 171 12.|-- 142.251.249.125 0.0% 1 3.6 3.6 3.6 3.6 0.0 172 13.|-- 216.239.40.167 0.0% 1 2.7 2.7 2.7 2.7 0.0 173 14.|-- dns.google 0.0% 1 2.8 2.8 2.8 2.8 0.0 174 root@srv1-in2:~# 175 175 }}} 176 176 … … 242 242 {{{#!td align=left valign=top 243 243 {{{#!shell-session 244 root@srv 3-lg1:/# iperf3 -c 192.168.2.2 -i 1 -u -b 20M -l 1472 -t 3244 root@srv1-in1:~# iperf3 -c 192.168.2.2 -i 1 -u -b 20M -l 1472 -t 3 245 245 Connecting to host 192.168.2.2, port 5201 246 [ 4] local 192.168.1.1 port 57961connected to 192.168.2.2 port 5201246 [ 4] local 192.168.1.1 port 41249 connected to 192.168.2.2 port 5201 247 247 [ ID] Interval Transfer Bandwidth Total Datagrams 248 [ 4] 0.00-1.00 sec 2.15 MBytes 18.0 Mbits/sec 1532 249 [ 4] 1.00-2.00 sec 2.3 9 MBytes 20.0 Mbits/sec 1699250 [ 4] 2.00-3.00 sec 2.39 MBytes 20.0 Mbits/sec 1699 248 [ 4] 0.00-1.00 sec 2.15 MBytes 18.0 Mbits/sec 1532 249 [ 4] 1.00-2.00 sec 2.38 MBytes 20.0 Mbits/sec 1698 250 [ 4] 2.00-3.00 sec 2.39 MBytes 20.0 Mbits/sec 1699 251 251 - - - - - - - - - - - - - - - - - - - - - - - - - 252 252 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams 253 [ 4] 0.00-3.00 sec 6.92 MBytes 19. 4 Mbits/sec 0.808 ms 37/4930 (0.75%)254 [ 4] Sent 49 30datagrams253 [ 4] 0.00-3.00 sec 6.92 MBytes 19.3 Mbits/sec 0.141 ms 69/4929 (1.4%) 254 [ 4] Sent 4929 datagrams 255 255 256 256 iperf Done. 257 root@srv 3-lg1:/#257 root@srv1-in1:~# 258 258 }}} 259 259 }}} … … 264 264 Server listening on 5201 265 265 ----------------------------------------------------------- 266 Accepted connection from 192.168.1.1, port 33190267 [ 5] local 192.168.2.2 port 5201 connected to 192.168.1.1 port 57961266 Accepted connection from 192.168.1.1, port 55250 267 [ 5] local 192.168.2.2 port 5201 connected to 192.168.1.1 port 41249 268 268 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams 269 [ 5] 0.00-1.00 sec 1.42 MBytes 11.9 Mbits/sec 6.137 ms 12/1025 (1.2%) 270 [ 5] 1.00-2.00 sec 1.66 MBytes 13.9 Mbits/sec 6.106 ms 11/1190 (0.92%) 271 [ 5] 2.00-3.00 sec 1.65 MBytes 13.9 Mbits/sec 5.470 ms 14/1191 (1.2%) 272 [ 5] 3.00-4.00 sec 1.72 MBytes 14.4 Mbits/sec 1.280 ms 0/1225 (0%) 273 [ 5] 4.00-4.24 sec 430 KBytes 14.4 Mbits/sec 0.808 ms 0/299 (0%) 269 [ 5] 0.00-1.00 sec 2.12 MBytes 17.7 Mbits/sec 0.130 ms 25/1532 (1.6%) 270 [ 5] 1.00-2.00 sec 2.35 MBytes 19.7 Mbits/sec 0.142 ms 25/1698 (1.5%) 271 [ 5] 2.00-3.00 sec 2.36 MBytes 19.8 Mbits/sec 0.141 ms 19/1699 (1.1%) 272 [ 5] 3.00-3.04 sec 0.00 Bytes 0.00 bits/sec 0.141 ms 0/0 (-nan%) 274 273 - - - - - - - - - - - - - - - - - - - - - - - - - 275 274 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams 276 [ 5] 0.00- 4.24 sec 6.92 MBytes 13.7 Mbits/sec 0.808 ms 37/4930 (0.75%)275 [ 5] 0.00-3.04 sec 6.92 MBytes 19.1 Mbits/sec 0.141 ms 69/4929 (1.4%) 277 276 ----------------------------------------------------------- 278 277 Server listening on 5201 … … 291 290 Turn off the server nodes and NR platform devices: 292 291 {{{#!shell-session 293 omf tell -a offh -t srv1-in1,srv1-in2,rfdev2- 1,rfdev2-2292 omf tell -a offh -t srv1-in1,srv1-in2,rfdev2-in1,rfdev2-in2 294 293 }}} 295 294 … … 298 297 If you modify software on any of the server nodes save the image by the [omf save image commands] but don't forget to first prepare the node by executing (this is the example for srv3-lg1 node): 299 298 {{{#!shell-session 300 root@srv 3-lg1:~# ./prepare.sh299 root@srv1-in1:~# ./prepare.sh 301 300 }}} 302 301 This script will “clean” and “dump” old log files and any other unnecessary files that do not need to be saved as part of the image, thereby reducing the size of the saved image. 303 302 At the end of this script, the node will shutdown (it might block your ssh window forcing you to open another one); once back on the console, you can save that node disk image with 304 303 {{{#!shell-session 305 username@console:~# omf save -n srv 3-lg1.sb1.cosmos-lab.org304 username@console:~# omf save -n srv1-in1.sb1.cosmos-lab.org 306 305 }}} 307 306 (please note the -n option and the FQDN for the node both of which are mandatory for successful saving operation).