CN111490894A - Supply and installation monitoring system and method for virtual machine network card - Google Patents

Supply and installation monitoring system and method for virtual machine network card Download PDF

Info

Publication number
CN111490894A
CN111490894A CN201910131366.5A CN201910131366A CN111490894A CN 111490894 A CN111490894 A CN 111490894A CN 201910131366 A CN201910131366 A CN 201910131366A CN 111490894 A CN111490894 A CN 111490894A
Authority
CN
China
Prior art keywords
address
internet protocol
monitoring
module
network card
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.)
Granted
Application number
CN201910131366.5A
Other languages
Chinese (zh)
Other versions
CN111490894B (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.)
Chunghwa Telecom Co Ltd
Original Assignee
Chunghwa Telecom 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 Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Publication of CN111490894A publication Critical patent/CN111490894A/en
Application granted granted Critical
Publication of CN111490894B publication Critical patent/CN111490894B/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/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Abstract

The utility model discloses a supply and install monitoring system and method for virtual machine network card, including the supply and install module that carries out the supply and install procedure for virtual machine's network card and install in the cross-platform monitoring unit of user end on the user end operating system in virtual machine. The network card is set to be started as a first internet protocol or started as a second internet protocol in the supply program by the supply module, and then the single network card can only be selected to be used as the first internet protocol or the second internet protocol, so that the single virtual machine has a plurality of first internet protocol addresses and second internet protocol addresses at the same time. The user end cross-platform monitoring unit captures monitoring data of a user end operating system in the virtual machine, wherein the monitoring data comprises network card monitoring data of a first internet protocol or/and a second internet protocol in a network card.

Description

