Please see inline below:

Amin Hosseini wrote:
> 
> Hi Dear all,
> 
> In a wireless scenario for checking bandwidth in QoS,
> I need to add some field to CBR packet header
> and when every packet reach to nodes doing some process on it .
> would you please help me about:  
> 
> 1- how can I follow CBR packets? 
> 2- where can I find CBR packet structure for changing?
packet.h is a good start for that. You also might want to look into the
hdr_cmn and hdr_ip structures. And then there is chapter 12 in the ns2
manual: Packet Headers and Formats

> 3- how can I read packet and doing some process in a node?
That would be done by an Agent (as far as I understood it): chapter 10
in the manual.

> 4- do you have a sample code for it?
Chapter 10.6: Creating a new Agent (in the manual)

> Please advise me about my problem, and I will be thank you for your help.
> 
> Best Regards
> Amin
Good luck,

Claus

PS: please also have a look at the ns2 wiki
(http://nsnam.isi.edu/nsnam/index.php/Main_Page) and update it if you
find something that might be helpfull to others.
> 
> 
> 
>        
> ---------------------------------
> Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

-- 
Claus Christmann
Graduate Research Assistant

Georgia Institute of Technology
270 Ferst Drive
Atlanta, GA 30332-0150

http://uav.ae.gatech.edu

Reply via email to