Changes between Version 5 and Version 6 of Tutorials/4G5G/Inter Digital-5G


Ignore:
Timestamp:
Feb 28, 2020, 10:00:56 PM (4 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/4G5G/Inter Digital-5G

    v5 v6  
    1010The setup for experimenting with the InterDigital 5G-NR mmWave platform is shown in Figure 1.
    1111
    12 [[Image(InterDigital-5G-NR-Tut.png)]]
     12[[Image(InterDigital-5G-NR-Tut.png, 800px)]]
    1313
    14 -Two nodes for controling gNodeB and UE
    15 -Three subnets as shown
    16 -routing
     14TODDO Experimetn Description:
     15 * gNodeB and UE
     16 * Two nodes for controling them
     17 * Three subnets as shown
     18 * routing
     19 
    1720Follow the steps below to gain access to the [wiki:/hardware/Domains/sb1 sandbox 1 console] and set up nodes with appropriate images.
    1821 1. If you don't have one already, sign up for a [https://www.cosmos-lab.org/portal-2/ COSMOS account]
     
    2326||  SSH ession 1 for gNodeB                        ||  SSH Session 2 for UE                   ||
    2427|| {{{omf load -t srv3-lg1 -i ID-5G-gNB.ndz }}} || {{{omf load -t srv4-lg1 -i ID-5G-UE.ndz}}} ||
    25  1. Turn the server nodes and !InterDigital units on:
     28 1. Turn the server nodes and NR platform devices on:
    2629{{{
    2730omf tell -a on -t srv3-lg1,srv4-lg1,rfdev2-1,rfdev2-2
    2831}}}
     32   
     33== Execution ==
    2934
    30 == Execution ==
    3135=== Configure Routing on the two compute nodes ===
    3236
     
    4347}}}
    4448
    45 The NR Platform will automatically “connect” a link between the gNB and UR.  This can be verified via the NR GUI
     49The two scripts will start the appropriate firmware on both NR Platform devices and setup routing to push the test traffic from the server that is attached to UE through the 5G-NR link. The NR Platform will automatically “connect” a link between the gNB and UR. This can be verified via the NR GUI
     50
     51The two scripts are shown in the table below:
     52
     53{{{#!td align=center
     54setup_gNodeB.sh
     55}}}
     56|---------------
     57{{{#!td
     58{{{
     59#!/bin/bash
     60# Start the gNodeB on the MPU
     61sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.1.2 "sh /home/root/start_all.sh &"
     62# Turn on routing
     63echo 1 > /proc/sys/net/ipv4/ip_forward
     64sysctl -w net.ipv4.ip_no_pmtu_disc=1
     65# Add rotuing for the two subnets "behind" the gNodeB
     66ip route add 192.168.2.0/24 via 192.168.1.2
     67ip route add 192.168.3.0/24 via 192.168.1.2
     68# and configure NAT for them
     69iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
     70iptables -A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
     71iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
     72}}}
     73}}}
     74|---------------
     75{{{#!td align=center
     76setup_UE.sh
     77}}}
     78|---------------
     79{{{#!td
     80{{{
     81#!/bin/bash
     82# Start the UE on the MPU
     83sshpass -p "root" ssh -o StrictHostKeyChecking=no root@192.168.2.1 "sh /home/root/start_all.sh &"
     84# Turn on routing
     85echo 1 > /proc/sys/net/ipv4/ip_forward
     86sysctl -w net.ipv4.ip_no_pmtu_disc=1
     87# Route all internal 5G traffic through MPU
     88ip route add 192.168.1.0/24 via 192.168.2.1 dev eth0
     89# Except for the testbed bound traffic
     90ip r add 10/8 dev eth1
     91# Everything else goes over 5G ink
     92ip r add default via 192.168.1.1
     93}}}
     94}}}
    4695
    4796=== NR GUI Setup & Instructions ===