Books
in black and white
Main menu
Share a book About us Home
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

Connection Oriented Networks - Perros H.G

Perros H.G Connection Oriented Networks - John Wiley & Sons, 2005. - 359 p.
ISBN 0-470-02163-2
Download (direct link): connectionorientednetworks2005.pdf
Previous << 1 .. 87 88 89 90 91 92 < 93 > 94 95 96 97 98 99 .. 181 >> Next

A-E: Two LDP sessions, each associated with one hello adjacency
A-F: Two LDP sessions, each associated with one hello adjacency
The establishment of an LDP session involves two steps. First, a TCP session is established. Second, an LDP session is initialized, during which the two LSRs negotiate
152
LABEL DISTRIBUTION PROTOCOLS
session parameters (such as protocol version, label distribution method, timer values, range of VPI/VCI values for ATM, and range of DLCI values for frame relay).
An LSR maintains a timer for each hello adjacency, which it restarts each time it receives a hello message. If the timer expires without having received a hello message from the peer LSR, the hello adjacency is deleted. The LDP session is terminated, if all hello adjacencies associated with an LDP session are deleted.
An LSR maintains a keepAlive timer for each session. The timer is reset each time it receives any LSP PDU from its LDP peer. If the LDP peer has nothing to send, it sends a keepAlive message.
7.1.2 The LDP PDU Format
An LDP PDU consists of an LDP header followed by one or more LDP messages which might not be related to each other. The LDP PDU format is shown in Figure 7.2. The LDP header consists of the fields:
Version: A 16-bit field that contains the protocol version.
PDU length: A 16-bit field that gives the total length of the LDP PDU in bytes, excluding the version and PDU length fields of the LDP PDU header.
LDP id: A 48-bit field that contain the LDP id (that is, the label space id) which has the form (32-bit router id, label space number).
The LDP message format consists of a header followed by mandatory and optional parameters. The header and the parameters are all encoded using the type-length-value (TLV) scheme shown in Figure 7.3. The following fields have been defined:
Figure 7.2 The LDP PDU format.
0 12 3
0 1 234567890123456789012345678901
U F Type Length
Va ue
r
Figure 7.3 The TLV format.
THE LABEL DISTRIBUTION PROTOCOL (LDP)
153
U (Unknown TLV bit): Used when an unknown TLV is received. If U = 0, then a notification is returned to the message originator and the entire message is ignored. If U = 1, then the TLV is silently ignored and the rest of the message is processed as if the TLV did not exist.
F (Forward unknown TLV bit): This bit applies only when U = 1, and the LDP message containing the unknown TLV has to be forwarded. If F = 0, then the unknown TLV is not forwarded with the rest of the message. If F = 1, then the unknown TLV is forwarded with the rest of the message.
Type: A 14-bit field that describes how the Value field is to be interpreted.
Length: A 16-bit field that gives the length of the Value field in bytes.
Value: Contains information that is interpreted as specified in the Type field. It might contain TLV encoding itself.
7.1.3 The LDP Message Format
The LDP message format is shown in Figure 7.4. The following fields have been defined:
U (Unknown message bit): Upon receipt of an unknown message, if U = 0, then a notification is returned to the message originator. If U = 1, then the unknown message is silently ignored.
Message type: A 15-bit field that is used to identify the type of message.
Message length: A 16-bit field that gives the total length (in bytes) of the message ID field and the mandatory and optional parameters fields.
Message ID: A 32-bit value used to identify this message. Subsequent messages related to this one have to carry the same message ID.
The mandatory fields will be discussed separately for each individual LDP message.
7.1.4 The LDP Messages
The following LDP messages have been defined: notification, hello, initialization, keepAlive, address, address withdraw, label mapping, label request, label abort request, label withdraw, and label release.
Notification message
This message is used to inform an LDP peer of a fatal error, or to provide advisory information regarding the outcome of processing an LDP message or the state of an LDP
0 12 3
01234567890123456789012345678901
Message type Message length
Message id
Mandatory parameters
Optional parameters
U
Figure 7.4 The LDP message format.
154
LABEL DISTRIBUTION PROTOCOLS
session. Some of the notification messages are:
Malformed PDU or message
Unknown or malformed TLV
Session keepAlive timer expiration
Unilateral session shutdown
Initialization message events
Events resulting from other errors
Hello message
LDP hello messages are exchanged as part of the LDP discovery mechanism. The format of the hello message is shown in Figure 7.4, with the U bit set to 0, and the message type set to hello (0x0100). The mandatory parameters field, referred to as the common hello parameters TLV, is shown in Figure 7.5. The following fields have been defined for the common hello parameters TLV:
Previous << 1 .. 87 88 89 90 91 92 < 93 > 94 95 96 97 98 99 .. 181 >> Next