[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] color in nortel diffserv implementation



hi Mandeep,
  thanks for the reply.i went through dsPolicy.cc which does the marking
by setting the codept to the prio_ field of iph in Policy::mark(Packet
*pkt) method.i have added the code
      iph->fid_ = codePt
to this method so that color based on the codepoint can be seen and it
works.i think this will help in distinguishing the packets when seen in
nam.
  thanks.
  Renjish.    

On Wed, 20 Sep 2000, Mandeep Baines wrote:

> Hi Kaleelazhicathu,
> 
> The code points are stored in the TOS field of the ip header. Colour marking
> is done using flowid. However, you bring up an interesting idea. It might be
> nice to be able to do colouring based on DSCP.
> 
> Cheers!
> Mandeep
> 
> 
> Kaleelazhicathu R R Kumar wrote:
> 
> > hi all,
> >   i tried setting the color for the nortel diffserv implementation for
> > different code points as :
> >   $ns color 00 blue
> >   $ns color 10 yellow
> >   etc...
> > but i could get only the blue color where as the print message shows the
> > codepoints of packets as 10.is there anything more i have to do to get
> > different colors based on the code point???while looking through the
> > diffserv program i couldn't find which field is set to the code point..is
> > it the flowid??
> >  thanks.
> >  Renjish.
>