The present invention relates to the communications field, and in particular, to a function migration method, an apparatus, and a system.
In a software defined network (Software Defined Network, SDN for short), a control plane of a network device is separated from a data plane, so that network traffic is controlled flexibly. The SDN is a good platform for updating a core network and an application of the core network. In network functions virtualization (Network Function Virtualization, NFV for short), common hardware and a virtualization technology are used for carrying various software applications with different functions, so that a function of a network device no longer relies on a dedicated hardware device. In this way, network resources can be centrally scheduled, and the network resources are shared flexibly. In addition, a dedicated hardware device does not need to be deployed for a new service, and therefore the new service can be quickly developed and deployed. Because the SDN and the NFV have advantages such as resource utilization improvement, network control flexibility, and easy service update, in a cloud radio access network (Cloud Radio Access Network, Cloud RAN for short), a wideband code division multiple access (Wide band Code Division Multiple Access, WCDMA for short) network, and the like, a core network and an application of the core network are deployed and updated based on the SDN and the NFV.
In the prior art, when a user uses a corresponding network function, if the user exceeds a service range of a controller covered by an original network node, and transfers to a coverage area of a controller of another network node, the user connects to an existing network node to continue performing a function service. In this way, a function is migrated between different network nodes.
In a process of migrating the function between the different network nodes, in the prior art, the function can be migrated only when the user exceeds the service range of the controller covered by the original network node. Because the network is not capable of actively allocating the function service used by the user to another network node, some network nodes may process a large quantity of function services of the user while some network nodes are nearly idle. In addition, the network node that the user connects to is not necessarily a network node with a best signal, a shortest path, or least network congestion. In this way, performance of a function used by the user and network performance are relatively poor.
Embodiments of the present invention provide a function migration method, an apparatus, and a system, so that a network can actively transfer a function service of a user between network nodes, and performance of a function used by the user and network performance are improved.
To achieve the foregoing objective, the following technical solutions are used in the embodiments of the present invention:
According to a first aspect, a function migration method is provided, including:
sending, by a first network node, a function migration request to a second network node, where the function migration request is used to request to migrate a first function of a first user;
receiving, by the first network node, a function migration response sent by the second network node; and
sending, by the first network node, a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
sending, by the first network node, a function migration file to the second network node, where
the function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the method further includes:
canceling, by the first network node, the first function of the first user, and clearing context information corresponding to the first function of the first user.
With reference to the first aspect or the first or the second possible implementation manner of the first aspect, in a third possible implementation manner, the function migration request sent by the first network node to the second network node carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the function migration request includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a second aspect, a function migration method is provided, including:
sending, by a controller, a function migration request to a second network node, where the function migration request is used to request to migrate a first function of a first user;
receiving, by the controller, a function migration response sent by the second network node; and
sending, by the controller, a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the second aspect, in a first possible implementation manner, the method further includes:
sending, by the controller, a function migration file to the second network node, where the function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the method further includes:
sending, by the controller, the migration execution instruction to the first network node, where the migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
With reference to the second aspect or the first or the second possible implementation manner of the second aspect, in a third possible implementation manner, the function migration request sent by the controller to the second network node carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the function migration request includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a third aspect, a function migration method is provided, including:
receiving, by a second network node, a function migration request sent by a first network node or a controller, where the function migration request is used to request to migrate a first function of a first user;
sending, by the second network node, a function migration response to the first network node or the controller;
receiving a migration execution instruction sent by the first network node or the controller; and
executing, by the second network node, the migration execution instruction to perform the first function service on the first user.
With reference to the third aspect, in a first possible implementation manner, the method includes:
receiving, by the second network node, a function migration file sent by the first network node or the controller, where the function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the function migration request received by the second network node carries an identifier of the first user and an identifier of the first function.
With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner, the function migration request includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a fourth aspect, a first network node is provided, including:
a sending unit, configured to send a function migration request to a second network node, where the function migration request is used to request to migrate a first function of a first user; and
a receiving unit, configured to receive a function migration response sent by the second network node; and
the sending unit is further configured to send a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the fourth aspect, in a first possible implementation manner, the sending unit is further configured to:
send a function migration file to the second network node, where
the function migration file sent by the sending unit includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the first network node further includes:
a release unit, configured to: cancel the first function of the first user on the first network node, and clear context information corresponding to the first function of the first user.
With reference to the fourth aspect or the first or the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the function migration request sent by the sending unit carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the function migration request sent by the sending unit includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a fifth aspect, a controller is provided, including:
a sending unit, configured to send a function migration request to a second network node, where the function migration request is used to request to migrate a first function of a first user; and
a receiving unit, configured to receive a function migration response sent by the second network node; and
the sending unit is further configured to send a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the fifth aspect, in a first possible implementation manner, the sending unit is further configured to:
send a function migration file to the second network node, where
the function migration file sent by the sending unit includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the sending unit is further configured to:
send the migration execution instruction to the first network node, where the migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
With reference to the fifth aspect or the first or the second possible implementation manner of the fifth aspect, in a third possible implementation manner, the function migration request sent by the sending unit carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the fifth aspect, in a fourth possible implementation manner, the function migration request sent by the sending unit includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a sixth aspect, a second network node is provided, including:
a receiving unit, configured to receive a function migration request sent by a first network node or a controller, where the function migration request is used to request to migrate a first function of a first user;
a sending unit, configured to send a function migration response to the first network node or the controller, where
the receiving unit is further configured to receive a migration execution instruction sent by the first network node or the controller; and
an execution unit, configured to execute the migration execution instruction to perform the first function service on the first user.
With reference to the sixth aspect, in a first possible implementation manner, the receiving unit is further configured to:
receive a function migration file sent by the first network node or the controller, where
the function migration file received by the receiving unit includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the function migration request received by the receiving unit carries an identifier of the first user and an identifier of the first function.
With reference to the second possible implementation manner of the sixth aspect, in a third possible implementation manner, the function migration request received by the receiving unit includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a seventh aspect, a first network node is provided, including a processor, a transmitter, a receiver, and a memory, where the processor, the transmitter, the receiver, and the memory are connected to each other, the memory is configured to store code, and when running the code stored in the memory, the processor performs the following steps:
the processor is configured to send a function migration request to a second network node by using the transmitter, where the function migration request is used to request to migrate a first function of a first user;
the processor is further configured to receive, by using the receiver, a function migration response sent by the second network node; and
the processor is further configured to send a migration execution instruction to the second network node by using the transmitter, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the seventh aspect, in a first possible implementation manner, the processor is further configured to:
send a function migration file to the second network node by using the transmitter, where
the function migration file sent by the transmitter includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the seventh aspect or the first possible implementation manner of the seventh aspect, in a second possible implementation manner, the processor is further configured to:
cancel the first function of the first user on the first network node, and clear context information corresponding to the first function of the first user.
With reference to the seventh aspect or the first or the second possible implementation manner of the seventh aspect, in a third possible implementation manner, the function migration request sent by the transmitter carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the seventh aspect, in a fourth possible implementation manner, the function migration request sent by the transmitter includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to an eighth aspect, a controller is provided, including a processor, a transmitter, a receiver, and a memory, where the processor, the transmitter, the receiver, and the memory are connected to each other, the memory is configured to store code, and when running the code stored in the memory, the processor performs the following steps:
the processor is configured to send a function migration request to a second network node by using the transmitter, where the function migration request is used to request to migrate a first function of a first user;
the processor is further configured to receive, by using the receiver, a function migration response sent by the second network node; and
the processor is further configured to send a migration execution instruction to the second network node by using the transmitter, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
With reference to the eighth aspect, in a first possible implementation manner, the processor is further configured to:
send a function migration file to the second network node by using the transmitter, where
the function migration file sent by the transmitter includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the eighth aspect or the first possible implementation manner of the eighth aspect, in a second possible implementation manner, the processor is further configured to:
send the migration execution instruction to the first network node by using the transmitter, where the migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
With reference to the eighth aspect or the first or the second possible implementation manner of the eighth aspect, in a third possible implementation manner, the function migration request sent by the transmitter carries an identifier of the first user and an identifier of the first function.
With reference to the third possible implementation manner of the eighth aspect, in a fourth possible implementation manner, the function migration request sent by the transmitter includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
According to a ninth aspect, a second network node is provided, including a processor, a transmitter, a receiver, and a memory, where the processor, the transmitter, the receiver, and the memory are connected to each other, the memory is configured to store code, and when running the code stored in the memory, the processor performs the following steps:
the processor is configured to receive, by using the receiver, a function migration request sent by a first network node or a controller, where the function migration request is used to request to migrate a first function of a first user;
the processor is further configured to send a function migration response to the first network node or the controller by using the transmitter;
the processor is further configured to receive, by using the receiver, a migration execution instruction sent by the first network node or the controller; and
the processor is further configured to execute the migration execution instruction to perform the first function service on the first user.
With reference to the ninth aspect, in a first possible implementation manner, the processor is further configured to:
receive, by using the receiver, a function migration file sent by the first network node or the controller; where
the function migration file received by the receiver includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
With reference to the ninth aspect or the first possible implementation manner of the ninth aspect, in a second possible implementation manner, the function migration request received by the receiver carries an identifier of the first user and an identifier of the first function.
With reference to the second possible implementation manner of the ninth aspect, in a third possible implementation manner, the function migration request received by the receiver includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
In the foregoing solutions, a first network node or a controller actively sends a function migration request to the second network node, and the second network node sends a function migration response to the first network node or the controller. The first network node or the controller sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node or a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
An embodiment of the present invention is applied to a network system with SDN and NFV functions. When a user uses a function service, an SDN may separate data of a control function from data of the user, so as to flexibly control a network. An NFV enables a network node to provide a function for the user by using a virtual machine instead of relying on a dedicated device. As shown in
An embodiment of the present invention provides a function migration method. As shown in
101. A first network node sends a function migration request to a second network node.
Before sending the function migration request, the first network node determines whether the first network node is overloaded, or determines whether a transmission signal of a first function used by a first user is fine, so as to determine whether function migration needs to be performed.
The function migration request is used to request to migrate the first function of the first user.
Optionally, the function migration request may carry an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request may further carry at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size. The information is provided for the second network node, so that the second network node can determine whether the second network node has a capability of supporting the first function of the first user.
102. The first network node receives a function migration response sent by the second network node.
The function migration response includes a response of accepting migration or a response of refusing migration. After receiving the function migration request sent by the first network node, the second network node determines whether the second network node has the capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, the response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, the response of refusing migration is sent as the function migration response.
103. The first network node sends a migration execution instruction to the second network node.
The migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
Optionally, as shown in
104. The first network node sends a function migration file to the second network node.
The function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, the first network node needs to send the function migration file to the second network node, that is, transfer function service info Elation that is on the first network node and that is of the first user to the second network node.
Further optionally, the method further includes:
105. The first network node cancels a first function of a first user, and clears context information corresponding to the first function of the first user.
Because the second network node implements the first function on the first user, the first network node ends the first function of the first user, and clears related information.
In the foregoing embodiment, a first network node actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the first network node is a response of accepting migration, the first network node sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a function migration method. As shown in
201. A controller sends a function migration request to a second network node.
The controller determines whether work of a first network node is overloaded, or determines whether a transmission signal of a first function used by a first user is fine, so as to determine whether function migration needs to be performed. The controller is a device that may participate in a network control function, such as an SDN controller, a network controller, or a network manager, or a combination of these devices.
The function migration request is used to request to migrate the first function of the first user.
Optionally, the function migration request may carry an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request may further carry at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size. The information is provided for the second network node, so that the second network node can determine whether the second network node has a capability of supporting the first function of the first user.
202. The controller receives a function migration response sent by the second network node.
The function migration response includes a response of accepting migration or a response of refusing migration. After receiving the function migration request sent by the controller, the second network node determines whether the second network node has the capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, the response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, the response of refusing migration is sent as the function migration response.
203. The controller sends a migration execution instruction to the second network node.
The migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
Optionally, as shown in
204. The controller sends a function migration file to the second network node.
The function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, a controller of the first network node needs to send the function migration file to the second network node. The controller of the first network node may obtain the function migration file from the first network node, that is, transfer function service information that is on the first network node and that is of the first user to the second network node.
Further optionally, if the function migration response received by the controller is the response of accepting migration, the method further includes:
205. The controller sends the migration execution instruction to the first network node.
The migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
In the foregoing embodiment, a controller actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the controller is a response of accepting migration, the controller sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a function migration method. As shown in
301. A second network node receives a function migration request sent by a first network node or a controller.
The function migration request is used to request to migrate a first function of a first user.
Optionally, the function migration request received by the second network node carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request may further carry at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
302. The second network node sends a function migration response to the first network node or the controller.
Referring to step 102 and step 202, if the second network node accepts the function migration request, the function migration response that is fed back is a response of accepting migration; if the second network node does not accept the function migration request, the function migration response that is fed back is a response of refusing migration.
303. The second network node receives a migration execution instruction sent by the first network node or the controller.
Optionally, the method further includes:
303-a. The second network node receives a function migration file sent by the first network node or the controller.
The function migration file includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
Specifically, referring to step 104 and step 105, if the second network node includes function service information that is on the first network node and that is of the first user, the function migration file does not need to be received. If the second network node does not have function service information that is on the first network node and that is of the first user, the function migration file sent by the first network node or the controller is received, so that the first user can use the first function without interruption.
304. The second network node executes the migration execution instruction to perform a first function service on a first user.
In the foregoing embodiment, a second network node receives a function migration request actively sent by a first network node or a controller. If a function migration response sent by the second network node is a response of accepting migration, the second network node receives a migration execution instruction sent by the first network node or the controller, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
Exemplarily, an embodiment of the present invention provides a function migration method. As shown in
401. The first network node determines to migrate the first function of the first user from the first network node to the second network node.
402. The first network node sends a function migration request to the second network node.
Correspondingly, the second network node receives the function migration request sent by the first network node. Specific description is in step 102, and details are not described herein again.
403. The second network node determines whether to accept the function migration request, and feeds back a function migration response to the first network node.
Specific description is in step 302, and details are not described herein again.
404. The first network node receives the function migration response sent by the second network node.
405. If the function migration response received by the first network node is a response of accepting migration, the first network node sends a migration execution instruction to the second network node.
Optionally, the method further includes:
406. The first network node sends a function migration file to the second network node.
Specific description is in step 104 and step 303-a, and details are not described herein again.
Optionally, the method further includes:
407. The first network node cancels the first function of the first user, and clears context information corresponding to the first function of the first user.
408. The second network node executes the migration execution instruction to perform a first function service on the first user.
Further optionally, an embodiment of the present invention provides a function migration method. As shown in
501. The network node controller determines to migrate the first function of the first user from the first network node to the second network node.
Specific description is in step 201, and details are not described herein again.
502. The network node controller sends a function migration request to the second network node.
Specific description is in step 201, and details are not described herein again.
503. The second network node determines whether to accept the function migration request, and feeds back a function migration response to the network node controller.
Specific description is in step 302, and details are not described herein again.
504. The network node controller receives the function migration response sent by the second network node.
505. If the function migration response received by the network node controller is a response of accepting migration, the first network node sends a migration execution instruction to the second network node.
Optionally, the method further includes:
506. The network node controller sends the migration execution instruction to the first network node.
Specific description is in step 205, and details are not described herein again.
Optionally, the method further includes:
507. The network node controller sends a function migration file to the second network node.
Specific description is in step 204 and step 303-a, and details are not described herein again.
508. The first network node cancels the first function of the first user, and clears context information corresponding to the first function of the first user.
509. The second network node executes the migration execution instruction to perform a first function service on the first user.
Further optionally, an embodiment of the present invention provides a function migration method. As shown in
Further optionally, an embodiment of the present invention provides a function migration method. As shown in
In the foregoing embodiments, a first network node or a controller of a first network node actively determines to migrate a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. The second network node determines whether to accept function migration. If the function migration response received by the first network node or the controller of the first network node is a response of accepting migration, the first network node or the controller of the first network node sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node or a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a first network node 600 that is configured to migrate a first function that is used by a first user and that is on the first network node 600 to a second network node. As shown in
The sending unit 601 is configured to send a function migration request to the second network node.
The function migration request is used to request to migrate the first function of the first user.
Optionally, the function migration request sent by the sending unit 601 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request sent by the sending unit includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
The receiving unit 602 is configured to receive a function migration response sent by the second network node.
After receiving the function migration request sent by the first network node, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The sending unit 601 is further configured to send a migration execution instruction to the second network node.
The migration execution instruction is used to instruct the second network node to perform a first function service on the first user.
Optionally, the sending unit 601 is further configured to send a function migration file to the second network node.
The function migration file sent by the sending unit 601 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, the first network node needs to send the function migration file to the second network node, that is, transfer function service information that is on the first network node and that is of the first user to the second network node.
Further optionally, the first network node 600 further includes:
a release unit 603, configured to: cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
Because the second network node implements the first function on the first user, the first network ends the first function of the first user, and clears related information.
In the foregoing embodiment, a first network node actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the first network node is a response of accepting migration, the first network node sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a controller 700 that is configured to migrate a first function that is used by a first user and that is on a first network node to a second network node. As shown in
The sending unit 701 is configured to send a function migration request to the second network node.
The function migration request is used to request to migrate the first function of the first user.
Optionally, the function migration request sent by the sending unit 701 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request sent by the sending unit includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
The receiving unit 702 is configured to receive a function migration response sent by the second network node.
After receiving the function migration request sent by the controller, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The sending unit 701 is further configured to send a migration execution instruction to the second network node.
The migration execution instruction is used to instruct the second network node to perform the first function service on the first user.
Optionally, the sending unit 701 is further configured to send a function migration file to the second network node.
The function migration file sent by the sending unit 701 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, a controller of the first network node needs to send the function migration file to the second network node. The controller of the first network node may obtain the function migration file from the first network node, that is, transfer function service information that is on the first network node and that is of the first user to the second network node.
Further optionally, the sending unit 701 is further configured to send the migration execution instruction to the first network node.
The migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
In the foregoing embodiment, a controller actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the controller is a response of accepting migration, the controller sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a second network node 800. As shown in
The receiving unit 801 is configured to receive a function migration request sent by the first network node or a controller.
The function migration request is used to request to migrate the first function of the first user.
Optionally, the function migration request received by the receiving unit 801 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request may further carry at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
The sending unit 802 is configured to send a function migration response to the first network node or the controller.
After receiving the function migration request sent by the controller, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The receiving unit 801 is further configured to receive a migration execution instruction sent by the first network node or the controller.
Optionally, the receiving unit 801 is further configured to:
receive a function migration file sent by the first network node or the controller.
The function migration file received by the receiving unit 801 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
If the second network node includes function service information that is on the first network node and that is of the first user, the function migration file does not need to be received. If the second network node does not have function service information that is on the first network node and that is of the first user, the function migration file sent by the first network node or the controller is received, so that the first user can use the first function without interruption.
The execution unit 803 is configured to execute the migration execution instruction to perform a first function service on the first user.
In the foregoing embodiment, a second network node receives a function migration request actively sent by a first network node or a controller. If a function migration response sent by the second network node is a response of accepting migration, the second network node receives a migration execution instruction sent by the first network node or the controller, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a first network node 900. As shown in
Specifically, the memory 904 is configured to store executable program code, and the program code includes computer operation instructions. The memory 904 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) such as at least one disk memory.
The processor 901 may be a central processing unit (Central Processing Unit, CPU for short), or an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or one or more integrated circuits configured to implement this embodiment of the present invention.
The processor 901 is configured to send a function migration request to a second network node by using the transmitter 902.
The function migration request is used to request to migrate a first function of a first user.
Optionally, the function migration request sent by the transmitter 902 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request sent by the transmitter 902 includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
When performing the operation, the processor 901 invokes the code stored in the memory 904, and sends the function migration request by using the transmitter 902, so as to implement the foregoing function of sending the function migration request.
The processor 901 is further configured to receive, by using the receiver, a function migration response sent by the second network node.
When performing the operation, the processor 901 invokes the code stored in the memory 904, and receives the function migration response by using the receiver 903, so as to implement the foregoing function of receiving the function migration response.
After receiving the function migration request sent by the first network node, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The processor 901 is further configured to send a migration execution instruction to the second network node by using the transmitter.
The migration execution instruction is used to instruct the second network node to perform the first function service on the first user. When performing the operation, the processor 901 invokes the code stored in the memory 904, and sends the migration execution instruction by using the transmitter 902, so as to implement the foregoing function of sending the migration execution instruction.
Optionally, the processor 901 is further configured to send a function migration file to the second network node by using the transmitter 902.
The function migration file sent by the transmitter 901 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, the first network node needs to send the function migration file to the second network node, that is, transfer function service information that is on the first network node and that is of the first user to the second network node.
When performing the operation, the processor 901 invokes the code stored in the memory 904, and sends the function migration file by using the transmitter 902, so as to implement the foregoing function of sending the function migration file.
Further optionally, the processor 901 is further configured to:
cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
When performing the operation, the processor 901 invokes the code stored in the memory 904, so as to implement the foregoing function of releasing the first function of the first user.
Because the second network node implements the first function on the first user, the first network ends the first function of the first user, and clears related information.
In the foregoing embodiment, a first network node actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the first network node is a response of accepting migration, the first network node sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a controller 1000. As shown in
Specifically, the memory 1004 is configured to store executable program code, and the program code includes computer operation instructions. The memory 1004 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) such as at least one disk memory.
The processor 1001 may be a central processing unit (Central Processing Unit, CPU for short), or an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or one or more integrated circuits configured to implement this embodiment of the present invention.
The processor 1001 is configured to send a function migration request to a second network node by using the transmitter 1002.
The function migration request is used to request to migrate a first function of a first user.
Optionally, the function migration request sent by the transmitter 1002 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request sent by the transmitter 1002 includes at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
When performing the operation, the processor 1001 invokes the code stored in the memory 1004, and sends the function migration request by using the transmitter 1002, so as to implement the foregoing function of sending the function migration request.
The processor 1001 is configured to receive, by using the receiver 1003, a function migration response sent by the second network node.
When performing the operation, the processor 1001 invokes the code stored in the memory 1004, and receives the function migration response by using the receiver 1003, so as to implement the foregoing function of receiving the function migration response.
After receiving the function migration request sent by the controller, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The processor 1001 is further configured to send a migration execution instruction to the second network node by using the transmitter 1002.
The migration execution instruction is used to instruct the second network node to perform the first function service on the first user. When performing the operation, the processor 1001 invokes the code stored in the memory 1004, and sends the migration execution instruction by using the transmitter 1002, so as to implement the foregoing function of sending the migration execution instruction.
Optionally, the processor 1001 is further configured to send a function migration file to the second network node by using the transmitter 1002.
The function migration file sent by the transmitter 1002 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When the first network node shares no information with the second network node, a controller of the first network node needs to send the function migration file to the second network node. The controller of the first network node may obtain the function migration file from the first network node, that is, transfer function service information that is on the first network node and that is of the first user to the second network node.
When performing the operation, the processor 1001 invokes the code stored in the memory 1004, and sends the function migration file by using the transmitter 1002, so as to implement the foregoing function of sending the function migration file.
Further optionally, the processor 1001 is further configured to send a migration execution instruction to the first network node by using the transmitter 1002.
When performing the operation, the processor 1001 invokes the code stored in the memory 1004, and sends the migration execution instruction by using the transmitter 1002, so as to implement the foregoing function of sending the migration execution instruction.
The migration execution instruction is used to instruct the first network node to cancel the first function of the first user, and clear context information corresponding to the first function of the first user.
In the foregoing embodiment, a controller actively determines to transfer a first function of a first user from the first network node to a second network node, and sends a function migration request to the second network node. If the function migration response received by the controller is a response of accepting migration, the controller sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a second network node 1100. As shown in
Specifically, the memory 1104 is configured to store executable program code, and the program code includes computer operation instructions. The memory 1104 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) such as at least one disk memory.
The processor 1101 may be a central processing unit (Central Processing Unit, CPU for short), or an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or one or more integrated circuits configured to implement this embodiment of the present invention.
The processor 1101 is configured to receive, by using the receiver 1103, a function migration request sent by a first network node or a controller.
The function migration request is used to request to migrate a first function of a first user.
Optionally, the function migration request received by the receiver 1103 carries an identifier of the first user and an identifier of the first function.
Further optionally, the function migration request may further carry at least one piece of the following information:
an interface for migration of a virtual machine at an application layer, a virtual machine identification, a bandwidth allocation interface, a bandwidth size, a radio air interface scheduling priority interface, an air interface scheduling priority, or a delay size.
When performing the operation, the processor 1101 invokes the code stored in the memory 1104, and receives the function migration request by using the receiver 1103, so as to implement the foregoing function of receiving the function migration request.
The processor 1101 sends a function migration response to the first network node or the controller by using the transmitter 1102.
When performing the operation, the processor 1101 invokes the code stored in the memory 1104, and sends the function migration response by using the transmitter 1102, so as to implement the foregoing function of sending the function migration response.
After receiving the function migration request sent by the controller, the second network node determines whether the second network node has a capability of supporting the first function of the first user. If the second network node is capable of supporting the first function of the first user, a response of accepting migration is sent as the function migration response. If the second network node does not support the first function of the first user, a response of refusing migration is sent as the function migration response.
The processor 1101 is further configured to receive, by using the receiver 1103, a migration execution instruction sent by the first network node or the controller.
Optionally, the receiver 1103 is further configured to:
receive a function migration file sent by the first network node or the controller.
The function migration file received by the receiver 1103 includes at least one piece of the following information:
a mirror program of the first function of the first user, configuration information of the first user, a radio air interface scheduling priority, service data information of the first user, or assured bandwidth of the first user.
When performing the operation, the processor 1101 invokes the code stored in the memory 1104, and receives the function migration file by using the receiver 1103, so as to implement the foregoing function of receiving the function migration file.
If the second network node includes function service information that is on the first network node and that is of the first user, the function migration file does not need to be received. If the second network node does not have function service information that is on the first network node and that is of the first user, the function migration file sent by the first network node or the controller is received, so that the first user can use the first function without interruption.
The processor 1101 is further configured to execute the migration execution instruction to perform a first function service on the first user.
When performing the operation, the processor 1101 invokes the code stored in the memory 1104, so as to implement the first function of the first user.
In the foregoing embodiment, a second network node receives a function migration request actively sent by a first network node or a controller. If a function migration response sent by the second network node is a response of accepting migration, the second network node receives a migration execution instruction sent by the first network node or the controller, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
An embodiment of the present invention provides a function migration system that includes:
at least one first network node 1201, and at least one second network node 1202.
In a function migration system of a first type, as shown in
In the function migration system of the first type, the first network node 1201 is the first network node 600 corresponding to
Optionally, as shown in
In the function migration system of the second type, the first network node 1201 is the first network node 600 corresponding to
Further, when the first network node 1201 and the second network node 1202 do not belong to a coverage area of a same controller, a message needs to be transferred by using another transfer controller 1204 (identified by a dashed-line elliptic box in
In the foregoing system, a first network node or a controller actively sends a function migration request to the second network node, the second network node sends a function migration response to the first network node or the controller, and the first network node or the controller sends a migration execution instruction to the second network node, where the migration execution instruction is used to instruct the second network node to perform the first function service on the first user. Therefore, a network node or a controller of a network node can actively transfer a function service of a user between network nodes. In this way, a network can allocate an optimal network node to the user, and a burden on a busy network node can be reduced, so that performance of a function used by the user and network performance are improved.
The foregoing descriptions are merely specific implementation manners of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by persons skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention is subject to the protection scope of the claims.
This application is a continuation of International Application No. PCT/CN2014/081092, filed on Jun. 30, 2014, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/081092 | Jun 2014 | US |
Child | 15394363 | US |