CN114760242A - Virtual router migration method and device, electronic equipment and storage medium - Google Patents

Virtual router migration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114760242A
CN114760242A CN202210332716.6A CN202210332716A CN114760242A CN 114760242 A CN114760242 A CN 114760242A CN 202210332716 A CN202210332716 A CN 202210332716A CN 114760242 A CN114760242 A CN 114760242A
Authority
CN
China
Prior art keywords
virtual router
message
electronic device
interaction
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210332716.6A
Other languages
Chinese (zh)
Other versions
CN114760242B (en
Inventor
王立坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202210332716.6A priority Critical patent/CN114760242B/en
Publication of CN114760242A publication Critical patent/CN114760242A/en
Application granted granted Critical
Publication of CN114760242B publication Critical patent/CN114760242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0676Mutual
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/44Distributed routing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/196Integration of transport layer protocols, e.g. TCP and UDP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a migration method and device of a virtual router, electronic equipment and a storage medium, wherein the method comprises the following steps: the first electronic equipment determines second electronic equipment running with the first virtual router according to the received VRRP message of the first virtual router; the first electronic equipment and the second electronic equipment perform control message interaction and are used for requesting the second electronic equipment to synchronize session data of the first virtual router; the first electronic equipment and the second electronic equipment perform data message interaction and are used for synchronizing session data of the first virtual router; and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data. In the above scheme, the migration process of the virtual router is driven through message interaction between the electronic devices, so that automatic adjustment of virtual router deployment in a physical network is realized, and the operation cost of a cluster is reduced.

Description

Virtual router migration method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of networks, and in particular, to a migration method and apparatus for a virtual router, an electronic device, and a storage medium.
Background
In a Virtual network scenario, a plurality of physical servers usually operate in a cluster manner, and a Virtual Router (VR) is implemented by running a set software on the physical servers. In the cluster working process, because the physical server fails or has a high load, the cluster needs to frequently migrate VR, and the operation cost is high.
Disclosure of Invention
In view of this, embodiments of the present application provide a migration method and apparatus for a virtual router, an electronic device, and a storage medium, so as to at least solve the problem of high operation cost in a cluster working process in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a migration method of a virtual router, which is applied to first electronic equipment, and the method comprises the following steps:
determining second electronic equipment according to the received VRRP message of the first virtual router; the second electronic device characterizes the electronic device running the first virtual router;
performing first message interaction with the second electronic device; the first message interaction represents interaction of a control message, and is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
Performing second message interaction with the second electronic equipment; the second message interaction represents the interaction of the data messages and is used for synchronizing the session data of the first virtual router;
and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data.
In the above scheme, the performing a first message interaction with the second electronic device includes:
sending a first control message to the second electronic equipment; the first control packet is used for requesting the second electronic device to synchronize session data of the first virtual router.
In the foregoing solution, after the sending the first control packet to the second electronic device, the method further includes:
receiving a second control message sent by the second electronic equipment; the second control packet represents a control packet of the second electronic device responding to the first control packet, and carries configuration information for configuring the first virtual router.
In the foregoing solution, the broadcasting the VRRP packet of the first virtual router based on the received session data includes:
Under the condition of receiving a third control message sent by the second electronic equipment, broadcasting a VRRP message of the first virtual router based on the received session data; and the third control message represents that the session data of the first virtual router is completely sent.
In the foregoing solution, the first electronic device and the second electronic device interact with each other based on a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP) to Control a packet and a data packet.
In the above scheme, the interactive message between the first electronic device and the second electronic device includes a first field; the first field is used for identifying the corresponding message as a control message or a data message.
In the foregoing solution, the first virtual router includes at least one of:
a virtual router operating on a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and determining the virtual router through the instruction.
The embodiment of the present application further provides a migration method of a virtual router, which is applied to a second electronic device, and the method includes:
in the foregoing solution, the performing a first message interaction with a first electronic device includes:
Receiving a first control message sent by the first electronic equipment; the first control message is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
responding to the first control message, and sending a second control message to the first electronic equipment; the second control packet carries configuration information for configuring the first virtual router.
In the foregoing solution, after the session data of the first virtual router is completely sent, the method further includes:
deleting session data of the first virtual router; and/or the presence of a gas in the gas,
sending a third control message to the first electronic device; and the third control message represents that the session data of the first virtual router is completely sent.
In the above scheme, the first electronic device and the second electronic device interact with each other based on TCP or UDP to control a message and a data message.
In the above scheme, the interactive message between the first electronic device and the second electronic device includes a first field; the first field is used for identifying the corresponding message as a control message or a data message.
In the foregoing solution, the first virtual router includes at least one of:
A virtual router operating at a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and the virtual router is determined through the instruction.
The embodiment of the present application further provides a migration apparatus for a virtual router, which is applied to a first electronic device, and includes:
the first processing unit is used for determining second electronic equipment according to the received VRRP message of the first virtual router; the second electronic device characterizes the electronic device running the first virtual router;
the first interaction unit is used for performing first message interaction with the second electronic equipment; the first message interaction represents interaction of a control message, and is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
the second interaction unit is used for performing second message interaction with the second electronic equipment; the second message interaction represents the interaction of data messages and is used for synchronizing the session data of the first virtual router;
and the sending unit is used for broadcasting the VRRP message of the first virtual router based on the received session data after the session data of the first virtual router is synchronized.
The embodiment of the present application further provides a migration apparatus of a virtual router, which is applied to a second electronic device, and includes:
the third interaction unit is used for performing first message interaction with the first electronic equipment; the first message interaction represents interaction of a control message, and is used for the first electronic equipment to request the second electronic equipment to synchronize session data of the first virtual router;
the fourth interaction unit is used for performing second message interaction with the first electronic equipment; the second packet interaction represents interaction of data packets, and is used for synchronizing session data of the first virtual router to the first electronic device.
An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute the steps of the migration method of the virtual router when the computer program is run.
The embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the migration method of the virtual router are implemented.
According to the scheme provided by the embodiment of the application, the first electronic equipment determines the second electronic equipment running with the first virtual router according to the received VRRP message of the first virtual router; the first electronic equipment and the second electronic equipment perform first message interaction; the first message interaction represents the interaction of the control message and is used for requesting the second electronic equipment to synchronize the session data of the first virtual router; the first electronic equipment and the second electronic equipment perform second message interaction; the second message interaction represents the interaction of the data messages and is used for synchronizing the session data of the first virtual router; and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data. In the scheme, the migration process of the virtual router is driven through message interaction between the electronic devices, the session data synchronization process of the virtual router does not need to be controlled manually, and automatic adjustment of virtual router deployment in a physical network is realized, so that the operation cost of a cluster is reduced.
Drawings
Fig. 1 is a schematic flowchart illustrating an implementation process of a migration method of a virtual router according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
fig. 5 is a schematic diagram of a packet format of a UDP protocol packet according to an embodiment of the present application;
fig. 6 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
fig. 7 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
fig. 8 is a schematic flow chart illustrating an implementation of a migration method for a virtual router according to another embodiment of the present application;
FIG. 9 is a schematic diagram of a page provided in an embodiment of the present application;
FIG. 10 is a diagram illustrating a state of a physical server according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a page provided in an embodiment of the present application;
FIG. 12 is a schematic diagram of a page provided in an embodiment of the present application;
fig. 13 is a timing diagram of a migration method of a virtual router according to an embodiment of the present application;
FIG. 14 is a state machine model schematic;
FIG. 15 is a schematic diagram of a state machine model provided in an exemplary embodiment of the present application;
FIG. 16 is a schematic diagram of a state machine model provided in an exemplary embodiment of the present application;
fig. 17 is a schematic structural diagram of a migration apparatus of a virtual router according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of a migration apparatus of a virtual router according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In a virtual network scenario, a plurality of physical servers usually work in a cluster manner, and a physical server runs a setting software to realize VR, which can realize the function of a router in a virtual network environment. In the cluster working process, when a physical server operated by the VR has a fault or a high load, a network flow correspondingly flowing through the VR is affected, the cluster needs to frequently migrate the VR, and the operation cost is high.
Based on this, in various embodiments of the present application, the first electronic device determines, according to the received VRRP packet of the first virtual router, a second electronic device running the first virtual router; the first electronic equipment and the second electronic equipment perform first message interaction; the first message interaction represents the interaction of the control message and is used for requesting the second electronic equipment to synchronize the session data of the first virtual router; the first electronic equipment and the second electronic equipment perform second message interaction; the second message interaction represents the interaction of the data messages and is used for synchronizing the session data of the first virtual router; and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data. In the scheme, the migration process of the virtual router is driven through message interaction between the electronic devices, the session data synchronization process of the virtual router does not need to be controlled manually, and automatic adjustment of virtual router deployment in a physical network is realized, so that the operation cost of a cluster is reduced.
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
Fig. 1 is a schematic implementation flow diagram of a migration method of a virtual router provided in an embodiment of the present application, and the embodiment of the present application provides a migration method of a virtual router, which is applied to a first electronic device, where the first electronic device includes but is not limited to an electronic device such as a server and a terminal. The method comprises the following steps:
step 101: and determining the second electronic equipment according to the received VRRP message of the first virtual router.
Wherein the second electronic device characterizes the electronic device on which the first virtual router is operating.
The first electronic equipment determines a first virtual router to be migrated, learns the address of the second electronic equipment according to a received VRRP message of the first virtual router, and the VRRP message is sent out by the first virtual router running on the second electronic equipment based on a VRRP protocol. The second electronic device may be an electronic device in the same cluster as the first electronic device, and run with the first virtual router.
Here, in a case where it is determined that there is a virtual router satisfying the setting condition, the first electronic device determines the virtual router satisfying the setting condition as the first virtual router to be migrated. As an embodiment of the present application, the first virtual router includes at least one of:
a virtual router operating at a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and determining the virtual router through the instruction.
Determining a set condition of the first virtual router, including at least one of: a virtual router operating on a failed electronic device; the virtual router runs on the electronic equipment with the load higher than the set threshold value; and determining the virtual router through the instruction. Here, when determining the first virtual router, the first electronic device may determine, according to an instruction or information sent by the management plane of the receiving cluster, to determine a virtual router that satisfies the set condition.
The virtual router running on the failed electronic device or the high-load electronic device is migrated, so that the influence of the physical device on the network flow can be relieved, and the user experience is improved. Or, the operator determines the migrated virtual router through the instruction, so that the session data synchronization process of the virtual router does not need to be manually controlled, the automatic adjustment of the deployment of the virtual router in the physical network is realized, and the operation cost of the cluster is reduced.
Taking the example of determining the first virtual router through the instruction, the operator sends a VR migration instruction through the management plane of the receiving cluster, the first electronic device serves as a receiver of the virtual router migration process, receives the VR migration instruction, determines the first virtual router to be migrated, and determines the second electronic device as a sender of the virtual router migration process according to the VRRP message of the first virtual router received by the first electronic device, thereby determining the sender and the receiver of the virtual router migration process.
Step 102: and performing first message interaction with the second electronic equipment.
And the first message interaction represents the interaction of the control message and is used for requesting the second electronic equipment to synchronize the session data of the first virtual router.
The first electronic equipment and the second electronic equipment perform first message interaction, the first message interaction is interaction of control messages, and the first electronic equipment requests the second electronic equipment to synchronize session data of the first virtual router through the first message interaction. Here, the Session data is data of a network Session, that is, Session data, and the Session data can implement the function of a virtual router.
Step 103: and performing second message interaction with the second electronic equipment.
And the second message interaction represents the interaction of the data messages and is used for synchronizing the session data of the first virtual router.
And the first electronic equipment and the second electronic equipment perform second message interaction, and the second message interaction is data message interaction and is used for synchronizing the session data of the first virtual router to the first electronic equipment by the second electronic equipment. And the second electronic equipment processes the session data of the first virtual router into a data packet and sends the data packet to the first electronic equipment in a data message mode through second message interaction. And the first electronic equipment acquires the session data of the first virtual router through the interaction of the second message and stores the session data.
Step 104: and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data.
After the session data of the first virtual router are synchronized, the first electronic device broadcasts the VRRP message of the first virtual router based on the configuration information and the session data of the first virtual router. The first electronic device may obtain configuration information of the first virtual router in a backup or other manner before the migration of the virtual router; configuration information of the first virtual router may also be obtained at the time of migration of the virtual router.
According to the scheme provided by the embodiment of the application, the migration process of the virtual router is driven through message interaction between the electronic devices, the session data synchronization process of the virtual router does not need to be controlled manually, the automatic adjustment of the deployment of the virtual router in the physical network is realized, and therefore the operation cost of the cluster is reduced.
As an embodiment of the present application, as shown in fig. 2, the performing a first message interaction with the second electronic device includes:
step 1021: and sending a first control message to the second electronic equipment.
The first control packet is used for requesting the second electronic device to synchronize session data of the first virtual router.
The first electronic equipment sends a first control message to the second electronic equipment, wherein the first control message is used for requesting the second electronic equipment to synchronize session data of the first virtual router by the first electronic equipment. The first control message may be a SYN message, or referred to as a synchronization message. Here, the second electronic device may learn the address of the first electronic device according to the first control message. Meanwhile, the first control message can play a role in limiting VRRP negotiation.
As mentioned previously, the first electronic device may obtain configuration information of the first virtual router at the time of migration of the virtual router. As an embodiment of the present application, as shown in fig. 3, after sending the first control packet to the second electronic device in step 1021, the method further includes:
Step 1022: and receiving a second control message sent by the second electronic equipment.
And the control packet of the second control packet carries configuration information for configuring the first virtual router.
After receiving a first control message sent by first electronic equipment, second electronic equipment responds to the first control message and sends a second control message carrying configuration information for configuring a first virtual router to the first electronic equipment. The second control message may be an ACK message or may be called an acknowledgement message. The first electronic device may obtain the configuration information of the first virtual router through the second control packet, so as to broadcast the VRRP packet of the first virtual router based on the configuration information and the session data of the first virtual router. Meanwhile, the first electronic device can determine the connectivity of the virtual network with the second electronic device by sending the first control message and receiving the second control message.
As mentioned above, after the session data synchronization of the first virtual router is completed, the first electronic device broadcasts the VRRP packet of the first virtual router based on the configuration information and the session data of the first virtual router. As an embodiment of the present application, as shown in fig. 4, broadcasting a VRRP packet of the first virtual router based on received session data includes:
Step 1041: and under the condition of receiving a third control message sent by the second electronic equipment, broadcasting the VRRP message of the first virtual router based on the received session data.
And the third control message represents that the session data of the first virtual router is sent completely.
And after the session data of the first virtual router is completely transmitted, the second electronic equipment transmits a third control message for representing that the transmission of the session data of the first virtual router is completed. The third control packet may be a FIN packet or an end packet. And under the condition that the first electronic equipment receives the third control message sent by the second electronic equipment, broadcasting the VRRP message of the first virtual router based on the received session data, thereby achieving the effect of virtual router migration. Meanwhile, the third control message may play a role in canceling the VRRP negotiation restriction.
As an embodiment of the application, in a process of message interaction between electronic devices and migration of a virtual router, the first electronic device and the second electronic device interact with each other based on TCP or UDP to control a message and a data message.
As an embodiment of the present application, a message in which the first electronic device interacts with the second electronic device includes a first field; the first field is used for identifying the corresponding message as a control message or a data message.
Here, the first field is used to identify the corresponding packet as a control packet or a data packet. Preferably, the first field may also identify the type of control message, such as a synchronization message, a reply message or an end message.
In practical applications, the data packet format of the UDP protocol packet shown in fig. 5 may be used, including data information and control information. The data information is mainly recorded in a specific Session, and each field of the control information corresponds to different contents: version is version information; magic is port conflict checking; flag is the flag to mark the type of control message; the type is to distinguish a control message or a data message; length is the packet length; auth type is encryption type; auth data len is the encryption data length; checksum is the checksum; the entity type is an instance type; the operation type is an operation type; the entity num is the number of instances; the Session type distinguishes between IPv4 and IPv 6.
Fig. 6 is a schematic implementation flow diagram of a migration method of a virtual router provided in an embodiment of the present application, which is applied to a second electronic device, where the second electronic device includes, but is not limited to, an electronic device such as a server and a terminal. The method comprises the following steps:
Step 601: and carrying out first message interaction with the first electronic equipment.
The first message interaction represents interaction of a control message, and is used for the first electronic device to request the second electronic device to synchronize session data of the first virtual router.
And the first virtual router running on the second electronic equipment broadcasts the VRRP message. The first electronic equipment determines a first virtual router to be migrated, and learns the address of the second electronic equipment according to the received VRRP message of the first virtual router. The first electronic equipment and the second electronic equipment perform first message interaction, the first message interaction is interaction of control messages, and the first electronic equipment requests the second electronic equipment to synchronize session data of the first virtual router through the first message interaction. The first electronic device may be an electronic device in the same cluster as the second electronic device.
Here, in a case where it is determined that there is a virtual router satisfying the setting condition, the first electronic device determines the virtual router satisfying the setting condition as the first virtual router to be migrated. As an embodiment of the present application, the first virtual router includes at least one of:
A virtual router operating at a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and the virtual router is determined through the instruction.
Determining a set condition of the first virtual router, including at least one of: a virtual router operating on a failed electronic device; the virtual router runs on the electronic equipment with the load higher than the set threshold value; and determining the virtual router through the instruction. Here, when determining the first virtual router, the first electronic device may determine, according to an instruction or information sent by the management plane of the receiving cluster, to determine a virtual router that satisfies the set condition.
The virtual router running on the failed electronic device or the high-load electronic device is migrated, so that the influence of the physical device on the network flow can be relieved, and the user experience is improved. Or the migrated virtual router is determined through the instruction, and the deployment of the virtual router in the physical network is adjusted by an operator without manually controlling the session data synchronization process of the virtual router, so that the automatic adjustment of the deployment of the virtual router in the physical network is realized, and the operation cost of the cluster is reduced.
Step 602: and performing second message interaction with the first electronic equipment.
And the second message interaction represents interaction of data messages and is used for synchronizing session data of the first virtual router to the first electronic device.
And the first electronic equipment and the second electronic equipment perform second message interaction, and the second message interaction is data message interaction and is used for synchronizing the session data of the first virtual router to the first electronic equipment by the second electronic equipment. And the second electronic equipment processes the session data of the first virtual router into a data packet and sends the data packet to the first electronic equipment in a data message mode through second message interaction. And the first electronic equipment acquires the session data of the first virtual router through the interaction of the second message and stores the session data. After the session data of the first virtual router are synchronized, the first electronic device broadcasts the VRRP message of the first virtual router based on the configuration information and the session data of the first virtual router.
According to the scheme provided by the embodiment of the application, the migration process of the virtual router is driven through message interaction between the electronic devices, the session data synchronization process of the virtual router does not need to be controlled manually, the automatic adjustment of the deployment of the virtual router in the physical network is realized, and therefore the operation cost of the cluster is reduced.
As an embodiment of the present application, as shown in fig. 7, the performing a first message interaction with a first electronic device includes:
step 6011: and receiving a first control message sent by the first electronic equipment.
The first control message is used for requesting the second electronic device to synchronize session data of the first virtual router.
The second electronic device receives a first control message sent by the first electronic device, wherein the first control message is used for the first electronic device to request the second electronic device to synchronize session data of the first virtual router. The first control message may be a SYN message, or referred to as a synchronization message. Here, the second electronic device may learn the address of the first electronic device from the first control message. Meanwhile, the first control message can play a role in limiting VRRP negotiation.
Step 6012: and responding to the first control message, and sending a second control message to the first electronic equipment.
Wherein the second control packet carries configuration information for configuring the first virtual router.
As mentioned previously, the first electronic device may obtain configuration information for the first virtual router at the time of migration of the virtual router. After receiving a first control message sent by the first electronic device, the second electronic device sends a second control message carrying configuration information for configuring the first virtual router to the first electronic device in response to the first control message. The second control message may be an ACK message, or referred to as an acknowledgement message. The second electronic device sends the configuration information of the first virtual router through the second control message, and the first electronic device can acquire the configuration information of the first virtual router, so that the VRRP message of the first virtual router can be broadcasted based on the configuration information and the session data of the first virtual router. Meanwhile, the first electronic device can determine the connectivity of the virtual network with the second electronic device by sending the first control message and receiving the second control message.
As an embodiment of the present application, as shown in fig. 8, after the session data of the first virtual router is completely sent, the method further includes:
step 603: deleting session data of the first virtual router; and/or sending a third control message to the first electronic equipment.
Wherein the third control packet represents that the session data transmission of the first virtual router is completed.
And the second electronic equipment performs second message interaction with the first electronic equipment and synchronizes session data of the first virtual router to the first electronic equipment. After the session data transmission of the first virtual router is completed, the second electronic device may perform at least one of the following operations: deleting the session data of the first virtual router; and sending a third control message which represents that the session data of the first virtual router is completely sent. The third control packet may be a FIN packet or an end packet. And under the condition that the first electronic equipment receives the third control message sent by the second electronic equipment, broadcasting the VRRP message of the first virtual router based on the received session data, thereby achieving the effect of virtual router migration. Meanwhile, the third control message may play a role in canceling the VRRP negotiation restriction.
As an embodiment of the application, in a process of message interaction between electronic devices and migration of a virtual router, the first electronic device and the second electronic device interact with each other based on TCP or UDP to control a message and a data message.
As an embodiment of the present application, a message in which the first electronic device interacts with the second electronic device includes a first field; the first field is used for identifying the corresponding message as a control message or a data message.
Here, the first field is used to identify the corresponding packet as a control packet or a data packet. Preferably, the first field may also identify the type of control message, such as a synchronization message, a response message or an end message.
The present application will be described in further detail with reference to the following application examples.
The prior technical scheme is generally grounded in physical equipment, is limited in application in a virtual scene, and has the following problems:
1) in a virtualization scene, a large number of Virtual Network Function (VNF) plug-ins are required, the Network topology is complex, and the risk of Network connectivity is high. The VNF is a virtualized network function, software that can provide specific network services, including but not limited to firewalls, virtual routers, and the like.
2) The Session synchronization function is continuously started, a certain proportion of bandwidth is occupied in a normal network scene, normal service flow is interfered, system resources are occupied, operation and maintenance personnel are required to control a synchronization flow, and the operation and maintenance cost is increased by checking a synchronization result in a passive query mode.
Based on this, the application embodiment provides a migration scheme of a virtual router, which distinguishes control messages and data messages by customizing a Session synchronization packet format, drives a Session synchronization state machine by means of the control messages, and automatically negotiates starting, synchronizing and terminating sessions in VR cross-host migration, thereby improving network detectability, saving system resources and reducing the burden of operation and maintenance personnel.
Super-fusion products usually require a plurality of physical servers to form a cluster mode for operation, and VRs in a cluster, especially boundary VRs, are usually calculated and selected to run in a specific physical server through a scheduling algorithm. Meanwhile, in order to ensure High Availability (HA), a physical server is usually calculated in the cluster through a scheduling algorithm to make a backup of the VR. HA is a solution for guaranteeing service continuity, and is usually used in a dual-computer cluster environment, where there are generally at least two nodes, and the nodes are divided into a master node and a slave node.
Fig. 9 shows a schematic page diagram provided in an application embodiment of the present application, where when a physical server where a VR is located fails or has a high load, a network flow through the VR may be affected, thereby affecting user experience. In actual practice, the state of the physical server is shown in fig. 10. To guarantee the user experience, as shown in fig. 11, it is usually necessary for the system administrator to perform a migration instruction operation on the designated VR, so as to migrate the VR from one affected server to another server with more sufficient resources. After a period of time, the VR migration is completed, and the page at this time is as shown in fig. 12, which shows that the network topology of the page does not change significantly, only the operating position of the VR changes, and it is ensured that the network does not flow out.
And triggering VR migration operation by a system administrator, wherein the migration operation is transparent to users. Host A, B backs up the VR configuration by negotiating via the VRRP protocol that host A is operating as the primary mode and that host B is operating as the backup mode, expecting that the VR will be migrated from host A to host C continuously. The system interaction is explained with reference to the migration method timing diagram of the virtual router provided in fig. 13, where the migration method of the virtual router at least includes:
1. a user triggers a migration command, a host C enters a migration state after receiving the command, learns the address of a target host A through a VRRP protocol and unicast-transmits a Session notification message SYN packet;
2. After receiving the SYN message, the host A learns the address of the host C, then sends a SYN ACK message for determination, and starts to package the self Session and send the self Session to the host C;
3. after receiving the Session data packet, the host C decapsulates and converts the Session data packet into Session storage to serve subsequent network flows;
4. after the host A finishes sending all sessions, sending a FIN message to inform the host C;
5. and the host C receives the FIN message to confirm the completion of Session synchronization and informs the user of the successful VR migration.
Session is a network Session, which refers to a time period during which an end user communicates with an interactive system, and generally refers to the time that the end user survives from registering to enter the system to logging off and exiting the system. VRRP adds a group of routers capable of bearing gateway function into a backup group to form a virtual router, and the election mechanism of VRRP determines which router bears the forwarding task, and the host in the local area network only needs to configure the virtual router as a default gateway.
In VR migration, VR needs to complete Session HA mechanism through message and VR configuration, and this application embodiment pushes negotiation process through a state machine. As shown in fig. 14, the state machine can be represented as:
INIT: an initial state, indicating that migration has not yet begun;
And (4) TRANS: a migration progress state which indicates that the migration is in progress and the Session is synchronous;
FIN: and a completion state, which indicates that the migration is finished and the Session synchronization work is completed.
According to this state machine model, the original VR and the migration VR may have different state triggering and converting mechanisms when encountering an event and receiving a Session sync message, such as the original VR state conversion shown in fig. 15 and the migration VR destination conversion shown in fig. 16.
According to the application embodiment, the Session HA data packet format is independently designed according to the design of the super-fusion product. As shown in fig. 5, the UDP protocol is extended by the packet format, which includes control information and data information. The description of the various fields of the control section is as follows: the data information is mainly recorded in a specific Session, and each field of the control information corresponds to different contents: version is version information; magic is port conflict checking; flag is the flag to mark the type of control message; the type is to distinguish a control message or a data message; length is the packet length; auth type is encryption type; auth data len is the length of encrypted data; checksum is the checksum; the entity type is an instance type; the operation type is an operation type; the entity num is the number of instances; the Session type distinguishes between IPv4 and IPv 6. The data part mainly records the interior of a specific Session.
Under the condition of fully considering the elasticity requirement of the three-layer network function of the cloud scene, the application embodiment realizes a Session synchronization message format based on the UDP protocol in a self-defined mode, and designs a Session synchronization state machine which meets the VR repeated migration scene. A Session synchronization mechanism in the VR migration process is realized in a virtual scene, a corresponding data packet format is set through a state machine, system CPU resources and network bandwidth are fully saved, and the operation and maintenance burden of a network administrator is relieved through one-click operation. Meanwhile, in a cloud scene, the VR can complete the migration function of the VR on different hosts under the condition of keeping Session uninterrupted according to the scheduling and distributing algorithm of physical resources. The utilization rate of physical resources is improved, the resource load of a cloud scene is balanced, the operation and maintenance of a cloud computing data center are facilitated, and the user cloud experience is improved.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a migration apparatus for a virtual router, which is applied to a first electronic device, and as shown in fig. 17, the apparatus includes:
a first processing unit 1701, configured to determine a second electronic device according to the received VRRP packet of the first virtual router; the second electronic device characterizes the electronic device running the first virtual router;
A first interacting unit 1702, configured to perform a first message interaction with the second electronic device; the first message interaction represents interaction of a control message, and is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
a second interaction unit 1703, configured to perform a second message interaction with the second electronic device; the second message interaction represents the interaction of data messages and is used for synchronizing the session data of the first virtual router;
a sending unit 1704, configured to broadcast, based on the received session data, the VRRP packet of the first virtual router after the session data of the first virtual router is synchronized.
Wherein, in an embodiment, the first interaction unit 1702 is configured to:
sending a first control message to the second electronic equipment; the first control message is used for requesting the second electronic device to synchronize session data of the first virtual router.
In one embodiment, the apparatus further comprises:
a first receiving unit, configured to receive a second control packet sent by the second electronic device after the first interacting unit 1702 sends the first control packet to the second electronic device; the second control packet represents a control packet of the second electronic device responding to the first control packet, and carries configuration information for configuring the first virtual router.
In one embodiment, the sending unit 1704 is configured to:
under the condition that a third control message sent by the second electronic equipment is received, broadcasting a VRRP message of the first virtual router based on received session data; and the third control message represents that the session data of the first virtual router is completely sent.
In one embodiment, the first electronic device and the second electronic device interact with each other based on TCP or UDP to control messages and data messages.
In one embodiment, a message interacted between the first electronic device and the second electronic device comprises a first field; the first field is used for identifying the corresponding message as a control message or a data message.
In one embodiment, the first virtual router comprises at least one of:
a virtual router operating at a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and determining the virtual router through the instruction.
In practical applications, the first processing unit 1701 and the sending unit 1704 may be implemented by a processor in a migration device based on a virtual router in combination with a communication interface, and the first interacting unit 1702, the second interacting unit 1703 and the first receiving unit may be implemented by a communication interface in a migration device based on a virtual router.
It should be noted that: in the migration apparatus for a virtual router provided in the foregoing embodiment, when the virtual router is migrated, only the division of each program module is described as an example, and in practical applications, the above processing may be allocated to different program modules as needed, that is, the internal structure of the apparatus may be divided into different program modules, so as to complete all or part of the above-described processing. In addition, the migration apparatus of the virtual router and the migration method embodiment of the virtual router provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
To implement the method according to the embodiment of the present application, an embodiment of the present application further provides a migration apparatus for a virtual router, where the migration apparatus is applied to a second electronic device, and as shown in fig. 18, the apparatus includes:
a third interaction unit 1801, configured to perform first message interaction with the first electronic device; the first message interaction represents interaction of a control message, and is used for the first electronic equipment to request the second electronic equipment to synchronize session data of the first virtual router;
a fourth interaction unit 1802, configured to perform a second message interaction with the first electronic device; the second packet interaction represents interaction of data packets, and is configured to synchronize session data of the first virtual router to the first electronic device.
In an embodiment, the third interaction unit 1801 is configured to:
receiving a first control message sent by the first electronic equipment; the first control message is used for requesting the second electronic device to synchronize session data of the first virtual router;
responding to the first control message, and sending a second control message to the first electronic equipment; the second control packet carries configuration information for configuring the first virtual router.
In one embodiment, after the session data transmission of the first virtual router is completed, the apparatus further includes:
a second processing unit, configured to delete session data of the first virtual router; and/or the presence of a gas in the gas,
sending a third control message to the first electronic device; and the third control message represents that the session data of the first virtual router is completely sent.
In one embodiment, the first electronic device and the second electronic device interact with each other based on a TCP or UDP control message and a data message.
In one embodiment, a first field is included in a message of the interaction between the first electronic device and the second electronic device; the first field is used for identifying the corresponding message as a control message or a data message.
In one embodiment, the first virtual router comprises at least one of:
a virtual router operating on a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and determining the virtual router through the instruction.
In practical applications, the third interaction unit 1801 and the fourth interaction unit 1802 may be implemented by a communication interface in a migration apparatus based on a virtual router, and the second processing unit may be implemented by a processor in the migration apparatus based on a virtual router in combination with the communication interface.
It should be noted that: in the migration apparatus of a virtual router provided in the foregoing embodiment, when the virtual router is migrated, only the division of each program module is illustrated, and in practical applications, the above processing may be allocated to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules to complete all or part of the above-described processing. In addition, the migration apparatus of the virtual router and the migration method of the virtual router provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the migration method of the virtual router in the embodiment of the present application, an embodiment of the present application further provides an electronic device. Fig. 19 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application, where as shown in fig. 19, the electronic device includes:
a communication interface 1 capable of performing information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For clarity of illustration, however, the various buses are labeled as bus system 4 in fig. 19.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 2 described in the embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the embodiment of the present application may be applied to the processor 2, or may be implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e., a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, where the computer program is executable by a processor 2 to perform the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media capable of storing program code.
Alternatively, the integrated unit described above may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media capable of storing program code.
It is understood that in the embodiments of the present application, user information is referred to, and when the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use and processing of relevant data need to comply with relevant laws and regulations and standards in relevant countries and regions.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict. Unless otherwise specified and limited, the term "coupled" is to be construed broadly, e.g., as meaning electrical connections, communications between two elements, direct connections, indirect connections through intermediary media, and the like, as well as the specific meaning of the terms as used herein.
In addition, in the examples of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a particular order or sequence. It should be understood that the terms first, second, third, etc. used herein are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in other sequences than those illustrated or described herein.
The term "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Various combinations of the specific features in the various embodiments described in the detailed description may be made without contradiction, for example, different embodiments may be formed by different combinations of the specific features, and in order to avoid unnecessary repetition, various possible combinations of the specific features in the present application will not be further described.

