Disclosure of Invention
Aiming at the problems, the invention provides a multi-protocol linkage fast switching network fault method for realizing the fast recovery of faults through reasonable configuration of communication protocols of all nodes based on the existing networking architecture.
The technical scheme of the invention is as follows: in a network communication network comprising a terminal 1, the terminal 1 being connected to a data center-main and a data center-standby respectively via an access 1,
The data center-main is sequentially connected with a plurality of local main PTNs and local units-main through the data center main PTN, and then is connected with the access 2;
The data center standby is sequentially connected with a plurality of local standby PTNs and local unit standby (local unit standby switch) through the data center standby PTNs, and then connected with the access switching equipment 2;
the access switching equipment 2 is connected with the terminal 2;
Establishing a VRRP group between the local unit-main and local unit-standby, and establishing a VRRP group between the data center-main and data center-standby;
The communication between the terminal-1 and the terminal-2 is a static routing protocol used by a core layer;
The data center-main and data center main PTN, the data center-standby and data center standby PTN, the local unit-main and local unit main PTN and the local unit-standby and local unit standby PTN respectively use CFM protocols to carry out link detection;
the local unit-main and local unit-standby, the data center-main and data center-standby use BFD protocol to detect the link;
The VRPP protocols established by the local unit-main and local unit-standby and the data center-main and data center-standby are all related to the detection states of the CFM and BFD protocols;
And the link detection is that the CFM protocol and the BFD protocol are both linked with the VRRP protocol priority calculation, so that the fast switching of the link is realized by replacing VRRP notification linkage.
The terminal-1, the access-1, the data center-main, the data center-standby, the data center main PTN and the data center standby PTN form a data center; terminal-2, access-2, local unit-master, local unit-slave, local master PTN and local slave PTN constitute a local unit;
The data center and the local units internally use a network layering design which comprises a core layer and an access layer, wherein the core layer provides transmission of an optimal interval, and the access layer provides access from users to the network for multi-service applications and other network applications.
The data center at least further comprises a terminal-2 and an access-2; the access-2 connects the data center-primary and data center-backup.
The core layer adopts a three-layer switching environment to provide high-speed connection for each access layer of the network.
The implementation of the CFM linkage VRRP protocol comprises the following steps:
1) Running CFM protocol between exchange interfaces of data center-main/local unit-main and data center-standby/local unit-standby and interfaces corresponding to each PTN, and detecting link state;
2) The VRRP groups between the local unit, the main/local unit and the data center and between the main/data center and the standby are respectively provided with the priority of the main/standby exchange VRRP instance;
3) Setting CFM protocol and VRRP protocol linkage, and setting decreasing priority;
4) The instance priority of the VRRP state being Master is ensured, and the priority which is less than the current Backup after the decrementing priority is subtracted.
The implementation of the BFD linkage VRRP protocol comprises the following steps:
Step 1, a VRRP group between a local unit, a main unit, a local unit, a standby, a data center, a main/data center and a standby is respectively provided with a priority of a main/standby exchange VRRP instance;
Step 2, real addresses of VRRP groups between the local unit-main/local unit-standby and the data center-main/data center-standby are configured into BFD state addresses;
step 3, setting the expected packet receiving rate and packet sending rate of the BFD state address parameter setting interface to 10 milliseconds, and setting the detection interval multiple to 3;
step 4, setting BFD protocol and VRRP protocol linkage, and setting decreasing priority;
And step 5, guaranteeing the VRRP state to be the instance priority of the Master, and subtracting the priority which is smaller than the current Backup after the decreasing priority.
The invention establishes VRRP group in local unit-main/local unit-standby, data center-main/data center-standby, static route is used between data center and local unit core exchange, CFM protocol is used for link detection between data center and local unit core exchange and PTN equipment, BFD protocol is used for link detection between local unit main/standby core exchange and data center main/standby core exchange, core exchange VRPP protocol is related to CFM and BFD detection state, link detection CFM and BFD protocol link VRRP protocol priority calculation is used for replacing VRRP notification link to realize quick switch of link.
In the networking scene of the system, broadcasting storm can be caused by the existence of two layers of communication areas, and the adopted loop networking disruption mode is shown in the following table 1:
Table 1: protocol for breaking ring of each equipment in networking
Since the VRRP protocol is only a protocol state master, but the interface is still active, the transmission side PTN device is a two-layer ring network, which may also result in an external ring network. The state of OAM-interface is derived from this, when VRRP is Master, the state of OAM-interface of main exchange and transmission side is Forwarding. When VRRP is Backup, the state of the interface OAM-interface of the main exchange and transmission side is Block. Through the state control of OAM-interface, the transmission side loop-free is realized so as to avoid the risk of network storm.
RSTP fast spanning tree protocol is mainly used in the data center and local units, CFM linkage VRRP protocol is mainly used between the data center core switch and PTN equipment, and BFD linkage VRRP protocol is mainly used between the data center main and standby switches. Under the configuration condition, when the fault downtime fault of the main exchange of the data center and the local unit core occurs, the switching time is not more than 500ms. When a link failure occurs between the data center and local unit core master switch and the PTN master: the switching time is achieved to be no more than 300ms.
The communication scenario greatly optimizes the time of the failback communication, and the scenario actually tests the failover time as shown in table 2 below:
Table 2: the invention fault switching test data
The test data from the above table shows that: when the main exchange fault downtime fault of the data center and the local unit core occurs, the switching time is not more than 500ms. When a link failure occurs between the data center and local unit core master switch and the PTN master: the switching time is achieved to be no more than 300ms.
The invention greatly improves the fault recovery rate because a plurality of link detection protocols are operated on different components and are linked and switched with the VRRP protocol.
Detailed Description
The technical scheme of the invention is as shown in figures 1-3: in the front-back scenario, the network switching device and the transmission side PTN device both have a rapid spanning tree protocol (RSTP protocol), a virtual routing redundancy protocol (VRRP protocol), a bidirectional forwarding detection protocol (BFD protocol), and an OAM protocol (link detection protocol).
The invention relates to a multi-protocol linkage rapid switching network fault method, which operates in a network communication network, wherein the network communication network (shown in figure 1) comprises a terminal 1 (a data center terminal device at the rear), the terminal 1 is respectively connected with a data center-main (data center main switch) and a data center-standby (data center standby switch) through an access 1 (namely, an access switching device-1),
The data center-main is sequentially connected with a plurality of local main PTNs and local units-main (local unit main exchanger) through the data center main PTN, and then is connected with an access 2 (namely, an access switching device-2);
the data center-standby is sequentially connected with a plurality of local standby PTNs and local unit-standby (local unit standby switch) through the data center standby PTNs, and then is connected with the access switching equipment 2;
The access switching device 2 is connected to the terminal 2 (a local unit terminal device located at the rear);
Establishing a VRRP group between a local unit-main and a local unit-standby, and establishing a VRRP group between a data center-main and a data center-standby;
The communication between the terminal-1 and the terminal-2 is a static routing protocol used by a core layer;
the data center-main and data center main PTN, the data center-standby and data center standby PTN, the local unit-main and local unit main PTN, the local unit-standby and local unit standby PTN respectively use CFM protocols for link detection;
the local unit-main and local unit-standby, the data center-main and data center-standby use BFD protocol to detect the link;
The VRPP protocols established by the local unit-main unit-standby and the data center-main unit-standby are all related to the detection states of the CFM and BFD protocols;
The link detection is CFM and BFD protocol linkage VRRP protocol priority calculation, and replaces VRRP notification linkage to realize quick switching of links.
Further, the terminal-1, the access-1, the data center-main, the data center-standby, the data center main PTN and the data center standby PTN form a data center; terminal-2, access-2, local unit-master, local unit-slave, local master PTN and local slave PTN constitute a local unit;
the data center and the local units internally use a network layering design which comprises a core layer and an access layer, wherein the core layer provides transmission of an optimal interval, and the access layer provides access from users to the network for multi-service applications and other network applications.
Further, the data center at least comprises a terminal-2 and an access-2; the access-2 connects the data center-primary and data center-backup. As shown in fig. 1 and 2, there may be a plurality of other departments isolated from each other in the data center, and the different departments may respectively set their terminals and access switches.
Further, the core layer adopts a three-layer switching environment to provide high-speed connection for each access layer of the network.
The implementation of the CFM linkage VRRP protocol in the invention comprises the following steps:
1) Running CFM protocol between exchange interfaces of data center-main/local unit-main and data center-standby/local unit-standby and interfaces corresponding to each PTN, and detecting link state;
2) The VRRP groups between the local unit, the main/local unit and the data center and between the main/data center and the standby are respectively provided with the priority of the main/standby exchange VRRP instance;
3) Setting CFM protocol and VRRP protocol linkage, and setting decreasing priority;
4) The instance priority of the VRRP state being Master is ensured, and the priority which is less than the current Backup after the decrementing priority is subtracted.
The implementation of BFD linkage VRRP protocol in the invention comprises the following steps:
Step 1, a VRRP group between a local unit, a main unit, a local unit, a standby, a data center, a main/data center and a standby is respectively provided with a priority of a main/standby exchange VRRP instance;
Step 2, real addresses of VRRP groups between the local unit-main/local unit-standby and the data center-main/data center-standby are configured into BFD state addresses;
step 3, setting the expected packet receiving rate and packet sending rate of the BFD state address parameter setting interface to 10 milliseconds, and setting the detection interval multiple to 3;
step 4, setting BFD protocol and VRRP protocol linkage, and setting decreasing priority;
And step 5, guaranteeing the VRRP state to be the instance priority of the Master, and subtracting the priority which is smaller than the current Backup after the decreasing priority.
The invention realizes the quick switching mechanism as follows:
The local unit main exchanger and the local unit standby exchanger establish a VRRP group, the data center main exchanger and the data center standby exchanger establish a VRRP group, static routing is used between the data center and the local unit core exchanger, the data center and the local unit core exchanger and PTN equipment use a CFM protocol for carrying out link detection, the local unit main standby core exchanger and the data center main standby core exchanger use a BFD protocol for carrying out link detection, the core exchanger VRPP protocols are respectively associated with CFM and BFD detection states, the link detection CFM and BFD protocols link VRRP protocol priority calculation replaces VRRP notification linkage to realize quick switching of links.
Since the VRRP protocol is only a protocol state master, but the interface is still active, the transmission side PTN device is a two-layer ring network, which may also result in an external ring network. The state of OAM-interface is derived from this, when VRRP is Master, the state of OAM-interface of main exchange and transmission side is Forwarding. When VRRP is Backup, the state of the interface OAM-interface of the main exchange and transmission side is Block. Through the state control of OAM-interface, the transmission side loop-free is realized so as to avoid the risk of network storm.
RSTP fast spanning tree protocol is mainly used in the data center and local units, CFM linkage VRRP protocol is mainly used between the data center core switch and PTN equipment, and BFD linkage VRRP protocol is mainly used between the data center main and standby switches.
In addition, the large-scale networking scenario construction of the data center and the large number of local units is as shown in fig. 2, and two data are physically communicated with the large number of local units through the transmission side PTN device, and are communicated through the route. The internal scenes of each data center and each local unit are still built according to the protocol mode described above, a large number of local units are distinguished by using different IP addresses, the protocol linkage of each data center and each local unit is not affected, and the working process is consistent with the data flow direction of FIG. 1.
The working of the invention is further illustrated below with reference to examples.
In the first embodiment, in the normal state, the data flow direction is: as indicated by the dashed line in fig. 1.
All devices are normally: data center terminal equipment flow- & gt access switch- & gt data center main core switching equipment- & gt data center main PTN equipment- & gt local unit main core switching equipment- & gt access switch- & gt local unit terminal;
Embodiment two: and the main exchange fault downtime fault scene of the data center and the local unit core is as follows: as shown by the two-dot chain line in fig. 1. The process is as shown on the right side of fig. 3.
Step 1, detecting a fault state by a BFD protocol between a data center and a local unit main/standby core switch;
step2, realizing that the VRRP roles exchanged between the data center and the local unit are immediately switched to a Master state;
step 3, the OAM-Interface state between the data center and the local unit standby core switch and the PTN standby equipment is converted from Block to Forwarding;
and step 4, requesting ARP from the standby core switch to realize the table entry synchronization, wherein the realization switching time is not more than 500ms.
Under the fault condition of the main core switching equipment of the data center: data center terminal equipment flow- & gt access switch- & gt data center standby core switching equipment- & gt data center standby PTN equipment- & gt local unit standby core switching equipment- & gt local unit main core switching equipment- & gt access switch- & gt local unit terminal;
Embodiment three, a link failure scenario between a data center and local unit core master switch and PTN master: as in fig. 1, the data center main link failure traffic path is shown in dashed lines. The process is as shown on the left side of fig. 3.
Step 1, a CFM protocol between a data center and local unit main core exchanger and PTN main equipment detects a fault state;
step 2, the VRRP roles exchanged between the data center and the local unit are immediately switched to a Master state;
step 3, the OAM-Interface state between the data center and the local unit standby core switch and the PTN standby equipment is converted from Block to Forwarding;
and 4, the standby core switch requests ARP outwards to realize the table entry synchronization, and the realization switching time is not more than 300ms.
Link failure status between data center primary core switching device and primary PTN device: data center terminal equipment flow- & gt access switch- & gt data center main core switching equipment- & gt data center standby PTN equipment- & gt local unit standby core switching equipment- & gt local unit main core switching equipment- & gt access switch- & gt local unit terminal;
the invention is suitable for scenes with higher reliability requirements, and all devices in the networking support the required network protocol.
The backbone part of the whole network communication equipment comprises a PTN transmission equipment and a data service Ethernet, wherein the data service Ethernet has the functions of terminal access, data aggregation, service gateway, service routing, link redundancy and the like, and the transmission network has the function of long-distance rapid transmission of service data.
The data center and local unit internal use network layering design comprises a core layer core access layer, wherein the core layer provides transmission of an optimal interval, and the access layer provides access from users to the network for multi-service applications and other network applications.
The core layer is a high-speed switched backbone. The design is such that the presentation of time spent exchanging packets is minimized. It is now common practice to fully employ a third layer switching environment at the core layer, meaning that VLANs and VLAN trunk do not appear in the core layer. This also means that spanning tree loops at the core layer can generally be avoided as well. The core layer primary function is to provide high-speed connections between the various access layers of the network.
The access stratum is the point where local end users are ready to grant access to the network. Typically two-layer switches play a very important role in the access layer. In the access layer, switches become edge devices because they are located on the boundary of the network. The two-layer switch belongs to data link layer equipment, can forward mac address information in equipment data packets according to mac addresses, and records the mac addresses and corresponding ports in mac address table entries in the two-layer switch.
The transmission side is transmitted by PTN equipment, and the data center and local units mainly deploy protocols: vlan, trunk, NAT, cfM, ACL, VRRP, OAM, OSPF, spanning tree, static routing, etc.
The local unit main exchanger and the local standby exchanger establish VRRP groups, static routing protocols are used between the data center core and transmission, the data center and the local unit core exchanger and the transmission PTN equipment use CFM protocols to carry out link detection, the local unit core exchanger VRPP protocols are associated with CFM and BFD detection states, the CFM and BFD protocols are linked with VRRP protocol priority calculation, and the VRRP notification linkage is replaced to realize quick switching of links so as to optimize network transmission efficiency.
The implementation of the CFM linkage VRRP protocol comprises the following steps:
step 1, running a CFM protocol between an exchange interface and a PTN corresponding interface, and detecting a link state;
step 2, respectively forming VRRP groups between the data center and the master/slave switches of the local units, and respectively setting the priority of the master/slave switch VRRP instance;
step 3, setting CFM protocol and VRRP protocol linkage, and setting decreasing priority;
And step 4, guaranteeing the VRRP state to be the instance priority of the Master, and subtracting the priority which is smaller than the current Backup after the decreasing priority.
The implementation of the BFD linkage VRRP protocol comprises the following steps:
step 1, respectively forming VRRP groups between a data center and a master-slave switch of a local unit, and respectively setting the priority of the master-slave switch VRRP instance;
Step 2, a BFD state machine is configured between the data center and the master/slave switch of the local unit by using the real address of the VRRP group;
step3, setting the expected packet receiving rate and packet sending rate of the BFD parameter setting interface to 10 milliseconds, and setting the detection interval multiple to 3;
step 4, setting BFD protocol and VRRP protocol linkage, and setting decreasing priority;
And step 5, guaranteeing the VRRP state to be the instance priority of the Master, and subtracting the priority which is smaller than the current Backup after the decreasing priority.
The invention is not limited to the above embodiments, and based on the technical solution disclosed in the invention, a person skilled in the art may make some substitutions and modifications to some technical features thereof without creative effort according to the technical content disclosed, and all the substitutions and modifications are within the protection scope of the invention.