cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
kevinmason
Occasional Contributor

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
dnahas
Contributor

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 );


}


View solution in original post

1 REPLY 1
dnahas
Contributor

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 );


}