Supply and installation monitoring system and method for virtual machine network card
Technical Field
The present disclosure relates to internet protocol settings for virtual machines and virtual private clouds, and more particularly, to a system and method for providing a virtual machine network card.
Background
Internet Protocol (IP) is a Protocol used for network packet exchange, which defines the addressing scheme and the encapsulation structure of data, and the IP address defines the address on the network instead of the host. The most widely used network protocol at present is IPv4, while the next generation network protocol considered to inherit IPv4 is IPv 6.
Virtual machines (Virtual machines) execute multiple operating systems to the server and are managed by software, such as Hypervisor, and each provides its own Virtual hardware, including CPU, memory, hard disk, network interface, and other devices.
In recent years, IPv4 addresses of various global areas are gradually exhausted, and therefore, in a Virtual machine service of Virtual private cloud (Virtual private cloud), in view of the difference between the characteristics of IPv4 and IPv6, a Virtual machine provides only private ip (private ip) in IPv4, and when a user's Virtual machine has a need to connect to the internet, another connection is made to the internet by means of pat (Port Address transfer), nat (network Address transfer), Port Forwarding, or the like. On the other hand, to solve the problem of exhaustion of IPv4 addresses, IPv6 has been increased to 128 bits in length to provide a sufficient number of IP addresses, so that IPv6 adopts a fully automatic IP distribution mechanism to make each IPv6 address of a user a public IP (public IP). However, for the multiple IPv4 and IPv6 of the virtual machine, it is difficult to monitor multiple network cards, which is even more disadvantageous for the expansion of the network cards.
Therefore, there are still many deficiencies in the above prior art and improvements are needed.
Disclosure of Invention
To solve the above and other problems, a system and method for providing and monitoring multiple internet protocol (e.g., IPv4 and IPv6) network services by a virtual machine is disclosed, which can enable a virtual private cloud with IPv4 services to provide IPv6 network services without affecting the existing services. In order to make the virtual private cloud compatible with the IPv4 and IPv6 networks, the scheme adopts a single stack network card IP setting mode, each network card is limited to be selected to be used as IPv4 or IPv6, and the number N (1 is less than or equal to N) of the network cards supported by the expansion virtual machine is matched, so that one virtual machine can simultaneously have a plurality of IPv4 and IPv6 addresses, and the establishment of the whole network service is more flexible and easy to expand. In addition, the scheme can also collect network card monitoring data according to the attributes customized by the user, can support various operating systems to achieve the cross-platform effect, and can utilize the monitoring data to realize the triggering behavior of automatic expansion or reduction besides providing the user to master various states of the current virtual machine.
This case reveals a confession dress monitored control system for virtual machine network card, includes: the device comprises a supplying module, a loading module and a loading module, wherein the supplying module is used for respectively executing a supplying program for at least one network card of the virtual machine, and in the supplying program, the at least one network card is set to be not started, started to be a first internet protocol or started to be a second internet protocol; and the user end cross-platform monitoring unit is arranged in the virtual machine to acquire monitoring data of a user end operating system in the virtual machine, wherein the monitoring data comprises network card monitoring data of the first internet protocol and the second internet protocol in the at least one network card.
In addition, the supply installation monitoring system for the virtual machine network card further comprises: the monitoring data collection module is used for receiving monitoring data returned by the user end cross-platform monitoring unit installed in the virtual machine; and a monitoring data analysis module for analyzing the monitoring data collected by the monitoring data collection module to trigger an alarm behavior, an expansion behavior or a reduction behavior according to the analysis result.
In addition, the user end cross-platform monitoring unit comprises a cross-platform monitoring module used for detecting the type or version of the user end operating system, an external calling receiving module used for receiving a call of an external host to receive an updating program and obtain the latest rule engine parameters, an automatic updating module used for updating the user end cross-platform monitoring unit according to the updating program, a rule engine module used for processing the monitoring data according to the current latest rule engine parameters, and a data transmission module used for outputting the monitoring data processed by the rule engine module, so that the receiver of the monitoring data collection module and the analyzed data of the monitoring data analysis module are the monitoring data processed by the rule engine module.
In addition, the first internet protocol is IPv4, and the second internet protocol is IPv 6. The network card monitoring data further includes the transmitted and received traffic, packet number, packet error number, or packet discard number of the first internet protocol and the second internet protocol in the plurality of network cards. The monitoring data further includes the usage amount or usage rate of the operating system memory, the usage amount or usage rate of the operating system disk, or the usage amount or usage rate of the operating system CPU.
In addition, the supply installation monitoring system for the virtual machine network card further comprises: and the internet protocol resource management and control module manages various internet protocols. The providing module obtains the media access control address of the at least one network card to generate a second internet protocol address according to the media access control address, and registers according to the media access control address and the second internet protocol address, so that the internet protocol resource management and control module manages the second internet protocol to complete the providing and the installing of the at least one network card, wherein the providing and installing module generates the second internet protocol address according to the media access control address by adopting a Modified EUI-64 algorithm. Or the supply-installation module obtains the media access control address of the at least one network card and obtains a first internet protocol address which is distributed or selected by a user, so as to register according to the media access control address and the first internet protocol address, and then the internet protocol resource management and control module manages the first internet protocol, so as to finish the supply and installation of the at least one network card.
In addition, the installation monitoring system for the virtual machine network card further comprises a graphical user interface, the user selects the first IP address through the GUI, and the IP resource control module accepts the declaration of the GUI to change the status of the first IP address from available to distribution, and wherein the first IP address is discarded or not registered by the user through the graphical user interface, the ip resource management and control module changes the status of the first ip address from being allocated to being available, and wherein, when the user leases the first IP address through the graphical user interface, the internet protocol resource management and control module changes the state of the first internet protocol address into usable state.
The present disclosure further discloses a method for monitoring a virtual machine network card, including: configuring a virtual machine and a plurality of network cards; respectively setting the network cards to be enabled or not according to the setting of a user; according to the selection of the user, the network cards are respectively started to be a first internet protocol or a second internet protocol; the following steps are carried out on one of the enabled network cards in the plurality of network cards: step (1): obtaining a medium access control address; step (2): obtaining a first internet protocol address or a second internet protocol address; and a step (3): registering, thereby completing the supply and installation of the network card; and respectively carrying out the steps (1) to (3) on the rest network cards of the enablers in the plurality of network cards until the supply of all the enablers in the plurality of network cards is completed.
In addition, if the second internet protocol is started, the second internet protocol address is calculated according to the medium access control address so as to obtain the second internet protocol address. In addition, if the first internet protocol is enabled, the first internet protocol address is distributed or selected by the user, and then the first internet protocol address is obtained. In addition, when the user selects the first internet protocol address, the state of the first internet protocol address is changed from available to distribution and is changed to occupied after registration, and wherein the state of the first internet protocol address is changed from available to distribution when the user abandons or overdue the unregistered first internet protocol address, and wherein the state of the first internet protocol address is changed from occupied to available when the user leases the first internet protocol address.
Therefore, by the installation monitoring system and the installation monitoring method, on the premise of not influencing the existing IPv4 service, one virtual machine can run on an IPv6 network simultaneously, and a user can further have multiple network cards in the virtual machine of the virtual Private cloud, each network card can only select a single network protocol, namely IPv4 or IPv6, the user can achieve the effect that one virtual machine can simultaneously have multiple IPv4 and IPv6 addresses by setting the multiple network cards, wherein IPv4 belongs to Private IP, and IPv6 is Public IP. In addition, the scheme designs a pre-declaration mechanism, so that a user can select the graphical user interface to inform the installation monitoring system of the fact that the IPv4 address is about to be occupied in advance, the problem of resource snapping during simultaneous lease application of multiple tenants is reduced, and the probability of manual processing of a machine room is reduced. In addition, the scheme adopts a Modified EUI-64 algorithm to automatically distribute the IPv6 address of the virtual machine, so that the installation and monitoring system is ensured to have reckoning and uniqueness on the IPv6 address of each network card, and the management of the IPv6 address is easier. Therefore, the scheme can reduce the complexity of the network card monitoring method through a single-stack (single stack) network card setting mode, thereby providing accurate information for the accounting module to carry out flow charging. In addition, through the cross-platform monitoring unit of the user end, the required data can be captured no matter what complex and special environment the operating system of the user end is, and the data can be automatically and dynamically processed according to the rules set by the rule engine, so that the required data can be accurately captured, and noise can be filtered to avoid monitoring data distortion.
Drawings
FIG. 1 is a block diagram of a supply monitoring system for a virtual machine network card according to the present disclosure;
FIG. 2 is a block diagram of a client-side cross-platform monitoring unit of the provisioning monitoring system for a virtual machine network card according to the present disclosure;
fig. 3 is a block diagram illustrating a plurality of client cross-platform monitoring units of the present invention for providing a monitoring system for a virtual machine network card;
FIG. 4 is a schematic flow chart of a supply monitoring method for a virtual machine network card according to the present disclosure;
FIG. 5 is a flowchart of a supply monitoring method for a virtual machine network card according to the present disclosure;
FIG. 6 is a schematic diagram illustrating a graphical user interface of the present invention for a method for monitoring a virtual machine network card;
FIG. 7 is a state diagram of an IPv4 address for the provisioning monitoring method of the virtual machine network card according to the present disclosure; and
fig. 8 is a schematic diagram illustrating generation of an IPv6 address for the provisioning monitoring method for the virtual machine network card according to the present disclosure.
Description of the symbols
11 configuration module
12 supply dress module
13. 13a, 13b, 13c, 13d user end cross-platform monitoring unit
131 cross-platform monitoring module
132 external call receiving module
133 automatic update module
134 rules Engine Module
135 data transmission module
14 monitoring data collection module
15 monitoring data analysis module
16 IP resource management and control module
17 graphical user interface
18 monitor data presentation page
2 virtual machine
21 user terminal operating system
22a, 22b network card
3 external host
A01, A021, A022 and A02N steps
B01-B07 steps
D01, D02, D03 states
IPv6 address distributed by E01 operating system
First half of E02 IPv6 address
The second half of the E03 IPv6 address.
Detailed Description
Other advantages and capabilities of the present invention will be readily apparent to those skilled in the art from the disclosure herein, by describing the embodiments of the present invention through specific examples. The drawings in the present specification are for illustrative purposes only and are not intended to limit the scope of the present disclosure, which should be limited only by the claims, so that modifications, changes, and variations thereof can be made without departing from the spirit and scope of the present disclosure.
Referring to fig. 1 to 3, the provisioning monitoring system for a virtual machine network card of the present disclosure includes a configuration module 11, a provisioning module 12, a client cross-platform monitoring unit 13, a monitoring data collection module 14, a monitoring data analysis module 15, an IP resource management and control module 16, a graphical user interface 17, and a monitoring data presentation page 18.
The configuration module 11 is used for setting the virtual machine 2 according to the application requirement of the user, including an Image file (Image) used by the virtual machine 2, the number of CPU cores, the size of the memory, the system disk, and the like.
The provisioning module 12 is configured to execute a provisioning program for the network cards 22a and 22b of the virtual machine 2, respectively, as shown in fig. 1 as two network cards 22a and 22b, which is not limited to the number. In the provisioning procedure, the network cards 22a and 22b may be set to be disabled or disabled, respectively, if the network cards are disabled, the provisioning procedure is ended, and if the network cards are enabled, the network cards are selected to be enabled as the first internet protocol or the second internet protocol. In one embodiment, the first internet protocol is IPv4 and the second internet protocol is IPv 6.
The client cross-platform monitoring unit 13 is installed in the virtual machine 2 to retrieve monitoring data of the client operating system 21 in the virtual machine 2, such as the operating system memory usage or usage rate, the operating system disk usage or usage rate, or the operating system cpu usage or usage rate. In addition, the monitoring data may further include network card monitoring data of IPv4 and IPv6 in the network cards 22a and 22b, for example, the network card monitoring data further includes traffic, packet number, packet error number, or packet discard number of the first internet protocol and the second internet protocol in the plurality of network cards for transmission and reception. The data can be used for subsequent analysis, alarm, automatic expansion and other functions.
The monitoring data collection module 14 is used to receive the monitoring data returned by the client cross-platform monitoring unit 13 installed in the virtual machine 2. The monitoring data analysis module 15 is used for analyzing the monitoring data collected by the monitoring data collection module 14 to trigger an alarm behavior, an expansion behavior or a reduction behavior according to the analysis result, such as an alarm behavior that the resources of the virtual machine are insufficient, an expansion behavior that the resources of the virtual machine need to be expanded, and a reduction behavior that the resources of the virtual machine need to be reduced.
In addition, as shown in fig. 2, the client cross-platform monitoring unit 13 further includes a cross-platform monitoring module 131, an external call receiving module 132, an automatic updating module 133, a rule engine module 134, and a data transmission module 135.
The cross-platform monitoring module 131 is responsible for detecting the type or version of the operating system 21 at the user end, the cross-platform monitoring module 131 may further include a Windows operating system network card monitoring submodule, a Mac operating system network card monitoring submodule, a L inux operating system network card monitoring submodule, or other operating system network card monitoring submodules, which may support various different operating systems and specific versions of network card monitoring, the Windows operating system network card monitoring submodule is responsible for monitoring various Windows network card data, the L inux operating system network card monitoring submodule is responsible for monitoring various L inux network card data, the Mac operating system network card monitoring submodule is responsible for monitoring various Mac network card data, and the other operating system network card monitoring submodules are responsible for monitoring various other network card data, such as Solaris.
The receive external call module 132 is responsible for receiving calls from the external host 3 to receive updated programs and obtain the latest rule engine parameters.
The automatic update module 133 is responsible for updating the customer premise cross platform monitoring unit 13 according to the update program, i.e. triggered by the external call receiving module 132 to update the cross platform monitoring module 131, the external call receiving module 132, the rule engine module 134 and the data transmission module 135.
In addition, in the processing of the rule engine module 134, the initial monitoring data contains too many unnecessary collected data, such as data related to loop back card (L oopback adapter), data related to link local Address (L ink-local Address), etc., or the contained data has special characteristics, such as overflow of transmitting/receiving flow value, or the contained data has time-dependent surnames, and the unnecessary data needs to be processed together, so that the unnecessary data needs to be filtered, deleted and the time-dependent data needs to be processed, and finally the processed transmittable monitoring data can be obtained.
The data transmission module 135 is responsible for transmitting the monitoring data processed by the rule engine module 134 to the monitoring data collection module 14, that is, for outputting the monitoring data processed by the rule engine module, so that the receiver of the monitoring data collection module 14 and the analyzer of the monitoring data analysis module 15 are the monitoring data processed by the rule engine module 134.
Returning to fig. 1, the Internet Protocol (IP) resource management module 16 is used to manage various IP addresses. Provisioning module 12 obtains a media access control Address (MAC Address) of one of network cards 22a and 22b, and if the one of network cards 22a and 22b is selected by the user to be enabled as a second internet protocol (IPv6) Address, generates a second internet protocol (IPv6) Address according to the MAC Address, thereby performing registration according to the MAC Address and the second internet protocol Address, and further provides IP resource management module 16 to manage a second internet protocol (IPv6) Address admission algorithm to complete provisioning of the one of network cards 22a and 22b, wherein the second internet protocol (IPv6) Address can be generated by using a Modified EUI-64 method according to the MAC Address of network card 22a or 22 b.
In addition, if one of the network cards 22a and 22b is selected by the user as the first internet protocol (IPv4) Address, the provisioning module 12 may obtain the media access control Address (MAC Address) of the other of the network cards 22a and 22b, and obtain the first internet protocol (IPv4) Address allocated or selected by the user, so as to perform registration according to the media access control Address and the first internet protocol Address, and further provide the IP resource management module 16 to manage the first internet protocol (IPv4) Address, so as to complete provisioning of the other of the network cards 22a and 22 b. In addition, the user selects the first IP address through the gui 17, and the IP protocol resource management and control module 16 accepts the announcement from the gui 17 to self-state the first IP address: available changes are state: in distribution, after registration, the state is changed to: in addition, when the user abandons or overdue the first IP address through the graphical user interface 17, the IP resource management module 16 self-asserts the first IP address: change in distribution to state: alternatively, when the user leases the first IP address through the graphical user interface 17, the IP resource management module 16 self-states the first IP address: occupied change to state: can be used.
Referring to fig. 3, the client cross-platform monitoring units 13a, 13b, 13c and 13d are installed on the client operating systems of the virtual machines in a program format, and the monitoring data presentation page 18 can obtain the data to be presented from the monitoring data collection module 14 and make a report for review. In addition, the monitoring data collection module 14 can receive the monitoring data returned by the cross-platform monitoring units 13a, 13b, 13c, and 13d at the user end, and store the monitoring data in a classified manner for the monitoring data presentation page 18 and the monitoring data analysis module 15. The monitoring data analysis module 15 is responsible for analyzing the data in the monitoring data collection module 14, and if the data reaches a specific condition, an alarm, an expansion or reduction triggering behavior of the automatic expansion group will be triggered. The client cross-platform monitoring units 13a, 13b, 13c and 13d can periodically capture the monitoring values on the client operating system 21 according to the parameters of the rule engine module 134, and transmit the data back to the monitoring data collection module 14. In addition, the external host 3 can send specific rule engine parameters or update programs to the external call receiving module 132 of the cross-platform client-side cross-platform monitoring unit 13 according to the environment and system requirements, thereby triggering the update of the automatic update module 133 and the rule engine module 134.
Therefore, the client-side cross-platform monitoring unit may be installed in the client operating system of the virtual machine, and executed when the client operating system is started, may automatically detect the current operating system environment variables, such as Windows, L inux, and may automatically detect the operating system versions, such as Windows 2012 and Windows2016, and the operating system bytes, such as 32 bits and 64 bits, when the operating system state detection is confirmed, for example, Windows, the cross-platform monitoring module 131 may load a Dynamic link library (Dynamic-link library) existing in a network card monitoring submodule of the Windows operating system, so as to obtain the monitoring values of each network card.
In addition, the operating system of the client includes a plurality of physical network cards and virtual network cards, which can be automatically filtered according to the current parameters of the rule engine module 134. For example, filtering may be performed according to the MAC of the network card, for example, if the MAC allocated by a technology manufacturer is assumed to be (00:77:34), and if the network card of the technology manufacturer is to be filtered, the MAC may be (00:77:34) of the network card. For another example, the filtering may be performed according to whether Public IP exists on the network card, and the network card with only Private IP is not monitored. In addition, the monitoring data on the operating system of the user end is only the targets represented by the accumulated numerical values, such as the traffic transmitted and received by IPv4 and IPv6 on the network card, the number of packets transmitted and received by IPv4 and IPv6, the number of error packets transmitted and received by IPv4 and IPv6, and the number of discarded packets generated during transmission and reception by IPv4 and IPv6, will have an overflow condition, and accordingly, the overflow can be automatically detected according to the current rule parameters of the rule engine module 134 and actively corrected. In addition, the network card monitoring data on the operating system of the client side are different in presentation manner, and can be automatically calculated according to the current rule parameters of the rule engine module 134, if the transmission/reception traffic monitoring data has time dependency, the data presentation manner is accumulated (the value of the next time is greater than the value of the previous time), and if the value of the unit time needs to be obtained, the monitoring values of the previous time and the next time must be automatically subtracted to obtain the difference.
Next, please refer to fig. 4, which schematically illustrates a provisioning monitoring method for a virtual machine network card according to the present invention, wherein after a user completes parameter setting of a virtual machine and sends out an order, a system backend enters a provisioning program, first, in step a01, a virtual machine is configured, that is, a corresponding Hypervisor (such as VMware ESX, KVM, Xen, or Hyper-V) is called to perform virtual machine setting according to a public virtual machine template selected by the user, and the virtual machine is set through a Hypervisor instruction, including an Image used by the virtual machine, a CPU core number, a memory size, and a system disk. After the configuration of the virtual machine is completed, the provisioning of network cards #1, #2, # 32, # n in steps a021, a022, …, a02N are performed, wherein the user can simultaneously enable the network cards #1, #2, …, # n, and the process also includes the provisioning of network card #1 in step a021, then the provisioning of network card #2 in step a022, and until the provisioning of network card # n is completed in step a 02N.
Referring to fig. 5, which is a specific flow of the single network card provisioning method of each of steps a021, a022, …, a02N, the system first checks whether the network card is set to be enabled, and if so, calls the Hypervisor to start configuring the network card according to the selected network protocol being IPv4 or IPv 6; if the network card is not started, the supply flow of the network card is directly ended, and the next network card is continuously supplied and installed. The present invention adopts a single stack (single stack) IP configuration method, i.e. the network protocol of the network card configured by the user in the graphical user interface is IPv4 or IPv6 to guide different configuration flows. In steps B01 and B04, the network card is configured by calling the Hypervisor command to configure whether IPv4 or IPv6 is selected, so as to mount the network card on the virtual machine and enable the system to obtain the MAC Address (Media access control Address) of the network card.
In the IPv4 address acquisition in step B02, there are two setting methods, one of which is automatic assignment: the system automatically obtains the first available IP address in the bound sub-network segment, and the other one is selected by the user: the user manually selects an available IP address in the bonded sub-network segment. If automatic distribution is selected, the system will sequentially obtain the first available IPv4 address from the Subnet (Subnet) selected by the user, for example, the user selects a new unused Subnet 192.168.5.0/24 on the network card setting, and the system will automatically distribute the first available IP as 192.168.5.1; if the IP address is appointed by the user, the user selects an available IPv4 address from the subnet section through a Graphical User Interface (GUI), the Graphical User Interface (GUI) can announce the IP address to be distributed to the system in advance, and the system drives an IP resource control module to update the IP address to be distributed after receiving the request. Even after the IP is announced, the system provides flexibility to modify the IP as long as the lease procedure has not been completed, and when the user cancels or changes the originally designated IP, the system changes the originally announced IP back to "available" and sets the newly announced IP to "under distribution". Once an IP address is declared as being in dispatch, the user needs to complete the lease-applying procedure within M minutes (1 ≦ M), otherwise the system will release the declared IP address because of timeout. Specifically, referring to fig. 6, after the user selects an IPv4 address 10.144.61.4 through the GUI 17, the GUI 17 may use RESTful API to drive the IP resource management module 16, update the status of the IPv4 address 10.144.61.4 from "available" to "distributing", and notify the GUI 17 after completion, so that the GUI 17 can continue and complete the lease-applying process. Referring to fig. 7, which is a schematic diagram illustrating the state change of the IPv4 address, all IPv4 addresses that can be selected by the user belong to the state D01: alternatively, when the GUI declares via RESTful, the IP address is adjusted to state D02: in the dispensing process. After the network card is supplied, the state is changed to state D03: occupied D03. However, if the IP address status is in distribution, but the user does not complete the lease process within M minutes (1. ltoreq. M) within the time limit of the system, the IP address is released, and the status can be changed back to the status D01: available, and state D03: the occupied IP address is released when the network card is removed or the IP is replaced.
After the system can take out the IP Address to be set by the user from the provisioning parameters, in step B03, the system registers the DHCP according to the IP Address of the network card and the MAC Address obtained in step B01, and in step B07, informs the IP resource management and control module that the IP Address is occupied so that the IP resource management and control module can manage the IP Address. When the user subsequently starts the virtual machine, the network card will automatically obtain the DNS server information through the DHCP server.
In addition, in the aspect of setting the network card to be IPv6, because the number of IP is too large and the address length is too long, the operability of the user for self-specifying the IP address is not smooth, so the IPv6 address of the present application adopts full-automatic distribution, but the automatic distribution is through the operating system level rather than the system, so the system cannot know in advance what the IPv6 address E01 of the network card is, which causes difficulty in admission management. To solve the problem, the network card is preset as an automatic distribution method using the Modified EUI-64 algorithm in the operating system level, and the system synchronously uses the Modified EUI-64 algorithm to calculate the IPv6 address to be automatically distributed by the network card in step B05 of step A02N. Calculating by using the prefix of the sub-Network segment or Network identification code (Network ID) and the MACAddress, and obtaining the unique IPv6 address. Since both algorithms and input parameters are the same, the system can calculate a consistent IPv6 address. In the present case, all IPv6 addresses belong to Public IP, so in step B05, IPv6 addresses are registered to the twnic (taiwan Network Information center), and the registration contents include the IP addresses and the associated Information of the users.
Referring to fig. 8, to calculate an IPv6 Address E01 distributed at the operating system level, the system obtains the Network ID of the first 64-bit of the IPv6 Address according to the IPv6 subnet segment 2001: B034:2000:3000: 64 bound by the Network card, i.e., obtains the first half segment E02 of the IPv6 Address, simultaneously divides the MAC Address E0400: 50:56: B1: AC: BF into two segments with equal length, i.e., 00:50:56 and B1: AC: BF, adds FF: FE between the two segments to form E05 so that the MAC Address length reaches 64-bit, and finally changes 00 of the first segment to 02, i.e., forms the second half segment E03 of the E06IPv6 Address, i.e., 0250:56FF: B1: ACBF. Finally, the complete IPv6 address 2001: B034:2000:3000:0250:56FF: FEB1: ACBF can be obtained.
After estimating the IPv6 address using the Modified EUI-64 in step B05, since IPv6 all belong to public IP, the registration of IPv6 must be performed on the TWNIC in B06, as shown in step B06, and the registration content includes personal data such as IP address, user name, contact phone, and communication address. After registration, step B07 is performed to add the new use condition of the IP address to the IP resource management and control module, and then the provisioning of the IPv6 network card is completed.
Accordingly, the method for monitoring the network card of the virtual machine in the present application can be summarized as follows. Configuring a virtual machine and a plurality of network cards; respectively setting the network cards to be enabled or not according to the setting of a user; according to the selection of the user, the network cards are respectively started to be a first internet protocol or a second internet protocol; the following steps are carried out on one of the enabled network cards in the plurality of network cards: step (1): obtaining a medium access control address; step (2): obtaining a first internet protocol address or a second internet protocol address; and a step (3): registering, thereby completing the supply and installation of the network card; and respectively carrying out the steps (1) to (3) on the rest network cards of the enablers in the plurality of network cards until the supply of all the enablers in the plurality of network cards is completed.
Therefore, no matter whether the network card is IPv4 or IPv6, once the IP address of the network card is obtained, the IP address management and control module is required to complete the management of the IP address, so that the system can conveniently manage the use condition of each IP, and the supply and installation of a single network card are completed. The scheme provides the capability of the virtual machine to run in IPv4 and IPv6 networks simultaneously by the technology that a single virtual machine is simultaneously provided with N (N is more than or equal to 1) IPv4 and IPv6 network cards, and the IPv4 and IPv6 network cards can exist simultaneously or independently.
In summary, compared with the early stage that the user only has IPv4 and a single network card, the provisioning module of the present application can satisfy the expansion of multiple network cards of a virtual machine, the network card setting of a single stack of IPv6 and IPv4, the newly added monitoring indexes and huge data amount, and collect the monitoring data including IPv6 and IPv4 in a plurality of network cards according to the user-defined attributes through the user-side cross-platform monitoring unit of the present application, and can further support a plurality of operating systems and versions, thereby achieving the cross-platform effect.
The above embodiments are merely illustrative and not restrictive, and those skilled in the art can modify and change the above embodiments without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the present application should be as set forth in the claims.

