[go: up one dir, main page]

CN107147532B - Virtualization method and device for distributed equipment - Google Patents

Virtualization method and device for distributed equipment Download PDF

Info

Publication number
CN107147532B
CN107147532B CN201710393583.2A CN201710393583A CN107147532B CN 107147532 B CN107147532 B CN 107147532B CN 201710393583 A CN201710393583 A CN 201710393583A CN 107147532 B CN107147532 B CN 107147532B
Authority
CN
China
Prior art keywords
configuration data
board card
virtualization
type
target board
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
CN201710393583.2A
Other languages
Chinese (zh)
Other versions
CN107147532A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710393583.2A priority Critical patent/CN107147532B/en
Publication of CN107147532A publication Critical patent/CN107147532A/en
Application granted granted Critical
Publication of CN107147532B publication Critical patent/CN107147532B/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
    • 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
    • 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/0889Techniques to speed-up the configuration process
    • 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/0893Assignment of logical groups to network elements

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

The application provides a virtualization method and device of distributed equipment, which are applied to the distributed equipment. The method comprises the following steps: acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card; judging whether the type of the target board card is matched with the type of the virtualization configuration data; if not, performing type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface and VXLAN ID; and creating virtual equipment corresponding to the target board card based on the virtualized configuration data after type conversion. By adopting the technical method provided by the application, the virtual management configuration of the distributed equipment by an administrator can be facilitated.

Description

