09-ACL and QoS Configuration Guide

HomeSupportSwitchesH3C S7500X-G Switch SeriesConfigure & DeployConfiguration GuidesH3C S7500X-G Switch Series Configuration Guides-R7748Pxx-6W10009-ACL and QoS Configuration Guide
04-Data buffer configuration
Title Size Download
04-Data buffer configuration 102.85 KB

Configuring data buffers

About data buffers

Data buffer types

Data buffers temporarily store packets to avoid packet loss.

The following data buffers are available:

·     Ingress buffer—Stores incoming packets when the CPU is busy.

·     Egress buffer—Stores outgoing packets when network congestion occurs.

·     Headroom buffer—Stores packets when the ingress buffer or egress buffer is used up.

Figure 1 shows the structure of ingress and egress buffers.

Figure 1 Data buffer structure

Cell resources

A buffer uses cell resources to store packets based on packet sizes. Suppose a cell resource provides 208 bytes. The buffer allocates one cell resource to a 128-byte packet and two cell resources to a 300-byte packet.

Fixed area and shared area

The cell resources have a fixed area and a shared area.

·     Fixed area—Partitioned into queues, each of which is equally divided by all the interfaces on the switch, as shown in Figure 2. When congestion occurs or the CPU is busy, the following rules apply:

a.     An interface first uses the relevant queues of the fixed area to store packets.

b.     When a queue is full, the interface uses the corresponding queue of the shared area.

c.     When the queue in the shared area is also full, the interface discards subsequent packets.

The system allocates the fixed area among queues as specified by the user. Even if a queue is not full, other queues cannot preempt its space. Similarly, the share of a queue for an interface cannot be preempted by other interfaces even if it is not full.

·     Shared area—Partitioned into queues, each of which is not equally divided by the interfaces, as shown in Figure 2. The system determines the actual shared-area space for each queue according to user configuration and the number of packets actually received and sent. If a queue is not full, other queues can preempt its space.

The system puts packets received or sent on all interfaces into a queue in the order they arrive. When the queue is full, subsequent packets are dropped.

The shared area is also divided into service pools based on application services. You can map a queue to a service pool, and this queue can only use the resources of that service pool. By default, all of the shared area belongs to service pool 0.

Figure 2 Fixed area and shared area

Data buffer tasks at a glance

To configure the data buffer, perform the following tasks:

·     Enabling the Burst feature

·     (Optional.) Configuring data buffer alarms

¡     Configuring per-interface alarm thresholds for the ingress or egress buffer

¡     Configuring per-queue alarm thresholds for the ingress or egress buffer

¡     Configuring per-interface alarm thresholds for the Headroom buffer

¡     Configuring packet-drop alarms

Enabling the Burst feature

About this task

The Burst feature enables the device to automatically allocate cell and packet resources. It is well suited to the following scenarios:

·     Broadcast or multicast traffic is intensive, resulting in bursts of traffic.

·     Traffic comes in and goes out in one of the following ways:

¡     Enters a device from a high-speed interface and goes out of a low-speed interface.

¡     Enters from multiple same-rate interfaces at the same time and goes out of an interface with the same rate.

This feature is supported only on the SC modules prefixed with LSCM2 and SD modules.

Procedure

1.     Enter system view.

system-view

2.     Enable the Burst feature.

In standalone mode:

burst-mode enable slot slot-number

In IRF mode:

burst-mode enable chassis chassis-number slot slot-number

By default, the Burst feature is disabled.

Configuring data buffer alarms

About data buffer alarms

This feature works with a network management system (such as IMC). Data buffer alarms include threshold-crossing alarms and packet drop alarms. The device reports these alarms to the network management system for displaying the data buffer usage.

You can configure data buffer alarms on a per-interface basis or a per-queue basis.

Restrictions and guidelines for data buffer alarm configuration

Only the SC modules prefixed with LSCM2 and SD modules support configuring per-queue alarm thresholds, and these modules support configuring per-queue alarm thresholds for only the egress buffer.

On the SE modules, only the egress buffer supports generating threshold-crossing alarm information.

Configuring per-interface alarm thresholds for the ingress or egress buffer

1.     Enter system view.

system-view

2.     Configure the alarm thresholds. Choose the options to configure as needed:

¡     Configure the global alarm threshold.

In standalone mode:

buffer { egress | ingress } usage threshold slot slot-number null-queue ratio ratio

In IRF mode:

buffer { egress | ingress } usage threshold chassis chassis-number slot slot-number null-queue ratio ratio

The default setting is 100%.

¡     Execute the following commands in sequence to configure the alarm threshold on an interface:

interface interface-type interface-number

port buffer { egress | ingress } usage threshold null-queue ratio ratio

By default, an interface uses the global alarm threshold.

If you configure both the global alarm threshold and the alarm threshold on an interface, the latter takes effect.

3.     Enable threshold-crossing alarms.

buffer threshold alarm { egress | ingress } enable

By default, threshold-crossing alarms are disabled.

4.     (Optional.) Set the interval for sending threshold-crossing alarms.

buffer threshold alarm { egress | ingress } interval interval

The default setting is 5 seconds.

Configuring per-queue alarm thresholds for the ingress or egress buffer

1.     Enter system view.

system-view

2.     Configure the alarm thresholds.

¡     Execute the following commands in sequence to configure the alarm threshold for a queue on an interface:

interface interface-type interface-number

buffer egress usage threshold queue queue-id ratio ratio

The default setting is 100%.

3.     Enable threshold-crossing alarms.

buffer threshold alarm { egress | ingress } enable

By default, threshold-crossing alarms are disabled.

4.     (Optional.) Set the interval for sending threshold-crossing alarms.

buffer threshold alarm { egress | ingress } interval interval

The default setting is 5 seconds.

Configuring per-interface alarm thresholds for the Headroom buffer

1.     Enter system view.

system-view

2.     Configure the alarm thresholds. Choose the options to configure as needed:

¡     Configure the global alarm threshold.

In standalone mode:

buffer usage threshold headroom slot slot-number ratio ratio

In IRF mode:

buffer usage threshold headroom chassis chassis-number slot slot-number ratio ratio

The default setting is 100%.

¡     Execute the following commands in sequence to configure the alarm threshold on an interface:

interface interface-type interface-number

port buffer usage threshold headroom null-queue ratio ratio

By default, an interface uses the global alarm threshold.

If you configure both the global alarm threshold and the alarm threshold on an interface, the latter takes effect.

3.     Enable threshold-crossing alarms.

buffer threshold alarm headroom enable

By default, threshold-crossing alarms are disabled.

4.     (Optional.) Set the interval for sending threshold-crossing alarms.

buffer threshold alarm headroom interval interval

The default setting is 5 seconds.

Configuring packet-drop alarms

About this task

This feature allows the device to periodically send packet-drop information to the NMS.

Restrictions and guidelines

This feature does not take effect on the Headroom buffer.

Procedure

1.     Enter system view.

system-view

2.     Enable packet-drop alarms.

buffer packet-drop alarm enable

By default, packet-drop alarms are disabled.

3.     (Optional.) Set the interval for sending packet-drop alarms.

buffer packet-drop alarm interval interval

The default setting is 5 seconds.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网