Claims (15)

1. A supply dress monitored control system for virtual machine network card which characterized in that includes:
the device comprises a supplying module, a loading module and a loading module, wherein the supplying module is used for respectively executing a supplying program for at least one network card of the virtual machine, and in the supplying program, the at least one network card is set to be not started, started to be a first internet protocol or started to be a second internet protocol; and
the client cross-platform monitoring unit is installed in the virtual machine to acquire monitoring data of a client operating system in the virtual machine, wherein the monitoring data comprises network card monitoring data of the first internet protocol and the second internet protocol in the at least one network card.
2. The supply monitoring system according to claim 1, further comprising:
the monitoring data collection module is used for receiving monitoring data returned by the user end cross-platform monitoring unit installed in the virtual machine; and
and the monitoring data analysis module is used for analyzing the monitoring data collected by the monitoring data collection module so as to trigger an alarm behavior, an expansion behavior or a reduction behavior according to the analysis result.
3. The supply package monitoring system of claim 2, wherein the customer-side cross-platform monitoring unit comprises:
a cross-platform monitoring module for detecting the type or version of the client operating system;
the receiving external calling module is used for receiving the calling of the external host to receive the updating program and obtain the latest rule engine parameters;
an automatic update module for updating the cross-platform monitoring unit of the client according to the update program;
the rule engine module is used for processing the monitoring data according to the latest rule engine parameters; and
the data transmission module is used for outputting the monitoring data processed by the rule engine module, so that the receiver of the monitoring data collection module and the analyzer of the monitoring data analysis module are the monitoring data processed by the rule engine module.
4. The supply monitoring system of claim 1, wherein the first internet protocol is IPv4 and the second internet protocol is IPv 6.
5. The supply monitoring system of claim 1, wherein the network card monitoring data further comprises traffic, packet count, packet error count, or packet discard count of the at least one network card for transmission and reception of the first internet protocol and the second internet protocol, and wherein the monitoring data further comprises operating system memory usage or utilization, operating system disk usage or utilization, or operating system central processing unit usage or utilization.
6. The supply package monitoring system of claim 3, wherein the cross-platform monitoring module comprises a Windows operating system network card monitoring submodule, a Mac operating system network card monitoring submodule, an L inux operating system network card monitoring submodule, or another operating system network card monitoring submodule.
7. The supply package monitoring system of claim 1, further comprising an internet protocol resource management and control module for managing various internet protocols, wherein the supply package module obtains a media access control Address (MAC Address) of the at least one network card to generate a second internet protocol Address according to the MAC Address, thereby registering according to the MAC Address and the second internet protocol Address, and completing the supply package of the at least one network card after the internet protocol resource management and control module manages the second internet protocol.
8. The provisioning monitoring system of claim 7 wherein said provisioning module generates said second ip address using a Modified EUI-64 algorithm based on said mac address.
9. The supply package monitoring system of claim 1, further comprising an internet protocol resource management and control module for managing various internet protocols, wherein the supply package module obtains a media access control Address (MAC Address) of the at least one network card, obtains a first internet protocol Address allocated or selected by a user, registers according to the MAC Address and the first internet protocol Address, and completes the supply package of the at least one network card after the internet protocol resource management and control module manages the first internet protocol.
10. The supply monitoring system of claim 9, further comprising a graphical user interface, wherein the user selects the first IP address through the graphical user interface, and the IP resource control module accepts the declaration of the graphical user interface to change the status of the first IP address from available to allocated, and to be registered and then changed to occupied, and wherein the user abandons or overdue the unregistered first IP address through the graphical user interface, the ip resource management and control module changes the status of the first ip address from being allocated to being available, and wherein, when the user leases the first IP address through the graphical user interface, the internet protocol resource management and control module changes the state of the first internet protocol address into usable state.
11. A supply and installation monitoring method for a virtual machine network card is characterized by comprising the following steps:
configuring a virtual machine and a plurality of network cards;
respectively setting the network cards to be enabled or not according to the setting of a user;
according to the selection of the user, the network cards are respectively started to be a first internet protocol or a second internet protocol;
the following steps are carried out on one of the enabled network cards in the plurality of network cards: step 1): obtaining a media access control Address (MAC Address); step 2): obtaining a first internet protocol Address (IP Address) or a second internet protocol Address; and step 3): registering, thereby completing the supply and installation of the network card; and
and respectively carrying out the steps 1) to 3) on the rest network cards of the enablers in the plurality of network cards until the supply of all the enablers in the plurality of network cards is completed.
12. The supply monitoring method of claim 11, wherein the first internet protocol is IPv4, and the second internet protocol is IPv 6.
13. The supply monitoring method as claimed in claim 11, wherein if the second ip address is enabled, the second ip address is calculated according to the mac address for obtaining the second ip address.
14. The supply monitoring method as claimed in claim 11, wherein if the first ip is enabled, the first ip address is distributed or selected by the user for obtaining the first ip address.
15. The supply package monitoring method of claim 14, wherein the status of the first ip address is changed from available to in-distribution when the user selects the first ip address, and is changed to occupied after registration, and wherein the status of the first ip address is changed from in-distribution to available when the user abandons or overdue the unregistered first ip address, and wherein the status of the first ip address is changed from occupied to available when the user leases the first ip address.
CN201910131366.5A 2019-01-25 2019-02-22 Supply and installation monitoring system and method for virtual machine network card Active CN111490894B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW108102923A TWI703835B (en) 2019-01-25 2019-01-25 System and method for provisioning and monitoring virtual machine virtual network interface controller
TW108102923 2019-01-25

