CN109194521A - A kind of flow forwarding method and equipment - Google Patents

A kind of flow forwarding method and equipment Download PDF

Info

Publication number
CN109194521A
CN109194521A CN201811153768.7A CN201811153768A CN109194521A CN 109194521 A CN109194521 A CN 109194521A CN 201811153768 A CN201811153768 A CN 201811153768A CN 109194521 A CN109194521 A CN 109194521A
Authority
CN
China
Prior art keywords
equipment
priority
uplink group
message
current priority
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.)
Granted
Application number
CN201811153768.7A
Other languages
Chinese (zh)
Other versions
CN109194521B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811153768.7A priority Critical patent/CN109194521B/en
Publication of CN109194521A publication Critical patent/CN109194521A/en
Application granted granted Critical
Publication of CN109194521B publication Critical patent/CN109194521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present invention provides a kind of flow forwarding method and equipment.This method comprises: the second equipment receives and parses through the first keep alive Packet of the first equipment transmission, the first keep alive Packet includes the corresponding first uplink group state of first equipment;Wherein, the first equipment is main equipment, and the second equipment is stand-by equipment;If IPL link failure of the first uplink group state between off working state and the first equipment and the second equipment, the current priority of the first equipment is calculated according to the configuration preference level of the first equipment and pre-stored action type;Role's election is carried out according to the current priority of the first equipment and the current priority of the second equipment, determines new main equipment, so that new main equipment carries out flow forwarding.Equipment is for executing the above method.The embodiment of the present invention passes through the ability that the first uplink group state activation role elects, so that it is determined that this new equipment, guarantees that flow normally forwards, improve the reliability of networking.

Description

