IP Library › Granted Patent US 10,606,637
Granted Patent B2
US 10,606,637 · App. 15/824,165 · Granted Mar 31, 2020

Time correction method, apparatus, and system

Inventor: Tao Liu (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F9/4856G06F1/12G06F1/14G06F9/45558H04L29/08072H04L41/0806G06F2009/4557H04L29/06
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,606,637
App. No.
15/824,165
Granted
Mar 31, 2020
Kind
B2
Abstract

A time correction method, apparatus, and system, and relate to the field of communications technologies are provided. A virtual network function manager (VNFM) receives a hot migration notification message from a virtualized infrastructure manager (VIM) after hot migration is performed on a first virtual machine, where the hot migration notification message includes an identity (ID) of the first virtual machine; the VNFM searches, according to the ID of the first virtual machine, for a correspondence that is between an ID of a virtual machine and an identity of a service control virtual network function (VNF) and stored in the VNFM, to determine a first service control VNF; and the VNFM sends the hot migration notification message to the first service control VNF, where the hot migration notification message is used to instruct the first service control VNF to correct a system time of the first virtual machine.

Claims (47)

1. A time correction method, applied to a network functions virtualization (NFV) system, wherein the time correction method comprises:

receiving, by a virtualized network function manager (VNFM), a hot migration notification message from a virtualized infrastructure manager (VIM) after hot migration is performed on a first virtual machine, wherein the hot migration notification message comprises an identity (ID) of the first virtual machine, and wherein the ID of the first virtual machine is used to indicate that a to-be-corrected virtual machine is the first virtual machine;

searching, by the VNFM according to the ID of the first virtual machine, for a correspondence between an ID of a virtual machine and an identity of a service control virtualized network function (VNF) and stored in the VNFM in order to determine a first service control VNF, wherein an identity of the first service control VNF corresponds to the ID of the first virtual machine; and

sending, by the VNFM, the hot migration notification message to the first service control VNF, wherein the hot migration notification message is used to instruct the first service control VNF to correct a system time of the first virtual machine.

2. The time correction method according to claim 1 , wherein the hot migration notification message is used to instruct the first service control VNF to correct the system time of the first virtual machine according to a time of a Network Time Protocol (NTP) system time source.

3. The time correction method according to claim 1 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the hot migration notification message is used to instruct the first service control VNF to correct the system time of the first virtual machine according to the virtual machine suspension duration.

4. The time correction method according to claim 2 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the hot migration notification message is further used to instruct the first service control VNF to:

correct the system time of the first virtual machine according to the time of the NTP system time source; and

correct the system time of the first virtual machine according to the virtual machine suspension duration when failing to correct the system time of the first virtual machine according to the time of the NTP system time source.

5. The time correction method according to claim 4 , wherein the hot migration notification message further comprises a virtual machine suspension start time, and wherein the virtual machine suspension start time is a start time at which the first virtual machine stops running in the hot migration process.

6. The time correction method according to claim 1 , wherein receiving the hot migration notification message from the VIM after the hot migration is performed on the first virtual machine comprises receiving, by the VNFM using a Vi-Vnfm interface, the hot migration notification message from the VIM after the hot migration is performed on the first virtual machine, and wherein sending the hot migration notification message to the first service control VNF comprises sending, by the VNFM, the hot migration notification message to the first service control VNF using a Ve-Vnfm interface.

7. A time correction method, applied to a network functions virtualization (NFV) system, wherein the time correction method comprises:

receiving, by a first service control virtualized network function (VNF) after hot migration is performed on a first virtual machine, a hot migration notification message from a virtualized network function manager (VNFM), wherein the first service control VNF is a service control VNF of the first virtual machine, wherein the hot migration notification message comprises an identity (ID) of the first virtual machine, and wherein the ID of the first virtual machine is used to indicate that a to-be-corrected virtual machine is the first virtual machine; and

correcting, by the first service control VNF, a system time of the first virtual machine.

8. The time correction method according to claim 7 , wherein correcting the system time of the first virtual machine comprises:

obtaining, by the first service control VNF, a time of a Network Time Protocol (NTP) system time source; and

correcting the system time of the first virtual machine to the time of the NTP system time source.

9. The time correction method according to claim 7 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein correcting the system time of the first virtual machine comprises:

adding, by the first service control VNF, the virtual machine suspension duration to the system time of the first virtual machine; and

using a system time obtained after the adding as a new system time of the first virtual machine.

10. The time correction method according to claim 7 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein correcting the system time of the first virtual machine comprises:

obtaining, by the first service control VNF, a time of an NTP system time source;

adding, by the first service control VNF, the virtual machine suspension duration to the system time of the first virtual machine when the first service control VNF fails to obtain the time of the NTP system time source; and

using a system time obtained after the adding as a new system time of the first virtual machine.

11. A time correction apparatus, applied to a network functions virtualization (NFV) system, wherein the time correction apparatus comprises:

a receiver configured to receive a hot migration notification message from a virtualized infrastructure manager (VIM) after hot migration is performed on a first virtual machine, wherein the hot migration notification message comprises an identity (ID) of the first virtual machine, and wherein the ID of the first virtual machine is used to indicate that a to-be-corrected virtual machine is the first virtual machine;

a processor coupled to the receiver and configured to search, according to the ID of the first virtual machine, for a correspondence between an ID of a virtual machine and an identity of a service control virtualized network function (VNF) and stored in a virtualized network function manager (VNFM) in order to determine a first service control VNF, wherein an identity of the first service control VNF corresponds to the ID of the first virtual machine; and

a transmitter coupled to the processor and configured to send the hot migration notification message to the first service control VNF, wherein the hot migration notification message is used to instruct the first service control VNF to correct a system time of the first virtual machine.

12. The time correction apparatus according to claim 11 , wherein the hot migration notification message is used to instruct the first service control VNF to correct the system time of the first virtual machine according to a time of a Network Time Protocol (NTP) system time source.

13. The time correction apparatus according to claim 11 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the hot migration notification message is used to instruct the first service control VNF to correct the system time of the first virtual machine according to the virtual machine suspension duration.

14. The time correction apparatus according to claim 12 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the hot migration notification message is further used to instruct the first service control VNF to:

correct the system time of the first virtual machine according to the time of the NTP system time source; and

correct the system time of the first virtual machine according to the virtual machine suspension duration when failing to correct the system time of the first virtual machine according to the time of the NTP system time source.

15. The time correction apparatus according to claim 14 , wherein the hot migration notification message further comprises a virtual machine suspension start time, and wherein the virtual machine suspension start time is a start time at which the first virtual machine stops running in the hot migration process.

16. The time correction apparatus according to claim 11 , wherein the receiver is configured to receive, using a Vi-Vnfm interface, the hot migration notification message from the VIM after the hot migration is performed on the first virtual machine, and wherein the transmitter is further configured to send the hot migration notification message to the first service control VNF using a Ve-Vnfm interface.

17. A time correction apparatus, applied to a network functions virtualization (NFV) system, wherein the time correction apparatus comprises:

a receiver configured to receive, after hot migration is performed on a first virtual machine, a hot migration notification message from a virtualized network function manager (VNFM), wherein the hot migration notification message comprises an identity (ID) of the first virtual machine, and the ID of the first virtual machine is used to indicate that a to-be-corrected virtual machine is the first virtual machine; and

a processor coupled to the receiver and configured to correct a system time of the first virtual machine.

18. The time correction apparatus according to claim 17 , wherein the processor is further configured to:

obtain a time of a Network Time Protocol (NTP) system time source; and

correct the system time of the first virtual machine to the time of the NTP system time source.

19. The time correction apparatus according to claim 17 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the processor is further configured to:

add the virtual machine suspension duration to the system time of the first virtual machine; and

use a system time obtained after the adding as a new system time of the first virtual machine.

20. The time correction apparatus according to claim 17 , wherein the hot migration notification message further comprises virtual machine suspension duration, wherein the virtual machine suspension duration is duration in which the first virtual machine is not running in a hot migration process, and wherein the processor is further configured to:

add the virtual machine suspension duration to the system time of the first virtual machine when the processor fails to obtain a time of an NTP system time source; and

use a system time obtained after the adding as a new system time of the first virtual machine.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 8, 2018
From: LIU, TAO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 045144/0932 →
Priority Claims (1)
CN 2015 1 0290638 · May 29, 2015 · national
Continuity (2)
Continuation PCTCN2016081869 · May 12, 2016
Related Publication 20180081714A1 · Mar 22, 2018