Communication method in virtual switching cluster and apparatus thereof

A technology of virtual switching cluster and communication interruption, applied in the field of communication, can solve the problems of poor system stability and reliability when communication is interrupted, and achieve the effect of improving stability and reliability and ensuring continuity

Inactive Publication Date: 2016-07-13
ZTE CORP
3 Cites 4 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method and device for communication in a virtual switching cluster, aiming at solving...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a communication method in a virtual switching cluster and an apparatus thereof. The communication method in the virtual switching cluster comprises the following steps of detecting a communication state of a control plane stack link between a home terminal member and an opposite terminal member in the virtual switching cluster; and when control plane stack link communication is interrupted, switching a control message on the control plane stack link to a forwarding plane stack link so as to send. By using the method and the apparatus of the invention, communication continuity can be guaranteed when the control plane stack link communication is interrupted and system stability and reliability are increased.

Application Domain

Technology Topic

Image

  • Communication method in virtual switching cluster and apparatus thereof
  • Communication method in virtual switching cluster and apparatus thereof
  • Communication method in virtual switching cluster and apparatus thereof

Examples

  • Experimental program(1)

Example Embodiment

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0046] The present invention provides a method of communication in a virtual switching cluster, with reference to figure 1 , In one embodiment, it includes:
[0047] Step S101, detecting the communication status of the control plane stacking link between the local member and the opposite member in the virtual switching cluster;
[0048] In this embodiment, in the virtual switching cluster, when the control plane stacking link between the local member and the opposite member is in normal communication, the control message between the two is sent through the control plane stacking link. At the same time, the local The member sends a detection message to the peer member through the control plane stack link to detect the communication status between the two, and then receives feedback from the peer member, and uses the feedback message to detect whether the communication state of the control plane stack link is normal.
[0049] In this embodiment, if the local member or the opposite member does not receive a message from the other party within a predetermined time, it is considered that the control plane stacking link is disconnected, and the control plane stacking between the local member and the opposite member Link communication is interrupted.
[0050] Step S102: When it is detected that the communication of the control plane stack link is interrupted, switch the control message on the control plane stack link to the forwarding plane stack link for transmission.
[0051] In this embodiment, when it is detected that the control plane stacking link communication is interrupted, the communication of the control plane stacking link between each member of the virtual switching cluster is realized by using the soft forwarding plane stacking link to ensure the control between the members of the virtual switching cluster Packets can be effectively forwarded, enabling normal communication between members of the virtual switching cluster.
[0052] Compared with the prior art, this embodiment quickly switches the control message of the control plane stack link to the forwarding plane stack link for transmission when the interruption or failure of the control plane stack link is detected. To continue to realize the communication of control messages of the control plane stacking link, to ensure the continuity of the control plane stacking link communication, and to improve the stability and reliability of the virtual switching cluster.
[0053] In a preferred embodiment, such as figure 2 Shown in the above figure 1 On the basis of the embodiment, the step S101 includes:
[0054] Step S1011, the local member sends a detection message to the opposite member;
[0055] Step S1012: It is determined whether the local member receives a response message corresponding to the detection message returned by the opposite member within a predetermined time.
[0056] In this embodiment, the local member and the opposite member send detection messages to each other, and receive messages fed back by the other party, and use the messages fed back to detect the communication status of the control plane stack link.
[0057] In this embodiment, the task of sending and receiving link detection messages between the local member and the opposite member is enabled. The local member and the opposite member send detection messages to each other from the control plane stacking link every second, and monitor the feedback from the other side. Feedback message.
[0058] In this embodiment, the detection message defines private characteristics: the Ethernet protocol number of the detection message is 0Xf002, and the destination MAC address is 0x0102-0304-0506; within a predetermined time (for example, 3 seconds, it can also be modified to a reasonable value based on actual conditions) ) If the feedback message from the other party is not received, it is considered that the control plane stacking link communication with the other party is interrupted.
[0059] In a preferred embodiment, such as image 3 Shown in the above figure 1 On the basis of the embodiment, the step S102 includes:
[0060] Step S1021: When it is detected that the control plane stacking link communication is interrupted, set the respective spanning tree status of the local member and the opposite member to congestion, and clear the MAC addresses learned by the respective physical interfaces;
[0061] Step S1022: Obtain a proxy CPU, the proxy CPU grabs the control message, and switches the grabbed control message to the forwarding plane stack link for transmission.
[0062] In this embodiment, when it is detected that the control plane stacking link communication is interrupted, the respective spanning tree states of the local member and the opposite member are set to congestion to prohibit forwarding data, and only detection packets can be forwarded to prevent control plane stacking Loop problems occur when the link is restored; clear the MAC addresses learned by the two members and the opposite member on the physical interface of the switch between the control plane stacking links, so that the known unicast control message becomes an unknown unicast Control messages.
[0063] In this embodiment, the proxy CPU is selected, the Ethernet port capture task of the proxy CPU is enabled on each of the two members, the control message is captured, and the CPU that has a forwarding plane stack link connected to the opposite member acts as a proxy and sends The control message is sent to the switch port of the proxy CPU Ethernet port.
[0064] Specifically, the proxy CPU captures the control message and analyzes it, and judges whether it is the control message to be forwarded through the MAC address of the control message obtained by the analysis; if so, the captured control message is added to the proxy CPU's Flag bit and switch to the forwarding plane stack link for transmission.
[0065] In this embodiment, after the local member and the opposite member capture the control message, they each parse the control message that needs to be forwarded to the other party; specifically, in the virtual switching cluster system, the MAC address assigned to each proxy CPU is The only thing is that the MAC addresses occupied by different members are also within the range of an area. In this way, the MAC address of the captured control message can be used to determine whether it needs to be sent to the opposite member. The messages that need to be sent to the opposite member are: The MAC address is a broadcast or multicast message; the MAC address is a unicast and is in the address range of the peer member.
[0066] In this embodiment, if it is a control message that needs to be sent to the opposite member, the proxy CPU flag bit is added to the control message, so that the opposite member can distinguish easily after receiving the control message. In this embodiment, the local member and the opposite member each send the captured control message of the control plane stack link through the forwarding plane stack link. Through the transmission of the forwarding plane stacking link, the control message is sent to the opposite end. After receiving the control message, the opposite member determines whether it is a control message sent by the control plane stack link according to whether there is a proxy CPU flag in the control message.
[0067] In this embodiment, the two members each send the control message of the control plane stacking link sent by the other party to their own control plane communication system. For the control message of the control plane stacking link, it needs to be processed by the CPU network port and sent to its own control plane communication system.
[0068] In this embodiment, through the above method, when the control plane stacking link communication is interrupted, the forwarding plane stacking link can be implemented to send the control message on the control plane stacking link, and finally sent to the corresponding control plane communication system , To ensure the continuity of the control plane stacking link communication.
[0069] In a preferred embodiment, such as Figure 4 Shown in the above figure 1 On the basis of the embodiment, the method further includes:
[0070] Step 103: When it is detected that the communication of the control plane stack link is restored, switch the control message to the forwarding plane stack link for transmission.
[0071] In this embodiment, when the control plane stacking link receives the sent feedback message of the detection message, it is determined that the control plane stacking link is detected to be connected again, and the local member and the opposite member are disabled. The control packet capture task of the control plane stacking link, delete the MAC address of the port of the switch connected to the proxy CPU network port, and set the spanning tree status of each physical interface connecting the control plane stacking link of the two members to forward (FORWARD) State, restore the control plane stacking link to forward control packets, and keep the communication going.
[0072] The present invention also provides a communication device in a virtual switching cluster, such as Figure 5 As shown, in an embodiment, the communication device in the virtual switching cluster includes:
[0073] The detection module 101 is used to detect the communication state of the control plane stacking link between the local member and the opposite member in the virtual switching cluster;
[0074] In this embodiment, in the virtual switching cluster, when the control plane stacking link between the local member and the opposite member is in normal communication, the control message between the two is sent through the control plane stacking link. At the same time, the local The member sends a detection message to the peer member through the control plane stack link to detect the communication status between the two, and then receives feedback from the peer member, and uses the feedback message to detect whether the communication state of the control plane stack link is normal.
[0075] In this embodiment, if the local member or the opposite member does not receive a message from the other party within a predetermined time, it is considered that the control plane stacking link is disconnected, and the control plane stacking between the local member and the opposite member Link communication is interrupted.
[0076] The switching module 102 is configured to switch the control message on the control plane stack link to the forwarding plane stack link for transmission when the communication interruption of the control plane stack link is detected.
[0077] In this embodiment, when it is detected that the control plane stacking link communication is interrupted, the communication of the control plane stacking link between each member of the virtual switching cluster is realized by using the soft forwarding plane stacking link to ensure the control between the members of the virtual switching cluster Packets can be effectively forwarded, enabling normal communication between members of the virtual switching cluster.
[0078] Compared with the prior art, this embodiment quickly switches the control message of the control plane stack link to the forwarding plane stack link for transmission when the interruption or failure of the control plane stack link is detected. To continue to realize the communication of control messages of the control plane stacking link, to ensure the continuity of the control plane stacking link communication, and to improve the stability and reliability of the virtual switching cluster.
[0079] In a preferred embodiment, such as Image 6 Shown in the above Figure 5 On the basis of the embodiment, the detection module 101 includes:
[0080] The sending unit 1011 is configured to send a detection message from the local member to the opposite member;
[0081] The determining unit 1012 is configured to determine whether the local member receives a response message corresponding to the detection message returned by the opposite member within a predetermined time.
[0082] In this embodiment, the local member and the opposite member send detection messages to each other, and receive messages fed back by the other party, and use the messages fed back to detect the communication status of the control plane stack link.
[0083] In this embodiment, the task of sending and receiving link detection messages between the local member and the opposite member is enabled. The local member and the opposite member send detection messages to each other from the control plane stacking link every second, and monitor the feedback from the other side. Feedback message.
[0084] In this embodiment, the detection message defines private characteristics: the Ethernet protocol number of the detection message is 0Xf002, and the destination MAC address is 0x0102-0304-0506; within a predetermined time (for example, 3 seconds, it can also be modified to a reasonable value based on actual conditions) ) If the feedback message from the other party is not received, it is considered that the control plane stacking link communication with the other party is interrupted.
[0085] In a preferred embodiment, such as Figure 7 Shown in the above Figure 5 On the basis of the embodiment, the switching module 102 includes:
[0086] The processing unit 1021 is configured to, when it is detected that the control plane stacking link communication is interrupted, set the respective spanning tree status of the local member and the opposite member to congestion, and clear the MAC addresses learned by the respective physical interfaces ;
[0087] The switching unit 1022 is configured to obtain a proxy CPU, and the proxy CPU captures the control message, and switches the captured control message to the forwarding plane stack link for transmission.
[0088] In this embodiment, when it is detected that the control plane stacking link communication is interrupted, the respective spanning tree states of the local member and the opposite member are set to congestion to prohibit forwarding data, and only detection packets can be forwarded to prevent control plane stacking Loop problems occur when the link is restored; clear the MAC addresses learned by the two members and the opposite member on the physical interface of the switch between the control plane stacking links, so that the known unicast control message becomes an unknown unicast Control messages.
[0089] In this embodiment, the proxy CPU is selected, the Ethernet port capture task of the proxy CPU is enabled on each of the two members, the control message is captured, and the CPU that has a forwarding plane stack link connected to the opposite member acts as a proxy and sends The control message is sent to the switch port of the proxy CPU Ethernet port.
[0090] Specifically, the proxy CPU captures the control message and analyzes it, and judges whether it is the control message to be forwarded through the MAC address of the control message obtained by the analysis; if so, the captured control message is added to the proxy CPU's Flag bit and switch to the forwarding plane stack link for transmission.
[0091] In this embodiment, after the local member and the opposite member capture the control message, they each parse the control message that needs to be forwarded to the other party; specifically, in the virtual switching cluster system, the MAC address assigned to each proxy CPU is The only thing is that the MAC addresses occupied by different members are also within the range of an area. In this way, the MAC address of the captured control message can be used to determine whether it needs to be sent to the opposite member. The messages that need to be sent to the opposite member are: The MAC address is a broadcast or multicast message; the MAC address is a unicast and is in the address range of the peer member.
[0092] In this embodiment, if it is a control message that needs to be sent to the opposite member, the proxy CPU flag bit is added to the control message, so that the opposite member can distinguish easily after receiving the control message. In this embodiment, the local member and the opposite member each send the captured control message of the control plane stack link through the forwarding plane stack link. Through the transmission of the forwarding plane stacking link, the control message is sent to the opposite end. After receiving the control message, the opposite member determines whether it is a control message sent by the control plane stack link according to whether there is a proxy CPU flag bit in the control message.
[0093] In this embodiment, the two members each send the control message of the control plane stacking link sent by the other party to their own control plane communication system. For the control message of the control plane stacking link, it needs to be processed by the CPU network port and sent to its own control plane communication system.
[0094] In this embodiment, through the above method, when the control plane stacking link communication is interrupted, the forwarding plane stacking link can be implemented to send the control message on the control plane stacking link, and finally sent to the corresponding control plane communication system , To ensure the continuity of the control plane stacking link communication.
[0095] In a preferred embodiment, such as Figure 8 Shown in the above Figure 5 On the basis of the embodiment, a recovery module 103 is further included, which is configured to switch the control message to the forwarding plane stack link for transmission when it is detected that the control plane stack link communication is recovered.
[0096] In this embodiment, when the control plane stacking link receives the sent feedback message of the detection message, it is determined that the control plane stacking link is detected to be connected again, and the local member and the opposite member are disabled. The control packet capture task of the control plane stacking link, delete the MAC address of the port of the switch connected to the proxy CPU network port, and set the spanning tree status of each physical interface connecting the control plane stacking link of the two members to forward (FORWARD) State, restore the control plane stacking link to forward control packets, and keep the communication going.
[0097] The above are only the preferred embodiments of the present invention, and do not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the present invention, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Communication method of multi-path router for wireless MESH network

InactiveCN101765178AGuaranteed continuityEnhance network robustnessNetwork topologiesMaintenance strategyTraffic volume
Owner:上海寰创通信科技股份有限公司

Classification and recommendation of technical efficacy words

  • Guaranteed continuity
  • Improve stability and reliability

Receiver system

ActiveUS20140119479A1Improve stability and reliabilityGain controlAmplitude demodulation by non-linear two-pole elementsVIT signalsReceiver system
Owner:EM MICROELECTRONIC-MARIN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products