IP Library › Granted Patent US 9,749,182
Granted Patent B2
US 9,749,182 · App. 14/066,482 · Granted Aug 29, 2017

Method and apparatus for configuring network policy of virtual network

Inventors: Hao Chen (Nanjing, CN); Yingjie Gu (Nanjing, CN); Wei Song (Nanjing, CN)
Assignee: Huawei Technologies Co., Ltd.
H04L41/0893G06F9/45558G06F2009/45595
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 9,749,182
App. No.
14/066,482
Granted
Aug 29, 2017
Kind
B2
Abstract

The present invention discloses a method and an apparatus for configuring a network policy of a virtual network. The method includes: receiving, by a server, a network policy message sent by a virtual machine management center and used for creating a virtual network, where the network policy message for creating a virtual network includes a virtual network identification (VNID) of a virtual network to be created and network policy configuration information corresponding to the virtual network to be created; and sending, by the server, a network policy synchronization message to a network device, where the network policy synchronization message includes the VNID of the virtual network to be created and the network policy configuration information corresponding to the virtual network to be created. Consequently, processing overheads can be reduced.

Claims (48)

1. A method for configuring a network policy of a virtual network, comprising:

receiving, by a server, a network policy message sent by a virtual machine management center and used for creating a virtual network, wherein the network policy message for creating the virtual network comprises a virtual network identification (VNID) of a virtual network to be created and network policy configuration information corresponding to the virtual network to be created, and the virtual network to be created is identified by the VNID in the network policy message;

sending, by the server, a network policy synchronization message to a network device, wherein the network policy synchronization message comprises the VNID of the virtual network to be created and the network policy configuration information corresponding to the virtual network to be created;

receiving, by the server, a virtual machine creation message sent by the virtual machine management center, wherein the virtual machine creation message comprises a VNID of a virtual machine to be created on the server; and

sending, by the server, an association or pre-association message to the network device, wherein the association or pre-association message comprises the VNID of the virtual machine to be created, so that the network device performs, according to the VNID of the virtual machine to be created, association or pre-association processing for the virtual machine to be created and network policy configuration information corresponding to the VNID of the virtual machine to be created,

wherein the virtual machine to be created is one of multiple virtual machines belonging to a virtual network identified by the VNID of the virtual machine to be created, and each of the multiple virtual machines belonging to the virtual network corresponds to the network policy configuration information according to the VNID of the virtual network to be created.

2. The method according to claim 1 , further comprising:

receiving, by the server, a virtual machine removal message sent by the virtual machine management center, wherein the virtual machine removal message comprises a VNID of a virtual machine to be removed; and

sending, by the server, a de-association message to the network device if the server determines that another virtual machine having the same VNID as the virtual machine to be removed exists locally, wherein the de-association message comprises the VNID of the virtual machine to be removed, so that the network device performs, according to the VNID, de-association processing for the virtual machine to be removed and network policy configuration information corresponding to the VNID of the virtual machine to be removed.

3. The method according to claim 1 , further comprising:

receiving, by the server, a network policy change message sent by the virtual machine management center, wherein the network policy change message comprises a VNID that requires network policy updating and new network policy configuration information; and

sending, by the server, a network policy change synchronization message to the network device, wherein the network policy change synchronization message comprises the VNID that requires network policy updating and the new network policy configuration information.

4. The method according to claim 1 , further comprising:

receiving, by the server, a virtual machine removal message sent by the virtual machine management center, wherein the virtual machine removal message comprises a VNID of a virtual machine to be removed; and

sending, by the server, a network policy removal synchronization message to the network device if the server determines that no other virtual machine having the same VNID as the virtual machine to be removed exists locally, wherein the network policy removal synchronization message comprises the VNID of the virtual machine to be removed, so that the network device removes the network policy configuration information corresponding to the VNID of the virtual machine to be removed.

5. A method for configuring a network policy of a virtual network, comprising:

receiving, by a network device, a network policy synchronization message sent by a server, wherein the network policy synchronization message comprises a virtual network identification (VNID) of a virtual network to be created and network policy configuration information corresponding to the virtual network to be created, and the virtual network to be created is identified by the VNID in the network policy synchronization message; and

creating, by the network device, a mapping relationship between the VNID of the virtual network and the network policy configuration information;

receiving, by the network device, an association or pre-association message sent by the server, wherein the association or pre-association message comprises a VNID of a virtual machine to be created on the server; and

performing, according to the VNID of the virtual machine to be created, association or pre-association processing for the virtual machine to be created and network policy configuration information corresponding to the VNID of the virtual machine to be created;

