[ns] packet forwarding

Gaurav Joshi gaurav.84in at gmail.com
Tue Mar 10 10:29:49 PDT 2009


Dear Mubashir,
thank you so much for your help. But do we have to set ttl in tcl script or
in source code. also how do i change the dst and src address dynamically.
Can you please give me a little more insight about it, or fwd me a link from
where I can follow in detail.

thanks again,
Regards,
Gaurav.

On Tue, Mar 10, 2009 at 3:24 AM, Mubashir Rehmani <mshrehmani at gmail.com>wrote:

> Hi Gaurav Joshi,
>
> To forward a packet to multi-hops, you need to first set the TTL value of
> the packet and dst address. Let's suppose you set the TTL=5 and dst=Node 1.
> Then you send this packet. This packet will be received by Node1. Node 1
> then reduce the TTL-- and reassign the dst and forward the packet.
>
> To forward the packet, you don't need to call sendpkt function. Instead,
> you need to schedule a packet.
>
> Scheduler::instance <http://rp.lip6.fr/ns-doc/ns226-doc/html/classScheduler.htm#SplaySchedulere0>().schedule <http://rp.lip6.fr/ns-doc/ns226-doc/html/classScheduler.htm#SplaySchedulera6>(target_ <http://rp.lip6.fr/ns-doc/ns226-doc/html/classConnector.htm#WRR__CBQueuep27>, p, delay);
>
>
>
> Hope it helps
>
> Regards
> Mubashir Husain Rehmani
> Lip6, UPMC, Paris, France
> www-npa.lip6.fr/~rehmani <http://www-npa.lip6.fr/%7Erehmani>
>
> 2009/3/10 Gaurav Joshi <gaurav.84in at gmail.com>
>
>
>> Hello all,
>>
>> Does anyone has an idea how to send a packet in multi-hops? This, I guess
>> will include packet forwarding at the intermediate node.
>> Please let me know it.
>> Thanks a lot.
>>
>>
>> --
>> Warm regards,
>> Gaurav Joshi
>> +1-352-214-2527
>>
>
>
>
> --
> Mubashir Husain Rehmani
>
>
>


-- 
Warm regards,
Gaurav Joshi
+1-352-214-2527


More information about the Ns-users mailing list