You are on page 1of 9

DEMO NG DNG CN BNG TI (TRAFFIC ENGINEERING) TRONG GIAO THC CHUYN MCH NHN MPLS

Phn demo ny c thc hin trn phn mm gi lp mng GNS3 (Packet Tracer khng h tr cc cu lnh cu mnh MPLS) 1. Nguyn l ca cn bng ti trong giao thc chuyn mch nhn MPLS tng c bn ng sau vic iu khin lu lng l s dng ti u h tng mng, bao gm cc ng kt ni s dng khng ng mc, bi v chng khng th thuc cc tuyn u tin. iu ny c ngha l iu khin lu lng phi cung cp kh nng hng lu lng qua mng trn cc tuyn i khc nhau t tuyn u tin, l tuyn c chi ph thp nht c cung cp bi nh tuyn IP. Tuyn chi ph thp nht l tuyn ng ngn nht nh tnh ton bi giao thc nh tuyn ng. Vi nhim v iu khin lu lng trong mng MPLS, ta c th c lu lng m c xc nh c th t trc hoc vi cht lng c th ca lung dch v t im A n im B dc theo mt tuyn (m tuyn ny khc vi tuyn c chi ph thp nht). Kt qu l lu lng c th tri rng hn qua nhng ng kt ni c sn trong mng v lm cho s dng nhiu ng kt ni b ri trong mng. V d s sau:

iu khin lu lng trong MPLS_TE

Nh ngi iu hnh mng iu khin lu lng trong mng, ta c th hng lu lng t im A ti im B qua tuyn di (y khng phi l tuyn ngn nht gia A v B qua 3 router so vi 2 router tuyn trn). Theo ng ngha ta c th gi lu lng qua cc ng kt ni m chng c th khng c s dng nhiu. Ta c th hng lu lng trong mng trn ng pha di bng vic thit lp cc cu hnh nh tuyn MPLS_TE

2. TOPOLOGY

3. KCH BN DEMO

Ta s xy dng 3 ng tunnels 2 ng tunnel explixit vi nt ngun l R5 v nt ch l R4 ng tunnel th nht t tn l Tunnel 158 s i ln lt qua cc Router R5 R2 R3 R4 - ng tunnel th 2 t tn l Tunnel 159 s i ln lt qua cc Router R5 R2 R1 R3 R4 1 ng tunnel dynamic vi nt ngun l R4 v nt ch l R5

4. Cu hnh a. Mt s thut ng vit tt CEF IS-IS Cisco Express Forwarding Intermediate System to Intermediate System Giao thc chuyn tip nhanh ca Cisco Giao thc H thng trung gian ti H thng trung gian Giao thc ginh sn ti nguyn

RSVP

Resource Reservation Protocol

b.

Cc cu lnh cu hnh Cc cu lnh cu hnh MPLS v Traffic Engineering c in m

Cu hnh R5

hostname R5 ! ip cef mpls trafficeng tunnels ! interface Loopback0 ip address 10.10.10.6 255.255.255.255 ip router isis

! interface Tunnel158 ip unnumbered Loopback0 tunnel destination 10.10.10.4 tunnel mode mpls trafficeng tunnel mpls trafficeng autoroute announce tunnel mpls trafficeng priority 2 2 tunnel mpls trafficeng bandwidth 158 tunnel mpls trafficeng pathoption 1 explicit name low ! interface Tunnel159 ip unnumbered Loopback0 tunnel destination 10.10.10.4 tunnel mode mpls trafficeng tunnel mpls trafficeng autoroute announce tunnel mpls trafficeng priority 4 4 tunnel mpls trafficeng bandwidth 159 tunnel mpls trafficeng pathoption 1 explicit name straight ! interface Serial0/0 no ip address encapsulation framerelay ! interface Serial0/0.1 pointtopoint bandwidth 512 ip address 10.1.1.22 255.255.255.252 ip router isis tagswitching ip mpls trafficeng tunnels framerelay interfacedlci 603 ip rsvp bandwidth 512 512 ! router isis net 49.0001.0000.0000.0006.00 istype level1 metricstyle wide mpls trafficeng routerid Loopback0 mpls trafficeng level1 ! ip classless

