Technical Overview of AToMA good understanding of AToM is essential to allow fast and efficient troubleshooting. This section, therefore, contains an examination of the operation of AToM. Note that it is a good idea to read the section entitled "MPLS Architecture" in Chapter 6, "Troubleshooting Multiprotocol Label Switching Layer 3 VPNs," if you do not already have a good understanding of MPLS. Layer 2 PDU TransportLayer 2 PDUs are transported over the MPLS backbone between attachment circuits (circuits between PE and CE devices). This transportation occurs by prepending a control word, a VC label, and one or more tunnel labels (assuming PE routers are not in a back-to-back configuration) to the Layer 2 PDU itself. Figure 7-2 illustrates this transport. Figure 7-2. AToM Layer 2 PDU Transport
The function of the tunnel label is to transport the Layer 2 PDU from the ingress PE router to the egress PE router. This label can be signaled by the Label Distribution Protocol (LDP), the Resource Reservation Protocol (RSVP, if using traffic engineering), or the Tag Distribution Protocol (TDP). Note that LDP is assumed throughout this chapter. The VC label is a demultiplexer field and serves to identify the correct attachment circuit on the egress PE router. When a Layer 2 PDU arrives at the egress PE router, the PE router examines the VC label and forwards the Layer 2 PDU on the correct attachment circuit. Note that the VC label is locally significant on the egress PE router and is advertised to the ingress PE router using LDP. The control word carries control information such as sequence numbering (if used), padding, and control bits. For more information, see the section "Control Word." Finally, the Layer 2 PDU itself is carried in the payload of the packet. Information that is easily replicable by the egress PE router, such as Frame Check Sequence (FCS), is stripped off the Layer 2 PDU before transmission. The exact information that is removed, as well as the information copied into the control word, is dependent on the Layer 2 PDU type. Figure 7-3 illustrates transport of a Layer 2 PDU (in this example, a Frame Relay PDU) across an AToM pseudowire. Figure 7-3. Transport of a Frame Relay PDU Across an AToM Pseudowire![]() In Figure 7-3, mjlnet_CE1 transmits a Frame Relay PDU to London_PE. London_PE prepends an optional control word, as well as VC and tunnel labels, and forwards the packet to London_P. Note that London_PE removes extraneous information such as frame header and FCS, and copies appropriate portions of this information, such as Backward Explicit Congestion Notification (BECN) and Forward Explicit Congestion Notification (FECN) flags, into the control word. London_P swaps the tunnel label and forwards the packet to Paris_P. Note that the VC label remains unchanged. Paris_P (being the penultimate hop) pops the tunnel label and forwards the packet to Paris_PE. Again, the VC label remains unchanged. Finally, Paris_PE removes the VC label, reconstitutes any information removed by London_PE, and forwards the Frame Relay PDU on the attachment circuit to mjlnet_CE2. Control WordAs previously mentioned, a control word can be carried as an option when Layer 2 PDUs are transported across the MPLS backbone. Figure 7-4 shows the control word format. Figure 7-4. Control Word Format![]() The contents of the control word are as follows:
Frame Relay Control WordFrame Relay PDUs are transported over the AToM pseudowire without their header and FCS. The control word is, therefore, required. The control word used when transporting Frame Relay PDUs takes the form shown in Figure 7-5. Figure 7-5. Frame Relay Control Word
The Flags field consists of a B (BECN) bit, an F (FECN) bit, a D (Discard Eligible, DE) bit, and a C (Command/Response, C/R) bit. The ingress PE router can copy the BECN, FECN, DE, and C/R bit settings from the header of the Frame Relay PDU received on the attachment circuit into the control word when transmitting the Frame Relay PDU across the pseudowire. The egress PE router copies the BECN, FECN, DE, and C/R bit settings from the control word back into the reconstructed Frame Relay header as it transmits the Frame Relay PDU out onto the attachment circuit. ATM AAL5 CPCS-SDU Control WordIf ATM AAL5 is being used, the ingress PE router reassembles the Common Part Convergence Sublayer-Service Data Units (CPCS-SDUs) received on the attachment circuit. Each CPCS-SDU is then transported over the AToM pseudowire as a single packet, without the AAL5 trailer. The control word is required and takes the form shown in Figure 7-6. Figure 7-6. ATM AAL5 CPCS-SDU Control Word
The Flags field now consists of the following bits:
ATM Cell Relay, Ethernet, HDLC, and PPP Control WordsIf ATM cell relay (individual ATM cells), Ethernet, HDLC, or PPP PDUs are being transported, the control may be carried, but all four bits in the control word Flags field are set to zero. Note that when transporting ATM cells with cell-relay, the entire cell consisting of the 4-byte header and 48-byte payload is transported. If Ethernet frames are being transported, the entire frame is transmitted, with the exception of the preamble and the FCS. Cisco HDLC frames are transported in their entirety with the exception of the flags (7E) and FCS fields, which are removed. PPP frames are transported in their entirety, with the exception of the flags (7E), HDLC Address, Control, and FCS fields. These are removed. VC Label ExchangeBefore VC labels can be exchanged between peer PE routers, LDP discovery and session establishment must take place. LDP DiscoveryLDP discovery consists of an exchange of hello messages and allows Label Switch Routers (LSRs) to discover each other, forming a hello adjacency. Discovery must be successfully completed before session establishment can begin. LDP offers two discovery modes:
Note that LDP discovery (and session establishment) between PE routers is initiated on Cisco routers when the xconnect command is configured. LDP Session EstablishmentOnce LDP discovery has been successful, session establishment can begin. Session establishment is a two-stage process:
Note that the method of label distribution used by AToM PE routers is unsolicited downstream. Figure 7-8 illustrates an LDP session. Figure 7-8. LDP Session![]() Label Mapping MessagesOnce peer PE routers have established an LDP session, they can exchange VC label bindings. VC labels are assigned to local attachment circuits, and the bindings are advertised to the peer (ingress) PE router in an LDP Label Mapping message. The VC label binding consists of the VC label itself and associated VC information. This VC information is carried within the Label Mapping message using a new type (type 128) of Forwarding Equivalence Class (FEC) element, which is defined in Internet draft draft-martini-l2circuit-trans-mpls. Figure 7-9 shows the VC FEC element. Figure 7-9. VC FEC Element
The contents of the VC FEC element depicted in Figure 7-9 are as follows:
The contents of the Interface Parameters field are as follows:
Note that VC labels are assigned and advertised to peer PE routers when the local attachment circuit changes state to up. Figure 7-11 illustrates VC label bindings exchange. Figure 7-11. VC Label Bindings Exchange![]() Label Withdraw MessagesIf the attachment circuit changes state to down, or there is another service affecting condition, the ingress PE router signals this to its peer using an LDP Label Withdraw message. The egress PE router receiving a Label Withdraw message can signal the circuit down state to its attached customer device. If the circuit type is Frame Relay, for example, the circuit state may be signaled to the CE device using the Local Management Interface (LMI). Figure 7-12 illustrates transmission of the Label Withdraw message. Figure 7-12. Transmission of the Label Withdraw Message![]() |