How to configure SPR?

Issue Description

If you want to connect the enterprise’s branch to the enterprise data center over two ISP networks (ISP1 and ISP2), and exchange data is saved to ServerA in the data center.

The enterprise wants ISP1 to provide a high-speed active link and ISP2 to provide a standby link. The link delay needs to be shorter than or equal to 1000 ms to ensure that exchange data is sent to the data center in a timely manner.

The topology:

 

Solution

ROUTER A

1.Configure IP addresses for all interfaces of RouterA.

<Huawei> system-view

[Huawei] sysname RouterA

[RouterA] interface gigabitethernet 1/0/0

[RouterA-GigabitEthernet1/0/0] ip address x.x.1.1 255.255.255.0

[RouterA-GigabitEthernet1/0/0] quit

[RouterA] interface gigabitethernet 2/0/0

[RouterA-GigabitEthernet2/0/0] ip address x.x.1.1 255.255.255.0

[RouterA-GigabitEthernet2/0/0] quit

 

2.Configure a static route on RouterA.

[RouterA] ip route-static x.x.2.0 255.255.255.0 x.x.1.2

[RouterA] ip route-static x.x.2.0 255.255.255.0 x.x.1.2

 

3.Configure ACL 3000 on RouterA to apply SPR to data flows with destination address x.x.1.1.

[RouterA] acl 3000

[RouterA-acl-adv-3000] rule permit ip destination x.x.1.1 0.0.0.0

[RouterA-acl-adv-3000] quit

 

4.Set SPR routing parameters on RouterA.

[RouterA] smart-policy-route // creates SPR and displays the SPR view.

[RouterA-smart-policy-route] period 50  // sets the SPR switchover period.

[RouterA-smart-policy-route] route flapping suppression 100  // sets the flapping suppression period of SPR.

[RouterA-smart-policy-route] prober gigabitethernet 1/0/0 nqa admin nqa1 // configures an SPR detection link.

[RouterA-smart-policy-route] prober gigabitethernet 2/0/0 nqa admin nqa2

[RouterA-smart-policy-route] link-group group1 // creates a link group of SPR and displays the link group view.

[RouterA-smart-policy-route-link-group group1] link-member gigabitethernet 1/0/0  // adds a detection link to a link group of SPR.

[RouterA-smart-policy-route-link-group group1] quit

[RouterA-smart-policy-route] link-group group2

[RouterA-smart-policy-route-link-group group2] link-member gigabitethernet 2/0/0

[RouterA-smart-policy-route-link-group group2] quit

 

5.Set SPR service parameters.

[RouterA-smart-policy-route] service-map map1  // creates a service profile of SPR and displays the service profile view.

[RouterA-smart-policy-route-service-map-map1] match acl 3000

[RouterA-smart-policy-route-service-map-map1] set delay threshold 1000  // sets the service delay threshold of SPR

[RouterA-smart-policy-route-service-map-map1] set link-group group1 // associates a service profile with a link group in SPR.

[RouterA-smart-policy-route-service-map-map1] set link-group group2 backup // Specifies the name of the standby link group associated with a service profile (If this parameter is not specified, the link group associated with the service profile is an active link group.)

[RouterA-smart-policy-route-service-map-map1] quit

[RouterA-smart-policy-route] quit

 

 6.Configure the NQA client on RouterA.

[RouterA] nqa test-instance admin nqa1  // create a new nqa instance

[RouterA-nqa-admin-nqa1] test-type jitter  // configures the test type for an NQA test instance.




[RouterA-nqa-admin-nqa1] destination-address ipv4 x.x.2.1

[RouterA-nqa-admin-nqa1] destination-port 10000 // configures the destination port number for an NQA

[RouterA-nqa-admin-nqa1] hardware-based enable  // enables the hardware forwarding engine on the LPU to send packets and add timestamps to the packets during the jitter test.

[RouterA-nqa-admin-nqa1] frequency 10 // sets the interval at which an NQA test instance is automatically

