[ns] tcp agent
hi all, i have a tcp agent : set tcp_(0) [new Agent/TCP/FullTcp] and i try to read the number of bytes of this agent but the variables bytes_ doesn't exist on tcp/FullTcp what can i do ?
Re: [ns] TCP agent and sink
Dear Vishal, It won't. The reason is because you attach two TCP agents to two nodes. Each node attach to different link. But the packets generated by both TCP agents will go to the same place. When the packets reach the destination, it would simply be destroy. Of course, the contention would be at the link connecting into the sink node. But that is the nature of packets sharing the node. For more information about Links, Nodes, Agents and Applications, see the following book from Springer: T. Issaraiyakul and E. Hossain, Introduction to Network Simulator NS2, Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm On 5/27/2009, Vishal Agarwal vis...@gmail.com wrote: But would both the agents will fight for channel contention or packets from both the sources will go regardless of transmission from other end..?? On Wed, May 27, 2009 at 9:56 PM, Teerawat Issariyakul teera...@ece.ubc.cawrote: Dear Vishal, Only one sink is necessary. But you do need to connect both tcp agent to the same sink by using $ns connect $tcp1 $sink and $ns connect $tcp2 $sink. The result would be the same as when you have two sinks. Best, Teerawat On 5/27/2009, Vishal Agarwal vis...@gmail.com wrote: Hello users, I am attaching 2 tcp agents at one source so do i need to attach 2 sinks at destination also or only 1 is sufficient. And when the agent tries to access the channel will there be any difference if there are two sinks rather than one? Thanks, -- Vishal Agarwal -- Vishal Agarwal
[ns] TCP agent and sink
Hello users, I am attaching 2 tcp agents at one source so do i need to attach 2 sinks at destination also or only 1 is sufficient. And when the agent tries to access the channel will there be any difference if there are two sinks rather than one? Thanks, -- Vishal Agarwal
Re: [ns] TCP agent and sink
Dear Vishal, Only one sink is necessary. But you do need to connect both tcp agent to the same sink by using $ns connect $tcp1 $sink and $ns connect $tcp2 $sink. The result would be the same as when you have two sinks. Best, Teerawat On 5/27/2009, Vishal Agarwal vis...@gmail.com wrote: Hello users, I am attaching 2 tcp agents at one source so do i need to attach 2 sinks at destination also or only 1 is sufficient. And when the agent tries to access the channel will there be any difference if there are two sinks rather than one? Thanks, -- Vishal Agarwal
Re: [ns] TCP agent and sink
But would both the agents will fight for channel contention or packets from both the sources will go regardless of transmission from other end..?? On Wed, May 27, 2009 at 9:56 PM, Teerawat Issariyakul teera...@ece.ubc.cawrote: Dear Vishal, Only one sink is necessary. But you do need to connect both tcp agent to the same sink by using $ns connect $tcp1 $sink and $ns connect $tcp2 $sink. The result would be the same as when you have two sinks. Best, Teerawat On 5/27/2009, Vishal Agarwal vis...@gmail.com wrote: Hello users, I am attaching 2 tcp agents at one source so do i need to attach 2 sinks at destination also or only 1 is sufficient. And when the agent tries to access the channel will there be any difference if there are two sinks rather than one? Thanks, -- Vishal Agarwal -- Vishal Agarwal