Flow forwarding method and equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a traffic forwarding method and device.
Background
In a Multi-session Link aggregation Group (MLAG) implementation, an Intra-port Link (IPL) fails while a keep-alive Link is in normal operation. The standby device may issue a multiple-Active Detection (MAD) DOWN command to cause all interfaces that are not added to the madexcount group to be MAD-DOWN. At this time, the traffic of the client goes to the public network by the main device.
Fig. 1 is a schematic diagram of an MLAG networking structure provided in the prior art, and as shown in fig. 1, a device C101 is a switch at a terminal side, when the device C101 uploads traffic data to a server 104 at a network side, it is assumed that a device a102 is a main device and a device B103 is a standby device, if an uplink of the main device 102 fails, traffic cannot be forwarded through the main device, and a downlink interface of the standby device 103 is MAD DOWN due to an IPL failure. Traffic cannot reach the public network, resulting in service disruption.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a traffic forwarding method, so as to solve the technical problem that traffic cannot be forwarded when an uplink and an IPL link of a master device fail simultaneously.
In a first aspect, an embodiment of the present invention provides a traffic forwarding method, including:
a second device receives a first message sent by a first device of an opposite terminal, and acquires an uplink group state corresponding to the first device from the first message, wherein one of the first device and the second device is a main device, and the other device is a standby device;
and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
Further, the role election by the second device according to the pre-configured parameter for determining the priority of the device includes:
the second equipment determines a first current priority of the first equipment and a second current priority of the second equipment according to a pre-configured parameter for determining the equipment priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
Further, the method further comprises:
before the IPL link fails, the second device receives a first configuration priority and a first operation type through the IPL link.
Further, the method further comprises:
the second equipment receives Bidirectional Forwarding Detection (BFD) messages sent by the uplink equipment;
the second device determines an uplink group status of the second device from the BFD message.
Further, the method further comprises:
and the second equipment sends a second message comprising the uplink group state of the second equipment to the first equipment so that the first equipment calculates the current priority of the second equipment according to the uplink group state of the second equipment.
Further, the method further comprises:
and if the uplink group of the main equipment is recovered to be in a working state and the IPL link is still in failure, the second equipment performs role election and re-determines new main equipment.
Further, if the second device is elected as a new master device, the method further comprises:
and if the IPL link is recovered and the uplink group of the main equipment is in a non-working state, the second equipment continues to forward the flow.
Further, the determining, by the second device, the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining a device priority includes:
the second equipment calculates the first current priority according to the first configuration priority and the first operation type corresponding to the first equipment;
if the uplink group state of the second device is a working state, the second device determines that a second configuration priority corresponding to the second device is the second current priority;
and if the uplink group state of the second equipment is a non-working state, the second equipment calculates the second current priority according to a second configuration priority and a second operation type corresponding to the second equipment.
Further, the determining, by the second device, the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining a device priority includes:
the second equipment calculates the second current priority according to a second configuration priority corresponding to the second equipment and the second operation type;
if the uplink group state of the first device is a working state, the second device determines that a first configuration priority corresponding to the first device is the first current priority;
and if the uplink group state of the first equipment is a non-working state, the second equipment calculates the first current priority according to a first configuration priority corresponding to the first equipment and a first operation type.
Further, the second device is a standby device, the first message is a keep-alive message, and the first message further includes a prompt field; the prompt field is used for prompting whether the second device needs to acquire the uplink group state of the first device in the first message;
after the second device receives the first packet sent by the first device of the opposite end, and before the uplink group state corresponding to the first device is acquired from the first packet, the method further includes:
and the second equipment determines that the prompt field in the first message is set.
Further, the second device is a master device, and the method further includes:
if the uplink group state of the second device is a non-working state, the second device generates a third message, wherein the third message comprises a prompt field, and the prompt field is set, so that the first device acquires the uplink group state of the second device from the third message after determining that the prompt field is set.
In a second aspect, an embodiment of the present invention provides a traffic forwarding apparatus, including:
a first receiving module, configured to receive a first packet sent by a first device of an opposite end, and obtain an uplink group state corresponding to the first device from the first packet, where one of the first device and the second device is a primary device, and the other is a standby device;
and the election module is used for performing role election according to a pre-configured parameter for determining the priority of the device and determining a new main device so as to enable the new main device to perform traffic forwarding if the uplink group state of the main device is a non-working state and the IPL link between the first device and the second device fails.
Further, the election module is specifically configured to:
determining a first current priority of the first device and a second current priority of the second device according to a pre-configured parameter for determining the device priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
Further, the apparatus further comprises:
a second receiving module, configured to receive the first configuration priority and the first operation type through the IPL link before the IPL link fails.
Further, the apparatus further comprises:
the third receiving module is used for receiving the Bidirectional Forwarding Detection (BFD) message sent by the uplink equipment;
a first determining module to determine an uplink group status of the second device from the BFD message.
Further, the apparatus further comprises:
a sending module, configured to send a second packet including an uplink group status of the second device to the first device, so that the first device calculates a current priority of the second device according to the uplink group status of the second device.
Further, the apparatus further comprises:
and the second election module is used for performing role election and re-determining a new main device if the uplink group of the main device is recovered to be in a working state and the IPL link still fails.
Further, if the second device is elected as a new master device, the apparatus further includes:
and the forwarding module is used for continuing to forward the flow if the IPL link is recovered and the uplink group of the main equipment is in a non-working state.
Further, the second device is a standby device, and the election module is specifically configured to:
calculating the first current priority according to a first configuration priority and a first operation type corresponding to the first equipment;
if the uplink group state of the second device is a working state, determining that a second configuration priority corresponding to the second device is the second current priority;
and if the uplink group state of the second equipment is a non-working state, calculating the second current priority according to a second configuration priority and a second operation type corresponding to the second equipment.
Further, the second device is a master device, and the election module is specifically configured to:
calculating the second current priority according to a second configuration priority corresponding to the second device and the second operation type;
if the uplink group state of the first device is a working state, determining that a first configuration priority corresponding to the first device is the first current priority;
and if the uplink group state of the first equipment is a non-working state, calculating the first current priority according to a first configuration priority and a first operation type corresponding to the first equipment.
Further, the second device is a standby device, the first message is a keep-alive message, and the first message further includes a prompt field; the prompt field is used for prompting whether the second device needs to acquire the uplink group state of the first device in the first message;
the device, still include:
and the second determining module is used for determining the setting of the prompt field in the first message.
Further, the second device is a master device, and the apparatus further includes:
a message generating module, configured to generate, by the second device, a third message if the uplink group status of the second device is in a non-working state, where the third message includes a prompt field, and the prompt field is set, so that the first device obtains the uplink group status of the second device from the third message after determining that the prompt field is set.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor being capable of performing the method steps of the first aspect when invoked by the program instructions.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method steps of the first aspect.
According to the traffic forwarding method provided by the embodiment of the invention, when the uplink group and the IPL link of the main equipment are in failure, the field of the uplink group state of the main equipment is added in the message sent to the standby equipment, the priority of the main equipment is reduced, and role election is carried out to obtain new main equipment so as to enable the new main equipment to carry out traffic forwarding, so that the problem that traffic cannot be forwarded is avoided, and the networking reliability is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an MLAG networking architecture provided in the prior art;
fig. 2 is a schematic flow chart of a traffic forwarding method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a traffic forwarding apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
In the related art, the MLAG is a mechanism for implementing cross-device link aggregation, and performs cross-device link aggregation on one device and another two devices, so as to improve the link reliability from a single board level to a device level, thereby forming a dual active system. The other two devices communicate with each other through an Intra-Portal Link (IPL) and a keep-alive Link (keep-alive), DRCP messages are exchanged in the IPL, and keep-alive messages are exchanged in the keep-alive Link. And, the DRCP message is used to exchange information of the uplink group, and the keep-alive message is used to exchange a state of the uplink group.
Wherein, the DRCP message carries the following fields:
htype: 0001 indicates that the information of the link group is carried subsequently;
seq: indicating the current sequence number;
m: indicating whether the link group information message is the last link group information message;
gn (groupnumber): 12 bits, which indicates the uplink group number configured at the local terminal;
c: 4 bits; 0001: the current group up; 0010: the current group down; 0100: a current group receiver;
a: 4 bits; 0001, reducing role priority; 0010, increasing role priority; 0100, the local terminal is forced to be P when the uplink group up;
v: 8 bits, when A is 0001 or 0010, the variation of role priority is designated;
f: 4 bits; 0001: representing the local emission; 0002: indicating a reply message;
the keep-alive message comprises the following fields:
type _ L: 12 bits, the first 3 bits indicate the type, and the last 9 bits indicate that the total length of the type message is 4;
001xxxxxxxxx indicates that the message with the length of xxxxxxxxx 4 carries information of GN and C;
if _ A: and 4 bits for notifying the opposite end whether to pay attention to the information carried by the keep _ alive message.
The embodiment of the invention does not modify the DR negotiation state machine, but adds the uplink group state after the DR negotiation is finished. Namely, the following fields are added on the basis of the existing keep-alive message:
gn (groupnumber): 12 bits, which indicates the uplink group number configured at the local terminal;
c: 4 bits; 0001: the current group up; 0010: the current group down; 0100: the current group receiver.
The working principle of the invention is as follows:
under the condition that an IPL link between the main equipment and the standby equipment is normal, exchanging uplink group information through DRCP messages on the IPL link, and exchanging uplink group states through keep-alive, but not triggering election. And activating the capability of selecting a new main device according to the state of the uplink group after the IPL link fails, and exchanging the state of the uplink group only through keep alive at the moment without adding or deleting the maintained uplink group.
Step 1: and after the MLAG basic function is configured, the device performs role election and performs data synchronization after completing the role election.
Step 2: and starting to configure an uplink group and a corresponding BFD track, and informing the link state of an MLAG process by Bidirectional Forwarding Detection (BFD) to realize the rapid monitoring of the uplink.
Step 3: when the uplink group of the master device corresponds to bfd session up, the DRCP message includes GN and C fields, and the C field is set up, at this time, the uplink group status of the master device is set init.
Step 4: after receiving the DRCP message with the up field C, the standby device checks whether the uplink group exists locally and whether the corresponding operations are consistent. If the GN field is consistent with the local group status, the GN field is added into a keep-alive message, and C is the local group status.
Step 5: after receiving the keep-alive message of the standby equipment, the main equipment finds that GN and C are carried behind. If the master device has a corresponding GN and the corresponding bfd session state is up, the local uplink group state is up.
Through the interaction of the DRCP message and the keep-alive message, only the link which is configured correctly and is in a normal state during the creation is ensured to be added into the maintained list.
It can be seen from the above that, when the keep-alive messages are exchanged between the primary device and the standby device, the uplink group state information of the primary device and the standby device is added to the keep-alive messages, so that when the uplink group corresponding to the primary device fails, the role election capability is activated through the uplink group state of the primary device carried in the keep-alive messages, and thus a better-performance primary device can be selected to serve as a new primary device, and the new primary device can forward traffic.
Fig. 2 shows a schematic flow chart of a traffic forwarding method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
taking the MLAG networking in fig. 1 as an example, when the switch C on the terminal side normally transmits traffic to the external network side, the load of the traffic is shared by the primary device a and the backup device B. And the main equipment A and the standby equipment B exchange information through a keep-alive link and an IPL link. The main equipment A is first equipment; standby device B is the second device.
Step 201: the second device receives a first message sent by a first device of an opposite terminal, and obtains an uplink group state corresponding to the first device from the first message.
In a specific implementation process, when an uplink group of the first device fails, the first device sets a first uplink group state (C field) corresponding to a corresponding uplink group number in the first message to down, and sends the first message to the second device through a keep-alive link between the first device and the second device. And after receiving the first message, the second device analyzes the first message to obtain that the uplink group state of the first device in the first message is down, and then knows that the uplink group of the first device has a fault. It should be noted that, in addition to the uplink group status of the first device, other fields may be included in the first message, such as: the indication field if _ a, the uplink group number, etc., the number of uplink group numbers and corresponding first uplink group states are related to the number of uplink groups corresponding to the first device, and generally do not exceed 10. It is understood that the second device will also send a second message to the first device. It should also be noted that the time when the first device sends the message to the second device may be sent according to a preconfigured cycle, or when the first device knows that the corresponding uplink group has a failure, the first device will immediately send the first message to the second device regardless of whether the time for sending the message is reached.
Step 202: and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
In a specific implementation process, after the second device receives a first message sent by the first device, the uplink group state of the first device is judged and known to be a non-working state through the first message, and after the second device knows that an IPL link between the first device and the second device has a fault, the second device performs role election according to a pre-configured parameter for determining the priority of the device, and determines a new master device through the role election, so that traffic forwarding is performed through the master device. Assuming that the second device is determined as the new master device, the downlink interface of the second device is set to up, and at this time, the traffic may be forwarded through the second device and the corresponding uplink group. It should be noted that, under the condition that the IPL link is normal, the second device receives the transmission message, which is sent by the first device through the IPL link, according to the preset period, and therefore, if the second device does not receive the transmission message, which is sent by the first device through the IPL link, within the preset time, it may be determined that the IPL link is faulty. And the pre-configured parameter for determining the priority of the device is pre-configured or acquired when the first device and the second device establish negotiation. The pre-configured parameter for determining the device priority in the second device may be a second configuration priority of the second device, a first configuration priority corresponding to the first device, a first operation type, and the like.
It should be further noted that, if any uplink in the uplink group corresponding to the first device fails, the uplink group state of the first device is a non-operating state.
According to the embodiment of the invention, when the uplink group and the IPL link of the main equipment are in failure, the field of the uplink group state of the main equipment is added in the message sent to the standby equipment, the priority of the main equipment is reduced, and role selection is carried out to obtain the new main equipment so as to enable the new main equipment to carry out flow forwarding, so that the problem that the flow cannot be forwarded is avoided, and the reliability of networking is improved.
On the basis of the above embodiment, the role election by the second device according to the pre-configured parameter for determining the priority of the device includes:
the second equipment determines a first current priority of the first equipment and a second current priority of the second equipment according to a pre-configured parameter for determining the equipment priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
In a specific implementation process, when the second device performs role selection, the first current priority of the first device and the second current priority of the second device are determined according to the stored pre-configured parameter for determining the device priority. And then comparing the first current priority with the second current priority, wherein if the first current priority is higher than the second current priority, the first equipment is a new master equipment, and if the first current priority is lower than the second current priority, the second equipment is a new master equipment.
According to the embodiment of the invention, the first current priority and the second current priority are calculated, the device with the high priority is used as a new main device, after the uplink group of the original main device fails, role election is triggered, and the device with relatively good performance is selected as the main device, so that the optimal device is always selected for traffic forwarding, and the success rate of traffic forwarding is improved.
On the basis of the above embodiment, the method further includes:
before the IPL link fails, the second device receives a first configuration priority and a first operation type through the IPL link.
In a specific implementation process, before the IPL link fails, the first device and the second device perform mutual transmission of DRCP messages through the IPL link according to a preset period, and after receiving the DRCP message sent by the first device through the IPL link, the second device obtains a first configuration priority and a first operation type of the first device from the DRCP message. At this time, the second device may calculate a first current priority corresponding to the first device according to the first configuration priority and the first operation type.
On the basis of the above embodiment, the method further includes:
the second equipment receives Bidirectional Forwarding Detection (BFD) messages sent by the uplink equipment;
the second device determines an uplink group status of the second device from the BFD message.
In a specific implementation process, the second device is in communication connection with the uplink device through a corresponding uplink group, and the uplink device sends a BFD message to the second device, where the BFD message includes information of an uplink group status. When the uplink group corresponding to the second device fails, the uplink device corresponding to the second device sends a BFD message to the second device, where the BFD message includes information of the failure of the uplink group, and the second device can know that the uplink group has failed after receiving the BFD message.
Similarly, a BFD mechanism also exists between the first device and its corresponding uplink device, and the first device receives BFD messages sent by the corresponding uplink device and learns the corresponding uplink group state through the BFD messages.
According to the embodiment of the invention, the second equipment is made to know the state of the uplink group corresponding to the second equipment through a BFD mechanism, and a basis is provided for the subsequent second equipment to calculate the second current priority corresponding to the second equipment.
On the basis of the above embodiment, the method further includes:
and the second equipment sends a second message comprising the uplink group state of the second equipment to the first equipment so that the first equipment calculates the current priority of the second equipment according to the uplink group state of the second equipment.
In a specific implementation process, when election is triggered, not only the standby device performs role election, but also the main device performs role election. Therefore, the second device, as a standby device, may not only receive the first packet sent by the first device, but also send a second packet to the first device, where the second packet includes the uplink group status of the second device, so that the first device may also know the current uplink group status of the second device, and calculate the current priority of the second device according to the uplink group status of the second device, which is further used for role selection.
On the basis of the above embodiment, the method further includes:
and if the uplink group of the main equipment is recovered to be in a working state and the IPL link is still in failure, the second equipment performs role election and re-determines new main equipment.
In a specific implementation process, if the uplink group of the first device is recovered to be normal, the first device recalculates the corresponding current priority, and the first device sends a first message to the second device, at this time, the state of the first uplink group in the first message is a working state, that is, the C field in the first message is up, when the second device receives the first message sent by the first device, it is known that the uplink group corresponding to the first device has been recovered to be normal, but the second device does not receive a DRCP message within a timeout period, the second device knows that the IPL link is still in failure, at this time, the role election is started again, when the role election is performed, the second device recalculates the second current priority of the second device and the first current priority corresponding to the first device, and then compares the calculated second current priority of the second device with the first current priority of the first device, and the equipment with high priority is used as the new master equipment again.
In addition, after the new master device performs traffic forwarding, the first uplink group corresponding to the first device is still in a non-working state, but the IPL link is recovered to be normal, and at this time, role election is not triggered, and traffic forwarding is still performed through the new master device.
In the embodiment of the invention, when the uplink group of the first device recovers the working state and the IPL link still fails, the role election is started again, so that on one hand, only one main device and one standby device are ensured, and on the other hand, the device with the optimal service performance can be ensured to be used as the main device for carrying out flow forwarding.
On the basis of the foregoing embodiment, determining, by the second device, the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining a device priority includes:
the second equipment calculates the first current priority according to the first configuration priority and the first operation type corresponding to the first equipment; for example: the first operation type is to lower the priority by 20, and when the first device fails, if the first configuration priority is 100, the second device calculates to obtain the first current priority as 80.
If the uplink group state of the second device is the working state, the second device determines that a second configuration priority corresponding to the second device is a second current priority; it should be noted that the second device may also calculate the second current priority based on the second configured priority and the second operation type of the second device.
And if the uplink group state of the second equipment is the non-working state, the second equipment calculates a second current priority according to a second configuration priority corresponding to the second equipment and a second operation type. It should be noted that the process of the second device calculating the second current priority according to the second configuration priority and the second operation type is consistent with the process of calculating the first current priority, and is not described herein again.
On the basis of the above embodiment, the first packet is a keep-alive packet, and the first packet further includes a prompt field, that is, an if _ a field, and when the if _ a field is set, the prompt field is used to prompt the second device whether to acquire the uplink group state of the first device in the first packet. This is because the first and second device exchange the first and second keep-alive messages more frequently, so to improve efficiency, the second device first determines whether the prompt field in the first message is set, and when the if _ a field in the first keep-alive message is not set, the second device does not need to read the information after the if _ a field in the first keep-alive message, and conversely, when the if _ a field is set, the second device needs to read the information after the if _ a field in the first keep-alive message, that is, the uplink group number and state corresponding to the first device. It can be understood that the if _ a field is also carried in the second keep-alive packet sent by the second device to the first device.
The embodiment of the invention informs the second equipment whether the second equipment needs to acquire the field information behind the prompt field in the first keep-alive message or not through the prompt field, thereby greatly improving the capability of the second equipment for processing the first keep-alive message.
When a first device is a standby device and a second device is a main device, an embodiment of the present invention provides another traffic forwarding method, including:
the method comprises the steps that a second device receives a first message sent by a first device of an opposite end, and obtains an uplink group state corresponding to the first device from the first message; and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
In a specific implementation process, the second device may also receive a first message sent by the first device of the opposite end while sending the second message to the first device, where it should be noted that the first device may send the first message according to a predetermined period, or the first device may send the first message immediately after receiving the second message of the uplink group failure sent by the second device. The first message sent by the first device includes the uplink group status corresponding to the first device, because the uplink group corresponding to the first device may fail regardless of the primary device and the standby device, and when performing role selection in the subsequent process, the optimal device needs to be selected as the primary device according to the current status of each device.
If the uplink group state of the second device is a non-working state, it indicates that the uplink group of the master device has a failure, and at this time, if the IPL link between the first device and the second device also has a failure, the second device performs role election according to the pre-configured parameter for determining the device priority, so as to re-determine a new master device from the first device and the second device, and perform traffic forwarding through the new master device.
According to the traffic forwarding method provided by the embodiment of the invention, when the uplink group and the IPL link of the main equipment are in failure, the field of the uplink group state of the main equipment is added in the message sent to the standby equipment, the priority of the main equipment is reduced, and role election is carried out to obtain new main equipment so as to enable the new main equipment to carry out traffic forwarding, so that the problem that traffic cannot be forwarded is avoided, and the networking reliability is improved.
On the basis of the above embodiment, the role election by the second device according to the pre-configured parameter for determining the priority of the device includes:
the second equipment determines a first current priority of the first equipment and a second current priority of the second equipment according to a pre-configured parameter for determining the equipment priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
In a specific implementation process, when both the uplink group and the IPL link of the master device fail, role election also needs to be performed on the master device side, specifically: and the second equipment determines the first current priority of the first equipment and the second current priority of the second equipment according to the pre-configured parameter for determining the equipment priority. The purpose of determining the first current priority of the first device is to know the current performance of the standby device, and the purpose of determining the second current priority of the second device is to know the current performance of the main device.
And then comparing the first current priority with the second current priority, and if the first current priority is higher than the second current priority, taking the first equipment as the master equipment, otherwise, taking the second equipment as the master equipment. It should be understood that the uplink group of the standby device may also fail, and therefore the second device needs to calculate the first current priority corresponding to the first device, and it may happen that the first current priority corresponding to the first device is lower than the second current priority of the second device, so after the role election, the second device is still the master device.
According to the embodiment of the invention, the first current priority and the second current priority are calculated through the main equipment side, and then the equipment with high priority is determined as the new main equipment, so that the equipment with better service performance can be ensured to carry out flow forwarding.
On the basis of the above embodiment, the method further includes:
before the IPL link fails, the second device receives a first configuration priority and a first operation type through the IPL link.
In a specific implementation process, when the second device calculates the first current priority of the first device, the second device may perform calculation according to the first configuration priority of the first device and the first operation type. Wherein the first configuration priority and the first operation type may be obtained by the second device over the IPL link prior to the IPL link failure. It should be noted that, under the condition that the IPL link is normal, the first device and the second device may send a DRCP message to each other through the IPL link according to a predetermined period, where the DRCP message sent by the first device includes a first configuration priority and a first operation type, and the DRCP message sent by the second device includes a second configuration priority and a second operation type.
On the basis of the above embodiment, the method further includes:
the second equipment receives Bidirectional Forwarding Detection (BFD) messages sent by the uplink equipment; the second device determines an uplink group status of the second device from the BFD message.
In a specific implementation process, the second device of the second device is in communication connection with the uplink device through a corresponding uplink group, and the uplink device sends a BFD message to the second device, where the BFD message includes information of an uplink group status. When the uplink group corresponding to the second device fails, the uplink device corresponding to the second device sends a BFD message to the second device, where the BFD message includes information of the failure of the uplink group, and the second device can know that the uplink group has failed after receiving the BFD message.
Similarly, a BFD mechanism also exists between the first device and its corresponding uplink device, and the first device receives BFD messages sent by the corresponding uplink device and learns the corresponding uplink group state through the BFD messages.
According to the embodiment of the invention, the second equipment is made to know the state of the uplink group corresponding to the second equipment through a BFD mechanism, and a basis is provided for the subsequent second equipment to calculate the second current priority corresponding to the second equipment.
On the basis of the above embodiment, the method further includes:
and the second equipment sends a second message comprising the uplink group state of the second equipment to the first equipment so that the first equipment calculates the current priority of the second equipment according to the uplink group state of the second equipment.
In a specific implementation process, when election is triggered, not only role election is performed by the main device, but also role election is performed by the standby device. Therefore, the second device, as a master device, may not only receive the first packet sent by the first device, but also send a second packet to the first device, where the second packet includes the uplink group status of the second device, so that the first device may also know the current uplink group status of the second device, and calculate the current priority of the second device according to the uplink group status of the second device, which is further used for role selection.
On the basis of the above embodiment, the method further includes:
and if the uplink group of the main equipment is recovered to be in a working state and the IPL link is still in failure, the second equipment performs role election and re-determines new main equipment.
In a specific implementation process, if the uplink group of the second device returns to normal, the second device recalculates the corresponding current priority, and the second device sends the second message to the first device, where the state of the second uplink group in the second message is a working state, that is, the C field in the second message is up. But the second device does not receive the DRCP message within the timeout period, the second device knows that the IPL link is still in failure, and then starts role election again, and during the role election, the second device calculates the second current priority of the second device and the first current priority corresponding to the first device again, and then compares the second current priority of the second device with the first current priority of the first device according to the calculated second current priority of the second device, and re-uses the device with high priority as a new master device.
In addition, after the new master device performs traffic forwarding, the second uplink group corresponding to the second device is still in a non-working state, but the IPL link is recovered to be normal, and at this time, role election is not triggered, and traffic forwarding is still performed through the new master device.
In the embodiment of the invention, when the uplink group of the second device recovers the working state and the IPL link still fails, the role election is triggered again, so that on one hand, only one main device and one standby device are ensured, and on the other hand, the device with the optimal service performance can be ensured to be used as the main device for carrying out flow forwarding.
On the basis of the foregoing embodiment, determining, by the second device, the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining a device priority includes:
the second equipment calculates the second current priority according to a second configuration priority corresponding to the second equipment and a second operation type; for example: the second operation type is to lower the priority by 20, and when the second device fails, if the second configuration priority is 100, the second device calculates to obtain a second current priority of 80.
If the uplink group state of the first device is a working state, the second device determines that a first configuration priority corresponding to the first device is a first current priority; it should be noted that the second device may also calculate the first current priority based on the first configuration priority and the first operation type of the first device.
And if the uplink group state of the first equipment is in a non-working state, the second equipment calculates a first current priority according to a first configuration priority corresponding to the first equipment and the first operation type. It should be noted that the process of calculating the first current priority by the second device according to the first configuration priority and the first operation type is consistent with the process of calculating the second current priority, and details are not repeated here.
On the basis of the above embodiment, the method further includes:
if the uplink group state of the second device is a non-working state, the second device generates a third message, wherein the third message comprises a prompt field, and the prompt field is set, so that the first device acquires the uplink group state of the second device from the third message after determining that the prompt field is set.
On the basis of the foregoing embodiment, when the uplink group corresponding to the second device fails, the second device generates a third packet, where the third packet may be a keep-alive packet, and the third packet further includes a prompt field, that is, an if _ a field, and when the if _ a field is set, the third packet is used to prompt the first device whether to acquire the uplink group state of the second device in the third packet. This is because messages are exchanged more frequently between the first device and the second device, and therefore, in order to improve efficiency, the first device needs to determine whether a prompt field in the third message is set, and when an if _ a field in the third message is not set, the first device does not need to read information after the if _ a field in the third message, and conversely, when the if _ a field is set, the first device needs to read information after the if _ a field in the third message, that is, the uplink group number and the state corresponding to the second device. It can be understood that the if _ a field is also carried in the first packet sent by the first device to the second device.
The embodiment of the invention informs the first equipment whether the field information behind the prompt field in the third message needs to be acquired or not through the prompt field, thereby greatly improving the capability of the first equipment for processing the third message.
Fig. 3 is a schematic structural diagram of a traffic forwarding device according to an embodiment of the present invention, and as shown in fig. 3, the device includes: a first receiving module 301 and an election module 302, wherein,
a first receiving module 301 is configured to receive a first packet sent by a first device of an opposite end, and obtain an uplink group state corresponding to the first device from the first packet, where one of the first device and the second device is a primary device, and the other is a standby device; the election module 302 is configured to perform role election according to a pre-configured parameter for determining a device priority and determine a new master device if the uplink group state of the master device is a non-operating state and the IPL link between the first device and the second device fails, so that the new master device performs traffic forwarding.
On the basis of the foregoing embodiment, the election module is specifically configured to:
determining a first current priority of the first device and a second current priority of the second device according to a pre-configured parameter for determining the device priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
On the basis of the above embodiment, the apparatus further includes:
a second receiving module, configured to receive the first configuration priority and the first operation type through the IPL link before the IPL link fails.
On the basis of the above embodiment, the apparatus further includes:
the third receiving module is used for receiving the Bidirectional Forwarding Detection (BFD) message sent by the uplink equipment;
a first determining module to determine an uplink group status of the second device from the BFD message.
On the basis of the above embodiment, the apparatus further includes:
a sending module, configured to send a second packet including an uplink group status of the second device to the first device, so that the first device calculates a current priority of the second device according to the uplink group status of the second device.
On the basis of the above embodiment, the apparatus further includes:
and the second election module is used for performing role election and re-determining a new main device if the uplink group of the main device is recovered to be in a working state and the IPL link still fails.
On the basis of the foregoing embodiment, if the second device is elected to be a new master device, the apparatus further includes:
and the forwarding module is used for continuing to forward the flow if the IPL link is recovered and the uplink group of the main equipment is in a non-working state.
On the basis of the above embodiment, the second device is a standby device, and the election module is specifically configured to:
calculating the first current priority according to a first configuration priority and a first operation type corresponding to the first equipment;
if the uplink group state of the second device is a working state, determining that a second configuration priority corresponding to the second device is the second current priority;
and if the uplink group state of the second equipment is a non-working state, calculating the second current priority according to a second configuration priority and a second operation type corresponding to the second equipment.
On the basis of the above embodiment, the second device is a master device, and the election module is specifically configured to:
calculating the second current priority according to a second configuration priority corresponding to the second device and the second operation type;
if the uplink group state of the first device is a working state, determining that a first configuration priority corresponding to the first device is the first current priority;
and if the uplink group state of the first equipment is a non-working state, calculating the first current priority according to a first configuration priority and a first operation type corresponding to the first equipment.
On the basis of the above embodiment, the second device is a standby device, the first message is a keep-alive message, and the first message further includes a prompt field; the prompt field is used for prompting whether the second device needs to acquire the uplink group state of the first device in the first message;
the device, still include:
and the second determining module is used for determining the setting of the prompt field in the first message.
On the basis of the above embodiment, the second device is a master device, and the apparatus further includes:
a message generating module, configured to generate, by the second device, a third message if the uplink group status of the second device is in a non-working state, where the third message includes a prompt field, and the prompt field is set, so that the first device obtains the uplink group status of the second device from the third message after determining that the prompt field is set.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
In summary, in the traffic forwarding method according to the embodiment of the present invention, when the uplink group and the IPL link of the primary device are failed, the field of the uplink group state of the primary device is added to the message sent to the standby device, the priority of the primary device is reduced, and role selection is performed to obtain a new primary device, so that the new primary device performs traffic forwarding, thereby avoiding a problem that traffic cannot be forwarded, and improving reliability of networking.
Fig. 4 is a schematic structural diagram of an entity of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: a second device receives a first message sent by a first device of an opposite terminal, and acquires an uplink group state corresponding to the first device from the first message, wherein one of the first device and the second device is a main device, and the other device is a standby device; and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: a second device receives a first message sent by a first device of an opposite terminal, and acquires an uplink group state corresponding to the first device from the first message, wherein one of the first device and the second device is a main device, and the other device is a standby device; and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: a second device receives a first message sent by a first device of an opposite terminal, and acquires an uplink group state corresponding to the first device from the first message, wherein one of the first device and the second device is a main device, and the other device is a standby device; and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (14)

