[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] coloring packets ...
Packets in ns are usually colored by setting colors to flow ids. Here
is an example script.
set agent(1) [new Agent/UDP]
$ns attach-agent $node(1) $agent(1)
$ns color 1 "blue"
$agent(1) set fid_ 1
In this script all packets produced by agent(1) will be blue when viewed
in nam.
I think you probably need to do something similar to this.
- John
Anshuman Kanwar wrote:
>
> Hi,
> I am implementing an application that uses RLM like congestion
> control. My server is coded in C++.
>
> I can distinguish my data packets (layer 1 to n) based on a field in the
> header. I wish to color the packets of each layer differently.
>
> Is there any way I can color packets (for display in nam) from within my
> application (c++) ... or do i bind that header value to TCL and
> define a "set class_ 1" etc.
>
> What is the easier way to do it?
>
> Thanks for your time,
> regards,
> Anshuman.