Claims (15)

1. A migration method of a virtual router is applied to a first electronic device, and comprises the following steps:
determining second electronic equipment according to a received Virtual Router Redundancy Protocol (VRRP) message of a first virtual router; the second electronic device characterizes the electronic device running the first virtual router;
performing first message interaction with the second electronic equipment; the first message interaction represents interaction of a control message, and is used for requesting the second electronic device to synchronize session data of the first virtual router;
performing second message interaction with the second electronic equipment; the second message interaction represents the interaction of the data messages and is used for synchronizing the session data of the first virtual router;
and after the session data of the first virtual router are synchronized, broadcasting the VRRP message of the first virtual router based on the received session data.
2. The method of claim 1, wherein the performing a first message interaction with the second electronic device comprises:
sending a first control message to the second electronic equipment; the first control packet is used for requesting the second electronic device to synchronize session data of the first virtual router.
3. The method of claim 2, wherein after the sending the first control packet to the second electronic device, the method further comprises:
receiving a second control message sent by the second electronic equipment; the second control packet represents a control packet of the second electronic device responding to the first control packet, and carries configuration information for configuring the first virtual router.
4. The method of claim 1, wherein broadcasting the VRRP message for the first virtual router based on the received session data comprises:
under the condition of receiving a third control message sent by the second electronic equipment, broadcasting a VRRP message of the first virtual router based on the received session data; and the third control message represents that the session data of the first virtual router is completely sent.
5. The method according to claim 1, wherein the first electronic device and the second electronic device interact control messages and data messages based on a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP).
6. The method according to claim 5, wherein the message that the first electronic device interacts with the second electronic device includes a first field; the first field is used for identifying the corresponding message as a control message or a data message.
7. The method of claim 1, wherein the first virtual router comprises at least one of:
a virtual router operating at a failed electronic device;
the virtual router runs on the electronic equipment with the load higher than the set threshold value;
and the virtual router is determined through the instruction.
8. A migration method of a virtual router is applied to a second electronic device, and comprises the following steps:
performing first message interaction with first electronic equipment; the first message interaction represents interaction of a control message, and is used for the first electronic equipment to request the second electronic equipment to synchronize session data of the first virtual router;
Performing second message interaction with the first electronic equipment; the second packet interaction represents interaction of data packets, and is used for synchronizing session data of the first virtual router to the first electronic device.
9. The method of claim 8, wherein the first messaging interaction with the first electronic device comprises:
receiving a first control message sent by the first electronic equipment; the first control message is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
responding to the first control message, and sending a second control message to the first electronic equipment; the second control packet carries configuration information for configuring the first virtual router.
10. The method of claim 8, wherein after the sending of the session data by the first virtual router is completed, the method further comprises:
deleting session data of the first virtual router; and/or the presence of a gas in the atmosphere,
sending a third control message to the first electronic device; and the third control message represents that the session data of the first virtual router is completely sent.
11. The method of claim 8, wherein the first electronic device includes a first field in the message interacting with the second electronic device; the first field is used for identifying the corresponding message as a control message or a data message.
12. A migration apparatus of a virtual router, applied to a first electronic device, includes:
the first processing unit is used for determining second electronic equipment according to the received VRRP message of the first virtual router; the second electronic device characterizes the electronic device running the first virtual router;
the first interaction unit is used for performing first message interaction with the second electronic equipment; the first message interaction represents interaction of a control message, and is used for requesting the second electronic equipment to synchronize session data of the first virtual router;
the second interaction unit is used for performing second message interaction with the second electronic equipment; the second message interaction represents the interaction of data messages and is used for synchronizing the session data of the first virtual router;
and the sending unit is used for broadcasting the VRRP message of the first virtual router based on the received session data after the session data of the first virtual router is synchronized.
13. A migration apparatus of a virtual router, applied to a second electronic device, includes:
the third interaction unit is used for performing first message interaction with the first electronic equipment; the first message interaction represents interaction of a control message, and is used for the first electronic equipment to request the second electronic equipment to synchronize session data of the first virtual router;
The fourth interaction unit is used for performing second message interaction with the first electronic equipment; the second packet interaction represents interaction of data packets, and is configured to synchronize session data of the first virtual router to the first electronic device.
14. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 or the steps of the method of any one of claims 8 to 11 when running the computer program.
15. A storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements at least one of:
the steps of the method of any one of claims 1 to 7;
the process steps of any one of claims 8 to 11.
CN202210332716.6A 2022-03-30 2022-03-30 Migration method and device of virtual router, electronic equipment and storage medium Active CN114760242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210332716.6A CN114760242B (en) 2022-03-30 2022-03-30 Migration method and device of virtual router, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210332716.6A CN114760242B (en) 2022-03-30 2022-03-30 Migration method and device of virtual router, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114760242A true CN114760242A (en) 2022-07-15
CN114760242B CN114760242B (en) 2024-04-09

