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

    Supported Platforms

     

    Related Documentation

     

    Example: Configuring PFC Across Layer 3 Interfaces

    Priority-based flow control (PFC) helps ensure lossless transport across data center bridging interfaces by pausing incoming traffic when output queue buffers fill to a certain threshold. On a QFX5100 switch or an EX4600 switch running the Enhanced Layer 2 Software (ELS) CLI, in addition to configuring PFC on Layer 2 (bridging) interfaces, you can configure PFC on traffic that traverses Layer 3 interfaces. This enables you to preserve the lossless characteristics that PFC provides on traffic, even when the traffic crosses Layer 3 interfaces that connect two Layer 2 networks.

    Requirements

    This example uses the following hardware and software components:

    • Two Juniper Networks QFX5100 Switches
    • Junos OS Release 13.2 or later for the QFX Series
    • Two Ethernet hosts

    Overview

    On a network that uses two QFX5100 or EX4600 switches to connect hosts on two different Ethernet networks across a Layer 3 network, to configure PFC across the Layer 2 and Layer 3 interfaces, you must:

    • Configure the Layer 2 and Layer 3 interfaces on the switches
    • Configure VLANs to carry the traffic across the Layer 2 and Layer 3 networks
    • Configure integrated routing and bridging (IRB) interfaces on the Layer 2 interfaces to move the Layer 2 VLAN traffic to Layer 3
    • Configure and apply the appropriate classifiers to the interfaces
    • Configure and apply congestion notification profiles (CNPs) on the interfaces to enable PFC on the traffic that you want to be lossless

      Note: Configuring or changing PFC on an interface blocks the entire port until the PFC change is completed. After a PFC change is completed, the port is unblocked and traffic resumes. Blocking the port stops ingress and egress traffic, and causes packet loss on all queues on the port until the port is unblocked.

    • Configure lossless forwarding classes and hierarchical port scheduling (also known as enhanced transmission selection) on the interfaces

    Note: PFC operates at the queue level, based on the IEEE 802.1p code point in the priority code point (PCP) field of the Ethernet frame header (sometimes known as the CoS bits). For this reason, traffic on Layer 3 interfaces on which you want to enable PFC must use an IEEE 802.1p classifier to map incoming traffic to forwarding classes (which are in turn mapped to output queues) and loss priorities. You cannot use a DSCP or DSCP IPv6 classifier to classify Layer 3 traffic if you want to enable PFC on traffic flows.

    Topology

    Figure 1 shows the topology for this example.

    Figure 1: Enabling PFC Across Layer 3 Interface Hops

    Enabling PFC Across
