Hi Mohammed, I suggest you to read the following blog post to understand how TCP sends packets.
http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Mar 9, 2011, at 8:41 AM, Mohammed Alenezi wrote: > > Hi, > > I just want to understand who is responsible for sending the packets in ns2. > In each layer 4 protocol ( TCP or UDP) there is a function for send and > receive. However,I read in other blog http://t-issariyakul.blogspot.com. > -----that the function in Agent.cc is the one responsible for sending and > receiving.!!! > > I need to understand the difference. I read the book many times, couldn't > figure out the difference??? > > > Any Help > > -- > Regards, > Moe >