WO2015051548A1 - Virtual network migration method, apparatus and device - Google Patents

Virtual network migration method, apparatus and device Download PDF

Info

Publication number
WO2015051548A1
WO2015051548A1 PCT/CN2013/085106 CN2013085106W WO2015051548A1 WO 2015051548 A1 WO2015051548 A1 WO 2015051548A1 CN 2013085106 W CN2013085106 W CN 2013085106W WO 2015051548 A1 WO2015051548 A1 WO 2015051548A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual network
network entity
migration
controller
switch
Prior art date
Application number
PCT/CN2013/085106
Other languages
French (fr)
Chinese (zh)
Inventor
周伟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/085106 priority Critical patent/WO2015051548A1/en
Priority to CN201380003680.6A priority patent/CN104995600B/en
Publication of WO2015051548A1 publication Critical patent/WO2015051548A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Definitions

  • the present invention relates to the field of communications, and in particular, to a virtual network migration method, apparatus, and device.
  • BACKGROUND [02] As a key node in a network, a switch has a limited interface open under the monopoly of an existing device provider, and many open ideas and protocols in the network cannot be tested and verified. OpenFlow emerged as an open interface and exchange standard that supports multiple controls. OpenFlow transforms traditional physical fixed hardware into a dynamically variable software-defined network (SDN), which separates the control plane from the forwarding plane.
  • SDN software-defined network
  • OpenFlow switches include flow meter (Flow Table) secure channel (Secure Channel) and OpenFlow protocol (OF Protocol) 0 switch in the flow table stored in the core of the information to implement lookup, forwarding, statistics and Filtering and other functions, through the OpenFlow protocol through a secure channel (Secure Channel) connected to an external controller (Controller), the controller queries and manages the flow table.
  • the flow table contains match field counters (counters) and instruction sets (instructions). Different vendors can design different flow tables according to their needs.
  • FlowVisor Based on the existing OpenFlow network, virtual network entities such as FlowVisor provide a technology for network virtualization. FlowVisor implements network virtualization between controllers and switches by using network sharding.
  • FIG. 1 is a schematic diagram of the network structure of FlowVisor.
  • the FlowVisor functions as a switch and controller between the controller and the switch. It also analyzes the OpenFlow protocol packets and analyzes the flow table. Then, the OpenFlow protocol packets are connected to different controllers and switches.
  • the same switch can actually be connected to multiple different controllers, that is, multiple controllers can control messages on one switch.
  • one control device can also control multiple switches.
  • the underlying transmission data can be processed by the controller through Slicing, which is represented by the function of network virtualization.
  • One of the current technologies for network virtualization is virtual machine migration technology, which means that virtual machines running on one physical machine can be smoothly migrated to another physical machine to maintain the original interconnection protocol (IP) address. , Media Access Control (MAC, Media Access Control) address and other information, and keep the upper layer of business uninterrupted. Since the computer network is composed of multiple virtual machines, the migration between the above virtual computer networks can be achieved by separately migrating each virtual machine. However, when this method is applied to a virtual network composed of Flowvisor, if the migration of each virtual machine is implemented by a single machine migration, the migration of the virtual network composed of Flowvisor cannot be realized. Summary of the invention
  • the embodiment of the invention provides a virtual network migration method, device and device, which can implement migration of a virtual network composed of virtual network entities.
  • a virtual network migration method including:
  • the first virtual network entity sends context information of the virtual network to the second virtual network entity;
  • the first virtual network entity disconnects the connection with each controller and each switch according to the context information, and deactivates the connection interface setting with each controller and each switch, so that the second virtual network entity according to the context
  • the information is activated with the connection interface settings of each controller and each switch, and establishes a connection with each controller and each switch.
  • the first virtual network entity disconnects from each controller according to the context information. Before the switch is connected, it also includes:
  • the first virtual network entity sends a switch migration request to each controller that is connected to the controller; the switch migration request includes: an IP address of the second virtual network entity; and the first virtual network entity receives the Switch migration response; and,
  • the first virtual network entity sends a controller migration request to each switch connected to the controller; the controller migration request includes: an IP address of the second virtual network entity; and the first virtual network entity receives the sending by the switch The controller migrates the response.
  • the first virtual network entity sends the virtual network to the second virtual network entity Before the context information, it also includes:
  • the first virtual network entity sends a network migration request to the second virtual network entity
  • the first virtual network entity receives a network migration response sent by the second virtual network entity;
  • the shift response is sent by the second virtual network entity when determining to accept the network migration request of the first virtual network entity according to the network migration request.
  • the method further includes:
  • the first virtual network entity receives the migration completion response sent by the second virtual network entity.
  • the second aspect provides a virtual network migration method, including:
  • the second virtual network entity receives the context information of the virtual network sent by the first virtual network entity
  • the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
  • the method further includes:
  • the second virtual network entity receives the network migration request sent by the first virtual network entity
  • the second virtual network entity determines to accept the request of the first virtual network entity according to the network migration request, the second virtual network entity sends a network migration response to the first virtual network entity.
  • the second virtual network entity receives the context information, Before establishing a connection with each switch, it also includes:
  • the second virtual network entity receives a migration completion request sent by the first virtual network entity when determining that the context information is transmitted;
  • the second virtual network entity sends a migration completion response to the first virtual network entity.
  • a virtual network migration apparatus including:
  • a first sending unit configured to send context information of the virtual network to the second virtual network entity
  • a first connecting unit configured to disconnect the connection between each controller and each switch according to the context information sent by the first sending unit
  • a first processing unit configured to deactivate a connection interface setting with each controller and each switch, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and each The controller establishes a connection with each switch.
  • the first sending unit is further configured to: send a switch migration request to each controller that is connected to the device; And including: an IP address of the second virtual network entity; sending a controller migration request to each switch connected to the device; the controller migration request includes: an IP address of the second virtual network entity;
  • the device further includes: a first receiving unit, configured to receive a switch migration response sent by the controller; and, receive a switch migration response sent by the controller.
  • the first sending unit is further configured to: send to the second virtual network entity Network migration request;
  • the first receiving unit is further configured to: receive a network migration response sent by the second virtual network entity, where the network migration response is determined by the second virtual network entity to accept the network migration of the first virtual network entity according to the network migration request. Sent when requested.
  • a sending unit is further configured to: when determining that the context information is transmitted, send a migration completion request to the second virtual network entity;
  • the first receiving unit is further configured to: receive a migration completion response sent by the second virtual network entity.
  • a virtual network migration apparatus including:
  • a second receiving unit configured to receive context information of the virtual network sent by the first virtual network entity
  • a second processing unit configured to activate a connection interface setting with each controller and each switch according to the context information received by the second receiving unit
  • the second connection unit is configured to establish a connection with each controller and each switch according to the context information received by the second receiving unit.
  • the second receiving unit is further configured to: receive a network migration request that is sent by the first virtual network entity;
  • the device further includes: a second sending unit, configured to send a network migration response to the first virtual network entity when determining, by the network migration request, the request to accept the first virtual network entity.
  • a second sending unit configured to send a network migration response to the first virtual network entity when determining, by the network migration request, the request to accept the first virtual network entity.
  • the second receiving unit is further configured to: receive the first virtual network entity Determining a migration completion request sent when the context information is transmitted;
  • the second sending unit is further configured to: send a migration completion response to the first virtual network entity.
  • the fifth aspect provides a first virtual network entity, including: a processor and a transceiver; [49] a transceiver, configured to send context information of the virtual network to the second virtual network entity; disconnect the connection with each controller and each switch according to the context information;
  • the processor is used to deactivate the connection interface settings with each controller and each switch.
  • the transceiver is further configured to:
  • the switch migration request is sent to each controller connected to the controller, and the switch migration request includes: The IP address of the virtual network entity; receiving the switch migration response sent by the controller; and sending a controller migration request to each switch connected to the controller; the controller migration request includes: an IP address of the second virtual network entity Receiving a controller migration response sent by the switch.
  • the transceiver is further configured to: send to the second virtual network entity Before the context information of the virtual network, sending a network migration request to the second virtual network entity; receiving a network migration response sent by the second virtual network entity; the network migration response is determined by the second virtual network entity according to the network migration request Sent when a virtual network entity's network migration request is made.
  • the transceiver is further configured to: after sending the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and the switch, determining that the context information is transmitted, sending the migration to the second virtual network entity Completing the request; receiving a migration completion response sent by the second virtual network entity.
  • the sixth aspect provides a second virtual network entity, including a transceiver and a processor, where
  • a transceiver configured to receive context information of a virtual network sent by the first virtual network entity; establish a connection with each controller and each switch;
  • the processor is used to activate the connection interface settings with each controller and each switch.
  • the transceiver is further configured to: before receiving the context information, receive a network migration request sent by the first virtual network entity; When the network migration request determines that the request of the first virtual network entity is accepted, the network migration response is sent to the first virtual network entity.
  • the transceiver is further configured to: after receiving the context information, Before receiving the connection with each controller and each switch, receiving the first virtual network entity determines that the context information is transmitted a migration completion request sent over time; sending a migration completion response to the first virtual network entity.
  • the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Deactivating a connection interface setting with each controller and each switch, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby realizing The migration of virtual networks.
  • FIG. 1 is a schematic diagram of a network structure of a prior art Flow Visor
  • FIG. 2 is a schematic diagram of a first embodiment of a virtual network migration method according to the present invention.
  • FIG. 3 is a schematic diagram of a second embodiment of a virtual network migration method according to the present invention.
  • FIG. 4 is a schematic diagram of a third embodiment of a virtual network migration method according to the present invention.
  • FIG. 5 is a schematic diagram of a fourth embodiment of a virtual network migration method according to the present invention.
  • FIG. 6 is a schematic diagram of a first embodiment of a virtual network migration apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of a second embodiment of a virtual network migration apparatus according to the present invention.
  • FIG. 8 is a schematic diagram of a first virtual network entity according to the present invention.
  • FIG. 9 is a schematic diagram of a second virtual network entity according to the present invention. detailed description
  • FIG. 2 is a schematic diagram of a first embodiment of a virtual network migration method according to the present invention, where the method includes:
  • Step 201 The first virtual network entity sends context information of the virtual network to the second virtual network entity.
  • Step 202 The first virtual network entity disconnects from each controller and each according to the context information.
  • the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Activating connection interface settings with each controller and each switch, so that the second virtual network entity activates connection interface settings with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby realizing Virtual network connection;
  • the first virtual network entity disconnects from each controller and each switch, and the second virtual network entity establishes a connection with each controller and each switch, thereby ensuring continuity of the virtual network service.
  • FIG. 3 is a schematic diagram of a second embodiment of a virtual network migration method according to the present invention, where the method includes:
  • Step 301 The second virtual network entity receives the context information of the virtual network sent by the first virtual network entity.
  • Step 302 The second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
  • the second virtual network entity receives the context information, activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing Migration of virtual networks.
  • FIG. 4 is a schematic diagram of a third embodiment of a virtual network migration method according to the present invention, where the method includes:
  • Step 401 The first virtual network entity sends a network migration request to the second virtual network entity.
  • the network migration request may be implemented by using a normal Transmission Control Protocol (TCP) or a Stream Control Transmission Protocol (SCTP) request message, or may be customized through a virtual network entity. achieve.
  • TCP Transmission Control Protocol
  • SCTP Stream Control Transmission Protocol
  • the network migration request may include: information about IP address information, network specification size, and migration reason of the first virtual network entity, where the related information may be provided to the second virtual network entity, so that the second virtual network The entity decides whether to accept the virtual network migration to the first virtual network entity.
  • Step 402 The second virtual network entity sends a network migration response to the first virtual network entity when determining to accept the migration of the virtual network according to the network migration request.
  • the network migration response can be implemented by using a normal TCP or SCTP request message, It can be implemented through messages customized between virtual network entities.
  • the network migration response is used to notify the first virtual network entity that the second virtual network entity accepts migration of the virtual network.
  • Step 403 The first virtual network entity sends context information of the virtual network to the second virtual network entity.
  • the context information includes: controller information connected to the virtual network, switch information connected to the virtual network, flow fragmentation information, control information of the first virtual network entity, and the like, and the first virtual network entity and the Interface information of each controller and each switch.
  • Step 404 The first virtual network entity determines to send a migration completion request to the second virtual network entity when the context information is transmitted.
  • the migration completion request may be implemented by using a normal TCP or SCTP request message, or may be implemented by a customized message between virtual network entities.
  • Step 405 The second virtual network entity sends a migration completion response to the first virtual network entity.
  • the migration completion response may be implemented by a normal TCP or SCTP request message, or may be implemented by a customized message between virtual network entities.
  • the migration completion response is for notifying the first virtual network entity that the second virtual network entity has received the context information and the migration completion request.
  • Step 406 The first virtual network entity disconnects the connection with each controller and each switch according to the context information, deactivates the connection interface setting with each controller and each switch; and, the second virtual network entity A connection interface setting with each controller and each switch is activated according to the context information, and a connection is established with each controller and each switch.
  • step 404 all virtual network context information migration has been completed, that is, the migration of the virtual network is completed; in step 405, the first virtual network entity is disconnected from each controller and each switch. Connecting, deactivating interface settings connected to each controller and each switch, and the second virtual network entity activates interface settings with each controller and each switch, establishes a connection with each controller and each switch, and is thereby connected by the second virtual The network entity maintains the context information of the original virtual network, thereby completing the migration of the entire virtual network. Since the second virtual network entity completely replicates the context information of the virtual network maintained by the first virtual network entity, communication between the subsequent controller and the switch and the second virtual network entity where the virtual network is located will continue to be maintained.
  • FIG. 5 is a schematic diagram of a fourth embodiment of a virtual network migration method according to the present invention, where the method includes:
  • Step 501 505 is the same as step 401 405, and will not be described here.
  • Step 506 The first virtual network entity sends a switch migration request to each controller that is connected to the controller.
  • the switch migration request includes: an IP address of the second virtual network entity;
  • the switch migration request is used to notify the controller that the switch connected to the controller needs to be migrated to the device corresponding to the IP address carried by the request.
  • Step 507 The first virtual network entity receives a switch migration response sent by the controller.
  • the switch migration response is used to inform the first virtual network entity that the controller has accepted the migration request of the switch.
  • Step 508 The first virtual network entity sends a controller migration request to each switch that is connected to the switch; the controller migration request includes: an IP address of the second virtual network entity;
  • the controller migration request is used to notify the switch that the controller connected to the switch needs to be migrated to the device corresponding to the IP address carried by the request.
  • Step 509 The first virtual network entity receives a controller migration response sent by the switch.
  • the controller migration response is for communicating to the first virtual network entity that the switch has accepted the migration request of the controller.
  • the controller migration request, the controller migration response, the switch migration request, and the switch migration response may all be implemented by using a normal TCP or SCTP request message, or may be implemented by a customized message between the virtual network entities.
  • Step 510 is the same as step 406, and is not described here.
  • step of the second virtual network entity activating the connection interface setting with each controller and each switch may be performed at any time between steps 504 510, which is not limited herein.
  • the embodiments of the present invention are particularly applicable to the following scenarios:
  • the two virtual network entities are peer-to-peer virtual network entities.
  • the first virtual network entity establishes a connection with the controller and the switch to construct a virtual network; and, the second virtual network entity also establishes a connection with the controller and the switch, and constructs a virtual network, as shown in FIG. Not shown in the embodiment of the invention A controller and switch connected to a second virtual network entity.
  • the migration of all the virtual network context information is completed through the foregoing steps, that is, the migration of the virtual network is completed; and then, the first virtual network entity disconnects the connection with each controller and each switch.
  • Deactivating interface settings connected to each controller and each switch, and the second virtual network entity activates interface settings with each controller and each switch, establishes a connection with each controller and each switch, and is thereby connected by the second virtual network
  • the entity maintains the context information of the original virtual network, thereby completing the migration of the entire virtual network.
  • the controller and the switch that previously connected to the first virtual network entity are subsequently followed by the second The virtual network entity remains in communication.
  • FIG. 6 is a schematic diagram of a first embodiment of a virtual network migration apparatus according to the present invention.
  • the apparatus 600 includes:
  • the first sending unit 610 is configured to send context information of the virtual network to the second virtual network entity.
  • the first connecting unit 620 is configured to disconnect the connection between each controller and each switch according to the context information sent by the first sending unit 610.
  • the first processing unit 630 is configured to: according to the context information sent by the first sending unit 610, deactivate a connection interface setting with each controller and each switch, so that the second virtual network entity is activated according to the context information.
  • the connection interface with each controller and each switch is set up to establish a connection with each controller and each switch.
  • the first sending unit 610 is further configured to: send a switch migration request to each controller that is connected to the device; the switch migration request includes: an IP address of the second virtual network entity; Each switch connected to the device sends a controller migration request; the controller migration request includes: an IP address of the second virtual network entity;
  • the device 600 may further include: a first receiving unit, configured to receive a switch migration response sent by the controller; and receive a switch migration response sent by the controller.
  • the first sending unit 610 is further configured to: send a network migration request to the second virtual network entity;
  • the first receiving unit may be further configured to: receive a network migration response sent by the second virtual network entity, where the network migration response is determined by the second virtual network entity to receive the network of the first virtual network entity according to the network migration request. Sent when a migration request.
  • the first sending unit 610 is further configured to: when determining that the context information is transmitted, The second virtual network entity sends a migration completion request;
  • the first receiving unit is further configured to: receive a migration completion response sent by the second virtual network entity.
  • the context information of the virtual network is sent to the second virtual network entity; according to the context information, the connection with each controller and each switch is disconnected, and the connection with each controller and each switch is activated.
  • the interface is configured, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing a connection of the virtual network;
  • the first virtual network entity disconnects the connection with each controller and each switch, and the connection of the second virtual network entity with each controller and each switch ensures continuity of the virtual network service.
  • FIG. 7 is a schematic diagram of a second embodiment of a virtual network migration apparatus according to the present invention.
  • the apparatus 700 includes:
  • the second receiving unit 710 is configured to receive context information of the virtual network sent by the first virtual network entity.
  • the second processing unit 720 is configured to activate, according to the context information received by the second receiving unit 710, a connection interface setting with each controller and each switch;
  • the second connecting unit 730 is configured to establish a connection with each controller and each switch according to the context information received by the second receiving unit 710.
  • the second receiving unit 710 is further configured to: receive a network migration request sent by the first virtual network entity;
  • the method further includes: a second sending unit, configured to send a network migration response to the first virtual network entity when determining, by the network migration request, the request to accept the first virtual network entity.
  • the second receiving unit 710 is further configured to: receive, by the first virtual network entity, a migration completion request sent to the second virtual network entity when determining that the context information is transmitted;
  • the second sending unit is further configured to: send a migration completion response to the first virtual network entity.
  • FIG. 8 is a schematic structural diagram of a first virtual network entity according to an embodiment of the present invention.
  • the first virtual network entity 800 includes: a processor 810, a memory 820, a transceiver 830, and a bus 840.
  • the processor 810, the memory 820, and the transceiver 830 are connected to each other through a bus 840; the bus 840 may be an ISA bus, a PCI bus, or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
  • Memory 820 used to store the program.
  • the program can include program code, the program code including computer operating instructions.
  • Memory 820 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the transceiver 830 is used to connect to other devices and to communicate with other devices.
  • the transceiver 830 is configured to: send context information of the virtual network to the second virtual network entity; disconnect the connection with each controller and each switch according to the context information.
  • the processor 810 executes the program code for deactivating connection interface settings with respective controllers and respective switches.
  • the transceiver 830 is further configured to: after sending the context information, send a switch migration request to each controller connected to the controller, before disconnecting the connection with each controller and the switch according to the context information;
  • the switch migration request includes: an IP address of the second virtual network entity; receiving a switch migration response sent by the controller; and sending a controller migration request to each switch connected to the controller;
  • the controller migration request includes : an IP address of the second virtual network entity; receiving a controller migration response sent by the switch.
  • the transceiver 830 is further configured to: send a network migration request to the second virtual network entity before sending the context information of the virtual network to the second virtual network entity; receive the network migration sent by the second virtual network entity The network migration response is sent by the second virtual network entity when determining, according to the network migration request, that the network migration request of the first virtual network entity is accepted.
  • the transceiver 830 may be further configured to: after sending the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and the switch, determining that the context information is transmitted, Sending a migration completion request to the second virtual network entity; receiving a migration completion response sent by the second virtual network entity.
  • the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Activating a connection interface setting with each controller and each switch, so that the second virtual network entity activates the connection interface setting with each controller and each switch according to the context information, and connects with each controller and each switch, thereby realizing Virtual network connection; [145] Moreover, the first virtual network entity disconnects the connection with each controller and each switch, and the connection of the second virtual network entity with each controller and each switch ensures continuity of the virtual network service.
  • FIG. 9 is a schematic structural diagram of a first virtual network entity according to an embodiment of the present invention.
  • the first virtual network entity 900 includes: a processor 910, a memory 920, a transceiver 930, and a bus 940.
  • the processor 910, the memory 920, and the transceiver 930 are connected to each other through a bus 940; the bus 940 can be an ISA bus, a PCI bus, or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • Memory 920 used to store programs.
  • the program can include program code, the program code including computer operating instructions.
  • Memory 920 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the transceiver 930 is used to connect to other devices and to communicate with other devices.
  • the transceiver 930 is configured to: receive context information of the virtual network sent by the first virtual network entity; establish a connection with each controller and each switch.
  • the processor 910 executes the program code for activating connection interface settings with respective controllers and respective switches.
  • the transceiver 930 may be further configured to: before receiving the context information, receive a network migration request sent by the first virtual network entity; and determine, according to the network migration request, a request to accept the first virtual network entity. Send a network migration response to the first virtual network entity.
  • the transceiver 930 is further configured to: after receiving the context information, before receiving the connection with each controller and each switch, receiving a migration that is sent by the first virtual network entity when determining that the context information is transmitted. Completing the request; sending a migration completion response to the first virtual network entity.
  • the second virtual network entity receives the context information, activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing Migration of virtual networks.
  • the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium such as a ROM/RAM. , disk, CD, etc., including a number of instructions to make a computer device (can be a personal computer, server, or network device, etc.) The methods described in various embodiments of the invention or in certain portions of the embodiments are performed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a virtual network migration method, apparatus and device. The method comprises: a first virtual network entity sending context information of a virtual network to a second virtual network entity; the first virtual network entity disconnecting connections with controllers and switches according to the context information, and deactivating connection interface settings with the controllers and the switches, so that the second virtual network entity activates, according to the context information, connection interface settings with the controllers and the switches, so as to establish connections with the controllers and the switches. The method, the apparatus and the device can implement migration of a virtual network formed by a virtual network entity.

