Dear all,

I am working on a routing protocol. I need to know the transmission rate of
a flow in routing agent (network layer). Can I get this information from
some packet header? If not, how can I get this information in a routing
agent, say AODV? In the code of AODV, it seems we know nothing about the
rate.

If I setup rate as

set app1 [new Application/CBR
$app1  set rate_ 100kb

How does the routing agent know this rate when it processes each incoming
packet?

BTW:
how to set rate in TCP and UDP flows (only TCP or UDP flows, without upper
application layer)?
I have tried like these, but they did not work.

set src_tcp2 [new Agent/TCP]
$src_tcp2 set packetSize_ 45 ;
$src_tcp2 set interval_ 20ms
#$src_tcp2 set rate_ 400kb

set src_tcp2 [new Agent/TCP]
$src_udp2 set packetSize_ 45 ;
$src_udp2 set interval_ 20ms
#$src_udp2 set rate_ 400kb

Thanks much for your patience and help.

Reply via email to