Flows getting added but not getting deleted

135 views
Skip to first unread message

Sourav Chakraborty

unread,
Apr 13, 2017, 9:32:57 AM4/13/17
to ns-3-users

Hi All,
I am trying to add flows and delete flows in LTE domain......the flow addition is fine, but flows aren't getting deleted. Can you please suggest what mistake I am making. It must be a simple one, but am not able to catch. The full simulation script is attached.

 The calls to the respective functions happen as below--


  double flowAddTime = 0.0;
  while(flowAddTime <= 5.0)
  {
   
    Simulator::Schedule (Seconds(flowAddTime), &AddDataFlows, flowAddTime, 1);
    flowAddTime = flowAddTime + 1.0;
  }



double offloadTime = 7.0;
  while(offloadTime <= simTime)
  {
      //Simulator::Schedule (Seconds(offloadTime), &OffloadFlows, offloadTime, DATA, 1);
    Simulator::Schedule (Seconds(offloadTime), &DelDataFlows, offloadTime, 1);
      offloadTime = offloadTime + 1.0;
  }

:
:



The function definitions are as below --

 ApplicationContainer onOffApp_lte_data;
 ApplicationContainer sinkApps_lte_data;

static BooleanValue isFirstTimeAddData = 0;
static void AddDataFlows(double timeVal, int NumberOfFlows)
{

  // Install and start applications on UEs and remote host

  int u = 0;
   if(ueNodeNumberData > numberOfNodes - 1) {
    NS_LOG_UNCOND("Can't add more Data flows");
    return;
  }
  if (isFirstTimeAddData == 0) {
    ueNodeNumberData = numberOfNodes/2;
    isFirstTimeAddData = 1;
  }
 

  Ptr<UniformRandomVariable> y = CreateObject<UniformRandomVariable> ();
  y->SetAttribute ("Min", DoubleValue (0.0));
  y->SetAttribute ("Max", DoubleValue (0.1));
 
 
    for (u = 0; u < NumberOfFlows; ++u)
    {
      ++dlPort;
      PacketSinkHelper packetSinkHelper_lte ("ns3::UdpSocketFactory", InetSocketAddress (Ipv4Address::GetAny (), dlPort));
      sinkApps_lte_data.Add(packetSinkHelper_lte.Install(ueNodes.Get (ueNodeNumberData + u)));
     
      OnOffHelper VoIPonOffHelper_lte("ns3::UdpSocketFactory", InetSocketAddress(ueIpIface.GetAddress (ueNodeNumberData + u), dlPort)); //OnOffApplication, UDP traffic, Please refer the ns-3 API;     
      VoIPonOffHelper_lte.SetAttribute("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"));
      VoIPonOffHelper_lte.SetAttribute("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]"));
      VoIPonOffHelper_lte.SetAttribute("DataRate", DataRateValue(DataRate("12Mbps"))); //Traffic Bit Rate
      VoIPonOffHelper_lte.SetAttribute("PacketSize", UintegerValue(1300));
      VoIPonOffHelper_lte.SetAttribute("StartTime", TimeValue(Seconds(timeVal + y->GetValue ())));
      onOffApp_lte_data.Add(VoIPonOffHelper_lte.Install(remoteHost));

    }
  NS_LOG_UNCOND("Number of apps in sinkApps_lte_data is " << sinkApps_lte_data.GetN());
  NS_LOG_UNCOND("Number of apps in onOffApp_lte_data is " << onOffApp_lte_data.GetN());
  NS_LOG_UNCOND("ueNodeNumberData value is " << ueNodeNumberData);
  ueNodeNumberData += NumberOfFlows;
  sinkApps_lte_data.Start(Seconds (timeVal));

}




static int ueNodeNumberDataDel = 0;

static BooleanValue isFirstTimeDeleteData = 0;
 ApplicationContainer::Iterator del1;
 ApplicationContainer::Iterator del2;