Description

虚拟网络迁移方法、 装置及设备  Virtual network migration method, device and device
技术领域 Technical field
[01] 本发明涉及通信领域, 尤其涉及虚拟网络迁移方法、 装置及设备。 背景技术 [02] 交换机作为网络中的关键节点,在现有设备提供商的垄断之下开放的接口十 分有限, 网络中的很多开放想法和协议都无法进行测试与验证。 OpenFlow 作为 一套开放接口、 支持多控制的交换标准应运而生。 OpenFlow 将传统的物理固定 的硬件改造成为动态可变的软件可定义网络 (SDN, Software Defined Network), 实现了控制面与转发面的分离。 [01] The present invention relates to the field of communications, and in particular, to a virtual network migration method, apparatus, and device. BACKGROUND [02] As a key node in a network, a switch has a limited interface open under the monopoly of an existing device provider, and many open ideas and protocols in the network cannot be tested and verified. OpenFlow emerged as an open interface and exchange standard that supports multiple controls. OpenFlow transforms traditional physical fixed hardware into a dynamically variable software-defined network (SDN), which separates the control plane from the forwarding plane.
[03] OpenFlow交换机 (Switch) 的组成部分包括流表 (Flow Table ) 安全通道 ( Secure Channel) 和 OpenFlow协议 (OF Protocol ) 0 交换机在流表中存储最核 心的信息来实现查找、 转发、 统计和过滤等功能, 通过 OpenFlow协议经过一个 安全通道 (Secure Channel) 连接到外部的控制器 (Controller), 控制器对流表进 行查询和管理。 流表包含匹配域字段 (match field ) 计数器 (counters) 和指令 集 (instructions), 不同的厂商可以根据各自的需求设计功能各异的流表。 Part [03] OpenFlow switches (Switch) include flow meter (Flow Table) secure channel (Secure Channel) and OpenFlow protocol (OF Protocol) 0 switch in the flow table stored in the core of the information to implement lookup, forwarding, statistics and Filtering and other functions, through the OpenFlow protocol through a secure channel (Secure Channel) connected to an external controller (Controller), the controller queries and manages the flow table. The flow table contains match field counters (counters) and instruction sets (instructions). Different vendors can design different flow tables according to their needs.
[04] 在现有 OpenFlow网络的基础上, 虚拟网络实体例如 FlowVisor提供了一种 网络虚拟化的技术。 FlowVisor 通过采用网络分片的方式, 在控制器和交换机之 间实现了网络虚拟化。  [04] Based on the existing OpenFlow network, virtual network entities such as FlowVisor provide a technology for network virtualization. FlowVisor implements network virtualization between controllers and switches by using network sharding.
[05] 参见图 1, 为 FlowVisor的网络结构示意图。 其中, 从控制器的角度来说, 以为自己连接的是真实的交换机; 而对交换机而言, 则以为自己连接的是真实的 控制器。 实际上, 无论是控制器还是交换机, 连接的都是 FlowVisor。 FlowVisor 在控制器和交换机之间分别充当交换机和控制器的功能, 同时分析 OpenFlow协 议报文, 并通过对流表进行分析, 然后为这些 OpenFlow协议报文连接不同的控 制器和交换机。  [05] See Figure 1, which is a schematic diagram of the network structure of FlowVisor. Among them, from the perspective of the controller, they think that they are connected to the real switch; for the switch, they think that they are connected to the real controller. In fact, whether it is a controller or a switch, the connection is FlowVisor. The FlowVisor functions as a switch and controller between the controller and the switch. It also analyzes the OpenFlow protocol packets and analyzes the flow table. Then, the OpenFlow protocol packets are connected to different controllers and switches.
[06] 通过这样的处理, 同一个交换机实际上可以连接到多个不同的控制器上, 也 就是说多个控制器可以控制一个交换机上的报文。 同时, 一个控制设备也可以控 制多个交换机。 由于 FlowVisor的这种实现, 使得底层的传输数据可以通过分片 ( Slicing) 的方式来被控制器处理, 表现为网络虚拟化的功能。 [07] 当前网络虚拟化的一个技术是虚拟机迁移技术,也就是说可以将运行在一台 物理机上的虚拟机平滑的迁移到另一台物理机上去, 维持原来的互联协议 (IP ) 地址、 媒体访问控制 (MAC , Media Access Control) 地址等信息, 并且保持上层 的业务不中断。 由于计算机网络是通过多个虚拟机组成的, 所以可以通过单独的 迁移每个虚拟机来实现上面的虚拟计算机网络之间的迁移。 但是这种方法应用于 Flowvisor 组成的虚拟网络时, 如果只是通过单机迁移来实现对每个虚拟机的迁 移, 无法实现对 Flowvisor组成的虚拟网络的迁移。 发明内容 [06] Through such processing, the same switch can actually be connected to multiple different controllers, that is, multiple controllers can control messages on one switch. At the same time, one control device can also control multiple switches. Due to this implementation of FlowVisor, the underlying transmission data can be processed by the controller through Slicing, which is represented by the function of network virtualization. [07] One of the current technologies for network virtualization is virtual machine migration technology, which means that virtual machines running on one physical machine can be smoothly migrated to another physical machine to maintain the original interconnection protocol (IP) address. , Media Access Control (MAC, Media Access Control) address and other information, and keep the upper layer of business uninterrupted. Since the computer network is composed of multiple virtual machines, the migration between the above virtual computer networks can be achieved by separately migrating each virtual machine. However, when this method is applied to a virtual network composed of Flowvisor, if the migration of each virtual machine is implemented by a single machine migration, the migration of the virtual network composed of Flowvisor cannot be realized. Summary of the invention
[08] 本发明实施例提供一种虚拟网络迁移方法、装置及设备, 能够实现虚拟网络 实体构成的虚拟网络的迁移。 The embodiment of the invention provides a virtual network migration method, device and device, which can implement migration of a virtual network composed of virtual network entities.
[09] 第一方面, 提供一种虚拟网络迁移方法, 包括:  [09] In a first aspect, a virtual network migration method is provided, including:
[10] 第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文信息;  [10] The first virtual network entity sends context information of the virtual network to the second virtual network entity;
[11] 第一虚拟网络实体根据所述上下文信息,断开与各个控制器和各个交换机的 连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟网络实 体根据所述上下文信息激活与各个控制器和各个交换机的连接接口设置, 与各个 控制器和各个交换机建立连接。  [11] The first virtual network entity disconnects the connection with each controller and each switch according to the context information, and deactivates the connection interface setting with each controller and each switch, so that the second virtual network entity according to the context The information is activated with the connection interface settings of each controller and each switch, and establishes a connection with each controller and each switch.
[12] 结合第一方面, 在第一方面第一种可能的实现方式中, 第一虚拟网络实体发 送所述上下文信息之后, 第一虚拟网络实体根据所述上下文信息断开与各个控制 器和交换机的连接之前, 还包括:  [12] In combination with the first aspect, in a first possible implementation manner of the first aspect, after the first virtual network entity sends the context information, the first virtual network entity disconnects from each controller according to the context information. Before the switch is connected, it also includes:
[13] 第一虚拟网络实体向自身所连接的各个控制器发送交换机迁移请求;所述交 换机迁移请求中包括: 第二虚拟网络实体的 IP 地址; 第一虚拟网络实体接收所 述控制器发送的交换机迁移响应; 并且, [13] The first virtual network entity sends a switch migration request to each controller that is connected to the controller; the switch migration request includes: an IP address of the second virtual network entity; and the first virtual network entity receives the Switch migration response; and,
[14] 第一虚拟网络实体向自身所连接的各个交换机发送控制器迁移请求;所述控 制器迁移请求中包括: 第二虚拟网络实体的 IP 地址; 第一虚拟网络实体接收所 述交换机发送的控制器迁移响应。  [14] The first virtual network entity sends a controller migration request to each switch connected to the controller; the controller migration request includes: an IP address of the second virtual network entity; and the first virtual network entity receives the sending by the switch The controller migrates the response.
[15] 结合第一方面, 和 /或第一方面第一种可能的实现方式, 在第一方面第二种 可能的实现方式中, 第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下 文信息之前, 还包括:  [15] In combination with the first aspect, and/or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first virtual network entity sends the virtual network to the second virtual network entity Before the context information, it also includes:
[16] 第一虚拟网络实体向第二虚拟网络实体发送网络迁移请求;  [16] The first virtual network entity sends a network migration request to the second virtual network entity;
[17] 第一虚拟网络实体接收第二虚拟网络实体发送的网络迁移响应;所述网络迁 移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络实体 的网络迁移请求时发送。 [17] The first virtual network entity receives a network migration response sent by the second virtual network entity; The shift response is sent by the second virtual network entity when determining to accept the network migration request of the first virtual network entity according to the network migration request.
[18] 结合第一方面, 和 /或第一方面第一种可能的实现方式, 和 /或第一方面第二 种可能的实现方式, 在第一方面第三种可能的实现方式中, 第一虚拟网络实体向 第二虚拟网络实体发送虚拟网络的上下文信息之后, 断开与各个控制器和交换机 的连接之前, 还包括:  [18] In combination with the first aspect, and/or the first possible implementation of the first aspect, and/or the second possible implementation of the first aspect, in the third possible implementation manner of the first aspect, After the virtual network entity sends the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and switch, the method further includes:
[19] 第一虚拟网络实体确定所述上下文信息传输完毕时,向第二虚拟网络实体发 送迁移完成请求;  [19] when the first virtual network entity determines that the context information is transmitted, sending a migration completion request to the second virtual network entity;
[20] 第一虚拟网络实体接收所述第二虚拟网络实体发送的迁移完成响应。  [20] The first virtual network entity receives the migration completion response sent by the second virtual network entity.
[21] 第二方面, 提供一种虚拟网络迁移方法, 包括: [21] The second aspect provides a virtual network migration method, including:
[22] 第二虚拟网络实体接收第一虚拟网络实体发送的虚拟网络的上下文信息;  [22] the second virtual network entity receives the context information of the virtual network sent by the first virtual network entity;
[23] 第二虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的 连接接口设置, 与各个控制器和各个交换机建立连接。 [23] The second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
[24] 结合第二方面, 在第二方面第一种可能的实现方式中, 第二虚拟网络实体接 收所述上下文信息之前还包括:  [24] In combination with the second aspect, in a first possible implementation manner of the second aspect, before the second virtual network entity receives the context information, the method further includes:
[25] 第二虚拟网络实体接收第一虚拟网络实体发送的网络迁移请求;  [25] the second virtual network entity receives the network migration request sent by the first virtual network entity;
[26] 第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络实体的请 求时, 第二虚拟网络实体向第一虚拟网络实体发送网络迁移响应。  [26] When the second virtual network entity determines to accept the request of the first virtual network entity according to the network migration request, the second virtual network entity sends a network migration response to the first virtual network entity.
[27] 结合第二方面, 和 /或第二方面第一种可能的实现方式, 在第二方面第二种 可能的实现方式中, 第二虚拟网络实体接收所述上下文信息之后, 与各个控制器 和各个交换机建立连接之前, 还包括:  [27] With reference to the second aspect, and/or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, after the second virtual network entity receives the context information, Before establishing a connection with each switch, it also includes:
[28] 第二虚拟网络实体接收第一虚拟网络实体在确定所述上下文信息传输完毕 时发送的迁移完成请求;  [28] the second virtual network entity receives a migration completion request sent by the first virtual network entity when determining that the context information is transmitted;
[29] 第二虚拟网络实体向所述第一虚拟网络实体发送迁移完成响应。  [29] The second virtual network entity sends a migration completion response to the first virtual network entity.
[30] 第三方面, 提供一种虚拟网络迁移装置, 包括: [30] In a third aspect, a virtual network migration apparatus is provided, including:
[31] 第一发送单元, 用于向第二虚拟网络实体发送虚拟网络的上下文信息;  [31] a first sending unit, configured to send context information of the virtual network to the second virtual network entity;
[32] 第一连接单元, 用于根据第一发送单元发送的所述上下文信息, 断开与各个 控制器和各个交换机的连接; [32] a first connecting unit, configured to disconnect the connection between each controller and each switch according to the context information sent by the first sending unit;
[33] 第一处理单元, 用于去激活与各个控制器和各个交换机的连接接口设置, 以 便第二虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的连 接接口设置, 与各个控制器和各个交换机建立连接。 [34] 结合第三方面,在第三方面第一种可能的实现方式中,第一发送单元还用于: 向所述装置所连接的各个控制器发送交换机迁移请求; 所述交换机迁移请求中包 括: 第二虚拟网络实体的 IP 地址; 向所述装置所连接的各个交换机发送控制器 迁移请求; 所述控制器迁移请求中包括: 第二虚拟网络实体的 IP地址; [33] a first processing unit, configured to deactivate a connection interface setting with each controller and each switch, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and each The controller establishes a connection with each switch. [34] In combination with the third aspect, in a first possible implementation manner of the third aspect, the first sending unit is further configured to: send a switch migration request to each controller that is connected to the device; And including: an IP address of the second virtual network entity; sending a controller migration request to each switch connected to the device; the controller migration request includes: an IP address of the second virtual network entity;
[35] 该装置还包括:第一接收单元,用于接收所述控制器发送的交换机迁移响应; 并且, 接收所述控制器发送的交换机迁移响应。 [35] The device further includes: a first receiving unit, configured to receive a switch migration response sent by the controller; and, receive a switch migration response sent by the controller.
[36] 结合第三方面, 和 /或第三方面第一种可能的实现方式, 在第三方面第二种 可能的实现方式中, 第一发送单元还用于: 向第二虚拟网络实体发送网络迁移请 求;  [36] In combination with the third aspect, and/or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the first sending unit is further configured to: send to the second virtual network entity Network migration request;
[37] 第一接收单元还用于: 接收第二虚拟网络实体发送的网络迁移响应; 所述网 络迁移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络 实体的网络迁移请求时发送。 The first receiving unit is further configured to: receive a network migration response sent by the second virtual network entity, where the network migration response is determined by the second virtual network entity to accept the network migration of the first virtual network entity according to the network migration request. Sent when requested.
[38] 结合第三方面, 和 /或第三方面第一种可能的实现方式, 和 /或第三方面第二 种可能的实现方式,在第三方面第三种可能的实现方式中,第一发送单元还用于: 确定所述上下文信息传输完毕时, 向第二虚拟网络实体发送迁移完成请求;  [38] In combination with the third aspect, and/or the first possible implementation manner of the third aspect, and/or the second possible implementation manner of the third aspect, in the third possible implementation manner of the third aspect, a sending unit is further configured to: when determining that the context information is transmitted, send a migration completion request to the second virtual network entity;
[39] 第一接收单元还用于: 接收所述第二虚拟网络实体发送的迁移完成响应。  [39] The first receiving unit is further configured to: receive a migration completion response sent by the second virtual network entity.
[40] 第四方面, 提供一种虚拟网络迁移装置, 包括: [40] In a fourth aspect, a virtual network migration apparatus is provided, including:
[41] 第二接收单元, 用于接收第一虚拟网络实体发送的虚拟网络的上下文信息;  [41] a second receiving unit, configured to receive context information of the virtual network sent by the first virtual network entity;
[42] 第二处理单元,用于根据第二接收单元接收的所述上下文信息激活与各个控 制器和各个交换机的连接接口设置; [42] a second processing unit, configured to activate a connection interface setting with each controller and each switch according to the context information received by the second receiving unit;
[43] 第二连接单元,用于根据第二接收单元接收的所述上下文信息与各个控制器 和各个交换机建立连接。  [43] The second connection unit is configured to establish a connection with each controller and each switch according to the context information received by the second receiving unit.
[44] 结合第四方面,在第四方面第一种可能的实现方式中,第二接收单元还用于: 接收第一虚拟网络实体发送的网络迁移请求;  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the second receiving unit is further configured to: receive a network migration request that is sent by the first virtual network entity;
[45] 该装置还包括: 第二发送单元, 用于根据所述网络迁移请求确定接受第一虚 拟网络实体的请求时, 向第一虚拟网络实体发送网络迁移响应。 [45] The device further includes: a second sending unit, configured to send a network migration response to the first virtual network entity when determining, by the network migration request, the request to accept the first virtual network entity.
[46] 结合第四方面, 和 /或第四方面第一种可能的实现方式, 在第四方面第二种 可能的实现方式中, 第二接收单元还用于: 接收第一虚拟网络实体在确定所述上 下文信息传输完毕时发送的迁移完成请求;  [46] In combination with the fourth aspect, and/or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the second receiving unit is further configured to: receive the first virtual network entity Determining a migration completion request sent when the context information is transmitted;
[47] 第二发送单元还用于: 向所述第一虚拟网络实体发送迁移完成响应。 [47] The second sending unit is further configured to: send a migration completion response to the first virtual network entity.
[48] 第五方面, 提供一种第一虚拟网络实体, 包括: 处理器和收发器; 其中, [49] 收发器, 用于向第二虚拟网络实体发送虚拟网络的上下文信息; 根据所述上 下文信息, 断开与各个控制器和各个交换机的连接; [48] The fifth aspect provides a first virtual network entity, including: a processor and a transceiver; [49] a transceiver, configured to send context information of the virtual network to the second virtual network entity; disconnect the connection with each controller and each switch according to the context information;
[50] 处理器, 用于去激活与各个控制器和各个交换机的连接接口设置。 [50] The processor is used to deactivate the connection interface settings with each controller and each switch.
[51] 结合第五方面, 在第五方面第一种可能的实现方式中, 所述收发器还用于: [51] In combination with the fifth aspect, in a first possible implementation manner of the fifth aspect, the transceiver is further configured to:
[52] 发送所述上下文信息之后,根据所述上下文信息断开与各个控制器和交换机 的连接之前, 向自身所连接的各个控制器发送交换机迁移请求; 所述交换机迁移 请求中包括: 第二虚拟网络实体的 IP 地址; 接收所述控制器发送的交换机迁移 响应; 并且, 向自身所连接的各个交换机发送控制器迁移请求; 所述控制器迁移 请求中包括: 第二虚拟网络实体的 IP 地址; 接收所述交换机发送的控制器迁移 响应。 After the context information is sent, the switch migration request is sent to each controller connected to the controller, and the switch migration request includes: The IP address of the virtual network entity; receiving the switch migration response sent by the controller; and sending a controller migration request to each switch connected to the controller; the controller migration request includes: an IP address of the second virtual network entity Receiving a controller migration response sent by the switch.
[53] 结合第五方面, 和 /或第五方面第一种可能的实现方式, 在第五方面第二种 可能的实现方式中, 所述收发器还用于: 向第二虚拟网络实体发送虚拟网络的上 下文信息之前, 向第二虚拟网络实体发送网络迁移请求; 接收第二虚拟网络实体 发送的网络迁移响应; 所述网络迁移响应由第二虚拟网络实体根据所述网络迁移 请求确定接受第一虚拟网络实体的网络迁移请求时发送。  [53] In combination with the fifth aspect, and/or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the transceiver is further configured to: send to the second virtual network entity Before the context information of the virtual network, sending a network migration request to the second virtual network entity; receiving a network migration response sent by the second virtual network entity; the network migration response is determined by the second virtual network entity according to the network migration request Sent when a virtual network entity's network migration request is made.
[54] 结合第五方面, 和 /或第五方面第一种可能的实现方式, 和 /或第五方面第二 种可能的实现方式, 在第五方面第三种可能的实现方式中, 所述收发器还用于: 向第二虚拟网络实体发送虚拟网络的上下文信息之后, 断开与各个控制器和交换 机的连接之前, 确定所述上下文信息传输完毕时, 向第二虚拟网络实体发送迁移 完成请求; 接收所述第二虚拟网络实体发送的迁移完成响应。  [54] In combination with the fifth aspect, and/or the first possible implementation manner of the fifth aspect, and/or the second possible implementation manner of the fifth aspect, in the third possible implementation manner of the fifth aspect, The transceiver is further configured to: after sending the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and the switch, determining that the context information is transmitted, sending the migration to the second virtual network entity Completing the request; receiving a migration completion response sent by the second virtual network entity.
[55] 第六方面, 提供一种第二虚拟网络实体, 包括收发器和处理器, 其中,  [55] The sixth aspect provides a second virtual network entity, including a transceiver and a processor, where
[56] 收发器, 用于接收第一虚拟网络实体发送的虚拟网络的上下文信息; 与各个 控制器和各个交换机建立连接; [56] a transceiver, configured to receive context information of a virtual network sent by the first virtual network entity; establish a connection with each controller and each switch;
[57] 处理器, 用于激活与各个控制器和各个交换机的连接接口设置。  [57] The processor is used to activate the connection interface settings with each controller and each switch.
[58] 结合第六方面, 在第六方面第一种可能的实现方式中, 所述收发器还用于: 接收所述上下文信息之前, 接收第一虚拟网络实体发送的网络迁移请求; 根据所 述网络迁移请求确定接受第一虚拟网络实体的请求时, 向第一虚拟网络实体发送 网络迁移响应。 [58] In combination with the sixth aspect, in a first possible implementation manner of the sixth aspect, the transceiver is further configured to: before receiving the context information, receive a network migration request sent by the first virtual network entity; When the network migration request determines that the request of the first virtual network entity is accepted, the network migration response is sent to the first virtual network entity.
[59] 结合第六方面, 和 /或第六方面第一种可能的实现方式, 在第六方面第二种 可能的实现方式中, 所述收发器还用于: 接收所述上下文信息之后, 与各个控制 器和各个交换机连接之前, 接收第一虚拟网络实体在确定所述上下文信息传输完 毕时发送的迁移完成请求; 向所述第一虚拟网络实体发送迁移完成响应。 [59] In combination with the sixth aspect, and/or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the transceiver is further configured to: after receiving the context information, Before receiving the connection with each controller and each switch, receiving the first virtual network entity determines that the context information is transmitted a migration completion request sent over time; sending a migration completion response to the first virtual network entity.
[60] 本发明实施例中,第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上 下文信息; 第一虚拟网络实体根据所述上下文信息, 断开与各个控制器和各个交 换机的连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟 网络实体根据所述上下文信息激活与各个控制器和各个交换机的连接接口设置, 与各个控制器和各个交换机建立连接, 从而实现了虚拟网络的迁移。 附图说明 In the embodiment of the present invention, the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Deactivating a connection interface setting with each controller and each switch, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby realizing The migration of virtual networks. DRAWINGS
[61] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例 或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动性的前提下, 还可以根据这些附图获得其他的附图。 [61] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
[62] 图 1为现有技术 Flow Visor的网络结构示意图;  [62] FIG. 1 is a schematic diagram of a network structure of a prior art Flow Visor;
[63] 图 2为本发明虚拟网络迁移方法第一实施例示意图;  2 is a schematic diagram of a first embodiment of a virtual network migration method according to the present invention;
[64] 图 3为本发明虚拟网络迁移方法第二实施例示意图;  FIG. 3 is a schematic diagram of a second embodiment of a virtual network migration method according to the present invention; FIG.
[65] 图 4为本发明虚拟网络迁移方法第三实施例示意图; 4 is a schematic diagram of a third embodiment of a virtual network migration method according to the present invention;
[66] 图 5为本发明虚拟网络迁移方法第四实施例示意图;  FIG. 5 is a schematic diagram of a fourth embodiment of a virtual network migration method according to the present invention; FIG.
[67] 图 6为本发明虚拟网络迁移装置第一实施例示意图;  6 is a schematic diagram of a first embodiment of a virtual network migration apparatus according to the present invention;
[68] 图 7为本发明虚拟网络迁移装置第二实施例示意图;  7 is a schematic diagram of a second embodiment of a virtual network migration apparatus according to the present invention;
[69] 图 8为本发明第一虚拟网络实体示意图;  8 is a schematic diagram of a first virtual network entity according to the present invention;
[70] 图 9为本发明第二虚拟网络实体示意图。 具体实施方式 9 is a schematic diagram of a second virtual network entity according to the present invention. detailed description
[71] 为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发 明实施例的上述目的、 特征和优点能够更加明显易懂, 下面结合附图对本发明实 施例中技术方案作进一步详细的说明。 The above described objects, features, and advantages of the embodiments of the present invention will become more apparent and understood. The technical solution is described in further detail.
[72] 参见图 2, 为本发明虚拟网络迁移方法第一实施例示意图, 该方法包括:  [72] FIG. 2 is a schematic diagram of a first embodiment of a virtual network migration method according to the present invention, where the method includes:
[73] 步骤 201 : 第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文信 息; [73] Step 201: The first virtual network entity sends context information of the virtual network to the second virtual network entity.
[74] 步骤 202: 第一虚拟网络实体根据所述上下文信息, 断开与各个控制器和各 个交换机的连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二 虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的连接接口 设置, 与各个控制器和各个交换机建立连接。 [74] Step 202: The first virtual network entity disconnects from each controller and each according to the context information. The connection of the switches, deactivating the connection interface settings with the respective controllers and the respective switches, so that the second virtual network entity activates the connection interface setting with each controller and each switch according to the context information, and each controller and each switch establish connection.
[75] 本实施例中,第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文 信息; 第一虚拟网络实体根据所述上下文信息, 断开与各个控制器和各个交换机 的连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟网络 实体根据所述上下文信息激活与各个控制器和各个交换机的连接接口设置, 与各 个控制器和各个交换机建立连接, 从而实现了虚拟网络的连接;  [75] In this embodiment, the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Activating connection interface settings with each controller and each switch, so that the second virtual network entity activates connection interface settings with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby realizing Virtual network connection;
[76] 并且, 第一虚拟网络实体断开与各个控制器和各个交换机的连接, 第二虚拟 网络实体与各个控制器和各个交换机建立连接, 保证了虚拟网络业务的连续性。 [76] Moreover, the first virtual network entity disconnects from each controller and each switch, and the second virtual network entity establishes a connection with each controller and each switch, thereby ensuring continuity of the virtual network service.
[77] 参见图 3, 为本发明虚拟网络迁移方法第二实施例示意图, 该方法包括: [77] FIG. 3 is a schematic diagram of a second embodiment of a virtual network migration method according to the present invention, where the method includes:
[78] 步骤 301 : 第二虚拟网络实体接收第一虚拟网络实体发送的虚拟网络的上下 文信息; [78] Step 301: The second virtual network entity receives the context information of the virtual network sent by the first virtual network entity.
[79] 步骤 302: 第二虚拟网络实体根据所述上下文信息激活与各个控制器和各个 交换机的连接接口设置, 与各个控制器和各个交换机建立连接。 [79] Step 302: The second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
[80] 本实施例中, 第二虚拟网络实体接收所述上下文信息, 根据所述上下文信息 激活与各个控制器和各个交换机的连接接口设置, 与各个控制器和各个交换机建 立连接, 从而实现了虚拟网络的迁移。 [80] In this embodiment, the second virtual network entity receives the context information, activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing Migration of virtual networks.
[81] 参见图 4, 为本发明虚拟网络迁移方法第三实施例示意图, 该方法包括: [81] FIG. 4 is a schematic diagram of a third embodiment of a virtual network migration method according to the present invention, where the method includes:
[82] 步骤 401 : 第一虚拟网络实体向第二虚拟网络实体发送网络迁移请求; [82] Step 401: The first virtual network entity sends a network migration request to the second virtual network entity.
[83] 所述网络迁移请求可以通过普通的传输控制协议(TCP , Transmission Control Protocol ) 或流控制传输协议 (SCTP , Stream Control Transmission Protocol)请求 消息实现, 也可以通过虚拟网络实体之间定制的消息实现。 [83] The network migration request may be implemented by using a normal Transmission Control Protocol (TCP) or a Stream Control Transmission Protocol (SCTP) request message, or may be customized through a virtual network entity. achieve.
[84] 其中, 在网络迁移请求中可以包含: 第一虚拟网络实体的 IP地址信息、 网 络规格大小、迁移原因等相关信息,这些相关信息可以提供给第二虚拟网络实体, 以便第二虚拟网络实体决定是否接受第一虚拟网络实体向其进行虚拟网络迁移。  [84] The network migration request may include: information about IP address information, network specification size, and migration reason of the first virtual network entity, where the related information may be provided to the second virtual network entity, so that the second virtual network The entity decides whether to accept the virtual network migration to the first virtual network entity.
[85] 步骤 402: 第二虚拟网络实体根据所述网络迁移请求确定接受虚拟网络的迁 移时, 向第一虚拟网络实体发送网络迁移响应。 [85] Step 402: The second virtual network entity sends a network migration response to the first virtual network entity when determining to accept the migration of the virtual network according to the network migration request.
[86] 其中, 所述网络迁移响应可以通过普通的 TCP或 SCTP请求消息实现, 也 可以通过虚拟网络实体之间定制的消息实现。 [86] wherein the network migration response can be implemented by using a normal TCP or SCTP request message, It can be implemented through messages customized between virtual network entities.
[87] 所述网络迁移响应用于告知第一虚拟网络实体所述第二虚拟网络实体接受 虚拟网络的迁移。  [87] The network migration response is used to notify the first virtual network entity that the second virtual network entity accepts migration of the virtual network.
[88] 步骤 403 : 第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文信 息;  [88] Step 403: The first virtual network entity sends context information of the virtual network to the second virtual network entity.
[89] 其中, 上下文信息包括: 虚拟网络所连接的控制器信息、 虚拟网络所连接的 交换机信息、 流分片信息、 第一虚拟网络实体的控制信息等, 还包括: 第一虚拟 网络实体与各个控制器和各个交换机的接口信息等。  [89] The context information includes: controller information connected to the virtual network, switch information connected to the virtual network, flow fragmentation information, control information of the first virtual network entity, and the like, and the first virtual network entity and the Interface information of each controller and each switch.
[90] 步骤 404: 第一虚拟网络实体确定所述上下文信息传输完毕时, 向第二虚拟 网络实体发送迁移完成请求;  [90] Step 404: The first virtual network entity determines to send a migration completion request to the second virtual network entity when the context information is transmitted.
[91] 其中, 所述迁移完成请求可以通过普通的 TCP或 SCTP请求消息实现, 也 可以通过虚拟网络实体之间定制的消息实现。  [91] The migration completion request may be implemented by using a normal TCP or SCTP request message, or may be implemented by a customized message between virtual network entities.
[92] 当第二虚拟网络实体接收到所述迁移完成请求,表明第二虚拟网络实体已经 完成了上下文信息的接收。  [92] When the second virtual network entity receives the migration completion request, indicating that the second virtual network entity has completed receiving the context information.
[93] 步骤 405 : 第二虚拟网络实体向所述第一虚拟网络实体发送迁移完成响应。 [93] Step 405: The second virtual network entity sends a migration completion response to the first virtual network entity.
[94] 其中, 所述迁移完成响应可以通过普通的 TCP或 SCTP请求消息实现, 也 可以通过虚拟网络实体之间定制的消息实现。 [94] The migration completion response may be implemented by a normal TCP or SCTP request message, or may be implemented by a customized message between virtual network entities.
[95] 所述迁移完成响应用于向第一虚拟网络实体告知所述第二虚拟网络实体接 收到了上下文信息和迁移完成请求。  [95] The migration completion response is for notifying the first virtual network entity that the second virtual network entity has received the context information and the migration completion request.
[96] 步骤 406: 第一虚拟网络实体根据所述上下文信息, 断开与各个控制器和各 个交换机的连接, 去激活与各个控制器和各个交换机的连接接口设置; 并且, 第 二虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的连接接 口设置, 与各个控制器和各个交换机建立连接。 [96] Step 406: The first virtual network entity disconnects the connection with each controller and each switch according to the context information, deactivates the connection interface setting with each controller and each switch; and, the second virtual network entity A connection interface setting with each controller and each switch is activated according to the context information, and a connection is established with each controller and each switch.
[97] 在步骤 404中, 已经完成了所有的虚拟网络上下文信息的迁移, 也即是完成 了虚拟网络的迁移; 在步骤 405中, 第一虚拟网络实体断开与各个控制器和各个 交换机的连接, 去激活与各个控制器和各个交换机连接的接口设置, 并且, 第二 虚拟网络实体激活与各个控制器和各个交换机的接口设置, 与各个控制器和各个 交换机建立连接, 从此由第二虚拟网络实体来维护原来的虚拟网络的上下文信 息, 从而完成整个虚拟网络的迁移。 由于第二虚拟网络实体完全复制了第一虚拟 网络实体维护的虚拟网络的上下文信息, 后续控制器和交换机与虚拟网络所在的 第二虚拟网络实体的通信将继续保持。 [98] 本实施例尤其适用于以下场景: 在整个网络设备初始化的时候, 第一虚拟网 络实体与控制器和交换机之间建立连接, 构建了一个虚拟网络; 而第二虚拟网络 实体启动后, 等待第一虚拟网络实体的迁移申请, 来完成虚拟网络的迁移过程。 [99] 参见图 5, 为本发明虚拟网络迁移方法第四实施例示意图, 该方法包括: [97] In step 404, all virtual network context information migration has been completed, that is, the migration of the virtual network is completed; in step 405, the first virtual network entity is disconnected from each controller and each switch. Connecting, deactivating interface settings connected to each controller and each switch, and the second virtual network entity activates interface settings with each controller and each switch, establishes a connection with each controller and each switch, and is thereby connected by the second virtual The network entity maintains the context information of the original virtual network, thereby completing the migration of the entire virtual network. Since the second virtual network entity completely replicates the context information of the virtual network maintained by the first virtual network entity, communication between the subsequent controller and the switch and the second virtual network entity where the virtual network is located will continue to be maintained. [98] This embodiment is particularly applicable to the following scenario: when the entire network device is initialized, a connection is established between the first virtual network entity and the controller and the switch, and a virtual network is constructed; and after the second virtual network entity is started, Waiting for the migration request of the first virtual network entity to complete the migration process of the virtual network. [99] FIG. 5 is a schematic diagram of a fourth embodiment of a virtual network migration method according to the present invention, where the method includes:
[100]步骤 501 505与步骤 401 405相同, 这里不赘述。 [100] Step 501 505 is the same as step 401 405, and will not be described here.
[101]步骤 506: 第一虚拟网络实体向自身所连接的各个控制器发送交换机迁移请 求; 所述交换机迁移请求中包括: 第二虚拟网络实体的 IP地址;  [101] Step 506: The first virtual network entity sends a switch migration request to each controller that is connected to the controller. The switch migration request includes: an IP address of the second virtual network entity;
[102]所述交换机迁移请求用于向控制器告知需要将与控制器连接的交换机迁移 至所述请求所携带的 IP地址对应的设备上。  [102] The switch migration request is used to notify the controller that the switch connected to the controller needs to be migrated to the device corresponding to the IP address carried by the request.
[103]步骤 507: 第一虚拟网络实体接收所述控制器发送的交换机迁移响应。  [103] Step 507: The first virtual network entity receives a switch migration response sent by the controller.
[104]所述交换机迁移响应用于向第一虚拟网络实体告知控制器接受了交换机的 迁移请求。 The switch migration response is used to inform the first virtual network entity that the controller has accepted the migration request of the switch.
[105]步骤 508: 第一虚拟网络实体向自身所连接的各个交换机发送控制器迁移请 求; 所述控制器迁移请求中包括: 第二虚拟网络实体的 IP地址;  [105] Step 508: The first virtual network entity sends a controller migration request to each switch that is connected to the switch; the controller migration request includes: an IP address of the second virtual network entity;
[106]所述控制器迁移请求用于向交换机告知需要将与交换机连接的控制器迁移 至所述请求所携带的 IP地址对应的设备上。  [106] The controller migration request is used to notify the switch that the controller connected to the switch needs to be migrated to the device corresponding to the IP address carried by the request.
[107]步骤 509: 第一虚拟网络实体接收所述交换机发送的控制器迁移响应。  [107] Step 509: The first virtual network entity receives a controller migration response sent by the switch.
[108]所述控制器迁移响应用于向第一虚拟网络实体告知交换机接受了控制器的 迁移请求。 The controller migration response is for communicating to the first virtual network entity that the switch has accepted the migration request of the controller.
[109]其中, 步骤 506 507步骤 508 509之间的执行顺序不限制。  [109] wherein, the order of execution between steps 506 507 and 508 509 is not limited.
[110]其中, 所述控制器迁移请求、 控制器迁移响应、 交换机迁移请求、 交换机迁 移响应均可以通过普通的 TCP或 SCTP请求消息实现,也可以通过虚拟网络实体 之间定制的消息实现。 [110] The controller migration request, the controller migration response, the switch migration request, and the switch migration response may all be implemented by using a normal TCP or SCTP request message, or may be implemented by a customized message between the virtual network entities.
[111]步骤 510与步骤 406相同, 这里不赘述。 [111] Step 510 is the same as step 406, and is not described here.
[112]其中,第二虚拟网络实体激活与各个控制器和各个交换机的连接接口设置的 步骤可以在步骤 504 510之间的任意时刻执行, 这里不限制。  [112] wherein the step of the second virtual network entity activating the connection interface setting with each controller and each switch may be performed at any time between steps 504 510, which is not limited herein.
[113]本发明实施例尤其可以适用于以下场景: 在整个网络设备初始化的时候, 两 个虚拟网络实体是对等的虚拟网络实体。 具体的, 第一虚拟网络实体与控制器和 交换机之间建立连接, 构建一个虚拟网络; 而且, 第二虚拟网络实体同样与控制 器和交换机建立连接, 构建一个虚拟网络, 图 5所示的本发明实施例中没有示出 和第二虚拟网络实体连接的控制器和交换机。 The embodiments of the present invention are particularly applicable to the following scenarios: When the entire network device is initialized, the two virtual network entities are peer-to-peer virtual network entities. Specifically, the first virtual network entity establishes a connection with the controller and the switch to construct a virtual network; and, the second virtual network entity also establishes a connection with the controller and the switch, and constructs a virtual network, as shown in FIG. Not shown in the embodiment of the invention A controller and switch connected to a second virtual network entity.
[114]本实施例中, 通过上述步骤完成了所有的虚拟网络上下文信息的迁移, 也即 是完成了虚拟网络的迁移; 进而, 第一虚拟网络实体断开与各个控制器和各个交 换机的连接, 去激活与各个控制器和各个交换机连接的接口设置, 并且, 第二虚 拟网络实体激活与各个控制器和各个交换机的接口设置, 与各个控制器和各个交 换机建立连接, 从此由第二虚拟网络实体来维护原来的虚拟网络的上下文信息, 从而完成整个虚拟网络的迁移。 由于第二虚拟网络实体将第一虚拟网络实体维护 的虚拟网络根据需要迁移或者整合到了第二虚拟网络实体维护的虚拟网络上, 之 前连接第一虚拟网络实体的控制器和交换机后续将与第二虚拟网络实体保持通 信。  [114] In this embodiment, the migration of all the virtual network context information is completed through the foregoing steps, that is, the migration of the virtual network is completed; and then, the first virtual network entity disconnects the connection with each controller and each switch. Deactivating interface settings connected to each controller and each switch, and the second virtual network entity activates interface settings with each controller and each switch, establishes a connection with each controller and each switch, and is thereby connected by the second virtual network The entity maintains the context information of the original virtual network, thereby completing the migration of the entire virtual network. Since the second virtual network entity migrates or integrates the virtual network maintained by the first virtual network entity as needed to the virtual network maintained by the second virtual network entity, the controller and the switch that previously connected to the first virtual network entity are subsequently followed by the second The virtual network entity remains in communication.
[115]参见图 6,为本发明虚拟网络迁移装置第一实施例示意图,该装置 600包括: FIG. 6 is a schematic diagram of a first embodiment of a virtual network migration apparatus according to the present invention. The apparatus 600 includes:
[116]第一发送单元 610, 用于向第二虚拟网络实体发送虚拟网络的上下文信息; [116] The first sending unit 610 is configured to send context information of the virtual network to the second virtual network entity.
[117]第一连接单元 620, 用于根据第一发送单元 610发送的所述上下文信息, 断 开与各个控制器和各个交换机的连接; The first connecting unit 620 is configured to disconnect the connection between each controller and each switch according to the context information sent by the first sending unit 610.
[118]第一处理单元 630, 用于根据第一发送单元 610发送的所述上下文信息, 去 激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟网络实体根据所 述上下文信息激活与各个控制器和各个交换机的连接接口设置, 与各个控制器和 各个交换机建立连接。  The first processing unit 630 is configured to: according to the context information sent by the first sending unit 610, deactivate a connection interface setting with each controller and each switch, so that the second virtual network entity is activated according to the context information. The connection interface with each controller and each switch is set up to establish a connection with each controller and each switch.
[119]其中, 第一发送单元 610还可以用于: 向所述装置所连接的各个控制器发送 交换机迁移请求; 所述交换机迁移请求中包括: 第二虚拟网络实体的 IP 地址; 向所述装置所连接的各个交换机发送控制器迁移请求; 所述控制器迁移请求中包 括: 第二虚拟网络实体的 IP地址; The first sending unit 610 is further configured to: send a switch migration request to each controller that is connected to the device; the switch migration request includes: an IP address of the second virtual network entity; Each switch connected to the device sends a controller migration request; the controller migration request includes: an IP address of the second virtual network entity;
[120]该装置 600还可以包括: 第一接收单元, 用于接收所述控制器发送的交换机 迁移响应; 并且, 接收所述控制器发送的交换机迁移响应。  The device 600 may further include: a first receiving unit, configured to receive a switch migration response sent by the controller; and receive a switch migration response sent by the controller.
[121]其中, 第一发送单元 610还可以用于: 向第二虚拟网络实体发送网络迁移请 求;  The first sending unit 610 is further configured to: send a network migration request to the second virtual network entity;
[122]第一接收单元还可以用于: 接收第二虚拟网络实体发送的网络迁移响应; 所 述网络迁移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟 网络实体的网络迁移请求时发送。  The first receiving unit may be further configured to: receive a network migration response sent by the second virtual network entity, where the network migration response is determined by the second virtual network entity to receive the network of the first virtual network entity according to the network migration request. Sent when a migration request.
[123]其中, 第一发送单元 610还可以用于: 确定所述上下文信息传输完毕时, 向 第二虚拟网络实体发送迁移完成请求; [123] The first sending unit 610 is further configured to: when determining that the context information is transmitted, The second virtual network entity sends a migration completion request;
[124]第一接收单元还可以用于: 接收所述第二虚拟网络实体发送的迁移完成响 应。  The first receiving unit is further configured to: receive a migration completion response sent by the second virtual network entity.
[125]本实施例中, 向第二虚拟网络实体发送虚拟网络的上下文信息; 根据所述上 下文信息, 断开与各个控制器和各个交换机的连接, 去激活与各个控制器和各个 交换机的连接接口设置, 以便第二虚拟网络实体根据所述上下文信息激活与各个 控制器和各个交换机的连接接口设置, 与各个控制器和各个交换机建立连接, 从 而实现了虚拟网络的连接;  [125] In this embodiment, the context information of the virtual network is sent to the second virtual network entity; according to the context information, the connection with each controller and each switch is disconnected, and the connection with each controller and each switch is activated. The interface is configured, so that the second virtual network entity activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing a connection of the virtual network;
[126]并且, 第一虚拟网络实体断开与各个控制器和各个交换机的连接, 第二虚拟 网络实体与各个控制器和各个交换机的连接, 保证了虚拟网络业务的连续性。  [126] Moreover, the first virtual network entity disconnects the connection with each controller and each switch, and the connection of the second virtual network entity with each controller and each switch ensures continuity of the virtual network service.
[127]参见图 7,为本发明虚拟网络迁移装置第二实施例示意图,该装置 700包括: FIG. 7 is a schematic diagram of a second embodiment of a virtual network migration apparatus according to the present invention. The apparatus 700 includes:
[128]第二接收单元 710, 用于接收第一虚拟网络实体发送的虚拟网络的上下文信 息; [128] The second receiving unit 710 is configured to receive context information of the virtual network sent by the first virtual network entity.
[129]第二处理单元 720, 用于根据第二接收单元 710接收的所述上下文信息激活 与各个控制器和各个交换机的连接接口设置; [129] The second processing unit 720 is configured to activate, according to the context information received by the second receiving unit 710, a connection interface setting with each controller and each switch;
[130]第二连接单元 730, 用于根据第二接收单元 710接收的所述上下文信息与各 个控制器和各个交换机建立连接。  The second connecting unit 730 is configured to establish a connection with each controller and each switch according to the context information received by the second receiving unit 710.
[131]其中, 第二接收单元 710还可以用于: 接收第一虚拟网络实体发送的网络迁 移请求;  The second receiving unit 710 is further configured to: receive a network migration request sent by the first virtual network entity;
[132]还包括: 第二发送单元, 用于根据所述网络迁移请求确定接受第一虚拟网络 实体的请求时, 向第一虚拟网络实体发送网络迁移响应。  [132] The method further includes: a second sending unit, configured to send a network migration response to the first virtual network entity when determining, by the network migration request, the request to accept the first virtual network entity.
[133]其中, 第二接收单元 710还可以用于: 接收第一虚拟网络实体在确定所述 上下文信息传输完毕时向第二虚拟网络实体发送的迁移完成请求;  [133] The second receiving unit 710 is further configured to: receive, by the first virtual network entity, a migration completion request sent to the second virtual network entity when determining that the context information is transmitted;
[134]第二发送单元还可以用于: 向所述第一虚拟网络实体发送迁移完成响应。 The second sending unit is further configured to: send a migration completion response to the first virtual network entity.
[135]本实施例中, 接收所述上下文信息, 根据所述上下文信息激活与各个控制器 和各个交换机的连接接口设置, 与各个控制器和各个交换机建立连接, 从而实现 了虚拟网络的迁移。 [136]参见图 8, 为本发明实施例第一虚拟网络实体结构示意图, 该第一虚拟网络 实体 800包括: 处理器 810、 存储器 820、 收发器 830和总线 840 ; [137]处理器 810、 存储器 820、 收发器 830通过总线 840相互连接; 总线 840可 以是 ISA总线、 PCI总线或 EISA总线等。 所述总线可以分为地址总线、 数据总 线、 控制总线等。 为便于表示, 图 8中仅用一条粗线表示, 但并不表示仅有一根 总线或一种类型的总线。 In this embodiment, the context information is received, and the connection interface setting with each controller and each switch is activated according to the context information, and a connection is established with each controller and each switch, thereby realizing migration of the virtual network. FIG. 8 is a schematic structural diagram of a first virtual network entity according to an embodiment of the present invention. The first virtual network entity 800 includes: a processor 810, a memory 820, a transceiver 830, and a bus 840. The processor 810, the memory 820, and the transceiver 830 are connected to each other through a bus 840; the bus 840 may be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
[138]存储器 820, 用于存放程序。 具体地, 程序可以包括程序代码, 所述程序代 码包括计算机操作指令。 存储器 820可能包含高速 RAM存储器, 也可能还包括 非易失性存储器 (non- volatile memory) , 例如至少一个磁盘存储器。 [138] Memory 820, used to store the program. In particular, the program can include program code, the program code including computer operating instructions. Memory 820 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
[139]收发器 830用于连接其他设备, 并与其他设备进行通信。 收发器 830用于: 向第二虚拟网络实体发送虚拟网络的上下文信息; 根据所述上下文信息, 断开与 各个控制器和各个交换机的连接。 [139] The transceiver 830 is used to connect to other devices and to communicate with other devices. The transceiver 830 is configured to: send context information of the virtual network to the second virtual network entity; disconnect the connection with each controller and each switch according to the context information.
[140]所述处理器 810执行所述程序代码,用于去激活与各个控制器和各个交换机 的连接接口设置。  The processor 810 executes the program code for deactivating connection interface settings with respective controllers and respective switches.
[141]所述收发器 830还用于: 发送所述上下文信息之后, 根据所述上下文信息断 开与各个控制器和交换机的连接之前, 向自身所连接的各个控制器发送交换机迁 移请求; 所述交换机迁移请求中包括: 第二虚拟网络实体的 IP 地址; 接收所述 控制器发送的交换机迁移响应; 并且, 向自身所连接的各个交换机发送控制器迁 移请求; 所述控制器迁移请求中包括: 第二虚拟网络实体的 IP 地址; 接收所述 交换机发送的控制器迁移响应。  The transceiver 830 is further configured to: after sending the context information, send a switch migration request to each controller connected to the controller, before disconnecting the connection with each controller and the switch according to the context information; The switch migration request includes: an IP address of the second virtual network entity; receiving a switch migration response sent by the controller; and sending a controller migration request to each switch connected to the controller; the controller migration request includes : an IP address of the second virtual network entity; receiving a controller migration response sent by the switch.
[142]其中, 所述收发器 830还可以用于: 向第二虚拟网络实体发送虚拟网络的上 下文信息之前, 向第二虚拟网络实体发送网络迁移请求; 接收第二虚拟网络实体 发送的网络迁移响应; 所述网络迁移响应由第二虚拟网络实体根据所述网络迁移 请求确定接受第一虚拟网络实体的网络迁移请求时发送。  [142] The transceiver 830 is further configured to: send a network migration request to the second virtual network entity before sending the context information of the virtual network to the second virtual network entity; receive the network migration sent by the second virtual network entity The network migration response is sent by the second virtual network entity when determining, according to the network migration request, that the network migration request of the first virtual network entity is accepted.
[143]其中, 所述收发器 830还可以用于: 向第二虚拟网络实体发送虚拟网络的上 下文信息之后, 断开与各个控制器和交换机的连接之前, 确定所述上下文信息传 输完毕时, 向第二虚拟网络实体发送迁移完成请求; 接收所述第二虚拟网络实体 发送的迁移完成响应。  [143] The transceiver 830 may be further configured to: after sending the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and the switch, determining that the context information is transmitted, Sending a migration completion request to the second virtual network entity; receiving a migration completion response sent by the second virtual network entity.
[144]本实施例中,第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文 信息; 第一虚拟网络实体根据所述上下文信息, 断开与各个控制器和各个交换机 的连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟网络 实体根据所述上下文信息激活与各个控制器和各个交换机的连接接口设置, 与各 个控制器和各个交换机的连接, 从而实现了虚拟网络的连接; [145]并且, 第一虚拟网络实体断开与各个控制器和各个交换机的连接, 第二虚拟 网络实体与各个控制器和各个交换机的连接, 保证了虚拟网络业务的连续性。 [144] In this embodiment, the first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects the connection with each controller and each switch according to the context information, Activating a connection interface setting with each controller and each switch, so that the second virtual network entity activates the connection interface setting with each controller and each switch according to the context information, and connects with each controller and each switch, thereby realizing Virtual network connection; [145] Moreover, the first virtual network entity disconnects the connection with each controller and each switch, and the connection of the second virtual network entity with each controller and each switch ensures continuity of the virtual network service.
[146]参见图 9, 为本发明实施例第一虚拟网络实体结构示意图, 该第一虚拟网络 实体 900包括: 处理器 910、 存储器 920、 收发器 930和总线 940; FIG. 9 is a schematic structural diagram of a first virtual network entity according to an embodiment of the present invention. The first virtual network entity 900 includes: a processor 910, a memory 920, a transceiver 930, and a bus 940.
[147]处理器 910、 存储器 920、 收发器 930通过总线 940相互连接; 总线 940可 以是 ISA总线、 PCI总线或 EISA总线等。 所述总线可以分为地址总线、 数据总 线、 控制总线等。 为便于表示, 图 9中仅用一条粗线表示, 但并不表示仅有一根 总线或一种类型的总线。  The processor 910, the memory 920, and the transceiver 930 are connected to each other through a bus 940; the bus 940 can be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
[148]存储器 920, 用于存放程序。 具体地, 程序可以包括程序代码, 所述程序代 码包括计算机操作指令。 存储器 920可能包含高速 RAM存储器, 也可能还包括 非易失性存储器 (non- volatile memory) , 例如至少一个磁盘存储器。 [148] Memory 920, used to store programs. In particular, the program can include program code, the program code including computer operating instructions. Memory 920 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
[149]收发器 930用于连接其他设备, 并与其他设备进行通信。 收发器 930用于: 接收第一虚拟网络实体发送的虚拟网络的上下文信息; 与各个控制器和各个交换 机建立连接。 [149] The transceiver 930 is used to connect to other devices and to communicate with other devices. The transceiver 930 is configured to: receive context information of the virtual network sent by the first virtual network entity; establish a connection with each controller and each switch.
[150]所述处理器 910执行所述程序代码,用于激活与各个控制器和各个交换机的 连接接口设置。  The processor 910 executes the program code for activating connection interface settings with respective controllers and respective switches.
[151]其中, 所述收发器 930还可以用于: 接收所述上下文信息之前, 接收第一虚 拟网络实体发送的网络迁移请求; 根据所述网络迁移请求确定接受第一虚拟网络 实体的请求时, 向第一虚拟网络实体发送网络迁移响应。  The transceiver 930 may be further configured to: before receiving the context information, receive a network migration request sent by the first virtual network entity; and determine, according to the network migration request, a request to accept the first virtual network entity. Send a network migration response to the first virtual network entity.
[152]其中, 所述收发器 930还可以用于: 接收所述上下文信息之后, 与各个控制 器和各个交换机连接之前, 接收第一虚拟网络实体在确定所述上下文信息传输完 毕时发送的迁移完成请求; 向所述第一虚拟网络实体发送迁移完成响应。  The transceiver 930 is further configured to: after receiving the context information, before receiving the connection with each controller and each switch, receiving a migration that is sent by the first virtual network entity when determining that the context information is transmitted. Completing the request; sending a migration completion response to the first virtual network entity.
[153]本实施例中, 第二虚拟网络实体接收所述上下文信息, 根据所述上下文信息 激活与各个控制器和各个交换机的连接接口设置, 与各个控制器和各个交换机建 立连接, 从而实现了虚拟网络的迁移。 In this embodiment, the second virtual network entity receives the context information, activates a connection interface setting with each controller and each switch according to the context information, and establishes a connection with each controller and each switch, thereby implementing Migration of virtual networks.
[154]本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加 必需的通用硬件平台的方式来实现。 基于这样的理解, 本发明实施例中的技术方 案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若 干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例或者实施例的某些部分所述的方法。 It will be apparent to those skilled in the art that the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium such as a ROM/RAM. , disk, CD, etc., including a number of instructions to make a computer device (can be a personal computer, server, or network device, etc.) The methods described in various embodiments of the invention or in certain portions of the embodiments are performed.
[155]本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似 的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同之处。 尤 其, 对于系统实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处参见方法实施例的部分说明即可。  The various embodiments in the present specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
[156]以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。任何在本 发明的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在本发明的保 护范围之内。  The above described embodiments of the invention are not intended to limit the scope of the invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种虚拟网络迁移方法, 其特征在于, 包括: 1. A virtual network migration method, characterized by including:
第一虚拟网络实体向第二虚拟网络实体发送虚拟网络的上下文信息; 第一虚拟网络实体根据所述上下文信息,断开与各个控制器和各个交换机的 连接, 去激活与各个控制器和各个交换机的连接接口设置, 以便第二虚拟网络实 体根据所述上下文信息激活与各个控制器和各个交换机的连接接口设置,与各个 控制器和各个交换机建立连接。 The first virtual network entity sends the context information of the virtual network to the second virtual network entity; the first virtual network entity disconnects from each controller and each switch according to the context information, and deactivates the connection with each controller and each switch. The connection interface settings are configured so that the second virtual network entity activates the connection interface settings with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
2、 根据权利要求 1所述的方法, 其特征在于, 第一虚拟网络实体发送所述 上下文信息之后,第一虚拟网络实体根据所述上下文信息断开与各个控制器和交 换机的连接之前, 还包括: 2. The method according to claim 1, characterized in that after the first virtual network entity sends the context information and before the first virtual network entity disconnects from each controller and switch according to the context information, include:
第一虚拟网络实体向自身所连接的各个控制器发送交换机迁移请求;所述交 换机迁移请求中包括: 第二虚拟网络实体的 IP地址; 第一虚拟网络实体接收所 述控制器发送的交换机迁移响应; 并且, The first virtual network entity sends a switch migration request to each controller to which it is connected; the switch migration request includes: the IP address of the second virtual network entity; the first virtual network entity receives the switch migration response sent by the controller ; and,
第一虚拟网络实体向自身所连接的各个交换机发送控制器迁移请求;所述控 制器迁移请求中包括: 第二虚拟网络实体的 IP地址; 第一虚拟网络实体接收所 述交换机发送的控制器迁移响应。 The first virtual network entity sends a controller migration request to each switch to which it is connected; the controller migration request includes: the IP address of the second virtual network entity; the first virtual network entity receives the controller migration request sent by the switch. response.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 第一虚拟网络实体向第 二虚拟网络实体发送虚拟网络的上下文信息之前, 还包括: 3. The method according to claim 1 or 2, characterized in that before the first virtual network entity sends the context information of the virtual network to the second virtual network entity, it further includes:
第一虚拟网络实体向第二虚拟网络实体发送网络迁移请求; The first virtual network entity sends a network migration request to the second virtual network entity;
第一虚拟网络实体接收第二虚拟网络实体发送的网络迁移响应;所述网络迁 移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络实体 的网络迁移请求时发送。 The first virtual network entity receives the network migration response sent by the second virtual network entity; the network migration response is sent when the second virtual network entity determines to accept the network migration request of the first virtual network entity according to the network migration request.
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 第一虚拟网络实 体向第二虚拟网络实体发送虚拟网络的上下文信息之后,断开与各个控制器和交 换机的连接之前, 还包括: 4. The method according to any one of claims 1 to 3, characterized in that after the first virtual network entity sends the context information of the virtual network to the second virtual network entity, before disconnecting the connection with each controller and switch , Also includes:
第一虚拟网络实体确定所述上下文信息传输完毕时,向第二虚拟网络实体发 送迁移完成请求; When the first virtual network entity determines that the context information transmission is completed, it sends a migration completion request to the second virtual network entity;
第一虚拟网络实体接收所述第二虚拟网络实体发送的迁移完成响应。 The first virtual network entity receives the migration completion response sent by the second virtual network entity.
5、 一种虚拟网络迁移方法, 其特征在于, 包括: 5. A virtual network migration method, characterized by including:
第二虚拟网络实体接收第一虚拟网络实体发送的虚拟网络的上下文信息; 第二虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的 连接接口设置, 与各个控制器和各个交换机建立连接。 The second virtual network entity receives the context information of the virtual network sent by the first virtual network entity; The second virtual network entity activates connection interface settings with each controller and each switch according to the context information, and establishes a connection with each controller and each switch.
6、 根据权利要求 5所述的方法, 其特征在于, 第二虚拟网络实体接收所述 上下文信息之前还包括: 6. The method according to claim 5, characterized in that before the second virtual network entity receives the context information, it further includes:
第二虚拟网络实体接收第一虚拟网络实体发送的网络迁移请求; The second virtual network entity receives the network migration request sent by the first virtual network entity;
第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络实体的请 求时, 第二虚拟网络实体向第一虚拟网络实体发送网络迁移响应。 When the second virtual network entity determines to accept the request of the first virtual network entity based on the network migration request, the second virtual network entity sends a network migration response to the first virtual network entity.
7、 根据权利要求 5或 6所述的方法, 其特征在于, 第二虚拟网络实体接收 所述上下文信息之后, 与各个控制器和各个交换机建立连接之前, 还包括: 第二虚拟网络实体接收第一虚拟网络实体在确定所述上下文信息传输完毕 时发送的迁移完成请求; 7. The method according to claim 5 or 6, characterized in that, after the second virtual network entity receives the context information and before establishing a connection with each controller and each switch, it further includes: the second virtual network entity receives the third A migration completion request sent by a virtual network entity when it determines that the transmission of the context information is completed;
第二虚拟网络实体向所述第一虚拟网络实体发送迁移完成响应。 The second virtual network entity sends a migration completion response to the first virtual network entity.
8、 一种虚拟网络迁移装置, 其特征在于, 包括: 8. A virtual network migration device, characterized by including:
第一发送单元, 用于向第二虚拟网络实体发送虚拟网络的上下文信息; 第一连接单元, 用于根据第一发送单元发送的所述上下文信息, 断开与各个 控制器和各个交换机的连接; The first sending unit is used to send the context information of the virtual network to the second virtual network entity; the first connection unit is used to disconnect from each controller and each switch according to the context information sent by the first sending unit. ;
第一处理单元, 用于去激活与各个控制器和各个交换机的连接接口设置, 以 便第二虚拟网络实体根据所述上下文信息激活与各个控制器和各个交换机的连 接接口设置, 与各个控制器和各个交换机建立连接。 The first processing unit is used to deactivate the connection interface settings with each controller and each switch, so that the second virtual network entity activates the connection interface settings with each controller and each switch according to the context information, and communicates with each controller and each switch. Each switch establishes a connection.
9、 根据权利要求 8所述的装置, 其特征在于, 第一发送单元还用于: 向所 述装置所连接的各个控制器发送交换机迁移请求; 所述交换机迁移请求中包括: 第二虚拟网络实体的 IP地址; 向所述装置所连接的各个交换机发送控制器迁移 请求; 所述控制器迁移请求中包括: 第二虚拟网络实体的 IP地址; 9. The device according to claim 8, wherein the first sending unit is further configured to: send a switch migration request to each controller connected to the device; the switch migration request includes: a second virtual network The IP address of the entity; sending a controller migration request to each switch connected to the device; the controller migration request includes: the IP address of the second virtual network entity;
该装置还包括:第一接收单元,用于接收所述控制器发送的交换机迁移响应; 并且, 接收所述控制器发送的交换机迁移响应。 The device further includes: a first receiving unit configured to receive a switch migration response sent by the controller; and, receive a switch migration response sent by the controller.
10、 根据权利要求 8或 9所述的装置, 其特征在于, 第一发送单元还用于: 向第二虚拟网络实体发送网络迁移请求; 10. The device according to claim 8 or 9, characterized in that the first sending unit is further configured to: send a network migration request to the second virtual network entity;
第一接收单元还用于: 接收第二虚拟网络实体发送的网络迁移响应; 所述网 络迁移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网络 实体的网络迁移请求时发送。 The first receiving unit is also configured to: receive a network migration response sent by the second virtual network entity; the network migration response is sent when the second virtual network entity determines to accept the network migration request of the first virtual network entity according to the network migration request. .
11、 根据权利要求 8至 10任一项所述的装置, 其特征在于, 第一发送单元 还用于: 确定所述上下文信息传输完毕时, 向第二虚拟网络实体发送迁移完成请 求; 11. The device according to any one of claims 8 to 10, characterized in that, the first sending unit Also used for: sending a migration completion request to the second virtual network entity when it is determined that the transmission of the context information is completed;
第一接收单元还用于: 接收所述第二虚拟网络实体发送的迁移完成响应。 The first receiving unit is also configured to: receive a migration completion response sent by the second virtual network entity.
12、 一种虚拟网络迁移装置, 其特征在于, 包括: 12. A virtual network migration device, characterized by including:
第二接收单元, 用于接收第一虚拟网络实体发送的虚拟网络的上下文信息; 第二处理单元,用于根据第二接收单元接收的所述上下文信息激活与各个控 制器和各个交换机的连接接口设置; The second receiving unit is configured to receive the context information of the virtual network sent by the first virtual network entity; the second processing unit is configured to activate the connection interface with each controller and each switch according to the context information received by the second receiving unit. set up;
第二连接单元,用于根据第二接收单元接收的所述上下文信息与各个控制器 和各个交换机建立连接。 The second connection unit is configured to establish connections with each controller and each switch according to the context information received by the second receiving unit.
13、 根据权利要求 12所述的装置, 其特征在于, 第二接收单元还用于: 接 收第一虚拟网络实体发送的网络迁移请求; 13. The device according to claim 12, wherein the second receiving unit is further configured to: receive a network migration request sent by the first virtual network entity;
该装置还包括: 第二发送单元, 用于根据所述网络迁移请求确定接受第一虚 拟网络实体的请求时, 向第一虚拟网络实体发送网络迁移响应。 The device further includes: a second sending unit configured to send a network migration response to the first virtual network entity when it is determined to accept the request of the first virtual network entity according to the network migration request.
14、根据权利要求 12或 13所述的装置,其特征在于,第二接收单元还用于: 接收第一虚拟网络实体在确定所述上下文信息传输完毕时发送的迁移完成请求; 第二发送单元还用于: 向所述第一虚拟网络实体发送迁移完成响应。 14. The device according to claim 12 or 13, characterized in that the second receiving unit is further configured to: receive a migration completion request sent by the first virtual network entity when it determines that the context information transmission is completed; the second sending unit Also used for: sending a migration completion response to the first virtual network entity.
15、 一种第一虚拟网络实体, 其特征在于, 包括: 处理器和收发器; 其中, 收发器, 用于向第二虚拟网络实体发送虚拟网络的上下文信息; 根据所述上 下文信息, 断开与各个控制器和各个交换机的连接; 15. A first virtual network entity, characterized in that it includes: a processor and a transceiver; wherein the transceiver is used to send the context information of the virtual network to the second virtual network entity; according to the context information, disconnect Connections to individual controllers and individual switches;
处理器, 用于去激活与各个控制器和各个交换机的连接接口设置。 Processor for deactivating connection interface settings with individual controllers and individual switches.
16、 根据权利要求 15所述的第一虚拟网络实体, 其特征在于, 所述收发器 还用于: 16. The first virtual network entity according to claim 15, characterized in that the transceiver is also used for:
发送所述上下文信息之后,根据所述上下文信息断开与各个控制器和交换机 的连接之前, 向自身所连接的各个控制器发送交换机迁移请求; 所述交换机迁移 请求中包括: 第二虚拟网络实体的 IP地址; 接收所述控制器发送的交换机迁移 响应; 并且, 向自身所连接的各个交换机发送控制器迁移请求; 所述控制器迁移 请求中包括: 第二虚拟网络实体的 IP地址; 接收所述交换机发送的控制器迁移 响应。 After sending the context information, and before disconnecting from each controller and switch according to the context information, send a switch migration request to each controller to which it is connected; the switch migration request includes: the second virtual network entity The IP address of Controller migration response sent by the switch described above.
17、 根据权利要求 15或 16所述的第一虚拟网络实体, 其特征在于, 所述收 发器还用于: 向第二虚拟网络实体发送虚拟网络的上下文信息之前, 向第二虚拟 网络实体发送网络迁移请求; 接收第二虚拟网络实体发送的网络迁移响应; 所述 网络迁移响应由第二虚拟网络实体根据所述网络迁移请求确定接受第一虚拟网 络实体的网络迁移请求时发送。 17. The first virtual network entity according to claim 15 or 16, wherein the transceiver is further configured to: before sending the context information of the virtual network to the second virtual network entity, The network entity sends a network migration request; receives a network migration response sent by the second virtual network entity; the network migration response is sent when the second virtual network entity determines to accept the network migration request of the first virtual network entity according to the network migration request.
18、 根据权利要求 15至 17任一项所述的第一虚拟网络实体, 其特征在于, 所述收发器还用于: 向第二虚拟网络实体发送虚拟网络的上下文信息之后, 断开 与各个控制器和交换机的连接之前, 确定所述上下文信息传输完毕时, 向第二虚 拟网络实体发送迁移完成请求; 接收所述第二虚拟网络实体发送的迁移完成响 应。 18. The first virtual network entity according to any one of claims 15 to 17, characterized in that the transceiver is further configured to: after sending the context information of the virtual network to the second virtual network entity, disconnect from each Before the connection between the controller and the switch, when it is determined that the transmission of the context information is completed, send a migration completion request to the second virtual network entity; and receive the migration completion response sent by the second virtual network entity.
19、 一种第二虚拟网络实体, 其特征在于, 包括收发器和处理器, 其中, 收发器, 用于接收第一虚拟网络实体发送的虚拟网络的上下文信息; 与各个 控制器和各个交换机建立连接; 19. A second virtual network entity, characterized in that it includes a transceiver and a processor, wherein the transceiver is used to receive the context information of the virtual network sent by the first virtual network entity; establish with each controller and each switch connect;
处理器, 用于激活与各个控制器和各个交换机的连接接口设置。 Processor for activating connection interface settings with individual controllers and individual switches.
20、 根据权利要求 19所述的第二虚拟网络实体, 其特征在于, 所述收发器 还用于:接收所述上下文信息之前,接收第一虚拟网络实体发送的网络迁移请求; 根据所述网络迁移请求确定接受第一虚拟网络实体的请求时,向第一虚拟网络实 体发送网络迁移响应。 20. The second virtual network entity according to claim 19, wherein the transceiver is further configured to: before receiving the context information, receive a network migration request sent by the first virtual network entity; according to the network When the migration request determines that the request of the first virtual network entity is accepted, a network migration response is sent to the first virtual network entity.
21、 根据权利要求 19或 20所述的第二虚拟网络实体, 其特征在于, 所述收 发器还用于: 接收所述上下文信息之后, 与各个控制器和各个交换机连接之前, 接收第一虚拟网络实体在确定所述上下文信息传输完毕时发送的迁移完成请求; 向所述第一虚拟网络实体发送迁移完成响应。 21. The second virtual network entity according to claim 19 or 20, characterized in that the transceiver is further configured to: after receiving the context information, before connecting with each controller and each switch, receive the first virtual network entity A migration completion request sent by the network entity when it determines that the transmission of the context information is completed; sending a migration completion response to the first virtual network entity.
PCT/CN2013/085106 2013-10-12 2013-10-12 Virtual network migration method, apparatus and device WO2015051548A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/085106 WO2015051548A1 (en) 2013-10-12 2013-10-12 Virtual network migration method, apparatus and device
CN201380003680.6A CN104995600B (en) 2013-10-12 2013-10-12 Virtual network moving method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/085106 WO2015051548A1 (en) 2013-10-12 2013-10-12 Virtual network migration method, apparatus and device

