[ns] TCP agent and sink

Vishal Agarwal vish85 at gmail.com
Wed May 27 09:48:17 PDT 2009


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
<teerawat at ece.ubc.ca>wrote:

>
> 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" <vish85 at 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


More information about the Ns-users mailing list