ns 2 agents

View: New views
2 Messages — Rating Filter:   Alert me  

ns 2 agents

by Τσιλιγγίρης Γεώργιος :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hi to all,

I am trying to simulate a simple call flow in ns 2. Something like the
one attached. My idea is to create a new packet header with one int
value and one agent for each node. Each message in the call flow is
given an ID (1,2,3...). The first agent sends the first packet with
the ID=1 to the second node. The agent on the second node receives the
packet and sends one packet back (ID=2) and one packet to the third
node (ID=3). The procedure continues in the same way.
I created the packet header successfully but i have some problems with
the agents. Has anyone done anything similar? Can anyone help me?

George.

Re: ns 2 agents

by Arturo Servin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



        I did play with the headers to test my own protocol. As far as I know  
NS you should be able to modify your own header information to add  
what you need. I am not enough savy to explain how I did it but I  
found this manual really helpful to understand how NS handles the  
headers. It also contains some examples that you can use as starting  
point.

http://www.isi.edu/nsnam/ns/ns-documentation.html

Hope it helps,
-as


On 9 Jul 2009, at 08:18, Τσιλιγγίρης Γεώργιος wrote:

>
> Hi to all,
>
> I am trying to simulate a simple call flow in ns 2. Something like the
> one attached. My idea is to create a new packet header with one int
> value and one agent for each node. Each message in the call flow is
> given an ID (1,2,3...). The first agent sends the first packet with
> the ID=1 to the second node. The agent on the second node receives the
> packet and sends one packet back (ID=2) and one packet to the third
> node (ID=3). The procedure continues in the same way.
> I created the packet header successfully but i have some problems with
> the agents. Has anyone done anything similar? Can anyone help me?
>
> George.