Example: Configuring and Verifying Two-Rate Tricolor Marking
This example configures a two-rate tricolor marking policer on an input Gigabit Ethernet interface and shows commands to verify its operation.
Traffic enters the Gigabit Ethernet interface and exits a SONET/SDH OC12 interface. Oversubscription occurs when you send line-rate traffic from the Gigabit Ethernet interface out the OC12 interface.
Figure 10 shows the sample topology.
Figure 10: Tricolor Marking Sample Topology

- Applying a Policer to the Input Interface
- Applying Profiles to the Output Interface
- Marking Packets with Medium-Low Loss Priority
- Verifying Two-Rate Tricolor Marking Operation
Applying a Policer to the Input Interface
The tricolor marking and policer are applied on the ingress Gigabit Ethernet interface. Incoming packets are metered. Packets that do not exceed the CIR are marked with low loss priority. Packets that exceed the CIR but do not exceed the PIR are marked with medium-high loss priority. Packets that exceed the PIR are marked with high loss priority.
Applying Profiles to the Output Interface
Transmission scheduling and weighted random early detection (WRED) profiles are applied on the output OC12 interface. The software drops traffic in the low, medium-high, and high drop priorities proportionally to the configured drop profiles.
Marking Packets with Medium-Low Loss Priority
In another example, the 4PLP filter and policer causes certain packets to be marked with medium-low loss priority.
Verifying Two-Rate Tricolor Marking Operation
The following operational mode commands are useful for checking the results of your configuration:
- show class-of-service forwarding-table classifiers
- show interfaces interface-name extensive
- show interfaces queue interface-name
For information about these commands, see the Junos Interfaces Command Reference and Junos System Basics and Services Command Reference.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1