HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Command Refere - Page 48

Parameters, Description, Examples, green, yellow, discard, remark-dot1p-pass, undo car, qos policy

Page 48 highlights

Parameters cir committed-information-rate: Specifies the committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 8 to 32000000 and must be a multiple of 8. cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. • If you do not specify the cbs keyword, the CBS is 62.5 × committed-information-rate by default and must be in the range of 512 to 16000000. • If you specify the cbs keyword, the CBS ranges from 512 to 16000000. ebs excess-burst-size: Specifies the excess burst size (EBS) in bytes. The excess-burst-size argument ranges from 0 to 16000000 and defaults to 512. pir peak-information-rate: Specifies the peak information rate (PIR) in kbps. The peak-information-rate argument ranges from 8 to 32000000 and must be a multiple of 8. green action: Specifies the action to take on a packet that conforms to CIR. The default is pass. yellow action: Specifies the action to take on a packet that conforms to PIR but not to CIR. The default is pass. red action: Specifies the action to take on a packet that conforms to neither CIR nor PIR. The default is discard. action: Sets the action to take on the packet: • discard-Drops the packet. • pass-Permits the packet to pass through. • remark-dot1p-pass new-cos-Sets the 802.1p priority of the packet to new-cos and permits the packet to pass through. The new-cos argument ranges from 0 to 7. • remark-dscp-pass new-dscp-Sets the DSCP value of the packet to new-dscp and permits the packet to pass through. The new-dscp argument ranges from 0 to 63 or is a keyword in Table 17. • remark-lp-pass new-local-precedence-Sets the local precedence of the packet to new-local-precedence and permits the packet to pass through. The new-local-precedence argument ranges from 0 to 7. Description Use car to configure a CAR action in a traffic behavior. Use undo car to delete a CAR action from a traffic behavior. You can use a CAR action to rate limit inbound or outbound traffic. A traffic behavior can have only one CAR action. If you configure the car command multiple times in a traffic behavior, the last configuration takes effect. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure a CAR action in the traffic behavior database: • Set the CIR to 128 kbps, CBS to 50000 bytes, and EBS to 0. • Allow the conforming packets to pass, and mark the excess packets with DSCP precedence 0 and forward them. system-view [Sysname] traffic behavior database [Sysname-behavior-database] car cir 128 cbs 50000 ebs 0 green pass red remark-dscp-pass 0 43

  • 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
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104

43
Parameters
cir
committed-information-rate
: Specifies the committed information rate (CIR) in kbps. The
committed-information-rate
argument ranges from 8 to 32000000 and must be a multiple of 8.
cbs
committed-burst-size
: Specifies the committed burst size (CBS) in bytes.
If you do not specify the
cbs
keyword, the CBS is 62.5 ×
committed-information-rate
by default and
must be in the range of 512 to 16000000.
If you specify the
cbs
keyword, the CBS ranges from 512 to 16000000.
ebs
excess-burst-size
: Specifies the excess burst size (EBS) in bytes. The
excess-burst-size
argument ranges
from 0 to 16000000 and defaults to 512.
pir
peak-information-rate
: Specifies the peak information rate (PIR) in kbps. The
peak-information-rate
argument ranges from 8 to 32000000 and must be a multiple of 8.
green
action
: Specifies the action to take on a packet that conforms to CIR. The default is
pass
.
yellow
action
: Specifies the action to take on a packet that conforms to PIR but not to CIR. The default is
pass
.
red
action
: Specifies the action to take on a packet that conforms to neither CIR nor PIR. The default is
discard
.
action
: Sets the action to take on the packet:
discard
—Drops the packet.
pass
—Permits the packet to pass through.
remark-dot1p-pass
new-cos
—Sets the 802.1p priority of the packet to
new-cos
and permits the
packet to pass through. The
new-cos
argument ranges from 0 to 7.
remark-dscp-pass
new-dscp
—Sets the DSCP value of the packet to
new-dscp
and permits the
packet to pass through. The
new-dscp
argument ranges from 0 to 63 or is a keyword in
Table 17
.
remark-lp-pass
new-local-precedence
—Sets the local precedence of the packet to
new-local-precedence
and permits the packet to pass through. The
new-local-precedence
argument
ranges from 0 to 7.
Description
Use
car
to configure a CAR action in a traffic behavior.
Use
undo car
to delete a CAR action from a traffic behavior.
You can use a CAR action to rate limit inbound or outbound traffic.
A traffic behavior can have only one CAR action. If you configure the
car
command multiple times in a
traffic behavior, the last configuration takes effect.
Related commands:
qos policy
,
traffic behavior
, and
classifier behavior
.
Examples
# Configure a CAR action in the traffic behavior
database
:
Set the CIR to 128 kbps, CBS to 50000 bytes, and EBS to 0.
Allow the conforming packets to pass, and mark the excess packets with DSCP precedence 0 and
forward them.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] car cir 128 cbs 50000 ebs 0 green pass red remark-dscp-pass
0