[Ns-developers] PCAP or OnOffApplication changes?
Glenn Evans
glenne.lists at gmail.com
Sun Mar 28 14:20:36 PDT 2010
Hello,
I've been using the ns-3-dev branch since the 3.7 release and have developed
a number of simulations for my thesis. I use a python script and tcpdump to
get the throughput values from the ns-3 generated .pcap files. Until today,
those .pcap files were as expected and included data transmissions for all
clients in the network.
However, today after I pulled the most recent version from the ns-3-dev
server the exact same scripts and files now generate no useful data. The
only packets seen in wireshark from the .pcap files are ARP, RTS/CTS, and
AODV packets, with an occasional TCP packet from sender 102.102.102.102 (not
an assigned address).
Here is the code for setting up my OnOffApplication:
// Takes a client, server, and start/stop times and creates an On/Off
connection between them
void
AccessPoint::ApplicationSetup (Ptr<Node> client, Ptr<Node> server, double
start, double stop, int port, int packetSize)
{
Ptr<Ipv4> ipv4Server = server->GetObject<Ipv4>();
Ptr<Ipv4> ipv4Client = client->GetObject<Ipv4>();
Ipv4InterfaceAddress iaddrServer = ipv4Server->GetAddress(1,0);
Ipv4InterfaceAddress iaddrClient = ipv4Client->GetAddress(1,0);
Ipv4Address ipv4AddrServer = iaddrServer.GetLocal ();
Ipv4Address ipv4AddrClient = iaddrClient.GetLocal ();
if (m_verbose)
{
std::cout << "Set up Server with ip " << ipv4AddrServer
<< " and connecting to Client with ip " << ipv4AddrClient <<
"\n";
}
// The OnOff application generates packets from the CLIENT NODE
// - NOTE: At a 20Mbps rate, this is intentionally going to flood the
queue
OnOffHelper onoff ("ns3::TcpSocketFactory",
Address(InetSocketAddress(ipv4AddrServer,port)));
onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable
(.9)));
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable
(.1)));
onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("20Mbps")));
onoff.SetAttribute ("PacketSize", UintegerValue (packetSize));
// The client generates On/Off traffic to send to the server
ApplicationContainer apps = onoff.Install (client);
apps.Start (Seconds (start));
apps.Stop (Seconds (stop));
// The sink "catches" the packets from the client
PacketSinkHelper sinkHelper ("ns3::TcpSocketFactory",
Address(InetSocketAddress(ipv4AddrServer,port)));
ApplicationContainer sinkApp = sinkHelper.Install (server);
sinkApp.Start (Seconds (start));
sinkApp.Stop (Seconds (stop));
}
My question is what could've changed with either the .pcap handler or
OnOffApplication that would render my simulation files useless?
I've attached a .pcap file from both the old and new ns-3 simulator. Let me
know if there is anything else you may need.
Thanks for your help,
Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: traces.tar.gz
Type: application/x-gzip
Size: 1986294 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20100328/a3b8f1c4/traces.tar-0001.bin
More information about the Ns-developers
mailing list