HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Configuration - Page 56

Configuring WRED, Configuration procedure, Configuration examples

Page 56 highlights

is below the upper threshold, the switch drops packets at the user-configured drop probability. When the queue size reaches the upper threshold, all subsequent packets are dropped. • Drop precedence-A parameter used in packet drop. Value 0 represents green packets, 1 represents yellow packets, and 2 represents red packets. Red packets are preferentially dropped. • Drop probability-Drop probability in percentage. A higher value means a higher drop probability. Configuring WRED In a WRED table, drop parameters are configured on a per queue basis because WRED regulates packets on a per queue basis. A WRED table can be applied to multiple interfaces. For a WRED table already applied to an interface, you can modify the values of the WRED table, but you cannot remove the WRED table. Configuration procedure To configure and apply a queue-based WRED table: Step Command Remarks 1. Enter system view. system-view N/A 2. Create a WRED table and enter its view. qos wred queue table table-name N/A Optional. 3. Set other parameters for the WRED table. queue queue-id [ drop-level drop-level ] low-limit low-limit high-limit high-limit [ discard-probability discard-prob ] By default, low-limit is 100, high-limit is 1000, and discard-prob is 10. 4. Enter interface view. 5. Apply the WRED table to the interface. interface interface-type interface-number N/A qos wred apply table-name N/A Configuration examples Configure a WRED table, set low-limit to 500, high-limit to 2000, and discard-probability to 50 for yellow packets in queue 1. Apply the WRED table to port GigabitEthernet 1/0/1. # Enter system view. system-view # Create a WRED table, and configure the drop parameters. [Sysname] qos wred queue table queue-table1 [Sysname-wred-table-queue-table1] queue 1 drop-level 1 low-limit 500 high-limit 2000 discard-probability 50 [Sysname-wred-table-queue-table1] quit # Enter port view. [Sysname] interface gigabitethernet 1/0/1 # Apply the WRED table to port GigabitEthernet 1/0/1. [Sysname-GigabitEthernet1/0/1] qos wred apply queue-table1 50

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

50
is below the upper threshold, the switch drops packets at the user-configured drop probability.
When the queue size reaches the upper threshold, all subsequent packets are dropped.
Drop precedence
—A parameter used in packet drop. Value 0 represents green packets, 1
represents yellow packets, and 2 represents red packets. Red packets are preferentially dropped.
Drop probability
—Drop probability in percentage. A higher value means a higher drop
probability.
Configuring WRED
In a WRED table, drop parameters are configured on a per queue basis because WRED regulates
packets on a per queue basis.
A WRED table can be applied to multiple interfaces. For a WRED table already applied to an interface,
you can modify the values of the WRED table, but you cannot remove the WRED table.
Configuration procedure
To configure and apply a queue-based WRED table:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a WRED table
and enter its view.
qos wred queue table
table-name
N/A
3.
Set other parameters for
the WRED table.
queue
queue-id
[
drop-level
drop-level
]
low-limit
low-limit
high-limit
high-limit
[
discard-probability
discard-prob
]
Optional.
By default,
low-limit
is 100,
high-limit
is 1000, and
discard-prob
is 10.
4.
Enter interface view.
interface
interface-type
interface-number
N/A
5.
Apply the WRED table
to the interface.
qos wred apply
table-name
N/A
Configuration examples
Configure a WRED table, set
low-limit
to 500,
high-limit
to 2000, and
discard-probability
to 50 for
yellow packets in queue 1. Apply the WRED table to port GigabitEthernet 1/0/1.
# Enter system view.
<Sysname> system-view
# Create a WRED table, and configure the drop parameters.
[Sysname] qos wred queue table queue-table1
[Sysname-wred-table-queue-table1] queue 1 drop-level 1 low-limit 500 high-limit 2000
discard-probability 50
[Sysname-wred-table-queue-table1] quit
# Enter port view.
[Sysname] interface gigabitethernet 1/0/1
# Apply the WRED table to port GigabitEthernet 1/0/1.
[Sysname-GigabitEthernet1/0/1] qos wred apply queue-table1