Family

ID=82329081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210332716.6A Active CN114760242B (en) 2022-03-30 2022-03-30 Migration method and device of virtual router, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114760242B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
US20110032830A1 (en) * 2009-08-06 2011-02-10 Jacobus Van Der Merwe Live Router Migration
CN102185774A (en) * 2011-05-10 2011-09-14 中兴通讯股份有限公司 Method, monitor and system for seamless migration of virtual machine
CN103139077A (en) * 2011-11-28 2013-06-05 百度在线网络技术(北京)有限公司 Method and system and device for expanding IPv6 virtual router
CN104023095A (en) * 2014-06-23 2014-09-03 杭州华三通信技术有限公司 Virtual gateway medium access control address response method and device
US20150043379A1 (en) * 2013-08-09 2015-02-12 Fujitsu Limited Method of controlling virtual router, computer-readable recording medium, and control device
US20160062779A1 (en) * 2014-08-27 2016-03-03 Red Hat Israel, Ltd. Announcing virtual machine migration
CN106911534A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of live migration of virtual machine method and its system
US9933957B1 (en) * 2015-12-30 2018-04-03 EMC IP Holding Company LLC Non-disruptively migrating virtual disks using virtualization appliance
CN107911291A (en) * 2017-11-28 2018-04-13 中国移动通信集团湖北有限公司 VRRP routers switching method, router, VRRP active-standby switch system and storage medium
US10228959B1 (en) * 2011-06-02 2019-03-12 Google Llc Virtual network for virtual machine communication and migration
CN109739618A (en) * 2018-12-10 2019-05-10 新华三云计算技术有限公司 Virtual machine migration method and device
CN109753346A (en) * 2018-12-25 2019-05-14 新华三云计算技术有限公司 A kind of live migration of virtual machine method and device
US20190272219A1 (en) * 2016-12-28 2019-09-05 Ping An Technology (Shenzhen) Co., Ltd. Quick recovery method, device and system of a virtual machine
CN112615778A (en) * 2020-11-06 2021-04-06 北京东土军悦科技有限公司 Message forwarding method, device, router, storage medium and system
CN114003334A (en) * 2020-07-28 2022-02-01 中移(苏州)软件技术有限公司 Virtual machine live migration network interruption optimization method, device, equipment, storage medium and system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
US20110032830A1 (en) * 2009-08-06 2011-02-10 Jacobus Van Der Merwe Live Router Migration
CN102185774A (en) * 2011-05-10 2011-09-14 中兴通讯股份有限公司 Method, monitor and system for seamless migration of virtual machine
US10228959B1 (en) * 2011-06-02 2019-03-12 Google Llc Virtual network for virtual machine communication and migration
CN103139077A (en) * 2011-11-28 2013-06-05 百度在线网络技术(北京)有限公司 Method and system and device for expanding IPv6 virtual router
US20150043379A1 (en) * 2013-08-09 2015-02-12 Fujitsu Limited Method of controlling virtual router, computer-readable recording medium, and control device
CN104023095A (en) * 2014-06-23 2014-09-03 杭州华三通信技术有限公司 Virtual gateway medium access control address response method and device
US20160062779A1 (en) * 2014-08-27 2016-03-03 Red Hat Israel, Ltd. Announcing virtual machine migration
US9933957B1 (en) * 2015-12-30 2018-04-03 EMC IP Holding Company LLC Non-disruptively migrating virtual disks using virtualization appliance
US20190272219A1 (en) * 2016-12-28 2019-09-05 Ping An Technology (Shenzhen) Co., Ltd. Quick recovery method, device and system of a virtual machine
CN106911534A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of live migration of virtual machine method and its system
CN107911291A (en) * 2017-11-28 2018-04-13 中国移动通信集团湖北有限公司 VRRP routers switching method, router, VRRP active-standby switch system and storage medium
CN109739618A (en) * 2018-12-10 2019-05-10 新华三云计算技术有限公司 Virtual machine migration method and device
CN109753346A (en) * 2018-12-25 2019-05-14 新华三云计算技术有限公司 A kind of live migration of virtual machine method and device
CN114003334A (en) * 2020-07-28 2022-02-01 中移(苏州)软件技术有限公司 Virtual machine live migration network interruption optimization method, device, equipment, storage medium and system
CN112615778A (en) * 2020-11-06 2021-04-06 北京东土军悦科技有限公司 Message forwarding method, device, router, storage medium and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李同标;张晓哲;高先明;邓文平;马世聪;: "基于能耗的虚拟路由器转发实例动态迁移机制研究", 计算机应用与软件, no. 08 *

