wiki:Tutorials/4G5G/InterDigital-5G

Version 8 (modified by seskar, 4 years ago) ( diff )

Getting Started with InterDigital 5G NR Performance System

Description

In this tutorial we'll demonstrate how to use InterDigital 5G-NR Performance platform. The setup for the experiment is shown in Figure 1.

InterDigital 5G NR routing

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 srv3-lg1.sb1.cosmos-lab.org and srv4-lg1.sb1.cosmos-lab.org). The first server (srv3-lg1) 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 relies on IP routing to ensure that the traffic flow from the client follows the dashed red line in the figure. To intended route is devided in three segment (IP subnets):

  • gNodeB Subnet (192.168.1.X) - connecting gateway to the gNodeB device
  • UE Subnet (192.168.2.X) - connects client node to the UE device
  • 5G Subnet (192.168.3.X) - connects UE to the gNodeB over the 5G link

This setup requires configuring the routing tables on all 4 devices to ensure appropriate traffic flow (in addition to a common Data 1 Ethernet that is shared between all 4 units, the server nodes also have a second direct Ethernet connection through the Control network that is used for node management and results collection).

Prerequisites

In order to access the test bed, create a reservation and have it approved by the reservation service. Access to the resources are granted only after the reservation is confirmed. Please follow the process shown on the COSMOS work flow page to get started.

Tutorial Setup

Follow the steps below to gain access to the sandbox 1 console and set up nodes with appropriate images.

  1. If you don't have one already, sign up for a COSMOS account
  2. Create a resource reservation on sandbox 1
  3. Prepare your computer (i.e. laptop) for 5G-NR status page access: either prepare ssh tunnel thought the sandbox 1 console to gNodeB server node, port 3005 (i.e. map localhost:8080 to srv3-lg1.sb1.cosmos-lab.org:3005) or follow the instructions to establish a VPN tunnel to the COSMOS sandbox 1. This will be used by the browser to connect to a web server running on the server nodes.
  4. Login into sandbox 1 console (console.sb1.cosmos-lab.org) with two SSH sessions. The first session will be used for access to gNodeB while the second will be dedicated to handling UE.
  5. Load the images on the computing nodes: in each of the two session, start the omf image loading commands:
SSH session 1 for gNodeB SSH Session 2 for UE
omf load -t srv3-lg1 -i ID-5G-gNB.ndz -r 50 omf load -t srv4-lg1 -i ID-5G-UE.ndz -r 50
  1. Turn the server nodes and NR platform devices on:
    omf tell -a on -t srv3-lg1,srv4-lg1,rfdev2-1,rfdev2-2
    

Experiment Execution

Configure Routing on the two compute nodes

  • Execute NR gNB setup script on srv3-lg1
    userid@console:~$ ssh root@srv3-lg1
    root@srv3-lg1:~$ ./setup_gNodeB.sh
    ---------------
    Make sure to start the gNodeB modem on the MPU by logging in with:
    sshpass -p root ssh -o StrictHostKeyChecking=no root@192.168.1.2
    and running:
    root@NR-SW-MPU-gNB:~# ./start_all.sh
    ----------------
    net.ipv4.ip_no_pmtu_disc = 1
    root@srv3-lg1:~#
    
  • Execute NR UE setup script on srv4-lg1.
    userid@console:~$ ssh root@srv4-lg1
    root@srv4-lg1:~$ ./setup_UE.sh
    

The two scripts setup routing to push the test traffic from the server that is attached to UE through the 5G-NR link.

Routing Scripts

The two scripts are shown in the table below:

setup_gNodeB.sh

#!/bin/bash
echo "---------------"
echo "Make sure to start the gNodeB modem on the MPU by logging in with:"
echo "sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.1.2"
echo "and running:"
echo "root@NR-SW-MPU-gNB:~# ./start_all.sh"
echo "----------------"
# Turn on routing
echo 1 > /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_no_pmtu_disc=1
# Add rotuing for the two subnets "behind" the gNodeB
ip route add 192.168.2.0/24 via 192.168.1.2
ip route add 192.168.3.0/24 via 192.168.1.2
# and configure NAT for them
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT

setup_UE.sh

#!/bin/bash                                                                                                    
echo "---------------"
echo "Make sure to start the UE modem on the MPU by logging in with:"
echo "sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.2.1"
echo "and running:"
echo "root@NR-SW-MPU-UE:~# ./start_all.sh"
echo "----------------"
# Turn on routing                                                                                              
echo 1 > /proc/sys/net/ipv4/ip_forward
sysctl -w net.ipv4.ip_no_pmtu_disc=1
# Route all internal 5G traffic through the UE  MPU                                                            
ip route add 192.168.3.0/24 via 192.168.2.1 dev eth0
ip route add 192.168.1.0/24 via 192.168.2.1 dev eth0
# Testbed bound traffic stil goes over the control subnet                                                      
ip r add 10/8 dev eth1
# Everything else goes over the 5G link                                                                        
# (remove default over control network)                                                                        
ip r del default dev eth1
ip r add default via 192.168.2.1 dev eth0