Virtualization method and device for distributed equipment
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a virtualization method and apparatus for distributed devices.
Background
With the development of information technology, network products are new, the application integration requirement is more and more strong, and the network equipment virtualization concept is generated at the same time. The network device virtualization refers to dividing a physical device into a plurality of logical devices according to different resource usage, wherein each logical device is a virtual device.
In the prior art, when distributed devices include boards that are virtualized based on different virtualization methods, the distributed devices need to virtualize different boards respectively when performing virtualization, so as to generate different types of virtual devices. In the prior art, when a board card virtualized based on different virtualization methods is virtualized, the board card needs to be virtualized by different virtualization systems. Therefore, when virtualizing the distributed device, an administrator needs to log in different virtualization systems to create a virtual device, which obviously does not facilitate the configuration of virtualization management of the administrator.
Disclosure of Invention
In view of this, the present application provides a virtualization method and apparatus for distributed devices, which are applied to distributed devices, and the technical solution provided by the present application is more convenient for a manager to perform virtualization management configuration.
Specifically, the method is realized through the following technical scheme:
a virtualization method of distributed equipment is applied to the distributed equipment, the distributed equipment comprises a plurality of transparent forwarding boards and a plurality of two-three layer forwarding boards, wherein the transparent forwarding boards are virtualized based on VXLAN, and the two-three layer forwarding boards are virtualized based on nve interfaces, and the virtualization method is characterized by comprising the following steps:
acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card;
judging whether the type of the target board card is matched with the type of the virtualization configuration data;
if not, performing type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface and VXLAN ID;
and creating virtual equipment corresponding to the target board card based on the virtualized configuration data after type conversion.
A virtualization device of distributed equipment is applied to distributed equipment, the distributed equipment comprises a plurality of transparent forwarding boards and a plurality of two-three layer forwarding boards, wherein the transparent forwarding boards are virtualized based on VXLAN, and the two-three layer forwarding boards are virtualized based on nve interfaces, and the virtualization device is characterized by comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card;
the judging unit is used for judging whether the type of the target board card is matched with the type of the virtualization configuration data;
the conversion unit is used for carrying out type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface and the VXLAN ID if the virtualization configuration data are not matched;
a creating unit, configured to create, based on the virtualized configuration data after the type conversion, a virtual device corresponding to the target board.
In the application, an administrator can perform virtualization configuration on the two-layer forwarding board card and the three-layer forwarding board card and the transparent forwarding board card in the same virtualization system, and the two-layer forwarding board card, the three-layer forwarding board card and the transparent forwarding board card do not need to be respectively performed with virtualization configuration through different virtualization systems. In addition, a mapping relation between a nve interface and a VXLAN ID is preconfigured on the distributed device, after the distributed device receives the virtualization configuration data, whether the virtualization configuration data is matched with the type of the target board card to be configured by the administrator can be judged, if the virtualization configuration data is not matched with the type of the target board card, the distributed device can convert the virtualization configuration data according to the preconfigured mapping relation between the nve interface and the VXLAN ID, and then send the virtualization configuration data to the target board card, so that the administrator only needs to select the target board card and nve interface or VXLAN ID through the virtualization system, and the virtualization configuration of the distributed device by the administrator can be facilitated.
Drawings
Fig. 1 is a flowchart illustrating a virtualization method for a distributed device according to an embodiment of the present application;
FIG. 2 is an interface diagram of a virtualization system according to an exemplary embodiment of the present disclosure;
fig. 3 is a hardware structure diagram of a distributed device in which a virtualization apparatus of a distributed device according to the present application is located;
fig. 4 is a virtualization apparatus for a distributed device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the prior art, network device virtualization refers to dividing a physical device into a plurality of logical devices according to different resource usage, where each logical device is a virtual device. The different types of network equipment comprise board cards with different functions, and the virtualization of the network equipment is actually the virtualization of the board cards.
Because, in the prior art, virtualization mechanisms adopted by different boards during virtualization are different. For example, a two-layer or three-layer forwarding board similar to a firewall is virtualized based on an interface to generate a virtual device; a transparent forwarding board similar to IPS (Intrusion Prevention System)/UAG (Unified Access Gateway) is a Virtual device generated by virtualization based on VXLAN (Virtual eXtensible Local Area Network). Therefore, in the prior art, different virtualization systems are developed for boards that implement virtualization based on different virtualization mechanisms, and an administrator can perform virtualization configuration on different boards based on different virtualization systems.
When the network device is a distributed device, the distributed device includes boards virtualized based on different virtualization mechanisms, and when the distributed device is virtualized, the boards virtualized by using different virtualization mechanisms need to be virtualized respectively. For example, the distributed device includes two or three layers of forwarding boards and a transparent forwarding board, and when the distributed device is virtualized, because virtualization mechanisms of the two or three layers of forwarding boards and the transparent forwarding board are different, an administrator needs to log in a virtualization system corresponding to the two or three layers of forwarding boards and a virtualization system corresponding to the transparent forwarding board, and perform virtualization configuration on the two or three layers of forwarding boards and the transparent forwarding board respectively.
For example, when the distributed network device includes a two-layer and three-layer forwarding board and a transparent forwarding board, the two-layer and three-layer forwarding board includes 100 nve interface resources, and the transparent forwarding board includes 100 VXLAN resources. An administrator needs to log in a virtualization system corresponding to the two-layer or three-layer forwarding board card, and divide the 100 nve interface resources to create virtual devices. Then, the administrator logs in the virtualization system corresponding to the transparent forwarding board card again, and divides the 100 VXLAN resources to create virtual devices. As shown in table 1, table 1 is a resource allocation table of a virtual device according to an exemplary embodiment of the present application.
Virtual device ID Interface Virtual device ID VXLAN ID
1 nve1-nve10 a 1-10
2 nve11-nve20 b 11-20
3 nve21-nve30 c 21-30
4 nve31-nve40 d 31-40
5 nve41-nve50 e 41-50
6 nve51-nve60 f 51-60
7 nve61-nve70 g 61-70
8 nve71-nve80 h 71-80
9 nve81-nve90 i 81-90
10 nve91-nve100 j 91-100
TABLE 1
In summary, in the prior art, when an administrator virtualizes a distributed device, the administrator needs to log in different virtualization systems to virtualize different boards respectively, so that when the administrator virtualizes the distributed device by using the prior art, it is inconvenient for the administrator to perform virtualization management configuration.
In order to solve the problem in the prior art, the application provides a virtualization method of a distributed device, and the method is applied to the distributed device. The method comprises the following steps: acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card; judging whether the type of the target board card is matched with the type of the virtualization configuration data; if not, performing type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface and VXLAN ID; and creating virtual equipment corresponding to the target board card based on the virtualized configuration data after type conversion.
In the application, an administrator can perform virtualization configuration on the two-layer forwarding board card and the three-layer forwarding board card and the transparent forwarding board card in the same virtualization system, and the two-layer forwarding board card, the three-layer forwarding board card and the transparent forwarding board card do not need to be respectively performed with virtualization configuration through different virtualization systems. In addition, a mapping relation between a nve interface and a VXLAN ID is preconfigured on the distributed device, after the distributed device receives the virtualization configuration data, whether the virtualization configuration data is matched with the type of the target board card to be configured by the administrator can be judged, if the virtualization configuration data is not matched with the type of the target board card, the distributed device can convert the virtualization configuration data according to the preconfigured mapping relation between the nve interface and the VXLAN ID, and then send the virtualization configuration data to the target board card, so that the administrator only needs to select the target board card and nve interface or VXLAN ID through the virtualization system, and the virtualization configuration of the distributed device by the administrator can be facilitated.
The technical method proposed by the present application is described below by means of specific examples and schematic diagrams.
Referring to fig. 1, fig. 1 is a flowchart of an exemplary virtualization method for a distributed device according to an embodiment of the present application, where the method is applied to a distributed device, where the distributed device includes two or three layers of forwarding boards and a transparent forwarding board. The mapping relation between the nve interface and the VXLAN ID is configured in advance on the distributed equipment. The following steps are specifically executed:
step 101: acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card;
step 102: judging whether the type of the target board card is matched with the type of the virtualization configuration data;
step 103: if not, performing type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface and VXLAN ID;
step 104: and creating virtual equipment corresponding to the target board card based on the virtualized configuration data after type conversion.
In the prior art, different virtualization systems are developed for boards virtualized based on different virtualization modes, and each virtualization system can only virtualize one board. For example, in the prior art, the two-layer and three-layer forwarding boards are virtualized through interface resources, the transparent forwarding board is virtualized through VXLAN resources, and when the administrator virtualizes the two-layer and three-layer forwarding boards, only the virtualization system developed for the two-layer and three-layer forwarding boards can be used, but the virtualization system developed for the transparent forwarding boards cannot be used.
In the application, a new virtualization system is provided, through which an administrator can perform virtualization configuration on both the two-layer forwarding board and the three-layer forwarding board and the transparent forwarding board. In the virtualization system, an administrator may select to perform virtualization configuration on a second-third layer forwarding board and a transparent forwarding board based on nve interface resources, or may select to perform virtualization configuration on a second-third layer forwarding board and a transparent forwarding board based on VXLAN resources, where the nve interface is an interface applied to VXLAN, and in this application, the interfaces on the second-third layer forwarding board are all converted into nve interfaces.
Referring to fig. 2, fig. 2 is an interface schematic diagram of a virtualization system exemplarily shown in the embodiment of the present application.
In the technical method provided by the application, an administrator can log in a virtualization system to select a mode (virtualization based on an nve interface or virtualization based on VXLAN) needing virtualization and select a target board card needing virtualization, and after completing virtualization configuration in the virtualization system, the administrator can issue virtualization configuration data to distributed equipment through the virtualization system. After the distributed equipment receives the virtualization configuration data, whether the type of the virtualization configuration data is matched with the type of the target board card or not can be judged, if not, the virtualization configuration data is subjected to type conversion, and then virtual equipment corresponding to the target board card is created based on the virtualization configuration data after the type conversion; and if not, creating virtual equipment corresponding to the target board card directly based on the virtualization configuration data.
In an alternative embodiment, when the administrator selects to create a virtual device based on nve interface resources, the administrator may select a target board to be configured in a virtualization system from among several boards displayed in an interface of the virtualization system, and then select several nve interfaces from among all nve interfaces provided by the target board. After the administrator completes the selection, a configuration completion operation (such as clicking a completion button or issuing a button) may be executed, and the virtualization system is triggered to generate virtualization configuration data; wherein the virtualization configuration data are nve interfaces. After the virtualization system generates the virtualization configuration data, the virtualization configuration data may be sent to the distributed device.
In an embodiment of the present application, after the virtualization system issues the virtualization configuration data, the distributed device may receive the virtualization configuration data. The distributed device may determine whether the type of the virtualization configuration data matches the type of the target board card.
When the virtualization configuration data is a plurality of nve interfaces and the target board card is a two-layer or three-layer forwarding board card, or when the virtualization configuration data is a plurality of VXLAN IDs and the target board card is a transparent forwarding board card, it may be determined that the type of the virtualization configuration data matches the type of the target board card.
When the virtualization configuration data is a plurality of nve interfaces and the target board is a transparent forwarding board, or when the virtualization configuration data is a plurality of VXLAN IDs and the target board is a two-layer or three-layer forwarding board, it may be determined that the type of the virtualization configuration data does not match the type of the target board.
In this application, the mapping relationship between the nve interface and the VXLAN ID is pre-configured on the distributed device. Wherein the nve interfaces correspond one-to-one with the VXLAN ID. For example, when a message is received from nve1, the VXLAN ID to which the message belongs is 1, and when a message is received from nve2, the VXLAN ID to which the message belongs is 2.
When the distributed device determines that the type of the virtualization configuration data matches the type of the target board, it may be determined that the target board is a two-layer or three-layer forwarding board, and the distributed device may directly create a virtual device including the nve interfaces. The corresponding two-three-tier forwarding boards for the several nve interfaces may then be found based on the locally stored nve interface information. The nve interface information includes all nve interfaces and two or three layers of forwarding boards corresponding to each nve interface. Then, the distributed device may establish an association relationship between the virtual device and the second-third-layer forwarding board, and issue the nve interfaces to the second-third-layer forwarding board.
When the distributed device determines that the type of the virtualization configuration data does not match the type of the target board, it may determine that the target board is a transparent forwarding board, and the distributed device may convert the plurality of nve interfaces into a plurality of corresponding VXLAN IDs based on a mapping relationship between a preconfigured nve interface and the VXLAN IDs.
After the distributed device converts the type of the virtualization configuration data, the distributed device may create a virtual device including the VXLAN IDs. And then, inquiring the transparent forwarding board cards corresponding to the VXLAN IDs based on the VXLAN information stored locally. The VXLAN information includes all VXLAN IDs and transparent forwarding boards corresponding to VXLANID. Then, the distributed device may establish an association relationship between the transparent forwarding board and the virtual device, and issue the VXLAN IDs to the transparent forwarding board.
In another optional embodiment, when the administrator selects to create the virtual device based on the VXLAN resources, the administrator may select a target board to be configured virtually from a plurality of boards displayed in an interface of the virtualization system, then select a plurality of VXLAN IDs from all VXLAN IDs displayed in the interface of the virtualization system, then perform configuration completion operation, and trigger the virtualization system to generate virtualization configuration data. Wherein the virtualization configuration data are nve interfaces. After the virtualization system generates the virtualization configuration data, the virtualization configuration data may be sent to the distributed device.
After the distributed device can receive the virtualization configuration data, the distributed device can determine whether the type of the virtualization configuration data matches the type of the target board card.
When the distributed device determines that the type of the virtualization configuration data matches the type of the target board card, it may be determined that the target board card is a transparent forwarding board card, and the distributed device may directly create a virtual device including the VXLAN IDs. And then, inquiring the transparent forwarding board cards corresponding to the VXLAN IDs based on the VXLAN information stored locally. The VXLAN information includes all VXLAN IDs and transparent forwarding boards corresponding to the VXLAN IDs. Then, the distributed device may establish an association relationship between the transparent forwarding board and the virtual device, and issue the VXLAN IDs to the transparent forwarding board.
When the distributed device determines that the type of the virtualization configuration data does not match the type of the target board, it may determine that the target board is a two-layer or three-layer forwarding board, and the distributed device may convert the VXLAN IDs into corresponding VXLAN IDs based on a mapping relationship between preconfigured nve interfaces and VXLAN IDs.
After the distributed device converts the type of the virtualization configuration data, the distributed device may create a virtual device including the nve interfaces. Then, the two-layer and three-layer forwarding boards corresponding to the nve interfaces are searched based on locally stored nve interface information. The nve interface information includes all nve interfaces and two or three layers of forwarding boards corresponding to each nve interface. Then, the distributed device may establish an association relationship between the virtual device and the second-third-layer forwarding board, and issue the nve interfaces to the second-third-layer forwarding board.
In the application, an administrator can perform virtualization configuration on the two-layer forwarding board card and the three-layer forwarding board card and the transparent forwarding board card in the same virtualization system, and the two-layer forwarding board card, the three-layer forwarding board card and the transparent forwarding board card do not need to be respectively performed with virtualization configuration through different virtualization systems. In addition, a mapping relation between a nve interface and a VXLAN ID is preconfigured on the distributed device, after the distributed device receives the virtualization configuration data, whether the virtualization configuration data is matched with the type of the target board card to be configured by the administrator can be judged, if the virtualization configuration data is not matched with the type of the target board card, the distributed device can convert the virtualization configuration data according to the preconfigured mapping relation between the nve interface and the VXLAN ID, and then send the virtualization configuration data to the target board card, so that the administrator only needs to select the target board card and nve interface or VXLAN ID through the virtualization system, and the virtualization configuration of the distributed device by the administrator can be facilitated.
Corresponding to the foregoing embodiment of the virtualization method for a distributed device, the present application further provides an embodiment of a virtualization apparatus for a distributed device.
The embodiment of the virtualization device for the distributed equipment can be applied to the distributed equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for running through the processor of the distributed device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 3, the hardware structure diagram of a distributed device in which a virtualization apparatus of a distributed device is located in the present application is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 3, the distributed device in which the apparatus is located in the embodiment may also include other hardware generally according to an actual virtualization function of the distributed device, which is not described again.
Referring to fig. 4, fig. 4 is a virtualization device for a distributed device, which is applied to a distributed device and shown in an embodiment of the present application, where the distributed device includes a plurality of transparent forwarding boards and a plurality of two-layer and three-layer forwarding boards, where the transparent forwarding boards are virtualized based on VXLAN, and the two-layer and three-layer forwarding boards are virtualized based on nve interfaces, and the virtualization device includes: an acquisition unit 410, a judgment unit 420, a conversion unit 430, and a creation unit 440.
The obtaining unit 410 is configured to obtain virtualization configuration data, configured by a user through a virtualization system, corresponding to a target board card; the virtualization configuration data are a plurality of nve interfaces or a plurality of VXLAN IDs for virtualizing the target board card;
the determining unit 420 is configured to determine whether the type of the target board card is matched with the type of the virtualization configuration data;
the converting unit 430 is configured to, if the virtual configuration data does not match the virtual configuration data, perform type conversion on the virtual configuration data based on a mapping relationship between a preconfigured nve interface and a VXLAN ID;
a creating unit 440, configured to create a virtual device corresponding to the target board based on the virtualized configuration data after type conversion.
The creating unit 440 is further configured to create a virtualized device corresponding to the target board based on the virtualization configuration data if the virtualized device matches the target board.
In this application, the administrator may choose to create a virtual device based on nve interface resources or VXLAN resources, where the determining unit 420 is specifically configured to:
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data is a plurality of VXLAN IDs, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data is a plurality of nve interfaces, and the type of the target board card is determined to be not matched with the type of the virtualization configuration data;
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data are nve interfaces, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data are vxlnid, and it is determined that the type of the target board card is matched with the type of the virtualization configuration data.
When the type of the target board does not match the type of the virtualization configuration data, the creating unit 440 is specifically configured to:
when the virtualization configuration data after type conversion is nve interfaces, creating a virtual device comprising nve interfaces;
establishing an association relation between the two-layer forwarding board card and the three-layer forwarding board card corresponding to the nve interfaces and the virtual equipment;
and issuing the nve interfaces to the two-layer and three-layer forwarding board cards.
In addition, when the virtualization configuration data after type conversion is a plurality of VXLAN IDs, virtual equipment comprising the VXLAN IDs is created;
establishing an association relation between the transparent forwarding board cards corresponding to the VXLAN IDs and the virtual equipment;
and issuing the VXLAN IDs to the transparent forwarding board card.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A virtualization method of distributed equipment is applied to the distributed equipment, the distributed equipment comprises a plurality of transparent forwarding boards and a plurality of two-three layer forwarding boards, wherein the transparent forwarding boards are virtualized based on VXLAN, and the two-three layer forwarding boards are virtualized based on nve interfaces, and the virtualization method is characterized by comprising the following steps:
acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interface IDs or a plurality of VXLAN IDs for virtualizing the target board card;
judging whether the type of the target board card is matched with the type of the virtualization configuration data;
if not, performing type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface ID and the VXLAN ID;
and creating virtual equipment corresponding to the target board card based on the virtualized configuration data after type conversion.
2. The method of claim 1, wherein the determining whether the type of the target board card matches the type of the virtualization configuration data comprises:
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data is a plurality of VXLANID, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data is a plurality of nve interface ID, and the type of the target board card is determined to be not matched with the type of the virtualization configuration data;
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data are a plurality of nve interface IDs, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data are a plurality of VXLAN IDs, and the type of the target board card is determined to be matched with the type of the virtualization configuration data.
3. The method of claim 1, further comprising:
and if so, creating virtual equipment corresponding to the target board card based on the virtualization configuration data.
4. The method of claim 1, wherein creating a virtual device corresponding to the target board based on the type-converted virtualization configuration data comprises:
when the virtualization configuration data after type conversion is nve interface IDs, creating a virtual device containing nve interface IDs;
establishing an association relationship between the two-layer forwarding board card and the virtual equipment, wherein the two-layer forwarding board card and the virtual equipment correspond to the plurality of nve interface IDs;
and issuing the nve interface IDs to the two-layer three-layer forwarding board card.
5. The method of claim 1, wherein creating a virtual device corresponding to the target board based on the type-converted virtualization configuration data comprises:
when the virtualization configuration data after type conversion is a plurality of VXLAN IDs, creating virtual equipment comprising the VXLAN IDs;
establishing an association relation between the transparent forwarding board cards corresponding to the VXLAN IDs and the virtual equipment;
and issuing the VXLAN IDs to the transparent forwarding board card.
6. A virtualization device of distributed equipment is applied to distributed equipment, the distributed equipment comprises a plurality of transparent forwarding boards and a plurality of two-three layer forwarding boards, wherein the transparent forwarding boards are virtualized based on VXLAN, and the two-three layer forwarding boards are virtualized based on nve interfaces, and the virtualization device is characterized by comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring virtualization configuration data which is configured by a user through a virtualization system and corresponds to a target board card; the virtualization configuration data are a plurality of nve interface IDs or a plurality of VXLANID used for virtualizing the target board card;
the judging unit is used for judging whether the type of the target board card is matched with the type of the virtualization configuration data;
the conversion unit is used for carrying out type conversion on the virtualization configuration data based on the mapping relation between the pre-configured nve interface ID and the VXLAN ID if the virtualization configuration data are not matched;
a creating unit, configured to create, based on the virtualized configuration data after the type conversion, a virtual device corresponding to the target board.
7. The apparatus of claim 6, comprising:
the judgment unit is specifically configured to:
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data is a plurality of VXLANID, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data is a plurality of nve interface ID, and the type of the target board card is determined to be not matched with the type of the virtualization configuration data;
if the target board card is a two-layer or three-layer forwarding board card, the obtained virtualization configuration data are a plurality of nve interface IDs, or the target board card is a transparent forwarding board card, the obtained virtualization configuration data are a plurality of VXLAN IDs, and the type of the target board card is determined to be matched with the type of the virtualization configuration data.
8. The apparatus of claim 6, comprising:
the creating unit is further configured to create a virtual device corresponding to the target board based on the virtualization configuration data if the virtual device matches the target board.
9. The apparatus of claim 6, comprising:
the creating unit is specifically configured to:
when the virtualization configuration data after type conversion is nve interface IDs, creating a virtual device containing nve interface IDs;
establishing an association relationship between the two-layer forwarding board card and the virtual equipment, wherein the two-layer forwarding board card and the virtual equipment correspond to the plurality of nve interface IDs;
and issuing the nve interface IDs to the two-layer three-layer forwarding board card.
10. The apparatus of claim 6, comprising:
the creating unit is further specifically configured to:
when the virtualization configuration data after type conversion is a plurality of VXLAN IDs, creating virtual equipment comprising the VXLAN IDs;
establishing an association relation between the transparent forwarding board cards corresponding to the VXLAN IDs and the virtual equipment;
and issuing the VXLAN IDs to the transparent forwarding board card.
CN201710393583.2A 2017-05-27 2017-05-27 Virtualization method and device for distributed equipment Active CN107147532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710393583.2A CN107147532B (en) 2017-05-27 2017-05-27 Virtualization method and device for distributed equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710393583.2A CN107147532B (en) 2017-05-27 2017-05-27 Virtualization method and device for distributed equipment

