HP 5500 Ei 5500 Si Switch Series Configuration Guide
Have a look at the manual HP 5500 Ei 5500 Si Switch Series Configuration Guide online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
68 [DeviceA-GigabitEthernet1/0/1] qos apply policy policy inbound
69 Configuring class-based accounting Class-based accounting collects statistics (in packets or bytes) on a per-traffic class basis. For example, you can define the action to collect statistics for traffic sourced from a certain IP address. By analyzing the statistics, you can determine whether anomalies have occurred and what action to take. The 5500 EI and 5500 SI Switch Series supports only collecting statistics in packets. Configuration procedure To configure class-based accounting: Step Command Remarks 1. Enter system view. system-view N/A 2. Create a class and enter class view. traffic classifier tcl-name [ operator { and | or } ] N/A 3. Configure match criteria. if-match match-criteria N/A 4. Return to system view. quit N/A 5. Create a behavior and enter behavior view. traffic behavior behavior-name N/A 6. Configure the accounting action. accounting N/A 7. Return to system view. quit N/A 8. Create a policy and enter policy view. qos policy policy-name N/A 9. Associate the class with the traffic behavior in the QoS policy. classifier tcl-name behavior behavior-name N/A 10. Return to system view. quit N/A 11. Apply the QoS policy. • Applying the QoS policy to an interface • Applying the QoS policy to a VLAN • Applying the QoS policy globally • Applying the QoS policy to the control plane Choose one application destination as needed. Displaying and maintaining traffic accounting You can verify the configuration with the display qos policy global, display qos policy interface , or display qos vlan-policy command depending on the occasion where the QoS policy is applied.
70 Class-based accounting configuration example Network requirements As shown in Figure 21, Ho st is connected to GigabitEthernet 1/0/1 of Device A. Configure class-based accounting to collect statistics for traffic sourced from 1.1.1.1/24 and received on GigabitEthernet 1/0/1. Figure 21 Network diagram Configuration procedure # Create basic ACL 2000, and configure a rule to match packets with source IP address 1.1.1.1. system-view [DeviceA] acl number 2000 [DeviceA-acl-basic-2000] rule permit source 1.1.1.1 0 [DeviceA-acl-basic-2000] quit # Create a class named classifier_1, and use ACL 2000 as the match criterion in the class. [DeviceA] traffic classifier classifier_1 [DeviceA-classifier-classifier_1] if-match acl 2000 [DeviceA-classifier-classifier_1] quit # Create a behavior named behavior_1, and configure the traffic accounting action. [DeviceA] traffic behavior behavior_1 [DeviceA-behavior-behavior_1] accounting [DeviceA-behavior-behavior_1] quit # Create a policy named policy, and associate class classifier_1 with behavior behavior_1 in the policy. [DeviceA] qos policy policy [DeviceA-qospolicy-policy] classifier classifier_1 behavior behavior_1 [DeviceA-qospolicy-policy] quit # Apply the policy named policy to the incoming traffic of GigabitEthernet 1/0/1. [DeviceA] interface gigabitethernet 1/0/1 [DeviceA-GigabitEthernet1/0/1] qos apply policy policy inbound [DeviceA-GigabitEthernet1/0/1] quit # Display traffic statistics to verify the configuration. [DeviceA] display qos policy interface gigabitethernet 1/0/1 Interface: GigabitEthernet1/0/1 Direction: Inbound Policy: policy Classifier: classifier_1 Device A GE1/0/1 Host
71 Operator: AND Rule(s) : If-match acl 2000 Behavior: behavior_1 Accounting Enable: 28529 (Packets)
72 Configuring the data buffer Overview Data buffer The Switch Series provides the data buffer to buffer packets to be sent out ports to avoid packet loss when bursty traffic causes congestion. The switch controls how a port uses the data buffer by allocating the cell resource and packet resource (called buffer resources). • The cell resource is the physical storage space in cells for the data buffer. The cell resource allocated to a port indicates the maximum buffer space that the port can occupy in the buffer. • The packet resource is the logical buffering space in packets. A packet is counted as one regardless of its length. A packet in the packet resource uses a certain amount of cell resources in the cell resource, depending on its length. The packet resource allocated to a port indicates the maximum number of packets that the port can store in the buffer. Set independently, the packet resource and the cell resource work simultaneously to regulate data buffering. A packet can be buffered only when both resources are adequate. Data buffer allocation Cell resource allocation The cell resource is divided into a shared resource and a dedicated resource. You can manually set the percentage of the shared resource to the total bu ffer, and the remaining buffer becomes the dedicated resource automatically. On a 5500 EI and 5500 SI switch, the cell resource is allocated as shown in Figure 22. Figure 22 Cell resource allocation on t he 5500 EI and 5500 SI The dedicated resource is allocated following these rules: Queue 0 Queue 1 Queue 2 Queue 3 Queue 4 Queue 5 Queue 6 Queue 7 Shared buffer Port 1 Port 2 Port 3 …… Dedicated buffer
73 • On a per-port basis —As illustrated by the vertical lines in Figure 22, the s witch automatically divides the dedicated resource among all ports evenly. • On a per-queue basis —As illustrated by the horizontal lines in Figure 22, the dedi cated resource of each port is proportionately allocated among the qu eues on it and all ports use the same allocation scheme. The percentage of the resource allocated to a queue is called the minimum guaranteed resource percentage of the queue. The shared buffer in the cell resource can buffer the bursty traffic on ports. The shared resource is shared by all queues of all ports. When a certain queue of a port is congested because its dedicated cell resource gets full, it can use a certain portion of the shared resource of the cell resource. The maximum shared resource size available for a queue is defined as a percentage of the shared resource. After the bursty traffic is transmitted, the shared resource used by the bursty traffic is released for other ports or queues to use. For example, you can configure port 1 to use 30% of the shared buffer of the cell resource. You can perform the following parameters for the cell resource: • Configure the shared resource size • Configure the minimum guaranteed resource size for a queue • Configure the maximum shared resource size for a port Packet resource allocation Different from the cell resource, the packet resource does not have a shared resource, and the whole buffer is evenly allocated to ports, as shown in Figure 23. Figure 23 Packet resource allocation on the 5500 EI and 5500 SI Like the packet resource, the cell resource is also allocated on a per-port basis and on a per-queue basis. Because the packet resource does not have the shared resource, you can adjust only the percentage of the queue buffer to the port buffer, which is called the minimum guaranteed buffer percentage. Data buffer configuration approaches You can configure the data buffer on the 5500 EI and 5500 SI Switch Series in one of the following approaches: • Using the burst function to configure the data buffer setup • Manually configuring the data buffer setup NOTE: The two approaches are mutually exclusive. If the data buffer setup has been confi gured in one approach, you must remove the present configuration first before you use the other approach.
74 Using the burst function to configure the data buffer setup The burst function allows the switch to automatically determine the shared resource size, the minimum guaranteed resource size for each queue, the maximum shared resource size for each queue, and the maximum shared resource size per port. The burst function helps optimize packet buffering to ameliorate forwarding performance in the following scenarios: • Broadcast or multicast traffic is dense and bursts of traffic are usually large. • High-speed traffic is forwarded over low-speed li nks or traffic received from multiple ports is forwarded through a port operating at the same speed. To use the burst function to configure the data buffer: Step Command Remarks 1. Enter system view. system-view N/A 2. Enable the burst function. burst-mode enable By default, the burst function is disabled. Manually configuring the data buffer setup Data buffer configuration is complicated and has significant impacts on the forwarding performance of a device. HP does not recommend modifying the data bu ffer parameters unless you are sure that your device will benefit from the change. If a larger buffer is needed, HP recommends that you enable the burst function to allocate the buffer automatically. Manually configuring the data buffer Complete the following tasks to manually configure the data buffer: Task Remarks Configuring the cell resource Configuring the shared resource size Optional Configuring the minimum guaranteed resource size for a queue Optional Configuring the maximum shared resource size for a port Optional Configuring the packet resource Configuring the minimum guaranteed resource size for a queue Optional Applying the data buffer settings Required Configuring the cell resource Configuring the shared resource size To configure the shared resource size:
75 Step Command Remarks 1. Enter system view. system-view N/A 2. Configure the shared resource area of the cell resource in percentage. buffer egress [ slot slot-number ] cell total-shared ratio ratio Optional. By default, the shared resource area of the cell resource is 60%. Configuring the minimum guarant eed resource size for a queue When configuring the minimum guaranteed resource size for a queue, follow these guidelines: • Modifying the minimum guaranteed resource size for a queue can affect those of the other queues, because the dedicated resource of a port is shared by eight queues. The system will automatically allocate the remaining dedicated resource space am ong all queues that are not manually assigned a minimum guaranteed resource space. For exampl e, if you set the minimum guaranteed resource size to 30% for a queue, the remaining seven queues will each share 10% of the dedicated resource of the port. • The minimum guaranteed resource settings of a queue apply to the queue with the same number on each port. To configure the minimum guaranteed resource size for a queue: Step Command Remarks 1. Enter system view. system-view N/A 2. Configure the minimum guaranteed cell resource size for a queue as a percentage of the dedicated cell resource per port. buffer egress [ slot slot-number ] cell queue queue-id guaranteed ratio ratio Optional. By default, the minimum guaranteed resource size for a queue is 12% of the dedicated resource of the port in the cell resource. Configuring the maximum shared resource size for a port To configure the maximum shared resource size for a port: Step Command Remarks 1. Enter system view. system-view N/A 2. Configure the maximum shared cell resource size for a queue as a percentage of the shared cell resource. buffer egress [ slot slot-number ] cell shared ratio ratio Optional. By default, a queue can use up to 50% of the shared cell resource. NOTE: The maximum shared resource settings for a queue a pply to the queue with the same number on each port.
76 Configuring the packet resource Configuring the minimum guaranteed resource size for a queue When configuring the minimum guaranteed resource size for a queue, follow these guidelines: • Modifying the minimum guaranteed resource size for a queue can affect those of the other queues, because the dedicated resource of a port is shared by eight queues. The system will automatically allocate the remaining dedicated resource space am ong all queues that are not manually assigned a minimum guaranteed resource space. For exampl e, if you set the minimum guaranteed resource size to 30% for a queue, the remaining seven queues will each share 10% of the dedicated resource of the port. • The minimum guaranteed resource settings of a queue apply to the queue with the same number on each port. To configure the minimum guaranteed resource size for a queue: Step Command Remarks 1. Enter system view. system-view N/A 2. Configure the minimum guaranteed packet resource size for a queue as a percentage of the dedicated packet resource per port. buffer egress [ slot slot-number ] packet queue queue-id guaranteed ratio ratio Optional. By default, the minimum guaranteed resource size for queue 2 is 51% of the dedicated resource of the port in the packet resource, and that for any other queue is 7%. Applying the data buffer settings After manually configuring data buffer, you should ex ecute the following steps to make the manual data buffer configurations take effect. To apply the data buffer settings: Step Command 1. Enter system view. system-view 2. Apply the data buffer settings. buffer apply
77 Appendix A Default priority mapping tables Uncolored priority mapping tables For the default dscp-dscp mapping table, an input value yields a target value equal to it. Table 6 Default dot1p-lp and dot1p-dp priority mapping tables In put priority value dot1p-lp mapping dot1p-dp mapping 802.1p priority (dot1p) Local precedence (lp) Drop precedence (dp) 0 2 0 1 0 0 2 1 0 3 3 0 4 4 0 5 5 0 6 6 0 7 7 0 Table 7 Default dscp-dp and dscp-dot1p priority mapping tables In put priority value dscp-dp mapping dscp-dot1p mapping DSCP Drop precedence (dp) 802.1p priority (dot1p) 0 to 7 0 0 8 to 15 0 1 16 to 23 0 2 24 to 31 0 3 32 to 39 0 4 40 to 47 0 5 48 to 55 0 6 56 to 63 0 7