static void DelDataFlows(double timeVal, int NumberOfFlows)
{

  // Install and start applications on UEs and remote host
 
  Ptr<UniformRandomVariable> z = CreateObject<UniformRandomVariable> ();
  z->SetAttribute ("Min", DoubleValue (0.0));
  z->SetAttribute ("Max", DoubleValue (0.1));

  if (isFirstTimeDeleteData == 0) {
    ueNodeNumberDataDel = numberOfNodes/2;
    isFirstTimeDeleteData = 1;
    del1 = onOffApp_lte_data.Begin();
    del2 = sinkApps_lte_data.Begin();
  }

      NS_LOG_UNCOND("Deleting Data flow");

    //Stopping LTE flows
    for (int count = 1; count <= NumberOfFlows; count++)
    { 
     NS_LOG_UNCOND("Stopping application Source " << (*del1)->GetTypeId() << timeVal);
     (*del1)->SetAttribute("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]"));
    (*del1)->SetStopTime(Seconds(timeVal + z->GetValue()));
     ++del1;
     //onOffApp_lte_data.Stop(Seconds(timeVal));
    }
   
    for (int count1 = 1; count1 <= NumberOfFlows; count1++)
    {
      NS_LOG_UNCOND("Stopping application Sink " << (*del2)->GetTypeId());
      //(*del2)->SetAttribute("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.0]"));
      (*del2)->SetStopTime(Seconds(timeVal + z->GetValue()));
      //++del2;
      //sinkApps_lte_data.Stop(Seconds(timeVal));
    } 

 


}


Regards,
Sourav
temp.cc

Sourav Chakraborty

unread,
Apr 14, 2017, 1:34:29 AM4/14/17
to ns-3-users

Also you can run the script attached using --

sourav@sourav-MacBookPro:~/Desktop/research/ns-allinone-3.26/ns-3.26$ ./waf --run "scratch/temp --numberOfNodes=6"

This will start 3 Data Flows, but after 11s, when --


Simulator::Schedule (Seconds(offloadTime), &DelDataFlows, offloadTime, 1);

is called, the flows are not getting deleted.

Please help me debug this.

Regards,
Sourav

Sourav Chakraborty

unread,
Apr 15, 2017, 8:07:24 PM4/15/17
to ns-3-users

Further to this, I follwed Tommassos's suggestion in --
https://groups.google.com/forum/#!searchin/ns-3-users/OnOffHelper$20stop$20application|sort:relevance/ns-3-users/w3Z5IOz8AFw/-uFO8S-iAQAJ

and defined --
void Application::StopApplicationNow ()
{
  NS_LOG_FUNCTION
(this);
 
if (m_stopEvent.IsRunning ())
   
{
      m_stopEvent
.Cancel ();
   
}
  m_stopEvent
= Simulator::ScheduleNow (&Application::StopApplication, this);
}

in application.cc as a public function and called it from my simulation.

But still flows are not getting stopped.
Please help as this is critical to my simulation.

Regards,
Sourav

Sourav Chakraborty

unread,
Apr 20, 2017, 2:25:25 AM4/20/17
to ns-3-users
Hi All,
Any update on my queries.....I am literally stuck,please help.

Regards,
Sourav

Biljana Bojovic

unread,
Apr 20, 2017, 4:58:37 AM4/20/17
to ns-3-...@googlegroups.com
Hi Sourav,

can you please instead of the code ( because I do not have any time now to run it and analyze line by line), explain by words what exactly you would like to achieve with this code. E.g. can you just explain the following: at what times in simulation you are starting flows and when you are stopping them. If these are random, give an example of a single execution. E.g. I would like to see when you start them and stop them, can you log these events/functions and write down in your next follow up?

E.g. can you explain when is executed this line and what do you expect it to do:

(*del1)->SetStopTime(Seconds(timeVal + z->GetValue()));


Thanks,
Biljana

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Sourav Chakraborty

unread,
Apr 20, 2017, 7:59:03 AM4/20/17
to ns-3-users
Hi Biljana,

What I expect from the code(please check attached file) is this --

From the start of simulation till 5 seconds, there will be flows added every second. So ideally 5 flows should be added in 5s, but in my script with the following commandline 3 flows are started(this is as per my code)--

sourav@sourav-MacBookPro:~/Desktop/research/ns-allinone-3.26/ns-3.26$ ./waf --run "scratch/temp --numberOfNodes=6"

No flows are started after 5 s. From 11s onwards, flows should start getting stopped, one flow getting stopped after every 1 second.

I am capturing statistics of the flows and printing them every second on the console.
What I see is that flows get added successfully after every second till 5 s, but flows DO NOT get deleted from 7s onwards.

Console logs of a sample run is as below --