Layer 3 Interface Hops

    Table 1 shows the configuration components for this example. On the two QFX5100 switches, the Ethernet host-facing interfaces use the same interface names and configuration, and the Layer 3 network-facing interfaces use the same interface names and configuration.

    Table 1: Components of the PFC Across Layer 3 Interfaces Topology

    Component

    Settings

    Hardware

    Two QFX5100 switches
    Two Ethernet hosts

    Layer 3 interfaces (xe-0/0/40 and xe-0/0/41) and VLANs

    Interface xe-0/0/40:

    • Interface family—inet
    • Interface IP address—100.103.1.2/24
    • VLAN tagging—enabled
    • Interface VLAN ID—103

    Interface xe-0/0/41:

    • Interface family—inet
    • Interface IP address—100.104.1.2/24
    • VLAN tagging—enabled
    • Interface VLAN ID—104

    Layer 2 interfaces (xe-0/0/20 and xe-0/0/21) and VLAN membership

    Family: Ethernet switching
    Interface mode—trunk
    Interface xe-0/0/20 VLAN membership—vlan105
    Interface xe-0/0/21 VLAN membership—vlan106

    VLANs for the IRB interfaces

    VLAN unit 105—family inet, IP address 100.105.1.1/24
    VLAN unit 106—family inet, IP address 100.106.1.1/24

    Layer 2 IRB interfaces

    Interface xe-0/0/20:

    • IRB interface unit—105
    • IRB interface family—inet
    • IRB interface IP address—100.105.1.1/24
    • IRB interface VLAN ID—105
    • Layer 3 interface name—irb.105

    Interface xe-0/0/21:

    • IRB interface unit—106
    • IRB interface family—inet
    • IRB interface IP address—100.106.1.1/24
    • IRB interface VLAN ID—106
    • Layer 3 interface name—irb.106

    Forwarding classes (both switches)

    Name—lossless-3
    Queue mapping—queue 3
    Packet drop attribute—no-loss

    Name—lossless-4
    Queue mapping—queue 4
    Packet drop attribute—no-loss

    Note: Matching the forwarding class names (lossless-3 and lossless-4) to the queue number and to the classified IEEE 802.1p code point (priority) creates a configuration that is logical and easy to map because the forwarding class, queue, and priority all use the same number.

    Name—all-others
    Queue mapping—queue 0
    Packet drop attribute—none

    Note: The forwarding class all-others is for best-effort traffic that traverses the interfaces.

    Layer 2 interface behavior aggregate (BA) classifier

    Name—lossless-3-4-ieee
    Forwarding class lossless-3—mapped to code point 011 (IEEE 802.1p priority 3) and a packet loss priority of low
    Forwarding class lossless-4—mapped to code point 100 (IEEE 802.1p priority 4) and a packet loss priority of low

    Apply the Layer 2 IEEE 802.1p classifier to both the Layer 2 and the Layer 3 interfaces (xe-0/0/20, xe-0/0/21, xe-0/040, and xe-0/0/41).

    Congestion notification profile (PFC, both switches)

    Name—lossless-cnp
    PFC enabled on IEEE 802.1p code points—011 (lossless-3 forwarding class and priority), 100 (lossless-4 forwarding class and priority)

    Apply the CNP to both the Layer 2 and the Layer 3 interfaces (xe-0/0/20, xe-0/0/21, xe-0/040, and xe-0/0/41) to enable PFC on IEEE 802.1p code points 011 and 100.

    Hierarchical port scheduling (ETS)

    Hierarchical port scheduling (ETS) includes configuring:

    • Schedulers to assign bandwidth to traffic
    • Scheduler mapping to forwarding classes
    • Grouping of the forwarding classes (priorities) in forwarding class sets (priority groups)
    • A traffic control profile to assign bandwidth to the forwarding class set and to associate the forwarding class set with the scheduler mapping

    Hierarchical port scheduling also includes applying the hierarchical scheduler (defined in the traffic control profile) to the interfaces.

    This example focuses on configuring PFC across the Layer 2 and Layer 3 interfaces. To maintain this focus, this example includes the CLI statements needed to configure hierarchical port scheduling, but does not include descriptive explanations of the configuration. The Related Documentation section provides links to example documents that show how to configure hierarchical port scheduling.

    Apply the scheduling configuration to both the Layer 2 and the Layer 3 interfaces (xe-0/0/20, xe-0/0/21, xe-0/040, and xe-0/0/41).

    Configuration

    CLI Quick Configuration

    To configure PFC across Layer 3 interfaces, copy the following commands, paste them in a text file, remove the line breaks, change variables and details to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level. The same configuration applies to both QFX5100 Switch SW1 and QFX5100 Switch SW2:

    set interfaces xe-0/0/40 vlan-tagging
    set interfaces xe-0/0/40 unit 0 vlan-id 103
    set interfaces xe-0/0/40 unit 0 family inet address 100.103.1.2/24
    set interfaces xe-0/0/41 vlan-tagging
    set interfaces xe-0/0/41 unit 0 vlan-id 104
    set interfaces xe-0/0/41 unit 0 family inet address 100.104.1.2/24
    set interfaces xe-0/0/20 unit 0 family ethernet-switching interface-mode trunk
    set interfaces xe-0/0/20 unit 0 family ethernet-switching vlan members vlan105
    set interfaces xe-0/0/21 unit 0 family ethernet-switching interface-mode trunk
    set interfaces xe-0/0/21 unit 0 family ethernet-switching vlan members vlan106
    set interfaces irb unit 105 family inet address 100.105.1.1/24
    set interfaces irb unit 106 family inet address 100.106.1.1/24
    set vlans vlan105 vlan-id 105
    set vlans vlan106 vlan-id 106
    set vlans vlan105 l3-interface irb.105
    set vlans vlan106 l3-interface irb.106
    set class-of-service forwarding-classes class lossless-3 queue-num 3 no-loss
    set class-of-service forwarding-classes class lossless-4 queue-num 4 no-loss
    set class-of-service forwarding-classes class all-others queue-num 0
    set class-of-service classifiers ieee-802.1 lossless-3-4-ieee forwarding-class lossless-3 loss-priority low code-points 011
    set class-of-service classifiers ieee-802.1 lossless-3-4-ieee forwarding-class lossless-4 loss-priority low code-points 100
    set class-of-service congestion-notification-profile lossless-cnp input ieee-802.1 code-point 011 pfc
    set class-of-service congestion-notification-profile lossless-cnp input ieee-802.1 code-point 100 pfc
    set class-of-service schedulers lossless_sch transmit-rate 6g
    set class-of-service schedulers lossless_sch shaping-rate percent 100
    set class-of-service schedulers all-others_sch transmit-rate 4g
    set class-of-service scheduler-maps lossless_map forwarding-class lossless-3 scheduler lossless_sch
    set class-of-service scheduler-maps lossless_map forwarding-class lossless-4 scheduler lossless_sch
    set class-of-service scheduler-maps all-others_map forwarding-class all-others scheduler all-others_sch
    set class-of-service forwarding-class-sets lossless_fc_set class lossless-3
    set class-of-service forwarding-class-sets lossless_fc_set class lossless-4
    set class-of-service forwarding-class-sets all-others_fc_set class all-others
    set class-of-service traffic-control-profiles lossless_tcp scheduler-map lossless_map
    set class-of-service traffic-control-profiles lossless_tcp guaranteed-rate percent 60
    set class-of-service traffic-control-profiles lossless_tcp shaping-rate percent 100
    set class-of-service traffic-control-profiles all-others_tcp scheduler-map all-others_map
    set class-of-service traffic-control-profiles all-others_tcp guaranteed-rate percent 40
    set class-of-service interfaces xe-0/0/20 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
    set class-of-service interfaces xe-0/0/20 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
    set class-of-service interfaces xe-0/0/20 congestion-notification-profile lossless-cnp
    set class-of-service interfaces xe-0/0/20 unit 0 classifiers ieee-802.1 lossless-3-4-ieee
    set class-of-service interfaces xe-0/0/21 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
    set class-of-service interfaces xe-0/0/21 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
    set class-of-service interfaces xe-0/0/21 congestion-notification-profile lossless-cnp
    set class-of-service interfaces xe-0/0/21 unit 0 classifiers ieee-802.1 lossless-3-4-ieee
    set class-of-service interfaces xe-0/0/40 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
    set class-of-service interfaces xe-0/0/40 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
    set class-of-service interfaces xe-0/0/40 congestion-notification-profile lossless-cnp
    set class-of-service interfaces xe-0/0/40 classifiers ieee-802.1 lossless-3-4-ieee
    set class-of-service interfaces xe-0/0/41 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
    set class-of-service interfaces xe-0/0/41 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
    set class-of-service interfaces xe-0/0/41 congestion-notification-profile lossless-cnp
    set class-of-service interfaces xe-0/0/41 classifiers ieee-802.1 lossless-3-4-ieee

    Step-by-Step Procedure

    Step-by-Step Procedure

    The following step-by-step procedure shows you how to configure the interfaces, VLANs, lossless forwarding classes, classifiers, and PFC settings to enable PFC across Layer 3 interfaces. For completeness, the class-of-service scheduling configuration (hierarchical port scheduling) is included in the procedure, but without explanatory text. See the Related Documentation links for detailed examples of the scheduling elements of the configuration.

    1. Configure the Layer 3 interface VLANs and IP addresses:
      [edit interfaces]
      user@switch# set xe-0/0/40 vlan-tagging
      user@switch# set xe-0/0/40 unit 0 vlan-id 103
      user@switch# set xe-0/0/40 unit 0 family inet address 100.103.1.2/24
      user@switch# set xe-0/0/41 vlan-tagging
      user@switch# set xe-0/0/41 unit 0 vlan-id 104
      user@switch# set xe-0/0/41 unit 0 family inet address 100.104.1.2/24


    2. Configure the Layer 2 interface VLAN membership and interface mode:
      [edit interfaces]
      user@switch# set xe-0/0/20 unit 0 family ethernet-switching interface-mode trunk
      user@switch# set xe-0/0/20 unit 0 family ethernet-switching vlan members vlan105
      user@switch# set xe-0/0/21 unit 0 family ethernet-switching interface-mode trunk
      user@switch# set xe-0/0/21 unit 0 family ethernet-switching vlan members vlan106


    3. Configure the IRB interfaces and VLANs to transport incoming Layer 2 traffic assigned to VLANs vlan105 (of which interface xe-0/0/20 is a member) and vlan106 (of which interface xe-0/0/21 is a member) across Layer 3:
      [edit]
      user@switch# set interfaces irb unit 105 family inet address 100.105.1.1/24
      user@switch# set interfaces irb unit 106 family inet address 100.106.1.1/24
      user@switch# set vlans vlan105 vlan-id 105
      user@switch# set vlans vlan106 vlan-id 106
      user@switch# set vlans vlan105 l3-interface irb.105
      user@switch# set vlans vlan106 l3-interface irb.106


    4. Configure the lossless forwarding classes and a best-effort forwarding class for any other traffic that might use the interfaces:
      [edit class-of-service]
      user@switch# set forwarding-classes class lossless-3 queue-num 3 no-loss
      user@switch# set forwarding-classes class lossless-4 queue-num 4 no-loss
      user@switch# set forwarding-classes class all-others queue-num 0


    5. Configure the IEEE classifier for the Layer 2 and Layer 3 interfaces to classify incoming traffic into the lossless forwarding classes based on the IEEE 802.1p code point of the traffic:
      [edit class-of-service classifiers]
      user@switch# set ieee-802.1 lossless-3-4-ieee forwarding-class lossless-3 loss-priority low code-points 011
      user@switch# set ieee-802.1 lossless-3-4-ieee forwarding-class lossless-4 loss-priority low code-points 100


    6. Configure the CNP to enable PFC on the lossless priorities (the lossless forwarding classes mapped to IEEE 802.1p code points 3 and 4):
      [edit class-of-service congestion-notification-profile]
      user@switch# set lossless-cnp input ieee-802.1 code-point 011 pfc
      user@switch# set lossless-cnp input ieee-802.1 code-point 100 pfc


    7. Configure hierarchical scheduling to support the lossless configuration (included here for completeness; see the Related Documentation links for detailed examples of scheduling configuration) and apply it to the Layer 2 and Layer 3 interfaces:
      [edit class-of-service]
      set schedulers lossless_sch transmit-rate 6g
      set schedulers lossless_sch shaping-rate percent 100
      set schedulers all-others_sch transmit-rate 4g
      set scheduler-maps lossless_map forwarding-class lossless-3 scheduler lossless_sch
      set scheduler-maps lossless_map forwarding-class lossless-4 scheduler lossless_sch
      set scheduler-maps all-others_map forwarding-class all-others scheduler all-others_sch
      set forwarding-class-sets lossless_fc_set class lossless-3
      set forwarding-class-sets lossless_fc_set class lossless-4
      set forwarding-class-sets all-others_fc_set class all-others
      set traffic-control-profiles lossless_tcp scheduler-map lossless_map
      set traffic-control-profiles lossless_tcp guaranteed-rate percent 60
      set traffic-control-profiles lossless_tcp shaping-rate percent 100
      set traffic-control-profiles all-others_tcp scheduler-map all-others_map
      set traffic-control-profiles all-others_tcp guaranteed-rate percent 40
      set interfaces xe-0/0/20 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
      set interfaces xe-0/0/20 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
      set interfaces xe-0/0/21 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
      set interfaces xe-0/0/21 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
      set interfaces xe-0/0/40 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
      set interfaces xe-0/0/40 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp
      set interfaces xe-0/0/41 forwarding-class-set lossless_fc_set output-traffic-control-profile lossless_tcp
      set interfaces xe-0/0/41 forwarding-class-set all-others_fc_set output-traffic-control-profile all-others_tcp


    8. Apply the Layer 2 IEEE 802.1p classifier and the CNP to the Layer 3 interfaces:
      [edit class-of-service interfaces]
      user@switch# set xe-0/0/40 classifiers ieee-802.1 lossless-3-4-ieee
      user@switch# set xe-0/0/40 congestion-notification-profile lossless-cnp
      user@switch# set xe-0/0/41 classifiers ieee-802.1 lossless-3-4-ieee
      user@switch# set xe-0/0/41 congestion-notification-profile lossless-cnp


    9. Apply the Layer 2 IEEE 802.1p classifier and the CNP to the Layer 2 interfaces:
      [edit class-of-service interfaces]
      user@switch# xe-0/0/20 unit 0 classifiers ieee-802.1 lossless-3-4-ieee
      user@switch# xe-0/0/20 congestion-notification-profile lossless-cnp
      user@switch# xe-0/0/21 unit 0 classifiers ieee-802.1 lossless-3-4-ieee
      user@switch# xe-0/0/21 congestion-notification-profile lossless-cnp


    Results

    Display the results of the interface, VLAN, and class-of-service configurations (the system shows only the explicitly configured parameters; it does not show default parameters). The results are valid for both QFX5100 Switch SW1 and QFX5100 Switch SW2 because the same configuration is used on both switches.

    Display the results of the interface configuration:

    user@switch# show configuration interfaces
    xe-0/0/20 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members vlan105;
                }
            }
        }
    }
    xe-0/0/21 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members vlan106;
                }
            }
        }
    }
    xe-0/0/40 {
        vlan-tagging;
        unit 0 {
            vlan-id 103;                    
            family inet {
                address 100.103.1.2/24;
            }
        }
    }
    xe-0/0/41 {
        vlan-tagging;
        unit 0 {
            vlan-id 104;
            family inet {
                address 100.104.1.2/24;
            }
        }
    }
    irb {
        unit 105 {
            family inet {
                address 100.105.1.1/24;
            }
        }
        unit 106 {
            family inet {
                address 100.106.1.1/24;     
            }
        }
    }
    vlan {
        unit 105 {
            family inet {
                address 100.105.1.1/24;
            }
        }
        unit 106 {
            family inet {
                address 100.106.1.1/24;
            }
        }
    }


    Display the results of the vlan configuration:

    user@switch# show configuration vlans
    vlan105 {
        vlan-id 105;
        l3-interface irb.105;
    }
    vlan106 {
        vlan-id 106;
        l3-interface irb.106;
    }


    Display the results of the class-of-service configuration:

    user@switch# show configuration class-of-service
    classifiers {
        ieee-802.1 lossless-3-4-ieee {
            forwarding-class lossless-3 {
                loss-priority low code-points 011;
            }
            forwarding-class lossless-4 {
                loss-priority low code-points 100;
            }
        }
    }
    forwarding-classes {
        class lossless-3 queue-num 3 no-loss;
        class lossless-4 queue-num 4 no-loss;
        class all-others queue-num 0;
    }
    traffic-control-profiles {              
        lossless_tcp {
            scheduler-map lossless_map;
            shaping-rate percent 100;
            guaranteed-rate percent 60;
        }
        all-others_tcp {
            scheduler-map all-others_map;
            guaranteed-rate percent 40;
        }
    }
    forwarding-class-sets {
        lossless_fc_set {
            class lossless-3;
            class lossless-4;
        }
        all-others_fc_set {
            class all-others;
        }
    }
    congestion-notification-profile {
        lossless-cnp {
            input {
                ieee-802.1 {                
                    code-point 011 {
                        pfc;
                    }
                    code-point 100 {
                        pfc;
                    }
                }
            }
        }
    }
    interfaces {
        xe-0/0/20 {
            forwarding-class-set {
                lossless_fc_set {
                    output-traffic-control-profile lossless_tcp;
                }
                all-others_fc_set {
                    output-traffic-control-profile all-others_tcp;
                }
            }
            congestion-notification-profile lossless-cnp;
            unit 0 {
                classifiers {               
                    ieee-802.1 lossless-3-4-ieee;
                }
            }
        }
        xe-0/0/21 {
            forwarding-class-set {
                all-others_fc_set {
                    output-traffic-control-profile all-others_tcp;
                }
                lossless_fc_set {
                    output-traffic-control-profile lossless_tcp;
                }
            }
            congestion-notification-profile lossless-cnp;
            unit 0 {
                classifiers {
                    ieee-802.1 lossless-3-4-ieee;
                }
            }
        }
        xe-0/0/40 {
            forwarding-class-set {
                lossless_fc_set {           
                    output-traffic-control-profile lossless_tcp;
                }
                all-others_fc_set {
                    output-traffic-control-profile all-others_tcp;
                }
            }
            congestion-notification-profile lossless-cnp;
            classifiers {
                ieee-802.1 lossless-3-4-ieee;
            }
        }
        xe-0/0/41 {
            forwarding-class-set {
                lossless_fc_set {
                    output-traffic-control-profile lossless_tcp;
                }
                all-others_fc_set {
                    output-traffic-control-profile all-others_tcp;
                }
            }
            congestion-notification-profile lossless-cnp;
            classifiers {                   
                ieee-802.1 lossless-3-4-ieee;
            }
        }
    }
    scheduler-maps {
        lossless_map {
            forwarding-class lossless-3 scheduler lossless_sch;
            forwarding-class lossless-4 scheduler lossless_sch;
        }
        all-others_map {
            forwarding-class all-others scheduler all-others_sch;
        }
    }
    schedulers {
        lossless_sch {
            transmit-rate 6g;
            shaping-rate percent 100;
        }
        all-others_sch {
            transmit-rate 4g;
        }
    }                                    
    


    Tip: To quickly configure the switch, issue the load merge terminal command, and then copy the hierarchies and paste them into the switch terminal window.

    Verification

    To verify that the PFC across Layer 3 interfaces configuration has been created and is operating properly, perform these tasks:

    Verifying the Interface Configuration

    Purpose

    Verify that the Layer 2 Ethernet interfaces, Layer 3 IP interfaces, IRB interfaces, and VLAN interfaces have been created on the switch and are correctly configured.

    Action

    Display the switch interface configuration using the show configuration interfaces command:

    user@switch> show configuration interfaces
    xe-0/0/20 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members vlan105;
                }
            }
        }
    }
    xe-0/0/21 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members vlan106;
                }
            }
        }
    }
    xe-0/0/40 {
        vlan-tagging;
        unit 0 {
            vlan-id 103;                    
            family inet {
                address 100.103.1.2/24;
            }
        }
    }
    xe-0/0/41 {
        vlan-tagging;
        unit 0 {
            vlan-id 104;
            family inet {
                address 100.104.1.2/24;
            }
        }
    }
    irb {
        unit 105 {
            family inet {
                address 100.105.1.1/24;
            }
        }
        unit 106 {
            family inet {
                address 100.106.1.1/24;     
            }
        }
    }
    vlan {
        unit 105 {
            family inet {
                address 100.105.1.1/24;
            }
        }
        unit 106 {
            family inet {
                address 100.106.1.1/24;
            }
        }
    }

    Meaning

    The show configuration interfaces command displays all of the interfaces configured on the switch. The command output shows that:

    • Interfaces xe-0/0/20 and xe-0/0/21 are Ethernet interfaces (family ethernet-switching) in trunk interface mode. Interface xe-0/0/20 is a member of VLAN vlan105, and interface xe-0/0/21 is a member of VLAN vlan106.
    • Interfaces xe-0/0/40 and xe-0/0/41 are IP interfaces (family inet) with VLAN tagging enabled. Interface xe-0/0/40 has an IP address of 100.103.1.2/24 and a VLAN ID of 103. Interface xe-0/0/41 has an IP address of 100.104.1.2/24 and a VLAN ID of 104.
    • Two IRB interfaces are configured, IRB unit 105 with an IP address of 100.105.1.1/24 and IRB unit 106 with an IP address of 100.106.1.1/24.
    • Two VLAN interfaces are configured, VLAN unit 105 with an IP address of 100.105.1.1/24 (for IRB interface unit 105) and VLAN unit 106 with an IP address of 100.106.1.1/24 (for IRB interface unit 106).

    Verifying the VLAN Configuration

    Purpose

    Verify that VLANs have been created on the switch and are correctly configured.

    Action

    Display the VLAN configuration using the show configuration vlans command:

    user@switch> show configuration vlans
    vlan105 {
        vlan-id 105;
        l3-interface irb.105;
    }
    vlan106 {
        vlan-id 106;
        l3-interface irb.106;
    }

    Meaning

    The show configuration vlans command displays all of the VLANs configured on the switch. The command output shows that:

    • VLAN vlan105 has been configured with VLAN ID 105 on IRB interface irb.105.
    • VLAN vlan106 has been configured with VLAN ID 106 on IRB interface irb.106.

    Verifying the PFC Configuration (Congestion Notification Profile)

    Purpose

    Verify that PFC has been enabled on the correct IEEE 802.1p code points (priorities) in the CNP.

    Action

    Display the PFC configuration using the show configuration class-of-service congestion-notification-profile command:

    user@switch> show configuration class-of-service congestion-notification-profile
    lossless-cnp {
        input {
            ieee-802.1 {
                code-point 011 {
                    pfc;
                }
                code-point 100 {
                    pfc;
                }
            }
        }
    }
    

    Meaning

    The show configuration class-of-service congestion-notification-profile command displays all of the CNPs configured on the switch. The command output shows that:

    • The CNP named lossless-cnp is configured on the switch.
    • The CNP lossless-cnp enables PFC on IEEE 802.1p code points 100 and 100.

    Verify the Forwarding Class Configuration

    Purpose

    Verify that the two lossless forwarding classes and the best-effort forwarding class have been configured on the switch.

    Action

    Display the forwarding class configuration using the show configuration class-of-service forwarding-classes command:

    user@switch> show configuration class-of-service forwarding-classes
    class lossless-3 queue-num 3 no-loss;
    class lossless-4 queue-num 4 no-loss;
    class all-others queue-num 0;
    

    Meaning

    The show configuration class-of-service forwarding-classes command displays all of the forwarding classes configured on the switch (default forwarding classes are not displayed). The command output shows that:

    • Forwarding class lossless-3 is mapped to queue 3 and is configured as a lossless forwarding class (the no-loss attribute is applied)
    • Forwarding class lossless-4 is mapped to queue 4 and is configured as a lossless forwarding class (the no-loss attribute is applied)
    • Forwarding class all-others is mapped to queue 0. It is not a lossless forwarding class (the no-loss attribute is not applied).

    Verifying the Classifier Configuration

    Purpose

    Verify that the IEEE 802.1p classifier has been configured on the switch.

    Action

    Display the classifier configuration using the show configuration class-of-service classifiers command:

    user@switch> show configuration class-of-service classifiers
    ieee-802.1 lossless-3-4-ieee {
        forwarding-class lossless-3 {
            loss-priority low code-points 011;
        }
        forwarding-class lossless-4 {
            loss-priority low code-points 100;
        }
    }
    

    Meaning

    The show configuration class-of-service classifiers command displays all of the classifiers configured on the switch. The command output shows that the Layer 2 IEEE 802.1p classifier lossless-3-4-ieee classifiers traffic with the code point 011 into the lossless-3 forwarding class with a loss priority of low, and classifies traffic with the code point 100 into the lossless-4 forwarding class with a loss priority of low.

    Verifying the Interface CoS Configuration (Hierarchical Scheduling, PFC, and Classifier Mapping to Interfaces)

    Purpose

    Verify that the interfaces have the correct hierarchical scheduling, PFC, and classifier configurations.

    Action

    Display the interface CoS configuration using the show configuration class-of-service interfaces command:

    user@switch> show configuration class-of-service interfaces
    xe-0/0/20 {
        forwarding-class-set {
            lossless_fc_set {
                output-traffic-control-profile lossless_tcp;
            }
            all-others_fc_set {
                output-traffic-control-profile all-others_tcp;
            }
        }
        congestion-notification-profile lossless-cnp;
        unit 0 {
            classifiers {
                ieee-802.1 lossless-3-4-ieee;
            }
        }
    }
    xe-0/0/21 {
        forwarding-class-set {
            all-others_fc_set {
                output-traffic-control-profile all-others_tcp;
            }
            lossless_fc_set {
                output-traffic-control-profile lossless_tcp;
            }                               
        }
        congestion-notification-profile lossless-cnp;
        unit 0 {
            classifiers {
                ieee-802.1 lossless-3-4-ieee;
            }
        }
    }
    xe-0/0/40 {
        forwarding-class-set {
            lossless_fc_set {
                output-traffic-control-profile lossless_tcp;
            }
            all-others_fc_set {
                output-traffic-control-profile all-others_tcp;
            }
        }
        congestion-notification-profile lossless-cnp;
        classifiers {
            ieee-802.1 lossless-3-4-ieee;
        }
    }                                       
    xe-0/0/41 {
        forwarding-class-set {
            lossless_fc_set {
                output-traffic-control-profile lossless_tcp;
            }
            all-others_fc_set {
                output-traffic-control-profile all-others_tcp;
            }
        }
        congestion-notification-profile lossless-cnp;
        classifiers {
            ieee-802.1 lossless-3-4-ieee;
        }
    }
    

    Meaning

    The show configuration class-of-service interfaces command displays all of the CoS components configured on the switch interfaces. The command output shows that:

    • The configuration on Layer 2 Ethernet interfaces xe-0/0/20 and xe-0/0/21 includes:
      • Hierarchical scheduling—The forwarding class set lossless_fc_set with the traffic control profile lossless_tcp for the lossless traffic, and the forwarding class set all-others_fc_set with the traffic control profile all-others_tcp for the best-effort traffic are applied to both interfaces.
      • PFC—The lossless-cnp congestion notification profile is applied to both interfaces.
      • Classifiers—The Layer 2 IEEE 802.1p classifier lossless-3-4-ieee is applied to both interfaces.
    • The configuration on Layer 3 IP interfaces xe-0/0/40 and xe-0/0/41 includes:
      • Hierarchical scheduling—The forwarding class set lossless_fc_set with the traffic control profile lossless_tcp for the lossless traffic, and the forwarding class set all-others_fc_set with the traffic control profile all-others_tcp for the best-effort traffic are applied to both interfaces.
      • PFC—The lossless-cnp congestion notification profile is applied to both interfaces.
      • Classifiers—The Layer 2 IEEE 802.1p classifier lossless-3-4-ieee is applied to both interfaces. Traffic that would use a DSCP or a DSCP IPv6 classifier if it were configured uses the IEEE 802.1p classifier instead. Using the IEEE 802.1p classifier allows the interface to use PFC to pause traffic during periods of congestion to prevent packet loss.
     

    Related Documentation

     

    Published: 2015-03-23

    Supported Platforms

     

    Related Documentation

     

    Published: 2015-03-23