Example for Configuring RSVP Authentication
Networking Requirements
As shown in Figure 4-51, Eth-Trunk 1 between LSRA and LSRB contains member interfaces GE1/0/0 and GE2/0/0. An MPLS TE tunnel from LSRA to LSRC is set up by using RSVP.
The handshake function needs to be configured so that LSRA and LSRB perform RSPV authentication to prevent forged Resv messages from consuming network resources. In addition, the message window function is configured to solve the problem of RSVP packet mis-sequencing.
Configuration Roadmap
The configuration roadmap is as follows:
Assign an IP address to each interface on each LSR and configure OSPF to ensure that there are reachable routes between LSRs.
Configure an ID for each LSR and globally enable MPLS, MPLS TE, and RSVP-TE on each node and interface.
On the ingress node, create a tunnel interface, and specify the IP address, tunneling protocol, destination IP address, tunnel ID, and dynamic signaling protocol RSVP-TE, and enable CSPF.
Configure RSVP authentication on LSRB and LSRC of the tunnel.
Configure the Handshake function on LSRB and LSRC to prevent forged Resv messages from consuming network resources.
Configure the sliding window function on LSRB and LSRC to solve the problem of RSVP packet mis-sequencing.
It is recommended that the window size be larger than 32. If the window size is too small, some received RSVP messages may be discarded, which can terminate the RSVP neighbor relationships.
Procedure
- Assign an IP address to each interface and configure OSPF.
# Configure LSRA.
<Huawei> system-view [Huawei] sysname LSRA [LSRA] interface eth-trunk 1 [LSRA-Eth-Trunk1] undo portswitch [LSRA-Eth-Trunk1] ip address 172.1.1.1 255.255.255.0 [LSRA-Eth-Trunk1] quit [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] eth-trunk 1 [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] eth-trunk 1 [LSRA-GigabitEthernet2/0/0] quit [LSRA] interface loopback 1 [LSRA-LoopBack1] ip address 1.1.1.9 255.255.255.255 [LSRA-LoopBack1] quit [LSRA] ospf 1 [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0 [LSRA-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255 [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
# Configure IP addresses for interfaces of LSRB and LSRC according to Figure 4-51. The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
After the configurations are complete, run the display ip routing-table command on each LSR. You can see that the LSRs have learned the routes to Loopback1 interfaces of each other.
- Configure basic MPLS functions and enable MPLS TE, RSVP-TE,
and CSPF.
# Configure LSRA.
[LSRA] mpls lsr-id 1.1.1.9 [LSRA] mpls [LSRA-mpls] mpls te [LSRA-mpls] mpls rsvp-te [LSRA-mpls] mpls te cspf [LSRA-mpls] quit [LSRA] interface eth-trunk 1 [LSRA-Eth-Trunk1] mpls [LSRA-Eth-Trunk1] mpls te [LSRA-Eth-Trunk1] mpls rsvp-te [LSRA-Eth-Trunk1] quit
The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here. CSPF only needs to be configured on the ingress node of the primary tunnel.
- Configure OSPF TE.
# Configure LSRA.
[LSRA] ospf [LSRA-ospf-1] opaque-capability enable [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] mpls-te enable [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
- Create an MPLS TE tunnel on the ingress node.
# Create Tunnel0/0/1 on LSRA.
[LSRA] interface tunnel 0/0/1 [LSRA-Tunnel0/0/1] ip address unnumbered interface loopback 1 [LSRA-Tunnel0/0/1] tunnel-protocol mpls te [LSRA-Tunnel0/0/1] destination 3.3.3.9 [LSRA-Tunnel0/0/1] mpls te tunnel-id 101 [LSRA-Tunnel0/0/1] mpls te commit [LSRA-Tunnel0/0/1] quit
After the configurations are complete, run the display interface tunnel command on LSRA. You can see that the tunnel interface status is Up.
[LSRA] display interface tunnel 0/0/1 Tunnel0/0/1 current state : UP Line protocol current state : UP Last line protocol up time : 2013-02-22 14:28:37 Description:...
- On LSRA and LSRB, configure RSVP authentication on the
interfaces on the MPLS TE link.
# Configure LSRA.
[LSRA] interface eth-trunk 1 [LSRA-Eth-Trunk1] mpls rsvp-te authentication cipher Huawei@1234 [LSRA-Eth-Trunk1] mpls rsvp-te authentication handshake [LSRA-Eth-Trunk1] mpls rsvp-te authentication window-size 32 [LSRA-Eth-Trunk1] quit
# Configure LSRB.
[LSRB] interface eth-trunk 1 [LSRB-Eth-Trunk1] mpls rsvp-te authentication cipher Huawei@1234 [LSRB-Eth-Trunk1] mpls rsvp-te authentication handshake [LSRB-Eth-Trunk1] mpls rsvp-te authentication window-size 32 [LSRB-Eth-Trunk1] quit
- Verify the configuration.
# Run the reset mpls rsvp-te command, and then run the display interface tunnel command on LSRA. You can see that the tunnel interface is Up.
# Run the display mpls rsvp-te interface command on LSRA or LSRB to view information about RSVP authentication.
[LSRA] display mpls rsvp-te interface eth-trunk 1 Interface: Eth-Trunk1 Interface Address: 172.1.1.1 Interface state: UP Interface Index: 0x36 Total-BW: 0 Used-BW: 0 Hello configured: NO Num of Neighbors: 1 SRefresh feature: DISABLE SRefresh Interval: 30 sec Mpls Mtu: 1500 Retransmit Interval: 5000 msec Increment Value: 1 Authentication: ENABLE Challenge: ENABLE WindowSize: 32 Next Seq # to be sent:2767789282 0 Key ID: 0xa4ff1cdc0000 Bfd Enabled: DISABLE Bfd Min-Tx: 1000 Bfd Min-Rx: 1000 Bfd Detect-Multi: 3
Configuration Files
LSRA configuration file
# sysname LSRA # mpls lsr-id 1.1.1.9 mpls mpls te mpls rsvp-te mpls te cspf # interface Eth-Trunk1 undo portswitch ip address 172.1.1.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te authentication cipher %#%#>=AuX`p[n/)rujP2Z{2Q+*xi/1W|k5`{-^3bMG+$%#%# mpls rsvp-te authentication handshake mpls rsvp-te authentication window-size 32 # interface GigabitEthernet1/0/0 eth-trunk 1 # interface GigabitEthernet2/0/0 eth-trunk 1 # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # interface Tunnel0/0/1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.9 mpls te tunnel-id 101 mpls te commit # ospf 1 opaque-capability enable area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 172.1.1.0 0.0.0.255 mpls-te enable # return
LSRB configuration file
# sysname LSRB # mpls lsr-id 2.2.2.9 mpls mpls te mpls rsvp-te # interface Eth-Trunk1 undo portswitch ip address 172.1.1.2 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te authentication cipher %#%#RDFLW8Z-7Sc,&=T\h]x>\MYTPm;2#"a!>{:$SM_V%#%# mpls rsvp-te authentication handshake mpls rsvp-te authentication window-size 32 # interface GigabitEthernet1/0/0 eth-trunk 1 # interface GigabitEthernet2/0/0 eth-trunk 1 # interface GigabitEthernet3/0/0 ip address 172.2.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.2.1.0 0.0.0.255 mpls-te enable # return
LSRC configuration file
# sysname LSRC # mpls lsr-id 3.3.3.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.2.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 172.2.1.0 0.0.0.255 mpls-te enable # return