WO2015066894A1 - Forwarding plane migration method, controller, and gateway - Google Patents

Forwarding plane migration method, controller, and gateway Download PDF

Info

Publication number
WO2015066894A1
WO2015066894A1 PCT/CN2013/086782 CN2013086782W WO2015066894A1 WO 2015066894 A1 WO2015066894 A1 WO 2015066894A1 CN 2013086782 W CN2013086782 W CN 2013086782W WO 2015066894 A1 WO2015066894 A1 WO 2015066894A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding plane
forwarding
controller
current
plane
Prior art date
Application number
PCT/CN2013/086782
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/086782 priority Critical patent/WO2015066894A1/en
Priority to CN201380003564.4A priority patent/CN104782173B/en
Publication of WO2015066894A1 publication Critical patent/WO2015066894A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a forwarding plane migration method, a controller, and a gateway. Background technique
  • SDN Software Defined Network
  • SAE System Architecture Evolution
  • IP Internet Protocol
  • 4G Mobile Communication
  • the OpenFlow technology transforms the traditional physical fixed hardware into a dynamic and identifiable SDN, which realizes the separation of the control plane and the forwarding plane.
  • the SAE network includes the access network and the core network.
  • the key network elements in the core network include the mobility management entity ( Mobility Management Entity (MME), Servicing (S-GW), Packet Data Network Gateway (P-GW), where the MME completes the processing of control planes such as signaling, S-GW and P- GW is mainly responsible for the function of the forwarding plane.
  • MME Mobility Management Entity
  • S-GW Servicecing
  • P-GW Packet Data Network Gateway
  • control plane and the forwarding plane are not always bound to be migrated at the same time.
  • control plane and the forwarding plane need to be separately performed.
  • Migration For example, in the scenario where the control plane is clouded, there is no need to simultaneously migrate the control plane and the forwarding plane.
  • the embodiment of the invention provides a forwarding plane migration method, a controller and a gateway, and implements a control plane and forwarding In a separate network architecture, separate migration of forwarding planes.
  • an embodiment of the present invention provides a forwarding plane migration method, including:
  • an enable command is sent to the to-be-switched forwarding plane to complete the migration of the forwarding plane.
  • the selecting a forwarding plane to be migrated includes:
  • the method further includes: sending a primary forwarding plane flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the sending a stop command to the current forwarding plane includes:
  • the sending by the current forwarding plane, the at least one to-be-switched forwarding plane, a primary forwarding plane After the flow table is configured, before the at least one primary forwarding surface flow table to be switched on the forwarding plane is set to be inactive, the method further includes:
  • the selecting a forwarding plane to be migrated includes:
  • the sending a stop command to the current forwarding plane includes:
  • Sending an enable command to the to-be-switched forwarding plane includes: And sending, to the at least one to-be-switched forwarding plane, a startup command that carries the primary forwarding plane flow table.
  • the method before the selecting the to-be-switched forwarding plane, the method further includes:
  • the selecting a forwarding plane to be switched includes:
  • the selecting according to the master-slave relationship, selecting from a forwarding plane of the current forwarding plane After the at least one forwarding plane is used as the forwarding plane to be switched, before sending the stop command to the current forwarding plane, the method further includes:
  • the forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the selecting according to the master-slave relationship, from a forwarding plane of the current forwarding plane After the at least one forwarding plane is used as the forwarding plane to be switched, before sending the migration command to the current forwarding plane, the method further includes:
  • the obtaining the master-slave relationship of the forwarding plane includes:
  • the current forwarding plane after the selecting the to-be-switched forwarding plane, the current forwarding plane is Before sending a stop command, it also includes:
  • the embodiment of the present invention provides a forwarding plane migration method, where the forwarding plane is separated from the control plane, and the forwarding plane is a current forwarding plane, and the method includes:
  • the to-be-switched forwarding plane is a forwarding plane of other gateways outside the gateway.
  • the method before the stopping command sent by the receiving controller, the method further includes:
  • the stop command sent by the receiving controller includes:
  • the receiving controller after receiving the primary forwarding plane flow table sent by the controller, the receiving controller sends the Before stopping the command, it also includes:
  • the stopping command sent by the receiving controller includes:
  • the method before the stopping command sent by the receiving controller, the method further includes:
  • the controller Receiving the migration command sent by the controller, and migrating the entire forwarding plane information to the at least one to be switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is the current forwarding The forwarding rule of the service information transmitted on the surface.
  • a fifth possible implementation manner of the second aspect after receiving the migration command sent by the controller, before receiving the stop command sent by the controller , also includes:
  • Switching to the at least one to-be-switched forwarding plane periodically to periodically report the entire forwarding plane information Backing up to the at least one forwarding plane to be switched.
  • the method before the receiving the migration command sent by the controller, the method further includes: receiving a master-slave configuration request sent by the controller;
  • a master-slave configuration response is sent to the controller.
  • the embodiment of the present invention provides a forwarding plane migration method, where the forwarding plane is separated from the control plane, and the forwarding plane is a forwarding plane to be switched, and the method includes:
  • the forwarding function of the to-be-switched forwarding plane is enabled, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane, the forwarding plane is completed.
  • the migration where the current forwarding plane is a forwarding plane of a gateway that needs to perform forwarding plane migration.
  • the method before the enabling command sent by the receiving controller, the method further includes:
  • the enable command sent by the receiving controller includes:
  • the method before the receiving the primary forwarding surface flow table sent by the controller, the method further includes: An updated primary forwarding flow table sent by the controller.
  • the enabling command sent by the receiving controller includes:
  • the method before the enabling command sent by the receiving controller, the method further includes:
  • the entire forwarding plane information that is migrated by the current controller by using the handover mode is saved, where the entire forwarding plane information includes at least a primary forwarding plane flow table, where The primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • an embodiment of the present invention provides a controller, including:
  • a selection module configured to select a forwarding surface to be switched
  • a first sending module configured to send a stop command to the current forwarding plane
  • a migration module configured to migrate service information transmitted by the current forwarding plane to the to-be-switched forwarding plane selected by the selection module;
  • the second sending module is further configured to: after the migrating module migrates the service information transmitted by using the current forwarding plane to the to-be-switched forwarding plane selected by the selecting module, sending, to the to-be-switched forwarding plane, the sending Command to complete the migration of the forwarding face.
  • the controller further includes: a third sending module and a processing module;
  • the selecting module is configured to select at least one to-be-switched forwarding plane for the current forwarding plane, where the third sending module is configured to send a primary forwarding plane to the current forwarding plane and the at least one to-be-switched forwarding plane a forwarding flow table of the primary forwarding plane is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the processing module is configured to set a primary forwarding surface flow table of the at least one to-be-switched forwarding plane to an inactive state
  • the first sending module is configured to send, to the current forwarding plane, a stop command to stop using the primary forwarding surface flow table;
  • the second sending module is configured to send an enable command for enabling the primary forwarding surface flow table to the at least one to-be-switched forwarding plane.
  • the third sending module is further configured to use the current forwarding plane and the at least one The forwarding forwarding plane sends an updated primary forwarding plane flow table.
  • the selecting module is configured to The current forwarding plane selects at least one forwarding plane to be switched;
  • the first sending module is configured to send, to the current forwarding plane, a stop command that carries the information about the deletion of the primary forwarding plane flow table, where the primary forwarding plane flow table is the forwarding of the service information that is transmitted on the current forwarding plane.
  • the second sending module is configured to send, to the at least one to-be-switched forwarding plane, a start command that carries the primary forwarding surface flow table.
  • the controller further includes: an acquiring module, configured to acquire a master-slave relationship of the forwarding plane;
  • the selecting module is configured to select at least one forwarding plane from the forwarding plane of the current forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship acquired by the acquiring module.
  • the controller further includes:
  • a third sending module configured to send a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one to-be-switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding
  • the surface flow table, the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the third sending module is further configured to send a backup command to the current forwarding plane, to And causing the current forwarding plane to periodically back up the primary forwarding plane flow table to at least one of the to-be-switched forwarding planes.
  • the acquiring module is configured to use the current forwarding plane Sending a master-slave configuration request, receiving a master-slave configuration response sent by the current forwarding plane.
  • the controller further includes:
  • a receiving module configured to receive a forwarding plane switching request sent by the current forwarding plane
  • the first sending module is further configured to send a forwarding plane switching response to the current forwarding plane.
  • the embodiment of the present invention provides a forwarding plane migration apparatus, where a forwarding plane is separated from a control plane, and the forwarding plane is a current forwarding plane, where the forwarding plane migration apparatus includes:
  • a first receiving module configured to receive a stop command sent by the controller
  • a processing module configured to stop the forwarding function of the current forwarding plane, to send an enable command to the to-be-switched forwarding plane after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane To complete the forwarding plane migration, where the to-be-switched forwarding plane is a forwarding plane of other gateways outside the gateway.
  • the forwarding plane migration apparatus further includes: a second receiving module, configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding plane stream The table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the first receiving module is configured to receive a stop command sent by the controller to stop using the primary forwarding surface flow table.
  • the second receiving module is further configured to receive an updated main sent by the network controller Forward the surface flow table.
  • the first receiving module is configured to receive a stop command that carries the primary forwarding surface flow table deletion information.
  • the forwarding plane migration apparatus further includes: a second receiving module, configured to receive a migration command sent by the controller, and migrate the entire forwarding plane information to at least one The forwarding plane is to be switched, and the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the second receiving module is further configured to receive a backup instruction sent by the controller;
  • the processing module is further configured to periodically switch to the at least one to-be-switched forwarding plane to periodically back up the entire forwarding plane information to the at least one to-be-switched forwarding plane.
  • the first sending module is further included;
  • the first receiving module is further configured to receive a master-slave configuration request sent by the controller, where the first sending module is configured to send a master-slave configuration response to the controller.
  • the second sending module is further included;
  • the second sending module is configured to send a forwarding plane switching request to the controller
  • the first receiving module is configured to receive a forwarding plane switching response sent by the controller.
  • the embodiment of the present invention provides a forwarding plane migration apparatus, where a forwarding plane is separated from a control plane, and the forwarding plane is a to-be-switched forwarding plane, and the forwarding plane migration apparatus includes:
  • a first receiving module configured to receive an enable command sent by the controller
  • a processing module configured to enable the forwarding function of the to-be-switched forwarding plane, so that the controller migrates service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane Then, the forwarding plane migration is completed, where the current forwarding plane is a forwarding plane of a gateway that needs to perform forwarding plane migration.
  • the device further includes:
  • a second receiving module configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the first receiving module is configured to receive an enable command sent by the controller to enable the primary forwarding surface flow table.
  • the first receiving module is further configured to receive an updated primary forwarding sent by the controller Flow table.
  • the first receiving module is further configured to receive a start command that is sent by the controller and that carries a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the processing module is configured to: after the current forwarding plane receives the migration command sent by the controller, save the current controller to migrate by using a handover mode
  • the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the embodiment of the present invention further provides a gateway, including the forwarding surface migration apparatus of any one of the first to seventh aspects of the fifth aspect, the fifth aspect, and/or the sixth The forwarding surface migration device of any one of the first to fourth aspects of the sixth aspect.
  • an embodiment of the present invention provides a controller, including: a processor and a memory, where the memory stores an execution instruction, and when the controller is running, the processor communicates with the memory, where Executing the execution instruction by the processor causes the controller to perform any of the first to eighth possible implementations of the first aspect, the first aspect.
  • an embodiment of the present invention provides a gateway, including: a processor and a memory, where The memory stores execution instructions, when the gateway is running, the processor communicates with the memory, and the processor executes the execution instruction to cause the gateway to perform the second aspect, the second aspect Any one of the first to the seventh possible implementations, and/or the third aspect, any one of the first to fourth aspects of the third aspect.
  • the forwarding plane migration method, the controller, and the gateway provided by the embodiment of the present invention, the controller sends the enable command to the to-be-switched forwarding plane by sending a stop command to the current forwarding plane by selecting the to-be-switched forwarding plane, thereby performing the migration of the forwarding plane.
  • Control which realizes the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated.
  • Embodiment 1 is a flowchart of Embodiment 1 of a forwarding plane migration method according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for forwarding a forwarding plane according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a method for forwarding a forwarding plane according to the present invention
  • Embodiment 4 is a signaling diagram of Embodiment 4 of a method for forwarding a forwarding plane according to the present invention
  • FIG. 5 is a signaling diagram of Embodiment 5 of a method for forwarding a forwarding plane according to the present invention
  • Embodiment 6 is a signaling diagram of Embodiment 6 of a forwarding plane migration method according to the present invention.
  • Embodiment 7 is a signaling diagram of Embodiment 7 of a method for forwarding a forwarding plane according to the present invention.
  • Embodiment 8 is a signaling diagram of Embodiment 8 of a forwarding plane migration method according to the present invention.
  • Embodiment 9 is a schematic structural diagram of Embodiment 1 of a controller according to the present invention.
  • Embodiment 2 of a controller according to the present invention.
  • FIG. 1 is a schematic structural diagram of Embodiment 1 of a migration plane forwarding device according to the present invention
  • Embodiment 12 is a schematic structural diagram of Embodiment 2 of a forwarding plane migration apparatus according to the present invention.
  • Embodiment 3 is a schematic structural diagram of Embodiment 3 of a migration plane forwarding device according to the present invention.
  • Embodiment 4 of a forwarding plane migration apparatus according to the present invention.
  • FIG. 15 is a schematic structural diagram of Embodiment 3 of a controller according to the present invention.
  • FIG. 16 is a schematic structural diagram of a control gateway according to the present invention. detailed description
  • FIG. 1 is a flowchart of Embodiment 1 of a method for forwarding a forwarding plane according to the present invention.
  • the execution entity of this embodiment is a controller, which is applicable to a scenario in which the control plane and the forwarding plane are separated from each other, and the forwarding plane needs to be separately migrated.
  • the embodiment includes the following steps:
  • the control plane and the forwarding plane of the gateway can be separated, and the separated control plane forms an independent control plane with the control function of the MME, and the separated forwarding plane forms an independent forwarding plane, where
  • the gateway may be, for example, an S-GW for completing forwarding and routing of packet data, or a P-GW connected to an external data network, or even a gateway deployed by the S-GW and the P-GW.
  • the forwarding plane of the gateway that needs to perform the forwarding plane migration is referred to as the current forwarding plane
  • the forwarding plane of the gateway that is finally switched to is referred to as the forwarding plane to be switched
  • the process of forwarding the forwarding plane is the service information.
  • the current forwarding plane determines that some services or all services need to be forwarded to the forwarding plane; or, the service switching, hot backup, etc. are required.
  • the controller selects a forwarding plane to be switched, and the to-be-switched forwarding plane may be one or more.
  • an enable command is sent to the to-be-switched forwarding plane to complete the migration of the forwarding plane.
  • the controller After selecting the forwarding plane to be switched, the controller sends a stop command to the current forwarding plane, so that the current forwarding plane stops transmission of part or all of the service information, and at the same time, the controller sends the to-be-switched forwarding plane to enable.
  • the command causes the to-be-switched forwarding plane to start transmitting part or all of the migrated service information.
  • the controller controls the migration of the forwarding plane by selecting a to-be-switched forwarding plane, sending a stop command to the current forwarding plane, and transmitting an enable command to the forwarding plane to be switched.
  • FIG. 2 is a flowchart of Embodiment 2 of a method for forwarding a forwarding plane according to the present invention.
  • the execution entity of this embodiment is a gateway, and the forwarding plane is separated from the control plane, and the forwarding plane is a gateway of the current forwarding plane, and is applicable to a scenario in which the forwarding plane is separately migrated.
  • the embodiment includes the following steps:
  • the current forwarding plane stops the transmission of part or all of the service information, so that after the controller sends the enable command to the to-be-switched forwarding plane, part or all of the service information transmitted through the current forwarding plane is migrated to the to-be-switched forwarding. On the surface.
  • the forwarding plane migration method needs to perform the current forwarding plane of the forwarding plane migration. After receiving the stop command sent by the controller, after the controller selects the to-be-switched forwarding plane and enables the forwarding plane to be switched, some or all of the stops are stopped.
  • the forwarding function of the service information enables the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated under the control of the controller.
  • FIG. 3 is a flowchart of Embodiment 3 of a method for forwarding a forwarding plane according to the present invention.
  • the execution entity of this embodiment is a gateway, and the forwarding plane is separated from the control plane, and the forwarding plane is a gateway to be switched to be forwarded, and is applicable to a scenario in which the forwarding plane to be migrated is separately migrated.
  • the embodiment includes the following steps:
  • the forwarding plane migration is completed, where the current forwarding is performed.
  • the face is the forwarding plane of the gateway that needs to perform forwarding plane migration.
  • the forwarding plane to be switched enables the forwarding function to transmit some or all of the service information transmitted by the current forwarding plane.
  • the selected forwarding to-be-switched forwarding plane transmits the partial or all service information transmitted by the current forwarding plane through the enable command sent by the receiving controller, thereby enabling the controller to Under control, a separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated is implemented.
  • FIG. 1, FIG. 2 and FIG. 3 respectively illustrate the present invention at the perspective of the controller, the current forwarding plane, and the forwarding plane to be switched.
  • the present invention will be described in detail from the interaction process of the three.
  • FIG. 4 is a signaling diagram of Embodiment 4 of a method for forwarding a forwarding plane according to the present invention.
  • the controller sends the service information to the forwarding plane to be switched while transmitting the service information to the current forwarding plane.
  • the embodiment includes the following steps:
  • the controller selects at least one forwarding plane to be switched for the current forwarding plane.
  • the controller selects at least one alternate to-be-switched forwarding plane for it.
  • the controller sends a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane.
  • the controller searches for and forwards the packet by querying the flow table of the switch.
  • the flow table is composed of a plurality of flow entries, and each flow entry is a forwarding rule.
  • the flow table includes match field, counters, and instructions. Different vendors can design different flow tables according to their needs.
  • the controller controls the flow table to achieve centralized control of the entire network.
  • service information such as packet data
  • Each service information has its own flow table.
  • the controller sends a primary forwarding plane flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane, for example, part of the service information.
  • the primary forwarding plane flow table sent to the current forwarding plane needs to be sent to the forwarding plane to be switched, that is, the operations of adding a flow table, modifying the flow table, and deleting the flow table to the current forwarding plane, all need the same backup. Go to the forwarding plane to be switched.
  • the steps include the following sub-steps:
  • the controller sends a primary forwarding surface flow table to the current forwarding plane. 4022. The controller sends a primary forwarding flow table to the to-be-switched forwarding plane.
  • the steps include the following steps:
  • the user performs data transmission through the current forwarding plane.
  • Whether the current forwarding plane needs to be migrated can be determined by the controller; or, it is determined by the current forwarding plane. Specifically, the steps include the following optional sub-steps:
  • the controller determines that the forwarding plane needs to be migrated
  • the current forwarding plane determines that the forwarding plane needs to be migrated.
  • step 406 if the current forwarding plane needs to be migrated by the controller, execute 408; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, then step 406 is performed.
  • the current forwarding sends a forwarding plane switching request to the controller.
  • the controller sends a forwarding plane switching response to the current forwarding plane.
  • the controller sends a stop command to stop using the primary forwarding surface flow table to the current forwarding plane.
  • the controller sends a stop command to notify the current forwarding plane to stop using the primary forwarding surface flow table. If the primary forwarding surface flow table is a combination of flow tables corresponding to all service information, the current forwarding plane stops forwarding.
  • the current forwarding plane may also stop forwarding after receiving the forwarding plane switching response.
  • the controller sends an enable command for enabling the primary forwarding plane flow table to the to-be-switched forwarding plane.
  • the controller sends an enable command to the to-be-switched forwarding plane, indicating that the to-be-switched forwarding plane enables the primary forwarding plane flow table that is the same as the current forwarding plane.
  • the controller sends a stop command to the current forwarding plane, indicating that the information of the current forwarding plane has been migrated; and sending an enable command to the to-be-switched forwarding plane, indicating that the forwarding forwarding plane enables the primary forwarding plane flow table.
  • the steps include the following steps:
  • 4101 Set a primary forwarding surface flow table of the current forwarding plane to a standby state; 4102. Set a primary forwarding surface flow table of the forwarding plane to be switched to an active state.
  • the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
  • FIG. 5 is a signaling diagram of Embodiment 5 of a method for forwarding a forwarding plane according to the present invention.
  • the present embodiment introduces a process in which the controller needs to update the updated primary forwarding surface flow table to the to-be-switched forwarding plane after the current forwarding surface flow table of the current forwarding plane is updated. Specifically, the embodiment includes the following steps:
  • the controller selects at least one forwarding plane to be switched for the current forwarding plane.
  • the controller sends a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane.
  • the steps include the following sub-steps:
  • the controller sends a primary forwarding surface flow table to the current forwarding plane.
  • the controller sends a primary forwarding flow table to the to-be-switched forwarding plane.
  • the steps include the following steps:
  • the user performs data transmission through the current forwarding plane.
  • steps 501 to 504 please refer to steps 401 to 404 in the embodiment of FIG. 4, and details are not described herein again.
  • the controller interacts with the current forwarding plane for status information.
  • the controller exchanges state information with the current forwarding plane, and performs service information on the current forwarding plane. Update and update the main forwarding surface flow table.
  • the controller sends an updated primary forwarding surface flow table to the current forwarding plane.
  • the controller sends an updated primary forwarding plane flow table to the to-be-switched forwarding plane.
  • the service information between the current forwarding plane and the to-be-switched forwarding plane can be maintained, and the primary forwarding surface flow table of the service information to be migrated can be maintained to prevent the flow table from being changed.
  • the steps include the following optional sub-steps:
  • the controller determines that the forwarding plane needs to be migrated
  • step 5052 The current forwarding plane determines that the forwarding plane needs to be migrated. In this step, if the current forwarding plane needs to be migrated by the controller, step 508 is performed; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, step 506 is performed.
  • the current forwarding sends a forwarding plane switching request to the controller.
  • the controller sends a forwarding plane switching response to the current forwarding plane.
  • the controller sends a stop to the current forwarding plane to stop using the updated primary forwarding surface flow table.
  • the controller sends an enable command of the primary forwarding surface flow table that is enabled to be updated to the to-be-switched forwarding plane.
  • the controller sends an enable command to the to-be-switched forwarding plane, indicating that the to-be-switched forwarding plane enables the updated primary forwarding plane flow table that is the same as the current forwarding plane.
  • the steps include the following steps:
  • a primary forwarding plane flow table to be updated by the forwarding plane to be in an active state. Thereafter, the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
  • FIG. 6 is a signaling diagram of Embodiment 6 of a method for forwarding a forwarding plane according to the present invention.
  • the controller sends the service information to the current forwarding plane, and also sends the service information to the to-be-switched forwarding plane.
  • the service information in this embodiment, only when the current forwarding plane needs to be migrated, the controller sends the service information to the to-be-switched forwarding plane.
  • the embodiment includes the following steps:
  • each forwarding provides a forwarding function for the service information transmitted through it.
  • the primary forwarding surface flow table of the service information transmitted by the current forwarding plane is only saved on the current forwarding plane.
  • the primary forwarding surface flow table is not saved on the other forwarding planes, and only one or more flow tables of its own related services are saved.
  • the steps include the following steps:
  • the controller determines that the forwarding plane needs to be migrated.
  • the current forwarding plane determines that the forwarding plane needs to be migrated.
  • step 605 if the migration of the current forwarding plane is determined by the controller, then step 605 is performed; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, then step 603 is performed.
  • the current forwarding sends a forwarding plane switching request to the controller.
  • the controller sends a forwarding plane switching response to the current forwarding plane.
  • the controller selects at least one to-be-switched forwarding plane for the current forwarding plane.
  • the controller sends a stop command that carries the information about deleting the primary forwarding surface flow table to the current forwarding plane.
  • the controller sends a stop command to the current forwarding plane, where the stop command carries the deletion information of the primary forwarding plane flow table, and the current forwarding plane deletes the information according to the primary forwarding plane flow table, and deletes the flow table, that is, deletes the service information that needs to be migrated.
  • Flow table
  • the controller sends a start command that carries the primary forwarding surface flow table to the to-be-switched forwarding plane.
  • the controller sends the flow table of some or all of the service information of the current forwarding plane, that is, the primary forwarding surface flow table, to the to-be-switched forwarding plane, and the primary forwarding surface flow table may be one or more.
  • the controller sets a flow table state.
  • the steps include the following steps:
  • the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
  • the flow table and related information of part or all of the service information transmitted through the current forwarding plane are migrated to the to-be-switched forwarding plane. , thereby achieving the migration of the forwarding surface.
  • the entire forwarding plane information of the current forwarding plane needs to be migrated to the forwarding plane to be switched.
  • the entire forwarding plane information includes at least a primary forwarding surface flow table, environment information of a current forwarding plane, and the like.
  • FIG. 7 is a signaling diagram of Embodiment 7 of a method for forwarding a forwarding plane according to the present invention.
  • the to-be-switched forwarding plane is implemented by using a virtual machine, and each forwarding plane has an explicit master-slave relationship.
  • the controller, the current forwarding plane, and the to-be-switched forwarding plane perform signaling. Interaction, thereby migrating the entire forwarding surface information to the forwarding surface to be switched.
  • the current forwarding plane is referred to as the master forwarding plane
  • the to-be-switched forwarding plane is referred to as the slave forwarding plane.
  • the embodiment includes the following steps:
  • the controller acquires a master-slave relationship of the forwarding plane.
  • the master-slave relationship of the forwarding plane can be set by the controller or set by a third party such as Operation and Maintenance System (OAS) and saved on each forwarding plane.
  • OAS Operation and Maintenance System
  • step 704 if the master-slave relationship is set by the controller, after the master-slave relationship is set, step 704 is performed; otherwise, if the master-slave relationship is set by a third party, step 702 is performed.
  • the controller sends a master-slave configuration request to the primary forwarding plane.
  • the controller receives a master-slave configuration response sent by the primary forwarding plane.
  • the master-slave configuration response carries information about the slave forwarding plane of the primary forwarding plane.
  • the controller determines if the primary forwarding plane needs to be migrated.
  • the controller selects at least one forwarding plane to be switched as a primary forwarding plane.
  • the controller selects at least one forwarding plane from the forwarding plane of the primary forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship.
  • the controller sends a migration command to the primary forwarding plane.
  • the controller sends a handover command to the primary forwarding plane, so that the primary forwarding plane is switched to the secondary forwarding plane by using the switching mode, that is, the entire forwarding plane information is migrated to at least one secondary forwarding plane, and the entire forwarding plane information includes at least a primary forwarding surface flow table,
  • the forwarding surface flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
  • the primary forwarding plane migrates the entire forwarding plane information to the secondary forwarding plane.
  • the entire forwarding plane information that is transferred by the primary forwarding plane through the switching mode.
  • the entire forwarding plane information includes at least a primary forwarding plane flow table, and the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the primary forwarding plane.
  • the controller sets a flow table state.
  • the steps include the following steps:
  • 7092 Set the primary forwarding surface flow table from the forwarding plane to the active state.
  • the forwarding plane enters the suspended state (can be stopped), and the forwarding function of the primary forwarding plane is completed by one or more forwarding planes, thereby completing the migration process of the forwarding plane.
  • FIG. 8 is a signaling diagram of Embodiment 8 of a forwarding plane migration method according to the present invention.
  • This embodiment introduces a process of regular backup on the basis of the above-mentioned seventh embodiment. Specifically, the embodiment includes the following steps:
  • the controller acquires a master-slave relationship of the forwarding plane.
  • the controller sends a master-slave configuration request to the primary forwarding plane.
  • the controller receives a master-slave configuration response sent by the primary forwarding plane.
  • the controller sends a backup command to the primary forwarding plane.
  • the controller periodically initiates a backup command to the primary forwarding plane, indicating that the primary forwarding plane periodically performs backup on the forwarding plane.
  • the primary forwarding plane periodically switches to the forwarding plane to be switched.
  • the primary forwarding plane periodically switches to at least one to-be-switched forwarding plane, and the entire forwarding plane information is periodically backed up to at least one to-be-switched forwarding plane by periodically performing online migration but not switching.
  • the controller selects at least one forwarding plane to be switched as the primary forwarding plane.
  • the controller sends a stop command to the primary forwarding plane.
  • the controller sends a stop command to the primary forwarding plane, so that the primary forwarding stops forwarding function for all or part of the service information.
  • the controller sends an enable command to the forwarding plane.
  • the controller sets a flow table state.
  • the steps include the following steps:
  • 8081 Set a primary forwarding surface flow table of the primary forwarding plane to a standby state; 8082. Set the flow table of the primary forwarding plane from the forwarding plane to the active state.
  • the forwarding plane enters the suspended state (can be stopped), and the forwarding function of the primary forwarding plane is completed by one or more forwarding planes, thereby completing the migration process of the forwarding plane.
  • FIG. 4 only the service-related information needs to be migrated to implement the migration of the forwarding plane, and in the embodiment shown in FIG. 7 and FIG.
  • the forwarding plane is implemented by the virtual machine.
  • the entire forwarding plane information of the current forwarding plane such as the primary forwarding plane flow table and the running environment of the current forwarding plane, are migrated to the forwarding plane, that is, the forwarding plane to be switched. Since the entire forwarding plane information is relatively large, the embodiments shown in Figs. 4, 5 and 6 can reduce the delay in the forwarding plane migration process with respect to the embodiment shown in Figs. 7 and 8.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of the controller of the present invention.
  • the controller provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 1 of the present invention, and the specific implementation process is not described herein again.
  • the controller 100 provided in this embodiment specifically includes:
  • the selecting module 11 is configured to select a forwarding plane to be switched
  • the first sending module 12 is configured to send a stop command to the current forwarding plane
  • the migration module 13 is configured to migrate the service information transmitted by the current forwarding plane to the forwarding plane to be switched selected by the selecting module 11;
  • the second sending module 13 is further configured to: after the migration module 13 migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane selected by the selecting module 11, sends an enable command to the to-be-switched forwarding plane to complete the migration of the forwarding plane. .
  • the controller provided by the embodiment of the present invention controls the migration of the forwarding plane by selecting a to-be-switched forwarding plane and sending a stop command to the current forwarding plane, thereby implementing control plane and forwarding plane.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of a controller according to the present invention.
  • the controller 200 of this embodiment further comprises: a third transmitting module 15 and a processing module 16 on the basis of the device structure of FIG.
  • the selecting module 11 is configured to select at least one to-be-switched forwarding plane for the current forwarding plane
  • the third sending module 15 is configured to send a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the processing module 16 is configured to set the primary forwarding surface flow table of the at least one to-be-switched forwarding plane to an inactive state;
  • the first sending module 12 is configured to send, to the current forwarding plane, a stop command to stop using the primary forwarding surface flow table;
  • the second sending module 13 is configured to send an enable command for enabling the primary forwarding surface flow table to the at least one forwarding plane to be switched.
  • the third sending module 15 is further configured to send an updated primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane.
  • the selection module 11 is configured to select at least one to-be-switched forwarding plane for the current forwarding plane.
  • the first sending module 12 is configured to send a stop command carrying the deletion information of the primary forwarding plane flow table to the current forwarding plane, and the primary forwarding plane
  • the flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the second sending module 13 is configured to send, to the at least one to-be-switched forwarding plane, a start command that carries the primary forwarding surface flow table.
  • controller 200 further includes:
  • the obtaining module 17 is configured to obtain a master-slave relationship of the forwarding plane
  • the selecting module 11 is configured to select at least one forwarding plane from the forwarding plane of the current forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship acquired by the obtaining module 17.
  • controller 200 further includes:
  • the third sending module 15 is configured to send a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one to-be-switched forwarding plane, and the entire forwarding plane information includes at least a primary forwarding plane flow table, and a primary forwarding plane.
  • the flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
  • the third sending module 15 is further configured to send a backup command to the current forwarding plane, so that the current forwarding plane periodically backs up the primary forwarding surface flow table to at least one to-be-switched forwarding plane.
  • the obtaining module 17 is configured to send a master-slave configuration request to the current forwarding plane, and receive a master-slave configuration response sent by the current forwarding plane.
  • the controller 200 further includes: a receiving module 18, configured to receive a forwarding plane switching request sent by the current forwarding plane;
  • the first sending module 12 is further configured to send a forwarding plane switching response to the current forwarding plane.
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of the migration plane forwarding device of the present invention.
  • the migration plane forwarding device provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 2 of the present invention, and details of the implementation process are not described herein again.
  • the forwarding plane is separated from the control plane, and the forwarding plane is the current forwarding plane.
  • the forwarding plane migration apparatus 300 includes:
  • the first receiving module 21 is configured to receive a stop command sent by the controller.
  • the processing module 22 is configured to stop the forwarding function of the current forwarding plane, so that after the controller migrates the service information transmitted by the current forwarding plane to the forwarding plane to be switched, an enable command is sent to the forwarding plane to be switched to complete the forwarding plane migration, where The forwarding plane to be switched is the forwarding plane of other gateways other than the gateway.
  • the forwarding plane migration apparatus needs to perform the current forwarding plane of the forwarding plane migration, and stops the part or all after the controller selects the to-be-switched forwarding plane and enables the forwarding plane to be switched, by receiving the stop command sent by the controller.
  • the forwarding function of the service information enables the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated under the control of the controller.
  • FIG. 12 is a schematic structural diagram of Embodiment 2 of the forwarding plane migration apparatus according to the present invention.
  • the forwarding plane migration apparatus 400 of the present embodiment further includes:
  • the second receiving module 23 is configured to receive a primary forwarding surface flow table sent by the controller, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the first receiving module 21 is configured to receive, by the controller, the stop of using the primary forwarding surface flow table, and the second receiving module 23 is further configured to receive the updated primary forwarding surface flow table sent by the network controller.
  • the first receiving module 21 is configured to receive a stop command that carries the deletion information of the primary forwarding surface flow table.
  • the second receiving module 23 is configured to receive a migration command sent by the controller, and migrate the entire forwarding plane information to at least one to be switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding plane flow table, and a primary forwarding surface stream.
  • the table is the forwarding rule of the service information transmitted on the current forwarding plane.
  • the second receiving module 23 is further configured to receive a backup instruction sent by the controller; the processing module 22 is further configured to periodically switch to at least one to-be-switched forwarding plane to periodically back up the entire forwarding plane information to at least one to-be-backed Switch the forwarding plane.
  • the forwarding surface migration device 400 further includes a first transmitting module 24;
  • the first receiving module 21 is further configured to receive a master-slave configuration request sent by the controller;
  • the first sending module 24 is configured to send a master-slave configuration response to the controller.
  • the forwarding surface migration device 400 further includes a second transmitting module 25;
  • a second sending module 25 configured to send a forwarding plane switching request to the controller
  • the first receiving module 21 is configured to receive a forwarding plane switching response sent by the controller.
  • FIG. 13 is a schematic structural diagram of Embodiment 3 of the migration plane forwarding apparatus according to the present invention.
  • the migration plane forwarding apparatus provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 3 of the present invention, and details of the implementation process are not described herein again.
  • the forwarding plane is separated from the control plane, and the forwarding plane is a forwarding plane to be switched.
  • the forwarding plane migration apparatus 500 includes:
  • the first receiving module 31 is configured to receive an enable command sent by the controller.
  • the processing module 32 is configured to enable the forwarding function of the forwarding plane to be switched, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane, the forwarding plane migration is completed.
  • the current forwarding plane is the forwarding plane of the gateway that needs to perform forwarding plane migration.
  • the selected forwarding forwarding plane sends an activation command sent by the receiving controller, and enables the forwarding function to transmit part or all of the service information transmitted by the current forwarding plane, thereby being Under control, a separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated is implemented.
  • FIG. 14 is a schematic structural diagram of Embodiment 4 of the forwarding plane migration apparatus according to the present invention.
  • the forwarding plane migration apparatus 600 of the present embodiment further includes:
  • the second receiving module 33 is configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
  • the first receiving module 31 is configured to receive an enable command sent by the controller to enable the primary forwarding surface flow table. Further, the first receiving module 31 is further configured to receive an updated primary forwarding flow table sent by the controller.
  • the first receiving module 31 is further configured to receive, by the controller, a start command that carries a flow table of the primary forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
  • the processing module 32 is configured to save, after the current forwarding plane receives the migration command sent by the controller, the entire forwarding plane information that is migrated by the current controller by using the handover mode, where the entire forwarding plane information includes at least a primary forwarding surface flow table.
  • the primary forwarding plane flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
  • the embodiment of the present invention further provides a gateway, including the forwarding plane migration apparatus shown in FIG. 11 or FIG. 12, and/or the forwarding plane migration apparatus as shown in FIG. 13 or FIG. Let me repeat.
  • FIG. 15 is a schematic structural diagram of Embodiment 3 of a controller according to the present invention.
  • the controller 700 is provided to include a processor 71 and a memory 72.
  • the controller 700 can also include a transmitter 73, a receiver 74. Transmitter 73 and receiver 74 can be coupled to processor 71.
  • the memory 72 stores execution instructions. When the controller 700 is running, the processor 71 communicates with the memory 72. The processor 71 calls the execution instructions in the memory 72 for executing the method embodiment shown in FIG. Similar to the technical effect, it will not be described here.
  • FIG. 16 is a schematic structural diagram of a control gateway according to the present invention.
  • the gateway 800 provided in this embodiment includes a processor 81 and a memory 82.
  • the gateway 800 can also include a transmitter 83, a receiver 84. Transmitter 83 and receiver 84 can be coupled to processor 81.
  • the memory 82 stores execution instructions.
  • the processor 81 communicates with the memory 82.
  • the processor 81 calls the execution instructions in the memory 82 for executing FIG. 2, and/or the method shown in FIG.
  • the implementation principle and technical effects of the embodiments are similar, and are not described herein again.

Landscapes

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

Abstract

Embodiments of the present invention provide a forwarding plane migration method, a controller, and a gateway. The method comprises: selecting a forwarding plane to be switched; sending a stop command to a current forwarding plane; and after service information transmitted through the current forwarding plane is migrated to the forwarding plane to be switched, sending a start command to the forwarding plane to be switched to implement the migration of the forwarding plane. In the migration process of the forwarding plane, by selecting a forwarding plane to be switched, a controller sends a stop command to a current forwarding plane and at the same time, sends a start command to the forwarding plane to be switched, as to control the migration of the forwarding plane, and implement the separate migration of the forwarding plane in a network architecture in which the control plane is separated from the forwarding plane.

Description

转发面迁移方法、 控制器及网关 技术领域  Forwarding plane migration method, controller and gateway
本发明实施例涉及通信技术, 尤其涉及一种转发面迁移方法、 控制器及 网关。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a forwarding plane migration method, a controller, and a gateway. Background technique
目前, 随着互联网规模的迅速扩展, 网络服务的多样性和复杂度也变得 越来越高, 急需全新的网络架构理念来维持互联网的可持续发展。 基于 OpenFlow技术的软件定义网络 (Software Defined Network, SDN) 与面向 互联网协议 (Internet protocol , IP ) 的分组域核心网的演进项目 (System Architecture Evolution, SAE) , 即第四代移动通信(the 4th Generation Mobile Communication, 4G) 网络应用而生。  At present, with the rapid expansion of the Internet scale, the diversity and complexity of network services are becoming higher and higher, and a new network architecture concept is urgently needed to maintain the sustainable development of the Internet. Software Defined Network (SDN) based on OpenFlow technology and System Architecture Evolution (SAE) for Internet Protocol (IP), the fourth generation mobile communication (the 4th Generation) Mobile Communication, 4G) Born to the web.
OpenFlow技术将传统物理固定的硬件改造成动态可别的 SDN, 实现了 控制面和转发面的分离; SAE网络包括接入网和核心网两部分, 核心网中的 关键网元包括移动管理实体 (Mobility Management Entity, MME) 、 服务网 关 (Servicing, S-GW) 、 分组数据网关) (Packet Data Network Gateway, P-GW) , 其中 MME完成对信令等控制面的处理, S-GW与 P-GW主要负责 转发面的功能。 随着技术的发展, 各种网络不可避免的需要融合, 即需要将 SDN网络架构引入到 SAE网络, 此时, 将 S-GW与 P-GW逻辑上的控制面 功能和转发面功能分离。 在需要进行转发面迁移时, 控制面将会附着到相应 的转发面上, 实现对数据报文的转发, 即实现转发面的迁移。  The OpenFlow technology transforms the traditional physical fixed hardware into a dynamic and identifiable SDN, which realizes the separation of the control plane and the forwarding plane. The SAE network includes the access network and the core network. The key network elements in the core network include the mobility management entity ( Mobility Management Entity (MME), Servicing (S-GW), Packet Data Network Gateway (P-GW), where the MME completes the processing of control planes such as signaling, S-GW and P- GW is mainly responsible for the function of the forwarding plane. With the development of technology, various networks inevitably need to be integrated, that is, the SDN network architecture needs to be introduced into the SAE network. At this time, the logical control plane function and the forwarding plane function of the S-GW and the P-GW are separated. When the forwarding plane migration is required, the control plane will be attached to the corresponding forwarding plane to forward the data packets, that is, the forwarding plane is migrated.
然而, 在控制面和转发面分离的架构中, 并不总是需要控制面和转发面 绑定起来同时迁移, 例如, 为实现业务倒换、 热备份等时, 需要对控制面和 转发面单独进行迁移; 又如, 在控制面云化的场景下, 无需对控制面和转发 面同时迁移。 发明内容  However, in the architecture where the control plane and the forwarding plane are separated, the control plane and the forwarding plane are not always bound to be migrated at the same time. For example, in order to implement service switching, hot backup, etc., the control plane and the forwarding plane need to be separately performed. Migration; For example, in the scenario where the control plane is clouded, there is no need to simultaneously migrate the control plane and the forwarding plane. Summary of the invention
本发明实施例提供转发面迁移方法、 控制器及网关, 实现控制面和转发 面分离的网络架构中, 对转发面的单独迁移。 The embodiment of the invention provides a forwarding plane migration method, a controller and a gateway, and implements a control plane and forwarding In a separate network architecture, separate migration of forwarding planes.
第一个方面, 本发明实施例提供一种转发面迁移方法, 包括:  In a first aspect, an embodiment of the present invention provides a forwarding plane migration method, including:
选择待切换转发面;  Select the forwarding surface to be switched;
向当前转发面发送停止命令;  Send a stop command to the current forwarding plane;
将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上后, 向所述待切换转发面发送启用命令以完成转发面的迁移。  After the service information transmitted by the current forwarding plane is migrated to the to-be-switched forwarding plane, an enable command is sent to the to-be-switched forwarding plane to complete the migration of the forwarding plane.
在第一个方面的第一种可能的实现方式中, 所述选择待迁移转发面, 包 括:  In a first possible implementation manner of the first aspect, the selecting a forwarding plane to be migrated includes:
为所述当前转发面选择至少一个待切换转发面;  Selecting at least one to-be-switched forwarding plane for the current forwarding plane;
所述选择待切换转发面之后, 向当前转发面发送停止命令之前, 还包括: 向所述当前转发面与所述至少一个待切换转发面发送主转发面流表, 所 述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则;  And after the sending of the stop command to the current forwarding plane, the method further includes: sending a primary forwarding plane flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
将所述至少一个待切换转发面上的主转发面流表设置为非活动状态; 所述向当前转发面发送停止命令, 包括:  Setting the primary forwarding surface flow table on the at least one to-be-switched forwarding plane to an inactive state; the sending a stop command to the current forwarding plane includes:
向所述当前转发面发送停止使用所述主转发面流表的停止命令; 所述向所述待切换转发面发送启用命令, 包括:  And sending, to the current forwarding plane, a stop command to stop using the primary forwarding plane flow table; and sending the enable command to the to-be-switched forwarding plane, including:
向所述至少一个待切换转发面发送启用所述主转发面流表的启用命令。 结合第一个方面的第一种可能的实现方式, 在第一个方面的第二种可能 的实现方式中, 所述向所述当前转发面与所述至少一个待切换转发面发送主 转发面流表之后, 将所述至少一个待切换转发面上的主转发面流表设置为 非活动状态之前, 还包括:  Sending an enable command for enabling the primary forwarding plane flow table to the at least one to-be-switched forwarding plane. With the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the sending, by the current forwarding plane, the at least one to-be-switched forwarding plane, a primary forwarding plane After the flow table is configured, before the at least one primary forwarding surface flow table to be switched on the forwarding plane is set to be inactive, the method further includes:
向所述当前转发面与所述至少一个待切换转发面发送更新的主转发面流 表。  And sending an updated primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane.
在第一个方面的第三种可能的实现方式中, 所述选择待迁移转发面, 包 括:  In a third possible implementation manner of the first aspect, the selecting a forwarding plane to be migrated includes:
为所述当前转发面选择至少一个待切换转发面;  Selecting at least one to-be-switched forwarding plane for the current forwarding plane;
所述向当前转发面发送停止命令, 包括:  The sending a stop command to the current forwarding plane includes:
向所述当前转发面发送携带主转发面流表删除信息的停止命令, 所述主 转发面流表为所述当前转发面上传输的所述业务信息的转发规则;  Sending, to the current forwarding plane, a stop command that carries the deletion information of the primary forwarding plane flow table, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
所述向所述待切换转发面发送启用命令, 包括: 向所述至少一个待切换转发面发送携带所述主转发面流表的启动命令。 在第一个方面的第四种可能的实现方式中,所述选择待切换转发面之前, 还包括: Sending an enable command to the to-be-switched forwarding plane includes: And sending, to the at least one to-be-switched forwarding plane, a startup command that carries the primary forwarding plane flow table. In a fourth possible implementation manner of the foregoing aspect, before the selecting the to-be-switched forwarding plane, the method further includes:
获取转发面的主从关系;  Obtain the master-slave relationship of the forwarding plane;
所述选择待切换转发面, 包括:  The selecting a forwarding plane to be switched includes:
根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发 面作为待切换转发面。  And selecting, according to the master-slave relationship, at least one forwarding plane from the forwarding plane of the current forwarding plane as the to-be-switched forwarding plane.
结合第一个方面的第四种可能的实现方式, 在第一个方面的第五种可能 的实现方式中, 所述根据所述主从关系, 从所述当前转发面的从转发面中选 择至少一个转发面作为待切换转发面之后, 向当前转发面发送停止命令之前, 还包括:  With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the selecting, according to the master-slave relationship, selecting from a forwarding plane of the current forwarding plane After the at least one forwarding plane is used as the forwarding plane to be switched, before sending the stop command to the current forwarding plane, the method further includes:
向所述当前转发面发送迁移命令, 以使所述当前转发面将整个转发面信 息迁移至至少一个所述待切换转发面, 所述整个转发面信息至少包括主转发 面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转发 规则。  Sending a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one to-be-switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane The forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
结合第一个方面的第五种可能的实现方式, 在第一个方面的第六种可能 的实现方式中, 所述根据所述主从关系, 从所述当前转发面的从转发面中选 择至少一个转发面作为待切换转发面之后, 向所述当前转发面发送迁移命令 之前, 还包括:  With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the selecting, according to the master-slave relationship, from a forwarding plane of the current forwarding plane After the at least one forwarding plane is used as the forwarding plane to be switched, before sending the migration command to the current forwarding plane, the method further includes:
向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面 流表定期备份至至少一个所述待切换转发面。  Sending a backup command to the current forwarding plane, so that the current forwarding plane periodically backs up the primary forwarding surface flow table to at least one of the to-be-switched forwarding planes.
结合第一个方面的第四种至第六种中任一种可能的实现方式, 在第一个 方面的第七种可能的实现方式中, 所述获取转发面的主从关系, 包括:  With reference to the possible implementation of any one of the fourth to sixth aspects of the first aspect, in the seventh possible implementation of the first aspect, the obtaining the master-slave relationship of the forwarding plane includes:
向所述当前转发面发送主从配置请求;  Sending a master-slave configuration request to the current forwarding plane;
接收所述当前转发面发送的主从配置响应。  Receiving a master-slave configuration response sent by the current forwarding plane.
结合第一个方面的第一种至第六种中任一种可能的实现方式, 在第一个 方面的第八种可能的实现方式中, 所述选择待切换转发面之后, 向当前转发 面发送停止命令之前, 还包括:  With the possible implementation of any one of the first to sixth aspects of the first aspect, in an eighth possible implementation manner of the first aspect, after the selecting the to-be-switched forwarding plane, the current forwarding plane is Before sending a stop command, it also includes:
接收所述当前转发面发送的转发面切换请求;  Receiving a forwarding plane switching request sent by the current forwarding plane;
向所述当前转发面发送转发面切换响应。 第二个方面, 本发明实施例提供一种转发面迁移方法, 适用于转发面与 控制面分离的网关, 所述转发面为当前转发面, 所述方法包括: Transmitting a forwarding plane handover response to the current forwarding plane. In a second aspect, the embodiment of the present invention provides a forwarding plane migration method, where the forwarding plane is separated from the control plane, and the forwarding plane is a current forwarding plane, and the method includes:
接收控制器发送的停止命令;  Receiving a stop command sent by the controller;
停止所述当前转发面的转发功能, 从而在所述控制器将通过所述当前转 发面传输的业务信息迁移到待切换转发面上后向所述待切换转发面发送启用 命令以完成转发面迁移, 其中, 所述待切换转发面为所述网关外的其他网关 的转发面。  Stopping the forwarding function of the current forwarding plane, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane, sends an enable command to the to-be-switched forwarding plane to complete the forwarding plane migration. The to-be-switched forwarding plane is a forwarding plane of other gateways outside the gateway.
在第二个方面的第一种可能的实现方式中, 所述接收控制器发送的停止 命令之前, 还包括:  In a first possible implementation manner of the second aspect, before the stopping command sent by the receiving controller, the method further includes:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;  Receiving a primary forwarding plane flow table sent by the controller, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
所述接收控制器发送的停止命令, 包括:  The stop command sent by the receiving controller includes:
接收所述控制器发送的停止使用所述主转发面流表的停止命令。  Receiving a stop command sent by the controller to stop using the primary forwarding surface flow table.
结合第二个方面的第一种可能的实现方式, 在第二个方面的第二种可能 的实现方式中, 所述接收所述控制器发送的主转发面流表之后, 接收控制器 发送的停止命令之前, 还包括:  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, after receiving the primary forwarding plane flow table sent by the controller, the receiving controller sends the Before stopping the command, it also includes:
接收所述网络控制器发送的更新的主转发面流表。  Receiving an updated primary forwarding plane flow table sent by the network controller.
在第二个方面的第三种可能的实现方式中, 所述接收控制器发送的停止 命令, 包括:  In a third possible implementation manner of the second aspect, the stopping command sent by the receiving controller includes:
接收携带主转发面流表删除信息的停止命令。  Receiving a stop command carrying the deletion information of the primary forwarding surface flow table.
在第二个方面的第四种可能的实现方式中, 所述接收控制器发送的停止 命令之前, 还包括:  In a fourth possible implementation manner of the second aspect, before the stopping command sent by the receiving controller, the method further includes:
接收所述控制器发送的迁移命令, 将整个转发面信息迁移至至少一个待 切换转发面, 所述整个转发面信息至少包括主转发面流表, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。  Receiving the migration command sent by the controller, and migrating the entire forwarding plane information to the at least one to be switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is the current forwarding The forwarding rule of the service information transmitted on the surface.
结合第二个方面的第四种可能的实现方式, 在第二个方面的第五种可能 的实现方式中, 所述接收所述控制器发送的迁移命令之后, 接收控制器发送 的停止命令之前, 还包括:  With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, after receiving the migration command sent by the controller, before receiving the stop command sent by the controller , Also includes:
接收所述控制器发送的备份指令;  Receiving a backup instruction sent by the controller;
定期切换至所述至少一个待切换转发面, 以将所述整个转发面信息定期 备份至所述至少一个待切换转发面。 Switching to the at least one to-be-switched forwarding plane periodically to periodically report the entire forwarding plane information Backing up to the at least one forwarding plane to be switched.
结合第二个方面的第四种或第五种可能的实现方式, 在第二个方面的第 六种可能的实现方式中, 所述接收所述控制器发送的迁移命令之前, 还包括: 接收所述控制器发送的主从配置请求;  With reference to the fourth or fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, before the receiving the migration command sent by the controller, the method further includes: receiving a master-slave configuration request sent by the controller;
向所述控制器发送主从配置响应。  A master-slave configuration response is sent to the controller.
结合第二个方面的第一种至第五种中任一种可能的实现方式, 在第一个 方面的第七种可能的实现方式中, 所述接收控制器发送的停止命令之前, 还 包括:  With reference to the possible implementation of any one of the first to fifth aspects of the second aspect, in a seventh possible implementation manner of the first aspect, before the stopping command sent by the receiving controller, :
向所述控制器发送转发面切换请求;  Sending a forwarding plane switching request to the controller;
接收所述控制器发送的转发面切换响应。  Receiving a forwarding plane switching response sent by the controller.
第三个方面, 本发明实施例提供一种转发面迁移方法, 适用于转发面与 控制面分离的网关, 所述转发面为待切换转发面, 所述方法包括:  In a third aspect, the embodiment of the present invention provides a forwarding plane migration method, where the forwarding plane is separated from the control plane, and the forwarding plane is a forwarding plane to be switched, and the method includes:
接收控制器发送的启用命令;  Receiving an enable command sent by the controller;
启用所述待切换转发面的转发功能, 从而在所述控制器将通过所述当前 转发面传输的业务信息迁移到所述待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进行转发面迁移的 网关的转发面。  The forwarding function of the to-be-switched forwarding plane is enabled, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane, the forwarding plane is completed. The migration, where the current forwarding plane is a forwarding plane of a gateway that needs to perform forwarding plane migration.
在第三个方面的第一种可能的实现方式中, 所述接收控制器发送的启用 命令之前, 还包括:  In a first possible implementation manner of the third aspect, before the enabling command sent by the receiving controller, the method further includes:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;  Receiving a primary forwarding plane flow table sent by the controller, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
所述接收控制器发送的启用命令, 包括:  The enable command sent by the receiving controller includes:
接收所述控制器发送的启用所述主转发面流表的启用命令。  Receiving an enable command sent by the controller to enable the primary forwarding plane flow table.
结合第三个方面的第一种可能的实现方式, 在第三个方面的第二种可能 的实现方式中, 所述接收所述控制器发送的主转发面流表之前, 还包括: 接收所述控制器发送的更新的主转发流表。  With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, before the receiving the primary forwarding surface flow table sent by the controller, the method further includes: An updated primary forwarding flow table sent by the controller.
在第三个方面的第三种可能的实现方式中, 所述接收控制器发送的启用 命令, 包括:  In a third possible implementation manner of the third aspect, the enabling command sent by the receiving controller includes:
接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。 在第三个方面的第四种可能的实现方式中, 所述接收控制器发送的启用 命令之前, 还包括: And receiving, by the controller, a start command that carries a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information that is transmitted on the current forwarding plane. In a fourth possible implementation manner of the third aspect, before the enabling command sent by the receiving controller, the method further includes:
在所述当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前 控制器通过切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括 主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息 的转发规则。  After the current forwarding plane receives the migration command sent by the controller, the entire forwarding plane information that is migrated by the current controller by using the handover mode is saved, where the entire forwarding plane information includes at least a primary forwarding plane flow table, where The primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
第四个方面, 本发明实施例提供一种控制器, 包括:  In a fourth aspect, an embodiment of the present invention provides a controller, including:
选择模块, 用于选择待切换转发面;  a selection module, configured to select a forwarding surface to be switched;
第一发送模块, 用于向当前转发面发送停止命令;  a first sending module, configured to send a stop command to the current forwarding plane;
迁移模块, 用于将通过所述当前转发面传输的业务信息迁移到所述选择 模块选择的所述待切换转发面上;  a migration module, configured to migrate service information transmitted by the current forwarding plane to the to-be-switched forwarding plane selected by the selection module;
第二发送模块, 还用于在所述迁移模块将通过所述当前转发面传输的业 务信息迁移到所述选择模块选择的所述待切换转发面上后, 向所述待切换转 发面发送启用命令以完成转发面的迁移。  The second sending module is further configured to: after the migrating module migrates the service information transmitted by using the current forwarding plane to the to-be-switched forwarding plane selected by the selecting module, sending, to the to-be-switched forwarding plane, the sending Command to complete the migration of the forwarding face.
在第四个方面的第一种可能的实现方式中, 所述控制器还包括: 第三发 送模块和处理模块;  In a first possible implementation manner of the fourth aspect, the controller further includes: a third sending module and a processing module;
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第三发送模块, 用于向所述当前转发面与所述至少一个待切换转发 面发送主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业 务信息的转发规则;  The selecting module is configured to select at least one to-be-switched forwarding plane for the current forwarding plane, where the third sending module is configured to send a primary forwarding plane to the current forwarding plane and the at least one to-be-switched forwarding plane a forwarding flow table of the primary forwarding plane is a forwarding rule of the service information transmitted on the current forwarding plane;
所述处理模块, 用于将所述至少一个待切换转发面上的主转发面流表 设置为非活动状态;  The processing module is configured to set a primary forwarding surface flow table of the at least one to-be-switched forwarding plane to an inactive state;
所述第一发送模块,用于向所述当前转发面发送停止使用所述主转发面 流表的停止命令;  The first sending module is configured to send, to the current forwarding plane, a stop command to stop using the primary forwarding surface flow table;
所述第二发送模块, 用于向所述至少一个待切换转发面发送启用所述主 转发面流表的启用命令。  The second sending module is configured to send an enable command for enabling the primary forwarding surface flow table to the at least one to-be-switched forwarding plane.
结合第四个方面的第一种可能的实现方式, 在第四个方面的第二种可能 的实现方式中, 所述第三发送模块, 还用于向所述当前转发面与所述至少一 个待切换转发面发送更新的主转发面流表。  With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the third sending module is further configured to use the current forwarding plane and the at least one The forwarding forwarding plane sends an updated primary forwarding plane flow table.
在第四个方面的第三种可能的实现方式中, 所述选择模块, 用于为所述 当前转发面选择至少一个待切换转发面; In a third possible implementation manner of the fourth aspect, the selecting module is configured to The current forwarding plane selects at least one forwarding plane to be switched;
所述第一发送模块, 用于向所述当前转发面发送携带主转发面流表删除 信息的停止命令, 所述主转发面流表为所述当前转发面上传输的所述业务信 息的转发规则;  The first sending module is configured to send, to the current forwarding plane, a stop command that carries the information about the deletion of the primary forwarding plane flow table, where the primary forwarding plane flow table is the forwarding of the service information that is transmitted on the current forwarding plane. Rule
所述第二发送模块, 用于向所述至少一个待切换转发面发送携带所述主 转发面流表的启动命令。  The second sending module is configured to send, to the at least one to-be-switched forwarding plane, a start command that carries the primary forwarding surface flow table.
在第四个方面的第四种可能的实现方式中, 所述控制器还包括: 获取模块, 用于获取转发面的主从关系;  In a fourth possible implementation manner of the fourth aspect, the controller further includes: an acquiring module, configured to acquire a master-slave relationship of the forwarding plane;
所述选择模块, 用于根据所述获取模块获取的所述主从关系, 从所述当 前转发面的从转发面中选择至少一个转发面作为待切换转发面。  The selecting module is configured to select at least one forwarding plane from the forwarding plane of the current forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship acquired by the acquiring module.
结合第四个方面的第四种可能的实现方式, 在第四个方面的第五种可能 的实现方式中, 所述控制器还包括:  In conjunction with the fourth possible implementation of the fourth aspect, in a fifth possible implementation of the fourth aspect, the controller further includes:
第三发送模块, 用于向所述当前转发面发送迁移命令, 以使所述当前转 发面将整个转发面信息迁移至至少一个所述待切换转发面, 所述整个转发面 信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上传输的 所述业务信息的转发规则。  a third sending module, configured to send a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one to-be-switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding The surface flow table, the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
结合第四个方面的第五种可能的实现方式, 在第四个方面的第六种可能 的实现方式中, 所述第三发送模块, 还用于向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面流表定期备份至至少一个所述待切换转 发面。  With the fifth possible implementation of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the third sending module is further configured to send a backup command to the current forwarding plane, to And causing the current forwarding plane to periodically back up the primary forwarding plane flow table to at least one of the to-be-switched forwarding planes.
结合第四个方面的第四种至第六种中任一种可能的实现方式, 在第四个 方面的第七种可能的实现方式中, 所述获取模块, 用于向所述当前转发面发 送主从配置请求, 接收所述当前转发面发送的主从配置响应。  With reference to any one of the fourth to sixth possible implementations of the fourth aspect, in a seventh possible implementation of the fourth aspect, the acquiring module is configured to use the current forwarding plane Sending a master-slave configuration request, receiving a master-slave configuration response sent by the current forwarding plane.
结合第四个方面的第一种至第六种中任一种可能的实现方式, 在第四个 方面的第八种可能的实现方式中, 所述控制器还包括:  In conjunction with the possible implementation of any one of the first to sixth aspects of the fourth aspect, in the eighth possible implementation of the fourth aspect, the controller further includes:
接收模块, 用于接收所述当前转发面发送的转发面切换请求;  a receiving module, configured to receive a forwarding plane switching request sent by the current forwarding plane;
所述第一发送模块, 还用于向所述当前转发面发送转发面切换响应。 第五个方面, 本发明实施例提供一种转发面迁移装置, 转发面与控制面 分离, 所述转发面为当前转发面, 所述转发面迁移装置包括:  The first sending module is further configured to send a forwarding plane switching response to the current forwarding plane. According to a fifth aspect, the embodiment of the present invention provides a forwarding plane migration apparatus, where a forwarding plane is separated from a control plane, and the forwarding plane is a current forwarding plane, where the forwarding plane migration apparatus includes:
第一接收模块, 用于接收控制器发送的停止命令; 处理模块, 用于停止所述当前转发面的转发功能, 从而在所述控制器将 通过所述当前转发面传输的业务信息迁移到待切换转发面上后向所述待切换 转发面发送启用命令以完成转发面迁移, 其中, 所述待切换转发面为所述网 关外的其他网关的转发面。 a first receiving module, configured to receive a stop command sent by the controller; a processing module, configured to stop the forwarding function of the current forwarding plane, to send an enable command to the to-be-switched forwarding plane after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane To complete the forwarding plane migration, where the to-be-switched forwarding plane is a forwarding plane of other gateways outside the gateway.
在第五个方面的第一种可能的实现方式中,所述转发面迁移装置还包括: 第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;  In a first possible implementation manner of the fifth aspect, the forwarding plane migration apparatus further includes: a second receiving module, configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding plane stream The table is a forwarding rule of the service information transmitted on the current forwarding plane;
所述第一接收模块, 用于接收所述控制器发送的停止使用所述主转发面 流表的停止命令。  The first receiving module is configured to receive a stop command sent by the controller to stop using the primary forwarding surface flow table.
结合第五个方面的第一种可能的实现方式, 在第五个方面的第二种可能 的实现方式中, 所述第二接收模块, 还用于接收所述网络控制器发送的更新 的主转发面流表。  With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the second receiving module is further configured to receive an updated main sent by the network controller Forward the surface flow table.
在第五个方面的第三种可能的实现方式中, 所述第一接收模块, 用于接 收携带主转发面流表删除信息的停止命令。  In a third possible implementation manner of the fifth aspect, the first receiving module is configured to receive a stop command that carries the primary forwarding surface flow table deletion information.
在第五个方面的第四种可能的实现方式中,所述转发面迁移装置还包括: 第二接收模块, 用于接收所述控制器发送的迁移命令, 将整个转发面信 息迁移至至少一个待切换转发面, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。  In a fourth possible implementation manner of the fifth aspect, the forwarding plane migration apparatus further includes: a second receiving module, configured to receive a migration command sent by the controller, and migrate the entire forwarding plane information to at least one The forwarding plane is to be switched, and the entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
结合第五个方面的第四种可能的实现方式, 在第五个方面的第五种可能 的实现方式中, 所述第二接收模块, 还用于接收所述控制器发送的备份指令; 所述处理模块, 还用于定期切换至所述至少一个待切换转发面, 以将所 述整个转发面信息定期备份至所述至少一个待切换转发面。  With reference to the fourth possible implementation manner of the fifth aspect, in a fifth possible implementation manner of the fifth aspect, the second receiving module is further configured to receive a backup instruction sent by the controller; The processing module is further configured to periodically switch to the at least one to-be-switched forwarding plane to periodically back up the entire forwarding plane information to the at least one to-be-switched forwarding plane.
结合第五个方面的第四种或第五种可能的实现方式, 在第五个方面的第 六种可能的实现方式中, 还包括第一发送模块;  With reference to the fourth or fifth possible implementation manner of the fifth aspect, in a sixth possible implementation manner of the fifth aspect, the first sending module is further included;
所述第一接收模块, 还用于接收所述控制器发送的主从配置请求; 所述第一发送模块, 用于向所述控制器发送主从配置响应。  The first receiving module is further configured to receive a master-slave configuration request sent by the controller, where the first sending module is configured to send a master-slave configuration response to the controller.
结合第五个方面的第一种至第五种中任一种可能的实现方式, 在第五个 方面的第七种可能的实现方式中, 还包括第二发送模块;  With reference to any one of the first to the fifth possible implementation manners of the fifth aspect, in a seventh possible implementation manner of the fifth aspect, the second sending module is further included;
所述第二发送模块, 用于向所述控制器发送转发面切换请求;  The second sending module is configured to send a forwarding plane switching request to the controller;
所述第一接收模块, 用于接收所述控制器发送的转发面切换响应。 第六个方面, 本发明实施例提供一种转发面迁移装置, 转发面与控制面 分离, 所述转发面为待切换转发面, 所述转发面迁移装置包括: The first receiving module is configured to receive a forwarding plane switching response sent by the controller. According to a sixth aspect, the embodiment of the present invention provides a forwarding plane migration apparatus, where a forwarding plane is separated from a control plane, and the forwarding plane is a to-be-switched forwarding plane, and the forwarding plane migration apparatus includes:
第一接收模块, 用于接收控制器发送的启用命令;  a first receiving module, configured to receive an enable command sent by the controller;
处理模块, 用于启用所述待切换转发面的转发功能, 从而在所述控制器 将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上并向当前 转发面发送停止命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进 行转发面迁移的网关的转发面。  a processing module, configured to enable the forwarding function of the to-be-switched forwarding plane, so that the controller migrates service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane Then, the forwarding plane migration is completed, where the current forwarding plane is a forwarding plane of a gateway that needs to perform forwarding plane migration.
在第六个方面的第一种可能的实现方式中, 该装置还包括:  In a first possible implementation manner of the sixth aspect, the device further includes:
第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;  a second receiving module, configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
所述第一接收模块, 用于接收所述控制器发送的启用所述主转发面流表 的启用命令。  The first receiving module is configured to receive an enable command sent by the controller to enable the primary forwarding surface flow table.
结合第六个方面的第一种可能的实现方式, 在第六个方面的第二种可能 的实现方式中, 所述第一接收模块, 还用于接收所述控制器发送的更新的主 转发流表。  With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the first receiving module is further configured to receive an updated primary forwarding sent by the controller Flow table.
在第六个方面的第三种可能的实现方式中, 所述第一接收模块, 还用于 接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流表为 所述当前转发面上传输的所述业务信息的转发规则。  In a third possible implementation manner of the sixth aspect, the first receiving module is further configured to receive a start command that is sent by the controller and that carries a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
在第六个方面的第四种可能的实现方式中, 所述处理模块, 用于在所述 当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前控制器通过 切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。  In a fourth possible implementation manner of the sixth aspect, the processing module is configured to: after the current forwarding plane receives the migration command sent by the controller, save the current controller to migrate by using a handover mode The entire forwarding plane information includes at least a primary forwarding plane flow table, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
第七个方面, 本发明实施例还提供一种网关, 包括如第五个方面、 第五 个方面的第一种至第七种中任一种转发面迁移装置, 和 /或, 第六个方面、 第 六个方面的第一种至第四种中任一种转发面迁移装置。  According to a seventh aspect, the embodiment of the present invention further provides a gateway, including the forwarding surface migration apparatus of any one of the first to seventh aspects of the fifth aspect, the fifth aspect, and/or the sixth The forwarding surface migration device of any one of the first to fourth aspects of the sixth aspect.
第八个方面, 本发明实施例提供一种控制器, 包括: 处理器和存储器, 所述存储器存储执行指令, 当所述控制器运行时, 所述处理器与所述存储器 之间通信,所述处理器执行所述执行指令使得所述控制器执行如第一个方面、 第一个方面的第一种至第八种中任一种可能的实现方式。  According to an eighth aspect, an embodiment of the present invention provides a controller, including: a processor and a memory, where the memory stores an execution instruction, and when the controller is running, the processor communicates with the memory, where Executing the execution instruction by the processor causes the controller to perform any of the first to eighth possible implementations of the first aspect, the first aspect.
第九个方面, 本发明实施例提供一种网关, 包括: 处理器和存储器, 所 述存储器存储执行指令, 当所述网关运行时, 所述处理器与所述存储器之间 通信, 所述处理器执行所述执行指令使得所述网关执行如第二个方面、 第二 个方面的第一种至第七种中任一种可能的实现方式, 和 /或, 第三个方面、 第 三个方面的第一种至第四种中任一种可能的实现方式。 A ninth aspect, an embodiment of the present invention provides a gateway, including: a processor and a memory, where The memory stores execution instructions, when the gateway is running, the processor communicates with the memory, and the processor executes the execution instruction to cause the gateway to perform the second aspect, the second aspect Any one of the first to the seventh possible implementations, and/or the third aspect, any one of the first to fourth aspects of the third aspect.
本发明实施例提供的转发面迁移方法、 控制器及网关, 控制器通过选择 待切换转发面, 向当前转发面发送停止命令的同时向待切换转发面发送启用 命令, 从而对转发面的迁移进行控制, 实现了控制面和转发面分离的网络架 构中转发面的单独迁移。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。  The forwarding plane migration method, the controller, and the gateway provided by the embodiment of the present invention, the controller sends the enable command to the to-be-switched forwarding plane by sending a stop command to the current forwarding plane by selecting the to-be-switched forwarding plane, thereby performing the migration of the forwarding plane. Control, which realizes the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明转发面迁移方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a forwarding plane migration method according to the present invention;
图 2为本发明转发面迁移方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a method for forwarding a forwarding plane according to the present invention;
图 3为本发明转发面迁移方法实施例三的流程图;  3 is a flowchart of Embodiment 3 of a method for forwarding a forwarding plane according to the present invention;
图 4为本发明转发面迁移方法实施例四的信令图;  4 is a signaling diagram of Embodiment 4 of a method for forwarding a forwarding plane according to the present invention;
图 5为本发明转发面迁移方法实施例五的信令图;  FIG. 5 is a signaling diagram of Embodiment 5 of a method for forwarding a forwarding plane according to the present invention;
图 6为本发明转发面迁移方法实施例六的信令图;  6 is a signaling diagram of Embodiment 6 of a forwarding plane migration method according to the present invention;
图 7为本发明转发面迁移方法实施例七的信令图;  7 is a signaling diagram of Embodiment 7 of a method for forwarding a forwarding plane according to the present invention;
图 8为本发明转发面迁移方法实施例八的信令图;  8 is a signaling diagram of Embodiment 8 of a forwarding plane migration method according to the present invention;
图 9为本发明控制器实施例一的结构示意图;  9 is a schematic structural diagram of Embodiment 1 of a controller according to the present invention;
图 10为本发明控制器实施例二的结构示意图;  10 is a schematic structural diagram of Embodiment 2 of a controller according to the present invention;
图 1 1为本发明迁移面转发装置实施例一的结构示意图;  FIG. 1 is a schematic structural diagram of Embodiment 1 of a migration plane forwarding device according to the present invention;
图 12为本发明转发面迁移装置实施例二的结构示意图;  12 is a schematic structural diagram of Embodiment 2 of a forwarding plane migration apparatus according to the present invention;
图 13为本发明迁移面转发装置实施例三的结构示意图;  13 is a schematic structural diagram of Embodiment 3 of a migration plane forwarding device according to the present invention;
图 14为本发明转发面迁移装置实施例四的结构示意图;  14 is a schematic structural diagram of Embodiment 4 of a forwarding plane migration apparatus according to the present invention;
图 15为本发明控制器实施例三的结构示意图; 图 16为本发明控网关的结构示意图。 具体实施方式 15 is a schematic structural diagram of Embodiment 3 of a controller according to the present invention; FIG. 16 is a schematic structural diagram of a control gateway according to the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然,所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明转发面迁移方法实施例一的流程图。本实施例的执行主 体为控制器, 适用于控制面和转发面分离的网络架构中, 需要对转发面单独 进行迁移的场景。 具体的, 本实施例包括如下歩骤:  FIG. 1 is a flowchart of Embodiment 1 of a method for forwarding a forwarding plane according to the present invention. The execution entity of this embodiment is a controller, which is applicable to a scenario in which the control plane and the forwarding plane are separated from each other, and the forwarding plane needs to be separately migrated. Specifically, the embodiment includes the following steps:
101、 选择待切换转发面。  101. Select a forwarding plane to be switched.
当将 SDN架构引入到 SAE网络时, 可以将网关的控制面和转发面进行 分离, 分离得到的控制面与 MME的控制功能形成独立的控制面, 分离得到 的转发面形成独立的转发面, 其中, 网关例如可以是用于完成分组数据的转 发和路由的 S-GW, 或者是连接外部数据网的 P-GW, 甚至是 S-GW与 P-GW 合一部署的网关。 本实施例中, 将需要进行转发面迁移的网关的转发面称之 为当前转发面, 将最终切换至的网关的转发面称之为待切换转发面, 转发面 迁移的过程即为将业务信息从当前转发面迁移至待切换转发面的过程。  When the SDN architecture is introduced into the SAE network, the control plane and the forwarding plane of the gateway can be separated, and the separated control plane forms an independent control plane with the control function of the MME, and the separated forwarding plane forms an independent forwarding plane, where The gateway may be, for example, an S-GW for completing forwarding and routing of packet data, or a P-GW connected to an external data network, or even a gateway deployed by the S-GW and the P-GW. In this embodiment, the forwarding plane of the gateway that needs to perform the forwarding plane migration is referred to as the current forwarding plane, and the forwarding plane of the gateway that is finally switched to is referred to as the forwarding plane to be switched, and the process of forwarding the forwarding plane is the service information. The process of migrating from the current forwarding plane to the forwarding plane to be switched.
本歩骤中, 当确定出需要进行转发面迁移时, 例如, 当业务信息繁重, 当前转发面确定需要对部分业务或所有业务进行转发面迁移时; 或者, 在需 要实现业务倒换、 热备份等功能时, 控制器选择待切换转发面, 该待切换转 发面可以为一个或多个。  In this step, when it is determined that the forwarding plane migration is required, for example, when the service information is heavy, the current forwarding plane determines that some services or all services need to be forwarded to the forwarding plane; or, the service switching, hot backup, etc. are required. In the function, the controller selects a forwarding plane to be switched, and the to-be-switched forwarding plane may be one or more.
102、 向当前转发面发送停止命令。  102. Send a stop command to the current forwarding plane.
103、将通过当前转发面传输的业务信息迁移到待切换转发面上后, 向待 切换转发面发送启用命令以完成转发面的迁移。  103. After the service information transmitted by the current forwarding plane is migrated to the to-be-switched forwarding plane, an enable command is sent to the to-be-switched forwarding plane to complete the migration of the forwarding plane.
歩骤 102与 103中, 在选择出待切换转发面后, 控制器向当前转发面发 送停止命令, 使得当前转发面停止部分或全部业务信息的传输, 同时, 控制 器向待切换转发面发送启用命令, 使得待切换转发面开始对迁移过来的部分 或全部业务信息进行传输。 本发明实施例的提供的转发面迁移方法,控制器通过选择待切换转发面, 向当前转发面发送停止命令的同时向待切换转发面发送启用命令, 从而对转 发面的迁移进行控制, 实现了控制面和转发面分离的网络架构中转发面的单 独迁移。 In steps 102 and 103, after selecting the forwarding plane to be switched, the controller sends a stop command to the current forwarding plane, so that the current forwarding plane stops transmission of part or all of the service information, and at the same time, the controller sends the to-be-switched forwarding plane to enable. The command causes the to-be-switched forwarding plane to start transmitting part or all of the migrated service information. In the forwarding plane migration method provided by the embodiment of the present invention, the controller controls the migration of the forwarding plane by selecting a to-be-switched forwarding plane, sending a stop command to the current forwarding plane, and transmitting an enable command to the forwarding plane to be switched. Separate migration of forwarding planes in a network fabric with separate control planes and forwarding planes.
图 2为本发明转发面迁移方法实施例二的流程图。本实施例的执行主 体为网关, 具体为转发面与控制面分离, 且转发面为当前转发面的网关, 适 用于对转发面单独进行迁移的场景。 具体的, 本实施例包括如下歩骤:  FIG. 2 is a flowchart of Embodiment 2 of a method for forwarding a forwarding plane according to the present invention. The execution entity of this embodiment is a gateway, and the forwarding plane is separated from the control plane, and the forwarding plane is a gateway of the current forwarding plane, and is applicable to a scenario in which the forwarding plane is separately migrated. Specifically, the embodiment includes the following steps:
201、 接收控制器发送的停止命令。  201. Receive a stop command sent by the controller.
本实施例中, 关于当前转发面、 待切换转发面、 转发面迁移等的相关概 念, 可参见图 1实施例, 此处不再赘述。  For the related concepts of the current forwarding plane, the to-be-switched forwarding plane, and the forwarding plane migration, refer to the embodiment in FIG. 1 , and details are not described herein again.
202、停止当前转发面的转发功能, 从而在控制器将通过当前转发面传输 的业务信息迁移到待切换转发面上后向待切换转发面发送启用命令以完成转 发面迁移, 其中, 待切换转发面为网关外的其他网关的转发面。  202. Stop the forwarding function of the current forwarding plane, so that the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane, and then sends an enable command to the forwarding plane to be switched to complete the forwarding plane migration, where the forwarding is to be switched. The face is the forwarding plane of other gateways outside the gateway.
在接收到停止命令后, 当前转发面停止部分或全部业务信息的传输, 从而在控制器向待切换转发面发送启用命令后, 将通过当前转发面传输的部 分或全部业务信息迁移到待切换转发面上。  After receiving the stop command, the current forwarding plane stops the transmission of part or all of the service information, so that after the controller sends the enable command to the to-be-switched forwarding plane, part or all of the service information transmitted through the current forwarding plane is migrated to the to-be-switched forwarding. On the surface.
本发明实施例提供的转发面迁移方法, 需要进行转发面迁移的当前转发 面, 通过接收控制器发送的停止命令, 在控制器选择待切换转发面并启用待 切换转发面后, 停止部分或全部业务信息的转发功能, 从而在控制器的控制 下, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。  The forwarding plane migration method provided by the embodiment of the present invention needs to perform the current forwarding plane of the forwarding plane migration. After receiving the stop command sent by the controller, after the controller selects the to-be-switched forwarding plane and enables the forwarding plane to be switched, some or all of the stops are stopped. The forwarding function of the service information enables the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated under the control of the controller.
图 3为本发明转发面迁移方法实施例三的流程图。本实施例的执行主 体为网关, 具体为转发面与控制面分离, 且转发面为待切换转发面的网关, 适用于对需要迁移的转发面单独进行迁移的场景。 具体的, 本实施例包括如 下歩骤:  FIG. 3 is a flowchart of Embodiment 3 of a method for forwarding a forwarding plane according to the present invention. The execution entity of this embodiment is a gateway, and the forwarding plane is separated from the control plane, and the forwarding plane is a gateway to be switched to be forwarded, and is applicable to a scenario in which the forwarding plane to be migrated is separately migrated. Specifically, the embodiment includes the following steps:
301、 接收控制器发送的启用命令。  301. Receive an enable command sent by the controller.
本实施例中, 关于当前转发面、 待切换转发面、 转发面迁移等的相关概 念, 可参见图 1实施例, 此处不再赘述。  For the related concepts of the current forwarding plane, the to-be-switched forwarding plane, and the forwarding plane migration, refer to the embodiment in FIG. 1 , and details are not described herein again.
302、启用待切换转发面的转发功能, 从而在控制器将通过当前转发面传 输的业务信息迁移到待切换转发面上并向当前转发面发送停止命令后, 完成 转发面迁移, 其中, 当前转发面为需要进行转发面迁移的网关的转发面。 在接收到启用命令后, 待切换转发面启用转发功能, 对当前转发面传输 的部分或全部业务信息进行传输。 302. Enable the forwarding function of the to-be-switched forwarding plane, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane, the forwarding plane migration is completed, where the current forwarding is performed. The face is the forwarding plane of the gateway that needs to perform forwarding plane migration. After receiving the enable command, the forwarding plane to be switched enables the forwarding function to transmit some or all of the service information transmitted by the current forwarding plane.
本发明实施例提供的转发面迁移方法, 被选定的待切换转发面通过接收 控制器发送的启用命令, 启用转发功能对当前转发面传输的部分或全部业务 信息进行传输, 从而在控制器的控制下, 实现了控制面和转发面分离的网络 架构中转发面的单独迁移。  According to the forwarding plane migration method provided by the embodiment of the present invention, the selected forwarding to-be-switched forwarding plane transmits the partial or all service information transmitted by the current forwarding plane through the enable command sent by the receiving controller, thereby enabling the controller to Under control, a separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated is implemented.
上述图 1、 图 2与图 3分别站在控制器、 当前转发面、 待切换转发面的 角度上对本发明进行了阐述, 下面, 从三者的交互过程对本发明进行详细说 明。  The above-mentioned FIG. 1, FIG. 2 and FIG. 3 respectively illustrate the present invention at the perspective of the controller, the current forwarding plane, and the forwarding plane to be switched. Hereinafter, the present invention will be described in detail from the interaction process of the three.
图 4为本发明转发面迁移方法实施例四的信令图。 本实施例中, 控制器 在向当前转发面发送业务信息的同时, 也向待切换转发面发送该业务信息。 具体的, 本实施例包括如下歩骤:  FIG. 4 is a signaling diagram of Embodiment 4 of a method for forwarding a forwarding plane according to the present invention. In this embodiment, the controller sends the service information to the forwarding plane to be switched while transmitting the service information to the current forwarding plane. Specifically, the embodiment includes the following steps:
401、 控制器为当前转发面选择至少一个待切换转发面。  401. The controller selects at least one forwarding plane to be switched for the current forwarding plane.
本歩骤中, 对于当前转发面, 控制器为其选择至少一个备用的待切换转 发面。  In this step, for the current forwarding plane, the controller selects at least one alternate to-be-switched forwarding plane for it.
402、 控制器向当前转发面与至少一个待切换转发面发送主转发面流表。 SDN 网络中, 控制器通过查询交换机的流表 (flowtable) 进行包查找和 转发, 流表由很多个流表项组成, 每个流表项就是一个转发规则。 流表包括 匹配域字段 (match field) 、 计数器(counters) 和指令集 ( instructions) , 不 同的厂商可以根据各自的需求设计功能各异的流表。 控制器通过对流表进行 控制从而实现对整个网络的集中控制。  402. The controller sends a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane. In the SDN network, the controller searches for and forwards the packet by querying the flow table of the switch. The flow table is composed of a plurality of flow entries, and each flow entry is a forwarding rule. The flow table includes match field, counters, and instructions. Different vendors can design different flow tables according to their needs. The controller controls the flow table to achieve centralized control of the entire network.
将 SDN网络架构引入到 SAE网络后, 业务信息, 如分组数据等通过网 关进行转发, 每个业务信息都有自己的流表。 本歩骤中, 控制器向当前转发 面与至少一个待切换转发面发送主转发面流表, 该主转发面流表为当前转发 面上传输的业务信息的转发规则, 例如, 是部分业务信息各自对应的流表; 或整儿当前转发面上所有业务信息各自对应的流表。 后续过程中, 发送给当 前转发面的主转发面流表, 都需要发送给待切换转发面, 即对当前转发面新 增流表、 修改流表和删除流表等操作, 都需要同歩备份到待切换转发面上。 具体的, 本歩骤包括如下子歩骤:  After the SDN network architecture is introduced into the SAE network, service information, such as packet data, is forwarded through the gateway. Each service information has its own flow table. In this step, the controller sends a primary forwarding plane flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane, for example, part of the service information. Corresponding flow tables; or flow tables corresponding to all service information on the current forwarding plane. In the subsequent process, the primary forwarding plane flow table sent to the current forwarding plane needs to be sent to the forwarding plane to be switched, that is, the operations of adding a flow table, modifying the flow table, and deleting the flow table to the current forwarding plane, all need the same backup. Go to the forwarding plane to be switched. Specifically, the steps include the following sub-steps:
4021、 控制器向当前转发面发送主转发面流表; 4022、 控制器向待切换转发面发送主转发流表。 4041: The controller sends a primary forwarding surface flow table to the current forwarding plane. 4022. The controller sends a primary forwarding flow table to the to-be-switched forwarding plane.
需要说明的是, 本歩骤中待切换转发面可以为多个, 而图中仅示出一个。 It should be noted that, in this step, there may be multiple forwarding planes to be switched, and only one is shown in the figure.
403、 设置流表状态。 403. Set the flow table status.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
4031、 将当前转发面的主转发面流表设置为活动 (active) 状态;  4031. Set a primary forwarding surface flow table of the current forwarding plane to an active state.
4032、 将待切换转发面的主转发面流表设置为非活动 (inactive) 状态。 4032. Set a primary forwarding surface flow table of the forwarding plane to be switched to an inactive state.
404、 用户通过当前转发面进行数据传输。 404. The user performs data transmission through the current forwarding plane.
405、 确定需要对当前转发面进行迁移。  405. Determine that the current forwarding plane needs to be migrated.
是否需要对当前转发面进行迁移, 可由控制器确定; 或者, 由当前转发 面进行确定。 具体的, 本歩骤包括如下可选子歩骤:  Whether the current forwarding plane needs to be migrated can be determined by the controller; or, it is determined by the current forwarding plane. Specifically, the steps include the following optional sub-steps:
4051、 控制器确定需要对转发面进行迁移;  4051. The controller determines that the forwarding plane needs to be migrated;
4052、 当前转发面确定需要对转发面进行迁移。  4052. The current forwarding plane determines that the forwarding plane needs to be migrated.
本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 408; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 406。  In this step, if the current forwarding plane needs to be migrated by the controller, execute 408; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, then step 406 is performed.
406、 当前转发面向控制器发送转发面切换请求。  406. The current forwarding sends a forwarding plane switching request to the controller.
407、 控制器向当前转发面发送转发面切换响应。  407. The controller sends a forwarding plane switching response to the current forwarding plane.
408、 控制器向当前转发面发送停止使用主转发面流表的停止命令。  408. The controller sends a stop command to stop using the primary forwarding surface flow table to the current forwarding plane.
本歩骤中, 控制器通过发送停止命令, 显示的告知当前转发面停止使用 主转发面流表, 若该主转发面流表是所有业务信息对应的流表的组合, 则当 前转发面停止转发功能。  In this step, the controller sends a stop command to notify the current forwarding plane to stop using the primary forwarding surface flow table. If the primary forwarding surface flow table is a combination of flow tables corresponding to all service information, the current forwarding plane stops forwarding. Features.
可选的, 当前转发面也可以在接收到转发面切换响应后停止转发功能。 Optionally, the current forwarding plane may also stop forwarding after receiving the forwarding plane switching response.
409、 控制器向待切换转发面发送启用主转发面流表的启用命令。 409. The controller sends an enable command for enabling the primary forwarding plane flow table to the to-be-switched forwarding plane.
控制器向待切换转发面发送启用命令, 指示待切换转发面启用与当前转 发面同歩的主转发面流表。  The controller sends an enable command to the to-be-switched forwarding plane, indicating that the to-be-switched forwarding plane enables the primary forwarding plane flow table that is the same as the current forwarding plane.
410、 设置流表状态。  410. Set the flow table status.
上述歩骤 408与 409中, 控制器向当前转发面发送停止命令, 指示当前 转发面的信息已经迁移完毕; 向待切换转发面发送启用命令, 指示待切换转 发面启用主转发面流表。 具体的, 本歩骤包括如下歩骤:  In the foregoing steps 408 and 409, the controller sends a stop command to the current forwarding plane, indicating that the information of the current forwarding plane has been migrated; and sending an enable command to the to-be-switched forwarding plane, indicating that the forwarding forwarding plane enables the primary forwarding plane flow table. Specifically, the steps include the following steps:
4101、 将当前转发面的主转发面流表设置为待机 (standby) 状态; 4102、 将待切换转发面的主转发面流表设置为活动 (active) 状态。 4101: Set a primary forwarding surface flow table of the current forwarding plane to a standby state; 4102. Set a primary forwarding surface flow table of the forwarding plane to be switched to an active state.
此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。  Thereafter, the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
图 5为本发明转发面迁移方法实施例五的信令图。 本实施例在上述实施 例四的基础上引入了当当前转发面的主转发面流表进行更新后, 需要控制器 将更新的主转发面流表同歩更新到待切换转发面的过程。 具体的, 本实施例 包括如下歩骤:  FIG. 5 is a signaling diagram of Embodiment 5 of a method for forwarding a forwarding plane according to the present invention. On the basis of the foregoing embodiment 4, the present embodiment introduces a process in which the controller needs to update the updated primary forwarding surface flow table to the to-be-switched forwarding plane after the current forwarding surface flow table of the current forwarding plane is updated. Specifically, the embodiment includes the following steps:
501、 控制器为当前转发面选择至少一个待切换转发面。  501. The controller selects at least one forwarding plane to be switched for the current forwarding plane.
502、 控制器向当前转发面与至少一个待切换转发面发送主转发面流表。 具体的, 本歩骤包括如下子歩骤:  502. The controller sends a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane. Specifically, the steps include the following sub-steps:
5021、 控制器向当前转发面发送主转发面流表;  5021. The controller sends a primary forwarding surface flow table to the current forwarding plane.
5022、 控制器向待切换转发面发送主转发流表。  5022. The controller sends a primary forwarding flow table to the to-be-switched forwarding plane.
503、 设置流表状态。  503. Set the flow table status.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
5031、 将当前转发面的主转发面流表设置为活动 (active) 状态;  5031. Set a primary forwarding surface flow table of the current forwarding plane to an active state.
5032、 将待切换转发面的主转发面流表设置为非活动 (inactive) 状态。 5032. Set a primary forwarding surface flow table of the forwarding plane to be switched to an inactive state.
504、 用户通过当前转发面进行数据传输。 504. The user performs data transmission through the current forwarding plane.
上述歩骤 501〜504, 请参数图 4实施例中歩骤 401〜404, 此处不再赘述。 For the above steps 501 to 504, please refer to steps 401 to 404 in the embodiment of FIG. 4, and details are not described herein again.
5a、 控制器与当前转发面进行状态信息交互。 5a. The controller interacts with the current forwarding plane for status information.
若当前转发面上的业务信息有更新, 且该更新的业务信息为需要迁移到 待切换转发面的业务信息, 则控制器与当前转发面进行状态信息的交互, 对 当前转发面上的业务信息进行更新, 并对主转发面流表进行更新。  If the service information on the current forwarding plane is updated, and the updated service information is the service information that needs to be migrated to the forwarding plane to be switched, the controller exchanges state information with the current forwarding plane, and performs service information on the current forwarding plane. Update and update the main forwarding surface flow table.
5b、 控制器向当前转发面发送更新的主转发面流表;  5b. The controller sends an updated primary forwarding surface flow table to the current forwarding plane.
5c、 控制器向待切换转发面发送更新的主转发面流表。  5c. The controller sends an updated primary forwarding plane flow table to the to-be-switched forwarding plane.
通过歩骤 5a〜5c, 可保持当前转发面与待切换转发面之间的业务信息同 歩、 需要迁移的业务信息的主转发面流表同歩, 防止流表发生变更的情况。  Through steps 5a to 5c, the service information between the current forwarding plane and the to-be-switched forwarding plane can be maintained, and the primary forwarding surface flow table of the service information to be migrated can be maintained to prevent the flow table from being changed.
505、 确定需要对当前转发面进行迁移。  505. Determine that the current forwarding plane needs to be migrated.
具体的, 本歩骤包括如下可选子歩骤:  Specifically, the steps include the following optional sub-steps:
5051、 控制器确定需要对转发面进行迁移;  5051. The controller determines that the forwarding plane needs to be migrated;
5052、 当前转发面确定需要对转发面进行迁移。 本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 508; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 506。 5052. The current forwarding plane determines that the forwarding plane needs to be migrated. In this step, if the current forwarding plane needs to be migrated by the controller, step 508 is performed; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, step 506 is performed.
506、 当前转发面向控制器发送转发面切换请求。  506. The current forwarding sends a forwarding plane switching request to the controller.
507、 控制器向当前转发面发送转发面切换响应。  507. The controller sends a forwarding plane switching response to the current forwarding plane.
508、 控制器向当前转发面发送停止使用更新的主转发面流表的停止命  508. The controller sends a stop to the current forwarding plane to stop using the updated primary forwarding surface flow table.
509、 控制器向待切换转发面发送启用更新的主转发面流表的启用命令。 控制器向待切换转发面发送启用命令, 指示待切换转发面启用与当前转 发面同歩的、 更新的主转发面流表。 509. The controller sends an enable command of the primary forwarding surface flow table that is enabled to be updated to the to-be-switched forwarding plane. The controller sends an enable command to the to-be-switched forwarding plane, indicating that the to-be-switched forwarding plane enables the updated primary forwarding plane flow table that is the same as the current forwarding plane.
510、 设置流表状态。  510. Set a flow table state.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
5101、 将当前转发面更新的主转发面流表设置为待机 (standby) 状态; 5101. Set a primary forwarding surface flow table that is updated by the current forwarding plane to a standby state.
5102、 将待切换转发面更新的主转发面流表设置为活动 (active) 状态。 此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。 5102. Set a primary forwarding plane flow table to be updated by the forwarding plane to be in an active state. Thereafter, the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
图 6为本发明转发面迁移方法实施例六的信令图。 与上述实施例四与实 施例五不同的是, 图 4所示实施例四与图 5所示实施例五中, 控制器在向当 前转发面发送业务信息的同时, 也向待切换转发面发送该业务信息, 而本实 施例中, 只有在当前转发面需要进行迁移的时候, 控制器才会将业务信息发 送给待切换转发面。 具体的, 本实施例包括如下歩骤:  FIG. 6 is a signaling diagram of Embodiment 6 of a method for forwarding a forwarding plane according to the present invention. Different from the fourth embodiment and the fifth embodiment, in the embodiment 4 shown in FIG. 4 and the fifth embodiment shown in FIG. 5, the controller sends the service information to the current forwarding plane, and also sends the service information to the to-be-switched forwarding plane. The service information, in this embodiment, only when the current forwarding plane needs to be migrated, the controller sends the service information to the to-be-switched forwarding plane. Specifically, the embodiment includes the following steps:
601、 设置流表状态。  601. Set the flow table status.
本实施例中, 各个转发面之间没有明显的主从关系, 每个转发面对通过 其传输的业务信息提供转发功能。 通过当前转发面传输的业务信息的主转发 面流表仅保存在当前转发面上, 其他转发面上未保存主转发面流表, 而仅保 存自身相关业务的一个或多个流表。 具体的, 本歩骤包括如下歩骤:  In this embodiment, there is no obvious master-slave relationship between the forwarding planes, and each forwarding provides a forwarding function for the service information transmitted through it. The primary forwarding surface flow table of the service information transmitted by the current forwarding plane is only saved on the current forwarding plane. The primary forwarding surface flow table is not saved on the other forwarding planes, and only one or more flow tables of its own related services are saved. Specifically, the steps include the following steps:
6011、 将当前转发面的主转发面流表设置为活动 (active) 状态;  6011. Set a primary forwarding surface flow table of the current forwarding plane to an active state.
6012、 将待切换转发面自身相关业务的一个或多个流表设置为活动 ( active ) 状态。  6012. Set one or more flow tables of the related service to be switched to the forwarding plane itself to an active state.
602、 确定需要对当前转发面进行迁移。 是否需要对当前转发面进行迁移, 可由控制器确定; 或者, 由当前转发 面进行确定。 具体的, 本歩骤包括如下可选子歩骤: 602. Determine that the current forwarding plane needs to be migrated. Whether the current forwarding plane needs to be migrated can be determined by the controller; or, it is determined by the current forwarding plane. Specifically, the steps include the following optional sub-steps:
6021、 控制器确定需要对转发面进行迁移;  6021. The controller determines that the forwarding plane needs to be migrated.
6022、 当前转发面确定需要对转发面进行迁移。  6022. The current forwarding plane determines that the forwarding plane needs to be migrated.
本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 605 ; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 603。  In this step, if the migration of the current forwarding plane is determined by the controller, then step 605 is performed; otherwise, if the current forwarding plane needs to be migrated by the current forwarding plane, then step 603 is performed.
603、 当前转发面向控制器发送转发面切换请求。  603. The current forwarding sends a forwarding plane switching request to the controller.
604、 控制器向当前转发面发送转发面切换响应。  604. The controller sends a forwarding plane switching response to the current forwarding plane.
605、 控制器为当前转发面选择至少一个待切换转发面。  605. The controller selects at least one to-be-switched forwarding plane for the current forwarding plane.
606、 控制器向当前转发面发送携带主转发面流表删除信息的停止命令。 控制器向当前转发面发送停止命令, 该停止命令携带主转发面流表删除 信息, 当前转发面根据该主转发面流表删除信息, 对流表进行删除, 即删除 需要进行迁移的业务信息对应的流表。  606. The controller sends a stop command that carries the information about deleting the primary forwarding surface flow table to the current forwarding plane. The controller sends a stop command to the current forwarding plane, where the stop command carries the deletion information of the primary forwarding plane flow table, and the current forwarding plane deletes the information according to the primary forwarding plane flow table, and deletes the flow table, that is, deletes the service information that needs to be migrated. Flow table.
607、 控制器向待切换转发面发送携带主转发面流表的启动命令。  607. The controller sends a start command that carries the primary forwarding surface flow table to the to-be-switched forwarding plane.
控制器将当前转发面的部分或全部业务信息的流表, 即主转发面流表携 带在启动命令中发送给待切换转发面, 该主转发面流表可以为一个或多个。  The controller sends the flow table of some or all of the service information of the current forwarding plane, that is, the primary forwarding surface flow table, to the to-be-switched forwarding plane, and the primary forwarding surface flow table may be one or more.
608、 控制器设置流表状态。  608. The controller sets a flow table state.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
6081、 将当前转发面的主转发面流表设置为待机 (standby) 状态; 6081. Set a primary forwarding surface flow table of the current forwarding plane to a standby state.
6082、 将待切换转发面的主转发面流表设置为活动 (active) 状态。 6082. Set a primary forwarding surface flow table of the forwarding plane to be switched to an active state.
此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。  Thereafter, the current forwarding plane enters a suspended state (can be stopped), and one or more forwarding surfaces to be switched complete the forwarding function of the current forwarding plane, thereby completing the migration process of the forwarding plane.
上述图 4所示实施例四、 图 5所示实施例五及图 6所示实施例中, 将通 过当前转发面进行传输的部分或全部业务信息的流表及相关信息迁移至待切 换转发面, 从而实现转发面的迁移。 然而, 当待切换转发面采用虚拟机实现 时, 需要将当前转发面的整个转发面信息迁移至待切换转发面。 其中, 整个 转发面信息至少包括主转发面流表、 当前转发面运行的环境信息等。 下面, 再用两个待切换转发面采用虚拟机实现的实施例对本发明进行详细说明, 具 体的, 请参见图 7与图 8。 图 7为本发明转发面迁移方法实施例七的信令图。 本实施例中, 待切换 转发面采用虚拟机实现, 各个转发面之间有明确的主从关系, 在当前转发面 需要进行迁移的时候, 控制器、 当前转发面与待切换转发面进行信令交互, 从而将整个转发面信息迁移至待切换转发面。 In the embodiment shown in FIG. 4 and the embodiment shown in FIG. 5 and FIG. 6 , the flow table and related information of part or all of the service information transmitted through the current forwarding plane are migrated to the to-be-switched forwarding plane. , thereby achieving the migration of the forwarding surface. However, when the to-be-switched forwarding plane is implemented by using a virtual machine, the entire forwarding plane information of the current forwarding plane needs to be migrated to the forwarding plane to be switched. The entire forwarding plane information includes at least a primary forwarding surface flow table, environment information of a current forwarding plane, and the like. In the following, the present invention is further described in detail by using two embodiments in which a forwarding plane to be switched is implemented by a virtual machine. For details, refer to FIG. 7 and FIG. FIG. 7 is a signaling diagram of Embodiment 7 of a method for forwarding a forwarding plane according to the present invention. In this embodiment, the to-be-switched forwarding plane is implemented by using a virtual machine, and each forwarding plane has an explicit master-slave relationship. When the current forwarding plane needs to be migrated, the controller, the current forwarding plane, and the to-be-switched forwarding plane perform signaling. Interaction, thereby migrating the entire forwarding surface information to the forwarding surface to be switched.
以下为描述清楚起见, 将当前转发面称之为主(master)转发面, 将待切 换转发面称之为从 (slave) 转发面。  For the sake of clarity of description, the current forwarding plane is referred to as the master forwarding plane, and the to-be-switched forwarding plane is referred to as the slave forwarding plane.
具体的, 本实施例包括如下歩骤:  Specifically, the embodiment includes the following steps:
701、 控制器获取转发面的主从关系。  701. The controller acquires a master-slave relationship of the forwarding plane.
转发面的主从关系可以由控制器设置, 或者由第三方如操作维护系统 ( Operation and Maintenance System, OAS )进行设置并保存在各个转发面上。  The master-slave relationship of the forwarding plane can be set by the controller or set by a third party such as Operation and Maintenance System (OAS) and saved on each forwarding plane.
本歩骤中, 若主从关系是由控制器设置的, 则设置主从关系后, 执行歩 骤 704; 否则, 若主从关系是由第三方设置的, 则执行歩骤 702。  In this step, if the master-slave relationship is set by the controller, after the master-slave relationship is set, step 704 is performed; otherwise, if the master-slave relationship is set by a third party, step 702 is performed.
702、 控制器向主转发面发送主从配置请求。  702. The controller sends a master-slave configuration request to the primary forwarding plane.
703、 控制器接收主转发面发送的主从配置响应。  703. The controller receives a master-slave configuration response sent by the primary forwarding plane.
该主从配置响应携带主转发面的从转发面的相关信息。  The master-slave configuration response carries information about the slave forwarding plane of the primary forwarding plane.
704、 确定需要对主转发面进行迁移。  704. Determine that the primary forwarding plane needs to be migrated.
控制器确定是否需要对主转发面进行迁移。  The controller determines if the primary forwarding plane needs to be migrated.
需要说明的是, 是否需要对主转发面进行迁移, 也可由主转发面自身进 行确定, 具体可参见图 4实施例四, 此处不再赘述。  It should be noted that whether the primary forwarding plane needs to be migrated may also be determined by the primary forwarding plane itself. For details, refer to the fourth embodiment of FIG. 4, and details are not described herein again.
705、 控制器为主转发面选择至少一个待切换转发面。  705. The controller selects at least one forwarding plane to be switched as a primary forwarding plane.
具体的, 控制器根据主从关系, 从主转发面的从转发面中选择至少一个 转发面作为待切换转发面。  Specifically, the controller selects at least one forwarding plane from the forwarding plane of the primary forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship.
706、 控制器向主转发面发送迁移命令。  706. The controller sends a migration command to the primary forwarding plane.
控制器向主转发面发送切换命令, 使主转发面通过切换方式切换至从转 发面, 即将整个转发面信息迁移至至少一个从转发面, 该整个转发面信息至 少包括主转发面流表, 主转发面流表为当前转发面上传输的业务信息的转发 规则。  The controller sends a handover command to the primary forwarding plane, so that the primary forwarding plane is switched to the secondary forwarding plane by using the switching mode, that is, the entire forwarding plane information is migrated to at least one secondary forwarding plane, and the entire forwarding plane information includes at least a primary forwarding surface flow table, The forwarding surface flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
707、 主转发面将整个转发面信息迁移至从转发面。  707. The primary forwarding plane migrates the entire forwarding plane information to the secondary forwarding plane.
708、 从转发存储面整个转发面信息。  708. Forward the forwarding surface information from the forwarding storage surface.
本歩骤中, 在主转发面接收到控制器发送的迁移命令后, 从转发面保存 主转发面通过切换方式迁移的整个转发面信息, 其中, 整个转发面信息至少 包括主转发面流表,主转发面流表为主转发面上传输的业务信息的转发规则。 In this step, after receiving the migration command sent by the controller on the primary forwarding plane, save from the forwarding plane. The entire forwarding plane information that is transferred by the primary forwarding plane through the switching mode. The entire forwarding plane information includes at least a primary forwarding plane flow table, and the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the primary forwarding plane.
709、 控制器设置流表状态。  709. The controller sets a flow table state.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
7091、 将主转发面的主转发面流表设置为待机 (standby) 状态;  7091, setting a primary forwarding surface flow table of the primary forwarding plane to a standby state;
7092、 将从转发面的主转发面流表设置为活动 (active) 状态。  7092: Set the primary forwarding surface flow table from the forwarding plane to the active state.
此后, 从转发面进入挂起状态 (可以停机) , 而由一个或多个从转发面 来完成主转发面的转发功能, 从而完成转发面的迁移过程。  Thereafter, the forwarding plane enters the suspended state (can be stopped), and the forwarding function of the primary forwarding plane is completed by one or more forwarding planes, thereby completing the migration process of the forwarding plane.
图 8为本发明转发面迁移方法实施例八的信令图。 本实施例在上述实施 例七的基础上, 引入了定期备份的过程。 具体的, 本实施例包括如下歩骤: FIG. 8 is a signaling diagram of Embodiment 8 of a forwarding plane migration method according to the present invention. This embodiment introduces a process of regular backup on the basis of the above-mentioned seventh embodiment. Specifically, the embodiment includes the following steps:
801、 控制器获取转发面的主从关系。 801. The controller acquires a master-slave relationship of the forwarding plane.
802、 控制器向主转发面发送主从配置请求。  802. The controller sends a master-slave configuration request to the primary forwarding plane.
803、 控制器接收主转发面发送的主从配置响应。  803. The controller receives a master-slave configuration response sent by the primary forwarding plane.
上述歩骤 801〜803可参见图 7实施例七的歩骤 701〜703, 此处不再赘述。 8a、 控制器向主转发面发送备份命令。  For the above steps 801 to 803, reference may be made to steps 701 to 703 of the seventh embodiment of FIG. 7, and details are not described herein again. 8a. The controller sends a backup command to the primary forwarding plane.
本歩骤中, 控制器定期向主转发面发起备份命令, 指示主转发面定期在 从转发面上做备份。  In this step, the controller periodically initiates a backup command to the primary forwarding plane, indicating that the primary forwarding plane periodically performs backup on the forwarding plane.
8b、 主转发面定期切换至待切换转发面。  8b. The primary forwarding plane periodically switches to the forwarding plane to be switched.
本歩骤中, 主转发面定期切换至至少一个待切换转发面, 通过定期在线 迁移但不切换, 从而将整个转发面信息定期备份至至少一个待切换转发面。  In this step, the primary forwarding plane periodically switches to at least one to-be-switched forwarding plane, and the entire forwarding plane information is periodically backed up to at least one to-be-switched forwarding plane by periodically performing online migration but not switching.
8c、 从转发面定期备份整个转发面信息。  8c. Regularly back up the entire forwarding surface information from the forwarding plane.
804、 确定需要对主转发面进行迁移。  804. Determine that the primary forwarding plane needs to be migrated.
805、 控制器为主转发面选择至少一个待切换转发面。  805. The controller selects at least one forwarding plane to be switched as the primary forwarding plane.
806、 控制器向主转发面发送停止命令。  806. The controller sends a stop command to the primary forwarding plane.
控制器向主转发面发送停止命令, 使得主转发面对全部或部分业务信息 停止转发功能。  The controller sends a stop command to the primary forwarding plane, so that the primary forwarding stops forwarding function for all or part of the service information.
807、 控制器向从转发面发送启用命令。  807. The controller sends an enable command to the forwarding plane.
808、 控制器设置流表状态。  808. The controller sets a flow table state.
具体的, 本歩骤包括如下歩骤:  Specifically, the steps include the following steps:
8081、 将主转发面的主转发面流表设置为待机 (standby) 状态; 8082、 将从转发面的主转发面流表设置为活动 (active) 状态。 8081: Set a primary forwarding surface flow table of the primary forwarding plane to a standby state; 8082. Set the flow table of the primary forwarding plane from the forwarding plane to the active state.
此后, 从转发面进入挂起状态 (可以停机) , 而由一个或多个从转发面 来完成主转发面的转发功能, 从而完成转发面的迁移过程。  Thereafter, the forwarding plane enters the suspended state (can be stopped), and the forwarding function of the primary forwarding plane is completed by one or more forwarding planes, thereby completing the migration process of the forwarding plane.
需要说明的是, 上述图 4、 图 5与图 6所示实施例中, 仅需要对业务相 关信息进行迁移从而实现转发面的迁移, 而图 7与图 8所示实施例中, 对于 待切换转发面采用虚拟机实现的场景,需要将当前转发面的整个转发面信息, 如主转发面流表、 当前转发面的运行环境等都迁移至从转发面, 即待切换转 发面。 由于整个转发面信息比较庞大, 因此, 相对于图 7与图 8所示实施例, 图 4、 图 5与图 6所示实施例能够减少转发面迁移过程中的时延。  It should be noted that, in the foregoing embodiments shown in FIG. 4, FIG. 5, and FIG. 6, only the service-related information needs to be migrated to implement the migration of the forwarding plane, and in the embodiment shown in FIG. 7 and FIG. The forwarding plane is implemented by the virtual machine. The entire forwarding plane information of the current forwarding plane, such as the primary forwarding plane flow table and the running environment of the current forwarding plane, are migrated to the forwarding plane, that is, the forwarding plane to be switched. Since the entire forwarding plane information is relatively large, the embodiments shown in Figs. 4, 5 and 6 can reduce the delay in the forwarding plane migration process with respect to the embodiment shown in Figs. 7 and 8.
图 9为本发明控制器实施例一的结构示意图, 本实施例提供的控制器是 与本发明图 1实施例对应的装置实施例, 具体实现过程在此不再赘述。 具体 的, 本实施例提供的控制器 100具体包括:  FIG. 9 is a schematic structural diagram of Embodiment 1 of the controller of the present invention. The controller provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 1 of the present invention, and the specific implementation process is not described herein again. Specifically, the controller 100 provided in this embodiment specifically includes:
选择模块 11, 用于选择待切换转发面;  The selecting module 11 is configured to select a forwarding plane to be switched;
第一发送模块 12, 用于向当前转发面发送停止命令;  The first sending module 12 is configured to send a stop command to the current forwarding plane;
迁移模块 13,用于将通过当前转发面传输的业务信息迁移到选择模块 11 选择的待切换转发面上;  The migration module 13 is configured to migrate the service information transmitted by the current forwarding plane to the forwarding plane to be switched selected by the selecting module 11;
第二发送模块 13, 还用于在迁移模块 13将通过当前转发面传输的业务 信息迁移到选择模块 11选择的待切换转发面上后, 向待切换转发面发送启用 命令以完成转发面的迁移。  The second sending module 13 is further configured to: after the migration module 13 migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane selected by the selecting module 11, sends an enable command to the to-be-switched forwarding plane to complete the migration of the forwarding plane. .
本发明实施例提供的控制器, 通过选择待切换转发面, 向当前转发面发 送停止命令的同时向待切换转发面发送启用命令, 从而对转发面的迁移进行 控制, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。  The controller provided by the embodiment of the present invention controls the migration of the forwarding plane by selecting a to-be-switched forwarding plane and sending a stop command to the current forwarding plane, thereby implementing control plane and forwarding plane. Separate migration of forwarding planes in a separate network architecture.
图 10为本发明控制器实施例二的结构示意图。 如图 10所示, 本实施例 的控制器 200在图 9装置结构的基础上, 进一歩的, 还包括: 第三发送模块 15和处理模块 16;  FIG. 10 is a schematic structural diagram of Embodiment 2 of a controller according to the present invention. As shown in FIG. 10, the controller 200 of this embodiment further comprises: a third transmitting module 15 and a processing module 16 on the basis of the device structure of FIG.
选择模块 11, 用于为当前转发面选择至少一个待切换转发面;  The selecting module 11 is configured to select at least one to-be-switched forwarding plane for the current forwarding plane;
第三发送模块 15, 用于向当前转发面与至少一个待切换转发面发送主转 发面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则;  The third sending module 15 is configured to send a primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
处理模块 16, 用于将至少一个待切换转发面上的主转发面流表设置为 非活动状态; 第一发送模块 12, 用于向当前转发面发送停止使用主转发面流表的停 止命令; The processing module 16 is configured to set the primary forwarding surface flow table of the at least one to-be-switched forwarding plane to an inactive state; The first sending module 12 is configured to send, to the current forwarding plane, a stop command to stop using the primary forwarding surface flow table;
第二发送模块 13, 用于向至少一个待切换转发面发送启用主转发面流表 的启用命令。  The second sending module 13 is configured to send an enable command for enabling the primary forwarding surface flow table to the at least one forwarding plane to be switched.
进一歩的, 第三发送模块 15, 还用于向当前转发面与至少一个待切换转 发面发送更新的主转发面流表。  Further, the third sending module 15 is further configured to send an updated primary forwarding surface flow table to the current forwarding plane and the at least one to-be-switched forwarding plane.
进一歩的,选择模块 11,用于为当前转发面选择至少一个待切换转发面; 第一发送模块 12, 用于向当前转发面发送携带主转发面流表删除信息的 停止命令, 主转发面流表为当前转发面上传输的业务信息的转发规则;  Further, the selection module 11 is configured to select at least one to-be-switched forwarding plane for the current forwarding plane. The first sending module 12 is configured to send a stop command carrying the deletion information of the primary forwarding plane flow table to the current forwarding plane, and the primary forwarding plane The flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
第二发送模块 13, 用于向至少一个待切换转发面发送携带主转发面流表 的启动命令。  The second sending module 13 is configured to send, to the at least one to-be-switched forwarding plane, a start command that carries the primary forwarding surface flow table.
再请参照图 10, 控制器 200还包括:  Referring again to FIG. 10, the controller 200 further includes:
获取模块 17, 用于获取转发面的主从关系;  The obtaining module 17 is configured to obtain a master-slave relationship of the forwarding plane;
选择模块 11, 用于根据获取模块 17获取的主从关系, 从当前转发面的 从转发面中选择至少一个转发面作为待切换转发面。  The selecting module 11 is configured to select at least one forwarding plane from the forwarding plane of the current forwarding plane as the to-be-switched forwarding plane according to the master-slave relationship acquired by the obtaining module 17.
再请参照图 10, 控制器 200还包括:  Referring again to FIG. 10, the controller 200 further includes:
第三发送模块 15, 用于向当前转发面发送迁移命令, 以使当前转发面将 整个转发面信息迁移至至少一个待切换转发面, 整个转发面信息至少包括主 转发面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则。  The third sending module 15 is configured to send a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one to-be-switched forwarding plane, and the entire forwarding plane information includes at least a primary forwarding plane flow table, and a primary forwarding plane. The flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
进一歩的, 第三发送模块 15, 还用于向当前转发面发送备份命令, 以使 当前转发面将主转发面流表定期备份至至少一个待切换转发面。  Further, the third sending module 15 is further configured to send a backup command to the current forwarding plane, so that the current forwarding plane periodically backs up the primary forwarding surface flow table to at least one to-be-switched forwarding plane.
进一歩的, 获取模块 17, 用于向当前转发面发送主从配置请求, 接收当 前转发面发送的主从配置响应。  Further, the obtaining module 17 is configured to send a master-slave configuration request to the current forwarding plane, and receive a master-slave configuration response sent by the current forwarding plane.
再请参照图 10, 控制器 200还包括: 接收模块 18, 用于接收当前转发面 发送的转发面切换请求;  Referring to FIG. 10, the controller 200 further includes: a receiving module 18, configured to receive a forwarding plane switching request sent by the current forwarding plane;
第一发送模块 12, 还用于向当前转发面发送转发面切换响应。  The first sending module 12 is further configured to send a forwarding plane switching response to the current forwarding plane.
图 11为本发明迁移面转发装置实施例一的结构示意图,本实施例提供的 迁移面转发装置是与本发明图 2实施例对应的装置实施例, 具体实现过程在 此不再赘述。 具体的, 本实施例提供的迁移面转发装置 300, 转发面与控制 面分离, 转发面为当前转发面, 转发面迁移装置 300包括: 第一接收模块 21, 用于接收控制器发送的停止命令; FIG. 11 is a schematic structural diagram of Embodiment 1 of the migration plane forwarding device of the present invention. The migration plane forwarding device provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 2 of the present invention, and details of the implementation process are not described herein again. Specifically, in the migration plane forwarding apparatus 300, the forwarding plane is separated from the control plane, and the forwarding plane is the current forwarding plane. The forwarding plane migration apparatus 300 includes: The first receiving module 21 is configured to receive a stop command sent by the controller.
处理模块 22, 用于停止当前转发面的转发功能, 从而在控制器将通过当 前转发面传输的业务信息迁移到待切换转发面上后向待切换转发面发送启用 命令以完成转发面迁移, 其中, 待切换转发面为网关外的其他网关的转发面。  The processing module 22 is configured to stop the forwarding function of the current forwarding plane, so that after the controller migrates the service information transmitted by the current forwarding plane to the forwarding plane to be switched, an enable command is sent to the forwarding plane to be switched to complete the forwarding plane migration, where The forwarding plane to be switched is the forwarding plane of other gateways other than the gateway.
本发明实施例提供的转发面迁移装置, 需要进行转发面迁移的当前转发 面, 通过接收控制器发送的停止命令, 在控制器选择待切换转发面并启用待 切换转发面后, 停止部分或全部业务信息的转发功能, 从而在控制器的控制 下, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。  The forwarding plane migration apparatus provided by the embodiment of the present invention needs to perform the current forwarding plane of the forwarding plane migration, and stops the part or all after the controller selects the to-be-switched forwarding plane and enables the forwarding plane to be switched, by receiving the stop command sent by the controller. The forwarding function of the service information enables the separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated under the control of the controller.
图 12为本发明转发面迁移装置实施例二的结构示意图,本实施例的转发 面迁移装置 400在图 11所示装置的基础上, 还包括:  FIG. 12 is a schematic structural diagram of Embodiment 2 of the forwarding plane migration apparatus according to the present invention. The forwarding plane migration apparatus 400 of the present embodiment further includes:
第二接收模块 23, 用于接收控制器发送的主转发面流表, 主转发面流表 为当前转发面上传输的业务信息的转发规则;  The second receiving module 23 is configured to receive a primary forwarding surface flow table sent by the controller, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
第一接收模块 21, 用于接收控制器发送的停止使用主转发面流表的停止 进一歩的, 第二接收模块 23, 还用于接收网络控制器发送的更新的主转 发面流表。  The first receiving module 21 is configured to receive, by the controller, the stop of using the primary forwarding surface flow table, and the second receiving module 23 is further configured to receive the updated primary forwarding surface flow table sent by the network controller.
进一歩的, 第一接收模块 21, 用于接收携带主转发面流表删除信息的停 止命令。  Further, the first receiving module 21 is configured to receive a stop command that carries the deletion information of the primary forwarding surface flow table.
进一歩的, 第二接收模块 23, 用于接收控制器发送的迁移命令, 将整个 转发面信息迁移至至少一个待切换转发面, 整个转发面信息至少包括主转发 面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则。  Further, the second receiving module 23 is configured to receive a migration command sent by the controller, and migrate the entire forwarding plane information to at least one to be switched forwarding plane, where the entire forwarding plane information includes at least a primary forwarding plane flow table, and a primary forwarding surface stream. The table is the forwarding rule of the service information transmitted on the current forwarding plane.
进一歩的, 第二接收模块 23, 还用于接收控制器发送的备份指令; 处理模块 22, 还用于定期切换至至少一个待切换转发面, 以将整个转发 面信息定期备份至至少一个待切换转发面。  Further, the second receiving module 23 is further configured to receive a backup instruction sent by the controller; the processing module 22 is further configured to periodically switch to at least one to-be-switched forwarding plane to periodically back up the entire forwarding plane information to at least one to-be-backed Switch the forwarding plane.
再请参照图 12, 转发面迁移装置 400还包括第一发送模块 24;  Referring again to Figure 12, the forwarding surface migration device 400 further includes a first transmitting module 24;
第一接收模块 21, 还用于接收控制器发送的主从配置请求;  The first receiving module 21 is further configured to receive a master-slave configuration request sent by the controller;
第一发送模块 24, 用于向控制器发送主从配置响应。  The first sending module 24 is configured to send a master-slave configuration response to the controller.
再请参照图 12, 转发面迁移装置 400还包括第二发送模块 25;  Referring again to Figure 12, the forwarding surface migration device 400 further includes a second transmitting module 25;
第二发送模块 25, 用于向控制器发送转发面切换请求;  a second sending module 25, configured to send a forwarding plane switching request to the controller;
第一接收模块 21, 用于接收控制器发送的转发面切换响应。 图 13为本发明迁移面转发装置实施例三的结构示意图,本实施例提供的 迁移面转发装置是与本发明图 3实施例对应的装置实施例, 具体实现过程在 此不再赘述。 具体的, 本实施例提供的迁移面转发装置 500, 转发面与控制 面分离, 转发面为待切换转发面, 转发面迁移装置 500包括: The first receiving module 21 is configured to receive a forwarding plane switching response sent by the controller. FIG. 13 is a schematic structural diagram of Embodiment 3 of the migration plane forwarding apparatus according to the present invention. The migration plane forwarding apparatus provided in this embodiment is an apparatus embodiment corresponding to the embodiment of FIG. 3 of the present invention, and details of the implementation process are not described herein again. Specifically, in the migration plane forwarding device 500, the forwarding plane is separated from the control plane, and the forwarding plane is a forwarding plane to be switched. The forwarding plane migration apparatus 500 includes:
第一接收模块 31, 用于接收控制器发送的启用命令;  The first receiving module 31 is configured to receive an enable command sent by the controller.
处理模块 32,用于启用待切换转发面的转发功能,从而在控制器将通过 当前转发面传输的业务信息迁移到待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 当前转发面为需要进行转发面迁移的网关 的转发面。  The processing module 32 is configured to enable the forwarding function of the forwarding plane to be switched, so that after the controller migrates the service information transmitted by the current forwarding plane to the to-be-switched forwarding plane and sends a stop command to the current forwarding plane, the forwarding plane migration is completed. The current forwarding plane is the forwarding plane of the gateway that needs to perform forwarding plane migration.
本发明实施例提供的转发面迁移装置, 被选定的待切换转发面通过接收 控制器发送的启用命令, 启用转发功能对当前转发面传输的部分或全部业务 信息进行传输, 从而在控制器的控制下, 实现了控制面和转发面分离的网络 架构中转发面的单独迁移。  The forwarding plane migration apparatus provided by the embodiment of the present invention, the selected forwarding forwarding plane sends an activation command sent by the receiving controller, and enables the forwarding function to transmit part or all of the service information transmitted by the current forwarding plane, thereby being Under control, a separate migration of the forwarding plane in the network architecture where the control plane and the forwarding plane are separated is implemented.
图 14为本发明转发面迁移装置实施例四的结构示意图,本实施例的转发 面迁移装置 600在图 13所示装置的基础上, 还包括:  FIG. 14 is a schematic structural diagram of Embodiment 4 of the forwarding plane migration apparatus according to the present invention. The forwarding plane migration apparatus 600 of the present embodiment further includes:
第二接收模块 33, 用于接收控制器发送的主转发面流表, 主转发面流表 为当前转发面上传输的业务信息的转发规则;  The second receiving module 33 is configured to receive a primary forwarding plane flow table sent by the controller, where the primary forwarding plane flow table is a forwarding rule of the service information transmitted on the current forwarding plane;
第一接收模块 31,用于接收控制器发送的启用主转发面流表的启用命令。 进一歩的, 第一接收模块 31, 还用于接收控制器发送的更新的主转发流 表。  The first receiving module 31 is configured to receive an enable command sent by the controller to enable the primary forwarding surface flow table. Further, the first receiving module 31 is further configured to receive an updated primary forwarding flow table sent by the controller.
进一歩的, 第一接收模块 31, 还用于接收控制器发送的携带主转发面流 表的启动命令, 主转发面流表为当前转发面上传输的业务信息的转发规则。  Further, the first receiving module 31 is further configured to receive, by the controller, a start command that carries a flow table of the primary forwarding plane, where the primary forwarding surface flow table is a forwarding rule of the service information transmitted on the current forwarding plane.
进一歩的, 处理模块 32, 用于在当前转发面接收到控制器发送的迁移命 令后, 保存当前控制器通过切换方式迁移的整个转发面信息, 整个转发面信 息至少包括主转发面流表, 主转发面流表为当前转发面上传输的业务信息的 转发规则。  Further, the processing module 32 is configured to save, after the current forwarding plane receives the migration command sent by the controller, the entire forwarding plane information that is migrated by the current controller by using the handover mode, where the entire forwarding plane information includes at least a primary forwarding surface flow table. The primary forwarding plane flow table is a forwarding rule for the service information transmitted on the current forwarding plane.
本发明实施例还提供一种网关, 包括如图 1 1或图 12所示的转发面迁移 装置, 和 /或, 如图 13或图 14所述的转发面迁移装置, 具体实现过程此处不 再赘述。  The embodiment of the present invention further provides a gateway, including the forwarding plane migration apparatus shown in FIG. 11 or FIG. 12, and/or the forwarding plane migration apparatus as shown in FIG. 13 or FIG. Let me repeat.
图 15为本发明控制器实施例三的结构示意图。 如图 15所述, 本实施例 提供的控制器 700包括处理器 71和存储器 72。 控制器 700还可以包括发射 器 73、 接收器 74。 发射器 73和接收器 74可以和处理器 71相连。 其中, 存 储器 72存储执行指令, 当控制器 700运行时, 处理器 71与存储器 72之间通 信, 处理器 71调用存储器 72中的执行指令, 用于执行图 1所示方法实施例, 其实现原理和技术效果类似, 此处不再赘述。 FIG. 15 is a schematic structural diagram of Embodiment 3 of a controller according to the present invention. As shown in FIG. 15, this embodiment The controller 700 is provided to include a processor 71 and a memory 72. The controller 700 can also include a transmitter 73, a receiver 74. Transmitter 73 and receiver 74 can be coupled to processor 71. The memory 72 stores execution instructions. When the controller 700 is running, the processor 71 communicates with the memory 72. The processor 71 calls the execution instructions in the memory 72 for executing the method embodiment shown in FIG. Similar to the technical effect, it will not be described here.
图 16为本发明控网关的结构示意图。 如图 16所述, 本实施例提供的网 关 800包括处理器 81和存储器 82。 网关 800还可以包括发射器 83、 接收器 84。 发射器 83和接收器 84可以和处理器 81相连。 其中, 存储器 82存储执 行指令, 当网关 800运行时, 处理器 81与存储器 82之间通信, 处理器 81调 用存储器 82中的执行指令, 用于执行图 2, 和 /或, 图 3所示方法实施例, 其 实现原理和技术效果类似, 此处不再赘述。  FIG. 16 is a schematic structural diagram of a control gateway according to the present invention. As shown in FIG. 16, the gateway 800 provided in this embodiment includes a processor 81 and a memory 82. The gateway 800 can also include a transmitter 83, a receiver 84. Transmitter 83 and receiver 84 can be coupled to processor 81. The memory 82 stores execution instructions. When the gateway 800 is running, the processor 81 communicates with the memory 82. The processor 81 calls the execution instructions in the memory 82 for executing FIG. 2, and/or the method shown in FIG. The implementation principle and technical effects of the embodiments are similar, and are not described herein again.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分歩骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的歩骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, when executed, The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种转发面迁移方法, 其特征在于, 包括: 1. A forwarding plane migration method, characterized by including:
选择待切换转发面; Select the forwarding plane to be switched;
向当前转发面发送停止命令; Send a stop command to the current forwarding plane;
将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上后, 向所述待切换转发面发送启用命令以完成转发面的迁移。 After migrating the service information transmitted through the current forwarding plane to the forwarding plane to be switched, an enabling command is sent to the forwarding plane to be switched to complete the migration of the forwarding plane.
2、 根据权利要求 1所述的方法, 其特征在于, 所述选择待迁移转发面, 包括: 2. The method according to claim 1, characterized in that the selecting the forwarding plane to be migrated includes:
为所述当前转发面选择至少一个待切换转发面; Select at least one forwarding plane to be switched for the current forwarding plane;
所述选择待切换转发面之后, 向当前转发面发送停止命令之前, 还包括: 向所述当前转发面与所述至少一个待切换转发面发送主转发面流表, 所 述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则; After the forwarding plane to be switched is selected and before sending a stop command to the current forwarding plane, the method further includes: sending a main forwarding plane flow table to the current forwarding plane and the at least one forwarding plane to be switched, the main forwarding plane flow table being It is the forwarding rule of the service information transmitted on the current forwarding plane;
将所述至少一个待切换转发面上的主转发面流表设置为非活动状态; 所述向当前转发面发送停止命令, 包括: Setting the main forwarding plane flow table of the at least one forwarding plane to be switched to an inactive state; sending a stop command to the current forwarding plane includes:
向所述当前转发面发送停止使用所述主转发面流表的停止命令; 所述向所述待切换转发面发送启用命令, 包括: Sending a stop command to the current forwarding plane to stop using the flow table of the main forwarding plane; Sending an enable command to the forwarding plane to be switched includes:
向所述至少一个待切换转发面发送启用所述主转发面流表的启用命令。 Send an enabling command for enabling the main forwarding plane flow table to the at least one forwarding plane to be switched.
3、 根据权利要求 2所述的方法, 其特征在于, 所述向所述当前转发面与 所述至少一个待切换转发面发送主转发面流表之后,将所述至少一个待切换 转发面上的主转发面流表设置为非活动状态之前, 还包括: 3. The method according to claim 2, characterized in that, after sending the main forwarding plane flow table to the current forwarding plane and the at least one forwarding plane to be switched, the at least one forwarding plane to be switched is Before the main forwarding surface flow table is set to inactive, it also includes:
向所述当前转发面与所述至少一个待切换转发面发送更新的主转发面流 表。 Send an updated main forwarding plane flow table to the current forwarding plane and the at least one forwarding plane to be switched.
4、 根据权利要求 1所述的方法, 其特征在于, 所述选择待迁移转发面, 包括: 4. The method according to claim 1, wherein the selecting the forwarding plane to be migrated includes:
为所述当前转发面选择至少一个待切换转发面; Select at least one forwarding plane to be switched for the current forwarding plane;
所述向当前转发面发送停止命令, 包括: Sending a stop command to the current forwarding plane includes:
向所述当前转发面发送携带主转发面流表删除信息的停止命令, 所述主 转发面流表为所述当前转发面上传输的所述业务信息的转发规则; Send a stop command carrying main forwarding plane flow table deletion information to the current forwarding plane, where the main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane;
所述向所述待切换转发面发送启用命令, 包括: The sending of an enabling command to the forwarding plane to be switched includes:
向所述至少一个待切换转发面发送携带所述主转发面流表的启动命令。 Send a start command carrying the main forwarding plane flow table to the at least one forwarding plane to be switched.
5、 根据权利要求 1所述的方法, 其特征在于, 所述选择待切换转发面之 前, 还包括: 5. The method according to claim 1, characterized in that before selecting the forwarding plane to be switched, the method further includes:
获取转发面的主从关系; Obtain the master-slave relationship of the forwarding surface;
所述选择待切换转发面, 包括: The selection of the forwarding plane to be switched includes:
根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发 面作为待切换转发面。 According to the master-slave relationship, at least one forwarding plane is selected from the slave forwarding planes of the current forwarding plane as the forwarding plane to be switched.
6、 根据权利要求 5所述的方法, 其特征在于, 所述根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发面作为待切换转发面之 后, 向当前转发面发送停止命令之前, 还包括: 6. The method according to claim 5, characterized in that, according to the master-slave relationship, after selecting at least one forwarding plane from the slave forwarding planes of the current forwarding plane as the forwarding plane to be switched, forward to the current forwarding plane. Before sending the stop command above, also include:
向所述当前转发面发送迁移命令, 以使所述当前转发面将整个转发面信 息迁移至至少一个所述待切换转发面, 所述整个转发面信息至少包括主转发 面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转发 规则。 Send a migration command to the current forwarding plane, so that the current forwarding plane migrates the entire forwarding plane information to at least one of the forwarding planes to be switched, where the entire forwarding plane information at least includes a main forwarding plane flow table, and the main forwarding plane The forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane.
7、 根据权利要求 6所述的方法, 其特征在于, 所述根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发面作为待切换转发面之 后, 向所述当前转发面发送迁移命令之前, 还包括: 7. The method according to claim 6, characterized in that, after selecting at least one forwarding plane from the slave forwarding planes of the current forwarding plane as the forwarding plane to be switched according to the master-slave relationship, Before the current forwarding plane sends the migration command, it also includes:
向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面 流表定期备份至至少一个所述待切换转发面。 Send a backup command to the current forwarding plane, so that the current forwarding plane regularly backs up the main forwarding plane flow table to at least one of the forwarding planes to be switched.
8、 根据权利要求 5〜7任一项所述的方法, 其特征在于, 所述获取转发面 的主从关系, 包括: 8. The method according to any one of claims 5 to 7, characterized in that said obtaining the master-slave relationship of the forwarding plane includes:
向所述当前转发面发送主从配置请求; Send a master-slave configuration request to the current forwarding plane;
接收所述当前转发面发送的主从配置响应。 Receive the master-slave configuration response sent by the current forwarding plane.
9、 根据权利要求 2〜7任一项所述的方法, 其特征在于, 所述选择待切换 转发面之后, 向当前转发面发送停止命令之前, 还包括: 9. The method according to any one of claims 2 to 7, characterized in that, after selecting the forwarding plane to be switched and before sending a stop command to the current forwarding plane, it further includes:
接收所述当前转发面发送的转发面切换请求; Receive the forwarding plane switching request sent by the current forwarding plane;
向所述当前转发面发送转发面切换响应。 Send a forwarding plane switching response to the current forwarding plane.
10、 一种转发面迁移方法, 其特征在于, 适用于转发面与控制面分离的 网关, 所述转发面为当前转发面, 所述方法包括: 10. A forwarding plane migration method, characterized in that it is suitable for a gateway that separates the forwarding plane and the control plane, and the forwarding plane is the current forwarding plane. The method includes:
接收控制器发送的停止命令; Receive the stop command sent by the controller;
停止所述当前转发面的转发功能, 从而在所述控制器将通过所述当前转 发面传输的业务信息迁移到待切换转发面上后向所述待切换转发面发送启用 命令以完成转发面迁移, 其中, 所述待切换转发面为所述网关外的其他网关 的转发面。 Stop the forwarding function of the current forwarding plane, so that the controller will pass the current forwarding plane After the service information transmitted by the forwarding plane is migrated to the forwarding plane to be switched, an enabling command is sent to the forwarding plane to be switched to complete the forwarding plane migration, wherein the forwarding plane to be switched is the forwarding plane of another gateway other than the gateway.
11、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令之前, 还包括: 11. The method according to claim 10, characterized in that, before receiving the stop command sent by the controller, it further includes:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则; Receive the main forwarding plane flow table sent by the controller, where the main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane;
所述接收控制器发送的停止命令, 包括: The receiving stop command sent by the controller includes:
接收所述控制器发送的停止使用所述主转发面流表的停止命令。 Receive a stop command sent by the controller to stop using the main forwarding surface flow table.
12、 根据权利要求 11所述的方法, 其特征在于, 所述接收所述控制器发 送的主转发面流表之后, 接收控制器发送的停止命令之前, 还包括: 12. The method according to claim 11, characterized in that after receiving the main forwarding surface flow table sent by the controller and before receiving the stop command sent by the controller, it further includes:
接收所述网络控制器发送的更新的主转发面流表。 Receive an updated primary forwarding surface flow table sent by the network controller.
13、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令, 包括: 13. The method according to claim 10, characterized in that receiving the stop command sent by the controller includes:
接收携带主转发面流表删除信息的停止命令。 Receive the stop command carrying the deletion information of the main forwarding surface flow table.
14、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令之前, 还包括: 14. The method according to claim 10, characterized in that, before receiving the stop command sent by the controller, it further includes:
接收所述控制器发送的迁移命令, 将整个转发面信息迁移至至少一个待 切换转发面, 所述整个转发面信息至少包括主转发面流表, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。 Receive a migration command sent by the controller, and migrate the entire forwarding plane information to at least one forwarding plane to be switched. The entire forwarding plane information at least includes a main forwarding plane flow table, and the main forwarding plane flow table is the current forwarding plane. Forwarding rules for the service information transmitted on the plane.
15、 根据权利要求 14所述的方法, 其特征在于, 所述接收所述控制器发 送的迁移命令之后, 接收控制器发送的停止命令之前, 还包括: 15. The method according to claim 14, characterized in that after receiving the migration command sent by the controller and before receiving the stop command sent by the controller, it further includes:
接收所述控制器发送的备份指令; Receive backup instructions sent by the controller;
定期切换至所述至少一个待切换转发面, 以将所述整个转发面信息定期 备份至所述至少一个待切换转发面。 Regularly switch to the at least one forwarding plane to be switched, so as to regularly back up the entire forwarding plane information to the at least one forwarding plane to be switched.
16、 根据权利要求 14或 15所述的方法, 其特征在于, 所述接收所述控 制器发送的迁移命令之前, 还包括: 16. The method according to claim 14 or 15, characterized in that before receiving the migration command sent by the controller, it further includes:
接收所述控制器发送的主从配置请求; Receive the master-slave configuration request sent by the controller;
向所述控制器发送主从配置响应。 Send a master-slave configuration response to the controller.
17、 根据权利要求 11〜15任一项所述的方法, 其特征在于, 所述接收控 制器发送的停止命令之前, 还包括: 17. The method according to any one of claims 11 to 15, characterized in that: the receiving control Before the stop command sent by the controller, it also includes:
向所述控制器发送转发面切换请求; Send a forwarding plane switching request to the controller;
接收所述控制器发送的转发面切换响应。 Receive the forwarding plane switching response sent by the controller.
18、 一种转发面迁移方法, 其特征在于, 适用于转发面与控制面分离的 网关, 所述转发面为待切换转发面, 所述方法包括: 18. A forwarding plane migration method, characterized in that it is suitable for gateways in which the forwarding plane and the control plane are separated, and the forwarding plane is the forwarding plane to be switched. The method includes:
接收控制器发送的启用命令; Receive the enable command sent by the controller;
启用所述待切换转发面的转发功能, 从而在所述控制器将通过所述当前 转发面传输的业务信息迁移到所述待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进行转发面迁移的 网关的转发面。 Enable the forwarding function of the forwarding plane to be switched, so that after the controller migrates the service information transmitted through the current forwarding plane to the forwarding plane to be switched and sends a stop command to the current forwarding plane, the forwarding plane is completed Migration, wherein the current forwarding plane is the forwarding plane of the gateway that needs to migrate the forwarding plane.
19、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令之前, 还包括: 19. The method according to claim 18, characterized in that, before receiving the enable command sent by the controller, it further includes:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则; Receive the main forwarding plane flow table sent by the controller, where the main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane;
所述接收控制器发送的启用命令, 包括: The receiving enable command sent by the controller includes:
接收所述控制器发送的启用所述主转发面流表的启用命令。 Receive an enabling command sent by the controller to enable the main forwarding surface flow table.
20、 根据权利要求 19所述的方法, 其特征在于, 所述接收所述控制器发 送的主转发面流表之前, 还包括: 20. The method according to claim 19, characterized in that before receiving the main forwarding surface flow table sent by the controller, it further includes:
接收所述控制器发送的更新的主转发流表。 Receive the updated primary forwarding flow table sent by the controller.
21、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令, 包括: 21. The method according to claim 18, characterized in that the receiving the enable command sent by the controller includes:
接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。 Receive a start command sent by the controller carrying a main forwarding plane flow table. The main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane.
22、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令之前, 还包括: 22. The method according to claim 18, characterized in that, before receiving the enable command sent by the controller, it further includes:
在所述当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前 控制器通过切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括 主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息 的转发规则。 After the current forwarding plane receives the migration command sent by the controller, the entire forwarding plane information migrated by the current controller through switching is saved, and the entire forwarding plane information at least includes the main forwarding plane flow table, The main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane.
23、 一种控制器, 其特征在于, 包括: 选择模块, 用于选择待切换转发面; 23. A controller, characterized in that it includes: Selection module, used to select the forwarding plane to be switched;
第一发送模块, 用于向当前转发面发送停止命令; The first sending module is used to send a stop command to the current forwarding plane;
迁移模块, 用于将通过所述当前转发面传输的业务信息迁移到所述选择 模块选择的所述待切换转发面上; A migration module, configured to migrate the service information transmitted through the current forwarding plane to the to-be-switched forwarding plane selected by the selection module;
第二发送模块, 还用于在所述迁移模块将通过所述当前转发面传输的业 务信息迁移到所述选择模块选择的所述待切换转发面上后, 向所述待切换转 发面发送启用命令以完成转发面的迁移。 The second sending module is also configured to send enablement to the forwarding plane to be switched after the migration module migrates the service information transmitted through the current forwarding plane to the forwarding plane to be switched selected by the selection module. command to complete the forwarding plane migration.
24、 根据权利要求 23所述的控制器, 其特征在于, 所述控制器还包括: 第三发送模块和处理模块; 24. The controller according to claim 23, wherein the controller further includes: a third sending module and a processing module;
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第三发送模块, 用于向所述当前转发面与所述至少一个待切换转发 面发送主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业 务信息的转发规则; The selection module is used to select at least one forwarding plane to be switched for the current forwarding plane; the third sending module is used to send a main forwarding plane flow to the current forwarding plane and the at least one forwarding plane to be switched. Table, the main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane;
所述处理模块, 用于将所述至少一个待切换转发面上的主转发面流表 设置为非活动状态; The processing module is configured to set the main forwarding plane flow table of the at least one forwarding plane to be switched to an inactive state;
所述第一发送模块,用于向所述当前转发面发送停止使用所述主转发面 流表的停止命令; The first sending module is configured to send a stop command to stop using the main forwarding plane flow table to the current forwarding plane;
所述第二发送模块, 用于向所述至少一个待切换转发面发送启用所述主 转发面流表的启用命令。 The second sending module is configured to send an enabling command for activating the main forwarding plane flow table to the at least one forwarding plane to be switched.
25、 根据权利要求 24所述的控制器, 其特征在于, 25. The controller according to claim 24, characterized in that,
所述第三发送模块, 还用于向所述当前转发面与所述至少一个待切换转 发面发送更新的主转发面流表。 The third sending module is also configured to send an updated main forwarding plane flow table to the current forwarding plane and the at least one forwarding plane to be switched.
26、 根据权利要求 23所述的控制器, 其特征在于, 26. The controller according to claim 23, characterized in that,
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第一发送模块, 用于向所述当前转发面发送携带主转发面流表删除 信息的停止命令, 所述主转发面流表为所述当前转发面上传输的所述业务信 息的转发规则; The selection module is used to select at least one forwarding plane to be switched for the current forwarding plane; the first sending module is used to send a stop command carrying the main forwarding plane flow table deletion information to the current forwarding plane, so The main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane;
所述第二发送模块, 用于向所述至少一个待切换转发面发送携带所述主 转发面流表的启动命令。 The second sending module is configured to send a start command carrying the main forwarding plane flow table to the at least one forwarding plane to be switched.
27、 根据权利要求 23所述的控制器, 其特征在于, 所述控制器还包括: 获取模块, 用于获取转发面的主从关系; 27. The controller according to claim 23, characterized in that, the controller further includes: Acquisition module, used to obtain the master-slave relationship of the forwarding plane;
所述选择模块, 用于根据所述获取模块获取的所述主从关系, 从所述当 前转发面的从转发面中选择至少一个转发面作为待切换转发面。 The selection module is configured to select at least one forwarding plane from the slave forwarding planes of the current forwarding plane as the forwarding plane to be switched based on the master-slave relationship obtained by the acquisition module.
28、 根据权利要求 27所述的控制器, 其特征在于, 所述控制器还包括: 第三发送模块, 用于向所述当前转发面发送迁移命令, 以使所述当前转 发面将整个转发面信息迁移至至少一个所述待切换转发面, 所述整个转发面 信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上传输的 所述业务信息的转发规则。 28. The controller according to claim 27, wherein the controller further includes: a third sending module, configured to send a migration command to the current forwarding plane, so that the current forwarding plane forwards the entire The plane information is migrated to at least one of the forwarding planes to be switched. The entire forwarding plane information at least includes a main forwarding plane flow table. The main forwarding plane flow table is the forwarding rule of the business information transmitted on the current forwarding plane. .
29、 根据权利要求 28所述的控制器, 其特征在于, 29. The controller according to claim 28, characterized in that,
所述第三发送模块, 还用于向所述当前转发面发送备份命令, 以使所述 当前转发面将所述主转发面流表定期备份至至少一个所述待切换转发面。 The third sending module is also configured to send a backup command to the current forwarding plane, so that the current forwarding plane regularly backs up the main forwarding plane flow table to at least one of the forwarding planes to be switched.
30、 根据权利要求 27〜29任一项所述的控制器, 其特征在于, 30. The controller according to any one of claims 27 to 29, characterized in that,
所述获取模块, 用于向所述当前转发面发送主从配置请求, 接收所述当 前转发面发送的主从配置响应。 The acquisition module is configured to send a master-slave configuration request to the current forwarding plane, and receive a master-slave configuration response sent by the current forwarding plane.
31、 根据权利要求 24〜29任一项所述的控制器, 其特征在于, 所述控制 器还包括: 31. The controller according to any one of claims 24 to 29, characterized in that the controller further includes:
接收模块, 用于接收所述当前转发面发送的转发面切换请求; A receiving module, configured to receive the forwarding plane switching request sent by the current forwarding plane;
所述第一发送模块, 还用于向所述当前转发面发送转发面切换响应。 The first sending module is also configured to send a forwarding plane switching response to the current forwarding plane.
32、 一种转发面迁移装置, 其特征在于, 转发面与控制面分离, 所述转 发面为当前转发面, 所述转发面迁移装置包括: 32. A forwarding plane migration device, characterized in that the forwarding plane is separated from the control plane, the forwarding plane is the current forwarding plane, and the forwarding plane migration device includes:
第一接收模块, 用于接收控制器发送的停止命令; The first receiving module is used to receive the stop command sent by the controller;
处理模块, 用于停止所述当前转发面的转发功能, 从而在所述控制器将 通过所述当前转发面传输的业务信息迁移到待切换转发面上后向所述待切换 转发面发送启用命令以完成转发面迁移, 其中, 所述待切换转发面为所述网 关外的其他网关的转发面。 A processing module configured to stop the forwarding function of the current forwarding plane, thereby sending an enabling command to the forwarding plane to be switched after the controller migrates the business information transmitted through the current forwarding plane to the forwarding plane to be switched. To complete the forwarding plane migration, the forwarding plane to be switched is the forwarding plane of another gateway other than the gateway.
33、 根据权利要求 32所述的转发面迁移装置, 其特征在于, 所述转发面 迁移装置还包括: 33. The forwarding plane migration device according to claim 32, characterized in that the forwarding plane migration device further includes:
第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则; The second receiving module is configured to receive the main forwarding surface flow table sent by the controller, where the main forwarding surface flow table is the forwarding rule of the business information transmitted on the current forwarding surface;
所述第一接收模块, 用于接收所述控制器发送的停止使用所述主转发面 流表的停止命令。 The first receiving module is configured to receive a message sent by the controller to stop using the main forwarding plane. The stop command of the flow table.
34、 根据权利要求 33所述的转发面迁移装置, 其特征在于, 34. The forwarding plane migration device according to claim 33, characterized in that,
所述第二接收模块, 还用于接收所述网络控制器发送的更新的主转发面 流表。 The second receiving module is also configured to receive the updated main forwarding surface flow table sent by the network controller.
35、 根据权利要求 32所述的转发面迁移装置, 其特征在于, 35. The forwarding plane migration device according to claim 32, characterized in that,
所述第一接收模块, 用于接收携带主转发面流表删除信息的停止命令。 The first receiving module is configured to receive a stop command carrying main forwarding plane flow table deletion information.
36、 根据权利要求 32所述的转发面迁移装置, 其特征在于, 所述转发面 迁移装置还包括: 36. The forwarding plane migration device according to claim 32, characterized in that the forwarding plane migration device further includes:
第二接收模块, 用于接收所述控制器发送的迁移命令, 将整个转发面信 息迁移至至少一个待切换转发面, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。 The second receiving module is configured to receive the migration command sent by the controller and migrate the entire forwarding plane information to at least one forwarding plane to be switched. The entire forwarding plane information at least includes a main forwarding plane flow table. The main forwarding plane The flow table is the forwarding rule of the service information transmitted on the current forwarding plane.
37、 根据权利要求 36所述的转发面迁移装置, 其特征在于, 37. The forwarding plane migration device according to claim 36, characterized in that,
所述第二接收模块, 还用于接收所述控制器发送的备份指令; The second receiving module is also used to receive the backup instruction sent by the controller;
所述处理模块, 还用于定期切换至所述至少一个待切换转发面, 以将所 述整个转发面信息定期备份至所述至少一个待切换转发面。 The processing module is also configured to regularly switch to the at least one forwarding plane to be switched, so as to regularly back up the entire forwarding plane information to the at least one forwarding plane to be switched.
38、 根据权利要求 36或 37所述的转发面迁移装置, 其特征在于, 还包 括第一发送模块; 38. The forwarding plane migration device according to claim 36 or 37, further comprising a first sending module;
所述第一接收模块, 还用于接收所述控制器发送的主从配置请求; 所述第一发送模块, 用于向所述控制器发送主从配置响应。 The first receiving module is further configured to receive a master-slave configuration request sent by the controller; and the first sending module is configured to send a master-slave configuration response to the controller.
39、 根据权利要求 33〜37任一项所述的转发面迁移装置, 其特征在于, 还包括第二发送模块; 39. The forwarding plane migration device according to any one of claims 33 to 37, further comprising a second sending module;
所述第二发送模块, 用于向所述控制器发送转发面切换请求; The second sending module is used to send a forwarding plane switching request to the controller;
所述第一接收模块, 用于接收所述控制器发送的转发面切换响应。 The first receiving module is configured to receive a forwarding plane switching response sent by the controller.
40、 一种转发面迁移装置, 其特征在于, 转发面与控制面分离, 所述转 发面为待切换转发面, 所述转发面迁移装置包括: 40. A forwarding plane migration device, characterized in that the forwarding plane is separated from the control plane, the forwarding plane is the forwarding plane to be switched, and the forwarding plane migration device includes:
第一接收模块, 用于接收控制器发送的启用命令; The first receiving module is used to receive the enabling command sent by the controller;
处理模块, 用于启用所述待切换转发面的转发功能, 从而在所述控制器 将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上并向当前 转发面发送停止命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进 行转发面迁移的网关的转发面。 A processing module configured to enable the forwarding function of the forwarding plane to be switched, so that the controller migrates the business information transmitted through the current forwarding plane to the forwarding plane to be switched and sends a stop command to the current forwarding plane. After that, the forwarding plane migration is completed, wherein the current forwarding plane is the forwarding plane of the gateway that needs to perform forwarding plane migration.
41、 根据权利要求 40所述的转发面迁移装置, 其特征在于, 还包括: 第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则; 41. The forwarding plane migration device according to claim 40, further comprising: a second receiving module, configured to receive the main forwarding plane flow table sent by the controller, and the main forwarding plane flow table is the main forwarding plane flow table. Describe the forwarding rules of the service information currently transmitted on the forwarding plane;
所述第一接收模块, 用于接收所述控制器发送的启用所述主转发面流表 的启用命令。 The first receiving module is configured to receive an enabling command sent by the controller to enable the main forwarding surface flow table.
42、 根据权利要求 41所述的转发面迁移装置, 其特征在于, 所述第一接 收模块, 还用于接收所述控制器发送的更新的主转发流表。 42. The forwarding plane migration device according to claim 41, wherein the first receiving module is further configured to receive the updated main forwarding flow table sent by the controller.
43、 根据权利要求 40所述的转发面迁移装置, 其特征在于, 43. The forwarding plane migration device according to claim 40, characterized in that,
所述第一接收模块, 还用于接收所述控制器发送的携带主转发面流表的 启动命令, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转 发规则。 The first receiving module is also configured to receive a start command carrying a main forwarding plane flow table sent by the controller. The main forwarding plane flow table is the forwarding rule of the business information transmitted on the current forwarding plane. .
44、 根据权利要求 40所述的转发面迁移装置, 其特征在于, 44. The forwarding plane migration device according to claim 40, characterized in that,
所述处理模块, 用于在所述当前转发面接收到所述控制器发送的迁移命 令后, 保存所述当前控制器通过切换方式迁移的整个转发面信息, 所述整个 转发面信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上 传输的所述业务信息的转发规则。 The processing module is configured to save the entire forwarding plane information migrated by the current controller through switching after the current forwarding plane receives the migration command sent by the controller. The entire forwarding plane information includes at least the main Forwarding plane flow table, the main forwarding plane flow table is the forwarding rule of the service information transmitted on the current forwarding plane.
45、 一种网关, 其特征在于, 包括如权利要求 32〜39任一项所述的迁移 面转发面装置,和 /或,如权利了要求 40〜44任一项所述的迁移面转发面装置。 45. A gateway, characterized in that it includes a migration plane forwarding device as described in any one of claims 32 to 39, and/or a migration plane forwarding device as described in any one of claims 40 to 44. device.
46、 一种控制器, 其特征在于, 包括: 处理器和存储器, 所述存储器存 储执行指令, 当所述控制器运行时, 所述处理器与所述存储器之间通信, 所 述处理器执行所述执行指令使得所述控制器执行如权利要求 1至 9任一项所 述的方法。 46. A controller, characterized in that it includes: a processor and a memory, the memory stores execution instructions, when the controller is running, the processor communicates with the memory, and the processor executes The execution instructions cause the controller to execute the method according to any one of claims 1 to 9.
47、 一种网关, 其特征在于, 包括: 处理器和存储器, 所述存储器存储 执行指令, 当所述网关运行时, 所述处理器与所述存储器之间通信, 所述处 理器执行所述执行指令使得所述网关执行如权利要求 10至 17, 和 /或, 如权 利要求 18〜22任一项所述的方法。 47. A gateway, characterized in that it includes: a processor and a memory, the memory stores execution instructions, when the gateway is running, the processor communicates with the memory, and the processor executes the Executing the instructions causes the gateway to perform the method as claimed in any one of claims 10 to 17, and/or as claimed in any one of claims 18 to 22.
PCT/CN2013/086782 2013-11-08 2013-11-08 Forwarding plane migration method, controller, and gateway WO2015066894A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/086782 WO2015066894A1 (en) 2013-11-08 2013-11-08 Forwarding plane migration method, controller, and gateway
CN201380003564.4A CN104782173B (en) 2013-11-08 2013-11-08 Forwarding surface moving method, controller and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/086782 WO2015066894A1 (en) 2013-11-08 2013-11-08 Forwarding plane migration method, controller, and gateway

Publications (1)

Publication Number Publication Date
WO2015066894A1 true WO2015066894A1 (en) 2015-05-14

Family

ID=53040792

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086782 WO2015066894A1 (en) 2013-11-08 2013-11-08 Forwarding plane migration method, controller, and gateway

Country Status (2)

Country Link
CN (1) CN104782173B (en)
WO (1) WO2015066894A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071399A1 (en) * 2015-10-29 2017-05-04 中国移动通信集团公司 Service data transmission method, apparatus, control device and communication system
WO2020001256A1 (en) * 2018-06-25 2020-01-02 华为技术有限公司 Data transmission method and device
CN114338599A (en) * 2021-12-27 2022-04-12 中国电信股份有限公司 Data processing method, device and equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566201A (en) * 2015-10-09 2021-03-26 苹果公司 Network initiated packet data network connection
WO2017201722A1 (en) * 2016-05-26 2017-11-30 华为技术有限公司 Communication control method, and related network element
CN109245926B (en) * 2018-08-28 2021-10-15 郑州云海信息技术有限公司 Intelligent network card, intelligent network card system and control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132612A (en) * 2006-08-22 2008-02-27 华为技术有限公司 Network entity emigration method for grouping core network
CN101674223A (en) * 2008-09-13 2010-03-17 华为技术有限公司 Gateway equipment load processing method, network equipment and network system
CN101730150A (en) * 2009-01-19 2010-06-09 中兴通讯股份有限公司 Method for controlling network resources during service flow transfer
CN103379569A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Trigger method and trigger apparatus of flow migration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996913A (en) * 2005-12-31 2007-07-11 华为技术有限公司 A network interconnection system and method for separated control and load
CN101039506B (en) * 2006-03-15 2011-02-02 华为技术有限公司 Method for transferring mobile management entity/user interface entity
CN101047982B (en) * 2006-04-02 2011-04-13 华为技术有限公司 Method of gateway transport
CN101959270B (en) * 2010-11-01 2013-12-18 华为技术有限公司 Core network node switching method, equipment and system for user equipment (UE)
CN102625363B (en) * 2011-12-09 2017-08-25 南京中兴软件有限责任公司 A kind of mobile grouping field network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132612A (en) * 2006-08-22 2008-02-27 华为技术有限公司 Network entity emigration method for grouping core network
CN101674223A (en) * 2008-09-13 2010-03-17 华为技术有限公司 Gateway equipment load processing method, network equipment and network system
CN101730150A (en) * 2009-01-19 2010-06-09 中兴通讯股份有限公司 Method for controlling network resources during service flow transfer
CN103379569A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Trigger method and trigger apparatus of flow migration

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071399A1 (en) * 2015-10-29 2017-05-04 中国移动通信集团公司 Service data transmission method, apparatus, control device and communication system
WO2020001256A1 (en) * 2018-06-25 2020-01-02 华为技术有限公司 Data transmission method and device
CN114338599A (en) * 2021-12-27 2022-04-12 中国电信股份有限公司 Data processing method, device and equipment

Also Published As

Publication number Publication date
CN104782173B (en) 2018-11-06
CN104782173A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
WO2015066894A1 (en) Forwarding plane migration method, controller, and gateway
JP5446040B2 (en) Computer system and virtual machine migration method
CN103583063B (en) System and method for the fault recovery of geographic redundancy gateway
WO2017114017A1 (en) Computer device, system and method for implementing load balancing
JP6520959B2 (en) Node system, server device, scaling control method and program
JP6450835B2 (en) Energy saving control method, management server, and network device
JP6388955B2 (en) Graceful restart processing method of OpenFlow switch and OpenFlow controller
EP2985952B1 (en) Method and device for protecting service reliability, and network virtualization system
US20140068045A1 (en) Network system and virtual node migration method
JPWO2016121728A1 (en) Network function virtualization management and orchestration device, system, management method and program
WO2015000362A1 (en) Service node configuration method, service node pond register and system
WO2011157151A2 (en) Method, device and system for realizing disaster-tolerant backup
WO2017124791A1 (en) Link detecting method and device
WO2018058618A1 (en) Fault processing method and device
EP2597821B1 (en) Method and system for auto-configuration, and network node
WO2017000832A1 (en) Mac address synchronization method, device and system
WO2011147312A1 (en) Method, device and system for port backup of service access router
JP6037251B2 (en) Method, device, and system for controlling network paths
WO2017215408A1 (en) Session switching control method and apparatus and access point device
WO2014075216A1 (en) Method and network device for establishing virtual cluster
JP5904285B2 (en) Communication system, virtual network management device, communication node, communication method, and program
JP2008167359A (en) Site dividing method and file updating method in ip telephone system, and ip telephone system
CN107222883B (en) Wireless controller backup method, backup switching method, device and system
WO2015188331A1 (en) 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network
WO2015101100A1 (en) Network device and service processing method in network

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: 13897237

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: 13897237

Country of ref document: EP

Kind code of ref document: A1