CN110601972A - Message transmission method and device and intelligent elastic architecture system - Google Patents

Message transmission method and device and intelligent elastic architecture system Download PDF

Info

Publication number
CN110601972A
CN110601972A CN201910881407.2A CN201910881407A CN110601972A CN 110601972 A CN110601972 A CN 110601972A CN 201910881407 A CN201910881407 A CN 201910881407A CN 110601972 A CN110601972 A CN 110601972A
Authority
CN
China
Prior art keywords
channel
message
virtual service
service router
detection
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.)
Pending
Application number
CN201910881407.2A
Other languages
Chinese (zh)
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 Security Technologies Co Ltd
Original Assignee
New H3C Security 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 Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201910881407.2A priority Critical patent/CN110601972A/en
Publication of CN110601972A publication Critical patent/CN110601972A/en
Pending legal-status Critical Current

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/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Abstract

The present disclosure provides a message transmission method, a device and an intelligent resilient framework system, wherein the method is executed by a first virtual service router device in the intelligent resilient framework system, and includes: sending a detection message and a service message to second virtual service router equipment in the intelligent elastic architecture system through a first channel, wherein the detection message is used for detecting whether the first channel has a fault; judging whether a confirmation message fed back by the second virtual service router equipment through the first channel is received within a preset time period, wherein the confirmation message is a message generated by the second virtual service router equipment according to the detection message; when a confirmation message fed back by the second virtual service router equipment through the first channel is not received within a preset time period, determining that the first channel fails; and sending the service message to the second virtual service router equipment through the second channel. The fault detection of the stacked link is realized, the interruption of the service flow is avoided, and the normal transmission of the service flow is ensured.

Description

