This section provides an example for configuring Redundancy User Information (RUI)+enhanced dynamic service gateway (EDSG) in exclusive address pool mode.
High reliability is a basic requirement for carrier-class devices. An NetEngine 8000 F that functions as a service aggregation router carries multiple services, such as HSI, VoIP, and IPTV. It connects to a core network to implement Layer 3 routing functions and to the aggregation layer to terminate Layer 2 user packets for user access. The NetEngine 8000 F therefore must have high reliability. Although the NetEngine 8000 F can ensure non-stop data flow forwarding, this does not guarantee interruption-free user services. If a network node or link fails and user information is not synchronized to a backup device, user services will be interrupted. To prevent this problem, dual-device hot backup is introduced.
User access boards are installed.
Carriers can divide networks into different subnets based on traffic destination addresses. When different users access the subnets, different rate limit and accounting are performed for the users. EDSG implements subnet division, rate limit, and accounting management on NetEngine 8000 Fs. As applications accessed by users become diversified, high reliability is required for EDSG services. To meet this requirement, deploy RUI so that EDSG service traffic is smoothly switched to the backup device if the master device fails. RUI ensures normal traffic accounting without the need of users' re-dialup.
On the network shown in Figure 1, the user goes online from Device A (master device) through PPPoE dialup. Device A and Device B implement RUI over VRRP and BFD. Device A backs up EDSG services to Device B (backup device). If Device A fails, service traffic is switched to Device B. Traffic statistics on Device A and Device B remain consistent.
Interface 1 and interface 2 in this example represent GE 0/1/0 and GE 0/1/8, respectively.
Device |
Interface |
IP Address |
---|---|---|
Device A |
GE0/1/0 |
10.0.1.1/24 |
GE0/1/8 |
10.0.0.1/24 |
|
Loopback 1 |
4.4.4.4/32 |
|
Device B |
GE0/1/0 |
10.0.1.2/24 |
GE0/1/8 |
10.2.0.1/24 |
|
Loopback 1 |
8.8.8.8/32 |
The configuration roadmap is as follows:
Configure basic user access functions and ensure that the two NetEngine 8000 Fs have the same configuration. For details, see HUAWEI NetEngine 8000 F Series Router Configuration Guide - User Access.
Configure routes to ensure IP connectivity between devices. For details, see HUAWEI NetEngine 8000 F Series Router Configuration Guide - IP Routing.
Establish a dual-device backup platform.
Set NAS parameters and a traffic backup interval (or traffic threshold).
Configure IP address pool binding.
Bind an RBP to an interface from which the user goes online.
The configuration on Device A is used as an example. The configuration on Device B is similar to that on Device A.
To complete the configuration, you need the following data:
VRRP ID
BFD parameters, such as the local and remote discriminators and expected minimum intervals at which BFD control packets are sent and received
IP addresses of interfaces on Device A and Device B
Backup ID, which is used together with an RBS to identify the RBP to which the user belongs
EDSG-related parameters
In this example, only RUI-related configuration is described. For other configurations, see the corresponding configuration guide.
# Configure a BFD session on the access side to rapidly detect faults in interfaces or links and trigger a master/backup VRRP switchover. 10.0.1.2 is the IP address of GE 0/1/0.2 on Device B.
[~DeviceA] bfd [*DeviceA-bfd] quit [*DeviceA] bfd bfd bind peer-ip 10.0.1.2 [*DeviceA-bfd-session-bfd] discriminator local 1 [*DeviceA-bfd-session-bfd] discriminator remote 2 [*DeviceA-bfd-session-bfd] commit [~DeviceA-bfd-session-bfd] quit
# Configure a VRRP group on GE 0/1/0.2, and configure the VRRP group to track the BFD session and network-side interface.
[~DeviceA] interface gigabitethernet 0/1/0.2 [*DeviceA-GigabitEthernet0/1/0.2] vlan-type dot1q 200 [*DeviceA-GigabitEthernet0/1/0.2] ip address 10.0.1.1 255.255.255.0 [*DeviceA-GigabitEthernet0/1/0.2] vrrp vrid 1 virtual-ip 10.0.1.100 [*DeviceA-GigabitEthernet0/1/0.2] admin-vrrp vrid 1 [*DeviceA-GigabitEthernet0/1/0.2] vrrp vrid 1 priority 120 [*DeviceA-GigabitEthernet0/1/0.2] vrrp vrid 1 preempt-mode timer delay 600 [*DeviceA-GigabitEthernet0/1/0.2] vrrp vrid 1 track bfd-session 1 peer [*DeviceA-GigabitEthernet0/1/0.2] vrrp vrid 1 track interface gigabitethernet 0/1/8 reduced 50 [*DeviceA-GigabitEthernet0/1/0.2] vrrp recover-delay 20 [*DeviceA-bfd-session-bfd] commit [~DeviceA-bfd-session-bfd] quit
Different priorities must be configured for devices in a VRRP group. The device with a higher priority is the master device.
# Configure an RBS.
[~DeviceA] remote-backup-service service1 [*DeviceA-rm-backup-srv-service1] peer 8.8.8.8 source 4.4.4.4 port 2046 [*DeviceA-rm-backup-srv-service1] track interface gigabitethernet 0/1/8 [*DeviceA-rm-backup-srv-service1] commit [~DeviceA-rm-backup-srv-service1] quit
Ensure that the master and backup devices can ping each other.
You can run the track bfd-session command in the RBS view to track the peer BFD sessions established on the network side of the master and backup devices, achieving rapid peer status detection. For configuration details, see the corresponding command reference.
# Configure an RBP.
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] peer-backup hot [*DeviceA-rm-backup-prf-profile1] vrrp-id 1 interface gigabitethernet 0/1/0.2 [*DeviceA-rm-backup-prf-profile1] backup-id 10 remote-backup-service service1 [*DeviceA-rm-backup-prf-profile1] service-type bras [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit
# Set NAS parameters.
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] nas logic-ip 1.2.3.4 [*DeviceA-rm-backup-prf-profile1] nas logic-port gigabitethernet 0/1/0 [*DeviceA-rm-backup-prf-profile1] nas logic-sysname huawei [*DeviceA-rm-backup-prf-profile1] commit
# Set a traffic backup interval.
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] traffic backup interval 10 [*DeviceA-rm-backup-prf-profile1] commit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] ip-pool pool1 [*DeviceA-rm-backup-prf-profile1] commit
The bound address pool named pool1 must have been configured using the ip pool command in the AAA domain view.
[~DeviceA] interface gigabitethernet 0/1/0.1 [*DeviceA-GigabitEthernet0/1/0.1] remote-backup-profile profile1 [*DeviceA-GigabitEthernet0/1/0.1] commit [~DeviceA-GigabitEthernet0/1/0.1] quit
After successfully configuring the RBP, run the display remote-backup-profile command. According to the command output, the RBS type is bras, the RBP named profile1 is bound to GigabitEthernet 0/1/0.1 from which users go online, and Device A is in the Master state.
<DeviceA> display remote-backup-profile profile1 ----------------------------------------------- Profile-Index : 0x802 Profile-Name : profile1 Service : bras Remote-backup-service: service1 Backup-ID : 10 track protocol : VRRP VRRP-ID : 1 VRRP-Interface : GigabitEthernet0/1/0.2 Interface : GigabitEthernet0/1/0.1 State : Master Peer-state : Slave Backup mode : hot Slot-Number : 1 Card-Number : 0 Port-Number : 0 Nas logic-port : Gigabitethernet 0/1/0 Nas logic-ip : 1.2.3.4 Nas logic-sysname : huawei IP-Pool : pool1 Traffic interval : 10(minutes)
After successfully configuring the RBS, run the display remote-backup-service command. According to the command output, the TCP connection is in the Connected state.
<DeviceA> display remote-backup-service service1 ---------------------------------------------------------- Service-Index : 0 Service-Name : service1 TCP-State : Connected Peer-ip : 8.8.8.8 Source-ip : 4.4.4.4 TCP-Port : 2046 Track-BFD : -- Track-interface0 : GigabitEthernet0/1/8 Track-interface1 : -- Last up time : 2016-06-02 16:15:8 Last down time : 2016-06-02 16:3:36 Last down reason : TCP closed for packet error. --------------------------------------------------------
After users go online, run the display backup-user command to view user information that is backed up.
<DeviceA> display backup-user
Remote-backup-service: service1
Total Users Numer: 10
------------------------------------------------------------------------
100 101 102 103 104 105 106 107 108 109
------------------------------------------------------------------------
Run the display access-user interface command to view online user information on a specified interface.
<DeviceA> display access-user interface GigabitEthernet 0/1/0.1 ------------------------------------------------------------------------------ UserID Username Interface IP address MAC IPv6 address ------------------------------------------------------------------------------ -------------------------------------------------------------------------- 100 user@lsh GE0/1/0.1 2.2.2.10 00e0-fc12-0101 - 101 user@lsh GE0/1/0.1 2.2.2.9 00e0-fc12-0102 - 102 user@lsh GE0/1/0.1 2.2.2.8 00e0-fc12-0103 - 103 user@lsh GE0/1/0.1 2.2.2.7 00e0-fc12-0104 - 104 user@lsh GE0/1/0.1 2.2.2.6 00e0-fc12-0105 - 105 user@lsh GE0/1/0.1 2.2.2.5 00e0-fc12-0106 - 106 user@lsh GE0/1/0.1 2.2.2.4 00e0-fc12-0107 - 107 user@lsh GE0/1/0.1 2.2.2.3 00e0-fc12-0108 - 108 user@lsh GE0/1/0.1 2.2.2.2 00e0-fc12-0109 - 109 user@lsh GE0/1/0.1 2.2.2.11 00e0-fc12-0110 - -------------------------------------------------------------------------- Total users : 10
View the configuration of the EDSG service policy on Device A.
<DeviceA> display service-policy configuration name service_edsg1 ------------------------------------------------ Service-policy-index : 0 Service-policy-name : service1 Service-policy-type : EDSG Policy-storage-type : configuration Reference-count : 0 Service-class-inbound :ef Service-class-outbound :ef Authentication-scheme-name : - Accounting-scheme-name : default1 Radius-server-template : template1 Service-group-name : - Service-group-priority : - Inbound-cir : 100(kbps) Inbound-pir : 100(kbps) Inbound-cbs : 100(bytes) Inbound-pbs : 3000(bytes) Outbound-cir : 10000(kbps) Outbound-pir : - Outbound-cbs : - Outbound-pbs : - Prepaid-profile-name : - Diameter monitor key : - Inbound-match-usergroup : no Outbound-match-usergroup : no ------------------------------------------------
Device A configuration file
# sysname DeviceA # ip pool pool1 bas local gateway 10.1.16.1 255.255.255.0 section 0 10.1.16.2 10.1.16.100 # aaa domain userdomain1 authentication-scheme default0 accounting-scheme default0 ip-pool pool1 # bfd bfd bind peer-ip 10.0.1.2 discriminator local 1 discriminator remote 2 commit # interface gigabitethernet 0/1/0.2 vlan-type dot1q 200 ip address 10.0.1.1 255.255.255.0 vrrp vrid 1 virtual-ip 10.0.1.100 admin-vrrp vrid 1 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 600 vrrp vrid 1 track bfd-session session-name bfd peer vrrp vrid 1 track interface gigabitethernet 0/1/8 reduced 50 vrrp recover-delay 20 # remote-backup-service service1 peer 8.8.8.8 source 4.4.4.4 port 2046 track interface gigabitethernet 0/1/8 # remote-backup-profile profile1 service-type bras backup-id 10 remote-backup-service service1 peer-backup hot vrrp-id 1 interface gigabitethernet 0/1/0.2 nas logic-ip 1.2.3.4 nas logic-port gigabitethernet0/1/0 nas logic-sysname huawei traffic backup interval 10 ip-pool pool1 # interface gigabitethernet 0/1/0.1 user-vlan 50 remote-backup-profile profile1 bas access-type layer2-subscriber authentication-method web vlan-type dot1q 1 ip address 192.168.100.1 255.255.255.0 # interface LoopBack1 ip address 4.4.4.4 255.255.255.255# ospf 1 import-route unr area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 4.4.4.4 0.0.0.0 # value-added-service enable # radius-server group rad_group1 radius-server authentication 10.10.10.2 1812 weight 0 radius-server accounting 10.10.10.2 1813 weight 0 radius-server shared-key-cipher %^%#x*CgITP4C~;q,*+DEW'JBWe#)"Q&|7bX]b:Y<{w'%^%# # ip pool edsg_pool bas local gateway 172.16.1.0 255.255.0.0 section 0 172.16.1.0 172.16.1.255 # aaa authentication-scheme auth1 authentication-scheme radius accounting-scheme acct1 accounting-mode radius domain domain1 ip-pool edsg_pool radius-server group rad_group1 # service-group s_1m service-group s_2m # acl number 6020 rule 10 permit ip source service-group s_1m destination ip-address 192.168.100.0 0.0.0.255 rule 20 permit ip source ip-address 192.168.100.0 0.0.0.255 destination service-group s_1m # acl number 6021 rule 15 permit ip source service-group s_2m destination ip-address 192.168.200.0 0.0.0.255 rule 25 permit ip source ip-address 192.168.200.0 0.0.0.255 destination service-group s_2m # traffic classifier c1 operator or if-match acl 6020 # traffic classifier c2 operator or if-match acl 6021 # traffic behavior b1 # traffic behavior b2 # traffic policy traffic_policy_edsg share-mode classifier c1 behavior b1 classifier c2 behavior b2 # traffic-policy traffic_policy_edsg inbound traffic-policy traffic_policy_edsg outbound # aaa authentication-scheme auth1 # accounting-scheme acct1 # # http-redirect-profile http_redirect_profile web-server url http://www.sample.com web-server mode post # prepaid-profile prepaid1 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# authentication-scheme auth1 accounting-scheme acct1 radius-server group rad_group1 threshold time 60 seconds threshold volume 10 mbytes # prepaid-profile prepaid2 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# authentication-scheme auth1 accounting-scheme acct1 radius-server group rad_group1 threshold time 300 seconds threshold volume 20 mbytes quota-out redirect http_redirect_profile # service-policy download local radius rad_group1 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# # service-policy name service_edsg1 edsg radius-server group rad_group1 service-group s_1m authentication-scheme auth1 accounting-scheme acct1 rate-limit cir 1000 inbound rate-limit cir 1000 outbound prepaid-profile prepaid1 # service-policy name service_edsg2 edsg radius-server group rad_group1 service-group s_2m authentication-scheme auth1 accounting-scheme acct1 rate-limit cir 2000 inbound rate-limit cir 2000 outbound prepaid-profile prepaid2 # interface GigabitEthernet0/1/2.1 user-vlan 1000 2000 user-vlan 1 1000 qinq 100 bas # access-type layer2-subscriber default-domain pre-authentication domain1 authentication-method ppp web # return
Device B configuration file
# sysname DeviceB # gateway 10.1.16.1 255.255.255.0 section 0 10.1.16.2 10.1.16.100 # aaa domain userdomain1 authentication-scheme default0 accounting-scheme default0 ip-pool pool2 # bfd bfd bind peer-ip 10.0.1.1 discriminator local 2 discriminator remote 1 commit # interface gigabitethernet 0/1/0.2 vlan-type dot1q 200 ip address 10.0.1.2 255.255.255.0 vrrp vrid 1 virtual-ip 10.0.1.100 admin-vrrp vrid 1 vrrp vrid 1 track bfd-session session-name bfd peer vrrp vrid 1 track interface gigabitethernet 0/1/8 reduced 50 # remote-backup-service service1 peer 4.4.4.4 source 8.8.8.8 port 2046 track interface gigabitethernet 0/1/8 # remote-backup-profile profile1 service-type bras backup-id 10 remote-backup-service service1 peer-backup hot vrrp-id 1 interface gigabitethernet 0/1/0.2 nas logic-ip 1.2.3.4 nas logic-port gigabitethernet0/1/0 nas logic-sysname huawei traffic backup interval 10 ip-pool pool2 # interface gigabitethernet 0/1/0.1 user-vlan 50 remote-backup-profile profile1 bas access-type layer2-subscriber authentication-method web vlan-type dot1q 1 ip address 192.168.100.1 255.255.255.0 # interface LoopBack1 ip address 8.8.8.8 255.255.255.255 # ospf 1 import-route unr area 0.0.0.0 network 11.0.0.0 0.0.0.255 network 8.8.8.8 0.0.0.0 # value-added-service enable # radius-server group rad_group1 radius-server authentication 10.10.10.2 1812 weight 0 radius-server accounting 10.10.10.2 1813 weight 0 radius-server shared-key-cipher %^%#x*CgITP4C~;q,*+DEW'JBWe#)"Q&|7bX]b:Y<{w'%^%# # ip pool edsg_pool bas local gateway 172.16.1.0 255.255.0.0 section 0 172.16.1.0 172.16.1.255 # aaa authentication-scheme auth1 authentication-scheme radius accounting-scheme acct1 accounting-mode radius domain domain1 ip-pool edsg_pool radius-server group rad_group1 # service-group s_1m service-group s_2m # acl number 6020 rule 10 permit ip source service-group s_1m destination ip-address 192.168.100.0 0.0.0.255 rule 20 permit ip source ip-address 192.168.100.0 0.0.0.255 destination service-group s_1m # acl number 6021 rule 15 permit ip source service-group s_2m destination ip-address 192.168.200.0 0.0.0.255 rule 25 permit ip source ip-address 192.168.200.0 0.0.0.255 destination service-group s_2m # traffic classifier c1 operator or if-match acl 6020 # traffic classifier c2 operator or if-match acl 6021 # traffic behavior b1 # traffic behavior b2 # traffic policy traffic_policy_edsg share-mode classifier c1 behavior b1 classifier c2 behavior b2 # traffic-policy traffic_policy_edsg inbound traffic-policy traffic_policy_edsg outbound # aaa authentication-scheme auth1 # accounting-scheme acct1 # # http-redirect-profile http_redirect_profile web-server url http://www.sample.com web-server mode post # prepaid-profile prepaid1 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# authentication-scheme auth1 accounting-scheme acct1 radius-server group rad_group1 threshold time 60 seconds threshold volume 10 mbytes # prepaid-profile prepaid2 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# authentication-scheme auth1 accounting-scheme acct1 radius-server group rad_group1 threshold time 300 seconds threshold volume 20 mbytes quota-out redirect http_redirect_profile # service-policy download local radius rad_group1 password cipher %@%##!!!!!!!!!"!!!!"!!!!(!!!!1];16qfZ81fv"uMoKKZ.1k"`AO!X2K2N.b~'NB^V!!!!!!!!!!1!!!!o/4J(q"J1F.!K9%M!6x8%@%# # service-policy name service_edsg1 edsg radius-server group rad_group1 service-group s_1m authentication-scheme auth1 accounting-scheme acct1 rate-limit cir 1000 inbound rate-limit cir 1000 outbound prepaid-profile prepaid1 # service-policy name service_edsg2 edsg radius-server group rad_group1 service-group s_2m authentication-scheme auth1 accounting-scheme acct1 rate-limit cir 2000 inbound rate-limit cir 2000 outbound prepaid-profile prepaid2 # interface GigabitEthernet0/1/2.1 user-vlan 1000 2000 user-vlan 1 1000 qinq 100 bas # access-type layer2-subscriber default-domain pre-authentication domain1 authentication-method ppp web # return