Perhaps I didn't express it right. I have two sources and one sink. The
sources send data packets to the sink and the sink must ack the packets to
each the source. The problem is that UDP agent can handle only one connection
between source and sink so the ack packets are only transmitted to one source
(the last one for which $ns connect $udpsource $udpsink has been called for).
Has anybody already solved that problem? Another issue is that there is no
sendto() method defined for UDP agent and not for its parent agent too which
partially could solve the problem by changing the default recv() method of
UDP Agent to provide a sender ns_addr_t to the application. If anybody has
worked this out please reply to me.
ggeorgak
On Tuesday 22 August 2006 00:19, amin nazaran wrote:
> Dear Giorgis
>
> I think your Channel do not transmit the data to specified sink when you
> have 2 sink with
>
> one share node it is better that you defined two sources ,then connect each
> source to
>
> spesified sink , I think, it is not possible that you connect two udp agent
> to each other,
>
> , you must connect udp agent to sink, your Definition have problems.
>
> On 8/21/06, Giorgis Georgakoudis <[EMAIL PROTECTED]> wrote:
> > I builded a very simple app on top of the UDP agent of ns and the problem
> > is
> > that if I have two traffic generators both can send to the UDP agent of
> > the
> > traffic sink but when the sink is sending the ack (my application) the
> > ack is
> > send to the last node for which the "$ns connect $udpAgent1 $udpAgent2"
> > has
> > been called. How can I correct that?