1. A traffic forwarding method, comprising:
a second device receives a first message sent by a first device of an opposite terminal, and acquires an uplink group state corresponding to the first device from the first message, wherein one of the first device and the second device is a main device, and the other device is a standby device;
and if the uplink group state of the main equipment is a non-working state and the IPL link between the first equipment and the second equipment fails, the second equipment performs role election according to a pre-configured parameter for determining the priority of the equipment, and determines new main equipment so as to enable the new main equipment to perform traffic forwarding.
2. The method of claim 1, wherein the second device elects a role according to a pre-configured parameter for determining device priority, comprising:
the second equipment determines a first current priority of the first equipment and a second current priority of the second equipment according to a pre-configured parameter for determining the equipment priority;
and determining the device corresponding to the larger one of the first current priority and the second current priority as the new master device.
3. The method of claim 2, further comprising:
before the IPL link fails, the second device receives a first configuration priority and a first operation type through the IPL link.
4. The method of claim 1, further comprising:
the second equipment receives Bidirectional Forwarding Detection (BFD) messages sent by the uplink equipment;
the second device determines an uplink group status of the second device from the BFD message.
5. The method of claim 4, further comprising:
and the second equipment sends a second message comprising the uplink group state of the second equipment to the first equipment so that the first equipment calculates the current priority of the second equipment according to the uplink group state of the second equipment.
6. The method of claim 1, further comprising:
and if the uplink group of the main equipment is recovered to be in a working state and the IPL link is still in failure, the second equipment performs role election and re-determines new main equipment.
7. The method of claim 1, wherein if the second device is elected to be a new master device, the method further comprises:
and if the IPL link is recovered and the uplink group of the main equipment is in a non-working state, the second equipment continues to forward the flow.
8. The method of claim 2, wherein the second device is a standby device, and the second device determines the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining device priorities, comprising:
the second equipment calculates the first current priority according to the first configuration priority and the first operation type corresponding to the first equipment;
if the uplink group state of the second device is a working state, the second device determines that a second configuration priority corresponding to the second device is the second current priority;
and if the uplink group state of the second equipment is a non-working state, the second equipment calculates the second current priority according to a second configuration priority and a second operation type corresponding to the second equipment.
9. The method according to claim 2, wherein the second device is a master device, and the second device determines the first current priority of the first device and the second current priority of the second device according to a pre-configured parameter for determining device priority, including:
the second equipment calculates the second current priority according to a second configuration priority and a second operation type corresponding to the second equipment;
if the uplink group state of the first device is a working state, the second device determines that a first configuration priority corresponding to the first device is the first current priority;
and if the uplink group state of the first equipment is a non-working state, the second equipment calculates the first current priority according to a first configuration priority corresponding to the first equipment and a first operation type.
10. The method of claim 1, wherein the second device is a standby device, the first packet is a keep-alive packet, and the first packet further comprises a prompt field; the prompt field is used for prompting whether the second device needs to acquire the uplink group state of the first device in the first message;
after the second device receives the first packet sent by the first device of the opposite end, and before the uplink group state corresponding to the first device is acquired from the first packet, the method further includes:
and the second equipment determines that the prompt field in the first message is set.
11. The method of claim 1, wherein the second device is a master device, the method further comprising:
if the uplink group state of the second device is a non-working state, the second device generates a third message, wherein the third message comprises a prompt field, and the prompt field is set, so that the first device acquires the uplink group state of the second device from the third message after determining that the prompt field is set.
12. A traffic forwarding apparatus, comprising:
a first receiving module, configured to receive a first packet sent by a first device of an opposite end, and obtain an uplink group state corresponding to the first device from the first packet, where one of the first device and a second device is a primary device, and the other is a standby device;
and the election module is used for performing role election according to a pre-configured parameter for determining the priority of the device and determining a new main device so as to enable the new main device to perform traffic forwarding if the uplink group state of the main device is a non-working state and the IPL link between the first device and the second device fails.
13. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-11.
14. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-11.
CN201811153768.7A 2018-09-29 2018-09-29 Flow forwarding method and equipment Active CN109194521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811153768.7A CN109194521B (en) 2018-09-29 2018-09-29 Flow forwarding method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811153768.7A CN109194521B (en) 2018-09-29 2018-09-29 Flow forwarding method and equipment