Message transmission method and device and intelligent elastic architecture system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for packet transmission and an intelligent resilient framework system.
Background
An Intelligent Resilient Framework (IRF) is a software virtualization technology, and the core idea is to connect multiple devices together and virtualize the devices into one device after configuration. Hardware resources and software processing capacity of a plurality of devices can be integrated through an IRF technology, and cooperative work, unified management and uninterrupted maintenance of the plurality of devices are achieved.
In the prior art, a plurality of Virtual Service Routers (VSRs) are created on a server in an IRF system, a Virtual machine network card (VF) is obtained by virtualizing a Physical network card (PF) in the server, and a stacking channel is established through the VF, so that interaction of stacking protocol messages is performed between different VSR devices through the stacking channel, and a stacking system of the VSR devices is implemented.
However, in the prior art, when a failure occurs in a stack channel, controllers in each VSR device and the IRF system cannot sense the failure of the stack channel, and when traffic needs to be forwarded across the VSR devices, service traffic is interrupted.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a message transmission method and apparatus, and an intelligent resilient framework system, so as to overcome the problem in the prior art that when a failure occurs in a stacking channel, service traffic cannot be forwarded across VSR devices, which results in service traffic interruption.
According to a first aspect, an embodiment of the present disclosure provides a packet transmission method, where the method is performed by a first virtual service router device in an intelligent resilient architecture system, and the method includes: sending a detection message and a service message to second virtual service router equipment in the intelligent elastic architecture system through a first channel, wherein the detection message is used for detecting whether the first channel has a fault; judging whether a confirmation message fed back by the second virtual service router equipment through the first channel is received within a preset time period, wherein the confirmation message is a message generated by the second virtual service router equipment according to the detection message; when a confirmation message fed back by the second virtual service router equipment through the first channel is not received within a preset time period, determining that the first channel fails; and sending a service message to the second virtual service router equipment through a second channel.
Optionally, the packet transmission method further includes: sending a detection message to the second virtual service router equipment through the first channel at intervals of a first time interval; judging whether a confirmation message which is generated by the second virtual service router device based on the detection message and fed back through the first channel is received; and when receiving the confirmation message fed back by the second virtual service router device through the first channel, determining that the first channel is recovered due to the fault.
Optionally, the first channel includes a first protocol channel and a first data channel, where the first protocol channel is used to transmit the detection packet and the acknowledgement packet, and the first data channel is used to transmit the service packet; the second channel includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet.
According to a second aspect, an embodiment of the present disclosure provides a packet transmission method, where the method is performed by a second virtual service router device in an intelligent resilient architecture system, and the method includes: receiving a detection message and a service message sent by first virtual service router equipment in the intelligent elastic architecture system through a first channel, wherein the detection message is used for detecting whether the first channel has a fault; if the detection message is received, generating a confirmation message according to the detection message, and sending the confirmation message to the first virtual service router equipment through the first channel; if the detection message is not received, receiving a service message sent by the first virtual service router device through a second channel, wherein the service message is sent through the second channel after determining that the first channel fails when the first virtual service router device does not receive a confirmation message fed back by the second virtual service router device through the first channel within a preset time period.
Optionally, the packet transmission method further includes: if a detection message sent to the second virtual service router equipment by the first virtual service router equipment through the first channel every other first time interval is received through the first channel; generating a confirmation message according to the detection message, and sending the confirmation message to the first virtual service router device through the first channel, so that the first virtual service router device determines that the first channel is recovered when receiving the confirmation message through the first channel.
Optionally, the first channel includes a first protocol channel and a first data channel, where the first protocol channel is used to transmit the detection packet and the acknowledgement packet, and the first data channel is used to transmit the service packet; the second channel includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet.
According to a third aspect, an embodiment of the present disclosure provides a packet transmission apparatus, where the apparatus is applied to a first virtual service router device in an intelligent resilient framework system, and the apparatus includes: a first sending module, configured to send a detection packet and a service packet to a second virtual service router device in the intelligent resilient framework system through a first channel, where the detection packet is used to detect whether the first channel fails; a first processing module, configured to determine whether a confirmation packet fed back by the second virtual service router device through the first channel is received within a preset time period, where the confirmation packet is a packet generated by the second virtual service router device according to the detection packet; the second processing module is used for determining that the first channel fails when a confirmation message fed back by the second virtual service router device through the first channel is not received within a preset time period; and the second sending module is used for sending the service message to the second virtual service router equipment through a second channel.
Optionally, the message transmission apparatus further includes: a third sending module, configured to send a detection packet to the second virtual service router device through the first channel at intervals of a first time interval; a fourth processing module, configured to determine whether a confirmation packet generated by the second virtual service router device based on the detection packet and fed back through the first channel is received; and a fifth processing module, configured to determine that the first channel fails to recover when receiving the acknowledgement packet fed back by the second virtual service router device through the first channel.
Optionally, the first channel includes a first protocol channel and a first data channel, where the first protocol channel is used to transmit the detection packet and the acknowledgement packet, and the first data channel is used to transmit the service packet; the second channel includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet.
According to a fourth aspect, an embodiment of the present disclosure provides a packet transmission apparatus, where the apparatus is applied to a second virtual service router device in an intelligent resilient framework system, and the apparatus includes: a first receiving module, configured to receive, through a first channel, a detection packet and a service packet sent by a first virtual service router device in the intelligent resilient framework system, where the detection packet is used to detect whether the first channel fails; a third processing module, configured to generate a confirmation message according to the detection message if the detection message is received, and send the confirmation message to the first virtual service router device through the first channel; and if the detection message is not received, the second receiving module is configured to receive, through a second channel, a service message sent by the first virtual service router device, where the service message is sent after determining that the first channel has a fault when the first virtual service router device does not receive an acknowledgement message fed back by the second virtual service router device through the first channel within a preset time period.
Optionally, the message transmission apparatus further includes: a third receiving module, configured to receive, through the first channel, a detection packet sent by the first virtual service router device to the second virtual service router device through the first channel at intervals of a first time interval; a sixth processing module, configured to generate a confirmation packet according to the detection packet, and send the confirmation packet to the first virtual service router device through the first channel, so that when the first virtual service router device receives the confirmation packet through the first channel, it is determined that the first channel is recovered from the failure.
Optionally, the first channel includes a first protocol channel and a first data channel, where the first protocol channel is used to transmit the detection packet and the acknowledgement packet, and the first data channel is used to transmit the service packet; the second channel includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet.
According to a fifth aspect, an embodiment of the present disclosure provides an intelligent resilient architecture system, including: the system comprises a first virtual service router device and at least one second virtual service router device, wherein the first virtual service router device sends a detection message to the second virtual service router device in the intelligent elastic architecture system through a first channel, and the detection message is used for detecting whether the first channel fails; the second virtual service router equipment receives a detection message sent by first virtual service router equipment in the intelligent elastic framework system through a first channel, generates a confirmation message according to the detection message, and sends the confirmation message to the first virtual service router equipment through the first channel; the first virtual service router equipment judges whether a confirmation message fed back by the second virtual service router equipment through the first channel is received or not within a preset time period; when the first virtual service router does not receive a confirmation message fed back by the second virtual service router equipment through the first channel within a preset time period, determining that the first channel has a fault; the first virtual service router sends a service message to the second virtual service router device through a second channel; and the second virtual service router receives a service message sent by the first virtual service router through a second channel.
According to a sixth aspect, an embodiment of the present disclosure provides a virtual service router device, where the device includes a processor and a memory, where the memory stores at least one instruction or program, and the instruction or program is loaded and executed by the processor to implement the packet transmission method in the first aspect and any one of the optional implementations thereof, or the instruction or program is loaded and executed by the processor to implement the packet transmission method in the second aspect and any one of the optional implementations thereof.
According to a seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where at least one instruction is stored in the storage medium, where the instruction is loaded and executed by a processor to implement the message transmission method described in the first aspect and any one of the optional implementations thereof, or to implement the message transmission method described in the second aspect and any one of the optional implementations thereof.
The technical scheme disclosed has the following advantages:
1. the message transmission method provided by the embodiment of the present disclosure is executed by a first virtual service router device in an intelligent resilient framework system, and determines that a first channel fails when a detection message and a service message are sent to a second virtual service router device in the intelligent resilient framework system and it is determined that an acknowledgement message fed back by the second virtual service router device is not received within a preset time period, and sends the service message to the second virtual service router device through a second channel, so that when the first channel fails, failure detection of a stacked link is implemented, and the service message is sent through the second channel, thereby avoiding interruption of service traffic and ensuring normal transmission of service traffic.
2. The message transmission method provided by the embodiment of the disclosure is executed by a second virtual service router device in an intelligent elastic framework system, receives a detection message and a service message sent by a first virtual service router device in the intelligent elastic framework system through a first channel, generates a confirmation message according to the detection message, and sends the confirmation message to the first virtual service router device through the first channel, after the first channel fails, the second virtual service router cannot feed back the confirmation message, and receives the service message sent by the first virtual service router device through a second channel, so that when the first channel fails, fault detection of a stacked link is realized, and the service message is received through the second channel, thereby avoiding interruption of service traffic and ensuring normal transmission of service traffic.
3. The intelligent elastic architecture system provided by the embodiment of the disclosure comprises: the first virtual service router device sends a detection message to the second virtual service router device through a first channel, the second virtual service router device generates a confirmation message according to the detection message and sends the confirmation message to the first virtual service router device through the first channel, and if the first virtual service router device judges that the confirmation message is not received within a preset time period, the first channel is determined to be in fault, and a service message is sent to the second virtual service router device through the second channel. Therefore, when the first channel fails, the fault detection of the stacked link is realized, the forwarding of the service message is completed through the second channel, the interruption of service flow is avoided, and the normal transmission of the service flow is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a prior art intelligent resilient framework system;
fig. 2 is a schematic structural diagram of an intelligent resilient framework system according to an embodiment of the present disclosure;
fig. 2A is a schematic diagram of a message transmission interaction provided in the embodiment of the present disclosure;
fig. 2B is another schematic diagram of a message transmission interaction provided in the embodiment of the present disclosure;
fig. 3 is a flowchart of a message transmission method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another message transmission method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another message transmission apparatus according to the embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a virtual service router device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Technical features mentioned in the different embodiments of the present disclosure described below may be combined with each other as long as they do not conflict with each other.
It should be noted that, in all embodiments provided in the present disclosure, the first VSR device refers to a first virtual service router device, and the second VSR device refers to a second virtual service router device, where the first and second VSR devices are used for illustration only and do not represent importance, and in practical applications, the first VSR device and the second VSR device may be interchanged.
Fig. 1 shows an architecture diagram of a prior art IRF system. As shown in fig. 1, a plurality of VSR devices (a first VSR device 110 and a second VSR device 120 are exemplarily illustrated in fig. 1) are created on a server in the IRF system in the prior art.
A VF1301 is obtained through simulation by a physical network card of a server in the IRF system, the stack channel 140 is established through the VF1301, and interaction of stack protocol messages is performed between the first VSR device 110 and the second VSR device 120 through the stack channel 140.
When the stacking channel 140 fails, the first VSR device 110 and the second VSR device 120 cannot sense, if traffic needs to be forwarded across devices, for example: when a certain service packet needs to be forwarded to the second VSR device 120 through the first VSR device 110, and then the second VSR device 120 forwards the service packet to the outside of the IRF system, the service packet transmission may be interrupted, and the controller in the IRF system may not sense the failure, which affects the normal transmission of the service traffic.
Fig. 2 shows an architecture diagram of an intelligent resilient architecture system, i.e., an IRF system, provided by an embodiment of the present disclosure. As shown in fig. 2, the IRF system in the embodiment of the present disclosure includes at least two VSR devices, where one VSR device is a main VSR device, and the remaining VSR devices are standby VSR devices (a first VSR device 210 and a second VSR device 220 are exemplarily illustrated in fig. 2).
A physical network card of a server in the IRF system establishes a first channel 241 through a first VF2301 and a second VF2302 obtained through simulation, establishes a second channel 242 through the second VF2302, and the first VSR device 210 and the second VSR device 220 transmit a service message and a detection message through the first channel 241 and the second channel 242, respectively.
In the embodiment of the present disclosure, the first channel 241 is a main channel, and the second channel 242 is a standby channel; alternatively, the first channel 241 is a standby channel, and the second channel 241 is a main channel. Specifically, taking the first channel 241 as a main channel and the second channel 242 as a standby channel as an example for explanation, the first VSR device 210 sends a detection message and a service message to the second VSR device 220 through the first channel 241, after receiving the detection message, the second VSR device 220, generates a confirmation message according to the detection message, and transmits the confirmation message to the first VSR apparatus 210 through the first channel 241, by determining whether the first VSR apparatus 210 receives the confirmation message within a preset time period, it is determined whether the first channel 241 is failed, if the first VSR apparatus 210 does not receive the acknowledgement message fed back by the second VSR apparatus 220 within the preset time period, the first channel 241 is considered to be faulty, and at this time, the first VSR device 210 may forward a corresponding service packet to the second VSR device 220 through the second channel 242, so as to ensure that the forwarding of the service traffic is performed normally; if the first VSR device 210 receives the confirmation message fed back by the second VSR device 220 within the preset time period, the first VSR device 210 assumes that the first channel 241 is in the normal state, and at this time, the first VSR device 210 may continue to forward the corresponding service message to the second VSR device 220 through the first channel 241, thereby implementing forwarding of the service traffic.
The interaction process between the first VSR apparatus 210 and the second VSR apparatus 220 is illustrated in fig. 2A or fig. 2B. It should be noted that, in practical applications, the first VSR apparatus 210 periodically sends the detection message to the second VSR apparatus 220 through the first channel 241 without interruption, the sending period may be reasonably set according to actual needs, for example, the sending period may be set to send the detection message every 5 seconds, and the preset time period may also be flexibly set according to actual needs, for example: in order to avoid the false determination of the failure, the preset time period may be 5 sending periods of the detection message, and if the confirmation message fed back by the second VSR device 220 cannot be received in any of the 5 sending periods of the detection message continuously, it is considered that the first channel 241 has the failure, which is not limited in this disclosure.
In summary, in the embodiment of the present disclosure, by setting the first channel and the second channel, when the first channel, i.e., the main channel, fails, the failure of the stacked link is detected in time, a transmission failure caused by an inability to sense when the communication channel fails in the existing IRF system is solved to a certain extent, and the forwarding of the service packet is completed through the second channel, i.e., the standby channel, thereby avoiding the interruption of the service traffic and ensuring the normal transmission of the service traffic.
Fig. 3 is a flowchart illustrating a message transmission method according to an embodiment of the present disclosure. The method can be applied to the first VSR device in the IRF system in the embodiment of fig. 2, and specifically includes the following steps:
step S301: a first VSR device (a first virtual service router device) sends a detection message and a service message to a second VSR device (a second virtual service router device) in the intelligent resilient framework system through a first channel, where the detection message is a message generated by the first VSR device and used to detect whether a first channel established by a virtual machine network card VF simulated by a physical network card PF in a server is faulty. In practical application, the detection message carries a first value (seg _ num value), the first VSR device randomly generates the first value, records the first value at the local end, and generates a detection message based on the first value. For example, the first VSR device generates a first value of 1, which is recorded as seg _ num ═ 1 at the end.
Step S302: and judging whether a confirmation message fed back by the second VSR equipment through the first channel is received within a preset time period, wherein the confirmation message is a message generated by the second VSR equipment according to the detection message. In practical application, the first VSR device may periodically and uninterruptedly send the detection message to the second VSR device through the first channel, and since the detection message may have a packet loss in a transmission process of the first channel or a transmission delay may be caused because a network card bandwidth is occupied, a channel fault misjudgment may be generated, and therefore, a fault misjudgment phenomenon caused by the packet loss or the transmission delay may be solved to a certain extent by reasonably setting a relationship between a preset time period and a detection message sending period.
Step S303: and when the confirmation message fed back by the second VSR equipment through the first channel is not received within a preset time period, determining that the first channel fails. The first VSR starts timing after sending the detection message through the first channel, detects whether the confirmation message is received or not when the distance exceeds a preset time period, and determines that the first channel has a fault if the confirmation message is not received. Specifically, the preset time period may be N times of a sending period set by the detection packet, where N is a natural number and N is greater than or equal to 1. For example, the transmission period set for the detection packet is Δ T, and the preset time period may be set to 5 Δ T, etc.
Step S304: and sending the service message to the second VSR equipment through the second channel. And after determining that the first channel has a fault, the first VSR equipment switches the transmission channel of the service message from the first channel to a second channel, and sends service data to the second VSR equipment through the second channel. Therefore, when the first channel fails, the service message is sent through the second channel, thereby avoiding the interruption of service flow and ensuring the normal transmission of the service flow.
In summary, in the embodiment of the present disclosure, by setting the first channel and the second channel, when the first channel, i.e., the main channel, fails, the failure of the stacked link is detected in time, a transmission failure caused by an inability to sense when the communication channel fails in the existing IRF system is solved to a certain extent, and the forwarding of the service packet is completed through the second channel, i.e., the standby channel, thereby avoiding the interruption of the service traffic and ensuring the normal transmission of the service traffic.
Specifically, in the embodiment of the present disclosure, as shown in fig. 2B, the message transmission method further includes:
step S305: and sending a detection message to the second VSR equipment through the first channel at intervals of a first time interval. In practical applications, after the first channel sends a failure, since the transmission rate and the transmission effect of the main channel, that is, the first channel, to the service packet are generally superior to those of the standby channel, that is, the second channel, the failure of the first channel needs to be monitored, and once the failure of the first channel is recovered, the first channel may be used to continue to transmit the service packet.
Step S306: and judging whether a confirmation message which is generated by the second VSR equipment based on the detection message and fed back through the first channel is received. Specifically, after the first VSR device sends the detection message through the first channel, if the failure of the first channel has recovered, the second VSR device may generate a confirmation message according to the received detection message and feed back the confirmation message to the first VSR device through the first channel, so that it may be determined whether the first channel has recovered from the failure by determining whether the confirmation message sent by the second VSR device is received.
Step S307: and when receiving a confirmation message fed back by the second VSR equipment through the first channel, determining that the first channel is recovered due to the fault. Specifically, if the first VSR device receives the confirmation message, it is considered that the first channel is recovered from the failure, and at this time, the transmission of the service message between the first VSR device and the second VSR device can be realized through the first channel, that is, the standby channel can be switched back to the main channel to transmit the service message, so that the flexible switching of the stacking link is realized. Of course, in practical applications, the service packet may also be continuously transmitted through the second channel, and the disclosure is not limited thereto.
In practical application, the first channel includes a first protocol channel and a first data channel, the first protocol channel is used for transmitting a detection message and a confirmation message, and the first data channel is used for transmitting a service message; the second channel also includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet. Therefore, the problem of false alarm fault of the protocol message caused by the fact that the service message occupies too full bandwidth in the transmission process is avoided to a certain extent by the mode that the protocol message such as the detection message, the confirmation message and the like and the service message are transmitted through different communication channels, the accuracy of channel detection is improved, and the two channels are used for transmitting the messages, so that the stack can be protected from splitting as far as possible.
Fig. 4 is a flowchart illustrating another message transmission method according to an embodiment of the present disclosure. The method may be applied to the second VSR device in the IRF system in the embodiment of fig. 2, and specifically includes the following steps:
step S401: and the second VSR equipment receives a detection message and a service message sent by the first VSR equipment in the intelligent elastic framework system through the first channel, wherein the detection message is used for detecting whether the first channel has a fault. Specifically, in practical application, if the second VSR device receives the detection message sent by the first VSR device through the first channel, it indicates that the current communication state of the first channel is in a normal state.
Step S402: and if the detection message is received, generating a confirmation message according to the detection message, and sending the confirmation message to the first VSR equipment through the first channel. Specifically, in practical application, a detection message received by the second VSR device carries a first numerical value (seg _ num value), the second VSR device analyzes the detection message to obtain the first numerical value contained in the detection message, generates a second numerical value based on the first numerical value according to a preset relationship, and generates a confirmation message based on the second numerical value. For example, if the second VSR device analyzes the detection message to obtain a first value seg _ num of 1, a second value seg _ num of 2 is generated, where the predetermined relationship is that the second value is the first value plus one. And sending the confirmation message carrying the second numerical value to the first VSR equipment through the first channel.
Step S403: and if the detection message is not received, receiving a service message sent by the first VSR equipment through the second channel, wherein the service message is sent through the second channel after the first channel is determined to be in fault when the first VSR equipment does not receive a confirmation message fed back by the second VSR equipment through the first channel within a preset time period. Specifically, in practical applications, after the first channel fails, the first channel cannot normally transmit the service packet, and therefore, the transmission channel of the service packet needs to be switched from the first channel, i.e., the main channel, to the second channel, i.e., the standby channel, so that the service packet is transmitted through the second channel, and normal transmission of the service traffic is ensured.
In summary, in the embodiment of the present disclosure, by setting the first channel and the second channel, when the first channel, i.e., the main channel, fails, the failure of the stacked link is detected in time, a transmission failure caused by an inability to sense when the communication channel fails in the existing IRF system is solved to a certain extent, and the forwarding of the service packet is completed through the second channel, i.e., the standby channel, thereby avoiding the interruption of the service traffic and ensuring the normal transmission of the service traffic.
Specifically, in the embodiment of the present disclosure, as shown in fig. 2B, the message transmission method further includes:
step S404: and receiving a detection message sent by the first VSR equipment to the second VSR equipment through the first channel at intervals of the first time through the first channel. In practical applications, after the first channel sends a failure, because the transmission rate and the transmission effect of the main channel, that is, the first channel, to the service packet are generally superior to those of the standby channel, that is, the second channel, the failure of the first channel needs to be monitored, and once the failure of the first channel is recovered, the first channel may be used to continue to transmit the service packet.
Step S405: and generating a confirmation message according to the detection message, and sending the confirmation message to the first VSR equipment through the first channel, so that the first VSR equipment determines the fault recovery of the first channel when receiving the confirmation message through the first channel. Specifically, if the first VSR device receives the confirmation message, it is considered that the first channel is recovered from the failure, and at this time, the transmission of the service message between the first VSR device and the second VSR device can be realized through the first channel, that is, the standby channel can be switched back to the main channel to transmit the service message, so that the flexible switching of the stacking link is realized. Of course, in practical applications, the service packet may also be continuously transmitted through the second channel, and the disclosure is not limited thereto.
In practical application, the first channel includes a first protocol channel and a first data channel, the first protocol channel is used for transmitting a detection message and a confirmation message, and the first data channel is used for transmitting a service message; the second channel also includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet. Therefore, the problem of false alarm fault of the protocol message caused by the fact that the service message occupies too full bandwidth in the transmission process is avoided to a certain extent by the mode that the protocol message such as the detection message, the confirmation message and the like and the service message are transmitted through different communication channels, the accuracy of channel detection is improved, and the two channels are used for transmitting the messages, so that the stack can be protected from splitting as far as possible.
Fig. 5 is a schematic structural diagram illustrating a message transmission apparatus according to an embodiment of the present disclosure. The apparatus may be applied to the first VSR device in the IRF system in the embodiment of fig. 2, and specifically includes:
the first sending module 501 is configured to send a detection message and a service message to a second VSR device in the intelligent resilient framework system through a first channel, where the detection message is used to detect whether the first channel fails. For details, refer to the related description of step S301 in the method embodiment.
The first processing module 502 is configured to determine whether a confirmation message fed back by the second VSR device through the first channel is received within a preset time period, where the confirmation message is a message generated by the second VSR device according to the detection message. For details, refer to the related description of step S302 in the method embodiment.
The second processing module 503 is configured to determine that the first channel fails when a confirmation message fed back by the second VSR device through the first channel is not received within a preset time period. For details, refer to the related description of step S303 in the method embodiment.
A second sending module 504, configured to send the service packet to the second VSR device through the second channel. For details, refer to the related description of step S304 in the method embodiment.
Specifically, in an embodiment of the present disclosure, the above message transmission apparatus further includes:
and the third sending module is used for sending the detection message to the second VSR equipment through the first channel at intervals of the first time. For details, refer to the related description of step S305 in the method embodiment.
And the fourth processing module is used for judging whether a confirmation message which is generated by the second VSR equipment based on the detection message and is fed back through the first channel is received. For details, refer to the description related to step S306 in the method embodiment.
And the fifth processing module is used for determining the failure recovery of the first channel when receiving a confirmation message fed back by the second VSR equipment through the first channel. For details, refer to the related description of step S307 in the method embodiment.
In practical application, the first channel includes a first protocol channel and a first data channel, the first protocol channel is used for transmitting a detection message and a confirmation message, and the first data channel is used for transmitting a service message; the second channel also includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet. Therefore, the problem of false alarm fault of the protocol message caused by the fact that the service message occupies too full bandwidth in the transmission process is avoided to a certain extent by the mode that the protocol message such as the detection message, the confirmation message and the like and the service message are transmitted through different communication channels, the accuracy of channel detection is improved, and the two channels are used for transmitting the messages, so that the stack can be protected from splitting as far as possible.
In summary, in the embodiment of the present disclosure, by setting the first channel and the second channel, when the first channel, i.e., the main channel, fails, the failure of the stacked link is detected in time, a transmission failure caused by an inability to sense when the communication channel fails in the existing IRF system is solved to a certain extent, and the forwarding of the service packet is completed through the second channel, i.e., the standby channel, thereby avoiding the interruption of the service traffic and ensuring the normal transmission of the service traffic.
Fig. 6 is a schematic structural diagram illustrating another message transmission apparatus according to an embodiment of the present disclosure. The apparatus may be applied to the second VSR device in the IRF system in the embodiment of fig. 2, and specifically includes:
the first receiving module 601 is configured to receive, through a first channel, a detection message and a service message sent by a first VSR device in the intelligent resilient framework system, where the detection message is used to detect whether the first channel fails. For details, refer to the description related to step S401 in the method embodiment.
If the detection message is received, the third processing module 602 is configured to generate a confirmation message according to the detection message, and send the confirmation message to the first VSR device through the first channel. For details, refer to the related description of step S402 in the method embodiment.
If the detection message is not received, the second receiving module 603 is configured to receive, through the second channel, a service message sent by the first VSR device, where the service message is sent after determining that the first channel fails when the first VSR device does not receive an acknowledgement message fed back by the second VSR device through the first channel within a preset time period. For details, refer to the description related to step S403 in the method embodiment.
Specifically, in an embodiment of the present disclosure, the above message transmission apparatus further includes:
and the third receiving module is used for receiving the detection message sent by the first VSR equipment to the second VSR equipment through the first channel at intervals of the first time through the first channel. For details, refer to the related description of step S404 in the method embodiment.
And a sixth processing module, configured to generate a confirmation message according to the detection message, and send the confirmation message to the first VSR device through the first channel, so that when the first virtual service router device receives the confirmation message through the first channel, it determines that the first channel has failed to recover. For details, refer to the description related to step S405 in the method embodiment.
In practical application, the first channel includes a first protocol channel and a first data channel, the first protocol channel is used for transmitting a detection message and a confirmation message, and the first data channel is used for transmitting a service message; the second channel also includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet. Therefore, the problem of false alarm fault of the protocol message caused by the fact that the service message occupies too full bandwidth in the transmission process is avoided to a certain extent by the mode that the protocol message such as the detection message, the confirmation message and the like and the service message are transmitted through different communication channels, the accuracy of channel detection is improved, and the two channels are used for transmitting the messages, so that the stack can be protected from splitting as far as possible.
In summary, in the embodiment of the present disclosure, by setting the first channel and the second channel, when the first channel, i.e., the main channel, fails, the failure of the stacked link is detected in time, a transmission failure caused by an inability to sense when the communication channel fails in the existing IRF system is solved to a certain extent, and the forwarding of the service packet is completed through the second channel, i.e., the standby channel, thereby avoiding the interruption of the service traffic and ensuring the normal transmission of the service traffic.
Fig. 7 shows a virtual service router device according to an embodiment of the present disclosure, and as shown in fig. 7, the virtual service router device may be a first VSR device in the embodiment of fig. 2A or fig. 2B, or may be a second VSR device in the embodiment of fig. 2A or fig. 2B. Specifically, the processor 701 and the memory 702 may be included, where the processor 701 and the memory 702 may be connected by a bus or in other manners, and fig. 7 illustrates an example of a connection by a bus.
Processor 701 may be a Central Processing Unit (CPU). The Processor 701 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 702, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the above-described method embodiments in the embodiments of the present disclosure. The processor 701 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 702, that is, implements the methods in the above-described method embodiments.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 701, and the like. Further, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, which may be connected to processor 701 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 702, which when executed by the processor 701 perform the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program that can be stored in a computer-readable storage medium and that when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A message transmission method, wherein the method is performed by a first virtual service router device in an intelligent resilient architecture system, and wherein the method comprises:
sending a detection message and a service message to second virtual service router equipment in the intelligent elastic architecture system through a first channel, wherein the detection message is used for detecting whether the first channel has a fault;
judging whether a confirmation message fed back by the second virtual service router equipment through the first channel is received within a preset time period, wherein the confirmation message is a message generated by the second virtual service router equipment according to the detection message;
when a confirmation message fed back by the second virtual service router equipment through the first channel is not received within a preset time period, determining that the first channel fails;
and sending a service message to the second virtual service router equipment through a second channel.
2. The method of claim 1, further comprising:
sending a detection message to the second virtual service router equipment through the first channel at intervals of a first time interval;
judging whether a confirmation message which is generated by the second virtual service router device based on the detection message and fed back through the first channel is received;
and when receiving the confirmation message fed back by the second virtual service router device through the first channel, determining that the first channel is recovered due to the fault.
3. The method of claim 1,
the first channel comprises a first protocol channel and a first data channel, the first protocol channel is used for transmitting the detection message and the confirmation message, and the first data channel is used for transmitting the service message;
the second channel includes a second protocol channel and a second data channel, the second protocol channel is used for transmitting the detection packet and the confirmation packet, and the second data channel is used for transmitting the service packet.
4. A message transmission method, wherein the method is executed by a second virtual service router device in an intelligent resilient architecture system, and wherein the method comprises:
receiving a detection message and a service message sent by first virtual service router equipment in the intelligent elastic architecture system through a first channel, wherein the detection message is used for detecting whether the first channel has a fault;
if the detection message is received, generating a confirmation message according to the detection message, and sending the confirmation message to the first virtual service router equipment through the first channel;
if the detection message is not received, receiving a service message sent by the first virtual service router device through a second channel, wherein the service message is sent through the second channel after determining that the first channel fails when the first virtual service router device does not receive a confirmation message fed back by the second virtual service router device through the first channel within a preset time period.
5. The method of claim 4, further comprising:
if a detection message sent to the second virtual service router equipment by the first virtual service router equipment through the first channel every other first time interval is received through the first channel; generating a confirmation message according to the detection message, and sending the confirmation message to the first virtual service router device through the first channel, so that the first virtual service router device determines that the first channel is recovered when receiving the confirmation message through the first channel.
6. A message transmission apparatus, wherein the apparatus is applied to a first virtual service router device in an intelligent resilient framework system, and the apparatus comprises:
a first sending module, configured to send a detection packet and a service packet to a second virtual service router device in the intelligent resilient framework system through a first channel, where the detection packet is used to detect whether the first channel fails;
a first processing module, configured to determine whether a confirmation packet fed back by the second virtual service router device through the first channel is received within a preset time period, where the confirmation packet is a packet generated by the second virtual service router device according to the detection packet;
the second processing module is used for determining that the first channel fails when a confirmation message fed back by the second virtual service router device through the first channel is not received within a preset time period;
and the second sending module is used for sending the service message to the second virtual service router equipment through a second channel.
7. A message transmission apparatus, wherein the apparatus is applied to a second virtual service router device in an intelligent resilient framework system, and the apparatus comprises:
a first receiving module, configured to receive, through a first channel, a detection packet and a service packet sent by a first virtual service router device in the intelligent resilient framework system, where the detection packet is used to detect whether the first channel fails;
a third processing module, configured to generate a confirmation message according to the detection message if the detection message is received, and send the confirmation message to the first virtual service router device through the first channel;
and if the detection message is not received, the second receiving module is configured to receive, through a second channel, a service message sent by the first virtual service router device, where the service message is sent through the second channel after determining that the first channel has a fault when the first virtual service router device does not receive a confirmation message fed back by the second virtual service router device through the first channel within a preset time period.
8. An intelligent resilient framework system, comprising: the system comprises a first virtual service router device and at least one second virtual service router device, wherein the first virtual service router device sends a detection message to the second virtual service router device in the intelligent elastic architecture system through a first channel, and the detection message is used for detecting whether the first channel fails; the second virtual service router equipment receives a detection message sent by first virtual service router equipment in the intelligent elastic framework system through a first channel, generates a confirmation message according to the detection message, and sends the confirmation message to the first virtual service router equipment through the first channel; the first virtual service router equipment judges whether a confirmation message fed back by the second virtual service router equipment through the first channel is received or not within a preset time period; when the first virtual service router does not receive a confirmation message fed back by the second virtual service router equipment through the first channel within a preset time period, determining that the first channel has a fault; the first virtual service router sends a service message to the second virtual service router device through a second channel; and the second virtual service router receives a service message sent by the first virtual service router through a second channel.
9. A virtual service router device, comprising a processor and a memory, in which at least one instruction or program is stored, the instruction or program being loaded and executed by the processor to implement a messaging method according to any one of claims 1 to 3, or the instruction or program being loaded and executed by the processor to implement a messaging method according to any one of claims 4 to 5.
10. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to implement the message transmission method according to any one of claims 1 to 3, or to implement the message transmission method according to any one of claims 4 to 5.
CN201910881407.2A 2019-09-18 2019-09-18 Message transmission method and device and intelligent elastic architecture system Pending CN110601972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910881407.2A CN110601972A (en) 2019-09-18 2019-09-18 Message transmission method and device and intelligent elastic architecture system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910881407.2A CN110601972A (en) 2019-09-18 2019-09-18 Message transmission method and device and intelligent elastic architecture system

