Virtual cluster establishment method and network device
First Claim
1. A virtual cluster establishment method, comprising:
- establishing, by a first network device, a network-layer-based first communication connection with a second network device;
sending, by the first network device, a first registration request message to the second network device through the network-layer-based first communication connection for establishing a virtual cluster comprising the first network device and the second network device, wherein the first registration request message carries registration information of the first network device;
after the first network device receives a first registration response message sent by the second network device for indicating that the virtual cluster is successfully established, selecting the second network device as an active main control device of the first network device in the virtual cluster;
establishing, by the first network device, a network-layer-based second communication connection with a third network device;
sending, by the first network device, a second registration request message to the third network device through the network-layer-based second communication connection for requesting the third network device to join the virtual cluster;
after the first network device receives a second registration response message sent by the third network device, selecting, by the first network device, the third network device as a standby main control device of the first network device in the virtual cluster;
wherein selecting the second network device as an active main control device of the first network device in the virtual cluster system comprises;
forwarding, by the first network device, a control protocol packet received from a network device outside the virtual cluster to the second network device through the network-layer-based first communication connection to enable the second network device to generate an external forwarding table of the virtual cluster according to the control protocol packet; and
receiving, by the first network device, the external forwarding table of the virtual cluster that is sent by the second network device.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a virtual cluster establishment method and a network device. The method includes: a first network device establishes, a network-layer-based first communication connection with a second network device; the first network device sends a first registration request message to the second network device through the first communication connection, where the first registration request message is used to establish a virtual cluster with the second network device; after the first network device receives a registration response message, selecting the second network device as an active main control device in the virtual cluster system; establishes, a network-layer-based second communication connection with a third network device; sends, a second registration request message to the third network device; and selects the third network device as a standby main control device. In this invention, a structure of a cluster is simplified, and scalability of the cluster is improved.
19 Citations
15 Claims
-
1. A virtual cluster establishment method, comprising:
-
establishing, by a first network device, a network-layer-based first communication connection with a second network device; sending, by the first network device, a first registration request message to the second network device through the network-layer-based first communication connection for establishing a virtual cluster comprising the first network device and the second network device, wherein the first registration request message carries registration information of the first network device; after the first network device receives a first registration response message sent by the second network device for indicating that the virtual cluster is successfully established, selecting the second network device as an active main control device of the first network device in the virtual cluster; establishing, by the first network device, a network-layer-based second communication connection with a third network device; sending, by the first network device, a second registration request message to the third network device through the network-layer-based second communication connection for requesting the third network device to join the virtual cluster; after the first network device receives a second registration response message sent by the third network device, selecting, by the first network device, the third network device as a standby main control device of the first network device in the virtual cluster; wherein selecting the second network device as an active main control device of the first network device in the virtual cluster system comprises; forwarding, by the first network device, a control protocol packet received from a network device outside the virtual cluster to the second network device through the network-layer-based first communication connection to enable the second network device to generate an external forwarding table of the virtual cluster according to the control protocol packet; and receiving, by the first network device, the external forwarding table of the virtual cluster that is sent by the second network device. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A virtual cluster establishment method, comprising:
-
establishing, by a second network device, a network-layer-based first communication connection with a first network device; establishing, by the second network device, a network-layer-based third communication connection with a third network device; receiving, by the second network device, a first registration request message sent through the network-layer-based first communication connection by the first network device, wherein the first registration request message carries registration information of the first network device; receiving, by the second network device, a third registration request message sent through the network-layer-based third communication connection by the third network device; establishing, by the second network device, a virtual cluster comprising the second network device, the first network device and the third network device according to the first registration request message and the third registration request message, wherein the second network device is used as an active main control device of the first network device in the virtual cluster, and the third network device is used as a standby main control device of the first network device in the virtual cluster; and wherein using the second network device as an active main control device of the first network device in the virtual cluster system comprises; receiving, by the second network device, a control protocol packet that is sent through the network-layer-based first communication connection by the first network device, wherein the control protocol packet is received by the first network device from a network device outside the virtual cluster; and generating, by the second network device, an external forwarding table of the virtual cluster according to the control protocol packet, and sending the forwarding table to the first network device. - View Dependent Claims (7, 8)
-
-
9. A first network device, comprising:
-
a processor, configured to establish a network-layer-based first communication connection with a second network device, and configured to establish a network-layer-based second communication connection with a third network device; a transceiver, configured to; send a first registration request message to the second network device through the network-layer-based first communication connection for establishing a virtual cluster comprising the first network device and the second network device, wherein the first registration request message carries registration information of the first network device, receive a first registration response message sent by the second network device, wherein the first registration response message indicates that the virtual cluster is successfully established, send a second registration request message to the third network device through the network-layer-based second communication connection for requesting the third network device to join the virtual cluster, and receive a second registration response message sent by the third network device; and wherein the processor is configured to; after the transceiver receives the first registration response message sent by the second network device for indicating that the virtual cluster is successfully established, select the second network device as an active main control device of the first network device in the virtual cluster system; and after the transceiver receives the second registration response message sent by the third network device, select the third network device as a standby main control device of the first network device itself in the virtual cluster; wherein the transceiver is further configured to; forward a control protocol packet received from a network device outside the virtual cluster to the second network device through the network-layer-based first communication connection to enable the second network device to generate an external forwarding table of the virtual cluster according to the control protocol packet; and receive the external forwarding table of the virtual cluster that is sent by the second network device. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A second network device, comprising:
-
a processor, configured to; establish a network-layer-based first communication connection with a first network device, and establish a network-layer-based third communication connection with a third network device; a transceiver, configured to; receive a first registration request message that is sent through the network-layer-based first communication connection by the first network device, wherein the first registration request message carries registration information of the first network device, and receive a third registration request message that is sent through the network-layer-based third communication connection by the third network device; wherein the processor is further configured to establish a virtual cluster comprising the second network device, the first network device and the third network device according to the first registration request message and the third registration request message, wherein the second network device is used as an active main control device of the first network device in the virtual cluster, and the third network device is used as a standby main control device of the first network device in the virtual cluster; wherein the transceiver is further configured to; receive a control protocol packet that is sent through the network-layer-based first communication connection by the first network device, wherein the control protocol packet is received by the first network device from a network device outside the virtual cluster; the processor is further configured to generate an external forwarding table of the virtual cluster according to the control protocol packet; and the transceiver is further configured to send the forwarding table to the first network device. - View Dependent Claims (15)
-
Specification