Anda di halaman 1dari 59

2003, Cisco Systems, Inc. All rights reserved.

Label Assignment and Distribution

Typical Label Distribution in FrameMode MPLS

2003, Cisco Systems, Inc. All rights reserved.

Outline
Overview MPLS Unicast IP Routing and Architecture Label Switch Paths

Label Allocation in a Frame-Mode MPLS Environment


Label Distribution and Advertisement Populating LFIB

Packet Propagation Across an MPLS Network


Frame-mode Loop Detection Penultimate Hop Popping Per-Platform Label Allocation Lesson Summary
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-3

MPLS Unicast IP Routing Architecture


MPLS introduces a new field that is used for forwarding decisions. Although labels are locally significant, they have to be advertised to directly reachable peers.
One option would be to include this parameter in existing IP routing protocols.

The other option is to create a new protocol to exchange labels.


The second option has been used because there are too many existing IP routing protocols that would have to be modified to carry labels.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-4

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-5

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-6

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-7

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-8

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-9

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-10

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-11

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-12

MPLS Unicast IP Routing Architecture (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-13

Label Switched Paths


A label switched path (LSP) is a sequence of LSRs that forward labeled packets of a certain forwarding equivalence class.
MPLS unicast IP forwarding builds LSPs based on the output of IP routing protocols. LDP and TDP advertise labels only for individual segments in the LSP. LSPs are unidirectional.

Return traffic uses a different LSP (usually the reverse path because most routing protocols provide symmetrical routing).
An LSP can take a different path from the one chosen by an IP routing protocol (MPLS Traffic Engineering).
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-14

LSP Building

The IP routing protocol determines the path.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-15

LSP Building (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-16

LSP Building (Cont.)

LDP or TDP propagates labels to convert the path to a label switched path (LSP).
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-17

Impacts of IP Aggregation on Label Switched Paths

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-18

Impacts of IP Aggregation on Label Switched Paths

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-19

Impacts of IP Aggregation on Label Switched Paths

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-20

Impacts of IP Aggregation on Label Switched Paths

IP aggregation breaks an LSP into two segments. Router C is forwarding packets based on Layer 3 information.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-21

Impacts of IP Aggregation on Label Switched Paths (Cont.)

ATM LSRs must not aggregate because they cannot forward IP packets. Aggregation should not be used where endtoend LSPs are required (MPLS VPN).

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-22

Label Allocation in a Frame-Mode MPLS Network

Label allocation and distribution in a frame-mode MPLS network follows these steps:
IP routing protocols build the IP routing table. Each LSR assigns a label to every destination in the IP routing table independently. LSRs announce their assigned labels to all other LSRs. Every LSR builds its LIB, LFIB, and FIB data structures based on received labels.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-23

Label Allocation in a Frame-Mode MPLS Network (Cont.) Building the IP Routing Table

IP routing protocols are used to build IP routing tables on all LSRs. FIBs are built based on IP routing tables with no labeling information.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-24

Label Allocation in a Frame-Mode MPLS Network (Cont.) Allocating Labels

Every LSR allocates a label for every destination in the IP routing table. Labels have local significance. Label allocations are asynchronous.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-25

Label Allocation in a Frame-Mode MPLS Network (Cont.) LIB and LFIB Setup

LIB and LFIB structures have to be initialized on the LSR allocating the label.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-26

Label Distribution and Advertisement

The allocated label is advertised to all neighbor LSRs, regardless of whether the neighbors are upstream or downstream LSRs for the destination.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-27

Label Distribution and Advertisement (Cont.) Receiving Label Advertisement

Every LSR stores the received label in its LIB. Edge LSRs that receive the label from their next hop also store the label information in the FIB.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-28

Label Distribution and Advertisement (Cont.) Interim Packet Propagation

Forwarded IP packets are labeled only on the path segments where the labels have already been assigned.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-29

Label Distribution and Advertisement (Cont.) Interim Packet Propagation

Forwarded IP packets are labeled only on the path segments where the labels have already been assigned.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-30

Label Distribution and Advertisement (Cont.) Interim Packet Propagation

Forwarded IP packets are labeled only on the path segments where the labels have already been assigned.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-31

Label Distribution and Advertisement (Cont.) Further Label Allocation

Every LSR will eventually assign a label for every destination.


2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-32

Label Distribution and Advertisement (Cont.) Receiving Label Advertisement

Every LSR stores received information in its LIB. LSRs that receive their label from their next hop LSR will also populate the IP forwarding table (FIB).
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-33

Label Distribution and Advertisement (Cont.) Receiving Label Advertisement

Every LSR stores received information in its LIB. LSRs that receive their label from their next hop LSR will also populate the IP forwarding table (FIB).
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-34

Populating LFIB

Router B has already assigned a label to network X and created an entry in the LFIB. The outgoing label is inserted in the LFIB after the label is received from the next hop LSR.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-35

Packet Propagation Across an MPLS Network

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-36

Packet Propagation Across an MPLS Network

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-37

Packet Propagation Across an MPLS Network

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-38

Packet Propagation Across an MPLS Network

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-39

Loop Detection
LDP/TDP relies on loop detection mechanisms built into IGPs that are used to determine the path.
If, however, a loop is generated (that is, misconfiguration with static routes), the TTL field in the label header is used to prevent indefinite looping of packets. TTL functionality in the label header is equivalent to TTL in the IP headers. TTL is usually copied from the IP headers to the label headers (TTL propagation).
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-40

Normal TTL Operation

Cisco routers have TTL propagation enabled by default. On ingress: TTL is copied from IP header to label header. On egress: TTL is copied from label header to IP header.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-41

Normal TTL Operation

Cisco routers have TTL propagation enabled by default. On ingress: TTL is copied from IP header to label header. On egress: TTL is copied from label header to IP header.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-42

Normal TTL Operation

Cisco routers have TTL propagation enabled by default. On ingress: TTL is copied from IP header to label header. On egress: TTL is copied from label header to IP header.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-43

TTL and Loop Detection

Labeled packets are dropped when the TTL is decreased to 0.


2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-44

Disabling TTL Propagation


TTL propagation can be disabled. The IP TTL value is not copied into the TTL field of the label, and the label TTL is not copied back into the IP TTL. Instead, the value 255 is assigned to the label header TTL field on the ingress LSR. Disabling TTL propagation hides core routers in the MPLS domain. Traceroute across an MPLS domain does not show any core routers.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-45

Traceroute with Disabled TTL Propagation

The first traceroute packet (ICMP or UDP) that reaches the network is dropped on router A. An ICMP time-to-live exceeded message is sent to the source from router A.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-46

Traceroute with Disabled TTL Propagation (Cont.)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-47

Traceroute with Disabled TTL Propagation (Cont.)

The second traceroute packet that reaches the network is dropped on router D.
An ICMP time-to-live exceeded message is sent to the source from router D.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-48

Impact of Disabling TTL Propagation


Traceroute across an MPLS domain does not show core routers. TTL propagation has to be disabled on all label switch routers. Mixed configurations (some LSRs with TTL propagation enabled and some with TTL propagation disabled) could result in faulty traceroute output. TTL propagation can be enabled for forwarded traffic onlytraceroute from LSRs does not use the initial TTL value of 255.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-49

Penultimate Hop Popping: Before

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-50

Penultimate Hop Popping: Before

Double lookup is not an optimal way of forwarding labeled packets. A label can be removed one hop earlier.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-51

Penultimate Hop Popping: After

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-52

Penultimate Hop Popping: After

A label is removed on the router before the last hop within an MPLS domain.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-53

Penultimate Hop Popping

Penultimate hop popping optimizes MPLS performance (one less LFIB lookup).

PHP does not work on ATM (VPI/VCI cannot be removed).


The pop or implicit null label uses a reserved value when being advertised to a neighbor.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.02-54

Per-Platform Label Allocation

An LFIB on a router usually does not contain an incoming interface. The same label can be used on any interfaceperplatform label allocation. LSR announces a label to an adjacent LSR only once even if there are parallel links between them.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-55

Per-Platform Label Allocation (Cont.) Benefits and Drawbacks of Per-Platform Label Allocation

Benefits:
Smaller LFIB Faster label exchange
2003, Cisco Systems, Inc. All rights reserved.

Drawbacks:
Insecureany neighbor LSR can send packets with any label in the LFIB
MPLS v2.02-56

Per-Platform Label Allocation (Cont.) Benefits and Drawbacks of Per-Platform Label Allocation

Benefits:
Smaller LFIB Faster label exchange
2003, Cisco Systems, Inc. All rights reserved.

Drawbacks:
Insecureany neighbor LSR can send packets with any label in the LFIB
MPLS v2.02-57

Summary
A forwarding equivalence class (FEC) equals an IP destination network. A label switching path (LSP) is a sequence of LSRs that forward labeled packets of a certain forwarding equivalence class. Every LSR assigns a label for every destination in the IP routing table. Although labels are locally significant, they have to be advertised to directly reachable peers. Outgoing labels are inserted in the LFIB after the label is received from the next hop LSR. Packets are forwarded using labels from the LFIB table rather than the IP routing table. If TTL propagation is disabled, traceroute across an MPLS domain does not show core routers. Penultimate hop popping optimizes MPLS performance (one less LFIB lookup). LSR announces a label to an adjacent LSR only once even if there are parallel links between them.
2003, Cisco Systems, Inc. All rights reserved. MPLS v2.02-58

Anda mungkin juga menyukai