sourav@sourav-MacBookPro:~/Desktop/research/ns-allinone-3.26/ns-3.26$ ./waf --run "scratch/temp --numberOfNodes=6"
Waf: Entering directory `/home/sourav/Desktop/research/ns-allinone-3.26/ns-3.26/build'
[ 908/1924] Compiling scratch/temp.cc
[1870/1924] Linking build/scratch/temp
Waf: Leaving directory `/home/sourav/Desktop/research/ns-allinone-3.26/ns-3.26/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (6.471s)
IP address of STA 0is 12.0.0.1
IP address of STA 1is 12.0.0.2
IP address of STA 2is 12.0.0.3
IP address of STA 3is 12.0.0.4
IP address of STA 4is 12.0.0.5
IP address of STA 5is 12.0.0.6
IP address of Node 0is 7.0.0.2
IP address of UE 0is 7.0.0.2
IP address of Node 1is 7.0.0.3
IP address of UE 1is 7.0.0.3
IP address of Node 2is 7.0.0.4
IP address of UE 2is 7.0.0.4
IP address of Node 3is 7.0.0.5
IP address of UE 3is 7.0.0.5
IP address of Node 4is 7.0.0.6
IP address of UE 4is 7.0.0.6
IP address of Node 5is 7.0.0.7
IP address of UE 5is 7.0.0.7
AnimationInterface WARNING:Node:1 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:2 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:3 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:4 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:11 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:12 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:1 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:2 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:3 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:4 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:11 Does not have a mobility model. Use SetConstantPosition if it is stationary
AnimationInterface WARNING:Node:12 Does not have a mobility model. Use SetConstantPosition if it is stationary
Number of apps in sinkApps_lte_data is 1
Number of apps in onOffApp_lte_data is 1
ueNodeNumberData value is 3
Number of apps in sinkApps_lte_data is 2
Number of apps in onOffApp_lte_data is 2
ueNodeNumberData value is 4
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 1054
Rx Packets = 1039
Throughput: 11809.4 Kbps
Number of apps in sinkApps_lte_data is 3
Number of apps in onOffApp_lte_data is 3
ueNodeNumberData value is 5
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 2208
Rx Packets = 2193
Throughput: 11894.8 Kbps

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 3361
Rx Packets = 3346
Throughput: 11918 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 1069
Rx Packets = 1053
Throughput: 11811.7 Kbps

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 4515
Rx Packets = 4497
Throughput: 11933.2 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 2223
Rx Packets = 2208
Throughput: 11894.6 Kbps

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 5669
Rx Packets = 5601
Throughput: 11828.4 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 3377
Rx Packets = 3334
Throughput: 11826 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 1115
Rx Packets = 1020
Throughput: 10979 Kbps
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 6823
Rx Packets = 6706
Throughput: 11766.8 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 4530
Rx Packets = 4455
Throughput: 11779.2 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 2269
Rx Packets = 2092
Throughput: 11046.2 Kbps
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 7977
Rx Packets = 7811
Throughput: 11726.4 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 5684
Rx Packets = 5584
Throughput: 11763.4 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 3423
Rx Packets = 3157
Throughput: 11043.5 Kbps






Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 9131
Rx Packets = 8916
Throughput: 11691.8 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 6838
Rx Packets = 6709
Throughput: 11751.9 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 4577
Rx Packets = 4226
Throughput: 11055.5 Kbps
Max Packets per trace file exceeded
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 10285
Rx Packets = 10015
Throughput: 11660.6 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 7992
Rx Packets = 7837
Throughput: 11739.8 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 5730
Rx Packets = 5298
Throughput: 11071.1 Kbps
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11438
Rx Packets = 11127
Throughput: 11645.8 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 9146
Rx Packets = 8962
Throughput: 11734.2 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 6884
Rx Packets = 6361
Throughput: 11064 Kbps
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 12592
Rx Packets = 12222
Throughput: 11619.7 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 10300
Rx Packets = 10097
Throughput: 11738.8 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 8038
Rx Packets = 7430
Throughput: 11067.8 Kbps
number of apps in the container is 3
Deleting Data flow
Stopping application Source ns3::Application11
Stopping application Sink ns3::Application
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 13746
Rx Packets = 13324
Throughput: 11606 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11453
Rx Packets = 11218
Throughput: 11726.7 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 9192
Rx Packets = 8505
Throughput: 11077.2 Kbps
number of apps in the container is 3
Deleting Data flow
Stopping application Source ns3::Application12
Stopping application Sink ns3::Application
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 14900
Rx Packets = 14432
Throughput: 11595.6 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 12607
Rx Packets = 12343
Throughput: 11721.7 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 10346
Rx Packets = 9571
Throughput: 11077.7 Kbps
number of apps in the container is 3
Deleting Data flow
Stopping application Source ns3::Application13
Stopping application Sink ns3::Application
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 16054
Rx Packets = 15531
Throughput: 11582.6 Kbps
Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 13761
Rx Packets = 13475
Throughput: 11722.6 Kbps
Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11500
Rx Packets = 10640
Throughput: 11079 Kbps