! ip explicitpath name low enable nextaddress 10.1.1.21 nextaddress 10.1.1.10 nextaddress 10.1.1.1 nextaddress 10.1.1.14 ! ip explicitpath name straight enable nextaddress 10.1.1.21 nextaddress 10.1.1.5 nextaddress 10.1.1.14 ! End

Cu hnh R4 hostname R4 ! ip cef mpls trafficeng tunnels ! interface Loopback0 ip address 10.10.10.4 255.255.255.255 ip router isis ! interface Tunnel1 ip unnumbered Loopback0 tunnel destination 10.10.10.6 tunnel mode mpls trafficeng tunnel mpls trafficeng autoroute announce tunnel mpls trafficeng priority 5 5 tunnel mpls trafficeng bandwidth 25 tunnel mpls trafficeng pathoption 2 dynamic ! interface Serial0/1 no ip address encapsulation framerelay ! interface Serial0/1.1 pointtopoint bandwidth 512

ip address 10.1.1.14 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 401 ip rsvp bandwidth 512 512 ! router isis net 49.0001.0000.0000.0004.00 istype level1 metricstyle wide mpls trafficeng routerid Loopback0 mpls trafficeng level1 ! End Cu hnh R2 Hostname R2 ! ip cef mpls trafficeng tunnels ! interface Loopback0 ip address 10.10.10.3 255.255.255.255 ip router isis ! interface Serial0/1 no ip address encapsulation framerelay ! interface Serial0/1.1 pointtopoint bandwidth 512 ip address 10.1.1.6 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 301 ip rsvp bandwidth 512 512 ! interface Serial0/1.2 pointtopoint bandwidth 512 ip address 10.1.1.9 255.255.255.252

ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 302 ip rsvp bandwidth 512 512 ! interface Serial0/0.1 pointtopoint bandwidth 512 ip address 10.1.1.21 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 306 ip rsvp bandwidth 512 512 ! router isis net 49.0001.0000.0000.0003.00 istype level1 metricstyle wide mpls trafficeng routerid Loopback0 mpls trafficeng level1 ! ip classless ! End Cu hnh R1 hostname R1 ! ip cef mpls trafficeng tunnels ! interface Loopback0 ip address 10.10.10.2 255.255.255.255 ! interface Serial0/1 no ip address encapsulation framerelay ! interface Serial0/1.1 pointtopoint bandwidth 512

ip address 10.1.1.2 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 201 ip rsvp bandwidth 512 512 ! interface Serial0/1.2 pointtopoint bandwidth 512 ip address 10.1.1.10 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 203 ip rsvp bandwidth 512 512 ! router isis passiveinterface Loopback0 net 49.0001.0000.0000.0002.00 istype level1 metricstyle wide mpls trafficeng routerid Loopback0 mpls trafficeng level1 ! ip classless ! End Cu hnh R3 hostname R3 ! ip cef mpls trafficeng tunnels ! interface Loopback0 ip address 10.10.10.1 255.255.255.255 ip router isis ! interface Serial0/0 no ip address encapsulation framerelay !

interface Serial0/0.1 pointtopoint bandwidth 512 ip address 10.1.1.1 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 102 ip rsvp bandwidth 512 512 ! interface Serial0/0.2 pointtopoint bandwidth 512 ip address 10.1.1.5 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 103 ip rsvp bandwidth 512 512 ! interface Serial0/1.1 pointtopoint bandwidth 512 ip address 10.1.1.13 255.255.255.252 ip router isis mpls trafficeng tunnels tagswitching ip framerelay interfacedlci 104 ip rsvp bandwidth 512 512 ! router isis net 49.0001.0000.0000.0001.00 istype level1 metricstyle wide mpls trafficeng routerid Loopback0 mpls trafficeng level1 ! ip classless ! end