156
links leased from a service provider, which back up each other. The primary link provides 100 Mbps
of bandwidth and is configured with gateway address 10.0.0.2. The secondary link provides 40 Mbps
of bandwidth and is configured with gateway address 11.0.0.2. Department A and department B
need to transmit two types of traffic: data traffic, and video conferencing traffic with UDP port number
3000. Transmit the video traffic over only the secondary link. When all or partial bandwidth of the
secondary link is idle, data traffic can also be transmitted over the secondary link. In this way, both
the primary link and secondary link can be 100% utilized.
Configure interface-level hierarchical CAR to:
•
Limit the video traffic rate to 30 Mbps, drop the video traffic exceeding 30 Mbps, and transmit
the video traffic only over the secondary link.
•
Transmit data traffic over the secondary link when the all or partial bandwidth of the secondary
link is idle.
Figure 60 Network diagram
Configuration procedures
# Configure IP addresses for interfaces according to the network diagram, and configure the default
gateway address as 10.0.0.2 on the router (Site X), so that the packets are transmitted over the
primary link by default. (Details not shown)
# Configure ACL 3000 and ACL 3001 to match video traffic and non-video traffic, respectively.
<Router> system-view
[Router] acl number 3000 name video
[Router-acl-adv-3000-video] rule 0 permit udp destination-port eq 3000
[Router-acl-adv-3000-video] quit
[Router] acl number 3001 name notvideo
[Router-acl-adv-3001-video] rule 0 deny udp destination-port eq 3000
[Router-acl-adv-3001-video] rule 1 permit ip
[Router-acl-adv-3001-video] quit
# Configure hierarchical CAR in the inbound direction of interface GigabitEthernet 2/1/0 to limit the
rate of video traffic to 30 Mbps, reserve 10 Mbps of bandwidth for non-video traffic, reserve 40 Mbps
of bandwidth for all traffic, and mark the traffic within the specification of 40 Mbps with IP precedence
7, prioritizing the green packets that have been processed by an upper-level CAR.
[Router] interface GigabitEthernet 2/1/0
[Router-GigabitEthernet2/1/0] qos car inbound acl 3000 cir 30000 green continue red discard
[Router-GigabitEthernet2/1/0] qos car inbound acl 3001 cir 10000 green continue red
continue