Switch Packet Buffer Tuning
Overview
The Switch packet buffer tuning, is a system aimed at enhancing network switch performance by avoiding congestion and packet drops. It refers to how a switch allocates packet buffer size based on traffic priority classes referred as Priority Groups (PG) instead of physical ports. Buffers temporarily store packets during congestion. Each PG competes for shared memory in the switch buffer pool.
In Data Center Bridging (DCB) or QoS (Quality of Service) implementations, traffic is grouped based on priority. Each group corresponds to a certain class of service, for example, storage traffic, control traffic, bulk data, best-effort, etc. Tuning the packet buffer size at the PG level ensures that each class of traffic gets the right amount of buffer space to avoid congestion and packet drops.
The section explains the configuration of packet buffers and CLIs introduced to implement the functionalities.
Feature Characteristics
OcNOS can be customized to respond to Priority-based Flow Control (PFC) traffic to manage when to pause frames to prevent packet loss.
Custom Device Responses and Ease of Configuration: Switch Packet Buffer Tuning is indeed designed to allow for custom device responses to Priority-based Flow Control (PFC) pause storms. This feature grants users the ability to control precisely when the switch transmits pause frames to upstream devices. Furthermore, it simplifies configuration by enabling the global adjustment of buffer limits. Pausing the frames temporarily halt the traffic transmission with the link partner which effectively prevents the packet loss due to congestion.
Priority Group (PG) Configuration: Enables to configure each Priority Group (PG) port with a specific limit on the amount of shared memory it can receive. Priority groups are essential for classifying ingress packets based on their input priority.
PFC XOFF Threshold and XON Offsets: PGs can be configured using PFC XOFF threshold and XON offsets. XOFF threshold is an absolute value while XON limit is an offset from the XOFF limit.When the shared occupancy or receive buffer of an ingress PG reaches its configured PFC XOFF limit, the PG triggers the transmission of a PFC pause frame to its egress peer. This action signals the peer to stop sending packets, providing the device with the necessary time to alleviate traffic congestion. The primary purpose is to ensure that, during congestion at an egress port, the ingress port generates PFC frames based on these user-defined thresholds.
XOFF threshold default value is different for each platform, as follows:
• Tomahawk3 (TH3) platforms — 2 KB
• Tomahawk4 (TH4) platforms — 57409 KB
• Tomahawk 5 (TH5) platforms — 81659 KB
• Trident3 (TD3) platforms — 2 KB
• Trident 4 (TD4) platforms — 65489 KB
Queue-Specific Buffer Limits with Dynamic Threshold (Alpha Value): Beyond PG configuration, Switch Packet Buffer Tuning also enables users to adjust the limit of buffers that each individual queue can consume from the buffer shared pool. This fine-grained control is managed by a dynamic threshold setting, often referred to as the alpha value. Users can configure this dynamic threshold for different queues, thereby regulating their access to the shared buffer.
The implementation of Switch Packet Buffer Tuning is intended for LTSW chipsets (Tomahawk4 (TH4) platforms, Tomahawk 5 (TH5) platforms, TD4) and DC chipsets (Tomahawk3 (TH3) platforms, TD3).
Limitation:
Configuring XOFF threshold imposes static limit of PG queue size which take precedence over dynamic threshold. Hence, users can configure either XOFF threshold or dynamic threshold at a time.
Performing add, delete, or update operations on PG profiles will cause a system-wide traffic interruption, resulting in configured session flaps.
QoS buffer configuration using flow-control buffer commands are only applicable to ports or priorities only when flow control is enabled. The flow control buffer configurations are optional. If the configurations are not done, defaults are used.
Benefits
Enables user to:
Customize device responses to PFC pause storms.
Avoid packet loss by pausing the traffic transmission using the PFC.
Globally adjust the limits of the buffers, leading to an ease of configuration.
Prerequisites
To adjust the PG queue size using dynamic threshold, standard traffic forwarding is sufficient. However, for modifying XON or XOFF thresholds, the interface must have PFC enabled.
Configuration
This section explain how to configure ingress QoS profile and egress policy mapping.
Topology
The following topology shows PFC threshold values on priority group interfaces xe1 of Rotuer 1.
PFC
Configuration using Single Router
The following procedure shows tje QoS profile mapping to ingress traffic to Priority Groups (PGs) and sets the XON/XOFF thresholds for the desired lossless priority.
1. Assign QoS profiles mapping to priority group 3 and set dynamic threshold.
OcNOS(config)#qos profile ingress-pg-map PG_XOFF_TEST
OcNOS(config-ingress-pg-queue-map)#priority-group 3 dynamic-threshold 3
OcNOS(config-ingress-pg-queue-map)#commit
OcNOS(config)#int xe33
OcNOS(config-if)#qos map-profile ingress-pg-map PG_XOFF_TEST
OcNOS(config)#commit
Refer to
PG_XOFF_TEST section for validation.
2. Configure XON and XOFF thresholds for the priority group 3.
OcNOS(config)#qos profile ingress-pg-map PG_XOFF_TEST
OcNOS(config-ingress-pg-queue-map)#priority-group 3 xon-threshold 4000 xoff-threshold 2000
OcNOS(config-ingress-pg-queue-map)#commit
Refer to
PG_XOFF_TEST section for validation.
3. Assign QoS profiles mapping to priority group 1 and set dynamic threshold.
OcNOS(config)#qos profile ingress-pg-map PG_LOSSLESS
OcNOS(config-ingress-pg-queue-map)#priority-group 1 dynamic-threshold 3
OcNOS(config-ingress-pg-queue-map)#commit
OcNOS(config-ingress-pg-queue-map)#
OcNOS(config)#
OcNOS(config)#int xe33
OcNOS(config-if)#qos map-profile ingress-pg-map PG_LOSSLESS
OcNOS(config-if)#comm
Refer to
PG_LOSSLESS section for validation.
4. Configure XON and XOFF thresholds for the priority group 1.
OcNOS(config)#qos profile ingress-pg-map PG_LOSSLESS
OcNOS(config-ingress-pg-queue-map)#priority-group 1 xon-threshold 6000 xoff-threshold 3000
OcNOS(config-ingress-pg-queue-map)#commit
OcNOS(config-ingress-pg-queue-map)#
OcNOS(config)#
Validation
PG_XOFF_TEST
Verify the ingress (I) and egress (E) queue statistics, including queue size for interface xe33 pg-3.
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
xe33 q7 (E) 0 25 1600 0 0
xe33 pg-q3 (I) 1259840 NA NA NA NA
xe34 q3 (E) 1272032 5087446 651193088 0 0
xe34 q7 (E) 0 26 1664 0 0
Look for the configured Priority Group pg-3 (I) on xe33 and the corresponding egress queue q3 (E) on xe34. Ingress PG queue size (pg-3 on xe33) is non-zero. This shows the ingress buffer is holding traffic before the PFC is triggered.
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
xe33 q7 (E) 0 29 1856 0 0
xe33 pg-q3 (I) 1268984 NA NA NA NA
xe34 q3 (E) 1284224 5878738 752478464 0 0
xe34 q7 (E) 0 30 1920 0 0
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
xe33 q7 (E) 0 31 1984 0 0
xe33 pg-q3 (I) 1262888 NA NA NA NA
xe34 q3 (E) 1256792 6104794 781413632 0 0
xe34 q7 (E) 0 31 1984 0 0
Verify the number of PFC pause frames sent and received on xe33 - pg3 interface and priority.
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 231708 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 236432 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 238000 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
The PFC pause frame increases on the ingress interface xe33 on pg-3 when congestion is detected. This indicates that the switch is signaling the sender to stop sending traffic for this priority.
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
xe33 q7 (E) 0 47 3008 0 0
xe33 pg-q3 (I) 1251712 NA NA NA NA
xe34 q3 (E) 1265936 9271354 1186733312 0 0
xe34 q7 (E) 0 47 3008 0 0
OcNOS#sh qos-profile ingress-pg-map interface xe33
profile name: PG_XOFF_TEST
mapping:
priority-group 0 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 1 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 2 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 3 xon-threshold 48 xoff-threshold 32 dynamic-threshold 3
priority-group 4 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 5 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 6 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 7 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
OcNOS#
Verify the XON and XOFF threshold value on interface xe33.
OcNOS#sh qos-profile ingress-pg-map interface xe33
profile name: PG_XOFF_TEST
mapping:
priority-group 0 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 1 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 2 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 3 xon-threshold 4000 xoff-threshold 2000 dynamic-threshold 3
priority-group 4 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 5 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 6 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 7 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
OcNOS#
PG_LOSSLESS
Verify the ingress (I) and egress (E) queue statistics, including queue size for interface xe33 pg-3.
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cd30 mc-q3 (E) 0 1 82 0 0
xe33 q7 (E) 0 77 4928 0 0
xe33 pg-q3 (I) 1283970 NA NA NA NA
xe34 q3 (E) 1283208 15150338 1939243264 0 0
xe34 q7 (E) 0 77 4928 0 0
Look for the configured Priority Group pg-3 (I) on xe33 and the corresponding egress queue q3 (E) on xe34. Ingress PG queue size (pg-3 on xe33) is non-zero. This shows the ingress buffer is holding traffic before the PFC is triggered.
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cd30 mc-q3 (E) 0 1 82 0 0
xe33 q7 (E) 0 78 4992 0 0
xe33 pg-q3 (I) 1283970 NA NA NA NA
xe34 q3 (E) 1284224 15376274 1968163072 0 0
xe34 q7 (E) 0 78 4992 0 0
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 1 86 0 0
cd30 mc-q3 (E) 0 1 82 0 0
xe33 q7 (E) 0 84 5376 0 0
xe33 mc-q0 (E) 0 1 82 0 0
xe33 pg-q3 (I) 1283970 NA NA NA NA
xe34 q3 (E) 1281176 16618658 2127188224 0 0
xe34 q7 (E) 0 85 5440 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 773228 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 792031 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 829642 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 0 0
xe33 2 0 0
xe33 3 848500 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 102.61 100208 8.55 16701
xe34 0.00 0 102.61 100208
OcNOS#sh int cou d
Interface xe33
Rx EGR Port Unavail: 3615
OcNOS#sh int cou indiscard-stats
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
| Interface | Port Block Drops | Vlan Discards | ACL/QOS Drops | Policy Discards | EGR Port Unavail | IBP Discards | Total Discards |
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
xe33 0 0 0 0 3615 0 3615
OcNOS#
Repeatedly execute the following show command during congestion. Focus on the Q-Size for the interface xe33
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 847.74 827867 0.00 0
xe34 0.00 0 98.02 95724
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 727.41 710363 0.14 281
xe34 0.00 0 102.44 100034
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 372.03 363306 0.43 845
xe34 0.00 0 98.20 95903
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 165.98 162089 0.64 1242
xe34 0.00 0 100.30 97945
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 103.23 100808 0.71 1387
xe34 0.00 0 102.52 100118
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 8 688 0 0
cd30 mc-q3 (E) 0 3 246 0 0
cd32 mc-q3 (E) 0 3 246 0 0
xe33 q7 (E) 0 56 3652 0 0
xe33 mc-q0 (E) 0 2 164 0 0
xe33 pg-q1 (I) 1262634 NA NA NA NA
xe34 q1 (E) 1281430 8638672 1105750016 35525383 4547249024
xe34 q7 (E) 0 56 3652 0 0
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 8 688 0 0
cd30 mc-q3 (E) 0 3 246 0 0
cd32 mc-q3 (E) 0 3 246 0 0
xe33 q7 (E) 0 58 3780 0 0
xe33 mc-q0 (E) 0 2 164 0 0
xe33 pg-q1 (I) 1264412 NA NA NA NA
xe34 q1 (E) 1263142 9093064 1163912192 35525383 4547249024
xe34 q7 (E) 0 58 3780 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 78713 0
xe33 2 0 0
xe33 3 0 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 81841 0
xe33 2 0 0
xe33 3 0 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 86533 0
xe33 2 0 0
xe33 3 0 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 8 688 0 0
cd30 mc-q3 (E) 0 3 246 0 0
cd32 mc-q3 (E) 0 3 246 0 0
xe33 q7 (E) 0 70 4548 0 0
xe33 mc-q0 (E) 0 2 164 0 0
xe33 pg-q1 (I) 1265682 NA NA NA NA
xe34 q1 (E) 1278382 11468368 1467951104 35525383 4547249024
xe34 q7 (E) 0 70 4548 0 0
OcNOS#sh qos-profile ingress-pg-map interface xe33
profile name: PG_LOSSLESS
mapping:
priority-group 0 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 1 xon-threshold 48 xoff-threshold 32 dynamic-threshold 3
priority-group 2 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 3 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 4 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 5 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 6 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 7 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
Verify the XON and XOFF threshold value on interface xe33.
OcNOS#sh qos-profile ingress-pg-map interface xe33
profile name: PG_LOSSLESS
mapping:
priority-group 0 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 1 xon-threshold 6000 xoff-threshold 3000 dynamic-threshold 3
priority-group 2 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 3 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 4 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 5 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 6 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
priority-group 7 xon-threshold 48 xoff-threshold 32 dynamic-threshold 8
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 8 688 0 0
cd30 mc-q3 (E) 0 3 246 0 0
cd32 mc-q3 (E) 0 3 246 0 0
xe33 q7 (E) 0 83 5380 0 0
xe33 mc-q0 (E) 0 2 164 0 0
xe33 pg-q1 (I) 1283970 NA NA NA NA
xe34 q1 (E) 1287526 14074725 1801564800 35525383 4547249024
xe34 q7 (E) 0 84 5444 0 0
OcNOS#sh int cou que
E - Egress, I - Ingress, Q-Size is in bytes
* indicates monitor is active
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+------------------+---------------------+-------------------+-----------------+-------------------+-----------------+-------------------+
cpu nd (E) 0 8 688 0 0
cd30 mc-q3 (E) 0 3 246 0 0
cd32 mc-q3 (E) 0 3 246 0 0
xe33 q7 (E) 0 86 5572 0 0
xe33 mc-q0 (E) 0 2 164 0 0
xe33 pg-q1 (I) 1283970 NA NA NA NA
xe34 q1 (E) 1287526 14527797 1859558016 35525383 4547249024
xe34 q7 (E) 0 86 5572 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 412811 0
xe33 2 0 0
xe33 3 0 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh priority-flow-control statistics all
interface pri pause sent pause received
======================================================
xe33 0 0 0
xe33 1 450417 0
xe33 2 0 0
xe33 3 0 0
xe33 4 0 0
xe33 5 0 0
xe33 6 0 0
xe33 7 0 0
xe34 0 0 0
xe34 1 0 0
xe34 2 0 0
xe34 3 0 0
xe34 4 0 0
xe34 5 0 0
xe34 6 0 0
xe34 7 0 0
OcNOS#sh int cou rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
xe33 110.91 108309 8.13 15882
xe34 0.00 0 102.65 100247
OcNOS#sh int cou d
Interface xe33
Rx Port Block Drops: 12737520
Rx EGR Port Unavail: 12741164
Rx IBP Discards: 394956
Interface xe34
Rx Port Block Drops: 1
Rx EGR Port Unavail: 1
Tx Unicast Queue Drops: 35525383
OcNOS#sh int cou d
Interface xe33
Rx Port Block Drops: 12737520
Rx EGR Port Unavail: 12741164
Rx IBP Discards: 413773
Interface xe34
Rx Port Block Drops: 1
Rx EGR Port Unavail: 1
Tx Unicast Queue Drops: 35525383
OcNOS#sh int cou d
Interface xe33
Rx Port Block Drops: 12737520
Rx EGR Port Unavail: 12741164
Rx IBP Discards: 441995
Interface xe34
Rx Port Block Drops: 1
Rx EGR Port Unavail: 1
Tx Unicast Queue Drops: 35525383
OcNOS#sh int cou indiscard-stats
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
| Interface | Port Block Drops | Vlan Discards | ACL/QOS Drops | Policy Discards | EGR Port Unavail | IBP Discards | Total Discards |
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
xe33 12737520 0 0 0 12741164 620799 13361988
xe34 1 0 0 0 1 0 1
OcNOS#sh int cou indiscard-stats
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
| Interface | Port Block Drops | Vlan Discards | ACL/QOS Drops | Policy Discards | EGR Port Unavail | IBP Discards | Total Discards |
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
xe33 12737520 0 0 0 12741164 649055 13390244
xe34 1 0 0 0 1 0 1
OcNOS#
Topology
The topology involves four VTEP routers, hosts and two spines.
PFC using Priority Group
Configuration using Spine and Leaf nodes
This procedure outlines the steps to configure the switch packet buffer tuning settings, primarily focusing on Quality of Service (QoS) and Priority Flow Control (PFC) configurations.
Execute the following steps to configure the QoS profiles and policy maps globally on Spine and Leaf nodes.
1. Define QoS profiles mapping of packet priorities to priority groups (PGs) and set congestion thresholds (XON/XOFF) for PFC enabled PGs.
#configure terminal
(config)#qos enable
(config)#qos statistics
(config)#qos profile ingress-pg-map default
(config-ingress-pg-queue-map)#priority-group 0 dynamic-threshold 5
(config-ingress-pg-queue-map)#priority-group 1 xon-offset 1200 xoff-threshold 2400
config-ingress-pg-queue-map)#exit
(config)#qos profile ingress-pg-map pg2
(config-ingress-pg-queue-map)#priority-group 0 xon-offset 200 dynamic-threshold 1
(config-ingress-pg-queue-map)#priority-group 3 xon-offset 1000 xoff-threshold 2000
(config-ingress-pg-queue-map)#priority-group 5 xon-offset 2000 dynamic-threshold 9
(config-ingress-pg-queue-map)#exit
2. Configure QoS class maps (c1, c2, c3) and policy maps.
(config)#class-map type qos match-all c1
(config-cmap-qos)#match precedence routine
(config-cmap-qos)#exit
(config)#class-map type qos match-all c2
(config-cmap-qos)#match precedence flashoverride
(config-cmap-qos)#exit
(config)#class-map type qos match-all c3
(config-cmap-qos)#match dscp af11
(config-cmap-qos)#exit
(config)#policy-map type qos p1
(config-pmap-qos)#class type qos c1
(config-pmap-c-qos)#police cir 100 mbps pir 500 mbps
(config-pmap-c-qos)#exit
(config-pmap-qos)# class type qos c2
(config-pmap-c-qos)# police cir 500 mbps pir 1 gbps
(config-pmap-c-qos)# exit
(config-pmap-qos)#class type qos c3
(config-pmap-c-qos)#police cir 2 gbps pir 5 gbps
(config-pmap-c-qos)#exit
(config-pmap-qos)#exit
3. Apply the custom ingress PG map and configure PFC settings on relevant interfaces.
(config)#interface ethernet3/1
(config-if)#load-interval 30
(config-if)#ip address 101.1.2.2/24
(config-if)#ipv6 address 1102::2/64
(config-if)#lmtu 9216
(config-if)#qos map-profile ingress-pg-map pg2
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
4. Set PFC mode and enable it for specific priorities (0-7) on interfaces like ethernet1/1, ethernet2/1, ethernet30/1, ethernet32/1, and ethernet64/1.
(config)#interface ethernet1/1
(config-if)#priority-flow-control mode on
(config-if)#priority-flow-control advertise-local-config
(config-if)#priority-flow-control enable priority 0 1 2 3 4 5 6 7
(config-if)#load-interval 30
(config-if)#ip address 104.1.1.2/24
(config-if)#ipv6 address 1401::2/64
(config-if)#mtu 9216
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
(config)#interface ethernet2/1
(config-if)#priority-flow-control mode on
(config-if)#priority-flow-control advertise-local-config
(config-if)#priority-flow-control enable priority 0 1 2 3 4 5 6 7
(config-if)#load-interval 30
(config-if)#ip address 101.1.1.2/24
(config-if)#ipv6 address 1101::2/64
(config-if)#mtu 9216
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
(config)#interface ethernet3/1
(config-if)#load-interval 30
(config-if)#ip address 101.1.2.2/24
(config-if)#ipv6 address 1102::2/64
(config-if)#mtu 9216
(config-if)#qos map-profile ingress-pg-map pg2
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
(config)#interface ethernet30/1
(config-if)#priority-flow-control mode on
(config-if)#priority-flow-control advertise-local-config
(config-if)#priority-flow-control enable priority 0 1 2 3 4 5 6 7
(config-if)#load-interval 30
(config-if)#ip address 102.1.2.2/24
(config-if)#ipv6 address 1202::2/64
(config-if)#mtu 9216
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
(config)#interface ethernet31/1
(config-if)#load-interval 30
(config-if)#ip address 103.1.1.2/24
(config-if)#ipv6 address 1301::2/64
(config-if)#mtu 9216
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
(config)#interface ethernet32/1
(config-if)#priority-flow-control mode on
(config-if)#priority-flow-control advertise-local-config
(config-if)#priority-flow-control enable priority 0 1 2 3 4 5 6 7
(config-if)#load-interval 30
(config-if)#ip address 103.1.2.2/24
(config-if)#ipv6 address 1302::2/64
(config-if)#mtu 9216
(config-if)#ipv6 router ospf area 0.0.0.0 instance-id 0
5. Configure queuing policy map (Q1) with rate shaping and Explicit Congestion Notification (ECN) threshold to queues q0, q1 and q4.
(config)#policy-map type queuing default Q1
(config-pmap-que-def)#class type queuing default q0
(config-pmap-c-que-def)#shape 100 mbps
(config-pmap-c-que-def)#priority
(config-pmap-c-que-def)#random-detect green min-threshold 400 max-threshold 500 yellow min-threshold 200 max-threshold 300 red min-threshold 50 max-threshold 100 packets ecn
(config-pmap-queuing-class)#exit
(config-pmap-que-def)#class type queuing default q1
(config-pmap-c-que-def)#shape 2 gbps
(config-pmap-c-que-def)#priority
(config-pmap-c-que-def)#random-detect green min-threshold 500 max-threshold 600 yellow min-threshold 300 max-threshold 400 red min-threshold 100 max-threshold 200 packets ecn
(config-pmap-c-que-def)#exit
(config-pmap-que-def)#class type queuing default q4
(config-pmap-c-que-def)#shape 500 mbps
(config-pmap-c-que-def)#priority
(config-pmap-c-que-def)#random-detect green min-threshold 550 max-threshold 600 yellow min-threshold 400 max-threshold 500 red min-threshold 300 max-threshold 400 packets ecn
(config-pmap-c-que-def)#exit
6. Configure Interior Gateway Protocol (IGP - OSPF) and External Gateway Protocol (EGP - BGP) to establish an eBGP-based spine-leaf fabric.
(config)#router ospf 100
(config-router)#ospf router-id 100.1.1.1
(config-router)#network 100.1.1.1/32 area 0.0.0.0
(config-router)#network 101.1.1.0/24 area 0.0.0.0
(config-router)#network 101.1.2.0/24 area 0.0.0.0
(config-router)#network 102.1.1.0/24 area 0.0.0.0
(config-router)#network 102.1.2.0/24 area 0.0.0.0
(config-router)#network 103.1.1.0/24 area 0.0.0.0
(config-router)#network 103.1.2.0/24 area 0.0.0.0
(config-router)#network 104.1.1.0/24 area 0.0.0.0
(config)#router ipv6 ospf
(config-router)#router-id 100.1.1.1
(config)#router bgp 64001
(config-router)#bgp unnumbered-mode
(config-router)#neighbor ethernet31/1 remote-as external
(config-router)#neighbor ethernet31/1 as-origination-interval 1
(config-router)#neighbor ethernet31/1 advertisement-interval 0
(config-router)#neighbor ethernet31/1 fall-over bfd
(config-router)#neighbor ethernet1/1 remote-as external
(config-router)#neighbor ethernet1/1 as-origination-interval 1
(config-router)#neighbor ethernet1/1 advertisement-interval 0
(config-router)#neighbor ethernet1/1 fall-over bfd
(config-router)#neighbor ethernet32/1 remote-as external
(config-router)#neighbor ethernet32/1 as-origination-interval 1
(config-router)#neighbor ethernet32/1 advertisement-interval 0
(config-router)#neighbor ethernet32/1 fall-over bfd
(config-router)#neighbor ethernet64/1 remote-as external
(config-router)#neighbor ethernet64/1 as-origination-interval 1
(config-router)#neighbor ethernet64/1 advertisement-interval 0
(config-router)#neighbor ethernet64/1 fall-over bfd
(config-router)#neighbor ethernet3/1 remote-as external
(config-router)#neighbor ethernet3/1 as-origination-interval 1
(config-router)#neighbor ethernet3/1 advertisement-interval 0
(config-router)#neighbor ethernet3/1 fall-over bfd
(config-router)#neighbor ethernet2/1 remote-as external
(config-router)#neighbor ethernet2/1 as-origination-interval 1
(config-router)#neighbor ethernet2/1 advertisement-interval 0
(config-router)#neighbor ethernet2/1 fall-over bfd
(config-router)#neighbor ethernet30/1 remote-as external
(config-router)#neighbor ethernet30/1 as-origination-interval 1
(config-router)#neighbor ethernet30/1 advertisement-interval 0
(config-router)#neighbor ethernet30/1 fall-over bfd
(config-router)#exit-unnumbered-mode
(config-router)#address-family ipv4 unicast
(config-router-af)#network 100.1.1.1/32
(config-router-af)#max-paths ebgp 10
(config-router-af)#redistribute connected
(config-router)#bgp v4-unnumbered-mode
(config-router-v4-unnum)#neighbor ethernet31/1 activate
(config-router-v4-unnum)#neighbor ethernet1/1 activate
(config-router-v4-unnum)#neighbor ethernet32/1 activate
(config-router-v4-unnum)#neighbor ethernet64/1 activate
(config-router-v4-unnum)#neighbor ethernet3/1 activate
(config-router-v4-unnum)#neighbor ethernet2/1 activate
(config-router-v4-unnum)#neighbor ethernet30/1 activate
(config-router-v4-unnum)#exit-v4-unnumbered-mode
(config-router-af)#exit-address-family
(config-router)#exit
7. Apply queuing service policies with rate shaping on leaf interfaces, ensuring proper rate limiting and buffer allocation on the egress side.
(config)#interface cd1/1
(config-if)#description Connected-cd1/1-7040
(config-if)# priority-flow-control mode auto
(config-if)#load-interval 30
(config-if)#ip address 201.1.1.1/24
(config-if)#ipv6 address 2101::1/64
(config-if)#mtu 9216
(config-if)#service-policy type queuing output ETS1-SP2
(config-if)#shape rate 350 mbps burst 1000
(config-if)# ipv6 router ospf area 0.0.0.0 instance-id 0
(config-if)# lldp-agent
(config-if)# exit
Sample Configuration
Spine1
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
!
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA.PLEASE REFINE FROM USING IT"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id rocev2-dest-qpairs
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port rocev2-dest-qpairs next-hdr
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Spine1-TH5-7001
port ethernet30 breakout 1X100g serdes 25g
port ethernet32 breakout 1X100g serdes 25g
port ethernet64 breakout 1X100g serdes 25g
port ethernet31 breakout 1X100g serdes 25g
port ethernet2 breakout 1X100g serdes 25g
port ethernet3 breakout 1X100g serdes 25g
port ethernet1 breakout 1X100g serdes 25g
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
dynamic-load-balance enable
dynamic-load-balance mode fixed
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
lldp notification-interval 1000
fault-management enable
maximum-paths 64
!
class-map type qos match-all c1
match precedence routine
!
class-map type qos match-all c2
match precedence flashoverride
!
class-map type qos match-all c3
match dscp af11
!
policy-map type qos p1
class type qos c1
police cir 100 mbps pir 500 mbps
exit
class type qos c2
police cir 500 mbps pir 1 gbps
exit
class type qos c3
police cir 2 gbps pir 5 gbps
exit
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default Q1
class type queuing default q0
shape 100 mbps
priority
random-detect green min-threshold 400 max-threshold 500 yellow min-threshold 200 max-threshold 300 red min-threshold 50 max-threshold 100 packets ecn
exit
class type queuing default q1
shape 2 gbps
priority
random-detect green min-threshold 500 max-threshold 600 yellow min-threshold 300 max-threshold 400 red min-threshold 100 max-threshold 200 packets ecn
exit
class type queuing default q4
shape 500 mbps
priority
random-detect green min-threshold 550 max-threshold 600 yellow min-threshold 400 max-threshold 500 red min-threshold 300 max-threshold 400 packets ecn
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface ethernet1/1
description Connected-ce1-7042
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 104.1.1.2/24
ipv6 address 1401::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet2/1
description Connected-cd2/1-7043
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 101.1.1.2/24
ipv6 address 1101::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet3/1
description Connected-cd3/1-7043
load-interval 30
ip address 101.1.2.2/24
ipv6 address 1102::2/64
mtu 9216
qos map-profile ingress-pg-map pg2
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet4
!
interface ethernet5
!
interface ethernet29
!
interface ethernet30/1
description Connected-Ethernet30/1-800G-7018
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 102.1.2.2/24
ipv6 address 1202::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet31/1
description Connected-cd0/1-7013
load-interval 30
ip address 103.1.1.2/24
ipv6 address 1301::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet32/1
description Connected-cd10/1-7013
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 103.1.2.2/24
ipv6 address 1302::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
!
interface ethernet63
!
interface ethernet64/1
description Connected-Ethernet0/1-800G-7018
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 102.1.1.2/24
ipv6 address 1201::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo
ip address 127.0.0.1/8
ip address 100.1.1.1/32 secondary
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface mgmt1
!
interface mgmt2
!
exit
!
router ospf 100
ospf router-id 100.1.1.1
network 100.1.1.1/32 area 0.0.0.0
network 101.1.1.0/24 area 0.0.0.0
network 101.1.2.0/24 area 0.0.0.0
network 102.1.1.0/24 area 0.0.0.0
network 102.1.2.0/24 area 0.0.0.0
network 103.1.1.0/24 area 0.0.0.0
network 103.1.2.0/24 area 0.0.0.0
network 104.1.1.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 100.1.1.1
!
router bgp 64001
!
bgp unnumbered-mode
neighbor ethernet31/1 remote-as external
neighbor ethernet31/1 as-origination-interval 1
neighbor ethernet31/1 advertisement-interval 0
neighbor ethernet31/1 fall-over bfd
neighbor ethernet1/1 remote-as external
neighbor ethernet1/1 as-origination-interval 1
neighbor ethernet1/1 advertisement-interval 0
neighbor ethernet1/1 fall-over bfd
neighbor ethernet32/1 remote-as external
neighbor ethernet32/1 as-origination-interval 1
neighbor ethernet32/1 advertisement-interval 0
neighbor ethernet32/1 fall-over bfd
neighbor ethernet64/1 remote-as external
neighbor ethernet64/1 as-origination-interval 1
neighbor ethernet64/1 advertisement-interval 0
neighbor ethernet64/1 fall-over bfd
neighbor ethernet3/1 remote-as external
neighbor ethernet3/1 as-origination-interval 1
neighbor ethernet3/1 advertisement-interval 0
neighbor ethernet3/1 fall-over bfd
neighbor ethernet2/1 remote-as external
neighbor ethernet2/1 as-origination-interval 1
neighbor ethernet2/1 advertisement-interval 0
neighbor ethernet2/1 fall-over bfd
neighbor ethernet30/1 remote-as external
neighbor ethernet30/1 as-origination-interval 1
neighbor ethernet30/1 advertisement-interval 0
neighbor ethernet30/1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 100.1.1.1/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor ethernet31/1 activate
neighbor ethernet1/1 activate
neighbor ethernet32/1 activate
neighbor ethernet64/1 activate
neighbor ethernet3/1 activate
neighbor ethernet2/1 activate
neighbor ethernet30/1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
Leaf 1
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
logging logfile device_debug_log 2
!
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA.PLEASE REFINE FROM USING IT"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id rocev2-dest-qpairs
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port rocev2-dest-qpairs next-hdr
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Leaf1-TH4-7043
port cd3 breakout 1X100g serdes 25g
port cd4 breakout 1X100g serdes 25g
port cd2 breakout 1X100g serdes 25g
port cd1 breakout 1X100g serdes 25g
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
dynamic-load-balance enable
dynamic-load-balance mode fixed
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
feature rsyslog
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific data-center-bridging
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
set lldp tx-fast-init 1
lldp notification-interval 5
fault-management enable
maximum-paths 64
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 300 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 200 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 250 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 150 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS3
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS4
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
dynamic-threshold 5
bandwidth 500 mbps
exit
class type queuing default q1
priority
bandwidth 170 mbps
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 200 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface sa10
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
!
interface cd1/1
description Connected-cd1/1-7040
priority-flow-control mode auto
load-interval 30
ip address 201.1.1.1/24
ipv6 address 2101::1/64
mtu 9216
service-policy type queuing output ETS1-SP2
shape rate 350 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd2/1
description Connected-Ethernet2/1-800G-7001
priority-flow-control mode auto
load-interval 30
ip address 101.1.1.1/24
ipv6 address 1101::1/64
mtu 9216
service-policy type queuing output ETS1-SP1
shape rate 500 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd3/1
description Connected-Ethernet3/1-800G-7001
load-interval 30
ip address 101.1.2.1/24
ipv6 address 1102::1/64
mtu 9216
service-policy type queuing output ETS2-SP1
shape rate 410 mbps burst 1000
qos map-profile ingress-pg-map pg2
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface cd4/1
description Connected-cd1/4-7040
priority-flow-control mode auto
load-interval 30
ip address 201.1.2.1/24
ipv6 address 2102::1/64
mtu 9216
service-policy type queuing output ETS2-SP2
shape rate 250 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd5
!
interface cd6
description Connected-Spirent-99.15-1/97
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 10.1.2.1/24
ipv6 address 1002::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd7
!
interface cd30
!
interface cd31
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
lldp-agent
exit
!
interface cd32
!
interface cd64
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface lo
ip address 127.0.0.1/8
ip address 1.1.1.1/32 secondary
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface xe65
description Connected-Spirent-99.10-6/1
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 10.1.1.1/24
ipv6 address 1001::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface xe66
!
exit
!
router ospf 100
ospf router-id 1.1.1.1
network 1.1.1.1/32 area 0.0.0.0
network 101.1.1.0/24 area 0.0.0.0
network 101.1.2.0/24 area 0.0.0.0
network 201.1.1.0/24 area 0.0.0.0
network 201.1.2.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 1.1.1.1
!
router bgp 65001
bgp router-id 1.1.1.1
!
bgp unnumbered-mode
neighbor cd1/1 remote-as external
neighbor cd1/1 as-origination-interval 1
neighbor cd1/1 advertisement-interval 0
neighbor cd1/1 fall-over bfd
neighbor cd4/1 remote-as external
neighbor cd4/1 as-origination-interval 1
neighbor cd4/1 advertisement-interval 0
neighbor cd4/1 fall-over bfd
neighbor cd2/1 remote-as external
neighbor cd2/1 as-origination-interval 1
neighbor cd2/1 advertisement-interval 0
neighbor cd2/1 fall-over bfd
neighbor cd3/1 remote-as external
neighbor cd3/1 as-origination-interval 1
neighbor cd3/1 advertisement-interval 0
neighbor cd3/1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 1.1.1.1/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor cd1/1 activate
neighbor cd4/1 activate
neighbor cd2/1 activate
neighbor cd3/1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
!
Leaf 2
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
logging logfile device_debug_log 2
!
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA. PLEASE DND UNTILL I INFORM IN GROUP"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id rocev2-dest-qpairs
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port rocev2-dest-qpairs next-hdr
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Leaf2-TH5-7018
port ethernet32 breakout 1X100g serdes 25g
port ethernet6 breakout 1X400g serdes 50g
port ethernet8 breakout 1X100g serdes 25g
port ethernet33 breakout 1X100g serdes 25g
port ethernet3 breakout 1X100g serdes 25g
port ethernet30 breakout 1X100g serdes 25g
port ethernet29 breakout 1X100g serdes 25g
port ethernet0 breakout 1X100g serdes 25g
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
dynamic-load-balance enable
dynamic-load-balance mode fixed
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
feature rsyslog
logging remote server 10.16.100.20 5 port 1514 vrf management
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific data-center-bridging
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
lldp notification-interval 1000
fault-management enable
maximum-paths 64
!
class-map type qos match-all c1
match precedence routine
!
class-map type qos match-all c2
match precedence flashoverride
!
class-map type qos match-all c3
match dscp af11
!
policy-map type qos p1
class type qos c1
police cir 100 mbps pir 500 mbps
exit
class type qos c2
police cir 500 mbps pir 1 gbps
exit
class type qos c3
police cir 2 gbps pir 5 gbps
exit
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 300 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 200 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 250 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 150 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS3
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS4
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default Q1
class type queuing default q0
shape 100 mbps
priority
random-detect green min-threshold 400 max-threshold 500 yellow min-threshold 200 max-threshold 300 red min-threshold 50 max-threshold 100 packets ecn
exit
class type queuing default q1
shape 2 gbps
priority
random-detect green min-threshold 500 max-threshold 600 yellow min-threshold 300 max-threshold 400 red min-threshold 100 max-threshold 200 packets ecn
exit
class type queuing default q4
shape 500 mbps
priority
random-detect green min-threshold 550 max-threshold 600 yellow min-threshold 400 max-threshold 500 red min-threshold 300 max-threshold 400 packets ecn
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
bandwidth 1 gbps
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
bandwidth 50 mbps
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface ethernet0/1
description Connected-Ethernet64/1-800G-7001
priority-flow-control mode auto
load-interval 30
ip address 102.1.1.1/24
ipv6 address 1201::1/64
mtu 9216
service-policy type queuing output ETS1-SP1
shape rate 1500 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ethernet1
!
interface ethernet2
!
interface ethernet3/1
description Connected-Spirent-99.20-10/1
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 20.1.1.1/24
ipv6 address 2001::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ethernet4
!
interface ethernet5
!
interface ethernet6/1
description Connected-Spirent-99.15-1/105
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 20.1.2.1/24
ipv6 address 2002::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ethernet7
!
interface ethernet8/1
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
lldp-agent
exit
!
interface ethernet9
!
interface ethernet29/1
!
interface ethernet30/1
description Connected-Ethernet30/1-800G-7001
load-interval 30
ip address 102.1.2.1/24
ipv6 address 1202::1/64
mtu 9216
service-policy type queuing output ETS2-SP1
shape rate 1340 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ethernet31
!
interface ethernet32/1
description Connected-cd30/1-7040
priority-flow-control mode auto
load-interval 30
ip address 202.1.1.1/24
ipv6 address 2201::1/64
mtu 9216
service-policy type queuing output ETS1-SP2
shape rate 1110 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ethernet33/1
description Connected-cd29/1-7040
priority-flow-control mode auto
load-interval 30
ip address 202.1.2.1/24
ipv6 address 2202::1/64
mtu 9216
service-policy type queuing output ETS2-SP2
shape rate 1210 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ethernet34
!
interface lo
ip address 127.0.0.1/8
ip address 2.2.2.2/32 secondary
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface mgmt64
!
interface mgmt65
!
exit
!
router ospf 100
ospf router-id 2.2.2.2
network 2.2.2.2/32 area 0.0.0.0
network 20.1.1.0/24 area 0.0.0.0
network 102.1.1.0/24 area 0.0.0.0
network 102.1.2.0/24 area 0.0.0.0
network 202.1.1.0/24 area 0.0.0.0
network 202.1.2.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 2.2.2.2
!
router bgp 65002
bgp router-id 2.2.2.2
!
bgp unnumbered-mode
neighbor ethernet33/1 remote-as external
neighbor ethernet33/1 as-origination-interval 1
neighbor ethernet33/1 advertisement-interval 0
neighbor ethernet33/1 fall-over bfd
neighbor ethernet32/1 remote-as external
neighbor ethernet32/1 as-origination-interval 1
neighbor ethernet32/1 advertisement-interval 0
neighbor ethernet32/1 fall-over bfd
neighbor ethernet0/1 remote-as external
neighbor ethernet0/1 as-origination-interval 1
neighbor ethernet0/1 advertisement-interval 0
neighbor ethernet0/1 fall-over bfd
neighbor ethernet30/1 remote-as external
neighbor ethernet30/1 as-origination-interval 1
neighbor ethernet30/1 advertisement-interval 0
neighbor ethernet30/1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 2.2.2.2/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor ethernet33/1 activate
neighbor ethernet32/1 activate
neighbor ethernet0/1 activate
neighbor ethernet30/1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
Spine 2
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
logging level all 2
!
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA.PLEASE REFINE FROM USING IT"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id rocev2-dest-qpairs
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port rocev2-dest-qpairs next-hdr
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Spine2-TR4-7040
port cd30 breakout 1X100g serdes 25g
port cd4 breakout 1X100g serdes 25g
port cd7 breakout 1X100g serdes 25g
port cd32 breakout 1X100g serdes 25g
port cd29 breakout 1X100g serdes 25g
port cd3 breakout 1X100g serdes 25g
port cd1 breakout 1X100g serdes 25g
port cd27 breakout 1X100g serdes 25g
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
dynamic-load-balance enable
dynamic-load-balance mode fixed
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
feature rsyslog
logging remote server 10.16.100.20 5 port 1514 vrf management
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific data-center-bridging
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
set lldp tx-fast-init 1
lldp notification-interval 5
fault-management enable
maximum-paths 64
!
class-map type qos match-all c1
match precedence routine
!
class-map type qos match-all c2
match precedence flashoverride
!
class-map type qos match-all c3
match dscp af11
!
policy-map type qos p1
class type qos c1
police cir 100 mbps pir 500 mbps
exit
class type qos c2
police cir 500 mbps pir 1 gbps
exit
class type qos c3
police cir 2 gbps pir 5 gbps
exit
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default Q1
class type queuing default q0
shape 100 mbps
priority
random-detect green min-threshold 400 max-threshold 500 yellow min-threshold 200 max-threshold 300 red min-threshold 50 max-threshold 100 packets ecn
exit
class type queuing default q1
shape 2 gbps
priority
random-detect green min-threshold 500 max-threshold 600 yellow min-threshold 300 max-threshold 400 red min-threshold 100 max-threshold 200 packets ecn
exit
class type queuing default q4
shape 500 mbps
priority
random-detect green min-threshold 550 max-threshold 600 yellow min-threshold 400 max-threshold 500 red min-threshold 300 max-threshold 400 packets ecn
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface cd1/1
description Connected-cd1/1-7043
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 201.1.1.2/24
ipv6 address 2101::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd2
!
interface cd3/1
description Connected-ce5-7042
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 204.1.1.2/24
ipv6 address 2401::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd4/1
description Connected-cd4/1-7043
load-interval 30
ip address 201.1.2.2/24
ipv6 address 2102::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface cd5
!
interface cd6
!
interface cd7/1
description Connected-cd5/1-7013
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 203.1.2.2/24
ipv6 address 2302::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd8
!
interface cd27/1
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
load-interval 30
mtu 9216
!
interface cd28
!
interface cd29/1
description Connected-Ethernet33/1-800G-7018
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 202.1.2.2/24
ipv6 address 2202::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd30/1
description Connected-Ethernet32/1-800G-7018
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 202.1.1.2/24
ipv6 address 2201::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd31
!
interface cd32/1
description Connected-cd2/1-7013
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 203.1.1.2/24
ipv6 address 2301::2/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface lo
ip address 127.0.0.1/8
ip address 200.1.1.1/32 secondary
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface xe33
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
load-interval 30
mtu 9216
!
interface xe34
ip address 95.1.1.1/24
ip address 94.1.1.1/24 secondary
!
exit
!
router ospf 100
ospf router-id 200.1.1.1
network 200.1.1.1/32 area 0.0.0.0
network 201.1.1.0/24 area 0.0.0.0
network 201.1.2.0/24 area 0.0.0.0
network 202.1.1.0/24 area 0.0.0.0
network 202.1.2.0/24 area 0.0.0.0
network 203.1.1.0/24 area 0.0.0.0
network 203.1.2.0/24 area 0.0.0.0
network 204.1.1.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 200.1.1.1
!
router bgp 64001
bgp router-id 200.1.1.1
!
bgp unnumbered-mode
neighbor cd32/1 remote-as external
neighbor cd32/1 as-origination-interval 1
neighbor cd32/1 advertisement-interval 0
neighbor cd32/1 fall-over bfd
neighbor cd29/1 remote-as external
neighbor cd29/1 as-origination-interval 1
neighbor cd29/1 advertisement-interval 0
neighbor cd29/1 fall-over bfd
neighbor cd30/1 remote-as external
neighbor cd30/1 as-origination-interval 1
neighbor cd30/1 advertisement-interval 0
neighbor cd30/1 fall-over bfd
neighbor cd3/1 remote-as external
neighbor cd3/1 as-origination-interval 1
neighbor cd3/1 advertisement-interval 0
neighbor cd3/1 fall-over bfd
neighbor cd7/1 remote-as external
neighbor cd7/1 as-origination-interval 1
neighbor cd7/1 advertisement-interval 0
neighbor cd7/1 fall-over bfd
neighbor cd1/1 remote-as external
neighbor cd1/1 as-origination-interval 1
neighbor cd1/1 advertisement-interval 0
neighbor cd1/1 fall-over bfd
neighbor cd4/1 remote-as external
neighbor cd4/1 as-origination-interval 1
neighbor cd4/1 advertisement-interval 0
neighbor cd4/1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 200.1.1.1/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor cd32/1 activate
neighbor cd29/1 activate
neighbor cd30/1 activate
neighbor cd3/1 activate
neighbor cd7/1 activate
neighbor cd1/1 activate
neighbor cd4/1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
!
Leaf 3
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA.PLEASE REFINE FROM USING IT"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id rocev2-dest-qpairs
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port rocev2-dest-qpairs next-hdr
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Leaf3-TR4-7013
port cd5 breakout 1X100g serdes 25g
port cd8 breakout 1X100g serdes 25g
port cd9 breakout 1X100g serdes 25g
port cd10 breakout 1X100g serdes 25g
port cd3 breakout 1X100g serdes 25g
port cd4 breakout 1X100g serdes 25g
port cd2 breakout 1X100g serdes 25g
port cd1 breakout 1X100g serdes 25g
port cd0 breakout 1X100g serdes 25g
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific data-center-bridging
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
set lldp tx-fast-init 1
lldp notification-interval 5
fault-management enable
maximum-paths 64
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 300 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 200 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 350 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 250 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
bandwidth 375 mbps
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
bandwidth 200 mbps
exit
class type queuing default q3
priority
bandwidth 150 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface cd0/1
description Connected-Ethernet31/1-7001
priority-flow-control mode auto
load-interval 30
ip address 103.1.1.1/24
ipv6 address 1301::1/64
mtu 9216
service-policy type queuing output ETS1-SP1
shape rate 800 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd1/1
!
interface cd2/1
description Connected-cd32/1-7040
priority-flow-control mode auto
load-interval 30
ip address 203.1.1.1/24
ipv6 address 2301::1/64
mtu 9216
service-policy type queuing output ETS1-SP2
shape rate 500 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd3/1
!
interface cd4/1
description Connected-Spine2-cd27/1
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan add 3
load-interval 30
mtu 9216
!
interface cd5/1
description Connected-cd7/1-7040
priority-flow-control mode auto
load-interval 30
ip address 203.1.2.1/24
ipv6 address 2302::1/64
mtu 9216
service-policy type queuing output ETS2-SP2
shape rate 650 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd6
description Connected-Spirent-99.15-1/113
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 30.1.2.1/24
ipv6 address 3002::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd7
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
lldp-agent
exit
!
interface cd8/1
!
interface cd9/1
!
interface cd10/1
description Connected-7001-Ethernet32/1-800G
priority-flow-control mode auto
load-interval 30
ip address 103.1.2.1/24
ipv6 address 1302::1/64
mtu 9216
service-policy type queuing output ETS2-SP1
shape rate 650 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface cd11
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface lo
ip address 127.0.0.1/8
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface vlan1.3
ip address 30.1.1.1/24
ipv6 address 3001::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface xe0
!
interface xe1
!
exit
!
router ospf 100
ospf router-id 3.3.3.3
network 3.3.3.3/32 area 0.0.0.0
network 30.1.1.0/24 area 0.0.0.0
network 103.1.1.0/24 area 0.0.0.0
network 103.1.2.0/24 area 0.0.0.0
network 203.1.1.0/24 area 0.0.0.0
network 203.1.2.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 3.3.3.3
!
router bgp 65003
bgp router-id 3.3.3.3
!
bgp unnumbered-mode
neighbor cd0/1 remote-as external
neighbor cd0/1 as-origination-interval 1
neighbor cd0/1 advertisement-interval 0
neighbor cd0/1 fall-over bfd
neighbor cd10/1 remote-as external
neighbor cd10/1 as-origination-interval 1
neighbor cd10/1 advertisement-interval 0
neighbor cd10/1 fall-over bfd
neighbor cd2/1 remote-as external
neighbor cd2/1 as-origination-interval 1
neighbor cd2/1 advertisement-interval 0
neighbor cd2/1 fall-over bfd
neighbor cd5/1 remote-as external
neighbor cd5/1 as-origination-interval 1
neighbor cd5/1 advertisement-interval 0
neighbor cd5/1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 3.3.3.3/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor cd0/1 activate
neighbor cd10/1 activate
neighbor cd2/1 activate
neighbor cd5/1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
!
Leaf 4
feature netconf-ssh vrf management
feature netconf-tls vrf management
service password-encryption
!
logging console 7
logging monitor 4
logging logfile device_debug_log 2
logging level nsm 4
logging level rip 5
logging level ripng 5
logging level ospf 5
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
snmp-server enable traps ospf
snmp-server enable traps bgp
banner motd "NODE IS USING BY ARPITHA.PLEASE REFINE FROM USING IT"
!
bgp extended-asn-cap
!
load-balance rtag7
load-balance rtag7 macro-flow
load-balance rtag7 l2 dest-mac src-mac vlan
load-balance rtag7 ipv4 dest-ipv4 src-ipv4 destl4-port srcl4-port protocol-id
load-balance rtag7 ipv6 dest-ipv6 src-ipv6 destl4-port srcl4-port next-hdr
hardware-profile filter ingress-ipv6 disable
hardware-profile filter bfd-group enable
!
bfd interval 100 minrx 100 multiplier 3
!
qos enable
qos statistics
qos profile ingress-pg-map default
priority-group 0 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 5 xon-offset 2000 dynamic-threshold 9
!
hostname Leaf4-TR3-7042
ip domain-lookup vrf management
ip name-server vrf management 10.12.3.23
bridge 1 protocol rstp vlan-bridge
tfo Disable
errdisable cause stp-bpdu-guard
data-center-bridging enable bridge 1
priority-flow-control enable bridge 1
dynamic-load-balance enable
dynamic-load-balance mode fixed
feature ssh vrf management
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp vrf management
feature rsyslog
logging remote server 10.16.100.20 5 port 1514 vrf management
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
lldp tlv-select ieee-8021-org-specific data-center-bridging
set lldp msg-tx-hold 1
set lldp timer msg-tx-interval 5
set lldp tx-fast-init 1
lldp notification-interval 1000
fault-management enable
maximum-paths 64
!
policy-map type queuing default ETS
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 450 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS1-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
bandwidth 300 mbps
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP1
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS2-SP2
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS3
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default ETS4
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
bandwidth 1200 mbps
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
bandwidth 200 mbps
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
vlan database
vlan-reservation 4001-4094
vlan 2-10 bridge 1 state enable
!
ip vrf management
!
interface ce1
description Connected-Ethernet1/1-800G-7001
load-interval 30
ip address 104.1.1.1/24
ipv6 address 1401::1/64
mtu 9216
service-policy type queuing output ETS1-SP1
shape rate 1200 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface ce2
!
interface ce3
!
interface ce4
!
interface ce5
description Connected-cd3/1-7040
priority-flow-control mode auto
load-interval 30
ip address 204.1.1.1/24
ipv6 address 2401::1/64
mtu 9216
service-policy type queuing output ETS1-SP2
shape rate 900 mbps burst 1000
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ce6
!
interface ce7
description Connected-Spirent-99.40-2/9
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 40.1.2.1/24
ipv6 address 4002::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
interface ce8
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
ip address 88.1.1.1/24
lldp-agent
exit
!
interface ce26
!
interface eth0
ip vrf forwarding management
ip address dhcp
!
interface lo
ip address 127.0.0.1/8
ip address 4.4.4.4/32 secondary
ipv6 address ::1/128
!
interface lo.management
ip vrf forwarding management
ip address 127.0.0.1/8
ipv6 address ::1/128
ipv6 router ospf area 0.0.0.0 instance-id 0
!
interface xe33
!
interface xe34
description Connected-Spirent-99.10-6/6
priority-flow-control mode on
priority-flow-control advertise-local-config
priority-flow-control enable priority 0 1 2 3 4 5 6 7
load-interval 30
ip address 40.1.1.1/24
ipv6 address 4001::1/64
mtu 9216
ipv6 router ospf area 0.0.0.0 instance-id 0
lldp-agent
exit
!
exit
!
router ospf 100
ospf router-id 4.4.4.4
network 4.4.4.4/32 area 0.0.0.0
network 40.1.1.0/24 area 0.0.0.0
network 104.1.1.0/24 area 0.0.0.0
network 204.1.1.0/24 area 0.0.0.0
!
router ipv6 ospf
router-id 4.4.4.4
!
router bgp 65004
bgp router-id 4.4.4.4
!
bgp unnumbered-mode
neighbor ce5 remote-as external
neighbor ce5 as-origination-interval 1
neighbor ce5 advertisement-interval 0
neighbor ce5 fall-over bfd
neighbor ce1 remote-as external
neighbor ce1 as-origination-interval 1
neighbor ce1 advertisement-interval 0
neighbor ce1 fall-over bfd
exit-unnumbered-mode
!
address-family ipv4 unicast
network 4.4.4.4/32
max-paths ebgp 10
redistribute connected
!
bgp v4-unnumbered-mode
neighbor ce5 activate
neighbor ce1 activate
exit-v4-unnumbered-mode
!
exit-address-family
!
exit
!
line console 0
exec-timeout 0 0
line vty 0 16
exec-timeout 0 0
!
!
end
Validation
Verify the QoS Priority Group (PG) settings, including the XON/XOFF and dynamic thresholds, for the defined profiles.
#sh qos-profile ingress-pg-map all
qos profile ingress-pg-map default
priority-group 0 xon-offset 32 dynamic-threshold 5
priority-group 1 xon-offset 1200 xoff-threshold 2400
priority-group 2 xon-offset 32 dynamic-threshold 8
priority-group 3 xon-offset 32 dynamic-threshold 8
priority-group 4 xon-offset 32 dynamic-threshold 8
priority-group 5 xon-offset 32 dynamic-threshold 8
priority-group 6 xon-offset 32 dynamic-threshold 8
priority-group 7 xon-offset 32 dynamic-threshold 8
!
qos profile ingress-pg-map pg2
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 1 xon-offset 32 dynamic-threshold 8
priority-group 2 xon-offset 32 dynamic-threshold 8
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 4 xon-offset 32 dynamic-threshold 8
priority-group 5 xon-offset 2000 dynamic-threshold 9
priority-group 6 xon-offset 32 dynamic-threshold 8
priority-group 7 xon-offset 32 dynamic-threshold 8
!
#sh qos-profile ingress-pg-map interface ethernet3/1
profile name: pg2
mapping:
priority-group 0 xon-offset 200 dynamic-threshold 1
priority-group 1 xon-offset 32 dynamic-threshold 8
priority-group 2 xon-offset 32 dynamic-threshold 8
priority-group 3 xon-offset 1000 xoff-threshold 2000
priority-group 4 xon-offset 32 dynamic-threshold 8
priority-group 5 xon-offset 2000 dynamic-threshold 9
priority-group 6 xon-offset 32 dynamic-threshold 8
priority-group 7 xon-offset 32 dynamic-threshold 8
Verify that traffic is being correctly classified and processed by the queuing policies on the interfaces.
#sh policy-map statistics type qos
+------------------------------------+-----------------+-----------------+-----------------+------------------+
| Class-map | Match pkts | Match bytes | Dropped pkts | Dropped Bytes |
+------------------------------------+-----------------+-----------------+-----------------+------------------+
#sh policy-map statistics type queuing
+--------------------------------+-----------------+-----------------+-----------------+------------------+
| Class-map | Total pkts | Total bytes | Dropped pkts | Dropped Bytes |
+--------------------------------+-----------------+-----------------+-----------------+------------------+
ethernet1/1
q7 291 28105 0 0
ethernet2/1
q7 287 27506 0 0
ethernet3/1
q7 292 27011 0 0
ethernet30/1
q7 294 28028 0 0
ethernet31/1
q7 281 26458 0 0
ethernet32/1
q7 293 28045 0 0
ethernet64/1
q7 281 26305 0 0
#
The non-zero counts for Total pkts and Total bytes for class-map q7 (Queue 7) on multiple interfaces indicate that the queuing policy is operational.
The Dropped pkts and Dropped Bytes columns show 0 for all monitored interfaces and q7. This indicates that the buffers were not congested enough to trigger packet drops.
Implementation Examples
Following are some the real time examples to create, attach, update PG profile.
Latency-Sensitive Applications (Low Alpha)
For voice network traffic, consistent and predictable latency is critical. By configuring a low alpha value (e.g. 1/16 MMU alpha) on the relevant traffic classes, queues rely primarily on their reserved buffers rather than the shared pool. This ensures packets are forwarded with minimal jitter. Following is an ingress PG map profile example for low alpha value.
OcNOS(config)#qos profile ingress-pg-map pg2
OcNOS(config-ingress-pg-queue-map)#priority-group 3 xon-offset 2000 dynamic-threshold 2
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
Latency-Tolerant Applications (High Alpha)
For workloads like backup traffic or bulk file transfers, the priority is maximizing throughput rather than minimizing latency. By setting a higher alpha value (e.g. 1/4 or 1/2 MMU alpha), queues can aggressively borrow from the shared buffer, allowing them to handle large bursts of data efficiently. Following is an ingress PG map profile example for high alpha value.
OcNOS(config)#qos profile ingress-pg-map pg2
OcNOS(config-ingress-pg-queue-map)#priority-group 5 xon-offset 2000 dynamic-threshold 9
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
To create a PG profile.
OcNOS(config)#qos profile ingress-pg-map pg1
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
To add a map in the default global PG profile with dynamic threshold
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 0 dynamic-threshold 5
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
To add a map in the default global PG profile with XON offsets and XOFF threshold
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 1 xon-offset 1200 xoff-threshold 2400
OcNOS(config-ingress-pg-queue-map)#comm
To attach a PG profile to an interface
OcNOS(config)#qos profile ingress-pg-map pg2
OcNOS(config-ingress-pg-queue-map)#priority-group 0 xon-offset 200 dynamic-threshold 1
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
OcNOS(config)#interface ce1
OcNOS(config-if)#qos map-profile ingress-pg-map pg2
OcNOS(config-if)#comm
To add a member interface to a LAG that has a PG profile attached
OcNOS(config)#bridge 1 protocol ieee vlan-bridge
OcNOS(config)#vlan 100 br 1
OcNOS(config)#interface sa10
OcNOS(config-if)#switchport
OcNOS(config-if)#bridge-group 1
OcNOS(config-if)#switchport mode trunk
OcNOS(config-if)#switchport trunk allowed vlan all
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface ce5
OcNOS(config-if)#static-channel-group 10
OcNOS(config-if)#int ce4
OcNOS(config-if)#static-channel-group 10
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface sa10
OcNOS(config-if)#qos map-profile ingress-pg-map pg2
OcNOS(config-if)#comm
OcNOS(config)#interface ce6
OcNOS(config-if)#static-channel-group 10
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface ce7
OcNOS(config-if)#static-channel-group 10
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#end
To attach a PG profile to a MLAG interface
OcNOS(config)#bridge 1 protocol rstp vlan-bridge
OcNOS(config)#comm
OcNOS(config)#interface sa20
OcNOS(config-if)#switchport
OcNOS(config-if)#bridge-group 1
OcNOS(config-if)#switchport mode trunk
OcNOS(config-if)#switchport trunk allowed vlan all
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface ce9
OcNOS(config-if)#static-channel-group 20
OcNOS(config-if)#exit
OcNOS(config)#interface ce10
OcNOS(config-if)#static-channel-group 20
OcNOS(config-if)#exit
OcNOS(config)#comm
OcNOS(config)#interface mlag1
OcNOS(config-if)#switchport
OcNOS(config-if)#bridge-group 1
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface sa20
OcNOS(config-if)#mlag 1
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#interface mlag1
OcNOS(config-if)#qos map-profile ingress-pg-map pg2
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#end
OcNOS(config)#interface ce13
OcNOS(config-if)#static-channel-group 20
OcNOS(config-if)#comm
OcNOS(config-if)#exit
OcNOS(config)#end
To change the queue size for PFC triggers by modifying XON offset values
OcNOS(config)#qos profile ingress-pg-map PG_XON_TEST
OcNOS(config-ingress-pg-queue-map)#priority-group 1 xon-offset 20000
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#
To reconfigure XON offset in an ingress-pg-map with dynamic threshold mapped to a priority
OcNOS(config)#qos profile ingress-pg-map pg3
OcNOS(config-ingress-pg-queue-map)#priority-group 0 xon-offset 2000 dynamic-threshold 10
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#priority-group 0 xon-offset 2900
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
To configure egress dynamic-threshold value
OcNOS(config)#policy-map type queuing default default-out-policy
OcNOS(config-pmap-que-def)#class type queuing default q0
OcNOS(config-pmap-c-que-def)#dynamic-threshold 5
OcNOS(config-pmap-c-que-def)#comm
OcNOS(config-pmap-c-que-def)#exit
OcNOS(config-pmap-que-def)#exit
OcNOS(config)#end
CLI Commands
The Switch Buffer Tuning introduces the following configuration commands.
qos profile ingress-pg-map
Use this command to create a ingress priority group (PG) profile or update the default ingress PG profile.
Use no parameter of this command to remove a ingress PG profile.
Use no parameter of priority-group command to unset a PG mapping in the ingress PG profile.
Use qos map-profile to map the profile on interface.
Command Syntax
qos profile ingress-pg-map (NAME|default) priority-group <0-7> (xon-offset <1-83000> (xoff-threshold <1-83000> | dynamic-threshold <0-10> |) | xoff-threshold <1-83000> | dynamic-threshold <0-10>)
no qos profile ingress-pg-map (NAME|default)
no priority-group <0-7>
Parameters
Use this command to update the priority mapping in the PG profile.
ingress-pg-map <NAME> | Specifies the name of the ingress priority group map profile. |
default | Specifies the default PG map profile. |
priority-group <0-7> | Specifies the priority mapping in the PG profile. The values are defined in Kbytes by default. |
xon-offset <1-83000> | Specifies XON buffer offset of the shared memory that a PG can receive. The value is specified in Kbytes by default. When the buffer usage on the ingress priority group drops below this PFC XON offset from the shared limit, the priority group sends a PFC message to the peer to resume packet transmission. When the ingress PG buffer reaches the configured limit, it triggers the transmission of PFC pause frames to its egress peer. |
xoff-threshold <1-83000> | Specifies the absolute threshold at which the PG XOFF will start. The value is specified in Kbytes by default.Typically The difference between these thresholds provides hysteresis in toggling between X-OFF and X-ON, thereby limiting the PFC transmission rate. |
dynamic-threshold <0-10> | Defines the configurable limit on how many buffers each queue can draw from the shared buffer pool. This pool operates according to a dynamic threshold parameter known as the alpha value. The dynamic threshold modifies the PG queue size only in the absence of a configured xoff-threshold. The dynamic threshold can be set individually for different queues, allowing fine-grained control over how each queue accesses the shared buffer. Following are the dynamic threshold values that can be configured: • 0 1/128 MMU alpha. • 1 1/64 MMU alpha. • 2 1/32 MMU alpha. • 3 1/16 MMU alpha. • 4 1/8 MMU alpha. • 5 1/4 MMU alpha. • 6 1/2 MMU alpha. • 7 1 MMU alpha. • 8 2 MMU alpha. • 9 4 MMU alpha. • 10 8 MMU alpha Note: Memory Management Unit (MMM) refers to block inside a switch that controls packet buffering and queue management. |
Note: Only a single threshold attribute—xoff-threshold or dynamic-threshold—is valid and permitted in the CLI configuration.
Default
• xon-offset — 32
• xoff-threshold — None.
• dynamic-threshold — 8
Command Mode
Configure Mode
Applicability
Introduced in OcNOS Version 7.0.0. This command is supported only on the Trident3 (TD3) platforms, Trident 4 (TD4) platforms, Tomahawk3 (TH3) platforms, Tomahawk4 (TH4) platforms, and Tomahawk 5 (TH5) platforms.
Example
Command to create and attach user-defined PG profile.
OcNOS#configure terminal
(config)#qos profile ingress-pg-map PG1
(config-ingress-pg-queue-map)#priority-group 0 xon-offset 30000
(config-ingress-pg-queue-map)#priority-group 1 xoff-threshold 20000
(config-ingress-pg-queue-map)#priority-group 2 dynamic-threshold 2
(config-ingress-pg-queue-map)#priority-group 3 xon-offset 2000 xoff-threshold 10000
(config-ingress-pg-queue-map)#priority-group 4 xon-offset 50000 dynamic-threshold 9
(config)#interface xe65
(config-if)#qos map-profile ingress-pg-map PG1
Updating default global PG profile with XON-offset:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 1 xon-offset 5000
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
OcNOS(config)#end
OcNOS#
Updating default global PG profile with XOFF-threshold:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 2 xoff-threshold 10000
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#end
OcNOS#
Updating default global PG profile with dynamic-threshold:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 3 dynamic-threshold 2
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit
OcNOS(config)#end
OcNOS#
Updating default global PG profile with XON-offset and XOFF-threshold:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 4 xon-offset 5000 xoff-threshold 15000
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#end
OcNOS#
Updating default global PG profile with XON-offset and dynamic threshold:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#qos profile ingress-pg-map default
OcNOS(config-ingress-pg-queue-map)#priority-group 5 xon-offset 1000 dynamic-threshold 8
OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#end
OcNOS#
Accessing default global PG profile:
OcNOS#conf t
Enter configuration commands, one per line. End with CNTL/Z. OcNOS(config)#qos profile ingress-pg-map default OcNOS(config-ingress-pg-queue-map)#comm
OcNOS(config-ingress-pg-queue-map)#exit OcNOS(config)#end
Detaching a PG profile:
OcNOS(config)#int ce1
OcNOS(config-if)#no qos map-profile ingress-pg-map pg2 OcNOS(config-if)#comm
2025 Aug 20 01:17:47.594 : OcNOS : HSL : DEBUG : QOS: zNSM_SYNC: Successfully
set/unset xon: 5000 xoff: 15000 dynamic_threshold: 0 on port :5
OcNOS(config-if)#exit OcNOS(config)#end
dynamic-threshold
Use this command to configure egress dynamic-threshold values.
Use no parameter of this command to unconfigure .
Command Syntax
dynamic-threshold <0-10>
no dynamic-threshold
Parameters
<0-10> | Specifies the egress dynamic-threshold value in kbytes. It defines the dynamic limit of the PG queue. Define a configurable limit on how many buffers each queue can draw from the shared buffer pool. This pool operates according to a dynamic threshold parameter known as the alpha value. The dynamic threshold can be set individually for different queues, allowing fine-grained control over how each queue accesses the shared buffer. Following are the dynamic threshold values that can be configured: • 0 1/128 MMU alpha. • 1 1/64 MMU alpha. • 2 1/32 MMU alpha. • 3 1/16 MMU alpha. • 4 1/8 MMU alpha. • 5 1/4 MMU alpha. • 6 1/2 MMU alpha. • 7 1 MMU alpha. • 8 2 MMU alpha. • 9 4 MMU alpha. • 10 8 MMU alpha |
Default
None
Command Mode
config-pmap-c-que-def mode
policy-class-map-queue mode
Applicability
Introduced in OcNOS Version 7.0.0. This command is supported only on the Trident3 (TD3) platforms, Trident 4 (TD4) platforms, Tomahawk3 (TH3) platforms, Tomahawk4 (TH4) platforms, and Tomahawk 5 (TH5) platforms.
Example
Command to configure egress dynamic-threshold value:
OcNOS#configure terminal
(config)#policy-map type queuing default default-out-policy
(config-pmap-que-def)#class type queuing default q0
(config-pmap-c-que-def)#dynamic-threshold 7
The following existing CLI commands are updated to include ingress-pg-map attribute.
show qos-profile
show qos-profile (type (cos-to-queue | dscp-encap | dscp-to-dscp | dscp-to-queue | exp-to-queue | queue-to-exp | precedence-to-precedence | precedence-to-queue | queue-color-to-cos |ingress-pg-map | egress-dynamic-ecn)(interface NAME| all)
The CLI is modified to include ingress-pg-map attribute.
ingress-pg-map - This attribute displays the details of the PG profile attached to an interface or all.
qos map-profile
qos map-profile (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp | precedence-to-queue | queue-to-precedence | ingress-pg-map| egress-dynamic-ecn) NAME
This CLI is modified to include ingress-pg-map attribute.
ingress-pg-map - This attribute attach or detach an ingress priority group profile to and from an interface.
Troubleshooting
Following are some of the commands that can be used for troubleshooting:
show policy-map statistics type qos
show policy-map
show qos-profile ingress-pg-map(interface NAME| all)
Glossary
The following provides definitions for key terms or abbreviations and their meanings used throughout this document:
Key Terms/Acronym | Description |
PG | Priority group is mechanism to allocates packet buffer size based on traffic priority classes referred as Priority Groups (PG) instead of physical ports. |
QoS | Quality of service refers to an ability to deliver, control the bandwidth, set priorities for specific network traffic, and provide an appropriate level of security. |
PFC | Priority Flow Control is a packet control mechanism to manage when to pause frames to prevent packet loss. |