wherein the virtual machine to be created is one of multiple virtual machines belonging to a virtual network identified by the VNID of the virtual machine to be created, and each of the multiple virtual machines belonging to the virtual network corresponds to the network policy configuration information according to the VNID of the virtual network to be created.

6. The method according to claim 5 , wherein after creating the mapping relationship between the VNID and the network policy configuration information, the method further comprises:

receiving, by the network device, a de-association message sent by the server, wherein the de-association message comprises a VNID of a virtual machine to be removed; and

if it is determined that information of another virtual machine belonging to a virtual network identified by the VNID of the virtual machine to be removed exists locally, performing, by the network device according to the VNID of the virtual machine to be removed, de-association processing for the virtual machine to be removed and network policy configuration information corresponding to the VNID.

7. The method according to claim 5 , wherein after creating the mapping relationship between the VNID and the network policy configuration information, the method further comprises:

receiving, by the network device, a network policy removal synchronization message sent by the server, wherein the network policy removal synchronization message comprises a VNID that requires removal of network policy configuration information; and

removing, by the network device, network policy configuration information corresponding to the VNID that requires removal of network policy configuration information.

8. The method according to claim 5 , wherein after creating the mapping relationship between the VNID and the network policy configuration information, the method further comprises:

receiving, by the network device, a network policy change synchronization message sent by the server, wherein the network policy change synchronization message comprises a VNID that requires network policy updating and new network policy configuration information; and

updating, by the network device according to the new network policy configuration information, network policy configuration information corresponding to the VNID that requires network policy updating.

9. The method according to claim 5 , wherein after creating the mapping relationship between the VNID and the network policy configuration information, the method further comprises:

receiving, by the network device, a de-association message sent by the server, wherein the de-association message comprises a VNID of a virtual machine to be removed; and

if it is determined that information of no other virtual machine belonging to a virtual network identified by the VNID of the virtual machine to be removed exists locally, removing the network policy configuration information corresponding to the VNID.

10. A server for configuring a network policy of a virtual network, comprising a processor and a memory storing instructions, wherein the processor is connected to the memory, and the processor is configured to execute the instructions to:

receive a network policy message sent by a virtual machine management center and used for creating a virtual network, wherein the network policy message for creating a virtual network comprises a virtual network identification (VNID) of a virtual network to be created and network policy configuration information corresponding to the virtual network to be created, and the virtual network to be created is identified by the VNID in the network policy message;

send a network policy synchronization message to a network device, wherein the network policy synchronization message comprises the VNID of the virtual network to be created and the network policy configuration information corresponding to the virtual network to be created;

receive a virtual machine creation message sent by the virtual machine management center, wherein the virtual machine creation message comprises a VNID of a virtual machine to be created on the server; and

send an association or pre-association message to the network device, wherein the association or pre-association message comprises the VNID of the virtual machine to be created, so that the network device performs, according to the VNID of the virtual machine to be created, association or pre-association processing for the virtual machine to be created and network policy configuration information corresponding to the VNID of the virtual machine to be created,

wherein the virtual machine to be created is one of multiple virtual machines belonging to a virtual network identified by the VNID of the virtual machine to be created, and each of the multiple virtual machines belonging to the virtual network corresponds to the network policy configuration information according to the VNID of the virtual network to be created.

11. The server according to claim 10 , wherein the processor is further configured to:

receive a virtual machine removal message sent by the virtual machine management center, and the virtual machine removal message comprises a VNID of a virtual machine to be removed; and

in response to determining that another virtual machine having the same VNID as the virtual machine to be removed exists locally on the server, send a de-association message to the network device, wherein the de-association message comprises the VNID of the virtual machine to be removed.

12. The server according to claim 10 , wherein the processor is further configured to:

receive a network policy change message sent by the virtual machine management center, and the network policy change message comprises a VNID that requires network policy updating and new network policy configuration information; and

send a network policy change synchronization message to the network device, wherein the network policy change synchronization message comprises the VNID that requires network policy updating and the new network policy configuration information.

13. The server according to claim 10 , wherein the processor is further configured to:

receive a virtual machine removal message sent by the virtual machine management center, and the virtual machine removal message comprises a VNID of a virtual machine to be removed; and

in response to determining that no other virtual machine having the same VNID as the virtual machine to be removed exists locally on the server, send a network policy removal synchronization message to the network device, wherein the network policy removal synchronization message comprises the VNID of the virtual machine to be removed.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 6, 2014
From: CHEN, HAO; GU, YINGJIE; SONG, WEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 033478/0570 →
Priority Claims (1)
CN 2012 1 0424043 · Oct 30, 2012 · national
Continuity (1)
Related Publication 20140122672A1 · May 1, 2014