Publications (2)

Publication Number Publication Date
CN111490894A true CN111490894A (en) 2020-08-04
CN111490894B CN111490894B (en) 2023-08-29

Family

ID=71812359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910131366.5A Active CN111490894B (en) 2019-01-25 2019-02-22 Supply and installation monitoring system and method for virtual machine network card

Country Status (2)

Country Link
CN (1) CN111490894B (en)
TW (1) TWI703835B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363150A (en) * 2021-12-28 2022-04-15 浪潮通信技术有限公司 Network card connectivity monitoring method and device for server cluster

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611750A (en) * 2012-03-15 2012-07-25 中兴通讯股份有限公司 Double-protocol-stack accessing method and system
CN103475704A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Method for virtual node configuration for virtual cluster application
CN107229492A (en) * 2017-05-17 2017-10-03 东软集团股份有限公司 Installation method, device, system, storage medium and the equipment of server system
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100558098C (en) * 2003-09-02 2009-11-04 华为技术有限公司 A kind of means of communication that realize a plurality of IP address
CN100589393C (en) * 2007-10-18 2010-02-10 中兴通讯股份有限公司 A method for realizing dual-protocol stack switching based on network card
EP3699758B1 (en) * 2010-02-04 2021-08-18 Telefonaktiebolaget LM Ericsson (publ) Network performance monitor for virtual machines
US9083611B2 (en) * 2013-02-21 2015-07-14 Oracle International Corporation Method and system for virtual network interface cards (VNICs) over aggregation spanning multiple switches

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611750A (en) * 2012-03-15 2012-07-25 中兴通讯股份有限公司 Double-protocol-stack accessing method and system
CN103475704A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Method for virtual node configuration for virtual cluster application
CN107229492A (en) * 2017-05-17 2017-10-03 东软集团股份有限公司 Installation method, device, system, storage medium and the equipment of server system
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363150A (en) * 2021-12-28 2022-04-15 浪潮通信技术有限公司 Network card connectivity monitoring method and device for server cluster