Publications (1)

Publication Number Publication Date
CN110601972A true CN110601972A (en) 2019-12-20

Family

ID=68860476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910881407.2A Pending CN110601972A (en) 2019-09-18 2019-09-18 Message transmission method and device and intelligent elastic architecture system

Country Status (1)

Country Link
CN (1) CN110601972A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826887A (en) * 2022-03-21 2022-07-29 阿里云计算有限公司 Private network connection communication method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315975A (en) * 2011-10-17 2012-01-11 杭州华三通信技术有限公司 Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN102932249A (en) * 2012-10-10 2013-02-13 杭州华三通信技术有限公司 Method and device for transmitting virtual router redundancy protocol (VRRP) message
US20140301401A1 (en) * 2013-04-07 2014-10-09 Hangzhou H3C Technologies Co., Ltd. Providing aggregation link groups in logical network device
CN105763412A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Communication method in virtual switching cluster and apparatus thereof
CN109032754A (en) * 2018-06-29 2018-12-18 华为技术有限公司 The method and apparatus for improving communication path reliability
CN109474489A (en) * 2018-11-02 2019-03-15 新华三信息安全技术有限公司 A kind of chain circuit detecting method, device and the network equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315975A (en) * 2011-10-17 2012-01-11 杭州华三通信技术有限公司 Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN102932249A (en) * 2012-10-10 2013-02-13 杭州华三通信技术有限公司 Method and device for transmitting virtual router redundancy protocol (VRRP) message
US20140301401A1 (en) * 2013-04-07 2014-10-09 Hangzhou H3C Technologies Co., Ltd. Providing aggregation link groups in logical network device
CN105763412A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Communication method in virtual switching cluster and apparatus thereof
CN109032754A (en) * 2018-06-29 2018-12-18 华为技术有限公司 The method and apparatus for improving communication path reliability
CN109474489A (en) * 2018-11-02 2019-03-15 新华三信息安全技术有限公司 A kind of chain circuit detecting method, device and the network equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826887A (en) * 2022-03-21 2022-07-29 阿里云计算有限公司 Private network connection communication method and system

