TapBridge in LTE-Network

102 views
Skip to first unread message

Mustapha Aref

unread,
Mar 4, 2017, 2:48:25 PM3/4/17
to ns-3-users
Hello guys,

For my thesis work i'm using ns3 (release 26). After going through the ns3 tutorial, i'm trying to build a simple realtime LTE network as illustrate below:


lxc-left               lxc-right
  eth0                                                                                                         eth0   
1.0.1.2                                                                                                     1.0.2.2
TapLeft                                                                                                    TapRight
     |               1.0.1.0                      10.0.0.6                          1.0.2.0                |
[NodeLeft]<----csma----->[PGW]         [eNB]                UE<------csma-------->[NodeRight]
                                1.0.1.1/7.0.0.1                 7.0.0.2/1.0.2.1            

- Running the simulation in optimized mode as recommended. 
-Add the default gw to the left (route add default gw 1.0.1.1 eth0) and the right lxc (route add default gw 1.0.2.1 eth0)
 
I'm able to ping the PGW(7.0.0.1) from the left container and the UE from the right container.
The problem is to get the packet from the left host to the right one and vice versa throught the LTE-network. 
I've added the corresponding routes to PGW and UE as following:

CsmaHelper csma;
  csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate("1000Gb/s")));
  csma.SetDeviceAttribute ("Mtu", UintegerValue (1500));
  csma.SetChannelAttribute ("Delay", TimeValue (Seconds (0.001)));
  NetDeviceContainer DevicesLeft = csma.Install (NodeContainer(pgw,ghLeft.Get(0)));
  NetDeviceContainer DevicesRight = csma.Install (NodeContainer(ueNodes.Get (0),ghRight.Get(0)));

  Ipv4AddressHelper ipv4ghNetLeft,ipv4ghNetRight;
  ipv4ghNetLeft.SetBase ("1.0.1.0", "255.255.255.0");
  Ipv4InterfaceContainer IpIfacesLeft = ipv4ghNetLeft.Assign(DevicesLeft.Get(0));
  ipv4ghNetRight.SetBase ("1.0.2.0", "255.255.255.0");
  Ipv4InterfaceContainer IpIfacesRight = ipv4ghNetRight.Assign(DevicesRight.Get(0));

  Ipv4StaticRoutingHelper ipv4RoutingHelper;

  Ptr<Ipv4StaticRouting> pgwStaticRouting = ipv4RoutingHelper.GetStaticRouting (pgw->GetObject<Ipv4> ());
  pgwStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.2.0"),Ipv4Mask("255.255.255.0"),Ipv4Address("7.0.0.2"),1);
  pgwStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.1.0"),Ipv4Mask("255.255.255.0"),3);

  Ptr<Ipv4StaticRouting> ueStaticRouting = ipv4RoutingHelper.GetStaticRouting (ueNodes.Get (0)->GetObject<Ipv4> ());
  ueStaticRouting->SetDefaultRoute (epcHelper->GetUeDefaultGatewayAddress (), 1);
  ueStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.1.0"),Ipv4Mask("255.255.255.0"),Ipv4Address("7.0.0.1"),1);
  ueStaticRouting->AddNetworkRouteTo(Ipv4Address("1.0.2.0"),Ipv4Mask("255.255.255.0"),2);


Is this the right way to do it? 
After running the simu. the sinr in DL and the sinrLinear in UP are too high but this could be do to the fact that the eNB and UE are placed in the same position but  the RLC and PDCP trace files are empty! Shouldn't be some entries there representing packet exchange during the initialization of eNB-UE connection? Am i missing something in the LTE configuration?

I'm desperately need your help guys :(
Any suggestion, tip or working code examples for this scenario are appreciated .

Many thanks in advance.
lxc-left.conf
lxc-right.conf
tap-lte-realtime-testbed-v01.cc

M.A

unread,
Mar 6, 2017, 3:19:31 PM3/6/17
to ns-3-users
Hey, 

any idea to solve this problem?

Vadim Hapanchak

unread,
May 6, 2021, 1:13:51 PM5/6/21
to ns-3-users
I have exactly the same issue.. 
Did you find any solution ?? 

понедельник, 6 марта 2017 г. в 20:19:31 UTC, Musti Aref:
Reply all
Reply to author
Forward
0 new messages