Publications (2)

Publication Number Publication Date
CN107147532A CN107147532A (en) 2017-09-08
CN107147532B true CN107147532B (en) 2020-03-06

Family

ID=59780868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710393583.2A Active CN107147532B (en) 2017-05-27 2017-05-27 Virtualization method and device for distributed equipment

Country Status (1)

Country Link
CN (1) CN107147532B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290078A (en) * 2019-06-13 2019-09-27 杭州迪普科技股份有限公司 Message forwarding method, device, electronic equipment and machine readable storage medium
CN113037654B (en) * 2021-02-25 2022-04-05 迈普通信技术股份有限公司 Distributed switch service board virtualization method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700178A (en) * 2004-04-15 2005-11-23 雷西昂公司 System and method for computer cluster virtualization using dynamic boot images and virtual disks
CN101681269A (en) * 2007-05-16 2010-03-24 威睿公司 Adaptive Dynamic Selection and Application of Multi-Virtualization Technology
CN102255933A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Cloud service medium, cloud computing method and cloud system
CN103973465A (en) * 2013-01-25 2014-08-06 中国电信股份有限公司 Distributed cross-platform managing method and system for virtualization capacity
CN206077410U (en) * 2016-08-30 2017-04-05 广西电网有限责任公司 A kind of isomery virtual resources management system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014210483A1 (en) * 2013-06-28 2014-12-31 Huawei Technologies Co., Ltd. Multiprotocol label switching transport for supporting a very large number of virtual private networks
JP6221501B2 (en) * 2013-08-19 2017-11-01 富士通株式会社 NETWORK SYSTEM, ITS CONTROL METHOD, NETWORK CONTROL DEVICE, AND ITS CONTROL PROGRAM
US9923781B2 (en) * 2015-11-18 2018-03-20 Telefonaktiebolaget Lm Ericsson (Publ) Designated forwarder (DF) election and re-election on provider edge (PE) failure in all-active redundancy topology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700178A (en) * 2004-04-15 2005-11-23 雷西昂公司 System and method for computer cluster virtualization using dynamic boot images and virtual disks
CN101681269A (en) * 2007-05-16 2010-03-24 威睿公司 Adaptive Dynamic Selection and Application of Multi-Virtualization Technology
CN102255933A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Cloud service medium, cloud computing method and cloud system
CN103973465A (en) * 2013-01-25 2014-08-06 中国电信股份有限公司 Distributed cross-platform managing method and system for virtualization capacity
CN206077410U (en) * 2016-08-30 2017-04-05 广西电网有限责任公司 A kind of isomery virtual resources management system

