Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco CCIP MPLS Study Guide - James Reagan.pdf
Скачиваний:
250
Добавлен:
24.05.2014
Размер:
6.47 Mб
Скачать

MPLS Label Switching 15

Label-Switched Paths

Now let’s take a look at the label-switched paths. A label-switched path (LSP) is a unidirectional set of LSRs that the labeled packet must flow through in order to get to a particular destination.

Let’s say that the user on PE1 wants to ping the loopback address of PE2. So, the user types ping 192.168.1.4.

By looking at the labels in the following output of PE1, you can see the outbound label that will be used is 28 and it will be sent out Serial 0/0:

PE1#show mpls forwarding-table

 

 

 

Local

Outgoing

Prefix

Bytes tag

Outgoing

Next Hop

tag

tag or VC

or Tunnel Id

switched

interface

 

27

27

192.168.1.16/30

0

Se0/0

point2point

28

28

192.168.1.4/32

0

Se0/0

point2point

29

Pop tag

192.168.1.2/32

0

Se0/0

point2point

30

29

192.168.1.3/32

0

Se0/0

point2point

32

Pop tag

192.168.1.12/30

0

Se0/0

point2point

If a labeled packet of 28 arrives on P1, it will be sent out Serial 0/1 with an outbound label of 27, as the following output shows:

P1#show mpls forwarding-table

 

 

 

Local

Outgoing

Prefix

Bytes tag

Outgoing

Next Hop

tag

tag or VC

or Tunnel Id

switched

interface

 

27

Pop tag

192.168.1.16/30

0

Se0/1

point2point

28

27

192.168.1.4/32

0

Se0/1

point2point

29

Pop tag

192.168.1.3/32

0

Se0/1

point2point

31

Pop tag

192.168.1.1/32

0

Se0/0

point2point

If a labeled packet of 27 arrives on P2, it will be sent out Serial 0/1 unlabeled. The Pop tag, which you can see from the show mpls forwardingtable command on P2, means, “Don’t send this traffic as labeled, but instead send it as unlabeled IP traffic.” You can think of Pop tag as meaning, “The next hop router needs to do a Layer 3 lookup on the packet” or “The next hop router is the destination network or has a connected interface that is in the destination network.” The official name for this process is called penultimate hop popping.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

16 Chapter 1 An Introduction to MPLS

The word penultimate means “next to last.” With penultimate hop popping, the penultimate router in an LSP pops the label and forwards the packet as unlabeled IP to the next hop router.

In this example, the next-to-last router (P2) in the LSP pops the label and forwards the unlabeled packet to its ultimate destination (PE2), as the following output demonstrates:

P2#show mpls forwarding-table

 

 

 

Local

Outgoing

Prefix

Bytes tag Outgoing

Next Hop

tag

tag or VC

or Tunnel Id

switched

interface

 

27

Pop tag

192.168.1.4/32

26224

Se0/1

point2point

28

Pop tag

192.168.1.2/32

29568

Se0/0

point2point

30

Pop tag

192.168.1.8/30

0

Se0/0

point2point

31

31

192.168.1.1/32

0

Se0/0

point2point

Figure 1.9 shows the LSP from PE1 to PE2.

F I G U R E 1 . 9 The LSP from PE1 to PE2

 

 

Serial

0/0

0/0

Serial

0/1

0/0

Serial

0/1

 

0/0

 

Serial 0/1

 

Serial

 

 

 

Serial

 

Serial

 

Serial 0/1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PE1

 

 

 

P1

 

 

 

P2

 

 

 

PE2

Serial 0

IP

 

28

 

 

IP

 

27

 

IP

 

 

Serial 0

 

 

 

 

 

 

 

 

 

 

 

 

 

CE1

 

 

 

 

 

 

 

 

 

 

 

 

CE2

Now let’s now see what happens when a user on PE1 wants to ping the loopback address of PE2. The user types ping 192.168.1.3.

By looking at the labels of PE1 in the following output, you can see the outbound label that will be used is 29, and it will be sent out Serial 0/0:

PE1#show mpls forwarding-table

 

 

 

Local

Outgoing

Prefix

Bytes tag

Outgoing

Next Hop

tag

tag or VC

or Tunnel Id

switched

interface

 

27

27

192.168.1.16/30

0

Se0/0

point2point

28

28

192.168.1.4/32

0

Se0/0

point2point

29

Pop tag

192.168.1.2/32

0

Se0/0

point2point

30

29

192.168.1.3/32

0

Se0/0

point2point

32

Pop tag

192.168.1.12/30

0

Se0/0

point2point

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com