home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Configure a mark map

An example of how to create a mark map. A mark map can modify the PCP value written into the L2 frame header immediately prior to transmission of the packet.
  1. Create a mark map that sets the PCP value in the L2 frame of packets that have a certain set of DSCP values.
    user@system# set policy qos mark-map mark-map-1 dscp-group grp-0-to-15 pcp-mark 3
    The mark map called mark-map-1 states that packets with a DSCP value that belong to the DSCP group called grp-0-to-15 will have the PCP value in their L2 frame set to 3.
  2. Add more entries to the mark map, but with a different set of DSCP values, and a different PCP value.
    user@system# set policy qos mark-map mark-map-1 dscp-group grp-16-to-63 pcp-mark 5
    The mark map called mark-map-1 states that packets with a DSCP value that belongs to the DSCP group called grp-16-to-63 will have the PCP value in their L2 frame set to 5.
  3. Attach the mark map to the QoS policy called policy-1.
    user@system# set policy qos name policy-1 shaper mark-map mark-map-1
    The mark map called mark-map-1 defines how packets that pass through the QoS policy called policy-1 get the PCP value in the L2 frame set.
  4. Attach the policy to a dataplane interface.
    For platforms in router mode:
    user@system# set interfaces dataplane dp0s3 policy qos policy-1
    For platforms in switch mode:
    user@system# set interfaces dataplane dp0ce10 switch-group port-parameters policy qos policy-1
The mark map is now configured.