--- a/src/lte/examples/lena-dual-stripe.cc Tue May 14 13:29:16 2013 +0200
+++ b/src/lte/examples/lena-dual-stripe.cc Thu May 09 02:22:00 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;
@@ -643,7 +643,6 @@
startTimeSeconds->SetAttribute ("Max", DoubleValue (0.110));
}
-
for (uint32_t u = 0; u < ues.GetN (); ++u)
{
Ptr<Node> ue = ues.Get (u);
@@ -660,7 +659,7 @@
ApplicationContainer serverApps;
if (useUdp)
- {
+ {
if (epcDl)
{
NS_LOG_LOGIC ("installing UDP DL app for UE " << u);
@@ -671,15 +670,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)
@@ -772,8 +771,6 @@
remHelper->SetAttribute ("Z", DoubleValue (1.5));
remHelper->Install ();
// simulation will stop right after the REM has been generated
-
-
}
else
{
--- a/src/lte/model/lte-rlc-um.cc Tue May 14 13:29:16 2013 +0200
+++ b/src/lte/model/lte-rlc-um.cc Thu May 09 02:22:00 2013 +0200
@@ -33,7 +33,7 @@
NS_OBJECT_ENSURE_REGISTERED (LteRlcUm);
LteRlcUm::LteRlcUm ()
- : m_maxTxBufferSize (2 * 1024 * 1024),
+ : m_maxTxBufferSize (10 * 1024),
m_txBufferSize (0),
m_sequenceNumber (0),
m_vrUr (0),
@@ -59,7 +59,7 @@
.AddConstructor<LteRlcUm> ()
.AddAttribute ("MaxTxBufferSize",
"Maximum Size of the Transmission Buffer (in Bytes)",
- UintegerValue (2 * 1024 * 1024),
+ UintegerValue (10 * 1024),
MakeUintegerAccessor (&LteRlcUm::m_maxTxBufferSize),
MakeUintegerChecker<uint32_t> ())
;