Publications (2)

Publication Number Publication Date
CN109194521A true CN109194521A (en) 2019-01-11
CN109194521B CN109194521B (en) 2021-12-07

Family

ID=64907882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811153768.7A Active CN109194521B (en) 2018-09-29 2018-09-29 Flow forwarding method and equipment

Country Status (1)

Country Link
CN (1) CN109194521B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111030877A (en) * 2019-12-26 2020-04-17 杭州迪普科技股份有限公司 Main/standby equipment switching method and device
CN111953591A (en) * 2020-07-17 2020-11-17 新华三技术有限公司 Fault processing method and device
CN113300981A (en) * 2020-02-21 2021-08-24 华为技术有限公司 Message transmission method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1934561A (en) * 2004-02-12 2007-03-21 城域信息包系统公司 Restoration mechanism for network topologies
US20110173429A1 (en) * 2002-06-27 2011-07-14 Hollis William K Method and apparatus to minimize computer apparatus initial program load and exit/shut down processing
CN103259685A (en) * 2013-05-24 2013-08-21 杭州华三通信技术有限公司 Method for detecting link failures and network equipment
CN104125088A (en) * 2013-04-28 2014-10-29 中兴通讯股份有限公司 Method of interaction information between systems in same terminal of DRNI and system thereof
CN105515807A (en) * 2014-09-25 2016-04-20 中兴通讯股份有限公司 Up cfm message processing method and system and network data exchange device
CN106878164A (en) * 2016-12-13 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173429A1 (en) * 2002-06-27 2011-07-14 Hollis William K Method and apparatus to minimize computer apparatus initial program load and exit/shut down processing
CN1934561A (en) * 2004-02-12 2007-03-21 城域信息包系统公司 Restoration mechanism for network topologies
CN104125088A (en) * 2013-04-28 2014-10-29 中兴通讯股份有限公司 Method of interaction information between systems in same terminal of DRNI and system thereof
CN103259685A (en) * 2013-05-24 2013-08-21 杭州华三通信技术有限公司 Method for detecting link failures and network equipment
CN105515807A (en) * 2014-09-25 2016-04-20 中兴通讯股份有限公司 Up cfm message processing method and system and network data exchange device
CN106878164A (en) * 2016-12-13 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111030877A (en) * 2019-12-26 2020-04-17 杭州迪普科技股份有限公司 Main/standby equipment switching method and device
CN113300981A (en) * 2020-02-21 2021-08-24 华为技术有限公司 Message transmission method, device and system
WO2021164259A1 (en) * 2020-02-21 2021-08-26 华为技术有限公司 Packet transmission method, apparatus, and system
US11582113B2 (en) 2020-02-21 2023-02-14 Huawei Technologies Co., Ltd. Packet transmission method, apparatus, and system utilizing keepalive packets between forwarding devices
CN111953591A (en) * 2020-07-17 2020-11-17 新华三技术有限公司 Fault processing method and device