Regards,
Sourav
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
temp.cc

Biljana Bojovic

unread,
Apr 20, 2017, 8:33:24 AM4/20/17
to ns-3-...@googlegroups.com
Hi Sourav,

these logs and file attached helps a lot.

First what I noticed now is that maybe you not using correctly application function for stopping the flow.

E.g. look definition:
https://www.nsnam.org/doxygen/classns3_1_1_application.html#a732c1fdadf0be176c753a2ce6e27dff9

So, what are you doing is:

1) before simulation starts you schedule function
DelDataFlows 
that shall stop flows, but

2) at second 11 when DelDataFlows is executed this function calls function from application SetStopTime that sets time ~11 seconds (11+z.GetValue()), which is relative to the current simulation time, which is at that moment 11 seconds.

Can you check this? E.g. you can put SetStopTime(0).

Cheers,
Biljana


p.s. problem that you have with starting apps is probably simillar




To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Sourav Chakraborty

unread,
Apr 20, 2017, 7:27:06 PM4/20/17
to ns-3-users
Hi Biljana,
I have tried your suggestion i.e 
inside AddDataFlows() function --

VoIPonOffHelper_lte.SetAttribute("StartTime", TimeValue(Seconds(0))); instead of VoIPonOffHelper_lte.SetAttribute("StopTime", TimeValue(Seconds(timeVal + y->GetValue())));
sinkApps_lte_data.Start(Seconds(0)); instead of sinkApps_lte_data.Start(Seconds(timeVal));

AND

inside DelDataFlows() function --
(*del1)->SetStopTime(Seconds(0)); instead of (*del1)->SetStopTime(Seconds(timeVal + z->GetValue()));

BUT results were still same as before.

Regards,
Sourav

Biljana Bojovic

unread,
Apr 21, 2017, 6:43:16 AM4/21/17
to ns-3-...@googlegroups.com
Hi Sourav,

how do you get the same results when here the applications are started at time 0, I dont understand?

Thanks,
Biljana

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Sourav Chakraborty

unread,
Apr 21, 2017, 9:32:25 AM4/21/17
to ns-3-users
Hi Biljana,

Please run the attached script using the commandline --

sourav@sourav-MacBookPro:~/Desktop/research/ns-allinone-3.26/ns-3.26$ ./waf --run "scratch/temp --numberOfNodes=6"

Also have a look at the script file attached.....it is a very small piece of code and won't take much time for you to read. Then please suggest if you see any mistakes in it.
The attached script has been modified according to your suggestions. When I run this script I can see 3 flows getting started at time t=0,1,2 seconds.....but the flows are not deleted after t=11 seconds.

Waiting eagerly for your response as I am looking forward to getting this resolved fast.

Regards,
Sourav
temp.cc

Sourav Chakraborty

unread,
Apr 24, 2017, 8:22:36 AM4/24/17
to ns-3-users
Hi Biljana,
Any updates on this?

Regards,
Sourav

Sourav Chakraborty

unread,
Apr 25, 2017, 9:24:10 PM4/25/17
to ns-3-users
Hi Biljana et. al,
Hope you have run my small script and have noticed the problem I am seeing......if you know the root cause of that and have spotted my mistake, please let me know the solution.
I am stuck at this point because of this problem. 

Regards,
Sourav

Sourav Chakraborty

unread,
Apr 28, 2017, 9:33:48 AM4/28/17
to ns-3-users

Hi Biljana et. al.,
I have further narrowed down the problem and found that for each of the OnOffApplication instances, StartApplication() is getting called but StopApplication is not getting called for those Application instances even after using SetStopTime(0).
Please go through my script(attached in previous mail) and let me know my mistake in the call to SetStopTime().