Also Published As

Publication number Publication date
CN111490894B (en) 2023-08-29
TWI703835B (en) 2020-09-01
TW202029699A (en) 2020-08-01

Similar Documents

Publication Publication Date Title
US11895154B2 (en) Method and system for virtual machine aware policy management
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
EP2169877B1 (en) Processing method and device for qinq termination configuration
EP3664420B1 (en) Managing address spaces across network elements
US11075980B2 (en) Method for operating a node cluster system in a network and node cluster system
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN112042170A (en) On-node DHCP implementation for virtual machines
CN112637332A (en) Service registration discovery method and system
CN109639796A (en) A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing
CN107070719B (en) Equipment management method and device
JP6036506B2 (en) Program and information processing apparatus for specifying fault influence range
CN107995124B (en) Traffic scheduling method and device
EP3086530A1 (en) Network resource sharing processing and sharing method, device and system
CN112565390B (en) Service distribution method, device, electronic equipment and storage medium
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN111490894A (en) Supply and installation monitoring system and method for virtual machine network card
WO2016202016A1 (en) Device management method, apparatus and system
CN109819059B (en) Method, device, equipment and storage medium for managing network equipment
EP2574093A1 (en) Method and system for managing and controlling wired terminal, and access server
US11683222B2 (en) Virtual network function VNF deployment method and apparatus
CN106850871B (en) Method for realizing DHCP server with single physical network card and multiple VLANs
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN111147617B (en) Method and system for distributing addresses based on DHCP server cluster load
EP3823218A1 (en) Gateway selection method, device, and system
EP3793135A1 (en) Method for an improved operation of a telecommunications network, the telecommunications network being operated as a multi-operator enabled or multi-provider enabled network, system, program and computer-readable medium

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