Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring ToS Byte Conditions (SRC CLI)

    Use this condition to define a particular traffic flow to the service’s network for the DA IP field in the IP packet.

    The CoS feature on routers running Junos OS supports DiffServ as well as six-bit IP header ToS byte settings. The DiffServ protocol uses the ToS byte in the IP header. The most significant six bits of this byte form the Differentiated Services code point (DSCP). The CoS feature uses DSCPs to determine the forwarding class associated with each packet. It also uses the ToS byte and ToS byte mask to determine IP precedence.

    Use the following configuration statements to add ToS conditions to a classify-traffic condition:

    policies group name list name rule name traffic-condition name tos {tos-byte tos-byte ; tos-byte-mask tos-byte-mask ; }

    To add ToS conditions to a classify-traffic condition:

    1. From configuration mode, enter the ToS configuration. For example:
      user@host# edit policies group junos list bodVpn rule pr traffic-condition ctc tos
    2. (Optional) Configure the value of the ToS byte in the IP packet header.
      [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]user@host# set tos-byte tos-byte
    3. (Optional) Configure the mask associated with the ToS byte.
      [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]user@host# set tos-byte-mask tos-byte-mask
    4. (Optional) Verify the ToS condition configuration.
      [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]
      user@host# show 
      tos-byte tosByte;
      tos-byte-mask tosMask;

    Published: 2014-12-10