Re: [ns] TCP agent and sink

2009-05-28 Thread Teerawat Issariyakul
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

Re: [ns] TCP agent and sink

2009-05-27 Thread Vishal Agarwal
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 wrote: > > Dear Vishal, > > Only one sink is necessary. But you do need to connect both tcp age

Re: [ns] TCP agent and sink

2009-05-27 Thread Teerawat Issariyakul
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" wrote: > >Hello users,

[ns] TCP agent and sink

2009-05-27 Thread Vishal Agarwal
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