WO2015066894A1 - 转发面迁移方法、控制器及网关 - Google Patents

转发面迁移方法、控制器及网关 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
English (en)
French (fr)
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 CN201380003564.4A priority Critical patent/CN104782173B/zh
Priority to PCT/CN2013/086782 priority patent/WO2015066894A1/zh
Publication of WO2015066894A1 publication Critical patent/WO2015066894A1/zh

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

本发明实施例提供一种转发面迁移方法、控制器及网关,该方法包括:选择待切换转发面;向当前转发面发送停止命令;将通过当前转发面传输的业务信息迁移到待切换转发面上后,向待切换转发面发送启用命令以完成转发面的迁移。该转发面迁移过程中,控制器通过选择待切换转发面,向当前转发面发送停止命令的同时向待切换转发面发送启用命令,从而对转发面的迁移进行控制,实现了控制面和转发面分离的网络架构中转发面的单独迁移。

Description

转发面迁移方法、 控制器及网关 技术领域
本发明实施例涉及通信技术, 尤其涉及一种转发面迁移方法、 控制器及 网关。 背景技术
目前, 随着互联网规模的迅速扩展, 网络服务的多样性和复杂度也变得 越来越高, 急需全新的网络架构理念来维持互联网的可持续发展。 基于 OpenFlow技术的软件定义网络 (Software Defined Network, SDN) 与面向 互联网协议 (Internet protocol , IP ) 的分组域核心网的演进项目 (System Architecture Evolution, SAE) , 即***移动通信(the 4th Generation Mobile Communication, 4G) 网络应用而生。
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逻辑上的控制面 功能和转发面功能分离。 在需要进行转发面迁移时, 控制面将会附着到相应 的转发面上, 实现对数据报文的转发, 即实现转发面的迁移。
然而, 在控制面和转发面分离的架构中, 并不总是需要控制面和转发面 绑定起来同时迁移, 例如, 为实现业务倒换、 热备份等时, 需要对控制面和 转发面单独进行迁移; 又如, 在控制面云化的场景下, 无需对控制面和转发 面同时迁移。 发明内容
本发明实施例提供转发面迁移方法、 控制器及网关, 实现控制面和转发 面分离的网络架构中, 对转发面的单独迁移。
第一个方面, 本发明实施例提供一种转发面迁移方法, 包括:
选择待切换转发面;
向当前转发面发送停止命令;
将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上后, 向所述待切换转发面发送启用命令以完成转发面的迁移。
在第一个方面的第一种可能的实现方式中, 所述选择待迁移转发面, 包 括:
为所述当前转发面选择至少一个待切换转发面;
所述选择待切换转发面之后, 向当前转发面发送停止命令之前, 还包括: 向所述当前转发面与所述至少一个待切换转发面发送主转发面流表, 所 述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则;
将所述至少一个待切换转发面上的主转发面流表设置为非活动状态; 所述向当前转发面发送停止命令, 包括:
向所述当前转发面发送停止使用所述主转发面流表的停止命令; 所述向所述待切换转发面发送启用命令, 包括:
向所述至少一个待切换转发面发送启用所述主转发面流表的启用命令。 结合第一个方面的第一种可能的实现方式, 在第一个方面的第二种可能 的实现方式中, 所述向所述当前转发面与所述至少一个待切换转发面发送主 转发面流表之后, 将所述至少一个待切换转发面上的主转发面流表设置为 非活动状态之前, 还包括:
向所述当前转发面与所述至少一个待切换转发面发送更新的主转发面流 表。
在第一个方面的第三种可能的实现方式中, 所述选择待迁移转发面, 包 括:
为所述当前转发面选择至少一个待切换转发面;
所述向当前转发面发送停止命令, 包括:
向所述当前转发面发送携带主转发面流表删除信息的停止命令, 所述主 转发面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述向所述待切换转发面发送启用命令, 包括: 向所述至少一个待切换转发面发送携带所述主转发面流表的启动命令。 在第一个方面的第四种可能的实现方式中,所述选择待切换转发面之前, 还包括:
获取转发面的主从关系;
所述选择待切换转发面, 包括:
根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发 面作为待切换转发面。
结合第一个方面的第四种可能的实现方式, 在第一个方面的第五种可能 的实现方式中, 所述根据所述主从关系, 从所述当前转发面的从转发面中选 择至少一个转发面作为待切换转发面之后, 向当前转发面发送停止命令之前, 还包括:
向所述当前转发面发送迁移命令, 以使所述当前转发面将整个转发面信 息迁移至至少一个所述待切换转发面, 所述整个转发面信息至少包括主转发 面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转发 规则。
结合第一个方面的第五种可能的实现方式, 在第一个方面的第六种可能 的实现方式中, 所述根据所述主从关系, 从所述当前转发面的从转发面中选 择至少一个转发面作为待切换转发面之后, 向所述当前转发面发送迁移命令 之前, 还包括:
向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面 流表定期备份至至少一个所述待切换转发面。
结合第一个方面的第四种至第六种中任一种可能的实现方式, 在第一个 方面的第七种可能的实现方式中, 所述获取转发面的主从关系, 包括:
向所述当前转发面发送主从配置请求;
接收所述当前转发面发送的主从配置响应。
结合第一个方面的第一种至第六种中任一种可能的实现方式, 在第一个 方面的第八种可能的实现方式中, 所述选择待切换转发面之后, 向当前转发 面发送停止命令之前, 还包括:
接收所述当前转发面发送的转发面切换请求;
向所述当前转发面发送转发面切换响应。 第二个方面, 本发明实施例提供一种转发面迁移方法, 适用于转发面与 控制面分离的网关, 所述转发面为当前转发面, 所述方法包括:
接收控制器发送的停止命令;
停止所述当前转发面的转发功能, 从而在所述控制器将通过所述当前转 发面传输的业务信息迁移到待切换转发面上后向所述待切换转发面发送启用 命令以完成转发面迁移, 其中, 所述待切换转发面为所述网关外的其他网关 的转发面。
在第二个方面的第一种可能的实现方式中, 所述接收控制器发送的停止 命令之前, 还包括:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;
所述接收控制器发送的停止命令, 包括:
接收所述控制器发送的停止使用所述主转发面流表的停止命令。
结合第二个方面的第一种可能的实现方式, 在第二个方面的第二种可能 的实现方式中, 所述接收所述控制器发送的主转发面流表之后, 接收控制器 发送的停止命令之前, 还包括:
接收所述网络控制器发送的更新的主转发面流表。
在第二个方面的第三种可能的实现方式中, 所述接收控制器发送的停止 命令, 包括:
接收携带主转发面流表删除信息的停止命令。
在第二个方面的第四种可能的实现方式中, 所述接收控制器发送的停止 命令之前, 还包括:
接收所述控制器发送的迁移命令, 将整个转发面信息迁移至至少一个待 切换转发面, 所述整个转发面信息至少包括主转发面流表, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。
结合第二个方面的第四种可能的实现方式, 在第二个方面的第五种可能 的实现方式中, 所述接收所述控制器发送的迁移命令之后, 接收控制器发送 的停止命令之前, 还包括:
接收所述控制器发送的备份指令;
定期切换至所述至少一个待切换转发面, 以将所述整个转发面信息定期 备份至所述至少一个待切换转发面。
结合第二个方面的第四种或第五种可能的实现方式, 在第二个方面的第 六种可能的实现方式中, 所述接收所述控制器发送的迁移命令之前, 还包括: 接收所述控制器发送的主从配置请求;
向所述控制器发送主从配置响应。
结合第二个方面的第一种至第五种中任一种可能的实现方式, 在第一个 方面的第七种可能的实现方式中, 所述接收控制器发送的停止命令之前, 还 包括:
向所述控制器发送转发面切换请求;
接收所述控制器发送的转发面切换响应。
第三个方面, 本发明实施例提供一种转发面迁移方法, 适用于转发面与 控制面分离的网关, 所述转发面为待切换转发面, 所述方法包括:
接收控制器发送的启用命令;
启用所述待切换转发面的转发功能, 从而在所述控制器将通过所述当前 转发面传输的业务信息迁移到所述待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进行转发面迁移的 网关的转发面。
在第三个方面的第一种可能的实现方式中, 所述接收控制器发送的启用 命令之前, 还包括:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;
所述接收控制器发送的启用命令, 包括:
接收所述控制器发送的启用所述主转发面流表的启用命令。
结合第三个方面的第一种可能的实现方式, 在第三个方面的第二种可能 的实现方式中, 所述接收所述控制器发送的主转发面流表之前, 还包括: 接收所述控制器发送的更新的主转发流表。
在第三个方面的第三种可能的实现方式中, 所述接收控制器发送的启用 命令, 包括:
接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。 在第三个方面的第四种可能的实现方式中, 所述接收控制器发送的启用 命令之前, 还包括:
在所述当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前 控制器通过切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括 主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息 的转发规则。
第四个方面, 本发明实施例提供一种控制器, 包括:
选择模块, 用于选择待切换转发面;
第一发送模块, 用于向当前转发面发送停止命令;
迁移模块, 用于将通过所述当前转发面传输的业务信息迁移到所述选择 模块选择的所述待切换转发面上;
第二发送模块, 还用于在所述迁移模块将通过所述当前转发面传输的业 务信息迁移到所述选择模块选择的所述待切换转发面上后, 向所述待切换转 发面发送启用命令以完成转发面的迁移。
在第四个方面的第一种可能的实现方式中, 所述控制器还包括: 第三发 送模块和处理模块;
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第三发送模块, 用于向所述当前转发面与所述至少一个待切换转发 面发送主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业 务信息的转发规则;
所述处理模块, 用于将所述至少一个待切换转发面上的主转发面流表 设置为非活动状态;
所述第一发送模块,用于向所述当前转发面发送停止使用所述主转发面 流表的停止命令;
所述第二发送模块, 用于向所述至少一个待切换转发面发送启用所述主 转发面流表的启用命令。
结合第四个方面的第一种可能的实现方式, 在第四个方面的第二种可能 的实现方式中, 所述第三发送模块, 还用于向所述当前转发面与所述至少一 个待切换转发面发送更新的主转发面流表。
在第四个方面的第三种可能的实现方式中, 所述选择模块, 用于为所述 当前转发面选择至少一个待切换转发面;
所述第一发送模块, 用于向所述当前转发面发送携带主转发面流表删除 信息的停止命令, 所述主转发面流表为所述当前转发面上传输的所述业务信 息的转发规则;
所述第二发送模块, 用于向所述至少一个待切换转发面发送携带所述主 转发面流表的启动命令。
在第四个方面的第四种可能的实现方式中, 所述控制器还包括: 获取模块, 用于获取转发面的主从关系;
所述选择模块, 用于根据所述获取模块获取的所述主从关系, 从所述当 前转发面的从转发面中选择至少一个转发面作为待切换转发面。
结合第四个方面的第四种可能的实现方式, 在第四个方面的第五种可能 的实现方式中, 所述控制器还包括:
第三发送模块, 用于向所述当前转发面发送迁移命令, 以使所述当前转 发面将整个转发面信息迁移至至少一个所述待切换转发面, 所述整个转发面 信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上传输的 所述业务信息的转发规则。
结合第四个方面的第五种可能的实现方式, 在第四个方面的第六种可能 的实现方式中, 所述第三发送模块, 还用于向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面流表定期备份至至少一个所述待切换转 发面。
结合第四个方面的第四种至第六种中任一种可能的实现方式, 在第四个 方面的第七种可能的实现方式中, 所述获取模块, 用于向所述当前转发面发 送主从配置请求, 接收所述当前转发面发送的主从配置响应。
结合第四个方面的第一种至第六种中任一种可能的实现方式, 在第四个 方面的第八种可能的实现方式中, 所述控制器还包括:
接收模块, 用于接收所述当前转发面发送的转发面切换请求;
所述第一发送模块, 还用于向所述当前转发面发送转发面切换响应。 第五个方面, 本发明实施例提供一种转发面迁移装置, 转发面与控制面 分离, 所述转发面为当前转发面, 所述转发面迁移装置包括:
第一接收模块, 用于接收控制器发送的停止命令; 处理模块, 用于停止所述当前转发面的转发功能, 从而在所述控制器将 通过所述当前转发面传输的业务信息迁移到待切换转发面上后向所述待切换 转发面发送启用命令以完成转发面迁移, 其中, 所述待切换转发面为所述网 关外的其他网关的转发面。
在第五个方面的第一种可能的实现方式中,所述转发面迁移装置还包括: 第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述第一接收模块, 用于接收所述控制器发送的停止使用所述主转发面 流表的停止命令。
结合第五个方面的第一种可能的实现方式, 在第五个方面的第二种可能 的实现方式中, 所述第二接收模块, 还用于接收所述网络控制器发送的更新 的主转发面流表。
在第五个方面的第三种可能的实现方式中, 所述第一接收模块, 用于接 收携带主转发面流表删除信息的停止命令。
在第五个方面的第四种可能的实现方式中,所述转发面迁移装置还包括: 第二接收模块, 用于接收所述控制器发送的迁移命令, 将整个转发面信 息迁移至至少一个待切换转发面, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。
结合第五个方面的第四种可能的实现方式, 在第五个方面的第五种可能 的实现方式中, 所述第二接收模块, 还用于接收所述控制器发送的备份指令; 所述处理模块, 还用于定期切换至所述至少一个待切换转发面, 以将所 述整个转发面信息定期备份至所述至少一个待切换转发面。
结合第五个方面的第四种或第五种可能的实现方式, 在第五个方面的第 六种可能的实现方式中, 还包括第一发送模块;
所述第一接收模块, 还用于接收所述控制器发送的主从配置请求; 所述第一发送模块, 用于向所述控制器发送主从配置响应。
结合第五个方面的第一种至第五种中任一种可能的实现方式, 在第五个 方面的第七种可能的实现方式中, 还包括第二发送模块;
所述第二发送模块, 用于向所述控制器发送转发面切换请求;
所述第一接收模块, 用于接收所述控制器发送的转发面切换响应。 第六个方面, 本发明实施例提供一种转发面迁移装置, 转发面与控制面 分离, 所述转发面为待切换转发面, 所述转发面迁移装置包括:
第一接收模块, 用于接收控制器发送的启用命令;
处理模块, 用于启用所述待切换转发面的转发功能, 从而在所述控制器 将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上并向当前 转发面发送停止命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进 行转发面迁移的网关的转发面。
在第六个方面的第一种可能的实现方式中, 该装置还包括:
第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述第一接收模块, 用于接收所述控制器发送的启用所述主转发面流表 的启用命令。
结合第六个方面的第一种可能的实现方式, 在第六个方面的第二种可能 的实现方式中, 所述第一接收模块, 还用于接收所述控制器发送的更新的主 转发流表。
在第六个方面的第三种可能的实现方式中, 所述第一接收模块, 还用于 接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流表为 所述当前转发面上传输的所述业务信息的转发规则。
在第六个方面的第四种可能的实现方式中, 所述处理模块, 用于在所述 当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前控制器通过 切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。
第七个方面, 本发明实施例还提供一种网关, 包括如第五个方面、 第五 个方面的第一种至第七种中任一种转发面迁移装置, 和 /或, 第六个方面、 第 六个方面的第一种至第四种中任一种转发面迁移装置。
第八个方面, 本发明实施例提供一种控制器, 包括: 处理器和存储器, 所述存储器存储执行指令, 当所述控制器运行时, 所述处理器与所述存储器 之间通信,所述处理器执行所述执行指令使得所述控制器执行如第一个方面、 第一个方面的第一种至第八种中任一种可能的实现方式。
第九个方面, 本发明实施例提供一种网关, 包括: 处理器和存储器, 所 述存储器存储执行指令, 当所述网关运行时, 所述处理器与所述存储器之间 通信, 所述处理器执行所述执行指令使得所述网关执行如第二个方面、 第二 个方面的第一种至第七种中任一种可能的实现方式, 和 /或, 第三个方面、 第 三个方面的第一种至第四种中任一种可能的实现方式。
本发明实施例提供的转发面迁移方法、 控制器及网关, 控制器通过选择 待切换转发面, 向当前转发面发送停止命令的同时向待切换转发面发送启用 命令, 从而对转发面的迁移进行控制, 实现了控制面和转发面分离的网络架 构中转发面的单独迁移。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为本发明转发面迁移方法实施例一的流程图;
图 2为本发明转发面迁移方法实施例二的流程图;
图 3为本发明转发面迁移方法实施例三的流程图;
图 4为本发明转发面迁移方法实施例四的信令图;
图 5为本发明转发面迁移方法实施例五的信令图;
图 6为本发明转发面迁移方法实施例六的信令图;
图 7为本发明转发面迁移方法实施例七的信令图;
图 8为本发明转发面迁移方法实施例八的信令图;
图 9为本发明控制器实施例一的结构示意图;
图 10为本发明控制器实施例二的结构示意图;
图 1 1为本发明迁移面转发装置实施例一的结构示意图;
图 12为本发明转发面迁移装置实施例二的结构示意图;
图 13为本发明迁移面转发装置实施例三的结构示意图;
图 14为本发明转发面迁移装置实施例四的结构示意图;
图 15为本发明控制器实施例三的结构示意图; 图 16为本发明控网关的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然,所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明转发面迁移方法实施例一的流程图。本实施例的执行主 体为控制器, 适用于控制面和转发面分离的网络架构中, 需要对转发面单独 进行迁移的场景。 具体的, 本实施例包括如下歩骤:
101、 选择待切换转发面。
当将 SDN架构引入到 SAE网络时, 可以将网关的控制面和转发面进行 分离, 分离得到的控制面与 MME的控制功能形成独立的控制面, 分离得到 的转发面形成独立的转发面, 其中, 网关例如可以是用于完成分组数据的转 发和路由的 S-GW, 或者是连接外部数据网的 P-GW, 甚至是 S-GW与 P-GW 合一部署的网关。 本实施例中, 将需要进行转发面迁移的网关的转发面称之 为当前转发面, 将最终切换至的网关的转发面称之为待切换转发面, 转发面 迁移的过程即为将业务信息从当前转发面迁移至待切换转发面的过程。
本歩骤中, 当确定出需要进行转发面迁移时, 例如, 当业务信息繁重, 当前转发面确定需要对部分业务或所有业务进行转发面迁移时; 或者, 在需 要实现业务倒换、 热备份等功能时, 控制器选择待切换转发面, 该待切换转 发面可以为一个或多个。
102、 向当前转发面发送停止命令。
103、将通过当前转发面传输的业务信息迁移到待切换转发面上后, 向待 切换转发面发送启用命令以完成转发面的迁移。
歩骤 102与 103中, 在选择出待切换转发面后, 控制器向当前转发面发 送停止命令, 使得当前转发面停止部分或全部业务信息的传输, 同时, 控制 器向待切换转发面发送启用命令, 使得待切换转发面开始对迁移过来的部分 或全部业务信息进行传输。 本发明实施例的提供的转发面迁移方法,控制器通过选择待切换转发面, 向当前转发面发送停止命令的同时向待切换转发面发送启用命令, 从而对转 发面的迁移进行控制, 实现了控制面和转发面分离的网络架构中转发面的单 独迁移。
图 2为本发明转发面迁移方法实施例二的流程图。本实施例的执行主 体为网关, 具体为转发面与控制面分离, 且转发面为当前转发面的网关, 适 用于对转发面单独进行迁移的场景。 具体的, 本实施例包括如下歩骤:
201、 接收控制器发送的停止命令。
本实施例中, 关于当前转发面、 待切换转发面、 转发面迁移等的相关概 念, 可参见图 1实施例, 此处不再赘述。
202、停止当前转发面的转发功能, 从而在控制器将通过当前转发面传输 的业务信息迁移到待切换转发面上后向待切换转发面发送启用命令以完成转 发面迁移, 其中, 待切换转发面为网关外的其他网关的转发面。
在接收到停止命令后, 当前转发面停止部分或全部业务信息的传输, 从而在控制器向待切换转发面发送启用命令后, 将通过当前转发面传输的部 分或全部业务信息迁移到待切换转发面上。
本发明实施例提供的转发面迁移方法, 需要进行转发面迁移的当前转发 面, 通过接收控制器发送的停止命令, 在控制器选择待切换转发面并启用待 切换转发面后, 停止部分或全部业务信息的转发功能, 从而在控制器的控制 下, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。
图 3为本发明转发面迁移方法实施例三的流程图。本实施例的执行主 体为网关, 具体为转发面与控制面分离, 且转发面为待切换转发面的网关, 适用于对需要迁移的转发面单独进行迁移的场景。 具体的, 本实施例包括如 下歩骤:
301、 接收控制器发送的启用命令。
本实施例中, 关于当前转发面、 待切换转发面、 转发面迁移等的相关概 念, 可参见图 1实施例, 此处不再赘述。
302、启用待切换转发面的转发功能, 从而在控制器将通过当前转发面传 输的业务信息迁移到待切换转发面上并向当前转发面发送停止命令后, 完成 转发面迁移, 其中, 当前转发面为需要进行转发面迁移的网关的转发面。 在接收到启用命令后, 待切换转发面启用转发功能, 对当前转发面传输 的部分或全部业务信息进行传输。
本发明实施例提供的转发面迁移方法, 被选定的待切换转发面通过接收 控制器发送的启用命令, 启用转发功能对当前转发面传输的部分或全部业务 信息进行传输, 从而在控制器的控制下, 实现了控制面和转发面分离的网络 架构中转发面的单独迁移。
上述图 1、 图 2与图 3分别站在控制器、 当前转发面、 待切换转发面的 角度上对本发明进行了阐述, 下面, 从三者的交互过程对本发明进行详细说 明。
图 4为本发明转发面迁移方法实施例四的信令图。 本实施例中, 控制器 在向当前转发面发送业务信息的同时, 也向待切换转发面发送该业务信息。 具体的, 本实施例包括如下歩骤:
401、 控制器为当前转发面选择至少一个待切换转发面。
本歩骤中, 对于当前转发面, 控制器为其选择至少一个备用的待切换转 发面。
402、 控制器向当前转发面与至少一个待切换转发面发送主转发面流表。 SDN 网络中, 控制器通过查询交换机的流表 (flowtable) 进行包查找和 转发, 流表由很多个流表项组成, 每个流表项就是一个转发规则。 流表包括 匹配域字段 (match field) 、 计数器(counters) 和指令集 ( instructions) , 不 同的厂商可以根据各自的需求设计功能各异的流表。 控制器通过对流表进行 控制从而实现对整个网络的集中控制。
将 SDN网络架构引入到 SAE网络后, 业务信息, 如分组数据等通过网 关进行转发, 每个业务信息都有自己的流表。 本歩骤中, 控制器向当前转发 面与至少一个待切换转发面发送主转发面流表, 该主转发面流表为当前转发 面上传输的业务信息的转发规则, 例如, 是部分业务信息各自对应的流表; 或整儿当前转发面上所有业务信息各自对应的流表。 后续过程中, 发送给当 前转发面的主转发面流表, 都需要发送给待切换转发面, 即对当前转发面新 增流表、 修改流表和删除流表等操作, 都需要同歩备份到待切换转发面上。 具体的, 本歩骤包括如下子歩骤:
4021、 控制器向当前转发面发送主转发面流表; 4022、 控制器向待切换转发面发送主转发流表。
需要说明的是, 本歩骤中待切换转发面可以为多个, 而图中仅示出一个。
403、 设置流表状态。
具体的, 本歩骤包括如下歩骤:
4031、 将当前转发面的主转发面流表设置为活动 (active) 状态;
4032、 将待切换转发面的主转发面流表设置为非活动 (inactive) 状态。
404、 用户通过当前转发面进行数据传输。
405、 确定需要对当前转发面进行迁移。
是否需要对当前转发面进行迁移, 可由控制器确定; 或者, 由当前转发 面进行确定。 具体的, 本歩骤包括如下可选子歩骤:
4051、 控制器确定需要对转发面进行迁移;
4052、 当前转发面确定需要对转发面进行迁移。
本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 408; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 406。
406、 当前转发面向控制器发送转发面切换请求。
407、 控制器向当前转发面发送转发面切换响应。
408、 控制器向当前转发面发送停止使用主转发面流表的停止命令。
本歩骤中, 控制器通过发送停止命令, 显示的告知当前转发面停止使用 主转发面流表, 若该主转发面流表是所有业务信息对应的流表的组合, 则当 前转发面停止转发功能。
可选的, 当前转发面也可以在接收到转发面切换响应后停止转发功能。
409、 控制器向待切换转发面发送启用主转发面流表的启用命令。
控制器向待切换转发面发送启用命令, 指示待切换转发面启用与当前转 发面同歩的主转发面流表。
410、 设置流表状态。
上述歩骤 408与 409中, 控制器向当前转发面发送停止命令, 指示当前 转发面的信息已经迁移完毕; 向待切换转发面发送启用命令, 指示待切换转 发面启用主转发面流表。 具体的, 本歩骤包括如下歩骤:
4101、 将当前转发面的主转发面流表设置为待机 (standby) 状态; 4102、 将待切换转发面的主转发面流表设置为活动 (active) 状态。
此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。
图 5为本发明转发面迁移方法实施例五的信令图。 本实施例在上述实施 例四的基础上引入了当当前转发面的主转发面流表进行更新后, 需要控制器 将更新的主转发面流表同歩更新到待切换转发面的过程。 具体的, 本实施例 包括如下歩骤:
501、 控制器为当前转发面选择至少一个待切换转发面。
502、 控制器向当前转发面与至少一个待切换转发面发送主转发面流表。 具体的, 本歩骤包括如下子歩骤:
5021、 控制器向当前转发面发送主转发面流表;
5022、 控制器向待切换转发面发送主转发流表。
503、 设置流表状态。
具体的, 本歩骤包括如下歩骤:
5031、 将当前转发面的主转发面流表设置为活动 (active) 状态;
5032、 将待切换转发面的主转发面流表设置为非活动 (inactive) 状态。
504、 用户通过当前转发面进行数据传输。
上述歩骤 501〜504, 请参数图 4实施例中歩骤 401〜404, 此处不再赘述。
5a、 控制器与当前转发面进行状态信息交互。
若当前转发面上的业务信息有更新, 且该更新的业务信息为需要迁移到 待切换转发面的业务信息, 则控制器与当前转发面进行状态信息的交互, 对 当前转发面上的业务信息进行更新, 并对主转发面流表进行更新。
5b、 控制器向当前转发面发送更新的主转发面流表;
5c、 控制器向待切换转发面发送更新的主转发面流表。
通过歩骤 5a〜5c, 可保持当前转发面与待切换转发面之间的业务信息同 歩、 需要迁移的业务信息的主转发面流表同歩, 防止流表发生变更的情况。
505、 确定需要对当前转发面进行迁移。
具体的, 本歩骤包括如下可选子歩骤:
5051、 控制器确定需要对转发面进行迁移;
5052、 当前转发面确定需要对转发面进行迁移。 本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 508; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 506。
506、 当前转发面向控制器发送转发面切换请求。
507、 控制器向当前转发面发送转发面切换响应。
508、 控制器向当前转发面发送停止使用更新的主转发面流表的停止命
509、 控制器向待切换转发面发送启用更新的主转发面流表的启用命令。 控制器向待切换转发面发送启用命令, 指示待切换转发面启用与当前转 发面同歩的、 更新的主转发面流表。
510、 设置流表状态。
具体的, 本歩骤包括如下歩骤:
5101、 将当前转发面更新的主转发面流表设置为待机 (standby) 状态;
5102、 将待切换转发面更新的主转发面流表设置为活动 (active) 状态。 此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。
图 6为本发明转发面迁移方法实施例六的信令图。 与上述实施例四与实 施例五不同的是, 图 4所示实施例四与图 5所示实施例五中, 控制器在向当 前转发面发送业务信息的同时, 也向待切换转发面发送该业务信息, 而本实 施例中, 只有在当前转发面需要进行迁移的时候, 控制器才会将业务信息发 送给待切换转发面。 具体的, 本实施例包括如下歩骤:
601、 设置流表状态。
本实施例中, 各个转发面之间没有明显的主从关系, 每个转发面对通过 其传输的业务信息提供转发功能。 通过当前转发面传输的业务信息的主转发 面流表仅保存在当前转发面上, 其他转发面上未保存主转发面流表, 而仅保 存自身相关业务的一个或多个流表。 具体的, 本歩骤包括如下歩骤:
6011、 将当前转发面的主转发面流表设置为活动 (active) 状态;
6012、 将待切换转发面自身相关业务的一个或多个流表设置为活动 ( active ) 状态。
602、 确定需要对当前转发面进行迁移。 是否需要对当前转发面进行迁移, 可由控制器确定; 或者, 由当前转发 面进行确定。 具体的, 本歩骤包括如下可选子歩骤:
6021、 控制器确定需要对转发面进行迁移;
6022、 当前转发面确定需要对转发面进行迁移。
本歩骤中, 若需要对当前转发面进行迁移是由控制器确定的, 则执行歩 骤 605 ; 否则, 若需要对当前转发面进行迁移是由当前转发面确定的, 则执 行歩骤 603。
603、 当前转发面向控制器发送转发面切换请求。
604、 控制器向当前转发面发送转发面切换响应。
605、 控制器为当前转发面选择至少一个待切换转发面。
606、 控制器向当前转发面发送携带主转发面流表删除信息的停止命令。 控制器向当前转发面发送停止命令, 该停止命令携带主转发面流表删除 信息, 当前转发面根据该主转发面流表删除信息, 对流表进行删除, 即删除 需要进行迁移的业务信息对应的流表。
607、 控制器向待切换转发面发送携带主转发面流表的启动命令。
控制器将当前转发面的部分或全部业务信息的流表, 即主转发面流表携 带在启动命令中发送给待切换转发面, 该主转发面流表可以为一个或多个。
608、 控制器设置流表状态。
具体的, 本歩骤包括如下歩骤:
6081、 将当前转发面的主转发面流表设置为待机 (standby) 状态;
6082、 将待切换转发面的主转发面流表设置为活动 (active) 状态。
此后, 当前转发面进入挂起状态 (可以停机) , 而由一个或多个待切换 转发面来完成当前转发面的转发功能, 从而完成转发面的迁移过程。
上述图 4所示实施例四、 图 5所示实施例五及图 6所示实施例中, 将通 过当前转发面进行传输的部分或全部业务信息的流表及相关信息迁移至待切 换转发面, 从而实现转发面的迁移。 然而, 当待切换转发面采用虚拟机实现 时, 需要将当前转发面的整个转发面信息迁移至待切换转发面。 其中, 整个 转发面信息至少包括主转发面流表、 当前转发面运行的环境信息等。 下面, 再用两个待切换转发面采用虚拟机实现的实施例对本发明进行详细说明, 具 体的, 请参见图 7与图 8。 图 7为本发明转发面迁移方法实施例七的信令图。 本实施例中, 待切换 转发面采用虚拟机实现, 各个转发面之间有明确的主从关系, 在当前转发面 需要进行迁移的时候, 控制器、 当前转发面与待切换转发面进行信令交互, 从而将整个转发面信息迁移至待切换转发面。
以下为描述清楚起见, 将当前转发面称之为主(master)转发面, 将待切 换转发面称之为从 (slave) 转发面。
具体的, 本实施例包括如下歩骤:
701、 控制器获取转发面的主从关系。
转发面的主从关系可以由控制器设置, 或者由第三方如操作维护*** ( Operation and Maintenance System, OAS )进行设置并保存在各个转发面上。
本歩骤中, 若主从关系是由控制器设置的, 则设置主从关系后, 执行歩 骤 704; 否则, 若主从关系是由第三方设置的, 则执行歩骤 702。
702、 控制器向主转发面发送主从配置请求。
703、 控制器接收主转发面发送的主从配置响应。
该主从配置响应携带主转发面的从转发面的相关信息。
704、 确定需要对主转发面进行迁移。
控制器确定是否需要对主转发面进行迁移。
需要说明的是, 是否需要对主转发面进行迁移, 也可由主转发面自身进 行确定, 具体可参见图 4实施例四, 此处不再赘述。
705、 控制器为主转发面选择至少一个待切换转发面。
具体的, 控制器根据主从关系, 从主转发面的从转发面中选择至少一个 转发面作为待切换转发面。
706、 控制器向主转发面发送迁移命令。
控制器向主转发面发送切换命令, 使主转发面通过切换方式切换至从转 发面, 即将整个转发面信息迁移至至少一个从转发面, 该整个转发面信息至 少包括主转发面流表, 主转发面流表为当前转发面上传输的业务信息的转发 规则。
707、 主转发面将整个转发面信息迁移至从转发面。
708、 从转发存储面整个转发面信息。
本歩骤中, 在主转发面接收到控制器发送的迁移命令后, 从转发面保存 主转发面通过切换方式迁移的整个转发面信息, 其中, 整个转发面信息至少 包括主转发面流表,主转发面流表为主转发面上传输的业务信息的转发规则。
709、 控制器设置流表状态。
具体的, 本歩骤包括如下歩骤:
7091、 将主转发面的主转发面流表设置为待机 (standby) 状态;
7092、 将从转发面的主转发面流表设置为活动 (active) 状态。
此后, 从转发面进入挂起状态 (可以停机) , 而由一个或多个从转发面 来完成主转发面的转发功能, 从而完成转发面的迁移过程。
图 8为本发明转发面迁移方法实施例八的信令图。 本实施例在上述实施 例七的基础上, 引入了定期备份的过程。 具体的, 本实施例包括如下歩骤:
801、 控制器获取转发面的主从关系。
802、 控制器向主转发面发送主从配置请求。
803、 控制器接收主转发面发送的主从配置响应。
上述歩骤 801〜803可参见图 7实施例七的歩骤 701〜703, 此处不再赘述。 8a、 控制器向主转发面发送备份命令。
本歩骤中, 控制器定期向主转发面发起备份命令, 指示主转发面定期在 从转发面上做备份。
8b、 主转发面定期切换至待切换转发面。
本歩骤中, 主转发面定期切换至至少一个待切换转发面, 通过定期在线 迁移但不切换, 从而将整个转发面信息定期备份至至少一个待切换转发面。
8c、 从转发面定期备份整个转发面信息。
804、 确定需要对主转发面进行迁移。
805、 控制器为主转发面选择至少一个待切换转发面。
806、 控制器向主转发面发送停止命令。
控制器向主转发面发送停止命令, 使得主转发面对全部或部分业务信息 停止转发功能。
807、 控制器向从转发面发送启用命令。
808、 控制器设置流表状态。
具体的, 本歩骤包括如下歩骤:
8081、 将主转发面的主转发面流表设置为待机 (standby) 状态; 8082、 将从转发面的主转发面流表设置为活动 (active) 状态。
此后, 从转发面进入挂起状态 (可以停机) , 而由一个或多个从转发面 来完成主转发面的转发功能, 从而完成转发面的迁移过程。
需要说明的是, 上述图 4、 图 5与图 6所示实施例中, 仅需要对业务相 关信息进行迁移从而实现转发面的迁移, 而图 7与图 8所示实施例中, 对于 待切换转发面采用虚拟机实现的场景,需要将当前转发面的整个转发面信息, 如主转发面流表、 当前转发面的运行环境等都迁移至从转发面, 即待切换转 发面。 由于整个转发面信息比较庞大, 因此, 相对于图 7与图 8所示实施例, 图 4、 图 5与图 6所示实施例能够减少转发面迁移过程中的时延。
图 9为本发明控制器实施例一的结构示意图, 本实施例提供的控制器是 与本发明图 1实施例对应的装置实施例, 具体实现过程在此不再赘述。 具体 的, 本实施例提供的控制器 100具体包括:
选择模块 11, 用于选择待切换转发面;
第一发送模块 12, 用于向当前转发面发送停止命令;
迁移模块 13,用于将通过当前转发面传输的业务信息迁移到选择模块 11 选择的待切换转发面上;
第二发送模块 13, 还用于在迁移模块 13将通过当前转发面传输的业务 信息迁移到选择模块 11选择的待切换转发面上后, 向待切换转发面发送启用 命令以完成转发面的迁移。
本发明实施例提供的控制器, 通过选择待切换转发面, 向当前转发面发 送停止命令的同时向待切换转发面发送启用命令, 从而对转发面的迁移进行 控制, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。
图 10为本发明控制器实施例二的结构示意图。 如图 10所示, 本实施例 的控制器 200在图 9装置结构的基础上, 进一歩的, 还包括: 第三发送模块 15和处理模块 16;
选择模块 11, 用于为当前转发面选择至少一个待切换转发面;
第三发送模块 15, 用于向当前转发面与至少一个待切换转发面发送主转 发面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则;
处理模块 16, 用于将至少一个待切换转发面上的主转发面流表设置为 非活动状态; 第一发送模块 12, 用于向当前转发面发送停止使用主转发面流表的停 止命令;
第二发送模块 13, 用于向至少一个待切换转发面发送启用主转发面流表 的启用命令。
进一歩的, 第三发送模块 15, 还用于向当前转发面与至少一个待切换转 发面发送更新的主转发面流表。
进一歩的,选择模块 11,用于为当前转发面选择至少一个待切换转发面; 第一发送模块 12, 用于向当前转发面发送携带主转发面流表删除信息的 停止命令, 主转发面流表为当前转发面上传输的业务信息的转发规则;
第二发送模块 13, 用于向至少一个待切换转发面发送携带主转发面流表 的启动命令。
再请参照图 10, 控制器 200还包括:
获取模块 17, 用于获取转发面的主从关系;
选择模块 11, 用于根据获取模块 17获取的主从关系, 从当前转发面的 从转发面中选择至少一个转发面作为待切换转发面。
再请参照图 10, 控制器 200还包括:
第三发送模块 15, 用于向当前转发面发送迁移命令, 以使当前转发面将 整个转发面信息迁移至至少一个待切换转发面, 整个转发面信息至少包括主 转发面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则。
进一歩的, 第三发送模块 15, 还用于向当前转发面发送备份命令, 以使 当前转发面将主转发面流表定期备份至至少一个待切换转发面。
进一歩的, 获取模块 17, 用于向当前转发面发送主从配置请求, 接收当 前转发面发送的主从配置响应。
再请参照图 10, 控制器 200还包括: 接收模块 18, 用于接收当前转发面 发送的转发面切换请求;
第一发送模块 12, 还用于向当前转发面发送转发面切换响应。
图 11为本发明迁移面转发装置实施例一的结构示意图,本实施例提供的 迁移面转发装置是与本发明图 2实施例对应的装置实施例, 具体实现过程在 此不再赘述。 具体的, 本实施例提供的迁移面转发装置 300, 转发面与控制 面分离, 转发面为当前转发面, 转发面迁移装置 300包括: 第一接收模块 21, 用于接收控制器发送的停止命令;
处理模块 22, 用于停止当前转发面的转发功能, 从而在控制器将通过当 前转发面传输的业务信息迁移到待切换转发面上后向待切换转发面发送启用 命令以完成转发面迁移, 其中, 待切换转发面为网关外的其他网关的转发面。
本发明实施例提供的转发面迁移装置, 需要进行转发面迁移的当前转发 面, 通过接收控制器发送的停止命令, 在控制器选择待切换转发面并启用待 切换转发面后, 停止部分或全部业务信息的转发功能, 从而在控制器的控制 下, 实现了控制面和转发面分离的网络架构中转发面的单独迁移。
图 12为本发明转发面迁移装置实施例二的结构示意图,本实施例的转发 面迁移装置 400在图 11所示装置的基础上, 还包括:
第二接收模块 23, 用于接收控制器发送的主转发面流表, 主转发面流表 为当前转发面上传输的业务信息的转发规则;
第一接收模块 21, 用于接收控制器发送的停止使用主转发面流表的停止 进一歩的, 第二接收模块 23, 还用于接收网络控制器发送的更新的主转 发面流表。
进一歩的, 第一接收模块 21, 用于接收携带主转发面流表删除信息的停 止命令。
进一歩的, 第二接收模块 23, 用于接收控制器发送的迁移命令, 将整个 转发面信息迁移至至少一个待切换转发面, 整个转发面信息至少包括主转发 面流表, 主转发面流表为当前转发面上传输的业务信息的转发规则。
进一歩的, 第二接收模块 23, 还用于接收控制器发送的备份指令; 处理模块 22, 还用于定期切换至至少一个待切换转发面, 以将整个转发 面信息定期备份至至少一个待切换转发面。
再请参照图 12, 转发面迁移装置 400还包括第一发送模块 24;
第一接收模块 21, 还用于接收控制器发送的主从配置请求;
第一发送模块 24, 用于向控制器发送主从配置响应。
再请参照图 12, 转发面迁移装置 400还包括第二发送模块 25;
第二发送模块 25, 用于向控制器发送转发面切换请求;
第一接收模块 21, 用于接收控制器发送的转发面切换响应。 图 13为本发明迁移面转发装置实施例三的结构示意图,本实施例提供的 迁移面转发装置是与本发明图 3实施例对应的装置实施例, 具体实现过程在 此不再赘述。 具体的, 本实施例提供的迁移面转发装置 500, 转发面与控制 面分离, 转发面为待切换转发面, 转发面迁移装置 500包括:
第一接收模块 31, 用于接收控制器发送的启用命令;
处理模块 32,用于启用待切换转发面的转发功能,从而在控制器将通过 当前转发面传输的业务信息迁移到待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 当前转发面为需要进行转发面迁移的网关 的转发面。
本发明实施例提供的转发面迁移装置, 被选定的待切换转发面通过接收 控制器发送的启用命令, 启用转发功能对当前转发面传输的部分或全部业务 信息进行传输, 从而在控制器的控制下, 实现了控制面和转发面分离的网络 架构中转发面的单独迁移。
图 14为本发明转发面迁移装置实施例四的结构示意图,本实施例的转发 面迁移装置 600在图 13所示装置的基础上, 还包括:
第二接收模块 33, 用于接收控制器发送的主转发面流表, 主转发面流表 为当前转发面上传输的业务信息的转发规则;
第一接收模块 31,用于接收控制器发送的启用主转发面流表的启用命令。 进一歩的, 第一接收模块 31, 还用于接收控制器发送的更新的主转发流 表。
进一歩的, 第一接收模块 31, 还用于接收控制器发送的携带主转发面流 表的启动命令, 主转发面流表为当前转发面上传输的业务信息的转发规则。
进一歩的, 处理模块 32, 用于在当前转发面接收到控制器发送的迁移命 令后, 保存当前控制器通过切换方式迁移的整个转发面信息, 整个转发面信 息至少包括主转发面流表, 主转发面流表为当前转发面上传输的业务信息的 转发规则。
本发明实施例还提供一种网关, 包括如图 1 1或图 12所示的转发面迁移 装置, 和 /或, 如图 13或图 14所述的转发面迁移装置, 具体实现过程此处不 再赘述。
图 15为本发明控制器实施例三的结构示意图。 如图 15所述, 本实施例 提供的控制器 700包括处理器 71和存储器 72。 控制器 700还可以包括发射 器 73、 接收器 74。 发射器 73和接收器 74可以和处理器 71相连。 其中, 存 储器 72存储执行指令, 当控制器 700运行时, 处理器 71与存储器 72之间通 信, 处理器 71调用存储器 72中的执行指令, 用于执行图 1所示方法实施例, 其实现原理和技术效果类似, 此处不再赘述。
图 16为本发明控网关的结构示意图。 如图 16所述, 本实施例提供的网 关 800包括处理器 81和存储器 82。 网关 800还可以包括发射器 83、 接收器 84。 发射器 83和接收器 84可以和处理器 81相连。 其中, 存储器 82存储执 行指令, 当网关 800运行时, 处理器 81与存储器 82之间通信, 处理器 81调 用存储器 82中的执行指令, 用于执行图 2, 和 /或, 图 3所示方法实施例, 其 实现原理和技术效果类似, 此处不再赘述。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分歩骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的歩骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种转发面迁移方法, 其特征在于, 包括:
选择待切换转发面;
向当前转发面发送停止命令;
将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上后, 向所述待切换转发面发送启用命令以完成转发面的迁移。
2、 根据权利要求 1所述的方法, 其特征在于, 所述选择待迁移转发面, 包括:
为所述当前转发面选择至少一个待切换转发面;
所述选择待切换转发面之后, 向当前转发面发送停止命令之前, 还包括: 向所述当前转发面与所述至少一个待切换转发面发送主转发面流表, 所 述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则;
将所述至少一个待切换转发面上的主转发面流表设置为非活动状态; 所述向当前转发面发送停止命令, 包括:
向所述当前转发面发送停止使用所述主转发面流表的停止命令; 所述向所述待切换转发面发送启用命令, 包括:
向所述至少一个待切换转发面发送启用所述主转发面流表的启用命令。
3、 根据权利要求 2所述的方法, 其特征在于, 所述向所述当前转发面与 所述至少一个待切换转发面发送主转发面流表之后,将所述至少一个待切换 转发面上的主转发面流表设置为非活动状态之前, 还包括:
向所述当前转发面与所述至少一个待切换转发面发送更新的主转发面流 表。
4、 根据权利要求 1所述的方法, 其特征在于, 所述选择待迁移转发面, 包括:
为所述当前转发面选择至少一个待切换转发面;
所述向当前转发面发送停止命令, 包括:
向所述当前转发面发送携带主转发面流表删除信息的停止命令, 所述主 转发面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述向所述待切换转发面发送启用命令, 包括:
向所述至少一个待切换转发面发送携带所述主转发面流表的启动命令。
5、 根据权利要求 1所述的方法, 其特征在于, 所述选择待切换转发面之 前, 还包括:
获取转发面的主从关系;
所述选择待切换转发面, 包括:
根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发 面作为待切换转发面。
6、 根据权利要求 5所述的方法, 其特征在于, 所述根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发面作为待切换转发面之 后, 向当前转发面发送停止命令之前, 还包括:
向所述当前转发面发送迁移命令, 以使所述当前转发面将整个转发面信 息迁移至至少一个所述待切换转发面, 所述整个转发面信息至少包括主转发 面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转发 规则。
7、 根据权利要求 6所述的方法, 其特征在于, 所述根据所述主从关系, 从所述当前转发面的从转发面中选择至少一个转发面作为待切换转发面之 后, 向所述当前转发面发送迁移命令之前, 还包括:
向所述当前转发面发送备份命令, 以使所述当前转发面将所述主转发面 流表定期备份至至少一个所述待切换转发面。
8、 根据权利要求 5〜7任一项所述的方法, 其特征在于, 所述获取转发面 的主从关系, 包括:
向所述当前转发面发送主从配置请求;
接收所述当前转发面发送的主从配置响应。
9、 根据权利要求 2〜7任一项所述的方法, 其特征在于, 所述选择待切换 转发面之后, 向当前转发面发送停止命令之前, 还包括:
接收所述当前转发面发送的转发面切换请求;
向所述当前转发面发送转发面切换响应。
10、 一种转发面迁移方法, 其特征在于, 适用于转发面与控制面分离的 网关, 所述转发面为当前转发面, 所述方法包括:
接收控制器发送的停止命令;
停止所述当前转发面的转发功能, 从而在所述控制器将通过所述当前转 发面传输的业务信息迁移到待切换转发面上后向所述待切换转发面发送启用 命令以完成转发面迁移, 其中, 所述待切换转发面为所述网关外的其他网关 的转发面。
11、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令之前, 还包括:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;
所述接收控制器发送的停止命令, 包括:
接收所述控制器发送的停止使用所述主转发面流表的停止命令。
12、 根据权利要求 11所述的方法, 其特征在于, 所述接收所述控制器发 送的主转发面流表之后, 接收控制器发送的停止命令之前, 还包括:
接收所述网络控制器发送的更新的主转发面流表。
13、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令, 包括:
接收携带主转发面流表删除信息的停止命令。
14、 根据权利要求 10所述的方法, 其特征在于, 所述接收控制器发送的 停止命令之前, 还包括:
接收所述控制器发送的迁移命令, 将整个转发面信息迁移至至少一个待 切换转发面, 所述整个转发面信息至少包括主转发面流表, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。
15、 根据权利要求 14所述的方法, 其特征在于, 所述接收所述控制器发 送的迁移命令之后, 接收控制器发送的停止命令之前, 还包括:
接收所述控制器发送的备份指令;
定期切换至所述至少一个待切换转发面, 以将所述整个转发面信息定期 备份至所述至少一个待切换转发面。
16、 根据权利要求 14或 15所述的方法, 其特征在于, 所述接收所述控 制器发送的迁移命令之前, 还包括:
接收所述控制器发送的主从配置请求;
向所述控制器发送主从配置响应。
17、 根据权利要求 11〜15任一项所述的方法, 其特征在于, 所述接收控 制器发送的停止命令之前, 还包括:
向所述控制器发送转发面切换请求;
接收所述控制器发送的转发面切换响应。
18、 一种转发面迁移方法, 其特征在于, 适用于转发面与控制面分离的 网关, 所述转发面为待切换转发面, 所述方法包括:
接收控制器发送的启用命令;
启用所述待切换转发面的转发功能, 从而在所述控制器将通过所述当前 转发面传输的业务信息迁移到所述待切换转发面上并向当前转发面发送停止 命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进行转发面迁移的 网关的转发面。
19、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令之前, 还包括:
接收所述控制器发送的主转发面流表, 所述主转发面流表为所述当前转 发面上传输的所述业务信息的转发规则;
所述接收控制器发送的启用命令, 包括:
接收所述控制器发送的启用所述主转发面流表的启用命令。
20、 根据权利要求 19所述的方法, 其特征在于, 所述接收所述控制器发 送的主转发面流表之前, 还包括:
接收所述控制器发送的更新的主转发流表。
21、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令, 包括:
接收所述控制器发送的携带主转发面流表的启动命令, 所述主转发面流 表为所述当前转发面上传输的所述业务信息的转发规则。
22、 根据权利要求 18所述的方法, 其特征在于, 所述接收控制器发送的 启用命令之前, 还包括:
在所述当前转发面接收到所述控制器发送的迁移命令后, 保存所述当前 控制器通过切换方式迁移的整个转发面信息, 所述整个转发面信息至少包括 主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业务信息 的转发规则。
23、 一种控制器, 其特征在于, 包括: 选择模块, 用于选择待切换转发面;
第一发送模块, 用于向当前转发面发送停止命令;
迁移模块, 用于将通过所述当前转发面传输的业务信息迁移到所述选择 模块选择的所述待切换转发面上;
第二发送模块, 还用于在所述迁移模块将通过所述当前转发面传输的业 务信息迁移到所述选择模块选择的所述待切换转发面上后, 向所述待切换转 发面发送启用命令以完成转发面的迁移。
24、 根据权利要求 23所述的控制器, 其特征在于, 所述控制器还包括: 第三发送模块和处理模块;
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第三发送模块, 用于向所述当前转发面与所述至少一个待切换转发 面发送主转发面流表, 所述主转发面流表为所述当前转发面上传输的所述业 务信息的转发规则;
所述处理模块, 用于将所述至少一个待切换转发面上的主转发面流表 设置为非活动状态;
所述第一发送模块,用于向所述当前转发面发送停止使用所述主转发面 流表的停止命令;
所述第二发送模块, 用于向所述至少一个待切换转发面发送启用所述主 转发面流表的启用命令。
25、 根据权利要求 24所述的控制器, 其特征在于,
所述第三发送模块, 还用于向所述当前转发面与所述至少一个待切换转 发面发送更新的主转发面流表。
26、 根据权利要求 23所述的控制器, 其特征在于,
所述选择模块, 用于为所述当前转发面选择至少一个待切换转发面; 所述第一发送模块, 用于向所述当前转发面发送携带主转发面流表删除 信息的停止命令, 所述主转发面流表为所述当前转发面上传输的所述业务信 息的转发规则;
所述第二发送模块, 用于向所述至少一个待切换转发面发送携带所述主 转发面流表的启动命令。
27、 根据权利要求 23所述的控制器, 其特征在于, 所述控制器还包括: 获取模块, 用于获取转发面的主从关系;
所述选择模块, 用于根据所述获取模块获取的所述主从关系, 从所述当 前转发面的从转发面中选择至少一个转发面作为待切换转发面。
28、 根据权利要求 27所述的控制器, 其特征在于, 所述控制器还包括: 第三发送模块, 用于向所述当前转发面发送迁移命令, 以使所述当前转 发面将整个转发面信息迁移至至少一个所述待切换转发面, 所述整个转发面 信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上传输的 所述业务信息的转发规则。
29、 根据权利要求 28所述的控制器, 其特征在于,
所述第三发送模块, 还用于向所述当前转发面发送备份命令, 以使所述 当前转发面将所述主转发面流表定期备份至至少一个所述待切换转发面。
30、 根据权利要求 27〜29任一项所述的控制器, 其特征在于,
所述获取模块, 用于向所述当前转发面发送主从配置请求, 接收所述当 前转发面发送的主从配置响应。
31、 根据权利要求 24〜29任一项所述的控制器, 其特征在于, 所述控制 器还包括:
接收模块, 用于接收所述当前转发面发送的转发面切换请求;
所述第一发送模块, 还用于向所述当前转发面发送转发面切换响应。
32、 一种转发面迁移装置, 其特征在于, 转发面与控制面分离, 所述转 发面为当前转发面, 所述转发面迁移装置包括:
第一接收模块, 用于接收控制器发送的停止命令;
处理模块, 用于停止所述当前转发面的转发功能, 从而在所述控制器将 通过所述当前转发面传输的业务信息迁移到待切换转发面上后向所述待切换 转发面发送启用命令以完成转发面迁移, 其中, 所述待切换转发面为所述网 关外的其他网关的转发面。
33、 根据权利要求 32所述的转发面迁移装置, 其特征在于, 所述转发面 迁移装置还包括:
第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述第一接收模块, 用于接收所述控制器发送的停止使用所述主转发面 流表的停止命令。
34、 根据权利要求 33所述的转发面迁移装置, 其特征在于,
所述第二接收模块, 还用于接收所述网络控制器发送的更新的主转发面 流表。
35、 根据权利要求 32所述的转发面迁移装置, 其特征在于,
所述第一接收模块, 用于接收携带主转发面流表删除信息的停止命令。
36、 根据权利要求 32所述的转发面迁移装置, 其特征在于, 所述转发面 迁移装置还包括:
第二接收模块, 用于接收所述控制器发送的迁移命令, 将整个转发面信 息迁移至至少一个待切换转发面, 所述整个转发面信息至少包括主转发面流 表,所述主转发面流表为所述当前转发面上传输的所述业务信息的转发规则。
37、 根据权利要求 36所述的转发面迁移装置, 其特征在于,
所述第二接收模块, 还用于接收所述控制器发送的备份指令;
所述处理模块, 还用于定期切换至所述至少一个待切换转发面, 以将所 述整个转发面信息定期备份至所述至少一个待切换转发面。
38、 根据权利要求 36或 37所述的转发面迁移装置, 其特征在于, 还包 括第一发送模块;
所述第一接收模块, 还用于接收所述控制器发送的主从配置请求; 所述第一发送模块, 用于向所述控制器发送主从配置响应。
39、 根据权利要求 33〜37任一项所述的转发面迁移装置, 其特征在于, 还包括第二发送模块;
所述第二发送模块, 用于向所述控制器发送转发面切换请求;
所述第一接收模块, 用于接收所述控制器发送的转发面切换响应。
40、 一种转发面迁移装置, 其特征在于, 转发面与控制面分离, 所述转 发面为待切换转发面, 所述转发面迁移装置包括:
第一接收模块, 用于接收控制器发送的启用命令;
处理模块, 用于启用所述待切换转发面的转发功能, 从而在所述控制器 将通过所述当前转发面传输的业务信息迁移到所述待切换转发面上并向当前 转发面发送停止命令后, 完成转发面迁移, 其中, 所述当前转发面为需要进 行转发面迁移的网关的转发面。
41、 根据权利要求 40所述的转发面迁移装置, 其特征在于, 还包括: 第二接收模块, 用于接收所述控制器发送的主转发面流表, 所述主转发 面流表为所述当前转发面上传输的所述业务信息的转发规则;
所述第一接收模块, 用于接收所述控制器发送的启用所述主转发面流表 的启用命令。
42、 根据权利要求 41所述的转发面迁移装置, 其特征在于, 所述第一接 收模块, 还用于接收所述控制器发送的更新的主转发流表。
43、 根据权利要求 40所述的转发面迁移装置, 其特征在于,
所述第一接收模块, 还用于接收所述控制器发送的携带主转发面流表的 启动命令, 所述主转发面流表为所述当前转发面上传输的所述业务信息的转 发规则。
44、 根据权利要求 40所述的转发面迁移装置, 其特征在于,
所述处理模块, 用于在所述当前转发面接收到所述控制器发送的迁移命 令后, 保存所述当前控制器通过切换方式迁移的整个转发面信息, 所述整个 转发面信息至少包括主转发面流表, 所述主转发面流表为所述当前转发面上 传输的所述业务信息的转发规则。
45、 一种网关, 其特征在于, 包括如权利要求 32〜39任一项所述的迁移 面转发面装置,和 /或,如权利了要求 40〜44任一项所述的迁移面转发面装置。
46、 一种控制器, 其特征在于, 包括: 处理器和存储器, 所述存储器存 储执行指令, 当所述控制器运行时, 所述处理器与所述存储器之间通信, 所 述处理器执行所述执行指令使得所述控制器执行如权利要求 1至 9任一项所 述的方法。
47、 一种网关, 其特征在于, 包括: 处理器和存储器, 所述存储器存储 执行指令, 当所述网关运行时, 所述处理器与所述存储器之间通信, 所述处 理器执行所述执行指令使得所述网关执行如权利要求 10至 17, 和 /或, 如权 利要求 18〜22任一项所述的方法。
PCT/CN2013/086782 2013-11-08 2013-11-08 转发面迁移方法、控制器及网关 WO2015066894A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380003564.4A CN104782173B (zh) 2013-11-08 2013-11-08 转发面迁移方法、控制器及网关
PCT/CN2013/086782 WO2015066894A1 (zh) 2013-11-08 2013-11-08 转发面迁移方法、控制器及网关

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/086782 WO2015066894A1 (zh) 2013-11-08 2013-11-08 转发面迁移方法、控制器及网关