Similar Documents

Publication Publication Date Title
CN102299846B (en) Method for transmitting BFD (Bidirectional Forwarding Detection) message and equipment
EP3142011A1 (en) Anomaly recovery method for virtual machine in distributed environment
CN102223258B (en) Method and device for preventing BFD (bidirectional forwarding detection) conversation interruption
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
JP2010525693A (en) Distributed Ethernet system and method for detecting faults based on the system
CN106170948A (en) A kind of referee method for dual-active data center, Apparatus and system
KR20150088559A (en) Method and apparatus for restoring failure of network
CN112217658B (en) Stacking and splitting processing method and device
WO2016095344A1 (en) Link switching method and device, and line card
CN106301840B (en) Method and device for sending Bidirectional Forwarding Detection (BFD) message
CN103795570A (en) Unicast message recovery method and device of stacking switch system with ring topology
CN109462533B (en) Link switching method, link redundancy backup network and computer readable storage medium
CN107948063B (en) Method for establishing aggregation link and access equipment
US11258666B2 (en) Method, device, and system for implementing MUX machine
CN111010319B (en) VSF-based link detection method and device
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN107948000B (en) Method, device and system for switching main channel and standby channel
CN104394012B (en) Cluster routers, MPU and its failure determination method, sensing controller
CN110601972A (en) Message transmission method and device and intelligent elastic architecture system
WO2016091094A1 (en) Optical transport network protection switching method and device
WO2016065751A1 (en) Method for recovering link communication, service line card and system
CN105490837A (en) Network monitoring processing method and device
US10659251B2 (en) Ring protection network division
CN101980478A (en) Method and device for detecting and processing equipment failures and network equipment
CN103414591A (en) Method and system for fast converging when port failure is recovered

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220