Start services on the two MPUs

  1. ssh into gNodeB MPU at 192.168.1.2 with username "root" and password "root" and execute the setup script "start_all.sh":
    root@srv3-lg1:~# ssh root@192.168.1.2
    root@192.168.1.2's password: 
    root@NR-SW-MPU-gNB:~# ./start_all.sh
    root@NR-SW-MPU-gNB:~# metal: info:      metal_uio_dev_open: No IRQ for device 3ed80000.shm.
    
    root@NR-SW-MPU-gNB:~# exit
    logout
    Connection to 192.168.1.2 closed.
    root@srv3-lg1:~# 
    
  2. ssh into UE MPU at 192.168.2.1 with username "root" and password "root: and execute the setup script "start_all.sh":
    root@srv4-lg1:~# ssh 192.168.2.1
    root@192.168.2.1's password: 
    root@NR-SW-MPU-UE:~# ./start_all.sh 
    root@NR-SW-MPU-UE:~# metal: info:      metal_uio_dev_open: No IRQ for device 3ed80000.shm.
    
    root@NR-SW-MPU-UE:~# exit
    logout
    Connection to 192.168.2.1 closed.
    root@srv4-lg1:~# 
    

The two scripts will start the appropriate firmware on both NR Platform devices. The NR Platform will automatically “connect” a link between the gNB and UR. This can be verified via the NR GUI.

Check the Routing

Use mtr utility to confirm that traffic is going through the NR link:

root@srv4-lg1:~# mtr -c 1 -r 8.8.8.8
Start: Sat Feb 29 14:32:31 2020
HOST: srv4-lg1.sb1.cosmos-lab.org Loss%   Snt   Last   Avg  Best  Wrst StDev
  1.|-- 192.168.2.1                0.0%     1    0.2   0.2   0.2   0.2   0.0
  2.|-- 192.168.3.1                0.0%     1    1.1   1.1   1.1   1.1   0.0
  3.|-- 192.168.1.1                0.0%     1    1.3   1.3   1.3   1.3   0.0
  4.|-- ???                       100.0     1    0.0   0.0   0.0   0.0   0.0
  5.|-- vlan-102-ar01-winlab-fsci  0.0%     1    2.2   2.2   2.2   2.2   0.0
  6.|-- xe-1-0-6-2000-dr10-lor-cd  0.0%     1    1.8   1.8   1.8   1.8   0.0
  7.|-- ae14-2000-cr10-fsci-nbp.r  0.0%     1    1.8   1.8   1.8   1.8   0.0
  8.|-- ae17-2000-cr10-hill-nbp.r  0.0%     1    2.3   2.3   2.3   2.3   0.0
  9.|-- ae16-2000-cr02-halsey-nwk  0.0%     1    2.7   2.7   2.7   2.7   0.0
 10.|-- ae17-0-er10-halsey-ext.ru  0.0%     1    2.8   2.8   2.8   2.8   0.0
 11.|-- gateway-pni.google.com     0.0%     1    4.0   4.0   4.0   4.0   0.0
 12.|-- 108.170.248.65             0.0%     1    3.0   3.0   3.0   3.0   0.0
 13.|-- ???                       100.0     1    0.0   0.0   0.0   0.0   0.0
 14.|-- dns.google                 0.0%     1    2.9   2.9   2.9   2.9   0.0
root@srv4-lg1:~# 

GUI Setup & Instructions

Note that the GUI web server has already been started during Linux startup. Open the browser and point it at http://localhost:8080 (if using ssh tunneling) or at http://srv3-lg1.sb1.cosmos-lab.org:3005 if using VPN.

Sending iperf data between the gNB and UE

The following commands are provided as an example of how to send Downlink iperf data traffic on the NR 28GHz mmW OTA link via the compute machines that are attached to the gNB and UE platforms

  • In the UE console session start the iperf server
    iperf3 -s -i 1
    
  • In the gNodeB session strat the iperf client
    iperf3 -c 192.168.2.2 -i 1 -u -b 20M -l 1472 -t 3
    

The results should be (the actual link performance will also depend on the physical antenna alignment):

gNodeB (srv3-lg1)

UE (srv4-lg1)

root@srv3-lg1:/# iperf3 -c 192.168.2.2 -i 1 -u -b 20M -l 1472 -t 3
Connecting to host 192.168.2.2, port 5201
[  4] local 192.168.1.1 port 57961 connected to 192.168.2.2 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.15 MBytes  18.0 Mbits/sec  1532  
[  4]   1.00-2.00   sec  2.39 MBytes  20.0 Mbits/sec  1699  
[  4]   2.00-3.00   sec  2.39 MBytes  20.0 Mbits/sec  1699  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-3.00   sec  6.92 MBytes  19.4 Mbits/sec  0.808 ms  37/4930 (0.75%)  
[  4] Sent 4930 datagrams

iperf Done.
root@srv3-lg1:/# 
root@srv4-lg1:~# iperf3 -s -i 1
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.1, port 33190
[  5] local 192.168.2.2 port 5201 connected to 192.168.1.1 port 57961
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec  1.42 MBytes  11.9 Mbits/sec  6.137 ms  12/1025 (1.2%)  
[  5]   1.00-2.00   sec  1.66 MBytes  13.9 Mbits/sec  6.106 ms  11/1190 (0.92%)  
[  5]   2.00-3.00   sec  1.65 MBytes  13.9 Mbits/sec  5.470 ms  14/1191 (1.2%)  
[  5]   3.00-4.00   sec  1.72 MBytes  14.4 Mbits/sec  1.280 ms  0/1225 (0%)  
[  5]   4.00-4.24   sec   430 KBytes  14.4 Mbits/sec  0.808 ms  0/299 (0%)  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  5]   0.00-4.24   sec  6.92 MBytes  13.7 Mbits/sec  0.808 ms  37/4930 (0.75%)  
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Analyze the NR link performance via the NR GUI

NR GUI

Shutting Down Resources

Turn off the server nodes and NR platform devices:

omf tell -a offh -t srv3-lg1,srv4-lg1,rfdev2-1,rfdev2-2

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.