[RouterA-nqa-admin-nqa1] source-interface gigabitethernet 1/0/0

[RouterA-nqa-admin-nqa1] start now  // sets the start mode and end mode for an NQA test instance.




[RouterA-nqa-admin-nqa1] quit

[RouterA] nqa test-instance admin nqa2

[RouterA-nqa-admin-nqa2] test-type jitter

[RouterA-nqa-admin-nqa2] destination-address ipv4 x.x.2.1

[RouterA-nqa-admin-nqa2] destination-port 10001

[RouterA-nqa-admin-nqa2] hardware-based enable

[RouterA-nqa-admin-nqa2] frequency 10

[RouterA-nqa-admin-nqa2] source-interface gigabitethernet 2/0/0

[RouterA-nqa-admin-nqa2] start now

[RouterA-nqa-admin-nqa2] quit

 

ROUTER B

1.Configure IP addresses for all interfaces of RouterB.

<Huawei> system-view

[Huawei] sysname RouterB

[RouterB] interface gigabitethernet 1/0/0

[RouterB-GigabitEthernet1/0/0] ip address x.x.2.1 255.255.255.0

[RouterB-GigabitEthernet1/0/0] quit

[RouterB] interface gigabitethernet 2/0/0

[RouterB-GigabitEthernet2/0/0] ip address x.x.2.1 255.255.255.0

[RouterB-GigabitEthernet2/0/0] quit

 

2.Configure the NQA server on RouterB.

[RouterB] nqa-server udpecho x.x.2.1 10000

[RouterB] nqa-server udpecho x.x.2.1 10001

Configure ACLs to classify service flows.

 

3.Configure a static route on RouterB.

[RouterB] ip route-static x.x.1.0 255.255.255.0 x.x.2.2

[RouterB] ip route-static x.x.1.0 255.255.255.0 x.x.2.2

Configure NQA test instances.

 

ROUTER C

1.Configure IP addresses for all interfaces of RouterC.

<Huawei> system-view

[Huawei] sysname RouterC

[RouterC] interface gigabitethernet 1/0/0

[RouterC-GigabitEthernet1/0/0] ip address x.x.1.2 255.255.255.0

[RouterC-GigabitEthernet1/0/0] quit

[RouterC] interface gigabitethernet 2/0/0

[RouterC-GigabitEthernet2/0/0] ip address x.x.2.2 255.255.255.0

[RouterC-GigabitEthernet2/0/0] quit

 

ROUTER D

1.Configure IP addresses for all interfaces of RouterD.

<Huawei> system-view

[Huawei] sysname RouterD

[RouterD] interface gigabitethernet 1/0/0

[RouterD-GigabitEthernet1/0/0] ip address x.x.1.2 255.255.255.0

[RouterD-GigabitEthernet1/0/0] quit

[RouterD] interface gigabitethernet 2/0/0

[RouterD-GigabitEthernet2/0/0] ip address x.x.2.2 255.255.255.0

[RouterD-GigabitEthernet2/0/0] quit

 

To check the configurations:

– View the NQA test results of the detection links on RouterA.

[RouterA] display smart-policy-route link-state

--------------------------------------------------------------------------------

link-name                               Delay         Jitter       Loss        

--------------------------------------------------------------------------------

GigabitEthernet1/0/0                    5000          3000         1000        

GigabitEthernet2/0/0                    5000          3000         1000        

--------------------------------------------------------------------------------

 

– View routing information about service map1 on RouterA.

[RouterA] display smart-policy-route service-map map1

--------------------------------------------------------------------------------

Match acl         : 3000                                                       

DelayThreshold    : 1000                                                       

LossThreshold     : 1000                                                        

JitterThreshold   : 3000                                                       

CmiThreshold      : 0                                                          

GroupName         : group1                                                      

BackupGroupName   : group2                                                     

Description       :                                                            

Cmi-Method        : d+l+j                                                       

CurLinkName       : GigabitEthernet1/0/0                                              

-------------------------------------------------------------------------------
Tags