Change default MaxTxBufferSize in RLC-UM to 10KBytes
authorManuel Requena <manuel.requena@cttc.es>
Thu, 09 May 2013 02:08:33 +0200
changeset 10065 f602bfca0399
parent 10064 e654db11b4ae
child 10066 45eb94d3e4ee
Change default MaxTxBufferSize in RLC-UM to 10KBytes
src/lte/examples/lena-dual-stripe.cc
--- a/src/lte/examples/lena-dual-stripe.cc	Thu May 09 02:07:43 2013 +0200
+++ b/src/lte/examples/lena-dual-stripe.cc	Thu May 09 02:08:33 2013 +0200
@@ -344,9 +344,10 @@
   // change some default attributes so that they are reasonable for
   // this scenario, but do this before processing command line
   // arguments, so that the user is allowed to override these settings 
-  Config::SetDefault ("ns3::UdpClient::Interval", TimeValue (MilliSeconds(1)));
-  Config::SetDefault ("ns3::UdpClient::MaxPackets", UintegerValue(1000000));
-  
+  Config::SetDefault ("ns3::UdpClient::Interval", TimeValue (MilliSeconds (1)));
+  Config::SetDefault ("ns3::UdpClient::MaxPackets", UintegerValue (1000000));
+  Config::SetDefault ("ns3::LteRlcUm::MaxTxBufferSize", UintegerValue (10 * 1024));
+
   CommandLine cmd;
   cmd.Parse (argc, argv);
   ConfigStore inputConfig;
@@ -555,8 +556,8 @@
   NodeContainer ues;
   Ipv4StaticRoutingHelper ipv4RoutingHelper;
   Ipv4InterfaceContainer ueIpIfaces;
-   Ptr<Node> remoteHost;
-   NetDeviceContainer ueDevs;
+  Ptr<Node> remoteHost;
+  NetDeviceContainer ueDevs;
   if (epc)
     {
       NS_LOG_LOGIC ("setting up internet and remote host");
@@ -616,12 +617,11 @@
       lteHelper->Attach (*ueDevIt, *enbDevIt);
     }
 
-    
 
   if (epc)
     {
       NS_LOG_LOGIC ("setting up applications");
-    
+
       // Install and start applications on UEs and remote host
       uint16_t dlPort = 10000;
       uint16_t ulPort = 20000;
@@ -633,7 +633,6 @@
       startTimeSeconds->SetAttribute ("Min", DoubleValue (0));
       startTimeSeconds->SetAttribute ("Max", DoubleValue (0.010));
 
-     
       for (uint32_t u = 0; u < ues.GetN (); ++u)
         {
           Ptr<Node> ue = ues.Get (u);
@@ -650,7 +649,7 @@
               ApplicationContainer serverApps;
 
               if (useUdp)
-                {              
+                {
                   if (epcDl)
                     {
                       NS_LOG_LOGIC ("installing UDP DL app for UE " << u);
@@ -661,15 +660,15 @@
                       serverApps.Add (dlPacketSinkHelper.Install (ue));
                     }
                   if (epcUl)
-                    {      
+                    {
                       NS_LOG_LOGIC ("installing UDP UL app for UE " << u);
                       UdpClientHelper ulClientHelper (remoteHostAddr, ulPort);
                       clientApps.Add (ulClientHelper.Install (ue));
                       PacketSinkHelper ulPacketSinkHelper ("ns3::UdpSocketFactory", 
                                                            InetSocketAddress (Ipv4Address::GetAny (), ulPort));
                       serverApps.Add (ulPacketSinkHelper.Install (remoteHost));  
-                    }            
-                }                    
+                    }
+                }
               else // use TCP
                 {
                   if (epcDl)
@@ -762,8 +761,6 @@
       remHelper->SetAttribute ("Z", DoubleValue (1.5));
       remHelper->Install ();
       // simulation will stop right after the REM has been generated
-
-
     }
   else
     {