Waiting eagerly for your response.

Regards,
Sourav

Tommaso Pecorella

unread,
Apr 28, 2017, 5:21:47 PM4/28/17
to ns-3-users
SetStopTime() should be called BEFORE the application is started an with the absolute time you want to stop the application.

T.

Sourav Chakraborty

unread,
Apr 28, 2017, 8:32:50 PM4/28/17
to ns-3-users

Hi Tommasso,
I have tried your suggestion.........StopApplication() gets called but flow is not stopped.See run logs highlighted below and small script attached --

sourav@sourav-MacBookPro:~/Desktop/research/ns-allinone-3.26/ns-3.26$ ./waf --run "scratch/tempII --numberOfNodes=6"
Waf: Entering directory `/home/sourav/Desktop/research/ns-allinone-3.26/ns-3.26/build'
[1767/1926] Compiling scratch/tempII.cc
[1874/1926] Linking build/scratch/tempII

Waf: Leaving directory `/home/sourav/Desktop/research/ns-allinone-3.26/ns-3.26/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (5.712s)
StartApplication() called
0xd5f590
Number of apps in sinkApps_lte_data is 2
Number of apps in onOffApp_lte_data is 2
ueNodeNumberData value is 4
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 1153
Rx Packets = 1127
Throughput: 11702.8 Kbps

Number of apps in sinkApps_lte_data is 3
Number of apps in onOffApp_lte_data is 3
ueNodeNumberData value is 5
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 2307
Rx Packets = 2281
Throughput: 11837.8 Kbps
StartApplication() called
0xe347e0

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 3461
Rx Packets = 3433
Throughput: 11879.9 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 1153
Rx Packets = 1138
Throughput: 11817 Kbps

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 4615
Rx Packets = 4588
Throughput: 11905.7 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 2307
Rx Packets = 2292
Throughput: 11894.9 Kbps
StartApplication() called
0xe596a0

Can't add more Data flows
Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 5769
Rx Packets = 5679
Throughput: 11790.7 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 3461
Rx Packets = 3415
Throughput: 11813.6 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 1153
Rx Packets = 1065
Throughput: 11070 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 6923
Rx Packets = 6778
Throughput: 11722 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 4615
Rx Packets = 4543
Throughput: 11788.9 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 2307
Rx Packets = 2137
Throughput: 11101.6 Kbps
:
:
StopApplication() called
0xd5f590
closing socket

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 10384
Rx Packets = 10210
Throughput: 11772.3 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 8076
Rx Packets = 7580
Throughput: 11236 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11365
Throughput: 11792.2 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 9230
Rx Packets = 8732
Throughput: 11329.8 Kbps
StopApplication() called
0xe347e0
closing socket

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 10384
Rx Packets = 9889
Throughput: 11400.9 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11043
Throughput: 11458.1 Kbps
StopApplication() called
0xe596a0
closing socket

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
Throughput: 11792.4 Kbps

Flow ID: 3 Src Addr 1.0.0.2 Dst Addr 7.0.0.7
Tx Packets = 11538
Rx Packets = 11058
Throughput: 11458.8 Kbps

Flow ID: 1 Src Addr 1.0.0.2 Dst Addr 7.0.0.5
Tx Packets = 11538
Rx Packets = 11195
Throughput: 11598.4 Kbps

Flow ID: 2 Src Addr 1.0.0.2 Dst Addr 7.0.0.6
Tx Packets = 11538
Rx Packets = 11380
tempII.cc

Tommaso Pecorella

unread,
Apr 28, 2017, 8:43:48 PM4/28/17
to ns-3-users
Please re-read my previous message.
Read also the StopApplication code and use a debugger.
The fact that you can CALL the function doesn't mean that the function does what you're expecting.
I can't explain the concept more clearly than before.

T.

Tommaso Pecorella

unread,
Apr 28, 2017, 8:48:05 PM4/28/17
to ns-3-users
Oh, one more thing.

FlowMonitor doesn't DELETE a flow when it is stopped. That would be highly illogical.
When there are no more data around in a particular flow, FlowMonitor simply doesn't record anymore data for that flow. The statistics are not removed.

T.
Reply all
Reply to author
Forward
0 new messages