Also Published As

Publication number Publication date
CN114760242B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US10567340B2 (en) Data center system
CN107846315B (en) Service migration method, device and system of data center
CN112787931B (en) Message transmission method, proxy node and storage medium
EP3509253A1 (en) Inter-cloud communication method and related device, inter-cloud communication configuration method and related device
EP3437259B1 (en) Interworking between physical network and virtual network
US11398956B2 (en) Multi-Edge EtherChannel (MEEC) creation and management
CN111736958B (en) Virtual machine migration method, system, computer equipment and storage medium
US9036638B2 (en) Avoiding unknown unicast floods resulting from MAC address table overflows
US10572291B2 (en) Virtual network management
CN112929274A (en) Method, equipment and system for processing route
US20140068045A1 (en) Network system and virtual node migration method
EP3197107A1 (en) Message transmission method and apparatus
CN111682927B (en) Message synchronization method, device, equipment and medium based on MLAG environment
CN113326101B (en) Thermal migration method, device and equipment based on remote direct data storage
EP3783843B1 (en) Packet transmission between different data centers over segment vxlan tunnels
US10447652B2 (en) High availability bridging between layer 2 networks
CN112887229B (en) Session information synchronization method and device
EP4033704A1 (en) Routing information transmission method and apparatus, and data center interconnection network
CN103631652A (en) Method and system for achieving virtual machine migration
WO2021098727A1 (en) Network deployment method and system
CN115442184B (en) Access system and method, access server, system and storage medium
US20180262387A1 (en) Restoring control-plane connectivity with a network management entity
EP3038296A1 (en) Pool element status information synchronization method, pool register and pool element
CN109302328B (en) Hot standby switching method and system for VXLAN (virtual extensible local area network)
WO2022017099A1 (en) Communication method, cp device, and nat device

Legal Events

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