Task
Display traffic behavior configuration.
Display GTS configuration and statistics for
interfaces.
Display
rate
statistics for interfaces or PWs.
Traffic policing, GTS, and rate limit configuration
examples
Traffic policing and GTS configuration example
Network requirements
As shown in
•
The server, Host A, and Host B can access the Internet through Router A and Router B.
•
The server, Host A, and GigabitEthernet 1/0/1 of Router A are in the same network segment.
•
Host B and GigabitEthernet 1/0/2 of Router A are in the same network segment.
Perform traffic control for the packets GigabitEthernet 1/0/1 of Router A receives from the server and
Host A using the following guidelines:
•
Limit the rate of packets from the server to 54 kbps. When the traffic rate is below 54 kbps, the
traffic is forwarded. When the traffic rate exceeds 54 kbps, the excess packets are marked with
IP precedence 0 and then forwarded.
•
Limit the rate of packets from Host A to 8 kbps. When the traffic rate is below 8 kbps, the traffic
is forwarded. When the traffic rate exceeds 8 kbps, the excess packets are dropped.
Perform traffic control on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Router B using the
following guidelines:
•
Limit the incoming traffic rate on GigabitEthernet 1/0/1 to 500 kbps, and the excess packets are
dropped.
•
Limit the outgoing traffic rate on GigabitEthernet 1/0/2 to 1000 kbps, and the excess packets
are dropped.
Figure 12 Network diagram
Server
1.1.1.1/8
Ethernet
limit
configuration
Figure
12:
Host A
GE1/0/1
1.1.1.2/8
GE1/0/1
GE1/0/3
Router A
GE1/0/2
Command
display traffic behavior user-defined [ behavior-name ]
display qos gts interface [ interface-type interface-number ]
and
display qos lr { interface [ interface-type interface-number ]
| l2vpn-pw [ peer ip-address pw-id pw-id ] }
Internet
Router B
GE1/0/2
Host B
55