CN106161057B - User side gateway protection method, gateway equipment and system - Google Patents

User side gateway protection method, gateway equipment and system Download PDF

Info

Publication number
CN106161057B
CN106161057B CN201510154021.3A CN201510154021A CN106161057B CN 106161057 B CN106161057 B CN 106161057B CN 201510154021 A CN201510154021 A CN 201510154021A CN 106161057 B CN106161057 B CN 106161057B
Authority
CN
China
Prior art keywords
gateway device
gateway
user network
switch
data message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510154021.3A
Other languages
Chinese (zh)
Other versions
CN106161057A (en
Inventor
帅知春
汤闯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510154021.3A priority Critical patent/CN106161057B/en
Publication of CN106161057A publication Critical patent/CN106161057A/en
Application granted granted Critical
Publication of CN106161057B publication Critical patent/CN106161057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a gateway protection method, gateway equipment and a system of a user side, wherein the method comprises the following steps: the first gateway equipment detects fault information; when the first gateway device detects a link failure connected with the first gateway device or the failure of the first gateway device, the first gateway device controls a second gateway device in communication connection with the first gateway device to receive a data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device. The technical scheme of the invention does not need to be linked with pseudo wire PW protection, and can be applied to direct butt joint of a user side and network edge equipment.

Description

User side gateway protection method, gateway equipment and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a device, and a system for protecting a gateway on a user side.
Background
The existing dual-gateway technology needs to be linked with pseudo wire PW protection and cannot be applied to direct butt joint of a user side and user network edge equipment CE.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method, a gateway device and a system for protecting a gateway at a user side, which can solve the problem that the existing dual-gateway technology needs to be linked with pseudo wire PW protection and cannot be applied to direct connection with a CE at the user side.
In order to solve the above technical problem, an embodiment of the present invention provides a method for protecting a gateway on a user side, including:
the first gateway equipment detects fault information;
when the first gateway device detects a link failure connected with the first gateway device or the failure of the first gateway device, the first gateway device controls a second gateway device in communication connection with the first gateway device to receive a data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device.
The detecting, by the first gateway device, the link failure connected to the first gateway device includes:
a first gateway device detects a failure of a first communication link between a switch and the first gateway device; or
The first gateway device detects a failure of a second communication link between the first gateway device and a second gateway device.
When detecting that a first communication link between a switch and a first gateway device is failed, a first gateway device controls a second gateway device in communication connection with the first gateway device to receive a data message of a user network edge device through the switch, wherein the step of controlling the second gateway device to receive the data message of the user network edge device through the switch comprises the following steps:
when detecting that a first communication link between the switch and the first gateway device is failed, the first gateway device sends first communication link failure information to the second gateway device, so that the second gateway device receives the data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device.
When detecting that a second communication link between the first gateway device and the second gateway device is failed, the first gateway device controls the second gateway device in communication connection with the first gateway device to receive the data message of the user network edge device through the switch, and the step includes:
when detecting that a second communication link between the first gateway device and the second gateway device is failed, the first gateway device and the second gateway device are controlled to receive a data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device.
When the first gateway device detects a failure of the first gateway device, the step of controlling the second gateway device in communication connection with the first gateway device to receive the data packet of the edge device of the user network through the switch and feed back the feedback information of the received data packet to the edge device of the user network includes:
when the first gateway device detects that the first gateway device is in fault and detects that the second gateway device does not receive link fault information connected with the first gateway device within a preset time period, the first gateway device controls the second gateway device to receive a data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device.
In order to solve the above technical problem, an embodiment of the present invention further provides a method for protecting a gateway on a user side, including:
the second gateway equipment detects fault information;
when the second gateway device detects that the first communication link between the switch and the first gateway device is failed or does not receive the interaction information of the first gateway device within a preset time period, the second gateway device receives the data message of the user network edge device through the switch and feeds back the feedback information of the received data message to the user network edge device.
When the second gateway device detects that the interaction information of the first gateway device is not received within a preset time period, the step of receiving the data message of the user network edge device through the switch and feeding back the feedback information of the received data message to the user network edge device comprises the following steps:
and when the second gateway device detects that the interaction information of the first gateway device is not received within a preset time period due to the failure of a second communication link between the second gateway device and the first gateway device, the second gateway device receives the data message of the user network edge device through the switch and feeds back the feedback information of the received data message to the user network edge device.
When the second gateway device detects that the interaction information of the first gateway device is not received within a preset time period, the step of receiving the data message of the user network edge device through the switch and feeding back the feedback information of the received data message to the user network edge device comprises the following steps:
and when the second gateway device detects that a second communication link between the second gateway device and the first gateway device is not in fault and interaction information of the first gateway device is not received within a preset time period, receiving a data message of the user network edge device through the switch, and feeding back feedback information of the received data message to the user network edge device.
In order to solve the above technical problem, an embodiment of the present invention further provides a gateway device, including:
the first detection module is used for detecting fault information;
and the control module is used for controlling a second gateway device in communication connection with the gateway device to receive the data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device when detecting the link failure connected with the gateway device or the failure of the gateway device.
Wherein the control module comprises:
the first detection submodule is used for detecting the failure of a first communication link between the switch and the gateway equipment; or
And the second detection submodule is used for detecting the fault of a second communication link between the gateway equipment and the second gateway equipment.
Wherein the control module comprises:
and the first processing sub-module is used for sending first communication link failure information to the second gateway equipment when detecting that a first communication link between the switch and the gateway equipment fails, so that the second gateway equipment receives the data message of the user network edge equipment through the switch and feeds back feedback information of the received data message to the user network edge equipment.
Wherein the control module comprises:
and the second processing sub-module is used for controlling the gateway equipment and the second gateway equipment to receive the data message of the user network edge equipment through the switch and feed back feedback information of the received data message to the user network edge equipment when detecting that a second communication link between the gateway equipment and the second gateway equipment is in fault.
Wherein the control module comprises:
and the third processing sub-module is used for controlling the second gateway device to receive the data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device when detecting that the gateway device fails and detecting that the second gateway device does not receive link failure information connected with the gateway device within a preset time period.
In order to solve the above technical problem, an embodiment of the present invention further provides a gateway device, including:
the second detection module is used for detecting fault information;
and the feedback module is used for receiving the data message of the user network edge equipment through the switch and feeding back feedback information of the received data message to the user network edge equipment when detecting that a first communication link between the switch and the first gateway equipment is failed or the interactive information of the first gateway equipment is not received within a preset time period.
Wherein the feedback module comprises:
the second detection module is used for detecting fault information;
and the first feedback sub-module is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when the interaction information of the first gateway device is not received within a preset time period due to the fault of a second communication link between the gateway device and the first gateway device.
Wherein the feedback module comprises:
and the second feedback sub-module is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when detecting that a second communication link between the gateway device and the first gateway device is not in fault and the interaction information of the first gateway device is not received within a preset time period.
In order to solve the above technical problem, an embodiment of the present invention further provides a system, including:
the user network edge equipment is used for sending data messages;
a switch connected to the network edge device;
the first gateway equipment is used for controlling second gateway equipment which is in communication connection with the first gateway equipment to receive a data message of user network edge equipment through an exchanger and feed back feedback information of the received data message to the user network edge equipment when detecting a link fault connected with the first gateway equipment or a fault of the first gateway equipment;
and the second gateway device is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when the first communication link between the switch and the first gateway device is detected to be failed or the interaction information of the first gateway device is not received within a preset time period.
Wherein, the switch is a two-layer switch.
Wherein the three-layer port of the two-layer switch device;
a first virtual local area network sub-interface and a second virtual local area network sub-interface are arranged on the three-layer port;
the first gateway device is connected with the first virtual local area network subinterface, and the second gateway device is connected with the second virtual local area network subinterface.
Wherein the first gateway device has a first priority level and the second gateway device has a second priority level, the first priority level being greater than the second priority level.
The first gateway device and the second gateway device periodically exchange data through a bidirectional forwarding mechanism (BFD) session.
ARP hot backup protection is configured between the first gateway equipment and the second gateway equipment.
The technical scheme of the invention has the following beneficial effects:
according to the technical scheme, the first gateway equipment and the second gateway equipment are respectively butted with CE (customer edge) equipment of a user side through the switch, so that the double-gateway scheme of the invention does not need to be linked with PW (pseudo wire) protection, and can be applied to direct butt joint of the user side and network edge equipment.
Drawings
Fig. 1 shows a schematic diagram of the system architecture of the present invention.
Fig. 2 is a schematic flow chart of a first gateway protection method at a user side according to the present invention;
fig. 3 is a schematic flow chart of a gateway protection method at a user side according to the present invention;
fig. 4 shows a third flowchart of the gateway protection method at the user side according to the present invention;
fig. 5 shows a fourth flowchart of the gateway protection method at the user side according to the present invention;
fig. 6 shows a fifth flowchart of the gateway protection method at the user side according to the present invention;
fig. 7 shows a sixth flowchart of the gateway protection method at the user side according to the present invention;
fig. 8 is a flowchart of a seventh method for protecting a gateway on a user side according to the present invention;
fig. 9 is a schematic flowchart of a gateway protection method on the user side according to an eighth embodiment of the present invention;
fig. 10 is a first schematic structural diagram of a first gateway device according to the present invention;
fig. 11 is a schematic structural diagram of a first gateway device according to the present invention;
fig. 12 is a schematic structural diagram of a first gateway device according to the present invention;
fig. 13 is a schematic structural diagram of a first gateway device according to the present invention;
fig. 14 is a schematic structural diagram of a second gateway device according to the present invention;
FIG. 15 is a schematic diagram of a second gateway device according to the present invention
Fig. 16 is a schematic structural diagram of a second gateway device according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The implementation of the technical solution of the present invention depends on a system, and with reference to fig. 1, the system mainly includes:
the device comprises a user network edge device, a switch, a first gateway device and a second gateway device. The switch can be a two-layer switch, and the two-layer switch is provided with three layers of ports; the user network edge device is connected with the switch, and the first gateway device and the second gateway device are respectively connected with the three-layer port of the switch.
The following describes the technical scheme of the present invention in detail with reference to fig. 1 and a specific embodiment.
In the specific embodiment of the present invention, two gateway devices have the same IP address and MAC address, and the two gateway devices are equal, in order to clarify the traffic flow, the master/slave priorities of the gateway devices may be set, the priorities may be either exclusive or preempted, and only the gateway device with the higher priority may receive the data packet of the edge device of the user network through the switch and feed back the feedback information of the received data packet to the edge device of the user network. A gateway device with a high priority (first priority level) may be referred to as a first gateway device (primary device), and a gateway device with a low priority (second priority level) may be referred to as a second gateway device (backup device).
The following describes in detail the flow of the technical solution of the present invention from the perspective of the first gateway device and the perspective of the second gateway device, respectively.
First, from the perspective of the first gateway device, a detailed description is given to a flow of the technical solution of the present invention.
With reference to fig. 2, the method for protecting the dual gateways at the user side includes:
step 21, the first gateway device detects fault information;
step 22, when the first gateway device detects a link failure connected to the first gateway device or a failure of the first gateway device, the first gateway device controls a second gateway device in communication connection with the first gateway device to receive a data packet of the edge device of the user network through the switch, and feeds back feedback information of the received data packet to the edge device of the user network.
The above method is described in detail in three cases:
the first situation is as follows: a first communication link between the first gateway device and the switch fails.
In this case, the step 22, with reference to fig. 3, specifically includes:
step 31, when detecting a first communication link failure between the switch and the first gateway device, the first gateway device sends a first communication link failure message to the second gateway device, so that the second gateway device receives the data packet of the edge device of the user network through the switch, and feeds back the feedback information of the received data packet to the edge device of the user network.
The first gateway device may periodically send first interaction data information to the second gateway device through a bidirectional forwarding mechanism BFD session, where the first interaction data information includes: priority level information of the first gateway device, first communication link state information between the first gateway device and the switch; the BFD session has a predetermined period, and the period in which the first gateway device sends the first interactive data information to the second gateway device is the BFD session period. When the second gateway device receives the first communication link failure information between the first gateway device and the switch within a preset time period (which may be greater than or equal to the period of the BFD session), the switch receives the data packet of the edge device of the user network, and feeds back the feedback information of the received data packet to the edge device of the user network. The reason why the second gateway device can receive the data message of the user network edge device through the switch and feed back the feedback information of the received data message to the user network edge device is that the second gateway device and the user network edge device can learn through the MAC address, so that the second gateway device and the user network edge device can learn the MAC address of the other side to perform communication.
Case two: a second communication link between the first gateway device and the second gateway device fails.
In this case, the step 22, with reference to fig. 4, specifically includes:
step 41, when detecting that the second communication link between the first gateway device and the second gateway device is faulty, the first gateway device and the second gateway device are both controlled to receive the data packet of the edge device of the user network through the switch, and to feed back the feedback information of the received data packet to the edge device of the user network.
Above, it is mentioned that data is exchanged between the first gateway device and the second gateway device through a BFD session, so that the first gateway device may periodically receive second interaction data information of the second gateway device through the BFD session, where the second interaction data information includes: when the first gateway device detects that the second communication link is failed and does not receive the second interactive data information of the second gateway device within the preset time period, the first gateway device and the second gateway device are controlled to receive the data message of the user network edge device through the switch and feed back the feedback information of the received data message to the user network edge device.
Case three: a first gateway device failure condition.
In this case, the step 22, with reference to fig. 5, specifically includes:
step 51, when the first gateway device detects that the first gateway device is faulty and detects that the second gateway device does not receive the link fault information connected with the first gateway device within a preset time period, the first gateway device controls the second gateway device to receive the data packet of the edge device of the user network through the switch and feeds back the feedback information of the received data packet to the edge device of the user network.
When the first gateway device detects that the first gateway device fails and detects that the second gateway device does not receive link (such as a first communication link failure) failure information connected with the first gateway device within the above-mentioned preset time period, the first gateway device controls the second gateway device to receive a data packet of the edge device of the user network through the switch and feed back feedback information of the received data packet to the edge device of the user network.
The above is to describe the flow of the technical solution of the present invention in detail from the perspective of the first gateway device, and the following is to describe the flow of the technical solution of the present invention in detail from the perspective of the second gateway device.
The method for protecting the dual gateways at the user side, in combination with fig. 6, includes:
step 61, the second gateway device detects the failure information;
step 62, when the second gateway device detects that the first communication link between the switch and the first gateway device is faulty or does not receive the interaction information of the first gateway device within a preset time period, the second gateway device receives the data packet of the edge device of the user network through the switch, and feeds back the feedback information of the received data packet to the edge device of the user network. The interactive information is first interactive data information.
This flow will be described in detail from the perspective of the second gateway device, corresponding to the three cases described above.
Corresponding to the first case, the step 62, with reference to fig. 7, specifically includes:
step 71, when the second gateway device detects that the first communication link between the switch and the first gateway device is faulty, the second gateway device receives the data packet of the user network edge device through the switch, and feeds back feedback information of the received data packet to the user network edge device.
And when the second gateway device receives the first interactive data information in the mentioned preset time period through the BFD session and detects that a first communication link between the switch and the first gateway device is failed, receiving the data message of the user network edge device through the switch, and feeding back feedback information of the received data message to the user network edge device.
Corresponding to the second case, the step 62, with reference to fig. 8, specifically includes:
and 81, when the second gateway device detects that the interaction information of the first gateway device is not received within a preset time period due to the failure of the second communication link between the second gateway device and the first gateway device, receiving the data message of the user network edge device through the switch, and feeding back the feedback information of the received data message to the user network edge device.
When the second gateway device detects that a second communication link between the second gateway device and the first gateway device fails and the first interactive data information of the first gateway device is not received within the mentioned preset time period, the second gateway device receives the data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device.
Corresponding to the third case, the step 62, with reference to fig. 9, specifically includes:
step 91, when the second gateway device detects that the second communication link between the second gateway device and the first gateway device is not in fault and does not receive the interaction information of the first gateway device within a preset time period, the second gateway device receives the data message of the user network edge device through the switch and feeds back the feedback information of the received data message to the user network edge device.
And when the second gateway device detects that the second communication link between the second gateway device and the first gateway device is not in fault and the first interactive data information of the first gateway device is not received within the preset time period, receiving the data message of the user network edge device through the switch, and feeding back feedback information of the received data message to the user network edge device.
In order to realize the traffic sharing of the two gateway devices, a first virtual local area network subinterface and a second virtual local area network subinterface may be set on the three-layer port of the switch; one of the gateway devices may be connected to the first vlan subinterface, and the other gateway device may be connected to the second vlan subinterface. Wherein, the MAC addresses of the first vlan subinterface and the second vlan subinterface may be the same. Different virtual local area network subinterfaces can configure the priority according to the requirement of load sharing, that is: when one of the gateway devices has a high priority, the virtual local area network subinterface connected with the gateway device also configures the priority of the subinterface as the high priority, and the service can be sent to the gateway device with the high priority through the subinterface.
In conclusion, the technical scheme of the double gateway of the invention does not need to be linked with pseudo wire PW protection, can be applied to direct butt joint of the user side and network edge equipment, and realizes double gateway protection of the user side.
However, if the first gateway device is in a working state for a long time, the first gateway device may periodically learn the MAC address with the user network edge device, and in order to ensure the efficiency of receiving and forwarding the packet by the second gateway device when the above three situations occur, address resolution ARP hot backup protection may be added between the first gateway device and the second gateway device, that is, the address table of the first gateway device, which contains the MAC address of the user network edge device, is periodically sent to the second gateway device, so that the process of learning the MAC address of the user network edge device by the second gateway device is omitted, and the efficiency of receiving and forwarding the packet by the second gateway device is ensured.
As shown in fig. 10, an embodiment of the present invention provides a gateway device, including:
a first detection module 101, configured to detect fault information;
the control module 102 is configured to, when detecting a link failure connected to the gateway device or a failure of the gateway device, control a second gateway device in communication connection with the gateway device to receive a data packet of a user network edge device through the switch, and feed back feedback information of the received data packet to the user network edge device.
Wherein the control module 102 includes:
the first detection submodule is used for detecting the failure of a first communication link between the switch and the gateway equipment; or
And the second detection submodule is used for detecting the fault of a second communication link between the gateway equipment and the second gateway equipment.
As shown in fig. 11, the control module 102 includes:
the first processing sub-module 111 is configured to, when detecting that the first communication link between the switch and the gateway device fails, send failure information of the first communication link to the second gateway device, so that the second gateway device receives the data packet of the edge device of the user network through the switch, and feeds back feedback information of the received data packet to the edge device of the user network.
As shown in fig. 12, the control module 102 includes:
the second processing sub-module 121 is configured to, when detecting that a second communication link between the gateway device and the second gateway device fails, control both the gateway device and the second gateway device to receive a data packet of a user network edge device through the switch, and feed back feedback information of the received data packet to the user network edge device.
As shown in fig. 13, the control module 102 includes:
the third processing sub-module 131 is configured to, when detecting that the gateway device fails and detecting that the second gateway device does not receive link failure information connected to the gateway device within a preset time period, control the second gateway device to receive a data packet of the edge device of the user network through the switch and feed back feedback information of the received data packet to the edge device of the user network.
It should be noted that the gateway device is a gateway device including the above-mentioned gateway protection method based on the user side of the first gateway device side, and the implementation manner of the above-mentioned method is applicable to the embodiment of the gateway device, and the same technical effect can be achieved.
As shown in fig. 14, an embodiment of the present invention further provides a gateway device, including:
a second detection module 141 for detecting fault information;
the feedback module 142 is configured to receive, by the switch, the data packet of the edge device of the user network when detecting that the first communication link between the switch and the first gateway device fails or when the interaction information of the first gateway device is not received within a preset time period, and feed back, to the edge device of the user network, feedback information of the received data packet.
As shown in fig. 15, the feedback module 142 includes:
the first feedback sub-module 151 is configured to receive, by the switch, a data packet of the edge device of the user network when detecting that the interaction information of the first gateway device is not received within a preset time period due to a failure of the second communication link between the gateway device and the first gateway device, and feed back, to the edge device of the user network, feedback information of the received data packet.
As shown in fig. 16, the feedback module 142 includes:
the second feedback sub-module 161 is configured to receive, by the switch, the data packet of the edge device of the user network and feed back, to the edge device of the user network, feedback information of the received data packet when it is detected that the second communication link between the gateway device and the first gateway device is not faulty and the interaction information of the first gateway device is not received within a preset time period.
It should be noted that the gateway device is a gateway device including the above-mentioned gateway protection method based on the user side of the second gateway device side, and the implementation manner of the above-mentioned method is applicable to the embodiment of the gateway device, and the same technical effect can be achieved.
An embodiment of the present invention further provides a system, as shown in fig. 1, including:
the user network edge equipment is used for sending data messages;
a switch connected to the network edge device;
the first gateway equipment is used for controlling second gateway equipment which is in communication connection with the first gateway equipment to receive a data message of user network edge equipment through an exchanger and feed back feedback information of the received data message to the user network edge equipment when detecting a link fault connected with the first gateway equipment or a fault of the first gateway equipment;
and the second gateway device is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when the first communication link between the switch and the first gateway device is detected to be failed or the interaction information of the first gateway device is not received within a preset time period.
Wherein, the switch is a two-layer switch.
Wherein the three-layer port of the two-layer switch device;
a first virtual local area network sub-interface and a second virtual local area network sub-interface are arranged on the three-layer port;
the first gateway device is connected with the first virtual local area network subinterface, and the second gateway device is connected with the second virtual local area network subinterface.
Wherein the first gateway device has a first priority level and the second gateway device has a second priority level, the first priority level being greater than the second priority level.
The first gateway device and the second gateway device periodically exchange data through a bidirectional forwarding mechanism (BFD) session.
ARP hot backup protection is configured between the first gateway equipment and the second gateway equipment.
It should be noted that the system is a system including the gateway device, and the implementation manner of the gateway device is applicable to the embodiment of the system, and the same technical effect can be achieved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (22)

1. A method for protecting a gateway at a user side is characterized by comprising the following steps:
the first gateway equipment and the second gateway equipment are respectively connected with an exchanger, and the exchanger is connected with the user network edge equipment;
the first gateway device detects failure information;
when the first gateway device detects a link failure connected with the first gateway device or the failure of the first gateway device, the first gateway device controls a second gateway device in communication connection with the first gateway device to receive a data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device.
2. The method of claim 1, wherein detecting, by the first gateway device, the link failure with the first gateway device comprises:
a first gateway device detects a failure of a first communication link between a switch and the first gateway device; or
The first gateway device detects a failure of a second communication link between the first gateway device and a second gateway device.
3. The method of claim 2, wherein the step of the first gateway device controlling a second gateway device communicatively connected to the first gateway device to receive the data packet of the edge device of the user network via the switch when detecting the failure of the first communication link between the switch and the first gateway device comprises:
when detecting that a first communication link between the switch and the first gateway device is failed, the first gateway device sends first communication link failure information to the second gateway device, so that the second gateway device receives the data message of the user network edge device through the switch and feeds back feedback information of the received data message to the user network edge device.
4. The method of claim 2, wherein the step of the first gateway device controlling the second gateway device in communication connection with the first gateway device to receive the data packet of the edge device of the user network through the switch when detecting that the second communication link between the first gateway device and the second gateway device is failed comprises:
when detecting that a second communication link between the first gateway device and the second gateway device is failed, the first gateway device and the second gateway device are controlled to receive a data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device.
5. The method according to claim 2, wherein the step of the first gateway device controlling the second gateway device, which is in communication connection with the first gateway device, to receive the data packet of the edge device of the customer network through the switch when detecting the failure of the first gateway device, and to feed back the feedback information of the received data packet to the edge device of the customer network comprises:
when the first gateway device detects that the first gateway device is in fault and detects that the second gateway device does not receive link fault information connected with the first gateway device within a preset time period, the first gateway device controls the second gateway device to receive a data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device.
6. A method for protecting a gateway at a user side is characterized by comprising the following steps:
the second gateway equipment detects fault information;
when the second gateway device detects that the first communication link between the switch and the first gateway device is failed or does not receive the interaction information of the first gateway device within a preset time period, the second gateway device receives the data message of the user network edge device through the switch and feeds back the feedback information of the received data message to the user network edge device.
7. The method according to claim 6, wherein the step of the second gateway device detecting that the interworking information of the first gateway device is not received within a preset time period, receiving the data packet of the edge device of the user network through the switch, and feeding back the feedback information of the received data packet to the edge device of the user network comprises:
and when the second gateway device detects that the interaction information of the first gateway device is not received within a preset time period due to the failure of a second communication link between the second gateway device and the first gateway device, the second gateway device receives the data message of the user network edge device through the switch and feeds back the feedback information of the received data message to the user network edge device.
8. The method according to claim 6, wherein the step of receiving the data packet of the edge device of the user network through the switch and feeding back the feedback information of the received data packet to the edge device of the user network when the second gateway device detects that the interworking information of the first gateway device is not received within a preset time period comprises:
and when the second gateway device detects that a second communication link between the second gateway device and the first gateway device is not in fault and interaction information of the first gateway device is not received within a preset time period, receiving a data message of the user network edge device through the switch, and feeding back feedback information of the received data message to the user network edge device.
9. A gateway device connected to a second gateway device and a switch, the gateway device comprising:
the first detection module is used for detecting fault information;
and the control module is used for controlling a second gateway device in communication connection with the gateway device to receive the data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device when detecting the link failure connected with the gateway device or the failure of the gateway device.
10. The gateway device of claim 9, wherein the control module comprises:
the first detection submodule is used for detecting the failure of a first communication link between the switch and the gateway equipment; or
And the second detection submodule is used for detecting the fault of a second communication link between the gateway equipment and the second gateway equipment.
11. The gateway device of claim 10, wherein the control module comprises:
and the first processing sub-module is used for sending first communication link failure information to the second gateway equipment when detecting that a first communication link between the switch and the gateway equipment fails, so that the second gateway equipment receives the data message of the user network edge equipment through the switch and feeds back feedback information of the received data message to the user network edge equipment.
12. The gateway device of claim 10, wherein the control module comprises:
and the second processing sub-module is used for controlling the gateway equipment and the second gateway equipment to receive the data message of the user network edge equipment through the switch and feed back feedback information of the received data message to the user network edge equipment when detecting that a second communication link between the gateway equipment and the second gateway equipment is in fault.
13. The gateway device of claim 10, wherein the control module comprises:
and the third processing sub-module is used for controlling the second gateway device to receive the data message of the user network edge device through the switch and feed back feedback information of the received data message to the user network edge device when detecting that the gateway device fails and detecting that the second gateway device does not receive link failure information connected with the gateway device within a preset time period.
14. A gateway device, comprising:
the second detection module is used for detecting fault information;
and the feedback module is used for receiving the data message of the user network edge equipment through the switch and feeding back feedback information of the received data message to the user network edge equipment when detecting that a first communication link between the switch and the first gateway equipment is failed or the interactive information of the first gateway equipment is not received within a preset time period.
15. The gateway device of claim 14, wherein the feedback module comprises:
and the first feedback sub-module is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when the interaction information of the first gateway device is not received within a preset time period due to the fault of a second communication link between the gateway device and the first gateway device.
16. The gateway device of claim 14, wherein the feedback module comprises:
and the second feedback sub-module is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when detecting that a second communication link between the gateway device and the first gateway device is not in fault and the interaction information of the first gateway device is not received within a preset time.
17. A system, comprising:
the user network edge equipment is used for sending data messages;
a switch connected to the network edge device;
the first gateway equipment is used for controlling second gateway equipment which is in communication connection with the first gateway equipment to receive a data message of user network edge equipment through an exchanger and feed back feedback information of the received data message to the user network edge equipment when detecting a link fault connected with the first gateway equipment or a fault of the first gateway equipment;
and the second gateway device is used for receiving the data message of the user network edge device through the switch and feeding back feedback information of the received data message to the user network edge device when the first communication link between the switch and the first gateway device is detected to be failed or the interaction information of the first gateway device is not received within a preset time period.
18. The system of claim 17, wherein the switch is a two-tier switch.
19. The system of claim 18,
a three-layer port of the two-layer switch device;
a first virtual local area network sub-interface and a second virtual local area network sub-interface are arranged on the three-layer port;
the first gateway device is connected with the first virtual local area network subinterface, and the second gateway device is connected with the second virtual local area network subinterface.
20. The system of claim 17, wherein the first gateway device has a first priority level and the second gateway device has a second priority level, and wherein the first priority level is greater than the second priority level.
21. The system of claim 20,
and the first gateway equipment and the second gateway equipment periodically exchange data through a bidirectional forwarding mechanism (BFD) session.
22. The system of claim 17, wherein ARP hot backup protection is configured between the first gateway device and the second gateway device.
CN201510154021.3A 2015-04-02 2015-04-02 User side gateway protection method, gateway equipment and system Active CN106161057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510154021.3A CN106161057B (en) 2015-04-02 2015-04-02 User side gateway protection method, gateway equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510154021.3A CN106161057B (en) 2015-04-02 2015-04-02 User side gateway protection method, gateway equipment and system

Publications (2)

Publication Number Publication Date
CN106161057A CN106161057A (en) 2016-11-23
CN106161057B true CN106161057B (en) 2020-03-27

Family

ID=57337409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510154021.3A Active CN106161057B (en) 2015-04-02 2015-04-02 User side gateway protection method, gateway equipment and system

Country Status (1)

Country Link
CN (1) CN106161057B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669322B (en) * 2017-07-20 2022-04-22 深圳市盛路物联通讯技术有限公司 Relay bridging method and gateway
CN112615755B (en) * 2019-12-18 2022-03-29 北京金风慧能技术有限公司 Data transmission method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893338A (en) * 2005-06-28 2007-01-10 阿尔卡特公司 Communication path redundancy protection systems and methods
CN1933442A (en) * 2005-09-15 2007-03-21 华为技术有限公司 Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101166111A (en) * 2006-10-20 2008-04-23 中兴通讯股份有限公司 A service protection method for access gateway
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN101312439A (en) * 2007-05-24 2008-11-26 中国电信股份有限公司 Flexible IP gateway protecting method
CN103052106A (en) * 2012-12-20 2013-04-17 华为技术有限公司 Protection method of cross-device linear multiplex section, gateways and controller

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054264B2 (en) * 2001-07-24 2006-05-30 Corrigent Systems Ltd. Interconnect and gateway protection in bidirectional ring networks
US8365241B1 (en) * 2008-06-09 2013-01-29 Symantec Corporation Method and apparatus for archiving web content based on a policy

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893338A (en) * 2005-06-28 2007-01-10 阿尔卡特公司 Communication path redundancy protection systems and methods
CN1933442A (en) * 2005-09-15 2007-03-21 华为技术有限公司 Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101166111A (en) * 2006-10-20 2008-04-23 中兴通讯股份有限公司 A service protection method for access gateway
CN101312439A (en) * 2007-05-24 2008-11-26 中国电信股份有限公司 Flexible IP gateway protecting method
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN103052106A (en) * 2012-12-20 2013-04-17 华为技术有限公司 Protection method of cross-device linear multiplex section, gateways and controller

Also Published As

Publication number Publication date
CN106161057A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN101483558B (en) Method, system and apparatus for packet switching network access by network appliance
CN101330424B (en) Method, system and apparatus for processing service fault of virtual special network
US8724627B2 (en) Single-homing and active-active multi-homing in a virtual private LAN service
EP2633649B1 (en) Dual-homing for ethernet line services
CN102571426B (en) Double-homing protection method and device
CN101924654B (en) Point-to-multipoint service-based path switching method and system
US10581633B2 (en) Automation device for the redundant control of a bus subscriber
CN101374075A (en) Method, apparatus and system for protecting multicast source
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
CN101719834B (en) Method and system for realizing virtual private multicast service protection
CN102647304A (en) Synchronizing method of address resolution protocols and device
JP2014116767A (en) Communication system and network relay device
CN101345686B (en) Processing method, apparatus and system of virtual special local area network service loop
CN105591800A (en) Traffic protection method and device
CN103457817A (en) PW+L3VPN protection method and system
CN103532863A (en) Method and device for realizing software stacking
EP3255838B1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN104518936A (en) Method and device for link dynamic aggregation
WO2011113395A2 (en) A method and apparatus for load balance
CN106161057B (en) User side gateway protection method, gateway equipment and system
CN104753754A (en) Method and apparatus for transmitting messages
EP2512070A1 (en) Protection method, equipment and system for semi-ring network
JP5929720B2 (en) Communication system and network relay device
CN104579953A (en) A method for releasing routing, and a virtual router redundancy protocol backup group and network
CN102238040B (en) Method for monitoring CE (Customer Edge router) and routing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant