WAN Technology
WAN Technology
WAN Technology
• It is a physical cable (circuit) from hop to hop where all data moves on the same path point to
point.
• After physical connection exists protocols as HDLC (High level Data Link Control) and PPP
(Point to Point Protocol) are required to maintain the link from hop to hop (switching protocol) and
send data from hop to hop (switched protocol).
Then a new protocol (point-to-point) was introduced as open standard protocol that can run on all routers
PPP (Point-to-point protocol):
Configuration:
➢ Router(config)#interface serial 0 Or ➢ Router(config)#interface serial 0
➢ Router(config-if)# encapsulation hdlc ➢ Router(config-if)#encapsulation ppp
Note
In the below topology we have cisco router (witch cisco HDLC encapsulation) connected to non-
cisco router (with ISO HDLC encapsulation).
Let us see how the packet will take difference encapsulations through its journey from the source to
the destination.
PPP components:
PPP consists of three components:
A. LCP(Link Control Protocol):
✓ Establishes and terminates the session.
✓ Negotiates Point-to-Point options (will be seen later).
B. NCP (Network Control Protocol):
✓ Negotiates the supported upper layer protocols (IP, IPX & CDP) as PPP supports almost all L3
protocols.
C. Frame Format:
✓ The normal hop-to-hop delivery using encapsulation.
To see details of PPP protocol:
➢ Router #debug ppp negotiation
➢ Router #terminal monitor
PPP operation:
Phase1 in PPP operation is neighbor router discovery by Handshaking using LCP (as hello exchange),
optional in phase 1 is LCP Authentication between two routers)
Phase 2 in PPP operation is upper protocol (IP) discovery using NCP
Phase 3 is sending data from hop to hop using PPP frame
PPP Authentication:
This is the most important option, authentication has 2 types:
2. PAP (Password Authentication Protocol) 2. CHAP(CHallenge Authentication Protocol)
2 ways handshaking: 3 ways handshaking:
• 1st handshaking: sending username and password • 1st handshake: challenge o/p from server.
• 2nd handshaking: access granted/denied • 2nd handshake: challenge o/p from client.
• 3rd handshake: access granted / denied.
Disadvantage: sending password in clear text.
d) Partial mesh:
c) Full mesh
✓ We will not connect VCs between all the sites.
✓ Pull redundancy but high Cost.
✓ For example in the below topology we used 7 VCs
✓ No. of VC = n (n-1) / 2 ( n --- No. of routers ).
only, if we made a full mesh we need 10 VCs.
✓ Finally we make redundancy with low cost.
FR was originally invented to work on ISDN interfaces but now mostly used on serial interfaces.
Frame Relay:
• Initially, open standard LAPF (Link Access Procedure for FR) was introduced as it’s the layer 2
protocol working with the FR.
• As usual, Cisco takes this protocol and adds the type field.
• Then IETF (Internet Engineering Task Force) implemented a similar open standard protocol.
• PVC (Permanent Virtual Circuit): logical circuit that is created to ensure bidirectional
communication from one router to another, it's the most common type of virtual circuits. As there is
SVC (Switched Packet Switching) which is on demand packet switching, and is rarely used in the ISPs.
• DLCI (Date Link Connection Identifier): A 10-bit address that identifies the VC (Virtual Circuit).
It's locally significant between the router and FR switch.
• LMI (Local Management Interface): A signaling standard between the router and the local FR
switch. Its used to maintain the connection status.
• IARP (Inverse Address Resolution Protocol): Used to get the IP for the remote DLCI.
• DE (Discard Eligible): By setting this bit, the frame will be having less priority and will be more
subjected to be discarded in case of congestion.
Frame Relay operations: -
1. Enable frame relay on router serial interface and configure frame relay switching table on the frame
relay switch.
2. Router will negotiate with the frame relay switch the available PVCs (through LMI protocol).
3. Router will try to discover what is the next hop router for each PVC? and form the frame relay map.
1) Configuring the frame relay on the routers and building the frame relay address mapping on the
FR switch. FR table on the FR switch
2) Negotiation between the router and the FR switch about the available PVCs using LMI protocol.
LMI: (Local Management Interface):
LMI protocol is used between the router (DTE) and the local FR switch (Master DCE) to
negotiate the PVCs between them and their status on the local loop:
When the router receives LMI information, it updates its VC status to one of the following three
states:
➢ Active state: Indicates that the VC connection is active and that routers can exchange data
over frame relay network.
➢ Inactive state: indicates that the local connection to the frame relay switch is working but
the remote is not.
➢ Deleted state: means that the router (DTE) is configured for a DLCI the frame relay
switch does not recognize as valid for that interface.
➢ Router# show frame pvc | include status
DLCI = 57, DLC! usage = Local, PVC status = Deleted, Interface = Serial0/0.1
DLCI = 58, DLC! usage = Local, PVC status = Active, Interface = Serial0/0.2
DLCI = 59, DLC! usage = Local, PVC status = Inactive, Interface = Serial0/0.3
LMI types:
1. Cisco LMI (LMI messages are being sent on DLCI 1023).
2. ANSI (Annex D) (LMI messages are being sent on DLCI 0).
3. ITU-T (Q933-A) OR (Annex A) (LMI messages are being sent on DLCI 0).
• The router will work with the LMI type supported by the FR switch.
• For cisco routers there is also auto LMI discovery.
Note: If we have the below topology, cisco LMI is used from one side and ITU-T LMI is used
from the other side, there is no problem in this because LMI is local significant.
3) Discovering what is the next hop router for each PVC. Consider the below topology:
Consider the below topology:
Broadcast: is used to identify this DLC! in broadcast, because if we configured RIP for example, the
updates should sent broadcast. But broadcast here is replica of unicast.
Solutions:
1) Static routing on the router in the hub site, and default route
on the router in each spoke.
2) Full Mesh topology: All routers will receive all updates from
each other, but it's a high cost.
3) Disable split horizon, but this will make routing loops.
➢ Router(config-if}#no ip split-horizon.
4) Use point-to-point sub-interface:
• Each sub-interface is a subnet.
• Each sub-interface has DLCI.
• Using these configurations:
➢ Router(config}#interface interface_number
➢ Router(config-if)#no ip address
➢ Router(config-if)#int sub-interface point-to-point
➢ Router (config-subif)#frame-relay interface-dlci dlci_No
Comparison between point to point FR and point to multi point FR:
Troubleshooting:
➢ Router#show frame-relay pvc
>> Displays the status of PVCs, BECNs, FECNS, ......
➢ Router#show frame-relay LMI
The “dialer persistent” command (under interface configuration mode) allows a connection to be
brought up without being triggered by interesting traffic. And allow connection stay up even no data is
sent over the link. When configured, the dialer persistent command starts a timer when the dialer
interface starts up and starts the connection when the timer expires. If interesting traffic arrives before the
timer expires, the connection is still brought up and set as persistent. An example of configuring is shown
below:
➢ interface Dialer1
➢ ip address negotiate
➢ dialer pool 1
➢ dialer persistent
Label Switching Overview
Service providers today are faced with many challenges in terms of customer demand, including an
ongoing need for value-added services.
Conventional IP packet forwarding has several limitations, and more and more service providers realize
that something else is needed.
Not only must service providers be concerned with protecting their existing infrastructure, but service
providers must also find ways to generate new services that are not currently supportable using existing
technologies.
Multiprotocol Label Switching (MPLS) is a high-performance method for forwarding packets through a
network. MPLS enables routers at the edge of a network to apply simple labels to packets.
This practice allows the edge devices—ATM switches or existing routers in the center of the service
provider core—to switch packets according to labels, with minimal lookup overhead.
MPLS integrates the performance and traffic management capabilities of data link Layer 2 with the
scalability and flexibility of network Layer 3 routing.
When used in conjunction with other standard technologies, MPLS allows service providers the ability to
support value-added features that are critical for their networks.
What Are the Drawbacks of Traditional IP Routing?
This topic describes the drawbacks of traditional IP routine.
• Routing protocols are used to distribute Layer 3 routing information.
• Forwarding is based on the destination address only.
• Routing lookups are performed on every hop.
Architecture of LSRs: -
• LSRs, regardless of the type, perform these functions:
❖ Exchange routing information
❖ Exchange labels
❖ Forward packets (LSRs and edge LSRs) or cells (ATM LSRs and ATM edge LSRs)
• The first two functions are part of the control plane.
• The last function is part of the data plane.
MPLS Forwarding
• An LSR can perform the following functions:
❖ Insert (Impose) a label or a stack of labels on ingress
❖ Swap a label with a next-hop label or a stack of labels in the core
❖ Remove (pop) a label on egress
MPLS Forwarding: Frame Mode
• On ingress, a label is assigned and imposed
by the IP routing process.
• LSRs in the core swap labels based on the
contents of the label forwarding table.
• On egress, the label is removed and a routing
lookup is used to forward the packet.
LSP
• AN LSP is a sequence of LSRs that forwards 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).
MPLS Labels
• MPLS technology is intended to be used anywhere regardless of Layer 1 media and Layer 2
protocol.
• MPLS uses a 32-bit label field that is inserted between Layer 2 and Layer 3 headers (frame-mode
MPLS).
MPLS Labels: Label Format
• MPLS uses a 32-bit label field that contains the following information:
❖ 20-bit label (a number)
❖ 3-bit experimental field (usually used to carry IP precedence value)
❖ 1-bit bottom-of-stack indicator (indicates whether this is the last label before the IP header)
❖ 8-bit TTL field (equal to the TTL in the IP header)
MPLS Labels: Frame-Mode MPLS
• The protocol identifier in a Layer 2 header specifies that the payload starts with a label (labels) and
is followed by an IP header.
• The bottom-of-stack bit indicates whether the next header is another label or a Layer 3 header.
• The receiving router uses the top label only.
MPLS Label Stack (Cont.)
• Usually only one label is assigned to a packet.
• The following scenarios may produce more than one label:
❖ MPLS VPNs (two labels): The top label points to the egress router, and the second label
identifies the VPN.
❖ MPLS TE (two or more labels): The top label points to the endpoint of the traffic engineering
tunnel and the second label points to the destination.
❖ MPLS VPNs combined with MPLS TE (three or more labels).
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.
Configuring IP CEF
➢ Router(config)# ip cef
• An LDP session is established from the router with the higher IP address.
LDP Session Negotiation
• The allocated label is advertised to all neighbor LSRs, regardless of whether the neighbors are
upstream or downstream LSKs for the destination.
• 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.
This is a sample output from the show mpls forwarding table command.
MPLS Applications
• MPLS is already used in many different applications:
❖ Unicast IP routing
❖ Multicast IP routing
❖ MPLS TE
❖ Qos
❖ MPLS VPNs (course focus)
❖ AToM
Unicast IP Routing
• Two mechanisms are needed on the control plane:
❖ IP routing protocol (OSPF, |S-IS, EIGRP, and so on)
❖ Label distribution protocol (LDP or TDP)
• A routing protocol carries the information about the reachability of networks.
• The label distribution protocol binds labels to networks learned via a routing protocol.
Multicast IP Routing
• A dedicated protocol is not needed to support multicast traffic across an MPLS domain.
• Protocol Independent Multicast version 2 with extensions for MPLS is used to propagate routing
information and labels.
Quality of Service
• Differentiated QoS is an extension to unicast IP routing that provides differentiated services.
• Extensions to TDP or LDP are used to propagate different labels for different classes.
MPLS TE
• MPLS TE requires OSPF or IS-I5 with extensions for MPLS TE as the IGP.
• OSPF and IS-IS with extensions hold the entire topology in their databases.
• OSPF and IS-IS should also have some additional information about network resources and
constraints.
• RSVP or CR-LDP is used to establish TE tunnels and to propagate labels.