Академический Документы
Профессиональный Документы
Культура Документы
Part 2
Configuring LDP, RSVP-Signalled LSP, LDP Tunneling, and
LSP routing table integration
Febrian Setiadi
MPLS overview (cont’d)
• Label-switched Path The predetermined paths that make MPLS works, this is
unidirectional path through the networks
• Label Switching routers
• Ingress : an entry point of an LSP
• Transit : any router in the middle of LSP
• Penultimate : The second-to-last router in the LSP
• Egress : an exit point for the LSP
• LSP Signalling Protocols
• RSVP
• Well-known signaling protocol, which is extended to support Traffic- Eng
• Supports explicit paths and bandwidth reservation
• Label allocated only along the defined LSP path
• LDP
• Uses the same shortest-path as IGP for forwarding
• Label allocated and exchanged between neighbors
• LDP Tunnelling
• Permits establishments of and LDP session across an RSVP network by tunneling
the LDP traffic within RSVP-based LSPs.
Lab Topology
LDP Configuration
1. Configure the interface to support the MPLS family
btm@lab:Batam> show configuration interfaces
em1 {
unit 7 {
vlan-id 7;
family inet {
address 10.0.7.1/30;
}
family mpls;
}
unit 10 {
vlan-id 10;
family inet {
address 10.0.10.1/30;
}
family mpls;
}
unit 90 {
vlan-id 90;
family inet {
address 10.0.90.1/30;
}
family mpls;
}
unit 100 {
vlan-id 100;
family inet {
address 100.100.100.1/30;
}
}
}
LDP Configuration
2. Enable MPLS protocol on the interface
btm@lab:Batam> show configuration protocols
mpls {
interface all;
}
4. On the transit and egress routers, turn on MPLS and LDP in a similar fashion, e.g :
Semarang
smg@lab:Semarang> show configuration interfaces em2 {
em1 { unit 1 {
unit 0 { vlan-id 1;
vlan-id 0; family inet {
family inet { address 10.0.1.2/30;
address 10.0.0.1/30; }
} family mpls;
family mpls; }
} unit 7 {
unit 3 { vlan-id 7;
vlan-id 3; family inet {
family inet { address 10.0.7.2/30;
address 10.0.3.1/30; }
} family mpls;
family mpls; }
} }
LDP Configuration
• Once LDP is turned on on all the routers, the protocol automatically builds
multipoint-to-point LSPs, each ending on a different router in the network.
btm@lab:Batam> show ldp interface
Interface Label space ID Nbr count Next hello
lo0.4 192.168.4.1:0 1 0
em1.7 192.168.4.1:0 1 4
em1.10 192.168.4.1:0 1 2
em1.90 192.168.4.1:0 1 1
3. On the transit and egress routers, turn on MPLS and RSVP in a similar fashion.
e.g : Surabaya as the Egress Router
sby@lab:Surabaya> show configuration protocols
rsvp {
interface all;
}
mpls {
interface all;
}
RSVP Configuration
4. Finally set up a return LSP from Ingress to Egress so that the LSP is bidirectional
and traffic can travel from the egress router back to the ingress router:
btm@lab:Batam> show configuration protocols mpls
label-switched-path Batam-to-Ambon {
to 192.168.48.1;
no-cspf;
}
5. Use show mpls lsp command to confirm configuration on Ingress, Transit, and
Egress router.
btm@lab:Batam> show mpls lsp ingress
Ingress LSP: 1 sessions
To From State Rt ActivePath P LSPname
192.168.48.1 192.168.4.1 Up 0 * Batam-to-Ambon
Total 1 displayed, Up 1, Down 0
smg@lab:Semarang> show mpls lsp transit
Transit LSP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.48.1 192.168.4.1 Up 1 1 FF 100288 100288 Batam-to-Ambon
Total 1 displayed, Up 1, Down 0
sby@lab:Surabaya> show mpls lsp transit
Transit LSP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.48.1 192.168.4.1 Up 1 1 FF 100288 3 Batam-to-Ambon
Total 1 displayed, Up 1, Down 0
amb@lab:Ambon> show mpls lsp egress
Egress LSP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.48.1 192.168.4.1 Up 0 1 FF 3 - Batam-to-Ambon
Total 1 displayed, Up 1, Down 0
RSVP Configuration
• Installing LSPs into the Unicast Routing Table (inet.0)
• Before
btm@lab:Batam> show route 192.168.48.1
inet.0: 37 destinations, 37 routes (36 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both
}
RSVP Configuration
• After installing LSP into the Unicast Routing Table
btm@lab:Batam> show route 192.168.48.1
At this point, the LDP neighbor relationship is formed and the routers exchange
LDP initialization messages, as displayed on LDP session at each routers.
LSP and Routing Table Integration
• Mapping BGP next-hops to LSPs
• Routes associated with signaled LSPs are installed in the inet.3 routing
table
• Only BGP can view the contents of inet.3
• BGP tries to resolve its next hop through LSPs in the inet.3
• BGP installs an LSP as the physical next-hop for transit destinations
• Internal destinations aren’t associated with a BGP next-hop and
therefore don’t LSPs by default
• BGP first look in inet.3 table when attempting to resolve the BGP next-
hop associated with given prefix
The results of BGP next-hop resolution through the inet.3 table results in the
Batam-to-Ambon LSP being installed as the forwarding next-hop for traffic
associated with 118.96.0/16 prefix.
LSP and Routing Table Integration
• What actually happened ?
btm@lab:Batam> show route table inet.3 detail