hi

all traffic are logged in the trace file. Each node created has a unique
 ID and the packet seen by this node is logged with the node unique ID
in the trace file. So you could use an awk script to count the number of
packets seen on Node3

greetings

tan cam wrote:
> 
> Hi everyone,
> I have the problem when I try to count the number of packet, that the 
> intermediate node received.
> I have a topology, that have 4 nodes (following figure):
> node1_________Node3___________________Node4
>                /
>               /
>              /
>             /
> node2______/
>  That mean, Node1 link to Node3
>             Node2 link to Node3
>             Node3 link to Node4
> I have two agent that send packet from Node1 to Node4 and Node2 to node4.
> (example Node1 ping node4 and Node2 ping Node4).
> Of course, all of packet through Node3 before arrive node4.
> My problem is:
> I want to count the number of packet, that Node3 (intermediate node) received 
> during Node1 sent packet to node4 and node2 sent packet to node4.
> I use NS2 version 2.33 for Redhat Linux 4.0
> 
> Thank you so much.
> ===========================
> Nguyen Tan Cam
> 
> HCMUS
> ===========================
> 
> 
> 
>       
> 

Reply via email to