Setting the DSCP value for OSPF packets
An IPv4 packet header contains an 8-bit TOS field. As defined in RFC 2474, the first six bits set the Differentiated Services Code Point (DSCP) value and the last two bits are reserved. Network devices use the DSCP value as a reference to determine the packet priority for transmission.
You can set the DSCP value for OSPF packets.
To set the DSCP value for OSPF packets:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable an OSPF process and enter OSPF view. | ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] * | By default, OSPF is not enabled. |
3. Set the DSCP value for OSPF packets. | dscp dscp-value | Optional. By default, the DSCP value in OSPF packets is 48. |