vADC Forum

Reply
Occasional Contributor
Posts: 6
Registered: ‎12-13-2012
Accepted Solution

Is it possible to set the TOS/DSCP bits using traffic script?

We are looking at using the stingray to handle Layer 3 Direct Server Return (L3DSR) traffic.  The only part missing is the ability to set the TOS/DSCP marking on the IP frame towards the pool members.

Is there a way to set the DSCP/TOS bits using traffic script or some other method? 

Contributor
Posts: 58
Registered: ‎11-29-2012

Re: Is it possible to set the TOS/DSCP bits using traffic script?

See the Traffic Script Function request.setDSCP

request.setDSCP( 6-bit DSCP field )

Sets the Differentiated Service Code Point (DSCP) field in the IP packet header of traffic being sent to the server. A 6-bit value must be provided. If successful, this function returns true, otherwise it returns false. DSCP fields can be used by network equipment to change how they route network traffic.

Sample Usage


if ( http.getHeader( "X-Set-DSCP-Priority" != "" )) {


request.setDSCP( 0x2c );


}


Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.