[ns] How can I send variable sized packet, and measure the size ?

Sidney Doria ssdoria at gmail.com
Mon Jan 19 15:57:28 PST 2009


OK,

I suppose a wired network (if you want to do this in a wireless net,
read this tutorial:
<http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf>).

Any node receives a packet in the network layer by a method called RECV().

recv() decides what to do with the received packet. So the main
parameter is the packet pointer itself. It reads the headers and
decides discard that packet, forward it or send to upper layers. This
is what a routing protocol does. In a choosed protocol, in the code
fragment where It decides to forward a packet, change the code and add
your packet manipulation.

Sidney Doria
UFCG / BRAZIL


2009/1/19 Daehee Kim <dahkim77 at gmail.com>:
> Hi, Sidney
>
> Yes..
>
> Danny
>
> 2009/1/18 Sidney Doria <ssdoria at gmail.com>
>>
>> You mean the packet size (and content) may be increased or decreased
>> in a forwarder node?
>>
>> Sidney Doria
>> UFCG / Brazil
>>
>> 2009/1/18 Daehee Kim <dahkim77 at gmail.com>:
>> >
>> > Hi everyone.
>> >
>> > I want to send a packet which has variable size on the way to a
>> > destination.
>> >
>> > That is, the packet size when it starts from a source node will be
>> > different
>> > from when it is at one of forwarded nodes. ;
>> > the packet size is varied.
>> >
>> > How can I implement variable sized packet ? Also, How can I measure the
>> > size
>> > of the packet at any time ?
>> >
>> > Thanks
>> > Danny
>> >
>> > --
>> > DaeHee(Danny) Kim
>> > Department of Electrical Engineering and Computer Science(EECS), Wichita
>> > State University
>> > email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com
>> >
>>
>>
>>
>> --
>> Sidney Doria
>> Redes ad hoc móveis
>> Doutorado em Computação
>> UFCG
>> Brasil
>>
>> "Nessa jornada, o conhecimento será o seu escudo..."
>> (Mestre dos Magos no episódio do grimoire de ouro)
>
>
>
> --
> DaeHee(Danny) Kim
> Department of Electrical Engineering and Computer Science(EECS), Wichita
> State University
> Cell Phone : 1-607-321-9574
> email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com
>



--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



More information about the Ns-users mailing list