Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - DSCP support for IPv4?: (10 Items)
   
DSCP support for IPv4?  
Does the neutrino 6.3 stack support DSCP (Differentiated Service Code Points) for IPv4 packages?

Same question for the 6.4 core network update.

Thanks,

Rich
Re: DSCP support for IPv4?  
Sorry -- meant to say IPv4 *Packets*

Thanks
Re: DSCP support for IPv4?  
I'm guessing that DSCP = Diff Serv = RFC2474.  

"Support" is a tricky issue in that you have to clarify what you mean by support.
The DS field replaces the IPv4 TOS octet in the IP header. What the stack does with the bits and how you configure and 
use them is something else (and these don't seem to be specified by the RFC).

It does look like the altq functionality uses the DSCP bits, but altq (i.e. egress traffic shaping) is currently being 
deferred to a later release. 

http://netbsd.gw.com/cgi-bin/man-cgi?altq.conf+5+NetBSD-current

(note the "cleardscp" command)


Re: DSCP support for IPv4?  
I have a project where I need to set the DS field in packets being sent. I may be able to get away with setting it to a 
static non-zero value in all emanating packets. Could you please point me to where in the source code the TOS octet is 
currently set to zero? I realize that this would only be a temporary solution until full DSCP support is available.
Thanks.
Re: DSCP support for IPv4?  
One more question... Do you know when DSCP support is planned to be added? Thanks.
RE: DSCP support for IPv4?  
Hi Russel:
	Perhaps you can be a bit more specific about what you mean by
DSCP support?  Are you thinking specifically of the ALTQ support which
includes traffic shaping for egress streams?  If so, that should be in
our next release.  We haven't gone through the scheduling for the next
release cycle just yet since we've been fully focused on getting the
current release wrapped up.

	Robert.

-----Original Message-----
From: Russell Shulman [mailto:russell.shulman@andrew.com] 
Sent: Tuesday, June 10, 2008 1:19 PM
To: technology-networking
Subject: Re: DSCP support for IPv4?

One more question... Do you know when DSCP support is planned to be
added? Thanks.

_______________________________________________
Technology
http://community.qnx.com/sf/go/post8918
Re: DSCP support for IPv4?  
On Tue, Jun 10, 2008 at 01:10:55PM -0400, Russell Shulman wrote:
> I have a project where I need to set the DS field in packets being sent. I may be able to get away with setting it to 
a static non-zero value in all emanating packets. Could you please point me to where in the source code the TOS octet is
 currently set to zero? I realize that this would only be a temporary solution until full DSCP support is available.
> Thanks.

For SOCK_STREAM, SOCK_DGRAM you can change the TOS
with the IP_TOS socket option.  See the docs for
getsockopt(), setsockopt().  For raw ip you can set
the IP_HDRINCL socket option.  See the ping utility
for an example.

-seanb
Re: DSCP support for IPv4?  
Will this work in io-rcv as well?
Thanks
Re: DSCP support for IPv4?  
Sorry, I meant io-net (for QNX 6.3).
Re: DSCP support for IPv4?  
On Wed, Jun 11, 2008 at 01:14:49PM -0400, Russell Shulman wrote:
> Sorry, I meant io-net (for QNX 6.3).

Yes.

-seanb