Hie Sir,
+=2 I was doing to see what is the outcome :P
(1) I have put many debug lines in the onoffhelper,cc and onoffapllication.cc but am not able to get the program flow, Can you give an idea about how it reaches send () in onoffapplication.cc and when is Onoffapplication's object created ?
InstallPriv installs a application then how is send() function called after that
like for example ,
OnOffHelper oo = OnOffHelper("ns3::TcpSocketFactory",Address(InetSocketAddress(Ipv4Address(add), port))); // ip address of server
oo.SetAttribute("OnTime", StringValue("ns3::ConstantRandomVariable[Constant=1]"));
oo.SetAttribute("OffTime", StringValue("ns3::ConstantRandomVariable[Constant=0]"));
oo.SetAttribute("PacketSize",UintegerValue (packetSize));
oo.SetAttribute("DataRate",StringValue (dataRate_OnOff));
oo.SetAttribute("MaxBytes",StringValue (maxBytes));
rand1=1;
rand2=0;
rand3=0;
while (rand1== podRand && swRand == rand2 && (rand3+2) == hostRand){
rand1 = rand() % num_pod + 0;
rand2 = rand() % num_edge + 0;
rand3 = rand() % num_host + 0;
} // to make sure that client and server are different
// Install On/Off Application to the client
NodeContainer onoff;
onoff.Add(host[rand1][rand2].Get(rand3));
app[i] = oo.Install (onoff);
How to insert a tag when tcp acknowledge comes back ? and make client work on my desired port no. ?
(2) I have made a traffic generator which will give a TCP traffic (plz see attachment), But I want to create client socket on my desired port no. Can this be done ?
and also, How to insert a tag when tcp acknowledge comes back ?
Am still trying to create a flow classifier only.