Publications (1)

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

Family

ID=53040792

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086782 WO2015066894A1 (zh) 2013-11-08 2013-11-08 转发面迁移方法、控制器及网关

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071399A1 (zh) * 2015-10-29 2017-05-04 ***通信集团公司 一种业务数据的传输方法、装置、控制设备及通信***
WO2020001256A1 (zh) * 2018-06-25 2020-01-02 华为技术有限公司 一种数据传输方法及装置
CN114338599A (zh) * 2021-12-27 2022-04-12 中国电信股份有限公司 数据处理方法、装置及设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112016004595T5 (de) * 2015-10-09 2018-07-19 Intel IP Corporation Netzeingeleitete paketdatennetzverbindung
BR112018074138A2 (pt) * 2016-05-26 2019-02-26 Huawei Technologies Co., Ltd. método de controle de comunicação e elemento de rede relacionado
CN109245926B (zh) * 2018-08-28 2021-10-15 郑州云海信息技术有限公司 智能网卡、智能网卡***及控制方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132612A (zh) * 2006-08-22 2008-02-27 华为技术有限公司 一种分组核心网网络实体的迁移方法
CN101674223A (zh) * 2008-09-13 2010-03-17 华为技术有限公司 网关设备负载处理方法、网络设备和网络***
CN101730150A (zh) * 2009-01-19 2010-06-09 中兴通讯股份有限公司 业务流迁移时对网络资源进行控制的方法
CN103379569A (zh) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 流迁移的触发方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996913A (zh) * 2005-12-31 2007-07-11 华为技术有限公司 一种控制与承载分离的网络互连***及方法
CN101039506B (zh) * 2006-03-15 2011-02-02 华为技术有限公司 一种移动管理实体/用户面实体迁移方法
CN101047982B (zh) * 2006-04-02 2011-04-13 华为技术有限公司 一种网关迁移的方法
CN101959270B (zh) * 2010-11-01 2013-12-18 华为技术有限公司 用户设备ue的核心网节点切换方法、设备及***
CN102625363B (zh) * 2011-12-09 2017-08-25 南京中兴软件有限责任公司 一种移动分组域网络***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132612A (zh) * 2006-08-22 2008-02-27 华为技术有限公司 一种分组核心网网络实体的迁移方法
CN101674223A (zh) * 2008-09-13 2010-03-17 华为技术有限公司 网关设备负载处理方法、网络设备和网络***
CN101730150A (zh) * 2009-01-19 2010-06-09 中兴通讯股份有限公司 业务流迁移时对网络资源进行控制的方法
CN103379569A (zh) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 流迁移的触发方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071399A1 (zh) * 2015-10-29 2017-05-04 ***通信集团公司 一种业务数据的传输方法、装置、控制设备及通信***
WO2020001256A1 (zh) * 2018-06-25 2020-01-02 华为技术有限公司 一种数据传输方法及装置
CN114338599A (zh) * 2021-12-27 2022-04-12 中国电信股份有限公司 数据处理方法、装置及设备

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2015066894A1 (zh) 转发面迁移方法、控制器及网关
JP5446040B2 (ja) コンピュータシステム、及び仮想マシンのマイグレーション方法
CN103583063B (zh) 用于地理冗余网关处的故障恢复的***和方法
WO2017114017A1 (zh) 实现负载均衡的计算机设备、***和方法
JP6450835B2 (ja) エネルギーセービング制御方法、管理サーバ及びネットワークデバイス
JP6388955B2 (ja) OpenFlowスイッチのグレースフル・リスタート処理方法及びOpenFlowコントローラ
EP2985952B1 (en) Method and device for protecting service reliability, and network virtualization system
US20140068045A1 (en) Network system and virtual node migration method
JPWO2016121728A1 (ja) ネットワーク機能仮想化管理およびオーケストレーション装置とシステムと管理方法とプログラム
WO2015000362A1 (zh) 一种业务节点配置方法、业务节点池注册器及***
WO2011157151A2 (zh) 实现容灾备份的方法、设备及***
WO2017124791A1 (zh) 链路检测方法及装置
WO2018058618A1 (zh) 一种故障处理方法及设备
EP2597821B1 (en) Method and system for auto-configuration, and network node
WO2017000832A1 (zh) Mac地址的同步方法、装置及***
WO2011147312A1 (zh) 一种业务接入路由器的端口备份方法、装置和***
WO2021185169A1 (zh) 一种切换方法、装置、设备和存储介质
WO2014075216A1 (zh) 一种虚拟集群建立的方法及网络设备
JP6037251B2 (ja) ネットワーク経路を制御するための方法、デバイス、及びシステム
WO2017215408A1 (zh) 会话切换控制方法、装置及接入点设备
JP5904285B2 (ja) 通信システム、仮想ネットワーク管理装置、通信ノード、通信方法及びプログラム
JP2008167359A (ja) Ip電話システムにおける所分割方法,ファイル更新方法及びip電話システム
CN107222883B (zh) 无线控制器备份方法、备份切换方法、装置及***
WO2015188331A1 (zh) 转发控制方法、驱动器及sdn网络
WO2015101100A1 (zh) 网络设备及网络中的业务处理方法

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