Also Published As

Publication number Publication date
CN107147532A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US10320674B2 (en) Independent network interfaces for virtual network environments
US9780998B2 (en) Method and apparatus for managing physical network interface card, and physical host
CN104813289B (en) Diagnose virtual machine
US10116530B2 (en) Technologies for determining sensor deployment characteristics
KR101979363B1 (en) Method, apparatus, and system for discovering application topology relationship
US8484654B2 (en) Determining suitable network interface for partition deployment/re-deployment in a cloud environment
EP3285439B1 (en) Network service lifecycle management method and device
US9804881B2 (en) System and method for resizing a virtual desktop infrastructure using virtual desktop infrastructure monitoring tools
US9400671B2 (en) Computer host with a baseboard management controller to manage virtual machines
US9052963B2 (en) Cloud computing data center machine monitor and control
CN110601922A (en) Method and device for realizing comparison experiment, electronic equipment and storage medium
CN105095023B (en) A kind of cloud host creating device, method and computing device
US11843508B2 (en) Methods and apparatus to configure virtual and physical networks for hosts in a physical rack
CN103685608A (en) Method and device for automatically configuring IP (Internet Protocol) address of security virtual machine
CN102750178A (en) Virtualization management method of communication equipment hardware resources, and device related to method
US10530708B2 (en) Apparatus and method for managing computing resources in network function virtualization system
CN106873970B (en) Installation method and device of operating system
US20190373046A1 (en) Processing an operation with a plurality of processing steps
CN102346707A (en) Server system and operation method thereof
US20180225141A1 (en) Guest-Influenced Packet Transmission
US9542200B2 (en) Dynamic port naming in a chassis
CN107147532B (en) Virtualization method and device for distributed equipment
CN111915811A (en) Method and equipment for controlling cabinet access by multiple hosts
CN111800523A (en) Management method, data processing method and system of virtual machine network
CN106533882B (en) Message processing method and device

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