Publications (1)

Publication Number Publication Date
WO2015051548A1 true WO2015051548A1 (en) 2015-04-16

Family

ID=52812467

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/085106 WO2015051548A1 (en) 2013-10-12 2013-10-12 Virtual network migration method, apparatus and device

Country Status (2)

Country Link
CN (1) CN104995600B (en)
WO (1) WO2015051548A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306381A1 (en) * 2009-05-31 2010-12-02 Uri Lublin Mechanism for migration of client-side virtual machine system resources
CN102118458A (en) * 2011-03-10 2011-07-06 浪潮(北京)电子信息产业有限公司 Method and system for live migration of virtual machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100306381A1 (en) * 2009-05-31 2010-12-02 Uri Lublin Mechanism for migration of client-side virtual machine system resources
CN102118458A (en) * 2011-03-10 2011-07-06 浪潮(北京)电子信息产业有限公司 Method and system for live migration of virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XU, YIFEI: "The Dynamic Migration of Openflow Network in the Virtual Network Fragmentation", NETWORK SECURITY TECHNOLOGY & APPLICATION, September 2013 (2013-09-01), pages 53 *

Also Published As

Publication number Publication date
CN104995600A (en) 2015-10-21
CN104995600B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US9755967B2 (en) Method, apparatus, and system for configuring flow table in OpenFlow network
CN105072482B (en) The control method for playing back and device of a kind of multimedia play equipment
WO2015143610A1 (en) Service implementation method for nfv system, and communications unit
WO2017162089A1 (en) Service configuration method and device for network service
WO2012106892A1 (en) Method, apparatus and system for processing service flow
CN113364809B (en) Offloading network data to perform load balancing
WO2014047784A1 (en) Method for determining packet forwarding path, network device and control device
EP2696542A1 (en) Method, ToR switch, and system for implementing protection switchover based on TRILL network
JP6480452B2 (en) Packet processing method and apparatus
WO2014135050A1 (en) Message processing method, device, gateway, set-top box and internet protocol television system
WO2012116581A1 (en) Method and device for establishing audio/video communication connection
WO2014106387A1 (en) Method for establishing control channel, forwarding point and controller
US11991083B2 (en) Systems and methods for enhanced autonegotiation
WO2021254001A1 (en) Session establishment method, apparatus and system and computer storage medium
WO2024027217A1 (en) Time-sensitive implementation method and system for virtualized core network
CN104539539B (en) A kind of AC equipment multi-service plate data forwarding method
WO2015024373A1 (en) Virtual machine communication method and device
US20180123971A1 (en) Application Implementation Method and Service Controller
WO2014019196A1 (en) Topology information processing method and device
WO2013159492A1 (en) Method and system for reporting and downloading information
WO2012079374A1 (en) Method, device, and system for binding virtual serial port and physical serial port
CN105519049B (en) A kind of message transmitting method, apparatus and system
CN113542395B (en) Message processing method and message processing system
KR20120067348A (en) Method, remote access server and system for configuring quality of service
WO2015051548A1 (en) Virtual network migration method, apparatus and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13895257

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13895257

Country of ref document: EP

Kind code of ref document: A1