Also Published As

Publication number Publication date
CN109194521B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN109194521B (en) Flow forwarding method and equipment
CN111447101B (en) Link detection method, device, computer equipment and storage medium
CN111147352A (en) Distributed data synchronization method
CN109921942B (en) Cloud platform switching control method, device and system and electronic equipment
US10135939B2 (en) Method and apparatus for sending delivery notification of network application-related product
CN112075102A (en) Low-power Bluetooth networking method, electronic equipment, network and storage medium
CN105763448B (en) A kind of message transmitting method and device
CN109787797B (en) Link fault detection method, device and system
US7869350B1 (en) Method and apparatus for determining a data communication network repair strategy
JP5802829B2 (en) Method, node, and system for determining fault indication state
CN103636168A (en) Failure recovery method, node, and path computing unit
CN111901181A (en) Processing method for error rate detection and related equipment
CN103229458A (en) Residual information processing method and device
CN112422428B (en) Link state acquisition method and device, electronic equipment and readable storage medium
CN110740094B (en) Network equipment, BFD message transmission method and device
CN112367179B (en) Link switching method and device
CN105721395A (en) Data synchronization configuration method, apparatus and system
CN111224803B (en) Multi-master detection method in stacking system and stacking system
CN112583650B (en) SR-BE tunnel link detection method and system in SPN
CN109634787B (en) Distributed file system monitor switching method, device, equipment and storage medium
CN103684887B (en) A kind of method and apparatus connecting the generation of error detection group network system hardware table item
CN113098709A (en) Network recovery method and device based on distributed networking system and computer equipment
CN107872824B (en) Wireless service processing method, device, equipment and storage medium
CN112187408A (en) Data processing method, system, device, storage medium and processor

Legal Events

Date Code Title Description
PB01 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