Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Designing and Developing Scalable IP Networks.pdf
Скачиваний:
37
Добавлен:
15.03.2015
Размер:
2.95 Mб
Скачать

100

MULTIPROTOCOL LABEL SWITCHING (MPLS)

label mappings are of little practical value. So, you are left with a requirement for a label distribution protocol.

7.3 TAG DISTRIBUTION PROTOCOL (TDP)

One of the original, proprietary pre-MPLS protocols was developed by Cisco and was called tag switching. TDP is Cisco’s protocol for the distribution of ‘tags’ used in its tag switching system. It works on a hop-by-hop basis. The tag switched paths produced by TDP follow the shortest path as selected by the IGP. Tag switching is supported on Cisco’s routers in frame and cell mode and on Cisco’s ATM switches in cell mode only.

Unless you have only Cisco LSRs, then TDP is not a practical solution. Even if you do have only Cisco LSRs today, it is not really wise to use TDP because it constrains you if you subsequently wish to use another vendor’s hardware. Cisco routers can run TDP on one interface of a router and LDP (see below) on another, providing a conversion interface between the two protocols.

7.4 LABEL DISTRIBUTION PROTOCOL (LDP)

LDP is a protocol similar to, but incompatible with, TDP. It also works on a hop-by-hop basis producing LSPs, which follow the shortest path from ingress to egress as selected by the IGP. It was designed by the MPLS working group of the IETF. LDP is widely supported by router vendors. It is also supported on ATM LSRs providing the means for integrating signalling of LSPs from end to end across both frame and cell-based networks.

If you have no traffic engineering requirements, it is generally simpler to implement LDP than RSVP-TE (see below). An LSR running LDP discovers its neighbours and automatically distributes a label for each address for which it has received a label. Cisco routers by default also create a label for every attached interface. Juniper routers only produce a label for the loopback interfaces. Since labels are not created for the links to your eBGP neighbours, you must set next-hop-self on iBGP sessions or the next hop will not be accessible. If you have a combination of Cisco and Juniper routers as PE, then it is advisable to decide which model you will use and ensure that you use it consistently. Under these circumstances, my advice would be to limit the Cisco PE to advertising only the loopback address (see Table 7.1).

Table 7.1 IOS configuration to constrain LDP advertisements to loopback0 only

mpls ip

mpls ldp advertise-labels for 1

!

interface loopback0

ip address 192.168.255.1 255.255.255.255 mpls ip

!

access-list 1 permit 192.168.255.1 0.0.0.0 access-list 1 deny any

7.5 RSVP WITH TRAFFIC ENGINEERING EXTENSIONS (RSVP-TE)

101

7.4.1LDP GRACEFUL RESTART

As with several of the routing protocols described in Chapter 5, it is desirable to be able to support graceful restart for LDP sessions. Graceful Restart for LDP is described in RFC 3478.

If the LDP control plane in an LSR restarts, it is preferable not to have to tear down all the LSPs traversing that LSR, recalculate a shortest path and resignal the new LSPs avoiding the restarting LSR then, upon recovery of the LSR, be left with non-optimal LSPs until an optimization of the LSPs is carried out. Instead, in cases where the forwarding plane can be maintained across the temporary failure of the control plane, it is better simply to continue forwarding traffic using exactly the same mappings of incoming label, incoming interface, outgoing label, outgoing interface/next-hop.

Adjacent LSRs signal their ability to maintain their MPLS forwarding state derived from LDP by setting the fault tolerant (FT) TLV during the initial exchanges of the LDP protocol. This FT TLV contains two items, a Reconnect Timeout and a Recovery Time.

The Reconnect Timeout is the time in milliseconds within which the restarting router can restart its control plane and establish an LDP session to the receiving router such that LDP information can be exchanged. The receiving router should maintain the MPLS forwarding state for the period specified in the Reconnect Timeout. If the Reconnect Timeout specified by the restarting router is zero, it indicates that the restarting router cannot maintain its MPLS forwarding state across the control plane restart. This sounds rather strange, but it indicates that this router is capable of responding correctly if a neighbour can maintain its forwarding state across the restart.

If the restarting router can maintain its forwarding state, it sets a configurable timer and marks all its forwarding entries as stale. As it receives updates following the restart, the restarting router replaces stale entries with updated entries. When this timer expires, any remaining stale entries are purged.

Similarly, when the receiving router notices that the LDP session with its neighbour has been lost, it checks whether that neighbour is capable of maintaining its state across the restart. If so, the receiving router would mark the state learned from the restarting router as stale and start a timer, the value of which is the lower of the Reconnect Timeout from the FT TLV exchanged at the time of initialization and a configurable local timer called the Neighbour Liveness Timer. When the timer expires, any remaining stale state is purged.

7.5RSVP WITH TRAFFIC ENGINEERING EXTENSIONS (RSVP-TE)

RSVP is a protocol that was designed for an entirely different purpose—the reservation of resources across a network for a single flow between a source host and destination host. It was chosen as a candidate for a label distribution protocol because it has the ability to define specific paths across the network and associate resources with those paths. This was particularly attractive as it provides a mechanism for traffic engineering of labelled

102

MULTIPROTOCOL LABEL SWITCHING (MPLS)

packets. Extensions were added to RSVP to add the ability to request and assign labels along the chosen path. By default, RSVP-TE follows the same path as selected by the IGP. However, it provides the ability to use an alternative path that is based on another set of criteria and explicitly signal that path from ingress to egress of the MPLS network. This is the basis of traffic engineering using MPLS.

The extra information, upon which these traffic engineering decisions are made, is carried in extensions to the IGP (OSPF or IS-IS) and is stored in the traffic engineering database (TED).

7.5.1 RSVP-TE GRACEFUL RESTART

The purpose of the RSVP-TE graceful restart mechanism is similar to that of the LDP restart mechanism. The whole point is to avoid the recalculation of the forwarding path during the restart of the control plane of an LSR. The recalculation of an LSP impacts all the LSRs in both the old and the new path between ingress and egress. In a large network, there can be tens or even hundreds of LSPs passing through a single LSR. By maintaining the forwarding state across the restart of the control plane, this widespread disruption is avoided, thus reducing the burden upon the processing power of LSRs.

RSVP restart shares a lot of common features with IS-IS restart including the use of a Restart Timeout and a Recovery Time field in the Hello messages. In the case of RSVP, this is carried in the Restart Cap TLV. These extensions are described fully in RFC 3473.

7.5.2OSPF WITH TRAFFIC ENGINEERING EXTENSIONS (OSPF-TE)

OSPF has a particular group of LSA types, which are able to carry information with no inherent meaning to OSPF itself. These are known as opaque LSAs. There are three types of opaque LSA. Type 9 LSAs are flooded only on a single link, Type 10 LSAs are flooded only within a single area, and Type 11 LSAs are flooded throughout the entire autonomous system. Type 10 LSAs were chosen to carry traffic engineering information. A new type 10 LSA called the traffic engineering LSA was created explicitly for this purpose. This currently constrains traffic engineering to a single OSPF area. Work is currently underway to develop systems whereby multi-area and even multi-domain traffic engineering can be implemented.

The information carried in the type 10 LSAs is used to populate the TED. The information in the TED is used by the CSPF process to calculate the shortest path, which also meets all the criteria mandated for a particular LSP.

7.5.3IS-IS WITH TRAFFIC ENGINEERING EXTENSIONS (IS-IS-TE)

IS-IS is inherently extensible so, rather than using extant features of IS-IS, new TLVs were created to carry the TE information. The TE information is, as with OSPF, used to