CN108337102B - Method and device for deploying and generating parameters and files in virtual network - Google Patents

Method and device for deploying and generating parameters and files in virtual network Download PDF

Info

Publication number
CN108337102B
CN108337102B CN201710044336.1A CN201710044336A CN108337102B CN 108337102 B CN108337102 B CN 108337102B CN 201710044336 A CN201710044336 A CN 201710044336A CN 108337102 B CN108337102 B CN 108337102B
Authority
CN
China
Prior art keywords
parameter
virtual network
parameter set
ith
network port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710044336.1A
Other languages
Chinese (zh)
Other versions
CN108337102A (en
Inventor
王东兴
陈太洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710044336.1A priority Critical patent/CN108337102B/en
Publication of CN108337102A publication Critical patent/CN108337102A/en
Application granted granted Critical
Publication of CN108337102B publication Critical patent/CN108337102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

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

Abstract

A method and a device for deploying and generating parameters and files of a virtual network relate to the technical field of communication and are used for reducing the complexity of association of a virtual network port to a physical network port. The virtual network deployment method comprises the steps that first equipment receives at least one parameter set group, according to a second parameter included in an ith parameter set in a jth parameter set group, a value on a target position in a first sequence is modified into an effective value in a first parameter included in the ith parameter set, a second sequence is obtained, then the serial number of a physical network port to which the ith virtual network port needs to be associated is determined, and the ith virtual network port is associated to a physical network port corresponding to the determined serial number. According to the technical scheme, the virtual network ports can be automatically associated to different physical network ports based on at least one parameter set group, and compared with the prior art that different virtual network ports are associated to different physical network ports through manual configuration, the complexity of associating the virtual network ports to the physical network ports is reduced.

Description

Method and device for deploying and generating parameters and files in virtual network
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for deploying and generating parameters and files in a virtual network.
Background
Network element functions in an NFV (Network Function Virtualization) system are provided in a software implementation manner running in virtual resources, and by this means, the NFV system can run multiple Network elements simultaneously to provide different services, which not only improves the utilization efficiency of resources, but also improves the flexibility of the Network system.
When a Virtual machine is deployed in an NFV system, in the prior art, a Virtual network port of the Virtual machine is associated with a physical network port through a VSwitch (Virtual Switch), but when determining a physical network port to which a Virtual network port needs to be associated, the VSwitch performs Hash operation on an IP (Internet Protocol ) address of the Virtual network port to obtain a Hash result, and a result obtained by modulo the Hash result on the total number of the physical network ports is a number that needs to be associated with the physical network port, and then associates the Virtual network port with the physical network port corresponding to the number. In this way, it may occur that different virtual ports are associated to the same physical port. Therefore, if the communication quality of the logical plane where the currently communicating virtual port is located is degraded (for example, a packet drop or a packet error occurs during communication through the logical plane), the virtual port belonging to another logical plane will be switched to another logical plane for communication, however, since the virtual port belonging to another logical plane may be the same physical port as the physical port associated with the currently communicating virtual port, the switching of the logical plane will not improve the current communication quality.
In order to separate the logical planes, different virtual network ports are respectively associated with different physical network ports by a manual configuration mode at present, but the mode of associating the virtual network ports with the physical network ports is complex.
Disclosure of Invention
The application provides methods and devices for deploying and generating parameters and files of a virtual network, which are used for reducing the complexity of association of a virtual network port to a physical network port.
In a first aspect, a method for virtual network deployment is provided, including:
the first device receives at least one parameter set group, modifies a value at a target position in a first sequence into an effective value in a first parameter included in an ith parameter set according to a second parameter included in the ith parameter set in the jth parameter set group to obtain a second sequence, then determines a serial number of a physical network port to which an ith virtual network port needs to be associated according to the second sequence and a third parameter, and associates the ith virtual network port to a physical network port corresponding to the determined serial number.
Each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the target position is the same as the position of an effective value in a first parameter included in the ith parameter set, the first sequence is obtained based on a Hash algorithm according to a network address of the ith virtual network port, the ith virtual network port is a virtual network port corresponding to a number indicated by the first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of parameter sets included in the jth parameter set group; the third parameter is used for indicating the total number of the physical network ports supporting the service type of the logic plane to which the ith virtual network port belongs.
Because the virtual network port can be automatically associated to different physical network ports based on at least one parameter set group, compared with the prior art in which different virtual network ports are associated to different physical network ports through manual configuration, the complexity of associating the virtual network port to the physical network port is reduced.
Based on the first aspect, in a possible implementation manner, the first device modifies a value at a target position in the first sequence to a valid value in a first parameter included in the ith parameter set, and the following expression is satisfied:
Figure BDA0001214046740000021
wherein, P1Representing a first parameter, P, included in the ith set of parameters2Representing a second parameter, P, included in the ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
The first device can modify the value at the same position as the position of the effective value in the first parameter in the first sequence to be the effective value in the first parameter based on the expression, so that different virtual network ports are associated to different physical network ports. It is to be understood that P0Being constant with all bits being 1, e.g. P0May be 0xFF, or 0XFFFF, etc., such that the effective value of the second parameter is set to 0, for example, if the second parameter is 001, then 1 is the effective value of the second parameter, then the second parameter and P are passed0Performing an exclusive-or operation sets 0 in the second parameter.
Based on the first aspect, in a possible implementation manner, the first device determines a number No. of a physical port to which the ith virtual port needs to be associated, and the number No. conforms to the following expression:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
Based on the first aspect, in a possible implementation manner, the network address of the ith virtual network port is an IP address of the ith virtual network port; or the network address of the ith virtual network port is the MAC address of the ith virtual network port.
In a second aspect, a method for virtual network deployment is provided, including:
the first device receives at least one parameter set group, then selects a network address of an ith virtual network port from a network address resource pool of the virtual network port according to an ith parameter set in the jth parameter set group, determines a serial number of a physical network port to which the ith virtual network port needs to be associated based on a preset algorithm according to the network address of the ith virtual network port, and finally associates the ith virtual network port to a physical network port corresponding to the determined serial number.
Each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, the value of a network address of the ith virtual network port at a target position of a result obtained after operation based on a Hash algorithm is equal to an effective value in the first parameter included in the ith parameter set, the target position is the same as the position of the effective value in the first parameter included in the ith parameter set, j is m continuous positive integers from 1 to m, m is the total number of at least one parameter set group, i is n continuous positive integers from 1 to n, and n is the total number of parameter sets included in the jth parameter set group.
Because the network address of the virtual network port is selected from the network address resource pool based on at least one parameter set, the selected network address is related to the number of the virtual network port, so that the virtual network port can be automatically related to different physical network ports through the network port addresses of different virtual network ports, and compared with the prior art that different virtual network ports are related to different physical network ports through manual configuration, the complexity of the virtual network port related to the physical network port is reduced.
In this application, the network address may be an IP address, a MAC address, or another type of network address, which is not limited herein.
It should be understood that, in the embodiment of the present application, the first device determines, according to the network address of the ith virtual network port and based on a preset algorithm, that the preset algorithm in the number of the physical network port that the ith virtual network port needs to be associated with is similar to an algorithm in the prior art that the number of the physical network port that needs to be associated with is obtained based on the network address of the virtual network port, and details are not described here again.
In a third aspect, a method for generating parameters is provided, including:
the second device obtains the first file, respectively determines the number of at least one virtual network port and the total number of the virtual network ports of which the logic planes belong to the same logic plane set according to at least one logic plane set and at least one inverse affinity parameter, then determines at least one parameter set group according to the number of at least one virtual network port and the total number of the virtual network ports of which each logic plane belongs to the same logic plane set, and finally sends at least one parameter set group. The first file comprises at least one logic plane set and at least one inverse affinity parameter, wherein logic planes in each logic plane set in the at least one logic plane set are logic planes of the same service type, the service types of the logic planes in different logic plane sets are different, the jth inverse affinity parameter in the at least one inverse affinity parameter is used for indicating the logic plane to which one virtual network port belongs, j takes m continuous positive integers from 1 to m, and m is the total number of the inverse affinity parameters; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of one virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different.
Because the second device can obtain the at least one parameter set group based on the first file, the first device can automatically associate the virtual network port to different physical network ports based on the at least one parameter set group, and compared with the prior art in which different virtual network ports are associated to different physical network ports through manual configuration, the complexity of associating the virtual network port to the physical network port is reduced.
Based on the third aspect, in one possible implementation manner, the first file is a VNFD.
In a fourth aspect, a method for generating a file is provided, including:
the third equipment determines a logic plane to which at least one virtual network port belongs, wherein the at least one virtual network port is a virtual network port which needs to be associated with a corresponding physical network port; then, grouping at least one virtual network port according to a logic plane to which the at least one virtual network port belongs, wherein the logic planes to which the virtual network ports belonging to the same group belong are in the same logic plane set, the logic planes in the logic plane set are the logic planes of the same service type, and the service types of the logic planes in different logic plane sets are different; respectively numbering each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different; determining at least one anti-affinity parameter aiming at the number of each virtual network port in the virtual network ports belonging to the same group, wherein each anti-affinity parameter in the at least one anti-affinity parameter is used for indicating a logic plane to which one virtual network port in the at least one virtual network port belongs; and finally, generating a first file according to the determined at least one inverse affinity parameter set, wherein the first file comprises at least one logic plane set and at least one inverse affinity parameter.
The third device can generate the first file, so that the first network element can automatically associate the virtual network port with different physical network ports, and compared with the prior art in which different virtual network ports are associated with different physical network ports through manual configuration, the complexity of associating the virtual network port with the physical network port is reduced.
In a fifth aspect, there is provided a first device comprising: the interface unit is used for receiving at least one parameter set group, each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes of the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the processing unit is used for modifying a value at a target position in the first sequence into an effective value in a first parameter included in an ith parameter set according to a second parameter included in the ith parameter set in the jth parameter set group to obtain a second sequence, wherein the target position is the same position as the position of the effective value in the first parameter included in the ith parameter set, the first sequence is obtained based on a Hash algorithm according to a network address of an ith virtual network port, the ith virtual network port is a virtual network port corresponding to a number indicated by the first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter set included in the jth parameter set group; determining the number of the physical network ports to which the ith virtual network port needs to be associated according to the second sequence and a third parameter, wherein the third parameter is used for indicating the total number of the physical network ports supporting the service type of the logic plane to which the ith virtual network port belongs; and then, the ith virtual network port is associated to the physical network port corresponding to the determined number.
Based on the fifth aspect, in a possible implementation manner, the processing unit modifies the value at the target position in the first sequence to a valid value in the first parameter included in the ith parameter set, according to the following expression:
Figure BDA0001214046740000041
wherein, P1Representing a first parameter, P, included in the ith set of parameters2Representing a second parameter, P, included in the ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
Based on the fifth aspect, in a possible implementation manner, the processing unit determines a number No. of a physical port to which the ith virtual port needs to be associated, and the following expression is satisfied:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
Based on the fifth aspect, in a possible implementation manner, the network address of the ith virtual port is an internet protocol IP address of the ith virtual port; or the network address of the ith virtual network port is the media access control MAC address of the ith virtual network port.
In a sixth aspect, there is provided a first device comprising: the interface unit is used for receiving at least one parameter set group, each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes of the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the processing unit is used for selecting a network address of an ith virtual network port from a network address resource pool of the virtual network port according to an ith parameter set in a jth parameter set group, wherein the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, a value of the network address of the ith virtual network port at a target position of a result obtained after operation based on a Hash algorithm is equal to an effective value of the first parameter included in the ith parameter set, the target position is the same as a position where the effective value of the first parameter included in the ith parameter set is located, j takes m positive integers which are continuous from 1 to m, m is the total number of at least one parameter set group, i takes n positive integers which are continuous from 1 to n, and n is the total number of the parameter set included in the jth parameter set group; determining the number of a physical network port to which the ith virtual network port needs to be associated based on a preset algorithm according to the network address of the ith virtual network port; and then, the ith virtual network port is associated to the physical network port corresponding to the determined number.
In a seventh aspect, a second device is provided, including: the interface unit is used for acquiring a first file, the first file comprises at least one logic plane set and at least one inverse affinity parameter, logic planes in each logic plane set in the at least one logic plane set are logic planes of the same service type, the service types of the logic planes in different logic plane sets are different, the jth inverse affinity parameter in the at least one inverse affinity parameter is used for indicating a logic plane to which a virtual network port belongs, j is a continuous m positive integers from 1 to m, and m is the total number of the inverse affinity parameters; the processing unit is used for respectively determining the number of at least one virtual network port and the total number of the virtual network ports of which the logic planes belong to the same logic plane set according to at least one logic plane set and at least one inverse affinity parameter; determining at least one parameter set group according to the number of at least one virtual network port and the total number of the virtual network ports of the same logic plane set of each logic plane; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of one virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the interface unit is further configured to transmit at least one parameter set group.
In a possible implementation manner, based on the seventh aspect, the first file is a VNFD.
In an eighth aspect, there is provided a third apparatus comprising: the device comprises a determining unit and a generating unit, wherein the determining unit is used for determining a logic plane to which at least one virtual network port belongs, and the at least one virtual network port is a virtual network port which needs to be associated with a corresponding physical network port; grouping at least one virtual network port according to a logic plane to which the at least one virtual network port belongs, wherein the logic planes to which the virtual network ports belonging to the same group belong are in the same logic plane set, the logic planes in the logic plane set are logic planes of the same service type, and the service types of the logic planes in different logic plane sets are different; respectively numbering each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different; then, determining at least one inverse affinity parameter for the number of each virtual network port in the virtual network ports belonging to the same group, wherein each inverse affinity parameter in the at least one inverse affinity parameter is used for indicating a logical plane to which one virtual network port in the at least one virtual network port belongs; the generating unit is used for generating a first file according to the determined at least one inverse affinity parameter set, wherein the first file comprises at least one logic plane set and at least one inverse affinity parameter.
A ninth aspect provides a virtual network system, which includes any one of the first device provided in the fifth aspect, any one of the second device provided in the seventh aspect, and the third device provided in the eighth aspect.
A tenth aspect provides a virtual network system, including the first device provided in the sixth aspect, any one of the second devices provided in the seventh aspect, and the third device provided in the eighth aspect.
Drawings
FIG. 1 is a schematic diagram of an NFV system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for deploying a virtual network according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for deploying a virtual network according to an embodiment of the present application;
FIG. 4a is a schematic structural diagram of a first apparatus according to an embodiment of the present disclosure;
fig. 4b is a schematic hardware structure diagram of a first device according to an embodiment of the present application;
FIG. 5a is a schematic structural diagram of a second apparatus according to an embodiment of the present disclosure;
fig. 5b is a schematic hardware structure diagram of a second device according to an embodiment of the present application;
FIG. 6a is a schematic structural diagram of a third apparatus according to an embodiment of the present application;
fig. 6b is a schematic hardware structure diagram of a third device according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a virtual network system according to an embodiment of the present application;
FIG. 8a is a schematic structural diagram of a first apparatus according to an embodiment of the present disclosure;
fig. 8b is a schematic hardware structure diagram of a first device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a virtual network system according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the present application is applied to the NFV system 10 shown in fig. 1, where the NFV system 10 may be applied to various networks, such as a data center network, an operator network, or a local area network.
Specifically, the NFV System 10 includes an NFV-MANO (NFV Management and organization) 101, an NFVI (NFV Infrastructure layer) 130, at least one VNF (virtual network Function) 108, at least one EM (Element Management) 122, an OSS/BSS (Operation-Support System/Business Support System) 124, and a network service, a VNF, and an Infrastructure description 126. Among other things, the NFV-MANO101 includes an NFVO (NFV orchestrator) 102, at least one VNFM (VNF Manager) 104, and a VIM (Virtualized Infrastructure Manager) 106.
It should be noted that the network services, VNF and infrastructure description 126, and the specific functions of the OSS/BSS124 are described in ETSI GS NFV 002V1.1.1 standard.
NFVO102 may implement Network services (e.g., L (L layer) 2, L3 VPN (Virtual Private Network) services) on NFVI130, may also perform resource-related requests from one or more VNFMs 104, send configuration information to VNFMs 104, and collect status information of VNFs 108. additionally, NFVO102 may communicate with a VIM to implement allocation and/or reservation of resources, and exchange configuration and status information of virtualized hardware resources.
NFVI130 includes a virtual resource layer, a virtualization layer, and a hardware resource layer, where the virtual resource layer includes: virtual computing 110, virtual storage 118, and virtual network 120, the hardware resource layer including computing hardware 112, storage hardware 114, and network hardware 116; the hardware resource layer and the virtualization layer are used to provide virtualized resources, e.g., as virtual machines and other forms of virtual containers, for implementing VNF 108. It should be understood that the computing hardware 112 may be commercially available hardware and/or custom hardware to provide processing and computing resources; the storage hardware 114 may be increased storage capacity within the network or storage capacity residing on the storage hardware 114 itself (local storage located within the server); the resources of the computing hardware 112 and the storage hardware 114 may be centralized. The network hardware 116 may span multiple domains and may include devices in a network interconnected by one or more transport networks. The virtualization layer may abstract the hardware resource layer as a virtual resource layer to provide virtualized resources to VNF 108. Virtual computing 110 and Virtual storage 118 may be provided to VNF108 in the form of Virtual machines, and/or other Virtual containers, and in particular implementations, one or more VNFs may be deployed on one VM (Virtual Machine). The virtualization layer abstracts the Network hardware 116 to form a virtual Network 120, and the virtual Network 120 may include a VS (virtual switch) for connecting VMs in the NFV system 10, and the transport Network in the Network hardware 116 may be virtualized using a centralized control plane and a single forwarding plane (e.g., SDN (Software Defined Network)).
As shown in fig. 1, VNFM104 may interact with VNF108 and EM122 to manage the lifecycle of VNF108 and exchange configuration and status information. VNF108 may be configured to virtualize at least one network function performed by one physical network device. For example, in one implementation, VNF108 may be configured to provide functionality provided by different network elements in an IMS (IP multimedia Subsystem) network, such as P-CSCF (P-Call Session Control Function), S-CSCF or HSS (Home subscriber server), etc. EM122 is configured to manage one or more VNFs 108.
With the NFV system 10 shown in fig. 1, a conventional communication mechanism is reserved for the virtual machine, after the communication quality of the logical plane currently communicating is poor, for example, the logical plane has a phenomenon of packet drop or packet error, the communication is switched to another logical plane, taking the logical plane as a Base plane as an example, assuming that the NFV system includes two Base planes, namely B1 and B2, if the plane currently communicating is B1, after the communication quality of the B1 communication is poor, the communication is switched to B2 for improving the communication quality, however, in the conventional communication, different logical planes respectively correspond to different physical network ports, because the physical device is virtualized in the NFV system, a virtual network port is introduced, when the virtual network port is associated with a physical network port, it is possible that different virtual network ports are associated to the same physical network port, and different virtual network ports usually belong to different logical planes, this results in that the same physical network belongs to the same logical plane, and the problem that the communication quality cannot be improved by switching to another logical plane after the communication quality of the current logical plane becomes poor is caused.
In order to associate different virtual network ports to different physical network ports, as shown in fig. 2, an embodiment of the present application provides a method for virtual network deployment, including:
step 200, the third device determines a logical plane to which at least one virtual network port belongs, where the at least one virtual network port is a virtual network port that needs to be associated with a corresponding physical network port.
Step 201, the third device groups at least one virtual network port according to a logical plane to which the at least one virtual network port belongs, wherein the logical planes to which the virtual network ports belonging to the same group belong are in the same logical plane set, the logical planes in the logical plane set are logical planes of the same service type, and the service types of the logical planes in different logical plane sets are different.
Step 202, the third device numbers each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different.
Step 203, the third device determines at least one anti-affinity parameter for the number of each virtual port in each virtual port belonging to the same group, where each anti-affinity parameter in the at least one anti-affinity parameter is used to indicate a logical plane to which one virtual port in the at least one virtual port belongs.
Step 204, the third device generates a first file according to the determined at least one inverse affinity parameter set, where the first file includes at least one logical plane set and at least one inverse affinity parameter.
In step 205, the second device obtains the first file.
Step 206, the second device determines the number of at least one virtual network port and the total number of virtual network ports of the same logical plane set belonging to the logical plane according to the at least one logical plane set and the at least one inverse affinity parameter;
step 207, the second device determines at least one parameter set group according to the number of at least one virtual network port and the total number of virtual network ports of the same logic plane set of each belonging logic plane; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of one virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different.
In step 208, the second device transmits at least one parameter set group.
At step 209, the first device receives at least one parameter set group.
Step 210, the first device modifies a value at a target position in the first sequence to be an effective value in a first parameter included in an ith parameter set according to a second parameter included in the ith parameter set in the jth parameter set group to obtain a second sequence, the target position is the same position as the position of the effective value in the first parameter included in the ith parameter set, the first sequence is obtained based on a Hash algorithm according to a network address of an ith virtual network port, the ith virtual network port is a virtual network port corresponding to a number indicated by the first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter set included in the jth parameter set group;
step 211, the first device determines, according to the second sequence and a third parameter, a number of a physical network port to which the ith virtual network port needs to be associated, where the third parameter is used to indicate a total number of physical network ports supporting a service type of a logical plane to which the ith virtual network port belongs;
in step 212, the first device associates the ith virtual network port with the physical network port corresponding to the determined number.
Taking the NFV shown in fig. 1 as an example, the first device may be a VSwitch (virtual switch) in the virtual network 120, the second device may be a VIM, or a new device newly added to the NFV system shown in fig. 1 and connected to the VIM, the third device may be an OSS/BSS or a VNFM, when the third device is an OSS/BSS, the first file may be a VNFD or a new file, and when the third device is a VNFM, the first file is a new file.
Specifically, when the first device modifies the value at the target position in the first sequence to a valid value in the first parameter included in the ith parameter set, the following expression is satisfied:
Figure BDA0001214046740000081
wherein, P1Representing a first parameter, P, included in the ith set of parameters2Representing a second parameter, P, included in the ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
Specifically, G2Represents a pair P0Middle P2Is set to 0, e.g. P0=0xFF,P2When the result is 001, G211111111 ^ 00000001 ═ 11111110, and then X is passed1&G2That is, the first sequence X1The position where the corresponding valid value represented by P2 is set to 0, i.e., the original value is erased and then the value is passed through or G1Then P is added2Indicated P1The value at the position of the middle effective value is merged into the first sequence and is combined with P1The second sequence is formed at the same position as the position of the middle effective value.
Wherein to increase the number of virtual ports, P, determined simultaneously to be associated to a physical port00xFF may be taken.
In this embodiment, specifically, the first device determines a number No. of a physical port to which the ith virtual port needs to be associated, and the number No. conforms to the following expression:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
It should be noted that, in this embodiment of the present application, a network address of an ith virtual network port is an IP address of the ith virtual network port; or the network address of the ith virtual network port is the MAC address of the ith virtual network port.
The following description will take an example in which the logical plane includes logical planes of two service types and 4 virtual network ports need to be associated with 4 physical network ports.
Assuming that the logical planes of the two traffic types are the Base plane and the Fabric plane respectively, wherein, the Base plane set includes B1 and B2, the Fabric plane set includes F1 and F2, if the logical plane of virtual socket 1 is B1, the logical plane of virtual socket 2 is B2, the logical plane of virtual socket 3 is F1, the logical plane of virtual socket 4 is F2, the logical plane sets are respectively Base plane set { B1, B2}, Fabric plane set { F1, F2}, the anti-affinity parameter of the virtual portal 1 is vNIC1 anti-affinity set, B1, wherein, the virtual network port 1 is vNIC1, the similar virtual network port 2 is vNIC2, the virtual network port 3 is vNIC3, the virtual network port 4 is vNIC4, then vNIC2, inverse affinity Base _ anti affinity set.b2, vNIC3, inverse affinity Fabric _ anti affinity set.f1, vNIC4, inverse affinity Fabric _ anti affinity set.f2, the first file is composed of the set of logical planes and the inverse affinity parameters.
After obtaining the first file, the second device determines a parameter set of the vNIC, where the parameter set of the vNIC is { B, B }, based on the Base plane set, { B, vNIC inverse affinity set.b1, vNIC inverse affinity set.b2, and the parameter set of the vNIC is { P, P }, where P is 000, P is 001, the parameter set of the vNIC is { P, P }, where P is 001, the parameter set of the vNIC is F, P is F1, and the parameter set of the vNIC inverse affinity set is Fabric _ inverse affinity set, P is 001, P is P, P is set, where P is 001, the parameter set of the vNIC is P001, P is set, where P is one-bit, P is set, where P is one-P is a set, P is one-P is set.
Taking vNIC2 as an example, assume that a first sequence is derived based on a Hash algorithm based on the IP address of vNIC2, assume, for example, a first sequence X1XXXX, where X may be either 1 or 0, X1Wherein X at each position may be the same or different, P21&P22=001&001 to 001, P21&P22 is represented as 8-bit 2-system, i.e. P21&P22 ═ 00000001, with P00xFF as an example, P0^P22=1111 1111&001=1111 1110,X2=(XXXX XXXX&11111110) |00000001 ═ XXXX XXX0| 00000001 ═ XXXX XXX1, and therefore the last bit of the first sequence is modified by the algorithm of the embodiments of the present application to be the value 1 on the bit where the valid value in P22 is located.
Finally according to XXXX XXX1mod P3Obtaining objects to which a virtual network interface vNIC2 needs to be associatedAnd numbering the net managing ports.
Wherein, P3For indicating the total number of physical network ports supporting the Base plane service, if the total number of physical network ports supporting the Base plane service is 2, P3If one of the physical network ports supports both Base plane service and Fabric plane service, when determining the number of the physical network port associated with the virtual network port belonging to the Base plane, the determined P is3Including the physical network port, when determining the number of the physical network port related to the virtual network port belonging to the Fabric plane, the determined P3Also included in the network interface.
Since the numbers of the virtual network ports belonging to the same service plane are different, the determined second sequences are also different, and thus the physical network ports belonging to the same service plane and associated with different virtual network ports are different.
In addition, after performing steps 200 to 209 in the first embodiment of the present application, a new virtual network deployment method is further provided, and specifically, as shown in fig. 3, the method for virtual network deployment in the second embodiment of the present application includes:
step 300, the first device selects a network address of an ith virtual network port from a network address resource pool of the virtual network port according to an ith parameter set in a jth parameter set group, wherein the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, a value of the network address of the ith virtual network port at a target position of a result obtained after Hash algorithm-based operation is equal to an effective value in the first parameter included in the ith parameter set, the target position is the same as a position where the effective value in the first parameter included in the ith parameter set is located, j takes m positive integers which are continuous from 1 to m, m is the total number of at least one parameter set group, i takes n positive integers which are continuous from 1 to n, and n is the total number of the parameter set included in the jth parameter set group;
step 301, the first device determines, according to the network address of the ith virtual network port and based on a preset algorithm, the number of a physical network port to which the ith virtual network port needs to be associated;
step 302, the first device associates the ith virtual network port to the physical network port corresponding to the determined number.
In this embodiment of the present application, the network address of the ith virtual network port may be an IP address, a MAC address, or another network address, which is not limited herein.
Based on the same concept, the present application embodiment further provides a first device shown in fig. 4a, a second device shown in fig. 5a, a third device shown in fig. 6a, and a virtual network system shown in fig. 7, where as the methods corresponding to the first device shown in fig. 4a, the second device shown in fig. 5a, the third device shown in fig. 6a, and the virtual network system shown in fig. 7 in the present application embodiment are methods for deploying a virtual network shown in fig. 2 in the present application embodiment, the implementation of the apparatus in the present application embodiment may refer to the implementation of the methods, and repeated parts are not described again.
As shown in fig. 4a, a first device 400a according to an embodiment of the present application includes an interface unit 410a and a processing unit 420a, where the interface unit 410a is configured to receive at least one parameter set group, each parameter set group includes at least one parameter set, each parameter set includes a first parameter and a second parameter, respectively, where the first parameter is used to indicate a number of a virtual network port, the second parameter is used to indicate a position of a valid value in the first parameter that belongs to the same parameter set as the second parameter, a logical plane to which a virtual network port corresponding to a number indicated by the first parameter that belongs to the same parameter set group belongs is of the same service type, and numbers indicated by the first parameters that belong to the same parameter set group are different; the processing unit 420a is configured to modify a value at a target position in the first sequence to be an effective value in a first parameter included in an ith parameter set according to a second parameter included in the ith parameter set in the jth parameter set group, to obtain a second sequence, where the target position is a position that is the same as a position where the effective value in the first parameter included in the ith parameter set is located, the first sequence is obtained based on a Hash algorithm according to a network address of an ith virtual portal, the ith virtual portal is a virtual portal corresponding to a number indicated by the first parameter included in the ith parameter set, j takes m positive integers consecutive from 1 to m, m is a total number of at least one parameter set group, i takes n positive integers consecutive from 1 to n, and n is a total number of parameter sets included in the jth parameter set group; determining the number of the physical network ports to which the ith virtual network port needs to be associated according to the second sequence and a third parameter, wherein the third parameter is used for indicating the total number of the physical network ports supporting the service type of the logic plane to which the ith virtual network port belongs; and then, the ith virtual network port is associated to the physical network port corresponding to the determined number.
In a possible implementation manner, the processing unit 420a modifies the value at the target position in the first sequence to a valid value in the first parameter included in the ith parameter set, according to the following expression:
Figure BDA0001214046740000111
wherein, P1Representing a first parameter, P, included in the ith set of parameters2Representing a second parameter, P, included in the ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
In one possible implementation, the processing unit 420a determines the number No. of the physical port to which the ith virtual port needs to be associated, and conforms to the following expression:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
In a possible implementation manner, the network address of the ith virtual port is an internet protocol IP address of the ith virtual port; or the network address of the ith virtual network port is the media access control MAC address of the ith virtual network port.
The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of physical units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the embodiments of the apparatus provided in the present application, the connection relationship between the units indicates that there is a communication connection therebetween, and may be implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
In the embodiment of the present application, the interface unit 410a corresponds to a communication interface in the entity device, and the processing unit 420a corresponds to a processor in the entity device, wherein the hardware structure diagram of the first device 400b shown in fig. 4b includes the processor 410b, the communication interface 420b, and the memory 430 b. The memory 430b may be used to store a program/code preinstalled when the first device 400b leaves a factory, may also store a program for executing the embodiment of the present application, so as to be executed by the processor 410b, and may also store other programs executed by the processor 410 b.
The processor 410b may be a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits, configured to execute related operations to implement the technical solution provided in the embodiments of the present Application.
It should be noted that although the first device 400b shown in fig. 4b only shows the processor 410b, the communication interface 420b and the memory 430b, in a specific implementation, it should be understood by those skilled in the art that the first device 400b also contains other components necessary for normal operation. Also, the first device 400b may comprise hardware components for performing other additional functions, as may be apparent to those skilled in the art, according to particular needs. Furthermore, it should be understood by those skilled in the art that the first device 400b may also comprise only the devices or modules necessary to implement the embodiments of the present application, and need not comprise all of the devices shown in fig. 4 b.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), or the like.
Through the above description of the embodiments, those skilled in the art will clearly understand that the drawing device described in the embodiments of the present application can be implemented by software plus necessary general-purpose hardware, and of course, can also be implemented by special-purpose hardware including an application-specific integrated circuit, a special-purpose CPU, a special-purpose memory, a special-purpose component, and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits.
As shown in fig. 5a, a second apparatus 500a according to an embodiment of the present application includes: an interface unit 510a and a processing unit 520a, where the interface unit 510a is configured to obtain a first file, the first file includes at least one logic plane set and at least one inverse affinity parameter, where a logic plane in each logic plane set in the at least one logic plane set is a logic plane of the same service type, the service types of the logic planes in different logic plane sets are different, a jth inverse affinity parameter in the at least one inverse affinity parameter is used to indicate a logic plane to which a virtual network port belongs, j takes m consecutive positive integers from 1 to m, and m is a total number of inverse affinity parameters; the processing unit 520a is configured to determine, according to at least one logic plane set and at least one inverse affinity parameter, a number of at least one virtual network port and a total number of virtual network ports, where the logic planes belong to the same logic plane set; determining at least one parameter set group according to the number of at least one virtual network port and the total number of the virtual network ports of the same logic plane set of each logic plane; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of one virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different; the interface unit is further configured to transmit at least one parameter set group.
In one possible implementation, the first file is a VNFD.
The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of physical units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the embodiments of the apparatus provided in the present application, the connection relationship between the units indicates that there is a communication connection therebetween, and may be implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
In this embodiment of the application, the interface unit 510a corresponds to a communication interface in the entity device, and the processing unit 520a corresponds to a processor in the entity device, wherein the hardware structure diagram of the second device 500b shown in fig. 5b includes the processor 510b, the communication interface 520b, and the memory 530 b. The memory 530b may be configured to store a program/code preinstalled in the factory of the second device 500b, may also store a program for executing the embodiment of the present application, so as to be executed by the processor 510b, and may also store other programs executed by the processor 510 b.
The processor 510b may be a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits, and is configured to execute relevant operations to implement the technical solutions provided in the embodiments of the present application.
It should be noted that although the second device 500b shown in fig. 5b only shows the processor 510b, the communication interface 520b and the memory 530b, in a specific implementation, it should be understood by those skilled in the art that the second device 500b also contains other components necessary for normal operation. Also, the second device 500b may comprise hardware components for implementing other additional functions, as would be apparent to one skilled in the art according to particular needs. Furthermore, it should be understood by those skilled in the art that the second apparatus 500b may also comprise only the devices or modules necessary for implementing the embodiments of the present application, and not necessarily all of the devices shown in fig. 5 b.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM, a RAM, or the like.
Through the above description of the embodiments, those skilled in the art will clearly understand that the drawing device described in the embodiments of the present application can be implemented by software plus necessary general-purpose hardware, and of course, can also be implemented by special-purpose hardware including an application-specific integrated circuit, a special-purpose CPU, a special-purpose memory, a special-purpose component, and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits.
As shown in fig. 6a, a third apparatus 600a according to an embodiment of the present application includes: a determining unit 610a and a generating unit 620a, where the determining unit 610a is configured to determine a logical plane to which at least one virtual network port belongs, and the at least one virtual network port is a virtual network port that needs to be associated with a corresponding physical network port; grouping at least one virtual network port according to a logic plane to which the at least one virtual network port belongs, wherein the logic planes to which the virtual network ports belonging to the same group belong are in the same logic plane set, the logic planes in the logic plane set are logic planes of the same service type, and the service types of the logic planes in different logic plane sets are different; respectively numbering each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different; then, determining at least one inverse affinity parameter for the number of each virtual network port in the virtual network ports belonging to the same group, wherein each inverse affinity parameter in the at least one inverse affinity parameter is used for indicating a logical plane to which one virtual network port in the at least one virtual network port belongs; the generating unit 620a is configured to generate a first file according to the determined at least one inverse affinity parameter set, where the first file includes at least one logical plane set and at least one inverse affinity parameter.
The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of physical units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the embodiments of the apparatus provided in the present application, the connection relationship between the units indicates that there is a communication connection therebetween, and may be implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
In this embodiment of the application, the determining unit 610a and the generating unit 620a correspond to processors in entity devices, wherein a hardware structure diagram of the third device 600b shown in fig. 6b includes the processor 610b, the communication interface 620b, and the memory 630 b. The memory 630b may be configured to store a program/code preinstalled when the third device 600b leaves a factory, store a program for executing the embodiment of the present application, and be executed by the processor 610b, and store other programs executed by the processor 610 b.
The processor 610b may be a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits, and is configured to execute relevant operations to implement the technical solutions provided in the embodiments of the present application.
It should be noted that although the third device 600b shown in fig. 6b only shows the processor 610b, the communication interface 620b and the memory 630b, in a specific implementation, it should be understood by those skilled in the art that the third device 600b also contains other components necessary for normal operation. Meanwhile, it will be apparent to those skilled in the art that the third device 600b may also comprise hardware components for implementing other additional functions according to specific needs. Furthermore, it should be understood by those skilled in the art that the third device 600b may also comprise only the components or modules necessary for implementing the embodiments of the present application, and not necessarily all of the components shown in fig. 6 b.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM, a RAM, or the like.
Through the above description of the embodiments, those skilled in the art will clearly understand that the drawing device described in the embodiments of the present application can be implemented by software plus necessary general-purpose hardware, and of course, can also be implemented by special-purpose hardware including an application-specific integrated circuit, a special-purpose CPU, a special-purpose memory, a special-purpose component, and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits.
As shown in fig. 7, the virtual network system 700 according to the embodiment of the present application includes a first device 400a, a second device 500a, and a third device 600 a.
Based on the same concept, the embodiment of the present application further provides the first device shown in fig. 8a and the virtual network system shown in fig. 9, and since the method corresponding to the first device shown in fig. 8a and the virtual network system shown in fig. 9 in the embodiment of the present application is the method for deploying the virtual network shown in fig. 3 in the embodiment of the present application, reference may be made to the implementation of the method for implementing the apparatus in the embodiment of the present application, and repeated parts are not described again.
As shown in fig. 8a, a first apparatus 800a according to an embodiment of the present application includes: an interface unit 810a and a processing unit 820a, where the interface unit 810a is configured to receive at least one parameter set group, each parameter set group includes at least one parameter set, each parameter set includes a first parameter and a second parameter, respectively, where the first parameter is used to indicate a number of a virtual network port, the second parameter is used to indicate a position where an effective value in the first parameter belongs to the same parameter set as the second parameter, a logical plane to which a virtual network port corresponding to the number indicated by the first parameter in the same parameter set group belongs is of the same service type, and numbers indicated by the first parameters in the same parameter set group are different; the processing unit 820a is configured to select a network address of an ith virtual network port from a network address resource pool of the virtual network port according to an ith parameter set in a jth parameter set group, where the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, a value of the network address of the ith virtual network port at a target position of a result obtained after a Hash algorithm operation is equal to an effective value in the first parameter included in the ith parameter set, the target position is the same as a position where the effective value in the first parameter included in the ith parameter set is located, j takes m positive integers consecutive from 1 to m, m is the total number of at least one parameter set group, i takes n positive integers consecutive from 1 to n, and n is the total number of parameter sets included in the jth parameter set group; determining the number of a physical network port to which the ith virtual network port needs to be associated based on a preset algorithm according to the network address of the ith virtual network port; and then, the ith virtual network port is associated to the physical network port corresponding to the determined number.
The above-described embodiments of the apparatus are merely illustrative, wherein the units described as separate parts may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of physical units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the embodiments of the apparatus provided in the present application, the connection relationship between the units indicates that there is a communication connection therebetween, and may be implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
In this embodiment, the interface unit 810a corresponds to a communication interface in the entity device, and the processing unit 820a corresponds to a processor in the entity device, wherein the hardware structure diagram of the first device 800b shown in fig. 8b includes the processor 810b, the communication interface 820b, and the memory 830 b. The memory 830b may be configured to store a program/code preinstalled when the first device 800b leaves a factory, store a program for executing the embodiment of the present application, and be executed by the processor 810b, and store other programs executed by the processor 810 b.
The processor 810b may be a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits, and is configured to execute relevant operations to implement the technical solutions provided in the embodiments of the present application.
It should be noted that although the first device 800b shown in fig. 8b only shows the processor 810b, the communication interface 820b and the memory 830b, in a specific implementation, it should be understood by those skilled in the art that the first device 800b also contains other components necessary for normal operation. Also, the first device 800b may comprise hardware components for performing other additional functions, as may be apparent to those skilled in the art, according to particular needs. Furthermore, it should be understood by those skilled in the art that the first device 800b may also include only the devices or modules necessary to implement the embodiments of the present application, and need not include all of the devices shown in fig. 8 b.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM, a RAM, or the like.
Through the above description of the embodiments, those skilled in the art will clearly understand that the drawing device described in the embodiments of the present application can be implemented by software plus necessary general-purpose hardware, and of course, can also be implemented by special-purpose hardware including an application-specific integrated circuit, a special-purpose CPU, a special-purpose memory, a special-purpose component, and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits.
As shown in fig. 9, the virtual network system 900 according to the embodiment of the present application includes a first device 800a, a second device 500a, and a third device 600 a.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A method of virtual network deployment, comprising:
the method comprises the steps that first equipment receives at least one parameter set group, each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters in the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters in the same parameter set group are different;
the first device modifies the value of the target position in the first sequence into the effective value of the first parameter in the ith parameter set according to the second parameter in the ith parameter set in the jth parameter set group to obtain a second sequence, the target position is the same position as the position of the effective value in the first parameter included in the ith parameter set, the first sequence is obtained based on Hash algorithm according to the network address of the ith virtual network port, the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of the at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter sets included in the jth parameter set group; the first device determines, according to the second sequence and a third parameter, a number of a physical network port to which the ith virtual network port needs to be associated, where the third parameter is used to indicate a total number of physical network ports that support a service type of a logical plane to which the ith virtual network port belongs;
the first equipment associates the ith virtual internet access to the physical internet access corresponding to the determined number;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
2. The method of claim 1, wherein the first device modifies the value at the target location in the first sequence to a valid value in the first parameter included in the ith set of parameters, according to the following expression:
Figure FDA0002418202990000011
wherein, P1To representA first parameter, P, included in the ith parameter set2Representing a second parameter, P, included in said ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
3. The method of claim 1 or 2, wherein the first device determines a number No. of a physical port to which the i-th virtual port needs to be associated, according to the following expression:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
4. The method of claim 1 or 2, wherein the network address of the ith virtual portal is an internet protocol, IP, address of the ith virtual portal; or, the network address of the ith virtual network port is the media access control MAC address of the ith virtual network port.
5. A method of virtual network deployment, comprising:
the method comprises the steps that first equipment receives at least one parameter set group, each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters in the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters in the same parameter set group are different;
the first device selects the network address of the ith virtual network port from the network address resource pool of the virtual network port according to the ith parameter set in the jth parameter set group, wherein the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, the value of the network address of the ith virtual network port at the target position of the result obtained after the operation based on the Hash algorithm is equal to the effective value in the first parameter included in the ith parameter set, the target position is the same as the position of the effective value in the first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of the at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter sets included in the jth parameter set group;
the first equipment determines the number of a physical network port to which the ith virtual network port needs to be associated based on a preset algorithm according to the network address of the ith virtual network port;
the first equipment associates the ith virtual internet access to the physical internet access corresponding to the determined number;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
6. A method of generating parameters, comprising:
the method comprises the steps that a second device obtains a first file, wherein the first file comprises at least one logic plane set and at least one inverse affinity parameter, logic planes in each logic plane set in the at least one logic plane set are logic planes of the same service type, the service types of the logic planes in different logic plane sets are different, the jth inverse affinity parameter in the at least one inverse affinity parameter is used for indicating the logic plane to which a virtual network port belongs, j takes m continuous positive integers from 1 to m, and m is the total number of the inverse affinity parameters;
the second device respectively determines the number of at least one virtual network port and the total number of the virtual network ports of which the logic planes belong to the same logic plane set according to the at least one logic plane set and the at least one inverse affinity parameter;
the second equipment determines at least one parameter set group according to the number of at least one virtual network port and the total number of the virtual network ports of the same logic plane set of each logic plane to which the second equipment belongs; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different;
the second device transmitting the at least one parameter set group;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
7. The method of claim 6, wherein the first file is a Virtual Network Function Description (VNFD).
8. A method of generating a file, comprising:
the third equipment determines a logic plane to which at least one virtual network port belongs, wherein the at least one virtual network port is a virtual network port which needs to be associated with a corresponding physical network port;
the third device groups the at least one virtual network port according to a logical plane to which the at least one virtual network port belongs, wherein the logical planes to which the virtual network ports belonging to the same group belong are in the same logical plane set, the logical planes in the logical plane set are logical planes of the same service type, and the service types of the logical planes in different logical plane sets are different; the number of the logic planes of the same service type is less than or equal to the number of the physical network ports of the logic planes supporting the service type;
the third equipment respectively numbers each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different;
the third device determines at least one anti-affinity parameter for the number of each virtual port in each virtual port belonging to the same group, wherein each anti-affinity parameter in the at least one anti-affinity parameter is used for indicating a logical plane to which one virtual port in the at least one virtual port belongs;
and the third equipment generates a first file according to the determined at least one inverse affinity parameter set, wherein the first file comprises at least one logic plane set and at least one inverse affinity parameter.
9. A first device, comprising:
an interface unit, configured to receive at least one parameter set group, where each parameter set group includes at least one parameter set, and each parameter set includes a first parameter and a second parameter, where the first parameter is used to indicate a number of a virtual network port, the second parameter is used to indicate a position of an effective value in the first parameter that belongs to the same parameter set as the second parameter, a logical plane to which a virtual network port corresponding to the number indicated by the first parameter that belongs to the same parameter set group belongs is of the same service type, and the numbers indicated by the first parameters that belong to the same parameter set group are different;
a processing unit, configured to modify a value at a target position in a first sequence to an effective value in a first parameter included in an ith parameter set according to a second parameter included in the ith parameter set in the jth parameter set group, to obtain a second sequence, the target position is the same position as the position of the effective value in the first parameter included in the ith parameter set, the first sequence is obtained based on Hash algorithm according to the network address of the ith virtual network port, the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of the at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter sets included in the jth parameter set group; determining the number of the physical network ports to which the ith virtual network port needs to be associated according to the second sequence and a third parameter, wherein the third parameter is used for indicating the total number of the physical network ports supporting the service type of the logic plane to which the ith virtual network port belongs; then, the ith virtual internet access is associated to the physical internet access corresponding to the determined number;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
10. The first device of claim 9, wherein the processing unit modifies the value at the target location in the first sequence to a valid value in the first parameter included in the ith set of parameters, according to the following expression:
Figure FDA0002418202990000031
wherein, P1Representing a first parameter, P, included in said ith set of parameters2Representing a second parameter, P, included in said ith set of parameters0Constant, X, representing all bits as 11Denotes a first sequence, X2Denotes a second sequence, G1Represents P1And P2And result after operation, G2Represents P0And P2And (4) performing exclusive or operation on the result.
11. The first device of claim 9 or 10, wherein the processing unit determines a number No. of a physical port to which the i-th virtual port needs to be associated, according to the following expression:
No.=X2modP3
wherein, X2Denotes a second sequence, P3Representing a third parameter.
12. The first device of claim 9 or 10, wherein the network address of the ith virtual portal is an internet protocol, IP, address of the ith virtual portal; or, the network address of the ith virtual network port is the media access control MAC address of the ith virtual network port.
13. A first device, comprising:
an interface unit, configured to receive at least one parameter set group, where each parameter set group includes at least one parameter set, and each parameter set includes a first parameter and a second parameter, where the first parameter is used to indicate a number of a virtual network port, the second parameter is used to indicate a position of an effective value in the first parameter that belongs to the same parameter set as the second parameter, a logical plane to which a virtual network port corresponding to the number indicated by the first parameter that belongs to the same parameter set group belongs is of the same service type, and the numbers indicated by the first parameters that belong to the same parameter set group are different;
a processing unit, configured to select a network address of an ith virtual network port from a network address resource pool of the virtual network port according to an ith parameter set in the jth parameter set group, wherein the ith virtual network port is a virtual network port corresponding to a number indicated by a first parameter included in the ith parameter set, the value of the network address of the ith virtual network port at the target position of the result obtained after the operation based on the Hash algorithm is equal to the effective value in the first parameter included in the ith parameter set, the target position is the same as the position of the effective value in the first parameter included in the ith parameter set, j takes m continuous positive integers from 1 to m, m is the total number of the at least one parameter set group, i takes n continuous positive integers from 1 to n, and n is the total number of the parameter sets included in the jth parameter set group; determining the number of the physical network port to which the ith virtual network port needs to be associated based on a preset algorithm according to the network address of the ith virtual network port; then, the ith virtual internet access is associated to the physical internet access corresponding to the determined number;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
14. A second apparatus, comprising:
an interface unit, configured to obtain a first file, where the first file includes at least one logic plane set and at least one inverse affinity parameter, where a logic plane in each logic plane set in the at least one logic plane set is a logic plane of the same service type, the service types of logic planes in different logic plane sets are different, a jth inverse affinity parameter in the at least one inverse affinity parameter is used to indicate a logic plane to which a virtual network port belongs, j is a consecutive m positive integers from 1 to m, and m is a total number of inverse affinity parameters;
the processing unit is used for respectively determining the number of at least one virtual network port and the total number of the virtual network ports of which the logic planes belong to the same logic plane set according to the at least one logic plane set and the at least one inverse affinity parameter; determining at least one parameter set group according to the number of at least one virtual network port and the total number of the virtual network ports of the same logic plane set of each logic plane; each parameter set group comprises at least one parameter set, each parameter set comprises a first parameter and a second parameter respectively, the first parameter is used for indicating the number of a virtual network port, the second parameter is used for indicating the position of an effective value in the first parameter which belongs to the same parameter set with the second parameter, the logic planes to which the virtual network ports corresponding to the numbers indicated by the first parameters belonging to the same parameter set group belong are of the same service type, and the numbers indicated by the first parameters belonging to the same parameter set group are different;
the interface unit is further configured to send the at least one parameter set group;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
15. The second device of claim 14, wherein the first file is a Virtual Network Function Description (VNFD).
16. A third apparatus, comprising:
a determining unit, configured to determine a logical plane to which at least one virtual portal belongs, where the at least one virtual portal is a virtual portal that needs to be associated with a corresponding physical portal; grouping the at least one virtual network port according to the logic plane to which the at least one virtual network port belongs, wherein the logic planes to which the virtual network ports belonging to the same group belong are in the same logic plane set, the logic planes in the logic plane set are the logic planes of the same service type, and the service types of the logic planes in different logic plane sets are different; respectively numbering each virtual network port in each group of virtual network ports, wherein the numbers of the virtual network ports belonging to the same group are different; then, determining at least one inverse affinity parameter for the number of each virtual network port in each virtual network port belonging to the same group, wherein each inverse affinity parameter in the at least one inverse affinity parameter is used for indicating a logical plane to which one virtual network port in the at least one virtual network port belongs;
the generating unit is used for generating a first file according to the determined at least one inverse affinity parameter set, wherein the first file comprises at least one logic plane set and at least one inverse affinity parameter;
the number of the logical planes of the same service type is less than or equal to the number of the physical network ports of the logical planes supporting the service type.
17. A virtual network system comprising a first device according to any one of claims 9 to 12, a second device according to claim 14 or 15 and a third device according to claim 16.
18. A virtual network system comprising a first device according to claim 13, a second device according to claim 14 or 15 and a third device according to claim 16.
CN201710044336.1A 2017-01-19 2017-01-19 Method and device for deploying and generating parameters and files in virtual network Active CN108337102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710044336.1A CN108337102B (en) 2017-01-19 2017-01-19 Method and device for deploying and generating parameters and files in virtual network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710044336.1A CN108337102B (en) 2017-01-19 2017-01-19 Method and device for deploying and generating parameters and files in virtual network

Publications (2)

Publication Number Publication Date
CN108337102A CN108337102A (en) 2018-07-27
CN108337102B true CN108337102B (en) 2020-07-24

Family

ID=62922904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710044336.1A Active CN108337102B (en) 2017-01-19 2017-01-19 Method and device for deploying and generating parameters and files in virtual network

Country Status (1)

Country Link
CN (1) CN108337102B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866845A (en) * 2006-05-08 2006-11-22 国家数字交换系统工程技术研究中心 Virtual identifying method for multicast forwarding table output port
CN104219107A (en) * 2014-08-26 2014-12-17 华为技术有限公司 Communication fault detecting method, communication fault detecting device and communication fault detecting system
CN104834566A (en) * 2015-03-31 2015-08-12 华为技术有限公司 Method and related apparatus for adjusting switch port of forwarding and processing thread

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9167501B2 (en) * 2011-08-29 2015-10-20 Telefonaktiebolaget L M Ericsson (Publ) Implementing a 3G packet core in a cloud computer with openflow data and control planes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866845A (en) * 2006-05-08 2006-11-22 国家数字交换系统工程技术研究中心 Virtual identifying method for multicast forwarding table output port
CN104219107A (en) * 2014-08-26 2014-12-17 华为技术有限公司 Communication fault detecting method, communication fault detecting device and communication fault detecting system
CN104834566A (en) * 2015-03-31 2015-08-12 华为技术有限公司 Method and related apparatus for adjusting switch port of forwarding and processing thread

Also Published As

Publication number Publication date
CN108337102A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
US11258667B2 (en) Network management method and related device
US10698741B2 (en) Resource allocation method for VNF and apparatus
CN105979007B (en) Method and device for accelerating resource processing and network function virtualization system
CN106664216B (en) VNF switching method and device
US10924966B2 (en) Management method, management unit, and system
EP2849064A1 (en) Method and apparatus for network virtualization
CN106209402B (en) A kind of telescopic method and equipment of virtual network function
AU2015419073A1 (en) Network service lifecycle management method and device
CN108132827B (en) Network slice resource mapping method, related equipment and system
US9112769B1 (en) Programatically provisioning virtual networks
US11036535B2 (en) Data storage method and apparatus
EP3319270B1 (en) Service registration method, usage method and relevant apparatus
US11416267B2 (en) Dynamic hardware accelerator selection and loading based on acceleration requirements
US20170249180A1 (en) Virtual Machine Start Method and Apparatus
JP2016095836A (en) Method for enhancing memory fault tolerance
US20140226523A1 (en) Mechanism to dynamically apply configuration settings to interfaces using a port-profile
US20210044501A1 (en) Configuration and/or deployment of a service based on location information and network performance indicators of network devices that are to be used to support the service
CN108337102B (en) Method and device for deploying and generating parameters and files in virtual network
WO2023164429A1 (en) Secured advertisement of autoconfigured internet protocol prefixes in a cloud environment
JP6369730B2 (en) Virtual machine starting method and apparatus
CN113010314B (en) Load balancing method and device and electronic equipment
CN108206838B (en) A kind of SiteServer LBS, method and device
Cao et al. Towards high fidelity network emulation
US20230105269A1 (en) Virtualized network service deployment method and apparatus
WO2018014351A1 (en) Method and apparatus for resource configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant