[go: up one dir, main page]

WO2018094616A1 - Method, device, and virtual network system for monitoring virtual network - Google Patents

Method, device, and virtual network system for monitoring virtual network Download PDF

Info

Publication number
WO2018094616A1
WO2018094616A1 PCT/CN2016/106978 CN2016106978W WO2018094616A1 WO 2018094616 A1 WO2018094616 A1 WO 2018094616A1 CN 2016106978 W CN2016106978 W CN 2016106978W WO 2018094616 A1 WO2018094616 A1 WO 2018094616A1
Authority
WO
WIPO (PCT)
Prior art keywords
time period
information
service
identifier
sending
Prior art date
Application number
PCT/CN2016/106978
Other languages
French (fr)
Chinese (zh)
Inventor
张争宪
申思
李晓
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/106978 priority Critical patent/WO2018094616A1/en
Priority to CN201680045729.8A priority patent/CN107996023B/en
Publication of WO2018094616A1 publication Critical patent/WO2018094616A1/en

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/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • 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/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, device, and virtual network system for monitoring a virtual network.
  • VM Virtual Machine
  • An existing detection virtual network scheme is a small-scale random monitoring virtual network quality.
  • a small-scale random monitoring cannot cover the entire network, and there is a large detection dead angle, which cannot reach the desired detection requirement.
  • Another existing detection virtual network solution is that the entire network performs full detection, that is, each VM in the virtual network sends detection packets to other VMs to detect network quality, but all VM combination detection needs to consume a large amount of Network resources, while taking a long time, result in low efficiency.
  • Embodiments of the present invention provide a method, a device, and a virtual network system for monitoring a virtual network, which can detect a virtual network comprehensively and efficiently.
  • a method of monitoring a virtual network comprising:
  • the network manager obtains service information in a current time period, and the service information includes sending, by each computing server in the virtual network, all VMs located on the respective computing servers.
  • the number of the texts, the receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receives the service packet sent by the source VM Number of
  • the network manager detects the virtual network according to the service information.
  • the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active
  • the detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
  • the network manager detects the virtual network according to the service information, where the network manager collects a packet loss rate of the virtual network according to the service information.
  • the network manager can analyze, according to the service information in the current time period, how many data packets are sent by the source VM to the destination VM during the current time period, and how many data packets the source VM receives from the source VM. If the data is consistent, then the network manager does not lose. Packet, if not consistent, calculate the packet loss rate based on the difference.
  • the packet loss rate can be calculated according to the following formula:
  • N s represents the number of service packets sent by the source VM
  • N r represents the number of service packets received by the destination VM
  • R represents the packet loss rate
  • the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network.
  • the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the detected packet loss rate is greater than a packet loss rate threshold, Notify the user that there is a packet loss problem on the network.
  • the packet loss rate threshold may be a preset. Alternatively, the user can set the size of the packet loss rate threshold.
  • the embodiments of the present invention are not limited thereto.
  • a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, and then the user can timely maintain the normal communication of the network. To avoid unnecessary losses and improve the user experience.
  • the service packet sent by the first VM and the received service packet include a first dye identifier of a current time period, where all the computing servers are The VM sends information and receives information that the respective computing server counts according to the first coloring identifier of the current time period.
  • the first coloring identifier of the current time period is different from the first coloring identifier of the time period adjacent to the current time period.
  • a first coloring identifier may be set for each period. And in order to facilitate distinguishing different periods, the first dyeing marks of adjacent time periods are different.
  • the source VM can use the first coloring identifier that alternates between 0 and 1 to color the service message.
  • the destination VM can also receive the 0 and 1 alternate service messages.
  • the first coloring identifier may be located in a certain field in the service packet.
  • the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
  • the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
  • the service information in the current time period further includes: sending timestamp information of the first service packet sent by the source VM of the first service packet, and the first service The destination VM of the packet receives the received timestamp information of the first service packet.
  • the network manager detects the virtual network according to the service information, and further includes:
  • the network manager calculates a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the received timestamp information.
  • the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp The information is that the source VM of the first service packet and the computing server where the destination VM is located are respectively recorded according to the second dyed identifier of the current time period.
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the second coloring identifier may be located in a certain field in the service message, for example, the second coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention does not Limited to this.
  • first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
  • the first service may be any service in the current time period, for example, the first service may be the first service in the current time period.
  • the sender needs to record the timestamp information of the first service packet for delay detection of the network.
  • the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle.
  • the specific time period may be selected.
  • the service performs delay dyeing, that is, the service packet is dyed by using the second dye identifier, and the calculation server records the transmission timestamp information and the reception timestamp information of the first service packet according to the second dye identifier.
  • the embodiment of the present invention does not exclude delay dyeing of multiple service packets.
  • the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
  • the network manager can perform time delay detection on the network according to the time delay information of the service statistics calculated by the computing server. Moreover, the network manager detects the active packets, that is, detects the active VMs, and detects the active VMs, thereby avoiding useless detection of inactive VMs in the whole network detection, thereby saving network resources and improving user experience.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt to notify the user when determining that the virtual network delay is greater than a delay threshold There is a delay problem in the network.
  • the delay threshold may be preset or manually set, and the user may set the threshold of the delay threshold.
  • a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, so that the user can timely maintain the normal communication of the network, and avoid The necessary losses to enhance the user experience.
  • the time period may be preset by the system, or may be set by the network manager.
  • the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period. Set the time period by the instruction below the server.
  • Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
  • the duration of the time period is not limited.
  • the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
  • the time period includes a sending time period and a receiving time period
  • the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
  • the sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
  • the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
  • the network manager detects the virtual network according to the service information, including:
  • the network manager generates a current service traffic topology corresponding to the current time period according to the service information, where the current service traffic topology includes an association relationship between the VMs having traffic in the current period;
  • the network manager updates the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is a topological superposition of service traffic corresponding to all time periods before the current time period.
  • the second total service traffic topology is formed by superimposing the first total service traffic topology and the current service traffic topology;
  • the network manager performs connectivity detection on the virtual network according to the second total service traffic topology.
  • two topological superpositions may also be described as combining two topologies.
  • the superposition topology is obtained by superimposing the two topologies, for example, the first topology and the second topology superposition, and the superposition topology is a topology formed by adding a difference topology in the first topology, wherein the difference topology is removed in the second topology.
  • the topology after the same part as the first topology.
  • connectivity detection is performed only on the total service traffic topology, and connectivity detection of the full-text topology is not required, which can save network resources and improve user experience.
  • the network manager performs connectivity detection on the virtual network according to the second total service traffic topology, including:
  • the network manager generates a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the same as the same part of the current service traffic topology in the second total service traffic topology.
  • Topology is the same as the same part of the current service traffic topology in the second total service traffic topology.
  • the network manager performs connectivity detection on the difference traffic flow topology.
  • the connectivity detection may be performed after the packet loss rate monitoring of the current service traffic topology, because the second total service traffic topology is larger than the current service traffic topology, and the topology traffic loss rate of the current service traffic is During the detection, the network manager already knows which VMs are connected at the current time and time (they have sent packets), so there is no need to perform connectivity detection on the current traffic topology, so the second total service is performed at the next moment.
  • the connectivity of the traffic topology is detected, only the part of the second total service traffic topology and the current service traffic topology difference, that is, the difference service traffic topology, needs to be tested for connectivity.
  • the embodiment of the present invention only the connectivity detection of the difference service traffic topology is performed, and the repeated detection of the current service traffic topology can be avoided, and the embodiment of the present invention does not need to perform connectivity detection on the full-text topology, thereby saving network resources. Improve the user experience.
  • the network manager may perform connectivity detection on the difference service traffic topology according to the method for constructing a packet in the prior art. For example, the network manager first constructs a virtual service message, and the virtual service message is sent to the destination VM for the source VM in the difference service traffic topology, so as to detect whether the source VM is connected to the destination VM. For example, if the VM is connected to the port of the OVS, the virtual source VM sends a packet through the port, which is used for connectivity detection. The packet is dyed. For example, the virtual connectivity detection identifier is set for the packet.
  • the peer VM After obtaining the virtual service packet, the peer VM can determine the packet as a virtual service packet according to the virtual connectivity detection identifier, and return the response after the destination VM obtains the virtual service packet.
  • the sender After receiving the response, it can be determined that the source VM and the destination VM are connected.
  • the configuration of the message for the connectivity detection may refer to the provisions in the existing standards, and details are not described herein again.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: when determining that the connectivity between two VMs in the network is interrupted, the network manager issues a warning prompt to notify There is connectivity issues in the user network.
  • the embodiment of the present invention issues a warning prompt when determining that the connectivity between two VMs in the network is interrupted, so that the user can discover the network connectivity problem as early as possible. Therefore, the operation and maintenance personnel can solve the problem in the first time and maintain the network in time. Normal communication reduces or avoids the loss caused by network interruption and improves user experience.
  • a method of monitoring a virtual network comprising:
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, where the sending information of the first VM includes the identifier information of the first VM and the service packet sent by the first VM.
  • the computing server sends the sending information and the receiving information of all the VMs located on the computing server to the network manager, so that the network manager detects the virtual network according to the service information in the current time period, where the service information
  • the sending information and the receiving information of all the VMs located on the respective computing servers reported by the computing servers in the virtual network are included.
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detection, thereby reducing the impact of detection on traffic, enabling the detection of a comprehensive and efficient virtual network.
  • the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
  • the execution subject of the first aspect is a network manager
  • the execution body in the second aspect may be a computing server
  • the corresponding feature of the method on the computing server side may be referred to the first
  • the corresponding description of the aspect on the network server side therefore, the detailed description is omitted as appropriate for the sake of brevity.
  • the first VM in the embodiment of the present invention may represent each VM or any one VM located on each computing server.
  • the service packet sent by the first VM and the received service packet include a dyeing identifier of a current time period.
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
  • the computing server counts the transmission information and the reception information of all the VMs located on the computing server according to the first coloring identifier of the current time period.
  • the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
  • a first coloring identifier may be set for each period. And in order to facilitate distinguishing different periods, the first dyeing marks of adjacent time periods are different.
  • the source VM can use the first coloring identifier that alternates between 0 and 1 to color the service message.
  • the destination VM can also receive the 0 and 1 alternate service messages.
  • the first coloring identifier may be located in a certain field in the service packet.
  • the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
  • the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
  • the computing server then dyes the service message in the OVS. For example, by modifying the OVS code, different first coloring identifiers are set for different time periods.
  • the computing server may also insert the hook function to intercept the service packet to increase the coloring identifier, and then send the normal forwarding processing to the OVS.
  • multiple implementation manners may be implemented in the service packet.
  • the first staining identifier is set, and the embodiment of the invention is not limited thereto.
  • the time period may be preset by the system, or may be set by the network manager.
  • the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period.
  • the server issues an instruction to set the time period.
  • Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
  • the duration of the time period is not limited.
  • the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
  • the computing server sets one or more counters for each sender (VM), and counts data packets sent to different destination VMs by each source VM, and records which destination VMs are used in the current time period. How many packets are sent by the VM, each of the different destination VMs is counted separately; the compute server sets one or more counters for each receiver (VM), and for each destination VM, the record is received within the current time period. Which number of packets are sent by the source VM.
  • VM sender
  • the computing server can count the number of data packets sent by each source VM to the destination VM through the quintuple information of the recorded service, and count the number of data packets of each destination VM receiving the source VM.
  • the sending information of all VMs that are calculated by the computing server on the computing server further includes sending timestamp information of the first service packet sent by the source VM on the computing server.
  • the receiving information of all VMs located on the computing server that is calculated by the computing server further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
  • the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information or the receiving timestamp information of the first service packet is received.
  • the computing server records the second coloring identifier according to the current time period, wherein the second coloring identifier of the current time period is different from the second coloring identifier of the time period adjacent to the current time period.
  • the second coloring identifier may be located in a certain field in the service message, for example, the second coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention does not Limited to this.
  • the second dyeing identifier is different from the first dyeing identifier, and the second dyeing identifier is different from the first dyeing identifier in that the second dyeing identifier is used to calculate the timestamp information of the server statistical service packet, and the first dyeing identifier is used.
  • the calculation and reception of statistics on the service packets of the server is not detailed here.
  • first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
  • the first service in the embodiment of the present invention may be any one of the current time periods.
  • the first service can be the first service in the current time period.
  • the sender needs to record the timestamp information of the first service packet for delay detection of the network.
  • the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle.
  • the specific time period may be selected.
  • the services perform delay dyeing, and record the sending timestamp information and the receiving timestamp information of the first service packet.
  • the embodiment of the present invention does not exclude delay dyeing of multiple service packets.
  • the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
  • the sending timestamp information of the first service packet is sent by the VM that sends the first service packet, and the destination VM of the first service packet receives the receiving time of the first service packet.
  • the information is stamped so that the network manager can calculate the delay of the network according to the timestamp information.
  • the time period includes a sending time period and a receiving time period
  • the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
  • the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
  • a network manager for performing the method of any of the foregoing first aspect, the first aspect of the first aspect.
  • the first device comprises means for performing the above method.
  • a computing server for performing the method in any of the foregoing possible implementations of the second aspect and the second aspect.
  • the second device comprises means for performing the above method.
  • a network manager comprising a processor and a memory, the memory for storing a computer program, the processor for executing a computer program stored in the memory, performing the first aspect, the first A method in any of the possible implementations of the aspect.
  • a computing server comprising a processor and a memory, the memory for storing a computer program, the processor for executing a computer program stored in the memory, performing the second aspect, the second aspect The method in any of the possible implementations.
  • a seventh aspect a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect, any of the possible implementations of the first aspect.
  • a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the second aspect, any of the possible implementations of the second aspect.
  • a virtual network system comprising the network manager of the third aspect or the fifth aspect, the computing server of the fourth aspect or the sixth aspect,
  • the computing server is configured to count the sending information and the receiving information of all the virtual machine VMs located on the computing server in a current time period, and send the sending information of all the VMs located on the computing server to the network manager. Receive information;
  • the network manager is configured to detect the virtual network according to the service information, where the service information includes sending information and receiving information of all VMs located on the computing servers reported by each computing server in the virtual network system.
  • the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active
  • the detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
  • FIG. 1 is a schematic diagram of a virtual network architecture applicable to an embodiment of the present invention.
  • FIG. 2 is a block diagram of a data center system to which an embodiment of the present invention can be applied.
  • FIG. 3 is a schematic flow chart of a method of monitoring a virtual network according to an embodiment of the present invention.
  • FIG. 4 is a timing diagram of a time period in accordance with one embodiment of the present invention.
  • FIG. 5 is a schematic illustration of a dyed identification in a message, in accordance with one embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a full network topology according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a current service traffic topology according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a transmission service message in a current time period according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a process of generating a differential traffic flow topology according to an embodiment of the present invention.
  • Figure 10 is a schematic block diagram of a network manager in accordance with one embodiment of the present invention.
  • FIG. 11 is a schematic block diagram of a computing server in accordance with one embodiment of the present invention.
  • Figure 12 is a schematic block diagram of a network manager in accordance with another embodiment of the present invention.
  • FIG. 13 is a schematic block diagram of a computing server in accordance with another embodiment of the present invention.
  • FIG. 14 is a schematic block diagram of a virtual network system according to another embodiment of the present invention.
  • the network in a data center or an enterprise network plan, may be divided into an access layer, an aggregation layer, and a core layer, and the switches in the three layers respectively correspond to an access switch, an aggregation switch, and Core switch.
  • the access switch is used to access the access terminal, and the aggregation switch is used to aggregate the access switches of the lower layer.
  • the core switch is used to aggregate the aggregation switch of the lower layer, and is also responsible for connecting to the Internet 120.
  • the lower end of the access switch can be connected to the soft switch, that is, the Open Virtual Switch ("OVS").
  • OVS Open Virtual Switch
  • Each lower end of the OVS can correspond to multiple virtual machines (VMs).
  • the packets are forwarded according to the forwarding flow table or the load sharing table, so that communication between different VMs, that is, the source VM and the destination VM are in the same node combination or cross-node combination.
  • the forwarding flow table or the load sharing table needs to be generated and delivered by a controller (not shown) to implement communication between different VMs. For example, in the first node combination in Figure 1, OVS1 The next VM1 needs to communicate with the VM1 under the OVS5 in the second node combination, and the packet forwarding needs to be completed according to the load sharing table.
  • OVS Open Virtual Switch
  • one OVS can correspond to one computing server, and one computing server can create multiple VMs.
  • each computing server eg, server 135 or server 140
  • Virtual switches and virtual machines are created and run on each server's hypervisor 155, which virtualizes and schedules physical resources on the server for use by one or more virtual machines.
  • FIG. 2 depicts a data center system 200 architecture diagram applicable to an embodiment of the present invention, that is, there is at least one network manager, such as a data center network manager 110 (DCNM) through the Internet 120.
  • the management of the virtual network architecture shown in FIG. 1 is implemented.
  • the data center network manager 110 can be implemented in the form of a server, and the application App responsible for managing the network is integrated.
  • the embodiment of the present invention is not limited thereto.
  • each virtual switch 145 can be configured to manage communication between a virtual machine network of virtual machines and/or virtual machines in a subnet.
  • Each virtual switch 145 is implemented using software running on a server 135 (which may also be referred to as a compute node CNA).
  • the virtual switch 145 can implement the functions of the physical switch.
  • each virtual machine 150 is implemented using software running on server 135.
  • the virtual machine 150 is configured to communicate with other virtual machines through a network fabric (Fabric) 115.
  • Fabric network fabric
  • server 135 and server 140 are shown, and virtual switch 145 can manage communications between the two virtual switches in server 135.
  • embodiments of the present invention are not limited thereto.
  • the data center system 200 there may be any number of servers, each of which may accommodate any number of virtual switches and any number of virtual machines.
  • the embodiment of the present invention intelligently proposes a virtual network real-time detection scheme based on a dynamic service, and detects a service packet between the VMs by using a server, and then the network manager implements the network according to the service information of the service packet detected by each server. Quality testing.
  • only the service packet is detected, and the entire network is not required to be detected, thereby reducing the impact of the detection on the traffic, so that the network quality detection in the large-scale virtual network scenario is easy to implement, and the service packet is detected.
  • the detection of the active VM avoids the useless detection of the inactive VM in the whole network detection, reduces the resource consumption, and detects all the active VMs, and avoids the detection of the dead angle. Therefore, the embodiment of the present invention realizes the detection of a comprehensive and efficient virtual network.
  • network-wide topology refers to the topology of the relationship between all VMs in the virtual network;
  • current traffic topology indicates the topology of the association relationship between VMs in the virtual network with service communication in the current period;
  • a total service traffic topology represents a topology formed by superimposing traffic traffic topologies corresponding to all time periods before the current time period;
  • second total traffic flow topology indicates the current time period and all time periods before the current time period.
  • the topology of the traffic flow topology is superimposed;
  • active VM means a VM that has communication with other VMs, for example, a VM that has communication services in a period of time, such as a VM.
  • the source VM may also be the destination VM of the service;
  • active VM means a VM that has no service communication for a long time, for example, a VM that has no communication service for a period of time, such as during a period of time.
  • FIG. 3 is a schematic flowchart of a method for monitoring a virtual network according to an embodiment of the present invention.
  • the method 100 shown in FIG. 3 includes:
  • the computing server counts all the devices located on the computing server during the current time period.
  • the VM sends and receives information.
  • each computing server in the virtual network collects transmission information and reception information of all VMs located on the respective computing servers during the current time period.
  • the sending information of the first VM on the computing server includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the service report sent by the first VM to the destination VM.
  • the number of the texts, the receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receives the service packet sent by the source VM The number.
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network.
  • the detection of all active VMs at the same time avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
  • the first VM in the embodiment of the present invention may represent each VM or any one VM located on each computing server.
  • the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the computing server according to the current time period is The first staining identifier counts the transmission information and the reception information of all VMs located on the computing server.
  • the first staining identifier of the current time period is different from the first staining identifier of the time period adjacent to the current time period.
  • a first coloring identifier may be set for each period, and the first coloring identifier of the adjacent time period may be different in order to facilitate distinguishing different periods.
  • the source VM may use the first coloring flag alternated between 0 and 1 to color the service message.
  • the destination VM may also receive the 0 and 1 alternate service messages.
  • the first coloring identifier may be located in a certain field in the service packet.
  • the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
  • the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
  • the computing server then dyes the service message in the OVS. For example, by modifying the OVS code, different first coloring identifiers are set for different time periods.
  • the computing server may also insert the hook function to intercept the service packet to increase the coloring identifier, and then send the normal forwarding processing to the OVS.
  • multiple implementation manners may be implemented in the service packet.
  • the first staining identifier is set, and the embodiment of the invention is not limited thereto.
  • the time period may be preset by the system, or may be set by the network manager.
  • the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period.
  • the server issues an instruction to set the time period.
  • Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
  • the duration of the time period is not limited.
  • the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
  • the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
  • the computing server collects, in the sending time period, the sending information of all the VMs located in the computing servers, and collects the service packets received by all the VMs located in the computing servers in the receiving time period. Information.
  • the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
  • the network manager can start a timer, and based on the timer, two time stamps can be set.
  • the first time stamp is a transmission time period of the service sender (source VM), for example, 10s
  • the second time stamp is the receiving time period of the service receiving end (destination VM), which can be defined as 10s*(1+2/3).
  • the computing server sends the data sent by each sending end located on the computing server.
  • Packet is dyed, for example in the IP header of the packet
  • the field is marked with a coloring identifier.
  • the dyeing identifiers can be different numbers or letters in different time periods of the system timer, representing different periods of coloring.
  • the coloring identifier in the current time period can be in the packet header field of the message. Marked as 0, the next time period is dyed with the mark 1 and so on.
  • the network manager or the computing server can trigger a notification to notify all senders to stop the dyeing, but the receiving end continues to receive until the second time is marked, the computing server triggers the notification, and the receiving end stops. receive.
  • each of the computing servers can conveniently collect the information of the service packet sent by the VM on the computing server and the information of the received service packet by performing the coloring of the service packet for each time period.
  • the computing server sets one or more counters for each sender (VM), and counts data packets sent to different destination VMs by each source VM, and records which destination VMs are used in the current time period. How many packets are sent by the VM, each of the different destination VMs is counted separately; the compute server sets one or more counters for each receiver (VM), and for each destination VM, the record is received within the current time period. Which number of packets are sent by the source VM.
  • VM sender
  • the computing server can count the number of data packets sent by each source VM to the destination VM through the quintuple information of the recorded service, and count the number of data packets of each destination VM receiving the source VM.
  • the service information in the current time period may further include: sending timestamp information of the first service packet sent by the source VM of the first service packet, and the purpose of the first service packet.
  • the VM receives the received timestamp information of the first service packet.
  • the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp The information is that the source VM of the first service packet and the computing server where the destination VM is located are respectively recorded according to the second dyed identifier of the current time period.
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the second coloring identifier may be located, for example, in a certain field in the service message.
  • the second coloring identifiers in different time periods are marked with different numbers or letters.
  • Embodiments of the invention are not limited thereto.
  • the second dyeing identifier is different from the first dyeing identifier, and the second dyeing identifier is different from the first dyeing identifier in that the second dyeing identifier is used to calculate the timestamp information of the server statistical service packet, and the first dyeing identifier is used.
  • the calculation and reception of statistics on the service packets of the server is not detailed here.
  • first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
  • the first service may be any service in the current time period, for example, the first service may be the first service in the current time period.
  • the sender needs to record the timestamp information of the first service packet for delay detection of the network.
  • the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle.
  • the specific time period may be selected.
  • the services perform delay dyeing, and record the sending timestamp information and the receiving timestamp information of the first service packet.
  • the embodiment of the present invention does not exclude delay dyeing of multiple service packets.
  • the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
  • the sending timestamp information of the first service packet is sent by the VM that sends the first service packet, and the destination VM of the first service packet receives the receiving time of the first service packet.
  • the information is stamped so that the network manager can calculate the delay of the network according to the timestamp information.
  • the computing server sends, to the network manager, sending information and receiving information of all VMs located on the computing server,
  • each computing server in the virtual network separately reports the number of data packets that are respectively sent to different VMs in one time period, and the number of data packets received from different VMs in one cycle is reported to the network server.
  • the computing server may further send the timestamp information of the first service packet and the timestamp information of the first service packet.
  • the information reported by the computing server to the network manager may include: how many data packets are sent by the VM1 to the destination VM (such as VM2, VM3, VM4, etc.), and how many VM1 packets are sent by the destination VM2, and the destination VM3 receives the data packet. How many VM1 packets and so on, and when does VM1 send a packet to VM2 to calculate the delay? When did VM2 receive this packet and so on?
  • the sending information and the receiving information of all the VMs located on the computing server are sent to the network manager by the computing server, so that the subsequent network manager can detect the service packet without detecting the entire network. Therefore, the impact of the detection on the traffic is reduced, and the network manager detects the service packet, that is, detects the active VM, and avoids useless detection of the inactive VM in the whole network detection, thereby saving network resources. Simultaneous detection of all active VMs also avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
  • the network manager collects a packet loss rate of the virtual network.
  • the network manager collects a packet loss rate of the virtual network according to the service information.
  • the computing server collects the sending information of all the VMs located on the computing servers in the sending time period, and collects the information of the service packets received by all the VMs located in the computing servers in the receiving time period. And based on the statistical information and calculate the packet loss rate in the current virtual network.
  • the virtual network includes six virtual machines, namely VM1, VM2, VM3, VM4, VM5, and VM6, and the entire network topology is as shown in FIG. 6.
  • VMs there are 6 VMs in FIG. 6 and 15 pairs of interconnections.
  • FIG. 6 is merely exemplary.
  • the embodiment of the present invention is not limited thereto. For example, if there are N VMs in the virtual network, the association relationship is C 2 N , for example, If there is 1000VM in the virtual network, the interconnection is 499,500 pairs.
  • VM2 receives the service packet sent by VM1 in the current time period, and VM2 also receives the service packet sent by VM3. Then, the network manager can obtain the current service corresponding to the current time period according to the service information reported by the computing server.
  • the traffic topology is shown in Figure 7.
  • the network manager can collect the packet loss rate in the current service traffic topology corresponding to the current time period according to the service information in the current time period, that is, the information of the service packet sent by each virtual machine VM and the information of the received service packet. .
  • the network manager can analyze how many data packets are sent to the destination VM by the source VM in the current time period according to the service information in the current time period, and how many data packets the source VM receives from the source VM, if the data is consistent, then No packet loss, if not, the packet loss rate is calculated based on the difference.
  • the packet loss rate can be calculated according to the following formula:
  • N s represents the number of service packets sent by the source VM
  • N r represents the number of service packets received by the destination VM
  • R represents the packet loss rate
  • the current time period source VM1 sends four service packets to the destination VM2, and the destination VM2 receives three service packets.
  • the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager performs the service packet.
  • Detection that is, detection of active VMs, also avoids useless detection of inactive VMs in the whole network detection, can save network resources, and simultaneously detect all active VMs and avoid detecting the existence of dead angles, thereby
  • the inventive embodiments enable the detection of a comprehensive and efficient virtual network.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the detected packet loss rate is greater than a packet loss rate threshold, to notify the user that the network is lost.
  • the packet loss rate threshold may be preset or manually set, and the user may set the packet loss rate threshold.
  • a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, and then the user can timely maintain the normal communication of the network. To avoid unnecessary losses and improve the user experience.
  • the network manager performs packet loss detection on the virtual network.
  • the network manager may also perform delay detection on the virtual network.
  • the method further includes:
  • the network manager calculates, according to the sending timestamp information and the received timestamp information, a service delay of the service traffic topology corresponding to each time period.
  • the network manager analyzes the delay according to the timestamp information reported by the sender and the receiver.
  • one of the first 100 ms of the cycle can be selected, or the first data packet can be selected for staining using the second dyed flag to ensure that the receiving end can receive it.
  • the network manager determines the delay of the virtual network in the time period according to the timestamp information of the first service packet, for example, the receiving time of the first service packet. The difference from the transmission time is taken as the delay of the virtual network.
  • the network manager may calculate the delay corresponding to the multiple services in the current time period, and average the multiple delays. As the delay of the virtual network in the current time period.
  • the network manager can perform time delay detection on the network according to the time delay information of the service statistics calculated by the computing server. Moreover, the network manager detects the active packets, that is, detects the active VMs, and detects the active VMs, thereby avoiding useless detection of inactive VMs in the whole network detection, thereby saving network resources and improving user experience.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the virtual network delay is greater than a delay threshold, to notify the user that the network has a delay problem.
  • the delay threshold may be preset or manually set, and the user may set the threshold of the delay threshold.
  • a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, so that the user can timely maintain the normal communication of the network, and avoid The necessary losses to enhance the user experience.
  • the network manager performs packet loss rate and delay detection on the virtual network.
  • the network manager may also perform connectivity detection on the virtual network.
  • the method may further include:
  • the network manager performs connectivity detection on the virtual network.
  • the network manager generates a current service traffic topology corresponding to the current time period according to the service information, where the current service traffic topology includes an association relationship between each VM having a service flow in the current cycle;
  • the network manager updates the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is a topological superposition of service traffic corresponding to all time periods before the current time period.
  • the second total service traffic topology is formed by superimposing the first total service traffic topology and the current service traffic topology;
  • the network manager performs connectivity detection on the virtual network according to the second total service traffic topology.
  • two topological superpositions may also be described as combining two topologies, and two topologies are superimposed to obtain a superimposed topology, such as a first topology and a second topological superposition, the superposition topology. That is, the topology formed after adding the difference topology in the first topology, where the difference topology is the topology after removing the same part from the first topology in the second topology.
  • the first total service traffic topology is a topology in which service traffic topologies corresponding to all time periods before the current time period are superposed.
  • the first total service traffic topology is formed by superposing topology A and topology B.
  • the network manager may update the first total traffic flow topology to the second total traffic flow topology according to the current traffic flow topology (eg, as shown in FIG. 7). Thereafter, the network manager can perform connectivity detection according to the second total service traffic topology.
  • connectivity detection is performed only on the total service traffic topology, and connectivity detection of the full-text topology is not required, which can save network resources and improve user experience.
  • the network manager performs connectivity detection on the virtual network according to the second total service traffic topology, including:
  • the network manager generates a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the same as the same part of the current service traffic topology in the second total service traffic topology.
  • Topology is the same as the same part of the current service traffic topology in the second total service traffic topology.
  • the network manager performs connectivity detection on the difference traffic flow topology.
  • the first total service traffic topology is a topology in which service traffic topologies corresponding to all time periods before the current time period are superposed.
  • the first total service traffic topology is formed by superposing topology A and topology B.
  • the network manager may update the first total traffic flow topology to the second total traffic flow topology according to the current traffic flow topology (eg, as shown in FIG. 7).
  • the second total service traffic topology can be superposed by topology A, topology B, and current traffic flow topology.
  • the network manager may generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology.
  • the network manager performs connectivity detection on the differential traffic flow topology.
  • the connectivity detection may be performed after the packet loss rate monitoring of the current service traffic topology, because the second total service traffic topology is larger than the current service traffic topology, and the topology traffic loss rate of the current service traffic is During the detection, the network manager already knows which VMs are connected at the current time and time (they have sent packets), so there is no need to perform connectivity detection on the current traffic topology, so the second total service is performed at the next moment.
  • the connectivity of the traffic topology is detected, only the part of the second total service traffic topology and the current service traffic topology difference, that is, the difference service traffic topology, needs to be tested for connectivity.
  • the embodiment of the present invention only the connectivity detection of the difference service traffic topology is performed, and the repeated detection of the current service traffic topology can be avoided, and the embodiment of the present invention does not need to perform connectivity detection on the full-text topology, thereby saving network resources. Improve the user experience.
  • the network manager may perform connectivity detection on the second total service traffic topology or the difference service traffic topology according to the method for constructing a packet in the prior art. For example, the network manager first constructs a virtual service packet, and the virtual service packet is sent to the destination VM in the second total service traffic topology or the difference traffic traffic topology to detect whether the source VM is between the destination VMs. It is connected. For example, if the VM is connected to the port of the OVS, the virtual source VM sends a packet through the port, which is used for connectivity detection. The packet is dyed. For example, the virtual connectivity detection identifier is set for the packet.
  • the peer VM After obtaining the virtual service packet, the peer VM can determine the packet as a virtual service packet according to the virtual connectivity detection identifier, and return the response after the destination VM obtains the virtual service packet.
  • the sender After receiving the response, it can be determined that the source VM and the destination VM are connected.
  • the configuration of the message for the connectivity detection may refer to the provisions in the existing standards, and details are not described herein again.
  • the method for detecting a virtual network in the embodiment of the present invention may further include: when determining that the connectivity between two VMs in the network is interrupted, the network manager issues a warning prompt to notify the user that the network has connectivity. problem.
  • the embodiment of the present invention issues a warning prompt when determining that the connectivity between two VMs in the network is interrupted, so that the user can discover the network connectivity problem as early as possible. Therefore, the operation and maintenance personnel can solve the problem in the first time and maintain the network in time. Normal communication reduces or avoids the loss caused by network interruption and improves user experience.
  • FIG. 1 to FIG. 9 are merely intended to assist those skilled in the art to understand the embodiments of the present invention, and the embodiments of the present invention are not limited to the specific numerical values or specific examples illustrated. A person skilled in the art can obviously perform various equivalent modifications or changes according to the examples of FIG. 1 to FIG. 9 .
  • the network manager can only report the reported service information. Performing the detection of the delay, the connectivity, or the packet loss rate; or, after obtaining the second total service traffic topology, performing the delay detection according to the existing manner, that is, the virtual network based on the second total service traffic topology. It is also within the scope of embodiments of the present invention to perform delay detection, such modifications or variations.
  • a network manager of an embodiment of the present invention will be described below with reference to FIG. 10 and FIG. 12, and a computing server according to an embodiment of the present invention will be described with reference to FIGS. 11 and 13.
  • a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer.
  • an application running on a computing device and a computing device can be a component.
  • One or more components can reside within a process and/or execution thread, and the components can be located on one computer and/or distributed between two or more computers.
  • these components can execute from various computer readable media having various data structures stored thereon.
  • a component may, for example, be based on signals having one or more data packets (eg, data from two components interacting with another component between the local system, the distributed system, and/or the network, such as the Internet interacting with other systems) Communicate through local and/or remote processes.
  • data packets eg, data from two components interacting with another component between the local system, the distributed system, and/or the network, such as the Internet interacting with other systems
  • FIG. 10 shows a schematic block diagram of a network manager 1000 according to an embodiment of the present invention.
  • the network manager 1000 includes:
  • the obtaining module 1010 is configured to obtain the service information in the current time period, where the service information includes the sending information and the receiving information of all the VMs located in the computing servers that are reported by the computing servers in the virtual network, where the first VM is
  • the sending information includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM, where the first VM is
  • the receiving information includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM by the source VM.
  • the detecting module 1020 is configured to detect the virtual network according to the service information.
  • the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network.
  • the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
  • the detecting module 1020 is specifically configured to collect, according to the service information, a packet loss rate of the virtual network.
  • the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packets. That is, the detection of the active VM avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of the dead angle, and the present invention Embodiments enable the detection of a comprehensive and efficient virtual network.
  • the detecting module 1020 is specifically configured to generate, according to the service information, a current service traffic topology corresponding to a current time period, where the current service traffic topology includes each VM between the current cycle and the service flow. Relationship
  • the second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
  • the detecting module 1020 is specifically configured to generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the second total service The traffic topology is removed from the same part of the current traffic flow topology; connectivity detection is performed on the difference service traffic topology.
  • the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the sending information of all VMs on the computing servers is Receiving information is calculated by the respective computing servers according to the first coloring identifier of the current time period,
  • the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
  • the service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination of the first service packet.
  • the VM receives the receiving timestamp information of the first service packet
  • the detecting module 1020 is further configured to calculate a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the receiving timestamp information.
  • the first service packet includes a second dyed identifier of the current time period, where the first timestamp of the first service packet and the received timestamp information,
  • the source VM of the first service packet and the calculation server where the destination VM is located are respectively recorded according to the second dye identifier of the current time period.
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the time period includes a sending time period and a receiving time period, where the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the sending time period. Length of time;
  • the sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
  • the network manager 1000 shown in FIG. 10 can implement the various processes involved in the network manager in the method embodiment of FIG.
  • the operations and/or functions of the various modules in the network manager 1000 are respectively implemented to implement the corresponding processes in the method embodiment of FIG.
  • the detailed description is omitted here.
  • FIG. 11 shows a schematic block diagram of a computing server 1100 in accordance with an embodiment of the present invention. Specifically, as shown in FIG. 11, the computing server 1100 includes:
  • the statistics module 1110 is configured to collect, according to the current time period, the sending information and the receiving information of all the VMs located on the computing server, where the sending information of the first VM includes the identifier information of the first VM, and the first VM sends the information.
  • the identification information of the destination VM of the service packet and the number of the service packets sent by the first VM to the destination VM, the received information of the first VM includes the identifier information of the first VM, and the identifier received by the first VM The identifier information of the source VM of the service packet and the number of service packets sent by the first VM to the source VM;
  • the sending module 1120 is configured to send, to the network manager, the sending information and the receiving information of all the VMs located on the computing server, so that the network manager detects the virtual network according to the service information in the current time period, where
  • the service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network.
  • the detection of all active VMs at the same time avoids the detection of the existence of dead angles, and thus the embodiment of the present invention A comprehensive and efficient detection of virtual networks is now available.
  • the service message and the received service message sent by the first VM include a first coloring identifier of a current time period
  • the statistics module 1110 is specifically configured to use the current time period.
  • a staining indicator counts the transmission and reception information of all VMs located on the computing server.
  • the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
  • the receiving information of all VMs located on the computing server that is counted by the statistic module 1110 further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
  • the first service packet includes a second coloring identifier of the current time period, where the statistics module is configured to record the first service according to the second coloring identifier of the current time period. Sending timestamp information or receiving timestamp information of the packet,
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the time period includes a sending time period and a receiving time period
  • the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
  • the statistic module 1110 is specifically configured to use, in the sending time period, the sending information of all VMs located on the computing servers, and the receiving information of all the VMs located in the computing servers in the receiving time period. .
  • computing server 1100 shown in FIG. 11 can implement the various processes involved in the computing server in the method embodiment of FIG.
  • the operations and/or functions of the various modules in the server 1100 are calculated to implement the respective processes in the method embodiment of FIG. 3, respectively.
  • the detailed description is omitted here.
  • FIG. 12 shows a schematic block diagram of a network manager 1200 in accordance with an embodiment of the present invention.
  • the network manager 1200 includes a processor 1210 and a transceiver 1220.
  • the processor 1210 is connected to the transceiver 1220.
  • the network manager 1200 further includes storage.
  • the memory 1230 is coupled to the processor 1210.
  • the network manager 1200 can further include a bus system 1240.
  • the processor 1210, the memory 1230, and the transceiver 1220 can be connected by a bus system 1240.
  • the memory 1230 can be used to store instructions for executing the instructions stored by the memory 1230 to control the transceiver 1220 to send and receive information or signal.
  • the processor 1210 controls the transceiver 1220 to obtain the service information in the current time period, where the service information includes the sending information and the receiving information of all the VMs located in the computing servers that are reported by the computing servers in the virtual network, where
  • the sending information of the first VM includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM.
  • the receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM by the source VM.
  • the processor 1210 detects the virtual network according to the service information.
  • the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active
  • the detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
  • the processor 1210 may be a central processing unit (hereinafter referred to as “the short”), and the processor 1210 may also be another general-purpose processor and a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 1230 can include read only memory and random access memory and provides instructions and data to the processor 1210. A portion of the memory 1230 can also include a non-volatile random access memory. For example, the memory 1230 can also store information of the device type.
  • the bus system 1240 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 1240 in the figure.
  • each step of the above method may pass through a set of hardware in the processor 1210.
  • the instructions in the form of logic circuits or software are completed.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 1230, and the processor 1210 reads the information in the memory 1230 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the processor 1210 is specifically configured to collect, according to the service information, a packet loss rate of the virtual network.
  • the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network.
  • the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
  • the processor 1210 is specifically configured to generate, according to the service information, a current service traffic topology corresponding to a current time period, where the current service traffic topology includes each VM between the current cycle and the service flow. Relationship
  • the second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
  • the processor 1210 is specifically configured to generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the second total service
  • the traffic topology is removed from the same part of the current traffic flow topology; connectivity detection is performed on the difference service traffic topology.
  • the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the sending information of all VMs on the computing servers is Receiving information is calculated by the respective computing servers according to the first coloring identifier of the current time period,
  • the coloring identifier of the current time period is adjacent to the current time period
  • the staining logo is different.
  • the service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination of the first service packet.
  • the VM receives the receiving timestamp information of the first service packet
  • the processor 1210 is further configured to calculate a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the received timestamp information.
  • the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp information are the first
  • the source VM of a service packet and the calculation server where the destination VM is located are respectively recorded according to the second staining identifier of the current time period.
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the time period includes a sending time period and a receiving time period, where the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the sending time period. Length of time;
  • the sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
  • the network manager 1200 shown in FIG. 12 can implement the various processes involved in the network manager in the method embodiment of FIG.
  • the operations and/or functions of the various modules in the network manager 1200 are respectively implemented to implement the corresponding processes in the method embodiment of FIG.
  • the detailed description is omitted here.
  • FIG. 13 shows a schematic block diagram of a computing server 1300 in accordance with an embodiment of the present invention.
  • the computing server 1300 includes a processor 1310 and a transceiver 1320.
  • the processor 1310 is connected to the transceiver 1320.
  • the computing server 1300 further includes a memory 1330, a memory 1330 and a processor. 1310 is connected.
  • the computing server 1300 can also include a bus system 1340.
  • the processor 1310, the memory 1330, and the transceiver 1320 may be connected by a bus system 1340, where the memory 1330 may be used to store instructions, and the processor 1310 is configured to execute instructions stored in the memory 1330 to control the transceiver 1320 to send and receive information or signal.
  • the processor 1310 is configured to collect, according to the current time period, the sending information and the receiving information of all the VMs located on the computing server, where the sending information of the first VM includes the first The identifier information of the VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM, where the received information of the first VM includes the first The identifier information of the VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM to the source VM;
  • the transceiver 1320 is configured to send, to the network manager, the sending information and the receiving information of all the VMs located on the computing server, so that the network manager detects the virtual network according to the service information in the current time period, where the The service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
  • the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network.
  • the detection of all active VMs at the same time avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
  • the processor 1310 may be a central processing unit (hereinafter referred to as “the short”), and the processor 1310 may also be another general-purpose processor and a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 1330 can include read only memory and random access memory and provides instructions and data to the processor 1310. A portion of the memory 1330 can also include a non-volatile random access memory. For example, the memory 1330 can also store information of the device type.
  • the bus system 1340 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 1340 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1310 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, etc., and a mature storage medium in the field. in.
  • the storage medium is located in the memory 1330, and the processor 1310 reads the information in the memory 1330 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the service message and the received service message sent by the first VM include a first coloring identifier of a current time period
  • the processor 1310 is specifically configured to use, according to a current time period.
  • a staining indicator counts the transmission and reception information of all VMs located on the computing server.
  • the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
  • the sending information of all VMs that are located on the computing server that is calculated by the processor further includes sending timestamp information that the source VM sends the first service packet on the computing server;
  • the receiving information of all VMs located on the computing server that is calculated by the processor further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
  • the first service packet includes a second coloring identifier of the current time period, where the processor 1310 is specifically configured to record the first color according to the second coloring identifier of the current time period.
  • the second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
  • the time period includes a sending time period and a receiving time period
  • the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
  • the processor 1310 is specifically configured to use, in the sending time period, the sending information of all VMs located on the computing servers, and the receiving information of all VMs located in the computing servers in the receiving time period. .
  • computing server 1300 shown in FIG. 13 can implement the various processes involved in the computing server in the method embodiment of FIG.
  • the operations and/or functions of the various modules in the server 1300 are calculated to implement the respective processes in the method embodiment of FIG. 3, respectively.
  • the detailed description is omitted here.
  • FIG. 14 shows a schematic block diagram of a virtual network system in accordance with an embodiment of the present invention.
  • the virtual network system 1400 shown in FIG. 14 includes: a network manager 1410 and at least one computing service Server 1420.
  • the computing server 1420 is configured to collect the sending information and the receiving information of all the virtual machine VMs located on the computing server 1420 in the current time period, and send all the VMs located on the computing server 1420 to the network manager 1410. Sending information and receiving information;
  • the network manager 1410 is configured to detect the virtual network according to the service information, where the service information includes the sending information and the receiving information of all the VMs located on the computing servers 1420 reported by the computing servers 1420 in the virtual network system.
  • the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active
  • the detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
  • network manager 1410 corresponds to the network manager shown in FIG. 10 and FIG. 12, and the operations and/or functions of the respective modules in the network manager 1410 can be referred to the above embodiments in FIG. 10 and FIG. Description, in order to avoid repetition, the detailed description is omitted as appropriate herein.
  • the computing server 1420 corresponds to the computing server shown in FIG. 11 and FIG. 13 .
  • the operations and/or functions of the various modules in the computing server 1420 can be referred to the description in the foregoing embodiment of FIG. 11 and FIG. 13 to avoid duplication. Detailed descriptions are omitted as appropriate herein.
  • the virtual network system 1400 shown in FIG. 14 corresponds to the virtual network shown in FIG. 1 and FIG. 2.
  • the specific architecture of the virtual network system 1400 can refer to the corresponding descriptions of FIG. 1 and FIG. 2, in order to avoid duplication. I won't go into details here.
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association that describes an associated object, indicating that there can be three relationships. For example, A and/or B may indicate that A exists separately, and A and B exist simultaneously, and B cases exist alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • connection may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

Embodiments of the present invention provide a method, a device, and a virtual network system for monitoring a virtual network. The method comprises: a network manager acquiring service information in a current time period, the service information comprising sent information and received information of all virtual machines (VMs) located on computing servers in the virtual network, said information being reported by the computing servers, sent information of a first VM comprising identification information of the first VM, identification information of a destination VM of a service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM, received information of the first VM comprising the identification information of the first VM, identification information of a source VM of a service packet received by the first VM, and the number of service packets sent by the source VM that are received by the first VM; and detecting the virtual network according to the service information. The embodiments of the present invention realize overall and efficient detection on a virtual network.

Description

监测虚拟网络的方法、设备和虚拟网络系统Method, device and virtual network system for monitoring virtual network 技术领域Technical field
本发明涉及通信领域,特别涉及一种监测虚拟网络的方法、设备和虚拟网络系统。The present invention relates to the field of communications, and in particular, to a method, device, and virtual network system for monitoring a virtual network.
背景技术Background technique
在大规模甚至是超大规模虚拟网络中,网络质量往往是企业最核心的利益,如果不能实时发现网络质量问题,将给企业带来严重影响,例如,当虚拟网络中端到端,如虚拟机(Virtual Machine,简称VM)到VM出现连通性问题、报文的丢包、断流等问题时,如果用户没及时发现,将会给业务造成影响,给企业带来损失。因此,运维人员需要知道整网端到端的网络质量,以应对突发情况。In large-scale and even ultra-large-scale virtual networks, network quality is often the core benefit of enterprises. If network quality problems cannot be discovered in real time, it will have a serious impact on enterprises, for example, when virtual networks end-to-end, such as virtual machines. (Virtual Machine, VM for short) to the VM when connectivity problems, packet loss, and traffic interruption, if the user does not find it in time, it will affect the business and bring losses to the enterprise. Therefore, the operation and maintenance personnel need to know the end-to-end network quality of the entire network in order to cope with unexpected situations.
目前,针对大规模虚拟网络流量中断、丢包的情况,通常都是等用户报障后,运维人员才进行分析,导致用户体验就比较差。所以需要一种检测虚拟网络的方案,能够在用户报障之前预先发现网络故障,以便运维人员针对故障点进行网络恢复。At present, for large-scale virtual network traffic interruption and packet loss, it is usually after the user reports the obstacle, the operation and maintenance personnel analyze the result, resulting in a poor user experience. Therefore, a solution for detecting a virtual network is required, and the network fault can be discovered in advance before the user reports the fault, so that the operation and maintenance personnel perform network recovery for the fault point.
现有的一种检测虚拟网络方案是小范围的随机监测虚拟网络的质量,然而小范围的随机监测无法覆盖到整个网络中,存在较大的检测死角,无法到达期望的检测需求。现有的另一种检测虚拟网络方案是整个网络进行全检测,即通过虚拟网络中的各个VM向其他的VM发送探测报文实现网络质量的检测,然而所有的VM组合检测,需要消耗大量的网络资源,同时耗时较长,导致效率较低。An existing detection virtual network scheme is a small-scale random monitoring virtual network quality. However, a small-scale random monitoring cannot cover the entire network, and there is a large detection dead angle, which cannot reach the desired detection requirement. Another existing detection virtual network solution is that the entire network performs full detection, that is, each VM in the virtual network sends detection packets to other VMs to detect network quality, but all VM combination detection needs to consume a large amount of Network resources, while taking a long time, result in low efficiency.
因此,如何进行全面且高效的虚拟网络的检测,成为亟待解决的问题。Therefore, how to carry out comprehensive and efficient detection of virtual networks has become an urgent problem to be solved.
发明内容Summary of the invention
本发明实施例提供一种监测虚拟网络的方法、设备和虚拟网络系统,该方法能够全面且高效的对虚拟网络的进行检测。Embodiments of the present invention provide a method, a device, and a virtual network system for monitoring a virtual network, which can detect a virtual network comprehensively and efficiently.
第一方面,提供了一种监测虚拟网络的方法,该方法包括:In a first aspect, a method of monitoring a virtual network is provided, the method comprising:
网络管理器获取当前的时间周期内的业务信息,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送 信息和接收信息,其中,第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;The network manager obtains service information in a current time period, and the service information includes sending, by each computing server in the virtual network, all VMs located on the respective computing servers. The information and the received information, wherein the sending information of the first VM includes the identification information of the first VM, the identification information of the destination VM of the service message sent by the first VM, and the service report sent by the first VM to the destination VM. The number of the texts, the receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receives the service packet sent by the source VM Number of
该网络管理器根据该业务信息对该虚拟网络进行检测。The network manager detects the virtual network according to the service information.
因此,本发明实施例中网络管理器仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active The detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
可选地,在第一方面的一种实现方式中,该网络管理器根据该业务信息对该虚拟网络进行检测,包括:该网络管理器根据该业务信息统计该虚拟网络的丢包率。Optionally, in an implementation manner of the first aspect, the network manager detects the virtual network according to the service information, where the network manager collects a packet loss rate of the virtual network according to the service information.
例如,网络管理器可以根据当前的时间周期内的业务信息,分析在当前的时间周期内源VM发给目的VM多少数据包,目的VM收到源VM多少数据包,如果数据一致,那么没有丢包,如果不一致,根据差异计算丢包率。For example, the network manager can analyze, according to the service information in the current time period, how many data packets are sent by the source VM to the destination VM during the current time period, and how many data packets the source VM receives from the source VM. If the data is consistent, then the network manager does not lose. Packet, if not consistent, calculate the packet loss rate based on the difference.
具体地丢包率可以根据以下公式计算:Specifically, the packet loss rate can be calculated according to the following formula:
R=(Ns-Nr)/Ns R=(N s -N r )/N s
其中,Ns表示源VM发送业务报文的个数,Nr表示目的VM接收到业务报文的个数,R表示丢包率。N s represents the number of service packets sent by the source VM, N r represents the number of service packets received by the destination VM, and R represents the packet loss rate.
因此,本发明实施例中网络管理器仅对统计的业务报文进行丢包率检测,无需对全网络进行检测,从而减少检测对流量的影响,实现了全面且高效率的虚拟网络的检测。并且,本发明实施例中,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network. In addition, in the embodiment of the present invention, the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
可选地,在第一方面的一种实现方式中,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定检测的丢包率大于丢包率阈值时发出警告提示,以通知用户网络存在丢包问题。其中,该丢包率阈值可以是预设 的,也可以为人为设定地,用户可以设定丢包率阈值的大小。本发明实施例并不对此做限定。Optionally, in an implementation manner of the first aspect, the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the detected packet loss rate is greater than a packet loss rate threshold, Notify the user that there is a packet loss problem on the network. The packet loss rate threshold may be a preset. Alternatively, the user can set the size of the packet loss rate threshold. The embodiments of the present invention are not limited thereto.
因此,本发明实施例通过在检测到丢包率较大时,会发出警告提示,进而用户能够及时发现网络质量问题,而无需等待故障后才发现网络问题,进而用户可以及时维护网络的正常通信,避免不必要的损失,提升用户体验。Therefore, in the embodiment of the present invention, when the packet loss rate is detected to be large, a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, and then the user can timely maintain the normal communication of the network. To avoid unnecessary losses and improve the user experience.
可选地,在第一方面的一种实现方式中,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,该各个计算服务器上的所有VM发送信息和接收信息是该各个计算服务器根据当前的时间周期的第一染色标识统计的。Optionally, in an implementation manner of the first aspect, the service packet sent by the first VM and the received service packet include a first dye identifier of a current time period, where all the computing servers are The VM sends information and receives information that the respective computing server counts according to the first coloring identifier of the current time period.
可选地,在第一方面的一种实现方式中,该当前的时间周期的第一染色标识与该当前的时间周期相邻的时间周期的第一染色标识不同。Optionally, in an implementation manner of the first aspect, the first coloring identifier of the current time period is different from the first coloring identifier of the time period adjacent to the current time period.
具体地,本发明实施例中为了便于计算服务器统计业务报文,可以为每个周期设置一个第一染色标识。并且为了便于区分不同的周期,相邻的时间周期的第一染色标识不同。Specifically, in the embodiment of the present invention, in order to facilitate calculation of the server statistics service packet, a first coloring identifier may be set for each period. And in order to facilitate distinguishing different periods, the first dyeing marks of adjacent time periods are different.
例如,在源VM可以使用0和1交替的第一染色标识对业务报文进行染色,同样地,目的VM也可以接收到0和1交替的业务报文。For example, the source VM can use the first coloring identifier that alternates between 0 and 1 to color the service message. Similarly, the destination VM can also receive the 0 and 1 alternate service messages.
应理解,本发明实施例中第一染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第一染色标识用不同的数字或者字母标记,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the first coloring identifier may be located in a certain field in the service packet. For example, the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
例如,在当前时间周期的第一染色标识可以在报文的包头字段中标记为0,第二周期的第二染色标记为1等等。For example, the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
可选地,在第一方面的一种实现方式中,该当前时间周期内的业务信息还包括第一业务报文的源VM发送第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息,Optionally, in an implementation manner of the first aspect, the service information in the current time period further includes: sending timestamp information of the first service packet sent by the source VM of the first service packet, and the first service The destination VM of the packet receives the received timestamp information of the first service packet.
该网络管理器根据该业务信息对该虚拟网络进行检测,还包括:The network manager detects the virtual network according to the service information, and further includes:
该网络管理器根据该发送时间戳信息和该接收时间戳信息计算该各个时间周期对应的业务流量拓扑的业务时延。The network manager calculates a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the received timestamp information.
可选地,在第一方面的一种实现方式中,该第一业务报文包括该当前时间周期的第二染色标识,其中,该第一业务报文的发送时间戳信息和该接收时间戳信息,是该第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的, Optionally, in an implementation manner of the first aspect, the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp The information is that the source VM of the first service packet and the computing server where the destination VM is located are respectively recorded according to the second dyed identifier of the current time period.
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
应理解,本发明实施例中,第二染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第二染色标识用不同的数字或者字母标记,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the second coloring identifier may be located in a certain field in the service message, for example, the second coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention does not Limited to this.
还应理解,在本发明实施例中同一时间周期的第一染色标识和第二染色标识可以不同。It should also be understood that the first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
应理解,本发明实施例中第一业务可以是当前时间周期内的任意一个业务,例如,第一业务可以为当前时间周期内的第一个业务。It should be understood that, in the embodiment of the present invention, the first service may be any service in the current time period, for example, the first service may be the first service in the current time period.
具体而言,发送端还需要记录第一业务报文的时间戳信息,用于网络的时延检测。在本发明实施例中,对网络的时延分析可以仅对一个周期内的一个业务进行检测,不需要对这个周期内的所有包进行时延分析,例如,具体的可以选择时间周期的第一个业务进行时延染色,即使用第二染色标识对业务报文染色,计算服务器根据该第二染色标识记录该第一业务报文的发送时间戳信息和接收时间戳信息。当然,在实际应用中,本发明实施例也不排除对多个业务报文进行时延染色,在这种情况下,网络管理器需要计算出改时间周期内的多个时延数据,并将该多个时延数据求平均值作为该时间周期内的虚拟网络的平均时延。Specifically, the sender needs to record the timestamp information of the first service packet for delay detection of the network. In the embodiment of the present invention, the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle. For example, the specific time period may be selected. The service performs delay dyeing, that is, the service packet is dyed by using the second dye identifier, and the calculation server records the transmission timestamp information and the reception timestamp information of the first service packet according to the second dye identifier. Of course, in an actual application, the embodiment of the present invention does not exclude delay dyeing of multiple service packets. In this case, the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
因此,本发明实施例中网络管理器可以根据计算服务器统计的业务的时间戳信息统计时延,实现对网络的时延的检测。并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, the network manager can perform time delay detection on the network according to the time delay information of the service statistics calculated by the computing server. Moreover, the network manager detects the active packets, that is, detects the active VMs, and detects the active VMs, thereby avoiding useless detection of inactive VMs in the whole network detection, thereby saving network resources and improving user experience.
可选地,在第一方面的一种实现方式中,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定虚拟网络时延大于时延阈值时发出警告提示,以通知用户网络存在时延问题。其中,该时延阈值可以是预设的,也可以为人为设定的,用户可以设定时延阈值的大小。本发明实施例并不对此做限定。Optionally, in an implementation manner of the first aspect, the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt to notify the user when determining that the virtual network delay is greater than a delay threshold There is a delay problem in the network. The delay threshold may be preset or manually set, and the user may set the threshold of the delay threshold. The embodiments of the present invention are not limited thereto.
因此,本发明实施例通过在时延较大时,会发出警告提示,进而用户能够及时发现网络质量问题,而无需等待故障后才发现网络问题,进而用户可以及时维护网络的正常通信,避免不必要的损失,提升用户体验。 Therefore, in the embodiment of the present invention, when the delay is large, a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, so that the user can timely maintain the normal communication of the network, and avoid The necessary losses to enhance the user experience.
应理解,在本发明实施例中,时间周期可以为系统预设的,也可以为网络管理器设置的,例如,网络管理器根据用户的输入的时间周期指令,确定该时间周期,然后向计算服务器下方指令,设置该时间周期。在本发明实施例中每一个时间周期可以包括发送时间周期和接收时间周期。It should be understood that, in the embodiment of the present invention, the time period may be preset by the system, or may be set by the network manager. For example, the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period. Set the time period by the instruction below the server. Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
应理解,本发明实施例中,并不对时间周期的时长做限定,例如,时间周期的时长为5s、10s、15s等待,在实际应用中可以根据具体实际情况而定,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the duration of the time period is not limited. For example, the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
可选地,在第一方面的一种实现方式中,该时间周期包括发送时间周期和接收时间周期,Optionally, in an implementation manner of the first aspect, the time period includes a sending time period and a receiving time period,
该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
其中,该各个计算服务器上的所有VM的发送信息和接收信息,是该各个计算服务器分别在该发送时间周期和该接收时间周期内统计的。The sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
因此,本发明实施例中将在该发送时间周期和该接收时间周期的起始时刻相同,设置该接收时间周期的时长大于该发送时间周期的时长,即使网络中存在时延,由于接收时间周期较长,接收端能够接收到发送端发送的所有报文,因此,本发明实施例,能够避免网络时延的影响,使得接收端能够接收到发送端在发送时间周期发送的业务报文,进而可以在时间周期内统计到所有的业务信息,以便网络管理器根据业务信息对虚拟网络进行检测。Therefore, in the embodiment of the present invention, the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
可选地,在第一方面的一种实现方式中,该网络管理器根据该业务信息对该虚拟网络进行检测,包括:Optionally, in an implementation manner of the first aspect, the network manager detects the virtual network according to the service information, including:
该网络管理器根据该业务信息生成当前的时间周期对应的当前业务流量拓扑,该当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;The network manager generates a current service traffic topology corresponding to the current time period according to the service information, where the current service traffic topology includes an association relationship between the VMs having traffic in the current period;
该网络管理器根据当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,该第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,该第二总业务流量拓扑是由该第一总业务流量拓扑和该当前业务流量拓扑叠加而成;The network manager updates the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is a topological superposition of service traffic corresponding to all time periods before the current time period. The second total service traffic topology is formed by superimposing the first total service traffic topology and the current service traffic topology;
该网络管理器根据该第二总业务流量拓扑对该虚拟网络进行连通性检测。The network manager performs connectivity detection on the virtual network according to the second total service traffic topology.
应理解,本发明实施例中,两个拓扑叠加也可以描述成两个拓扑合并, 两个拓扑叠加后得到叠加拓扑,例如第一拓扑和第二拓扑叠加,该叠加拓扑即为在第一拓扑中增加差值拓扑后形成的拓扑,其中,该差值拓扑为第二拓扑中去除与第一拓扑相同部分之后的拓扑。It should be understood that, in the embodiment of the present invention, two topological superpositions may also be described as combining two topologies. The superposition topology is obtained by superimposing the two topologies, for example, the first topology and the second topology superposition, and the superposition topology is a topology formed by adding a difference topology in the first topology, wherein the difference topology is removed in the second topology. The topology after the same part as the first topology.
因此,本发明实施例中仅对总业务流量拓扑进行连通性检测,无需对全文拓扑进行连通性检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, connectivity detection is performed only on the total service traffic topology, and connectivity detection of the full-text topology is not required, which can save network resources and improve user experience.
进一步地,在第一方面的一种实现方式中,该网络管理器根据该第二总业务流量拓扑对该虚拟网络进行连通性检测,包括:Further, in an implementation manner of the first aspect, the network manager performs connectivity detection on the virtual network according to the second total service traffic topology, including:
该网络管理器根据该第二总业务流量拓扑和该当前业务流量拓扑生成差值业务流量拓扑,该差值业务流量拓扑为该第二总业务流量拓扑中去除与该当前业务流量拓扑中相同部分的拓扑;The network manager generates a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the same as the same part of the current service traffic topology in the second total service traffic topology. Topology
该网络管理器对该差值业务流量拓扑进行连通性检测。The network manager performs connectivity detection on the difference traffic flow topology.
应理解,本发明实施例中,连通性检测可以在当前业务流量拓扑的丢包率监测之后进行,由于第二总业务流量拓扑大于当前业务流量拓扑,并且,在对当前业务流量拓扑丢包率检测中,网络管理器已经知道当前时间周期时刻哪些VM之间是连通的(他们有发送数据包),因此,无需再对当前业务流量拓扑进行连通性检测,所以在下一个时刻对第二总业务流量拓扑的连通性检测时,仅需要对第二总业务流量拓扑与当前业务流量拓扑差异的部分,即差值业务流量拓扑进行连通性检测即可。It should be understood that, in the embodiment of the present invention, the connectivity detection may be performed after the packet loss rate monitoring of the current service traffic topology, because the second total service traffic topology is larger than the current service traffic topology, and the topology traffic loss rate of the current service traffic is During the detection, the network manager already knows which VMs are connected at the current time and time (they have sent packets), so there is no need to perform connectivity detection on the current traffic topology, so the second total service is performed at the next moment. When the connectivity of the traffic topology is detected, only the part of the second total service traffic topology and the current service traffic topology difference, that is, the difference service traffic topology, needs to be tested for connectivity.
因此,本发明实施例中仅对差值业务流量拓扑进行连通性检测,能够避免对当前业务流量拓扑的重复检测,并且,本发明实施例无需对全文拓扑进行连通性检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, only the connectivity detection of the difference service traffic topology is performed, and the repeated detection of the current service traffic topology can be avoided, and the embodiment of the present invention does not need to perform connectivity detection on the full-text topology, thereby saving network resources. Improve the user experience.
具体地,本发明实施例中网络管理器可以按照现有技术中构造报文的方法对差值业务流量拓扑进行连通性检测。例如,网络管理器首先构造一个虚拟业务报文,虚拟业务报文为差值业务流量拓扑中的源VM发给目的VM,以此检测源VM于目的VM之间是否是连通的。比如借用VM连接到OVS的端口(port),虚拟源VM通过端口发送了一个报文,专门用于连通性检测,,针对此报文进行染色,例如,对此报文设置虚拟连通检测标识,对端目的VM获取到虚拟业务报文后,根据该虚拟连通检测标识即可确定该报文为虚拟业务报文,在目的VM端获取到虚拟业务报文后返回响应,发送端(源VM)接收到响应后,即可确定源VM和目的VM之间是通的。具体地,构造报文进行连通性检测可以参照现有标准中的规定,此处不再赘述。 Specifically, in the embodiment of the present invention, the network manager may perform connectivity detection on the difference service traffic topology according to the method for constructing a packet in the prior art. For example, the network manager first constructs a virtual service message, and the virtual service message is sent to the destination VM for the source VM in the difference service traffic topology, so as to detect whether the source VM is connected to the destination VM. For example, if the VM is connected to the port of the OVS, the virtual source VM sends a packet through the port, which is used for connectivity detection. The packet is dyed. For example, the virtual connectivity detection identifier is set for the packet. After obtaining the virtual service packet, the peer VM can determine the packet as a virtual service packet according to the virtual connectivity detection identifier, and return the response after the destination VM obtains the virtual service packet. The sender (source VM) After receiving the response, it can be determined that the source VM and the destination VM are connected. Specifically, the configuration of the message for the connectivity detection may refer to the provisions in the existing standards, and details are not described herein again.
可选地,在第一方面的一种实现方式中,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定网络中两个VM间连通中断时,发出警告提示,以通知用户网络存在连通性问题。Optionally, in an implementation manner of the first aspect, the method for detecting a virtual network in the embodiment of the present invention may further include: when determining that the connectivity between two VMs in the network is interrupted, the network manager issues a warning prompt to notify There is connectivity issues in the user network.
因此,本发明实施例通过在确定网络中两个VM间连通中断时,发出警告提示,进而用户能够尽早发现网络连通性问题,因此,运维人员能够第一时间解决该问题,及时维护网络的正常通信,降低或避免由网络中断带来的损失,提升用户体验。Therefore, the embodiment of the present invention issues a warning prompt when determining that the connectivity between two VMs in the network is interrupted, so that the user can discover the network connectivity problem as early as possible. Therefore, the operation and maintenance personnel can solve the problem in the first time and maintain the network in time. Normal communication reduces or avoids the loss caused by network interruption and improves user experience.
第二方面,提供了一种监测虚拟网络的方法,该方法包括:In a second aspect, a method of monitoring a virtual network is provided, the method comprising:
计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,其中,第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;The computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, where the sending information of the first VM includes the identifier information of the first VM and the service packet sent by the first VM. The identifier information of the destination VM and the number of service packets sent by the first VM to the destination VM, where the received information of the first VM includes the identifier information of the first VM and the service packet received by the first VM. The identification information of the source VM and the number of service messages sent by the first VM to the source VM;
该计算服务器向网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息,以使得该网络管理器根据当前的时间周期内的业务信息对该虚拟网络进行检测,其中,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息。The computing server sends the sending information and the receiving information of all the VMs located on the computing server to the network manager, so that the network manager detects the virtual network according to the service information in the current time period, where the service information The sending information and the receiving information of all the VMs located on the respective computing servers reported by the computing servers in the virtual network are included.
因此,本发明实施例中通过计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,以便于后续网络管理器对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detection, thereby reducing the impact of detection on traffic, enabling the detection of a comprehensive and efficient virtual network.
并且,本发明实施例中,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。In addition, in the embodiment of the present invention, the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
应理解,该第二方面与上述第一方面对应,第一方面的执行主体为网络管理器,第二方面中的执行主体可以为计算服务器,计算服务器侧的方法的相应特征可以参见上述第一方面网络服务器侧的相应描述,因此,为了简洁,适当省略详细描述。It should be understood that the second aspect corresponds to the foregoing first aspect, the execution subject of the first aspect is a network manager, the execution body in the second aspect may be a computing server, and the corresponding feature of the method on the computing server side may be referred to the first The corresponding description of the aspect on the network server side, therefore, the detailed description is omitted as appropriate for the sake of brevity.
应理解,本发明实施例中第一VM可以表示位于各个计算服务器上的每一个VM或者任意一个VM。 It should be understood that the first VM in the embodiment of the present invention may represent each VM or any one VM located on each computing server.
可选地,在第二方面的一种实现方式中,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的染色标识,Optionally, in an implementation manner of the second aspect, the service packet sent by the first VM and the received service packet include a dyeing identifier of a current time period.
该计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,包括:The computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
该计算服务器根据当前的时间周期的第一染色标识统计位于该计算服务器上的所有VM的发送信息和接收信息。The computing server counts the transmission information and the reception information of all the VMs located on the computing server according to the first coloring identifier of the current time period.
可选地,在第二方面的一种实现方式中,该当前的时间周期的染色标识与该当前的时间周期相邻的时间周期的染色标识不同。Optionally, in an implementation manner of the second aspect, the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
具体地,本发明实施例中为了便于计算服务器统计业务报文,可以为每个周期设置一个第一染色标识。并且为了便于区分不同的周期,相邻的时间周期的第一染色标识不同。Specifically, in the embodiment of the present invention, in order to facilitate calculation of the server statistics service packet, a first coloring identifier may be set for each period. And in order to facilitate distinguishing different periods, the first dyeing marks of adjacent time periods are different.
例如,在源VM可以使用0和1交替的第一染色标识对业务报文进行染色,同样地,目的VM也可以接收到0和1交替的业务报文。For example, the source VM can use the first coloring identifier that alternates between 0 and 1 to color the service message. Similarly, the destination VM can also receive the 0 and 1 alternate service messages.
应理解,本发明实施例中第一染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第一染色标识用不同的数字或者字母标记,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the first coloring identifier may be located in a certain field in the service packet. For example, the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
例如,在当前时间周期的第一染色标识可以在报文的包头字段中标记为0,第二周期的第二染色标记为1等等。For example, the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
具体地,虚拟机的业务报文发给OVS后,然后计算服务器在OVS对业务报文进行染色,例如,通过修改OVS代码,为不同的时间周期设置不同的第一染色标识。或者本发明实施例中计算服务器也可以通过插入钩子函数将业务报文拦截下来增加染色标识,然后在发给OVS进行正常转发处理,本发明实施例中在业务报文中可以有多种实现方式设置第一染色标识,本发明实施例并不限于此。Specifically, after the service message of the virtual machine is sent to the OVS, the computing server then dyes the service message in the OVS. For example, by modifying the OVS code, different first coloring identifiers are set for different time periods. In the embodiment of the present invention, the computing server may also insert the hook function to intercept the service packet to increase the coloring identifier, and then send the normal forwarding processing to the OVS. In the embodiment of the present invention, multiple implementation manners may be implemented in the service packet. The first staining identifier is set, and the embodiment of the invention is not limited thereto.
应理解,在本发明实施例中,时间周期可以为系统预设的,也可以为网络管理器设置的,例如,网络管理器根据用户的输入的时间周期指令,确定该时间周期,然后向计算服务器下发指令,设置该时间周期。在本发明实施例中每一个时间周期可以包括发送时间周期和接收时间周期。It should be understood that, in the embodiment of the present invention, the time period may be preset by the system, or may be set by the network manager. For example, the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period. The server issues an instruction to set the time period. Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
应理解,本发明实施例中,并不对时间周期的时长做限定,例如,时间周期的时长为5s、10s、15s等待,在实际应用中可以根据具体实际情况而定,本发明实施例并不限于此。 It should be understood that, in the embodiment of the present invention, the duration of the time period is not limited. For example, the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
具体而言,计算服务器为每个发送端(VM)设置一个或者多个计数器,针对每一个源VM发给不同的目的VM的数据包进行计数,记录在当前时间周期内,源VM给哪些目的VM发送了多少个数据包,每个不同的目的VM都要单独统计;计算服务器为每个接收端(VM)设置一个或多个计数器,针对每一个目的VM,记录在当前时间周期内收到哪些源VM发送的多少个数据包。Specifically, the computing server sets one or more counters for each sender (VM), and counts data packets sent to different destination VMs by each source VM, and records which destination VMs are used in the current time period. How many packets are sent by the VM, each of the different destination VMs is counted separately; the compute server sets one or more counters for each receiver (VM), and for each destination VM, the record is received within the current time period. Which number of packets are sent by the source VM.
应理解,本发明实施例中发送端和接收端的计数器在记录业务信息时,针对每一个业务还需要记录该业务的五元组信息(源IP地址,源端口,目的IP地址,目的端口和传输层协议),计算服务器可以通过记录的业务的五元组信息统计每一个源VM发送给目的VM的数据包的个数,并统计每一个目的VM接收源VM的数据包的个数。It should be understood that, in the embodiment of the present invention, when the service information is recorded, the quintuple information (source IP address, source port, destination IP address, destination port, and transmission) of the service needs to be recorded for each service. Layer protocol), the computing server can count the number of data packets sent by each source VM to the destination VM through the quintuple information of the recorded service, and count the number of data packets of each destination VM receiving the source VM.
可选地,在第二方面的一种实现方式中,该计算服务器统计的位于该计算服务器上的所有VM的发送信息还包括该计算服务器上源VM发送第一业务报文的发送时间戳信息;Optionally, in an implementation manner of the second aspect, the sending information of all VMs that are calculated by the computing server on the computing server further includes sending timestamp information of the first service packet sent by the source VM on the computing server. ;
或者,该计算服务器统计的位于该计算服务器上的所有VM的接收信息还包括该计算服务器上目的VM接收第一业务报文的接收时间戳信息。Alternatively, the receiving information of all VMs located on the computing server that is calculated by the computing server further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
可选地,在第二方面的一种实现方式中,该第一业务报文包括该当前时间周期的第二染色标识,其中,该第一业务报文的发送时间戳信息或接收时间戳信息是该计算服务器根据当前的时间周期的第二染色标识记录的,其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。Optionally, in an implementation manner of the second aspect, the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information or the receiving timestamp information of the first service packet is received. The computing server records the second coloring identifier according to the current time period, wherein the second coloring identifier of the current time period is different from the second coloring identifier of the time period adjacent to the current time period.
应理解,本发明实施例中,第二染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第二染色标识用不同的数字或者字母标记,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the second coloring identifier may be located in a certain field in the service message, for example, the second coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention does not Limited to this.
应理解,第二染色标识与第一染色标识的定义类型,第二染色标识与第一染色标识区别在于,第二染色标识用于计算服务器统计业务报文的时间戳信息,第一染色标识用于计算服务器统计业务报文的收发信息,为了避免重复,此处不再详述。It should be understood that the second dyeing identifier is different from the first dyeing identifier, and the second dyeing identifier is different from the first dyeing identifier in that the second dyeing identifier is used to calculate the timestamp information of the server statistical service packet, and the first dyeing identifier is used. The calculation and reception of statistics on the service packets of the server is not detailed here.
还应理解,在本发明实施例中同一时间周期的第一染色标识和第二染色标识可以不同。It should also be understood that the first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
应理解,本发明实施例中第一业务可以是当前时间周期内的任意一个业 务,例如,第一业务可以为当前时间周期内的第一个业务。It should be understood that the first service in the embodiment of the present invention may be any one of the current time periods. For example, the first service can be the first service in the current time period.
具体而言,发送端还需要记录第一业务报文的时间戳信息,用于网络的时延检测。在本发明实施例中,对网络的时延分析可以仅对一个周期内的一个业务进行检测,不需要对这个周期内的所有包进行时延分析,例如,具体的可以选择时间周期的第一个业务进行时延染色,并记录该第一业务报文的发送时间戳信息和接收时间戳信息。当然,在实际应用中,本发明实施例也不排除对多个业务报文进行时延染色,在这种情况下,网络管理器需要计算出改时间周期内的多个时延数据,并将该多个时延数据求平均值作为该时间周期内的虚拟网络的平均时延。Specifically, the sender needs to record the timestamp information of the first service packet for delay detection of the network. In the embodiment of the present invention, the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle. For example, the specific time period may be selected. The services perform delay dyeing, and record the sending timestamp information and the receiving timestamp information of the first service packet. Of course, in an actual application, the embodiment of the present invention does not exclude delay dyeing of multiple service packets. In this case, the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
因此,本发明实施例中通过统计发送第一业务报文的VM发送第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息,以便于网络管理器可以根据时间戳信息统计时延,实现对网络的时延的检测。Therefore, in the embodiment of the present invention, the sending timestamp information of the first service packet is sent by the VM that sends the first service packet, and the destination VM of the first service packet receives the receiving time of the first service packet. The information is stamped so that the network manager can calculate the delay of the network according to the timestamp information.
可选地,在第二方面的一种实现方式中,该时间周期包括发送时间周期和接收时间周期,Optionally, in an implementation manner of the second aspect, the time period includes a sending time period and a receiving time period,
该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
其中,该计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,包括:The computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
该计算服务器在该发送时间周期内统计的位于该各个计算服务器上的所有VM的发送信息,在该接收时间周期内统计的位于该各个计算服务器上的所有VM的接收信息。The calculation information of all VMs located on the respective computing servers that are counted by the computing server during the transmission time period, and the received information of all the VMs located on the respective computing servers during the receiving time period.
因此,本发明实施例中将在该发送时间周期和该接收时间周期的起始时刻相同,设置该接收时间周期的时长大于该发送时间周期的时长,即使网络中存在时延,由于接收时间周期较长,接收端能够接收到发送端发送的所有报文,因此,本发明实施例,能够避免网络时延的影响,使得接收端能够接收到发送端在发送时间周期发送的业务报文,进而可以在时间周期内统计到所有的业务信息,以便网络管理器根据业务信息对虚拟网络进行检测。Therefore, in the embodiment of the present invention, the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
第三方面,提供了一种网络管理器,用于执行上述第一方面、第一方面的任一可能的实现方式中的方法。具体地,该第一设备包括用于执行上述方法的模块。 In a third aspect, a network manager is provided for performing the method of any of the foregoing first aspect, the first aspect of the first aspect. In particular, the first device comprises means for performing the above method.
第四方面,提供了一种计算服务器,用于执行上述第二方面、第二方面的任一可能的实现方式中的方法。具体地,该第二设备包括用于执行上述方法的模块。In a fourth aspect, a computing server is provided for performing the method in any of the foregoing possible implementations of the second aspect and the second aspect. In particular, the second device comprises means for performing the above method.
第五方面,提供了一种网络管理器,该网络管理器包括处理器和存储器,该存储器用于存储计算机程序,该处理器用于执行该存储器中存储的计算机程序,执行上述第一方面、第一方面的任一可能的实现方式中的方法。In a fifth aspect, a network manager is provided, the network manager comprising a processor and a memory, the memory for storing a computer program, the processor for executing a computer program stored in the memory, performing the first aspect, the first A method in any of the possible implementations of the aspect.
第六方面,提供了一种计算服务器,该计算服务器包括处理器和存储器,该存储器用于存储计算机程序,该处理器用于执行该存储器中存储的计算机程序,执行上述第二方面、第二方面的任一可能的实现方式中的方法。In a sixth aspect, a computing server is provided, the computing server comprising a processor and a memory, the memory for storing a computer program, the processor for executing a computer program stored in the memory, performing the second aspect, the second aspect The method in any of the possible implementations.
第七方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面、第一方面的任一可能的实现方式中的方法的指令。A seventh aspect, a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect, any of the possible implementations of the first aspect.
第八方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面、第二方面的任一可能的实现方式中的方法的指令。In an eighth aspect, a computer readable medium is provided for storing a computer program, the computer program comprising instructions for performing the method of the second aspect, any of the possible implementations of the second aspect.
第九方面,提供了一种虚拟网络系统,该虚拟网络系统包括如第三方面或第五方面中的网络管理器,第四方面或第六方面的计算服务器,According to a ninth aspect, a virtual network system is provided, the virtual network system comprising the network manager of the third aspect or the fifth aspect, the computing server of the fourth aspect or the sixth aspect,
其中,该计算服务器用于在当前的时间周期内统计位于该计算服务器上的所有虚拟机VM的发送信息和接收信息,并向该网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息;The computing server is configured to count the sending information and the receiving information of all the virtual machine VMs located on the computing server in a current time period, and send the sending information of all the VMs located on the computing server to the network manager. Receive information;
该网络管理器用于根据业务信息对该虚拟网络进行检测,该业务信息包括该虚拟网络系统中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息。The network manager is configured to detect the virtual network according to the service information, where the service information includes sending information and receiving information of all VMs located on the computing servers reported by each computing server in the virtual network system.
因此,本发明实施例中网络管理器仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active The detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
附图说明 DRAWINGS
图1是本发明实施例可应用的虚拟网络架构图。FIG. 1 is a schematic diagram of a virtual network architecture applicable to an embodiment of the present invention.
图2是本发明实施例可应用的一个数据中心系统架构图。2 is a block diagram of a data center system to which an embodiment of the present invention can be applied.
图3是根据本发明一个实施例的监测虚拟网络的方法的示意性流程图。3 is a schematic flow chart of a method of monitoring a virtual network according to an embodiment of the present invention.
图4是根据本发明一个实施例的时间周期示意图。4 is a timing diagram of a time period in accordance with one embodiment of the present invention.
图5是根据本发明一个实施例的报文中染色标识的示意图。Figure 5 is a schematic illustration of a dyed identification in a message, in accordance with one embodiment of the present invention.
图6是根据本发明一个实施例的全网拓扑示意图。FIG. 6 is a schematic diagram of a full network topology according to an embodiment of the present invention.
图7是根据本发明一个实施例的当前业务流量拓扑示意图。FIG. 7 is a schematic diagram of a current service traffic topology according to an embodiment of the present invention.
图8是根据本发明一个实施例的当前时间周期内传输业务报文示意图。FIG. 8 is a schematic diagram of a transmission service message in a current time period according to an embodiment of the present invention.
图9是根据本发明一个实施例生成差值业务流量拓扑过程示意图。FIG. 9 is a schematic diagram of a process of generating a differential traffic flow topology according to an embodiment of the present invention.
图10是根据本发明一个实施例的网络管理器的示意性框图。Figure 10 is a schematic block diagram of a network manager in accordance with one embodiment of the present invention.
图11是根据本发明一个实施例的计算服务器的示意性框图。11 is a schematic block diagram of a computing server in accordance with one embodiment of the present invention.
图12是根据本发明另一实施例的网络管理器的示意性框图。Figure 12 is a schematic block diagram of a network manager in accordance with another embodiment of the present invention.
图13是根据本发明另一实施例的计算服务器的示意性框图。FIG. 13 is a schematic block diagram of a computing server in accordance with another embodiment of the present invention.
图14是根据本发明另一实施例的虚拟网络系统的示意性框图。FIG. 14 is a schematic block diagram of a virtual network system according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
为了方便理解本发明实施例,首先结合图1描述本发明实施例可应用的数据中心虚拟网络架构图。In order to facilitate the understanding of the embodiments of the present invention, a data center virtual network architecture diagram applicable to an embodiment of the present invention is first described with reference to FIG.
具体地,如图1所示,在数据中心或企业的网络规划里,网络可以划分为接入层、汇聚层和核心层,处于这三层里的交换机分别对应为接入交换机、汇聚交换机和核心交换机。其中,接入交换机用于接入终端,汇聚交换机用于汇聚其下层的接入交换机,核心交换机用于汇聚其下层的汇聚交换机,同时也负责连接到互联网120上。接入交换机下端可以与软交换机相连,即与开放虚拟交换机(Open Virtual Switch,简称为“OVS”)相连,每个OVS下端可以对应多个虚拟机(Virtual Machine,简称为“VM”)。不同的VM之间进行通信时,需要根据转发流表或者负载分担表进行报文转发,从而实现不同的VM之间即源VM和目的VM之间处于同节点组合或跨节点组合时的通信。而转发流表或者负载分担表均需要控制器(图中未示出)生成并下发,才能实现不同VM之间的通信。例如,图1中第一节点组合中OVS1 下的VM1要与第二节点组合中的OVS5下的VM1通信,需要根据负载分担表完成报文的转发。Specifically, as shown in FIG. 1 , in a data center or an enterprise network plan, the network may be divided into an access layer, an aggregation layer, and a core layer, and the switches in the three layers respectively correspond to an access switch, an aggregation switch, and Core switch. The access switch is used to access the access terminal, and the aggregation switch is used to aggregate the access switches of the lower layer. The core switch is used to aggregate the aggregation switch of the lower layer, and is also responsible for connecting to the Internet 120. The lower end of the access switch can be connected to the soft switch, that is, the Open Virtual Switch ("OVS"). Each lower end of the OVS can correspond to multiple virtual machines (VMs). When the different VMs communicate with each other, the packets are forwarded according to the forwarding flow table or the load sharing table, so that communication between different VMs, that is, the source VM and the destination VM are in the same node combination or cross-node combination. The forwarding flow table or the load sharing table needs to be generated and delivered by a controller (not shown) to implement communication between different VMs. For example, in the first node combination in Figure 1, OVS1 The next VM1 needs to communicate with the VM1 under the OVS5 in the second node combination, and the packet forwarding needs to be completed according to the load sharing table.
这三种交换机支持开放流OPENFLOW协议,软件交换机为开放虚拟交换机(Open Virtual Switch,简称为“OVS”)。其中,一个OVS可以对应一个计算服务器,一个计算服务器可以创建多个VM。These three switches support the OpenFlow OPENFLOW protocol, and the software switch is an Open Virtual Switch ("OVS"). Among them, one OVS can correspond to one computing server, and one computing server can create multiple VMs.
例如,如图2所示,每一个计算服务器(例如,服务器135或服务器140)可以容纳一个或多个虚拟交换机(Virtual Switch)145(也可以称为开放虚拟交换机OVS)。虚拟交换机以及虚拟机被创建并且运行在每个服务器上的虚拟层(Hypervisor)155,虚拟层155实现服务器上物理资源的虚拟化以及调度,供一个或者多个虚拟机使用。For example, as shown in FIG. 2, each computing server (eg, server 135 or server 140) can house one or more virtual switches (Virtual Switch) 145 (which can also be referred to as an open virtual switch OVS). Virtual switches and virtual machines are created and run on each server's hypervisor 155, which virtualizes and schedules physical resources on the server for use by one or more virtual machines.
具体而言,图2描述了本发明实施例可应用的一个数据中心系统200架构图,即存在至少一个网络管理器,例如数据中心网络管理器110(Data Center Network Manager,DCNM)通过互联网120来实现对图1所示的虚拟网络架构进行管理。其中的数据中心网络管理器110可以采用服务器(server)的形式实现,上面集成负责管理网络的应用App,本发明实施例并不限于此。Specifically, FIG. 2 depicts a data center system 200 architecture diagram applicable to an embodiment of the present invention, that is, there is at least one network manager, such as a data center network manager 110 (DCNM) through the Internet 120. The management of the virtual network architecture shown in FIG. 1 is implemented. The data center network manager 110 can be implemented in the form of a server, and the application App responsible for managing the network is integrated. The embodiment of the present invention is not limited thereto.
在图2中每个虚拟交换机145可以被配置用来管理一个由虚拟机组成的虚拟机网络和/或子网中虚拟机之间的通信。每一台虚拟交换机145采用运行在服务器135(也可以称为计算节点CNA)的软件来实现。由此,虚拟交换机145能够实现物理交换机的功能。类似的,每一个虚拟机150采用运行在服务器135的软件来实现。虚拟机150被配置用于和其他的虚拟机通过网络架构(Fabric)115通信。该网络架构115可以参照图1中三层交换机的描述,此处为了简洁不再赘述。如图2所示,仅示出了两个服务器即服务器135和服务器140,且虚拟交换机145可以管理服务器135中的2个虚拟交换机之间的通信。但本发明实施例并不限于此,对于数据中心系统200,可以存在任意数量的服务器,每台服务器可以容纳任意数量的虚拟交换机以及任意数量的虚拟机。In Figure 2 each virtual switch 145 can be configured to manage communication between a virtual machine network of virtual machines and/or virtual machines in a subnet. Each virtual switch 145 is implemented using software running on a server 135 (which may also be referred to as a compute node CNA). Thus, the virtual switch 145 can implement the functions of the physical switch. Similarly, each virtual machine 150 is implemented using software running on server 135. The virtual machine 150 is configured to communicate with other virtual machines through a network fabric (Fabric) 115. For the network architecture 115, reference may be made to the description of the Layer 3 switch in FIG. 1, and details are not described herein for brevity. As shown in FIG. 2, only two servers, server 135 and server 140, are shown, and virtual switch 145 can manage communications between the two virtual switches in server 135. However, embodiments of the present invention are not limited thereto. For the data center system 200, there may be any number of servers, each of which may accommodate any number of virtual switches and any number of virtual machines.
针对图1和图2的网络架构,在进行网络质量检测时,即在检测不同的VM之间即源VM和目的VM之间的通信状态时。现有的一种方案为网络管理器进行小范围的随机监测网络的质量,即网络管理器在整个网络拓扑中随机抽取一部分VM进行质量检测,然而小范围的随机监测无法覆盖到整个网络中,存在较大的检测死角,无法到达期望的检测需求。现有的另一种方案 是全网络检测,即网络管理器控制全网拓扑中所有的虚拟机向该全网拓扑中的其他虚拟机发送探测报文实现网络质量的检测,然而所有的虚拟机组合检测,需要消耗大量的网络资源,同时耗时较长,导致效率较低。For the network architecture of FIG. 1 and FIG. 2, when performing network quality detection, that is, when detecting communication states between different VMs, that is, between the source VM and the destination VM. An existing scheme is for the network manager to perform the quality of a small-scale random monitoring network, that is, the network manager randomly extracts a part of the VMs for quality detection in the entire network topology, but a small-scale random monitoring cannot cover the entire network. There is a large detection dead angle that cannot reach the desired detection demand. Another existing solution It is a network-wide detection, that is, the network manager controls all virtual machines in the entire network topology to send probe packets to other virtual machines in the entire network topology to detect network quality. However, all virtual machine combination detection requires a large amount of consumption. Network resources, while taking a long time, result in low efficiency.
为了克服现有技术中全网检测影响系统性能,随机检测又存在较大的检测死角的问题。本发明实施例巧妙地提出一种基于动态业务进行虚拟网络实时检测方案,通过服务器对VM间的业务报文进行检测,之后网络管理器根据各个服务器检测的业务报文的业务信息,实现对网络质量的检测。由于本发明实施例中仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,使得大规模虚拟网络场景下网络质量检测容易实现,并且对业务报文进行检测,即对活跃的VM进行检测,避免了全网检测中对不活跃的VM的无用检测,减少资源消耗,同时对所有活跃的VM均进行检测也避免了检测死角的存在。因此,本发明实施例实现了全面且高效率的虚拟网络的检测。In order to overcome the performance of the whole network detection in the prior art, the random detection has a large problem of detecting the dead angle. The embodiment of the present invention intelligently proposes a virtual network real-time detection scheme based on a dynamic service, and detects a service packet between the VMs by using a server, and then the network manager implements the network according to the service information of the service packet detected by each server. Quality testing. In the embodiment of the present invention, only the service packet is detected, and the entire network is not required to be detected, thereby reducing the impact of the detection on the traffic, so that the network quality detection in the large-scale virtual network scenario is easy to implement, and the service packet is detected. That is, the detection of the active VM avoids the useless detection of the inactive VM in the whole network detection, reduces the resource consumption, and detects all the active VMs, and avoids the detection of the dead angle. Therefore, the embodiment of the present invention realizes the detection of a comprehensive and efficient virtual network.
以下,为了便于理解和说明,作为示例而非限定,将结合图1和图2示出的本发明实施例可应用的虚拟网络架构,详细描述根据本发明实施例的监测虚拟网络拓扑的方法。In the following, for ease of understanding and description, by way of example and not limitation, a method for monitoring a virtual network topology according to an embodiment of the present invention will be described in detail in conjunction with a virtual network architecture to which the embodiments of the present invention illustrated in FIGS. 1 and 2 are applicable.
为了方便理解本发明实施例,首先在此对本发明实施例描述中的一些术语定义如下:In order to facilitate the understanding of the embodiments of the present invention, some terms in the description of the embodiments of the present invention are first defined as follows:
名词“全网拓扑”表示虚拟网络中所有VM间的关联关系的拓扑;名词“当前业务流量拓扑”表示当前的周期内虚拟网络中具有业务通信的各个VM间的关联关系的拓扑;名词“第一总业务流量拓扑”表示由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成的拓扑;名词“第二总业务流量拓扑”表示当前时间周期以及当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成的拓扑;名词“活跃的VM”表示和其他VM有有通信的VM,例如,在一段时间,如在一个时间周期内具有通信业务的VM,该VM可以是业务的源VM,也可以是业务的目的VM;名词“不活跃的VM”表示长时间没有业务通信的VM,例如,在一段时间,如在一个时间周期内没有通信业务的VM。The term "network-wide topology" refers to the topology of the relationship between all VMs in the virtual network; the term "current traffic topology" indicates the topology of the association relationship between VMs in the virtual network with service communication in the current period; A total service traffic topology represents a topology formed by superimposing traffic traffic topologies corresponding to all time periods before the current time period; the term "second total traffic flow topology" indicates the current time period and all time periods before the current time period. The topology of the traffic flow topology is superimposed; the term "active VM" means a VM that has communication with other VMs, for example, a VM that has communication services in a period of time, such as a VM. The source VM may also be the destination VM of the service; the term "inactive VM" means a VM that has no service communication for a long time, for example, a VM that has no communication service for a period of time, such as during a period of time.
图3示出了根据本发明实施例的监测虚拟网络的方法的示意性流程图,如图3所示的方法100包括:FIG. 3 is a schematic flowchart of a method for monitoring a virtual network according to an embodiment of the present invention. The method 100 shown in FIG. 3 includes:
310,计算服务器在当前的时间周期内统计位于该计算服务器上的所有 VM的发送信息和接收信息。310. The computing server counts all the devices located on the computing server during the current time period. The VM sends and receives information.
具体而言,虚拟网络中的各个计算服务器在当前的时间周期内统计的位于该各个计算服务器上的所有VM的发送信息和接收信息。Specifically, each computing server in the virtual network collects transmission information and reception information of all VMs located on the respective computing servers during the current time period.
其中,该计算服务器上的第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数。The sending information of the first VM on the computing server includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the service report sent by the first VM to the destination VM. The number of the texts, the receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receives the service packet sent by the source VM The number.
因此,本发明实施例中通过计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,以便于后续网络管理器对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network. The detection of all active VMs at the same time avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
应理解,本发明实施例中第一VM可以表示位于各个计算服务器上的每一个VM或者任意一个VM。It should be understood that the first VM in the embodiment of the present invention may represent each VM or any one VM located on each computing server.
可选地,作为另一实施例,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,在310中该计算服务器根据当前的时间周期的第一染色标识统计位于该计算服务器上的所有VM的发送信息和接收信息。Optionally, in another embodiment, the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the computing server according to the current time period is The first staining identifier counts the transmission information and the reception information of all VMs located on the computing server.
进一步地,作为另一实施例,当前的时间周期的第一染色标识与当前的时间周期相邻的时间周期的第一染色标识不同。Further, as another embodiment, the first staining identifier of the current time period is different from the first staining identifier of the time period adjacent to the current time period.
具体地,本发明实施例中为了便于计算服务器统计业务报文,可以为每个周期设置一个第一染色标识,并且为了便于区分不同的周期,相邻的时间周期的第一染色标识可以不同。Specifically, in the embodiment of the present invention, in order to facilitate the calculation of the server statistics service packet, a first coloring identifier may be set for each period, and the first coloring identifier of the adjacent time period may be different in order to facilitate distinguishing different periods.
例如,如图4所示,在源VM可以使用0和1交替的第一染色标识对业务报文进行染色,同样地,目的VM也可以接收到0和1交替的业务报文。For example, as shown in FIG. 4, the source VM may use the first coloring flag alternated between 0 and 1 to color the service message. Similarly, the destination VM may also receive the 0 and 1 alternate service messages.
应理解,本发明实施例中第一染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第一染色标识用不同的数字或者字母标记,本发明实施例并不限于此。 It should be understood that, in the embodiment of the present invention, the first coloring identifier may be located in a certain field in the service packet. For example, the first coloring identifiers in different time periods are marked with different numbers or letters, and the embodiment of the present invention is not limited to this.
例如,在当前时间周期的第一染色标识可以在报文的包头字段中标记为0,第二周期的第二染色标记为1等等。For example, the first staining identifier in the current time period may be marked as 0 in the header field of the message, and the second coloring flag in the second period is 1 or the like.
具体地,虚拟机的业务报文发给OVS后,然后计算服务器在OVS对业务报文进行染色,例如,通过修改OVS代码,为不同的时间周期设置不同的第一染色标识。或者本发明实施例中计算服务器也可以通过插入钩子函数将业务报文拦截下来增加染色标识,然后在发给OVS进行正常转发处理,本发明实施例中在业务报文中可以有多种实现方式设置第一染色标识,本发明实施例并不限于此。Specifically, after the service message of the virtual machine is sent to the OVS, the computing server then dyes the service message in the OVS. For example, by modifying the OVS code, different first coloring identifiers are set for different time periods. In the embodiment of the present invention, the computing server may also insert the hook function to intercept the service packet to increase the coloring identifier, and then send the normal forwarding processing to the OVS. In the embodiment of the present invention, multiple implementation manners may be implemented in the service packet. The first staining identifier is set, and the embodiment of the invention is not limited thereto.
应理解,在本发明实施例中,时间周期可以为系统预设的,也可以为网络管理器设置的,例如,网络管理器根据用户的输入的时间周期指令,确定该时间周期,然后向计算服务器下发指令,设置该时间周期。在本发明实施例中每一个时间周期可以包括发送时间周期和接收时间周期。It should be understood that, in the embodiment of the present invention, the time period may be preset by the system, or may be set by the network manager. For example, the network manager determines the time period according to the time period instruction input by the user, and then calculates the time period. The server issues an instruction to set the time period. Each time period in the embodiment of the present invention may include a transmission time period and a reception time period.
应理解,本发明实施例中,并不对时间周期的时长做限定,例如,时间周期的时长为5s、10s、15s等待,在实际应用中可以根据具体实际情况而定,本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the duration of the time period is not limited. For example, the duration of the time period is 5s, 10s, and 15s, and may be determined according to a specific situation in practical applications, and the embodiment of the present invention does not Limited to this.
可选地,作为另一实施例,该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;Optionally, in another embodiment, the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
其中,在310中,该计算服务器在该发送时间周期内统计位于该各个计算服务器上的所有VM的发送信息,在该接收时间周期内统计位于该各个计算服务器上的所有VM接收的业务报文的信息。The computing server collects, in the sending time period, the sending information of all the VMs located in the computing servers, and collects the service packets received by all the VMs located in the computing servers in the receiving time period. Information.
因此,本发明实施例中将在该发送时间周期和该接收时间周期的起始时刻相同,设置该接收时间周期的时长大于该发送时间周期的时长,即使网络中存在时延,由于接收时间周期较长,接收端能够接收到发送端发送的所有报文,因此,本发明实施例,能够避免网络时延的影响,使得接收端能够接收到发送端在发送时间周期发送的业务报文,进而可以在时间周期内统计到所有的业务信息,以便网络管理器根据业务信息对虚拟网络进行检测。Therefore, in the embodiment of the present invention, the transmission time period and the start time of the reception time period are the same, and the duration of the reception time period is greater than the duration of the transmission time period, even if there is a delay in the network, due to the reception time period. If the receiving end is able to receive all the packets sent by the sending end, the receiving end can avoid the influence of the network delay, so that the receiving end can receive the service packet sent by the sending end in the sending time period, and further All business information can be counted in the time period, so that the network manager can detect the virtual network according to the business information.
举例而言,如图5所示,网络管理器可以起一个定时器,基于该定时器可以设置2个时间标记,例如,第一时间标记是业务发送端(源VM)的发送时间周期,比如10s,第二时间标记是业务接收端(目的VM)接收时间周期,可以定义为10s*(1+2/3),计时开始后计算服务器对位于该计算服务器上的各个发送端发送出去的数据包进行染色,例如在数据包的IP头某个 字段加染色标识进行标记,在系统定时器的不同的时间周期染色标识可以为不同的数字或者字母标记,代表不同周期的染色,例如,在当前时间周期的染色标识可以在报文的包头字段中标记为0,下一个时间周期染色就用标记1等等。第一个时间标记到的时候网络管理器或计算服务器可以触发通知,通知所有的发送端停止染色,但接收端继续收,直到第二个时间标记到的时候计算服务器触发通知,通知接收端停止接收。For example, as shown in FIG. 5, the network manager can start a timer, and based on the timer, two time stamps can be set. For example, the first time stamp is a transmission time period of the service sender (source VM), for example, 10s, the second time stamp is the receiving time period of the service receiving end (destination VM), which can be defined as 10s*(1+2/3). After the timing starts, the computing server sends the data sent by each sending end located on the computing server. Packet is dyed, for example in the IP header of the packet The field is marked with a coloring identifier. The dyeing identifiers can be different numbers or letters in different time periods of the system timer, representing different periods of coloring. For example, the coloring identifier in the current time period can be in the packet header field of the message. Marked as 0, the next time period is dyed with the mark 1 and so on. When the first time is marked, the network manager or the computing server can trigger a notification to notify all senders to stop the dyeing, but the receiving end continues to receive until the second time is marked, the computing server triggers the notification, and the receiving end stops. receive.
本发明实施例通过为每个时间周期的业务报文进行染色,各个计算服务器能够方便的对该计算服务器上的VM发送的业务报文的信息和接收的业务报文的信息进行统计。In the embodiment of the present invention, each of the computing servers can conveniently collect the information of the service packet sent by the VM on the computing server and the information of the received service packet by performing the coloring of the service packet for each time period.
具体而言,计算服务器为每个发送端(VM)设置一个或者多个计数器,针对每一个源VM发给不同的目的VM的数据包进行计数,记录在当前时间周期内,源VM给哪些目的VM发送了多少个数据包,每个不同的目的VM都要单独统计;计算服务器为每个接收端(VM)设置一个或多个计数器,针对每一个目的VM,记录在当前时间周期内收到哪些源VM发送的多少个数据包。Specifically, the computing server sets one or more counters for each sender (VM), and counts data packets sent to different destination VMs by each source VM, and records which destination VMs are used in the current time period. How many packets are sent by the VM, each of the different destination VMs is counted separately; the compute server sets one or more counters for each receiver (VM), and for each destination VM, the record is received within the current time period. Which number of packets are sent by the source VM.
应理解,本发明实施例中发送端和接收端的计数器在记录业务信息时,针对每一个业务还需要记录该业务的五元组信息(源IP地址,源端口,目的IP地址,目的端口和传输层协议),计算服务器可以通过记录的业务的五元组信息统计每一个源VM发送给目的VM的数据包的个数,并统计每一个目的VM接收源VM的数据包的个数。It should be understood that, in the embodiment of the present invention, when the service information is recorded, the quintuple information (source IP address, source port, destination IP address, destination port, and transmission) of the service needs to be recorded for each service. Layer protocol), the computing server can count the number of data packets sent by each source VM to the destination VM through the quintuple information of the recorded service, and count the number of data packets of each destination VM receiving the source VM.
可选地,作为另一实施例,该当前时间周期内的业务信息还可以包括第一业务报文的源VM发送第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息。Optionally, in another embodiment, the service information in the current time period may further include: sending timestamp information of the first service packet sent by the source VM of the first service packet, and the purpose of the first service packet. The VM receives the received timestamp information of the first service packet.
可选地,在第一方面的一种实现方式中,该第一业务报文包括该当前时间周期的第二染色标识,其中,该第一业务报文的发送时间戳信息和该接收时间戳信息,是该第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的,Optionally, in an implementation manner of the first aspect, the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp The information is that the source VM of the first service packet and the computing server where the destination VM is located are respectively recorded according to the second dyed identifier of the current time period.
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
应理解,本发明实施例中,第二染色标识例如可以位于业务报文中的某一字段中,例如,不同时间周期的第二染色标识用不同的数字或者字母标记, 本发明实施例并不限于此。It should be understood that, in the embodiment of the present invention, the second coloring identifier may be located, for example, in a certain field in the service message. For example, the second coloring identifiers in different time periods are marked with different numbers or letters. Embodiments of the invention are not limited thereto.
应理解,第二染色标识与第一染色标识的定义类型,第二染色标识与第一染色标识区别在于,第二染色标识用于计算服务器统计业务报文的时间戳信息,第一染色标识用于计算服务器统计业务报文的收发信息,为了避免重复,此处不再详述。It should be understood that the second dyeing identifier is different from the first dyeing identifier, and the second dyeing identifier is different from the first dyeing identifier in that the second dyeing identifier is used to calculate the timestamp information of the server statistical service packet, and the first dyeing identifier is used. The calculation and reception of statistics on the service packets of the server is not detailed here.
还应理解,在本发明实施例中同一时间周期的第一染色标识和第二染色标识可以不同。It should also be understood that the first staining indicia and the second indicia in the same time period may be different in embodiments of the invention.
应理解,本发明实施例中第一业务可以是当前时间周期内的任意一个业务,例如,第一业务可以为当前时间周期内的第一个业务。It should be understood that, in the embodiment of the present invention, the first service may be any service in the current time period, for example, the first service may be the first service in the current time period.
具体而言,发送端还需要记录第一业务报文的时间戳信息,用于网络的时延检测。在本发明实施例中,对网络的时延分析可以仅对一个周期内的一个业务进行检测,不需要对这个周期内的所有包进行时延分析,例如,具体的可以选择时间周期的第一个业务进行时延染色,并记录该第一业务报文的发送时间戳信息和接收时间戳信息。当然,在实际应用中,本发明实施例也不排除对多个业务报文进行时延染色,在这种情况下,网络管理器需要计算出改时间周期内的多个时延数据,并将该多个时延数据求平均值作为该时间周期内的虚拟网络的平均时延。Specifically, the sender needs to record the timestamp information of the first service packet for delay detection of the network. In the embodiment of the present invention, the delay analysis of the network may only detect one service in one cycle, and does not need to perform delay analysis on all the packets in the cycle. For example, the specific time period may be selected. The services perform delay dyeing, and record the sending timestamp information and the receiving timestamp information of the first service packet. Of course, in an actual application, the embodiment of the present invention does not exclude delay dyeing of multiple service packets. In this case, the network manager needs to calculate multiple delay data in the modified time period, and The plurality of delay data are averaged as an average delay of the virtual network during the time period.
因此,本发明实施例中通过统计发送第一业务报文的VM发送第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息,以便于网络管理器可以根据时间戳信息统计时延,实现对网络的时延的检测。Therefore, in the embodiment of the present invention, the sending timestamp information of the first service packet is sent by the VM that sends the first service packet, and the destination VM of the first service packet receives the receiving time of the first service packet. The information is stamped so that the network manager can calculate the delay of the network according to the timestamp information.
320,该计算服务器向网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息,320. The computing server sends, to the network manager, sending information and receiving information of all VMs located on the computing server,
具体地,虚拟网络中的各个计算服务器分别将各自记录的在一个时间周期内发送到不同VM的数据包个数,以及在一个周期内接收到的来自不同VM的数据包个数上报给网络服务器。可选地,计算服务器还可以上报发送第一业务报文的时间戳信息和接收第一业务报文的时间戳信息。Specifically, each computing server in the virtual network separately reports the number of data packets that are respectively sent to different VMs in one time period, and the number of data packets received from different VMs in one cycle is reported to the network server. . Optionally, the computing server may further send the timestamp information of the first service packet and the timestamp information of the first service packet.
例如,计算服务器上报给网络管理器的信息可以包括:VM1给哪些目的VM(比如VM2、VM3、VM4等等)发送了多少数据包,目的VM2收到了多少VM1发送过来的数据包,目的VM3收到多少VM1发送的数据包等等,以及VM1在什么时间给VM2发送了一个用于计算时延的数据包, VM2又是在什么时间收到了这个数据包等等。For example, the information reported by the computing server to the network manager may include: how many data packets are sent by the VM1 to the destination VM (such as VM2, VM3, VM4, etc.), and how many VM1 packets are sent by the destination VM2, and the destination VM3 receives the data packet. How many VM1 packets and so on, and when does VM1 send a packet to VM2 to calculate the delay? When did VM2 receive this packet and so on?
因此,本发明实施例中通过计算服务器向网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息,以便于后续网络管理器对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the sending information and the receiving information of all the VMs located on the computing server are sent to the network manager by the computing server, so that the subsequent network manager can detect the service packet without detecting the entire network. Therefore, the impact of the detection on the traffic is reduced, and the network manager detects the service packet, that is, detects the active VM, and avoids useless detection of the inactive VM in the whole network detection, thereby saving network resources. Simultaneous detection of all active VMs also avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
330,该网络管理器统计虚拟网络的丢包率。330. The network manager collects a packet loss rate of the virtual network.
具体地,该网络管理器根据该业务信息统计该虚拟网络的丢包率。Specifically, the network manager collects a packet loss rate of the virtual network according to the service information.
例如,该计算服务器在该发送时间周期内统计的位于该各个计算服务器上的所有VM的发送信息,在该接收时间周期内统计位于该各个计算服务器上的所有VM接收的业务报文的信息。并根据统计的信息并计算当前虚拟网络中的丢包率。For example, the computing server collects the sending information of all the VMs located on the computing servers in the sending time period, and collects the information of the service packets received by all the VMs located in the computing servers in the receiving time period. And based on the statistical information and calculate the packet loss rate in the current virtual network.
例如,假设虚拟网络中包括6个虚拟机,分别为VM1、VM2、VM3、VM4、VM5和VM6,全网拓扑如图6所示。图6中有6个VM,互联关系有15对,图6仅仅实例性的,本发明实施例并不限于此,例如,如果虚拟网络中具有N个VM,那么关联关系为C2 N,例如,如果虚拟网络中具有1000VM,互联关系是499500对。For example, suppose that the virtual network includes six virtual machines, namely VM1, VM2, VM3, VM4, VM5, and VM6, and the entire network topology is as shown in FIG. 6. There are 6 VMs in FIG. 6 and 15 pairs of interconnections. FIG. 6 is merely exemplary. The embodiment of the present invention is not limited thereto. For example, if there are N VMs in the virtual network, the association relationship is C 2 N , for example, If there is 1000VM in the virtual network, the interconnection is 499,500 pairs.
假设,当前时间周期内VM2接收到了VM1发送了业务报文,并且,VM2也接收到了VM3发送的业务报文,那么网络管理器根据计算服务器上报的业务信息,能够得到当前时间周期对应的当前业务流量拓扑如图7所示。Assume that VM2 receives the service packet sent by VM1 in the current time period, and VM2 also receives the service packet sent by VM3. Then, the network manager can obtain the current service corresponding to the current time period according to the service information reported by the computing server. The traffic topology is shown in Figure 7.
网络管理器可以根据当前的时间周期内的业务信息,即各个虚拟机VM发送的业务报文的信息和接收的业务报文的信息统计当前的时间周期对应的当前业务流量拓扑中的丢包率。The network manager can collect the packet loss rate in the current service traffic topology corresponding to the current time period according to the service information in the current time period, that is, the information of the service packet sent by each virtual machine VM and the information of the received service packet. .
简言之,网络管理器可以根据当前的时间周期内的业务信息,分析在当前的时间周期内源VM发给目的VM多少数据包,目的VM收到源VM多少数据包,如果数据一致,那么没有丢包,如果不一致,根据差异计算丢包率。In short, the network manager can analyze how many data packets are sent to the destination VM by the source VM in the current time period according to the service information in the current time period, and how many data packets the source VM receives from the source VM, if the data is consistent, then No packet loss, if not, the packet loss rate is calculated based on the difference.
具体地丢包率可以根据以下公式计算:Specifically, the packet loss rate can be calculated according to the following formula:
R=(Ns-Nr)/Ns R=(N s -N r )/N s
其中,Ns表示源VM发送业务报文的个数,Nr表示目的VM接收到业务报文的个数,R表示丢包率。N s represents the number of service packets sent by the source VM, N r represents the number of service packets received by the destination VM, and R represents the packet loss rate.
例如,如图8所示,当前时间周期源VM1向目的VM2发送了4个业务报文,目的VM2接收到3个业务报文,当前时间周期源VM3向目的VM2发送了1个业务报文,目的VM2接收到1个业务报文,那么根据上述公式能够得到当前时间周期的丢包率为(5-4)/5=20%。For example, as shown in FIG. 8, the current time period source VM1 sends four service packets to the destination VM2, and the destination VM2 receives three service packets. The current time period source VM3 sends one service packet to the destination VM2. If the destination VM2 receives one service packet, the packet loss rate of the current time period can be obtained according to the above formula (5-4)/5=20%.
因此,本发明实施例中网络管理器仅对对统计的业务报文进行丢包率检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager performs the service packet. Detection, that is, detection of active VMs, also avoids useless detection of inactive VMs in the whole network detection, can save network resources, and simultaneously detect all active VMs and avoid detecting the existence of dead angles, thereby The inventive embodiments enable the detection of a comprehensive and efficient virtual network.
可选地,作为另一实施例,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定检测的丢包率大于丢包率阈值时发出警告提示,以通知用户网络存在丢包问题。其中,该丢包率阈值可以是预设的,也可以为人为设定地,用户可以设定丢包率阈值的大小。本发明实施例并不对此做限定。Optionally, as another embodiment, the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the detected packet loss rate is greater than a packet loss rate threshold, to notify the user that the network is lost. Package problem. The packet loss rate threshold may be preset or manually set, and the user may set the packet loss rate threshold. The embodiments of the present invention are not limited thereto.
因此,本发明实施例通过在检测到丢包率较大时,会发出警告提示,进而用户能够及时发现网络质量问题,而无需等待故障后才发现网络问题,进而用户可以及时维护网络的正常通信,避免不必要的损失,提升用户体验。Therefore, in the embodiment of the present invention, when the packet loss rate is detected to be large, a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, and then the user can timely maintain the normal communication of the network. To avoid unnecessary losses and improve the user experience.
前文描述了网络管理器对虚拟网络进行丢包率检测的过程。可选地,在本发明实施例中,网络管理器也可以对虚拟网络进行时延检测。The foregoing describes the process by which the network manager performs packet loss detection on the virtual network. Optionally, in the embodiment of the present invention, the network manager may also perform delay detection on the virtual network.
具体地,作为另一实施例,在当业务信息包括时间戳信息时,在本发明实施例中,该方法还包括:Specifically, in another embodiment, when the service information includes the timestamp information, in the embodiment of the present invention, the method further includes:
340,该网络管理器根据该发送时间戳信息和该接收时间戳信息计算该各个时间周期对应的业务流量拓扑的业务时延。340. The network manager calculates, according to the sending timestamp information and the received timestamp information, a service delay of the service traffic topology corresponding to each time period.
例如,网络管理器根据发送端和接收端上报的时间戳信息,分析时延。优选的可以在本周期的前100ms中选择一个,或者选择第一个数据包使用第二染色标识进行染色,确保接收端都能收到。For example, the network manager analyzes the delay according to the timestamp information reported by the sender and the receiver. Preferably, one of the first 100 ms of the cycle can be selected, or the first data packet can be selected for staining using the second dyed flag to ensure that the receiving end can receive it.
具体而言,在本发明实施例中,网络管理器根据第一业务报文的时间戳信息,确定该时间周期内虚拟网络的时延,例如将第一业务报文的接收时间 与发送时间的差值作为该虚拟网络的时延。Specifically, in the embodiment of the present invention, the network manager determines the delay of the virtual network in the time period according to the timestamp information of the first service packet, for example, the receiving time of the first service packet. The difference from the transmission time is taken as the delay of the virtual network.
或者,在当业务信息包括多个业务报文的发送时间和接收时间信息时,网络管理器可以计算出当前时间周期内的多个业务分别对应的时延,并且将多个时延的平均值作为当前时间周期内虚拟网络的时延。Alternatively, when the service information includes the sending time and the receiving time information of the multiple service packets, the network manager may calculate the delay corresponding to the multiple services in the current time period, and average the multiple delays. As the delay of the virtual network in the current time period.
因此,本发明实施例中网络管理器可以根据计算服务器统计的业务的时间戳信息统计时延,实现对网络的时延的检测。并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, the network manager can perform time delay detection on the network according to the time delay information of the service statistics calculated by the computing server. Moreover, the network manager detects the active packets, that is, detects the active VMs, and detects the active VMs, thereby avoiding useless detection of inactive VMs in the whole network detection, thereby saving network resources and improving user experience.
可选地,作为另一实施例,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定虚拟网络时延大于时延阈值时发出警告提示,以通知用户网络存在时延问题。其中,该时延阈值可以是预设的,也可以为人为设定的,用户可以设定时延阈值的大小。本发明实施例并不对此做限定。Optionally, as another embodiment, the method for detecting a virtual network in the embodiment of the present invention may further include: the network manager issuing a warning prompt when determining that the virtual network delay is greater than a delay threshold, to notify the user that the network has a delay problem. . The delay threshold may be preset or manually set, and the user may set the threshold of the delay threshold. The embodiments of the present invention are not limited thereto.
因此,本发明实施例通过在时延较大时,会发出警告提示,进而用户能够及时发现网络质量问题,而无需等待故障后才发现网络问题,进而用户可以及时维护网络的正常通信,避免不必要的损失,提升用户体验。Therefore, in the embodiment of the present invention, when the delay is large, a warning prompt is issued, so that the user can discover the network quality problem in time without waiting for the fault to discover the network problem, so that the user can timely maintain the normal communication of the network, and avoid The necessary losses to enhance the user experience.
前文描述了网络管理器对虚拟网络进行丢包率和时延检测的过程。可选地,在本发明实施例中,网络管理器也可以对虚拟网络进行连通性检测。The foregoing describes the process by which the network manager performs packet loss rate and delay detection on the virtual network. Optionally, in the embodiment of the present invention, the network manager may also perform connectivity detection on the virtual network.
具体地作为另一实施例,该方法还可以包括:Specifically, as another embodiment, the method may further include:
340,该网络管理器对虚拟网络进行连通性检测。340. The network manager performs connectivity detection on the virtual network.
具体地,该网络管理器根据该业务信息生成当前的时间周期对应的当前业务流量拓扑,该当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;Specifically, the network manager generates a current service traffic topology corresponding to the current time period according to the service information, where the current service traffic topology includes an association relationship between each VM having a service flow in the current cycle;
该网络管理器根据当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,该第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,该第二总业务流量拓扑是由该第一总业务流量拓扑和该当前业务流量拓扑叠加而成;The network manager updates the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is a topological superposition of service traffic corresponding to all time periods before the current time period. The second total service traffic topology is formed by superimposing the first total service traffic topology and the current service traffic topology;
该网络管理器根据该第二总业务流量拓扑对该虚拟网络进行连通性检测。The network manager performs connectivity detection on the virtual network according to the second total service traffic topology.
应理解,本发明实施例中,两个拓扑叠加也可以描述成两个拓扑合并,两个拓扑叠加后得到叠加拓扑,例如第一拓扑和第二拓扑叠加,该叠加拓扑 即为在第一拓扑中增加差值拓扑后形成的拓扑,其中,该差值拓扑为第二拓扑中去除与第一拓扑相同部分之后的拓扑。It should be understood that, in the embodiment of the present invention, two topological superpositions may also be described as combining two topologies, and two topologies are superimposed to obtain a superimposed topology, such as a first topology and a second topological superposition, the superposition topology. That is, the topology formed after adding the difference topology in the first topology, where the difference topology is the topology after removing the same part from the first topology in the second topology.
例如,针对图6所示的全网拓扑。如图9所示,第一总业务流量拓扑为为当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成的拓扑。例如,第一总业务流量拓扑为拓扑A和拓扑B叠加而成。网络管理器可以根据当前业务流量拓扑(例如,如图7所示)将第一总业务流量拓扑更新为第二总业务流量拓扑。之后,网络管理器可以根据该第二总业务流量拓扑进行连通性检测。For example, for the full network topology shown in Figure 6. As shown in FIG. 9 , the first total service traffic topology is a topology in which service traffic topologies corresponding to all time periods before the current time period are superposed. For example, the first total service traffic topology is formed by superposing topology A and topology B. The network manager may update the first total traffic flow topology to the second total traffic flow topology according to the current traffic flow topology (eg, as shown in FIG. 7). Thereafter, the network manager can perform connectivity detection according to the second total service traffic topology.
因此,本发明实施例中仅对总业务流量拓扑进行连通性检测,无需对全文拓扑进行连通性检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, connectivity detection is performed only on the total service traffic topology, and connectivity detection of the full-text topology is not required, which can save network resources and improve user experience.
进一步地,作为另一实施例,该网络管理器根据该第二总业务流量拓扑对该虚拟网络进行连通性检测,包括:Further, as another embodiment, the network manager performs connectivity detection on the virtual network according to the second total service traffic topology, including:
该网络管理器根据该第二总业务流量拓扑和该当前业务流量拓扑生成差值业务流量拓扑,该差值业务流量拓扑为该第二总业务流量拓扑中去除与该当前业务流量拓扑中相同部分的拓扑;The network manager generates a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the same as the same part of the current service traffic topology in the second total service traffic topology. Topology
该网络管理器对该差值业务流量拓扑进行连通性检测。The network manager performs connectivity detection on the difference traffic flow topology.
例如,针对图6所示的全网拓扑。如图9所示,第一总业务流量拓扑为为当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成的拓扑。例如,第一总业务流量拓扑为拓扑A和拓扑B叠加而成。网络管理器可以根据当前业务流量拓扑(例如,如图7所示)将第一总业务流量拓扑更新为第二总业务流量拓扑。换句话说,第二总业务流量拓扑可以为拓扑A、拓扑B和当前业务流量拓扑叠加而成。之后,网络管理器可以根据该该第二总业务流量拓扑和该当前业务流量拓扑生成差值业务流量拓扑。最后,网络管理器对差值业务流量拓扑进行连通性检测。For example, for the full network topology shown in Figure 6. As shown in FIG. 9 , the first total service traffic topology is a topology in which service traffic topologies corresponding to all time periods before the current time period are superposed. For example, the first total service traffic topology is formed by superposing topology A and topology B. The network manager may update the first total traffic flow topology to the second total traffic flow topology according to the current traffic flow topology (eg, as shown in FIG. 7). In other words, the second total service traffic topology can be superposed by topology A, topology B, and current traffic flow topology. Then, the network manager may generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology. Finally, the network manager performs connectivity detection on the differential traffic flow topology.
应理解,本发明实施例中,连通性检测可以在当前业务流量拓扑的丢包率监测之后进行,由于第二总业务流量拓扑大于当前业务流量拓扑,并且,在对当前业务流量拓扑丢包率检测中,网络管理器已经知道当前时间周期时刻哪些VM之间是连通的(他们有发送数据包),因此,无需再对当前业务流量拓扑进行连通性检测,所以在下一个时刻对第二总业务流量拓扑的连通性检测时,仅需要对第二总业务流量拓扑与当前业务流量拓扑差异的部分,即差值业务流量拓扑进行连通性检测即可。 It should be understood that, in the embodiment of the present invention, the connectivity detection may be performed after the packet loss rate monitoring of the current service traffic topology, because the second total service traffic topology is larger than the current service traffic topology, and the topology traffic loss rate of the current service traffic is During the detection, the network manager already knows which VMs are connected at the current time and time (they have sent packets), so there is no need to perform connectivity detection on the current traffic topology, so the second total service is performed at the next moment. When the connectivity of the traffic topology is detected, only the part of the second total service traffic topology and the current service traffic topology difference, that is, the difference service traffic topology, needs to be tested for connectivity.
因此,本发明实施例中仅对差值业务流量拓扑进行连通性检测,能够避免对当前业务流量拓扑的重复检测,并且,本发明实施例无需对全文拓扑进行连通性检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, only the connectivity detection of the difference service traffic topology is performed, and the repeated detection of the current service traffic topology can be avoided, and the embodiment of the present invention does not need to perform connectivity detection on the full-text topology, thereby saving network resources. Improve the user experience.
具体地,本发明实施例中网络管理器可以按照现有技术中构造报文的方法对第二总业务流量拓扑或差值业务流量拓扑进行连通性检测。例如,网络管理器首先构造一个虚拟业务报文,虚拟业务报文为第二总业务流量拓扑或差值业务流量拓扑中的源VM发给目的VM,以此检测源VM于目的VM之间是否是连通的。比如借用VM连接到OVS的端口(port),虚拟源VM通过端口发送了一个报文,专门用于连通性检测,,针对此报文进行染色,例如,对此报文设置虚拟连通检测标识,对端目的VM获取到虚拟业务报文后,根据该虚拟连通检测标识即可确定该报文为虚拟业务报文,在目的VM端获取到虚拟业务报文后返回响应,发送端(源VM)接收到响应后,即可确定源VM和目的VM之间是通的。具体地,构造报文进行连通性检测可以参照现有标准中的规定,此处不再赘述。Specifically, in the embodiment of the present invention, the network manager may perform connectivity detection on the second total service traffic topology or the difference service traffic topology according to the method for constructing a packet in the prior art. For example, the network manager first constructs a virtual service packet, and the virtual service packet is sent to the destination VM in the second total service traffic topology or the difference traffic traffic topology to detect whether the source VM is between the destination VMs. It is connected. For example, if the VM is connected to the port of the OVS, the virtual source VM sends a packet through the port, which is used for connectivity detection. The packet is dyed. For example, the virtual connectivity detection identifier is set for the packet. After obtaining the virtual service packet, the peer VM can determine the packet as a virtual service packet according to the virtual connectivity detection identifier, and return the response after the destination VM obtains the virtual service packet. The sender (source VM) After receiving the response, it can be determined that the source VM and the destination VM are connected. Specifically, the configuration of the message for the connectivity detection may refer to the provisions in the existing standards, and details are not described herein again.
可选地,作为另一实施例,本发明实施例中检测虚拟网络的方法还可以包括:网络管理器在确定网络中两个VM间连通中断时,发出警告提示,以通知用户网络存在连通性问题。Optionally, as another embodiment, the method for detecting a virtual network in the embodiment of the present invention may further include: when determining that the connectivity between two VMs in the network is interrupted, the network manager issues a warning prompt to notify the user that the network has connectivity. problem.
因此,本发明实施例通过在确定网络中两个VM间连通中断时,发出警告提示,进而用户能够尽早发现网络连通性问题,因此,运维人员能够第一时间解决该问题,及时维护网络的正常通信,降低或避免由网络中断带来的损失,提升用户体验。Therefore, the embodiment of the present invention issues a warning prompt when determining that the connectivity between two VMs in the network is interrupted, so that the user can discover the network connectivity problem as early as possible. Therefore, the operation and maintenance personnel can solve the problem in the first time and maintain the network in time. Normal communication reduces or avoids the loss caused by network interruption and improves user experience.
应注意,图1至图9的例子仅仅是为了帮助本领域技术人员理解本发明实施例,而非要将本发明实施例限于所例示的具体数值或具体场景。本领域技术人员根据所给出的图1至图9的例子,显然可以进行各种等价的修改或变化,例如,在实际应用中本发明实施例中可以网络管理器根据上报的业务信息仅进行延时、连通性或丢包率的检测;或者,在获得第二总业务流量拓扑后,可以按照现有的方式进行延时检测,即以第二总业务流量拓扑为基础对该虚拟网络进行延时检测,等这样的修改或变化也落入本发明实施例的范围内。It should be noted that the examples of FIG. 1 to FIG. 9 are merely intended to assist those skilled in the art to understand the embodiments of the present invention, and the embodiments of the present invention are not limited to the specific numerical values or specific examples illustrated. A person skilled in the art can obviously perform various equivalent modifications or changes according to the examples of FIG. 1 to FIG. 9 . For example, in an actual application, in the embodiment of the present invention, the network manager can only report the reported service information. Performing the detection of the delay, the connectivity, or the packet loss rate; or, after obtaining the second total service traffic topology, performing the delay detection according to the existing manner, that is, the virtual network based on the second total service traffic topology. It is also within the scope of embodiments of the present invention to perform delay detection, such modifications or variations.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程 构成任何限定。It should be understood that the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be implemented in the embodiment of the present invention. Form any limit.
下面将结合图10和图12描述本发明实施例的网络管理器,结合图11和图13描述本发明实施例的计算服务器。A network manager of an embodiment of the present invention will be described below with reference to FIG. 10 and FIG. 12, and a computing server according to an embodiment of the present invention will be described with reference to FIGS. 11 and 13.
应理解,在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。It will be understood that the terms "component," "module," "system," and the like, as used in this specification, are used to mean a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and a computing device can be a component. One or more components can reside within a process and/or execution thread, and the components can be located on one computer and/or distributed between two or more computers. Moreover, these components can execute from various computer readable media having various data structures stored thereon. A component may, for example, be based on signals having one or more data packets (eg, data from two components interacting with another component between the local system, the distributed system, and/or the network, such as the Internet interacting with other systems) Communicate through local and/or remote processes.
图10示出了根据本发明实施例的网络管理器1000的示意性框图,具体地,如图10所示,该网络管理器1000包括:FIG. 10 shows a schematic block diagram of a network manager 1000 according to an embodiment of the present invention. Specifically, as shown in FIG. 10, the network manager 1000 includes:
获取模块1010,用于获取当前的时间周期内的业务信息,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息,其中,第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;The obtaining module 1010 is configured to obtain the service information in the current time period, where the service information includes the sending information and the receiving information of all the VMs located in the computing servers that are reported by the computing servers in the virtual network, where the first VM is The sending information includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM, where the first VM is The receiving information includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM by the source VM.
检测模块1020,用于根据该业务信息对该虚拟网络进行检测。The detecting module 1020 is configured to detect the virtual network according to the service information.
因此,本发明实施例中网络管理器仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network.
并且,本发明实施例中,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。In addition, in the embodiment of the present invention, the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
可选地,作为另一实施例,该检测模块1020具体用于根据该业务信息统计该虚拟网络的丢包率。 Optionally, in another embodiment, the detecting module 1020 is specifically configured to collect, according to the service information, a packet loss rate of the virtual network.
因此,本发明实施例中网络管理器仅对统计的业务报文进行丢包率检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packets. That is, the detection of the active VM avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of the dead angle, and the present invention Embodiments enable the detection of a comprehensive and efficient virtual network.
可选地,作为另一实施例,该检测模块1020具体用于根据该业务信息生成当前的时间周期对应的当前业务流量拓扑,该当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;Optionally, in another embodiment, the detecting module 1020 is specifically configured to generate, according to the service information, a current service traffic topology corresponding to a current time period, where the current service traffic topology includes each VM between the current cycle and the service flow. Relationship
根据当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,该第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,该第二总业务流量拓扑是由该第一总业务流量拓扑和该当前业务流量拓扑叠加而成;Updating the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is superposed by the service traffic topology corresponding to all the time periods before the current time period, The second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
根据该第二总业务流量拓扑对该虚拟网络进行连通性检测。Performing connectivity detection on the virtual network according to the second total service traffic topology.
可选地,作为另一实施例,该检测模块1020具体用于根据该第二总业务流量拓扑和该当前业务流量拓扑生成差值业务流量拓扑,该差值业务流量拓扑为该第二总业务流量拓扑中去除与该当前业务流量拓扑中相同部分的拓扑;对该差值业务流量拓扑进行连通性检测。Optionally, in another embodiment, the detecting module 1020 is specifically configured to generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the second total service The traffic topology is removed from the same part of the current traffic flow topology; connectivity detection is performed on the difference service traffic topology.
可选地,作为另一实施例,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,该各个计算服务器上的所有VM的发送信息和接收信息是该各个计算服务器根据当前的时间周期的第一染色标识统计的,Optionally, as another embodiment, the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the sending information of all VMs on the computing servers is Receiving information is calculated by the respective computing servers according to the first coloring identifier of the current time period,
其中,该当前的时间周期的染色标识与当前的时间周期相邻的时间周期的染色标识不同。The dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该当前时间周期内的业务信息还包括第一业务报文的源VM发送该第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息,Optionally, as another embodiment, the service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination of the first service packet. The VM receives the receiving timestamp information of the first service packet,
该检测模块1020还用于根据该发送时间戳信息和该接收时间戳信息计算该各个时间周期对应的业务流量拓扑的业务时延。The detecting module 1020 is further configured to calculate a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the receiving timestamp information.
可选地,作为另一实施例,该第一业务报文包括该当前时间周期的第二染色标识,其中,该第一业务报文的发送时间戳信息和该接收时间戳信息, 是该第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的,Optionally, in another embodiment, the first service packet includes a second dyed identifier of the current time period, where the first timestamp of the first service packet and the received timestamp information, The source VM of the first service packet and the calculation server where the destination VM is located are respectively recorded according to the second dye identifier of the current time period.
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该时间周期包括发送时间周期和接收时间周期,该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;Optionally, in another embodiment, the time period includes a sending time period and a receiving time period, where the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the sending time period. Length of time;
其中,该各个计算服务器上的所有VM的发送信息和接收信息,是该各个计算服务器分别在该发送时间周期和该接收时间周期内统计的。The sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
应理解,图10所示的网络管理器1000能够实现图3方法实施例中涉及网络管理器的各个过程。网络管理器1000中的各个模块的操作和/或功能,分别为了实现图3中的方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。It should be understood that the network manager 1000 shown in FIG. 10 can implement the various processes involved in the network manager in the method embodiment of FIG. The operations and/or functions of the various modules in the network manager 1000 are respectively implemented to implement the corresponding processes in the method embodiment of FIG. For details, refer to the description in the foregoing method embodiments. To avoid repetition, the detailed description is omitted here.
图11示出了根据本发明实施例的计算服务器1100的示意性框图。具体地,如图11所示,该计算服务器1100包括:FIG. 11 shows a schematic block diagram of a computing server 1100 in accordance with an embodiment of the present invention. Specifically, as shown in FIG. 11, the computing server 1100 includes:
统计模块1110,用于在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,其中,第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;The statistics module 1110 is configured to collect, according to the current time period, the sending information and the receiving information of all the VMs located on the computing server, where the sending information of the first VM includes the identifier information of the first VM, and the first VM sends the information. The identification information of the destination VM of the service packet and the number of the service packets sent by the first VM to the destination VM, the received information of the first VM includes the identifier information of the first VM, and the identifier received by the first VM The identifier information of the source VM of the service packet and the number of service packets sent by the first VM to the source VM;
发送模块1120,用于向网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息,以使得该网络管理器根据当前的时间周期内的业务信息对该虚拟网络进行检测,其中,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息。The sending module 1120 is configured to send, to the network manager, the sending information and the receiving information of all the VMs located on the computing server, so that the network manager detects the virtual network according to the service information in the current time period, where The service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
因此,本发明实施例中通过计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,以便于后续网络管理器对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实 现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network. The detection of all active VMs at the same time avoids the detection of the existence of dead angles, and thus the embodiment of the present invention A comprehensive and efficient detection of virtual networks is now available.
可选地,作为另一实施例,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,该统计模块1110具体用于根据当前的时间周期的第一染色标识统计位于该计算服务器上的所有VM的发送信息和接收信息。Optionally, in another embodiment, the service message and the received service message sent by the first VM include a first coloring identifier of a current time period, and the statistics module 1110 is specifically configured to use the current time period. A staining indicator counts the transmission and reception information of all VMs located on the computing server.
可选地,作为另一实施例,该当前的时间周期的染色标识与该当前的时间周期相邻的时间周期的染色标识不同。Optionally, as another embodiment, the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该统计模块统计的位于该计算服务器上的所有VM的发送信息还包括该计算服务器上源VM发送第一业务报文的发送时间戳信息;Optionally, as another embodiment, the sending information of all the VMs that are located on the computing server, and the sending timestamp information of the first service packet sent by the source VM on the computing server;
或者,该统计模块1110统计的位于该计算服务器上的所有VM的接收信息还包括该计算服务器上目的VM接收第一业务报文的接收时间戳信息。Alternatively, the receiving information of all VMs located on the computing server that is counted by the statistic module 1110 further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
可选地,作为另一实施例,该第一业务报文包括该当前时间周期的第二染色标识,其中,该统计模块具体用于根据当前的时间周期的第二染色标识记录该第一业务报文的发送时间戳信息或接收时间戳信息,Optionally, in another embodiment, the first service packet includes a second coloring identifier of the current time period, where the statistics module is configured to record the first service according to the second coloring identifier of the current time period. Sending timestamp information or receiving timestamp information of the packet,
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该时间周期包括发送时间周期和接收时间周期,Optionally, as another embodiment, the time period includes a sending time period and a receiving time period,
该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
其中,该统计模块1110具体用于在该发送时间周期内统计的位于该各个计算服务器上的所有VM的发送信息,在该接收时间周期内统计的位于该各个计算服务器上的所有VM的接收信息。The statistic module 1110 is specifically configured to use, in the sending time period, the sending information of all VMs located on the computing servers, and the receiving information of all the VMs located in the computing servers in the receiving time period. .
应理解,图11所示的计算服务器1100能够实现图3方法实施例中涉及计算服务器的各个过程。计算服务器1100中的各个模块的操作和/或功能,分别为了实现图3中的方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。It should be understood that the computing server 1100 shown in FIG. 11 can implement the various processes involved in the computing server in the method embodiment of FIG. The operations and/or functions of the various modules in the server 1100 are calculated to implement the respective processes in the method embodiment of FIG. 3, respectively. For details, refer to the description in the foregoing method embodiments. To avoid repetition, the detailed description is omitted here.
图12示出了根据本发明实施例的网络管理器1200的示意性框图。具体地,如图12所示,该网络管理器1200包括:处理器1210和收发器1220,处理器1210和收发器1220相连,可选地,该网络管理器1200还包括存储 器1230,存储器1230与处理器1210相连,进一步可选地,该网络管理器1200还可以包括总线系统1240。其中,处理器1210、存储器1230和收发器1220可以通过总线系统1240相连,该存储器1230可以用于存储指令,该处理器1210用于执行该存储器1230存储的指令,以控制收发器1220收发信息或信号。FIG. 12 shows a schematic block diagram of a network manager 1200 in accordance with an embodiment of the present invention. Specifically, as shown in FIG. 12, the network manager 1200 includes a processor 1210 and a transceiver 1220. The processor 1210 is connected to the transceiver 1220. Optionally, the network manager 1200 further includes storage. The memory 1230 is coupled to the processor 1210. Further optionally, the network manager 1200 can further include a bus system 1240. The processor 1210, the memory 1230, and the transceiver 1220 can be connected by a bus system 1240. The memory 1230 can be used to store instructions for executing the instructions stored by the memory 1230 to control the transceiver 1220 to send and receive information or signal.
具体地,处理器1210控制收发器1220获取当前的时间周期内的业务信息,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息,其中,第一VM的发送信息包括该第一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;Specifically, the processor 1210 controls the transceiver 1220 to obtain the service information in the current time period, where the service information includes the sending information and the receiving information of all the VMs located in the computing servers that are reported by the computing servers in the virtual network, where The sending information of the first VM includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM. The receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM by the source VM.
处理器1210根据该业务信息对该虚拟网络进行检测。The processor 1210 detects the virtual network according to the service information.
因此,本发明实施例中网络管理器仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active The detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
应理解,在本发明实施例中,该处理器1210可以是中央处理单元(Central Processing Unit,简称为“简称为“),该处理器1210还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 1210 may be a central processing unit (hereinafter referred to as “the short”), and the processor 1210 may also be another general-purpose processor and a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器1230可以包括只读存储器和随机存取存储器,并向处理器1210提供指令和数据。存储器1230的一部分还可以包括非易失性随机存取存储器。例如,存储器1230还可以存储设备类型的信息。The memory 1230 can include read only memory and random access memory and provides instructions and data to the processor 1210. A portion of the memory 1230 can also include a non-volatile random access memory. For example, the memory 1230 can also store information of the device type.
该总线系统1240除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统1240。The bus system 1240 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 1240 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器1210中的硬件的集 成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1230,处理器1210读取存储器1230中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may pass through a set of hardware in the processor 1210. The instructions in the form of logic circuits or software are completed. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 1230, and the processor 1210 reads the information in the memory 1230 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
可选地,作为另一实施例,该处理器1210具体用于根据该业务信息统计该虚拟网络的丢包率。Optionally, in another embodiment, the processor 1210 is specifically configured to collect, according to the service information, a packet loss rate of the virtual network.
因此,本发明实施例中网络管理器仅对统计的业务报文进行丢包率检测,无需对全网络进行检测,从而减少检测对流量的影响,实现了全面且高效率的虚拟网络的检测。并且,本发明实施例中,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,同时对活跃的VM进行检测也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,提升用户体验。Therefore, in the embodiment of the present invention, the network manager only performs packet loss detection on the statistical service packets, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and implementing the detection of the comprehensive and high-efficiency virtual network. In addition, in the embodiment of the present invention, the network manager detects the service packet, that is, detects the active VM, and detects the active VM, thereby avoiding useless detection of the inactive VM in the whole network detection. Can save network resources and enhance user experience.
可选地,作为另一实施例,该处理器1210具体用于根据该业务信息生成当前的时间周期对应的当前业务流量拓扑,该当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;Optionally, in another embodiment, the processor 1210 is specifically configured to generate, according to the service information, a current service traffic topology corresponding to a current time period, where the current service traffic topology includes each VM between the current cycle and the service flow. Relationship
根据当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,该第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,该第二总业务流量拓扑是由该第一总业务流量拓扑和该当前业务流量拓扑叠加而成;Updating the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is superposed by the service traffic topology corresponding to all the time periods before the current time period, The second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
根据该第二总业务流量拓扑对该虚拟网络进行连通性检测。Performing connectivity detection on the virtual network according to the second total service traffic topology.
可选地,作为另一实施例,该处理器1210具体用于根据该第二总业务流量拓扑和该当前业务流量拓扑生成差值业务流量拓扑,该差值业务流量拓扑为该第二总业务流量拓扑中去除与该当前业务流量拓扑中相同部分的拓扑;对该差值业务流量拓扑进行连通性检测。Optionally, in another embodiment, the processor 1210 is specifically configured to generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the second total service The traffic topology is removed from the same part of the current traffic flow topology; connectivity detection is performed on the difference service traffic topology.
可选地,作为另一实施例,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,该各个计算服务器上的所有VM的发送信息和接收信息是该各个计算服务器根据当前的时间周期的第一染色标识统计的,Optionally, as another embodiment, the service packet sent by the first VM and the received service packet include a first staining identifier of a current time period, where the sending information of all VMs on the computing servers is Receiving information is calculated by the respective computing servers according to the first coloring identifier of the current time period,
其中,该当前的时间周期的染色标识与当前的时间周期相邻的时间周期 的染色标识不同。Wherein the coloring identifier of the current time period is adjacent to the current time period The staining logo is different.
可选地,作为另一实施例,该当前时间周期内的业务信息还包括第一业务报文的源VM发送该第一业务报文的发送时间戳信息,和该第一业务报文的目的VM接收到该第一业务报文的接收时间戳信息,Optionally, as another embodiment, the service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination of the first service packet. The VM receives the receiving timestamp information of the first service packet,
该处理器1210还用于根据该发送时间戳信息和该接收时间戳信息计算该各个时间周期对应的业务流量拓扑的业务时延。The processor 1210 is further configured to calculate a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the received timestamp information.
可选地,作为另一实施例,该第一业务报文包括该当前时间周期的第二染色标识,其中,该第一业务报文的发送时间戳信息和该接收时间戳信息,是该第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的,Optionally, in another embodiment, the first service packet includes a second coloring identifier of the current time period, where the sending timestamp information of the first service packet and the receiving timestamp information are the first The source VM of a service packet and the calculation server where the destination VM is located are respectively recorded according to the second staining identifier of the current time period.
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该时间周期包括发送时间周期和接收时间周期,该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;Optionally, in another embodiment, the time period includes a sending time period and a receiving time period, where the sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the sending time period. Length of time;
其中,该各个计算服务器上的所有VM的发送信息和接收信息,是该各个计算服务器分别在该发送时间周期和该接收时间周期内统计的。The sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
应理解,图12所示的网络管理器1200能够实现图3方法实施例中涉及网络管理器的各个过程。网络管理器1200中的各个模块的操作和/或功能,分别为了实现图3中的方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。It should be understood that the network manager 1200 shown in FIG. 12 can implement the various processes involved in the network manager in the method embodiment of FIG. The operations and/or functions of the various modules in the network manager 1200 are respectively implemented to implement the corresponding processes in the method embodiment of FIG. For details, refer to the description in the foregoing method embodiments. To avoid repetition, the detailed description is omitted here.
图13示出了根据本发明实施例的计算服务器1300的示意性框图。具体地,如图13所示,该计算服务器1300包括:处理器1310和收发器1320,处理器1310和收发器1320相连,可选地,该计算服务器1300还包括存储器1330,存储器1330与处理器1310相连,进一步可选地,该计算服务器1300还可以包括总线系统1340。其中,处理器1310、存储器1330和收发器1320可以通过总线系统1340相连,该存储器1330可以用于存储指令,该处理器1310用于执行该存储器1330存储的指令,以控制收发器1320收发信息或信号。FIG. 13 shows a schematic block diagram of a computing server 1300 in accordance with an embodiment of the present invention. Specifically, as shown in FIG. 13, the computing server 1300 includes a processor 1310 and a transceiver 1320. The processor 1310 is connected to the transceiver 1320. Optionally, the computing server 1300 further includes a memory 1330, a memory 1330 and a processor. 1310 is connected. Further optionally, the computing server 1300 can also include a bus system 1340. The processor 1310, the memory 1330, and the transceiver 1320 may be connected by a bus system 1340, where the memory 1330 may be used to store instructions, and the processor 1310 is configured to execute instructions stored in the memory 1330 to control the transceiver 1320 to send and receive information or signal.
具体地,处理器1310用于在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,其中,第一VM的发送信息包括该第 一VM的标识信息、该第一VM发送的业务报文的目的VM的标识信息以及该第一VM向该目的VM发送的业务报文的个数,该第一VM的接收信息包括该第一VM的标识信息、该第一VM接收的业务报文的源VM的标识信息以及该第一VM接收该源VM发送的业务报文的个数;Specifically, the processor 1310 is configured to collect, according to the current time period, the sending information and the receiving information of all the VMs located on the computing server, where the sending information of the first VM includes the first The identifier information of the VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM, where the received information of the first VM includes the first The identifier information of the VM, the identifier information of the source VM of the service packet received by the first VM, and the number of service packets sent by the first VM to the source VM;
收发器1320用于向网络管理器发送位于该计算服务器上的所有VM的发送信息和接收信息,以使得该网络管理器根据当前的时间周期内的业务信息对该虚拟网络进行检测,其中,该业务信息包括该虚拟网络中各个计算服务器上报的位于该各个计算服务器上的所有VM的发送信息和接收信息。The transceiver 1320 is configured to send, to the network manager, the sending information and the receiving information of all the VMs located on the computing server, so that the network manager detects the virtual network according to the service information in the current time period, where the The service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
因此,本发明实施例中通过计算服务器在当前的时间周期内统计位于该计算服务器上的所有VM的发送信息和接收信息,以便于后续网络管理器对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, so that the subsequent network manager can detect the service packets without performing the entire network. Detecting, thereby reducing the impact of the detection on the traffic, and the network manager detects the active packets by detecting the service packets, and avoids the useless detection of the inactive VMs in the whole network detection, thereby saving the network. The detection of all active VMs at the same time avoids the detection of the existence of dead angles, and the embodiment of the present invention implements the detection of a comprehensive and efficient virtual network.
应理解,在本发明实施例中,该处理器1310可以是中央处理单元(Central Processing Unit,简称为“简称为“),该处理器1310还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 1310 may be a central processing unit (hereinafter referred to as “the short”), and the processor 1310 may also be another general-purpose processor and a digital signal processor (DSP). ), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器1330可以包括只读存储器和随机存取存储器,并向处理器1310提供指令和数据。存储器1330的一部分还可以包括非易失性随机存取存储器。例如,存储器1330还可以存储设备类型的信息。The memory 1330 can include read only memory and random access memory and provides instructions and data to the processor 1310. A portion of the memory 1330 can also include a non-volatile random access memory. For example, the memory 1330 can also store information of the device type.
该总线系统1340除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统1340。The bus system 1340 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 1340 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器1310中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质 中。该存储介质位于存储器1330,处理器1310读取存储器1330中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1310 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, etc., and a mature storage medium in the field. in. The storage medium is located in the memory 1330, and the processor 1310 reads the information in the memory 1330 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,作为另一实施例,该第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,该处理器1310具体用于根据当前的时间周期的第一染色标识统计位于该计算服务器上的所有VM的发送信息和接收信息。Optionally, in another embodiment, the service message and the received service message sent by the first VM include a first coloring identifier of a current time period, and the processor 1310 is specifically configured to use, according to a current time period. A staining indicator counts the transmission and reception information of all VMs located on the computing server.
可选地,作为另一实施例,当前的时间周期的染色标识与当前的时间周期相邻的时间周期的染色标识不同。Optionally, as another embodiment, the dyeing identifier of the current time period is different from the dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该处理器统计的位于该计算服务器上的所有VM的发送信息还包括该计算服务器上源VM发送第一业务报文的发送时间戳信息;Optionally, as another embodiment, the sending information of all VMs that are located on the computing server that is calculated by the processor further includes sending timestamp information that the source VM sends the first service packet on the computing server;
或者,该处理器统计的位于该计算服务器上的所有VM的接收信息还包括该计算服务器上目的VM接收第一业务报文的接收时间戳信息。Alternatively, the receiving information of all VMs located on the computing server that is calculated by the processor further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
可选地,作为另一实施例,该第一业务报文包括该当前时间周期的第二染色标识,其中,该处理器1310具体用于根据当前的时间周期的第二染色标识记录该第一业务报文的发送时间戳信息或接收时间戳信息,Optionally, in another embodiment, the first service packet includes a second coloring identifier of the current time period, where the processor 1310 is specifically configured to record the first color according to the second coloring identifier of the current time period. Send timestamp information or receive timestamp information of service packets.
其中,该当前的时间周期的第二染色标识与该当前的时间周期相邻的时间周期的第二染色标识不同。The second dyeing identifier of the current time period is different from the second dyeing identifier of the time period adjacent to the current time period.
可选地,作为另一实施例,该时间周期包括发送时间周期和接收时间周期,Optionally, as another embodiment, the time period includes a sending time period and a receiving time period,
该发送时间周期和该接收时间周期的起始时刻相同,且,该接收时间周期的时长大于该发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
其中,该处理器1310具体用于在该发送时间周期内统计的位于该各个计算服务器上的所有VM的发送信息,在该接收时间周期内统计的位于该各个计算服务器上的所有VM的接收信息。The processor 1310 is specifically configured to use, in the sending time period, the sending information of all VMs located on the computing servers, and the receiving information of all VMs located in the computing servers in the receiving time period. .
应理解,图13所示的计算服务器1300能够实现图3方法实施例中涉及计算服务器的各个过程。计算服务器1300中的各个模块的操作和/或功能,分别为了实现图3中的方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。It should be understood that the computing server 1300 shown in FIG. 13 can implement the various processes involved in the computing server in the method embodiment of FIG. The operations and/or functions of the various modules in the server 1300 are calculated to implement the respective processes in the method embodiment of FIG. 3, respectively. For details, refer to the description in the foregoing method embodiments. To avoid repetition, the detailed description is omitted here.
图14示出了根据本发明实施例的一种虚拟网络系统的示意性框图。如图14所示的虚拟网络系统1400包括:网络管理器1410和至少一个计算服 务器1420。FIG. 14 shows a schematic block diagram of a virtual network system in accordance with an embodiment of the present invention. The virtual network system 1400 shown in FIG. 14 includes: a network manager 1410 and at least one computing service Server 1420.
其中,该计算服务器1420用于在当前的时间周期内统计位于该计算服务器1420上的所有虚拟机VM的发送信息和接收信息,并向该网络管理器1410发送位于该计算服务器1420上的所有VM的发送信息和接收信息;The computing server 1420 is configured to collect the sending information and the receiving information of all the virtual machine VMs located on the computing server 1420 in the current time period, and send all the VMs located on the computing server 1420 to the network manager 1410. Sending information and receiving information;
该网络管理器1410用于根据业务信息对该虚拟网络进行检测,该业务信息包括该虚拟网络系统中各个计算服务器1420上报的位于该各个计算服务器1420上的所有VM的发送信息和接收信息。The network manager 1410 is configured to detect the virtual network according to the service information, where the service information includes the sending information and the receiving information of all the VMs located on the computing servers 1420 reported by the computing servers 1420 in the virtual network system.
因此,本发明实施例中网络管理器仅对业务报文进行检测,无需对全网络进行检测,从而减少检测对流量的影响,并且,网络管理器通过对业务报文进行检测,即对活跃的VM进行检测,也避免了全网检测中对不活跃的VM的无用检测,能够节省网络资源,同时对所有活跃的VM均进行检测也避免了检测死角的存在,进而本发明实施例实现了全面且高效率的虚拟网络的检测。Therefore, in the embodiment of the present invention, the network manager only detects the service packet, and does not need to detect the entire network, thereby reducing the impact of the detection on the traffic, and the network manager detects the service packet, that is, the active The detection of the VM also avoids the useless detection of the inactive VM in the whole network detection, saves the network resources, and detects all the active VMs, and avoids the detection of the existence of dead angles, thereby implementing the comprehensive embodiment of the present invention. And efficient detection of virtual networks.
应理解,该网络管理器1410与图10和图12所示的网络管理器相对应,网络管理器1410中的各个模块的操作和/或功能,可参见上述图10和图12实施例中的描述,为避免重复,此处适当省略详述描述。It should be understood that the network manager 1410 corresponds to the network manager shown in FIG. 10 and FIG. 12, and the operations and/or functions of the respective modules in the network manager 1410 can be referred to the above embodiments in FIG. 10 and FIG. Description, in order to avoid repetition, the detailed description is omitted as appropriate herein.
该计算服务器1420与图11和图13所示的计算服务器相对应,计算服务器1420中的各个模块的操作和/或功能,可参见上述图11和图13实施例中的描述,为避免重复,此处适当省略详述描述。The computing server 1420 corresponds to the computing server shown in FIG. 11 and FIG. 13 . The operations and/or functions of the various modules in the computing server 1420 can be referred to the description in the foregoing embodiment of FIG. 11 and FIG. 13 to avoid duplication. Detailed descriptions are omitted as appropriate herein.
还应理解,图14所示的虚拟网络系统1400与图1和图2所示的虚拟网络相对应,虚拟网络系统1400的具体架构可以参照图1和图2的相应描述,为了避免重复,此处不再赘述。It should also be understood that the virtual network system 1400 shown in FIG. 14 corresponds to the virtual network shown in FIG. 1 and FIG. 2. The specific architecture of the virtual network system 1400 can refer to the corresponding descriptions of FIG. 1 and FIG. 2, in order to avoid duplication. I won't go into details here.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It is to be understood that the phrase "one embodiment" or "an embodiment" or "an" Thus, "in one embodiment" or "in an embodiment" or "an" In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系, 例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. The term "and/or" in this context is merely an association that describes an associated object, indicating that there can be three relationships. For example, A and/or B may indicate that A exists separately, and A and B exist simultaneously, and B cases exist alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本发明实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本发明所使用的,盘(Disk)和碟(disc)包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixing of the associated media. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
总之,以上所述仅为本发明技术方案的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (27)

  1. 一种监测虚拟网络的方法,其特征在于,包括:A method for monitoring a virtual network, comprising:
    网络管理器获取当前的时间周期内的业务信息,所述业务信息包括所述虚拟网络中各个计算服务器上报的位于所述各个计算服务器上的所有虚拟机VM的发送信息和接收信息,其中,第一VM的发送信息包括所述第一VM的标识信息、所述第一VM发送的业务报文的目的VM的标识信息以及所述第一VM向所述目的VM发送的业务报文的个数,所述第一VM的接收信息包括所述第一VM的标识信息、所述第一VM接收的业务报文的源VM的标识信息以及所述第一VM接收所述源VM发送的业务报文的个数;The network manager obtains the service information in the current time period, where the service information includes the sending information and the receiving information of all the virtual machine VMs located on the respective computing servers reported by the computing servers in the virtual network, where The sending information of the VM includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the number of service packets sent by the first VM to the destination VM. The receiving information of the first VM includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receives the service report sent by the source VM. Number of texts;
    所述网络管理器根据所述业务信息对所述虚拟网络进行检测。The network manager detects the virtual network according to the service information.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述网络管理器根据所述业务信息对所述虚拟网络进行检测,包括:The network manager detects the virtual network according to the service information, including:
    所述网络管理器根据所述业务信息统计所述虚拟网络的丢包率。The network manager collects a packet loss rate of the virtual network according to the service information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述网络管理器根据所述业务信息对所述虚拟网络进行检测,包括:The method according to claim 1 or 2, wherein the network manager detects the virtual network according to the service information, including:
    所述网络管理器根据所述业务信息生成当前的时间周期对应的当前业务流量拓扑,所述当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;The network manager generates a current service traffic topology corresponding to a current time period according to the service information, where the current service traffic topology includes an association relationship between VMs having a service flow in a current period;
    所述网络管理器根据所述当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,所述第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,所述第二总业务流量拓扑是由所述第一总业务流量拓扑和所述当前业务流量拓扑叠加而成;The network manager updates the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is corresponding to all time periods before the current time period. The traffic flow topology is superposed, and the second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
    所述网络管理器根据所述第二总业务流量拓扑对所述虚拟网络进行连通性检测。The network manager performs connectivity detection on the virtual network according to the second total service traffic topology.
  4. 根据权利要求3所述的方法,其特征在于,The method of claim 3 wherein:
    所述网络管理器根据所述第二总业务流量拓扑对所述虚拟网络进行连通性检测,包括:The network manager performs connectivity detection on the virtual network according to the second total service traffic topology, including:
    所述网络管理器根据所述第二总业务流量拓扑和所述当前业务流量拓扑生成差值业务流量拓扑,所述差值业务流量拓扑为所述第二总业务流量拓扑中去除与所述当前业务流量拓扑中相同部分的拓扑;And the network manager generates a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is removed from the second total service traffic topology and the current The topology of the same part of the traffic flow topology;
    所述网络管理器对所述差值业务流量拓扑进行连通性检测。 The network manager performs connectivity detection on the difference service traffic topology.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 4, characterized in that
    所述第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,所述各个计算服务器上的所有VM的发送信息和接收信息是所述各个计算服务器根据当前的时间周期的第一染色标识统计的,The service message and the received service message sent by the first VM include a first coloring identifier of a current time period, where the sending information and the receiving information of all VMs on the respective computing servers are the respective computing servers. According to the first staining identifier of the current time period,
    其中,所述当前的时间周期的第一染色标识与所述当前的时间周期相邻的时间周期的第一染色标识不同。The first coloring identifier of the current time period is different from the first coloring identifier of a time period adjacent to the current time period.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 5, characterized in that
    所述当前时间周期内的业务信息还包括第一业务报文的源VM发送所述第一业务报文的发送时间戳信息,和所述第一业务报文的目的VM接收到所述第一业务报文的接收时间戳信息,The service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination VM of the first service packet receiving the first Receive timestamp information of service packets,
    所述网络管理器根据所述业务信息对所述虚拟网络进行检测,还包括:The network manager detects the virtual network according to the service information, and further includes:
    所述网络管理器根据所述发送时间戳信息和所述接收时间戳信息计算所述虚拟网络的业务时延。The network manager calculates a service delay of the virtual network according to the sending timestamp information and the received timestamp information.
  7. 根据权利要求6所述的方法,其特征在于,The method of claim 6 wherein:
    所述第一业务报文包括所述当前时间周期的第二染色标识,其中,所述第一业务报文的发送时间戳信息和所述接收时间戳信息,是所述第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的,The first service packet includes a second coloring identifier of the current time period, where the sending timestamp information and the receiving timestamp information of the first service packet are the first service packet. The computing server where the source VM and the destination VM are located are respectively recorded according to the second coloring identifier of the current time period,
    其中,所述当前的时间周期的第二染色标识与所述当前的时间周期相邻的时间周期的第二染色标识不同。The second coloring identifier of the current time period is different from the second coloring identifier of a time period adjacent to the current time period.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述时间周期包括发送时间周期和接收时间周期,The method according to any one of claims 1 to 7, wherein the time period comprises a transmission time period and a reception time period,
    所述发送时间周期和所述接收时间周期的起始时刻相同,且,所述接收时间周期的时长大于所述发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
    其中,所述各个计算服务器上的所有VM的发送信息和接收信息,是所述各个计算服务器分别在所述发送时间周期和所述接收时间周期内统计的。The sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
  9. 一种监测虚拟网络的方法,其特征在于,包括:A method for monitoring a virtual network, comprising:
    计算服务器在当前的时间周期内统计位于所述计算服务器上的所有虚拟机VM的发送信息和接收信息,其中,第一VM的发送信息包括所述第一VM的标识信息、所述第一VM发送的业务报文的目的VM的标识信息以及所述第一VM向所述目的VM发送的业务报文的个数,所述第一VM的接 收信息包括所述第一VM的标识信息、所述第一VM接收的业务报文的源VM的标识信息以及所述第一VM接收所述源VM发送的业务报文的个数;The computing server collects the sending information and the receiving information of all the virtual machine VMs located on the computing server in the current time period, where the sending information of the first VM includes the identification information of the first VM, the first VM The identifier information of the destination VM of the sent service packet and the number of service packets sent by the first VM to the destination VM, where the first VM is connected The receiving information includes the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the number of the service packets sent by the first VM by the first VM.
    所述计算服务器向网络管理器发送位于所述计算服务器上的所有VM的发送信息和接收信息,以使得所述网络管理器根据当前的时间周期内的业务信息对所述虚拟网络进行检测,其中,所述业务信息包括所述虚拟网络中各个计算服务器上报的位于所述各个计算服务器上的所有VM的发送信息和接收信息。The computing server sends the sending information and the receiving information of all VMs located on the computing server to the network manager, so that the network manager detects the virtual network according to the service information in the current time period, where The service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
  10. 根据权利要求9所述的方法,其特征在于,The method of claim 9 wherein:
    所述第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,The service packet sent by the first VM and the received service packet include a first dyed identifier of the current time period.
    所述计算服务器在当前的时间周期内统计位于所述计算服务器上的所有VM的发送信息和接收信息,包括:The computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
    所述计算服务器根据当前的时间周期的第一染色标识统计位于所述计算服务器上的所有VM的发送信息和接收信息,The computing server collects, according to the first coloring identifier of the current time period, the sending information and the receiving information of all the VMs located on the computing server,
    其中,所述当前的时间周期的染色标识与所述当前的时间周期相邻的时间周期的染色标识不同。The dyeing identifier of the current time period is different from the dyeing identifier of a time period adjacent to the current time period.
  11. 根据权利要求9或10所述的方法,其特征在于,Method according to claim 9 or 10, characterized in that
    所述计算服务器统计的位于所述计算服务器上的所有VM的发送信息还包括所述计算服务器上源VM发送第一业务报文的发送时间戳信息;The sending information of all the VMs on the computing server that are calculated by the computing server further includes sending timestamp information of the first service packet sent by the source VM on the computing server;
    或者,or,
    所述计算服务器统计的位于所述计算服务器上的所有VM的接收信息还包括所述计算服务器上目的VM接收第一业务报文的接收时间戳信息。The receiving information of all VMs located on the computing server, which is calculated by the computing server, further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
  12. 根据权利要求11所述的方法,其特征在于,The method of claim 11 wherein
    所述第一业务报文包括所述当前时间周期的第二染色标识,其中,所述第一业务报文的发送时间戳信息或接收时间戳信息是所述计算服务器根据当前的时间周期的第二染色标识记录的,The first service packet includes a second coloring identifier of the current time period, where the sending timestamp information or the receiving timestamp information of the first service packet is the first time according to the current time period of the computing server. The second staining mark is recorded,
    其中,所述当前的时间周期的第二染色标识与所述当前的时间周期相邻的时间周期的第二染色标识不同。The second coloring identifier of the current time period is different from the second coloring identifier of a time period adjacent to the current time period.
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,所述时间周期包括发送时间周期和接收时间周期,The method according to any one of claims 9 to 12, wherein the time period comprises a transmission time period and a reception time period,
    所述发送时间周期和所述接收时间周期的起始时刻相同,且,所述接收 时间周期的时长大于所述发送时间周期的时长;The transmission time period is the same as the start time of the reception time period, and the receiving The duration of the time period is greater than the duration of the transmission time period;
    其中,所述计算服务器在当前的时间周期内统计位于所述计算服务器上的所有VM的发送信息和接收信息,包括:The computing server collects the sending information and the receiving information of all the VMs located on the computing server in the current time period, including:
    所述计算服务器在所述发送时间周期内统计位于所述各个计算服务器上的所有VM的发送信息,在所述接收时间周期内统计位于所述各个计算服务器上的所有VM的接收信息。The computing server collects transmission information of all VMs located on the respective computing servers during the sending time period, and collects receiving information of all VMs located on the respective computing servers during the receiving time period.
  14. 一种网络管理器,其特征在于,包括:A network manager, comprising:
    获取模块,用于获取当前的时间周期内的业务信息,所述业务信息包括所述虚拟网络中各个计算服务器上报的位于所述各个计算服务器上的所有虚拟机VM的发送信息和接收信息,其中,第一VM的发送信息包括所述第一VM的标识信息、所述第一VM发送的业务报文的目的VM的标识信息以及所述第一VM向所述目的VM发送的业务报文的个数,所述第一VM的接收信息包括所述第一VM的标识信息、所述第一VM接收的业务报文的源VM的标识信息以及所述第一VM接收所述源VM发送的业务报文的个数;An obtaining module, configured to acquire service information in a current time period, where the service information includes sending information and receiving information of all virtual machine VMs located on the computing servers, which are reported by each computing server in the virtual network, where The sending information of the first VM includes the identifier information of the first VM, the identifier information of the destination VM of the service packet sent by the first VM, and the service packet sent by the first VM to the destination VM. The receiving information of the first VM, the identifier information of the first VM, the identifier information of the source VM of the service packet received by the first VM, and the first VM receiving the sending by the source VM Number of service packets;
    检测模块,用于根据所述业务信息对所述虚拟网络进行检测。And a detecting module, configured to detect the virtual network according to the service information.
  15. 根据权利要求14所述的网络管理器,其特征在于,The network manager of claim 14 wherein:
    所述检测模块具体用于根据所述业务信息统计所述虚拟网络的丢包率。The detecting module is specifically configured to collect a packet loss rate of the virtual network according to the service information.
  16. 根据权利要求14或15所述的网络管理器,其特征在于,A network manager according to claim 14 or 15, wherein
    所述检测模块具体用于根据所述业务信息生成当前的时间周期对应的当前业务流量拓扑,所述当前业务流量拓扑包括当前的周期内具有业务流通的各个VM间的关联关系;The detecting module is configured to generate a current service traffic topology corresponding to a current time period according to the service information, where the current service traffic topology includes an association relationship between VMs having a service flow in a current period;
    根据所述当前业务流量拓扑将第一总业务流量拓扑更新为第二总业务流量拓扑,其中,所述第一总业务流量拓扑是由当前时间周期之前的所有时间周期对应的业务流量拓扑叠加而成,所述第二总业务流量拓扑由所述第一总业务流量拓扑和所述当前业务流量拓扑叠加而成;Updating the first total service traffic topology to the second total service traffic topology according to the current service traffic topology, where the first total service traffic topology is superposed by the service traffic topology corresponding to all the time periods before the current time period. The second total service traffic topology is formed by superposing the first total service traffic topology and the current service traffic topology;
    根据所述第二总业务流量拓扑对所述虚拟网络进行连通性检测。Performing connectivity detection on the virtual network according to the second total service traffic topology.
  17. 根据权利要求16所述的网络管理器,其特征在于,The network manager of claim 16 wherein:
    所述检测模块具体用于根据所述第二总业务流量拓扑和所述当前业务流量拓扑生成差值业务流量拓扑,所述差值业务流量拓扑为所述第二总业务流量拓扑中去除与所述当前业务流量拓扑中相同部分的拓扑;对所述差值业务流量拓扑进行连通性检测。 The detecting module is specifically configured to generate a difference service traffic topology according to the second total service traffic topology and the current service traffic topology, where the difference service traffic topology is the second total service traffic topology removed and The topology of the same part of the current service traffic topology; and the connectivity detection of the difference service traffic topology.
  18. 根据权利要求14至17中任一项所述的网络管理器,其特征在于,A network manager according to any one of claims 14 to 17, wherein
    所述第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,其中,所述各个计算服务器上的所有VM的发送信息和接收信息是所述各个计算服务器根据当前的时间周期的第一染色标识统计的,The service message and the received service message sent by the first VM include a first coloring identifier of a current time period, where the sending information and the receiving information of all VMs on the respective computing servers are the respective computing servers. According to the first staining identifier of the current time period,
    其中,所述当前的时间周期的染色标识与当前的时间周期相邻的时间周期的染色标识不同。The dyeing identifier of the current time period is different from the dyeing identifier of a time period adjacent to the current time period.
  19. 根据权利要求14至18中任一项所述的网络管理器,其特征在于,A network manager according to any one of claims 14 to 18, characterized in that
    所述当前时间周期内的业务信息还包括第一业务报文的源VM发送所述第一业务报文的发送时间戳信息,和所述第一业务报文的目的VM接收到所述第一业务报文的接收时间戳信息,The service information in the current time period further includes the sending timestamp information of the first service packet sent by the source VM of the first service packet, and the destination VM of the first service packet receiving the first Receive timestamp information of service packets,
    所述检测模块还用于根据所述发送时间戳信息和所述接收时间戳信息计算所述各个时间周期对应的业务流量拓扑的业务时延。The detecting module is further configured to calculate a service delay of the service traffic topology corresponding to each time period according to the sending timestamp information and the receiving timestamp information.
  20. 根据权利要求19所述的网络管理器,其特征在于,A network manager according to claim 19, wherein
    所述第一业务报文包括所述当前时间周期的第二染色标识,其中,所述第一业务报文的发送时间戳信息和所述接收时间戳信息,是所述第一业务报文的源VM和目的VM所在的计算服务器分别根据当前的时间周期的第二染色标识记录的,The first service packet includes a second coloring identifier of the current time period, where the sending timestamp information and the receiving timestamp information of the first service packet are the first service packet. The computing server where the source VM and the destination VM are located are respectively recorded according to the second coloring identifier of the current time period,
    其中,所述当前的时间周期的第二染色标识与所述当前的时间周期相邻的时间周期的第二染色标识不同。The second coloring identifier of the current time period is different from the second coloring identifier of a time period adjacent to the current time period.
  21. 根据权利要求14至20中任一项所述的网络管理器,其特征在于,所述时间周期包括发送时间周期和接收时间周期,The network manager according to any one of claims 14 to 20, wherein the time period comprises a transmission time period and a reception time period,
    所述发送时间周期和所述接收时间周期的起始时刻相同,且,所述接收时间周期的时长大于所述发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
    其中,所述各个计算服务器上的所有VM的发送信息和接收信息,是所述各个计算服务器分别在所述发送时间周期和所述接收时间周期内统计的。The sending information and the receiving information of all the VMs on the computing servers are counted by the respective computing servers in the sending time period and the receiving time period.
  22. 一种计算服务器,其特征在于,包括:A computing server, comprising:
    统计模块,用于在当前的时间周期内统计位于所述计算服务器上的所有虚拟机VM的发送信息和接收信息,其中,第一VM的发送信息包括所述第一VM的标识信息、所述第一VM发送的业务报文的目的VM的标识信息以及所述第一VM向所述目的VM发送的业务报文的个数,所述第一VM的接收信息包括所述第一VM的标识信息、所述第一VM接收的业务报文的源 VM的标识信息以及所述第一VM接收所述源VM发送的业务报文的个数;a statistic module, configured to collect, in a current time period, the sending information and the receiving information of all the virtual machine VMs located on the computing server, where the sending information of the first VM includes the identifier information of the first VM, The identifier information of the destination VM of the service packet sent by the first VM and the number of service packets sent by the first VM to the destination VM, where the received information of the first VM includes the identifier of the first VM Information, a source of the service message received by the first VM Identification information of the VM and the number of service messages sent by the first VM by the first VM;
    发送模块,用于向网络管理器发送位于所述计算服务器上的所有VM的发送信息和接收信息,以使得所述网络管理器根据当前的时间周期内的业务信息对所述虚拟网络进行检测,其中,所述业务信息包括所述虚拟网络中各个计算服务器上报的位于所述各个计算服务器上的所有VM的发送信息和接收信息。a sending module, configured to send, to the network manager, sending information and receiving information of all VMs located on the computing server, so that the network manager detects the virtual network according to service information in a current time period, The service information includes transmission information and reception information of all VMs located on the respective computing servers reported by each computing server in the virtual network.
  23. 根据权利要求22所述的计算服务器,其特征在于,The computing server of claim 22 wherein:
    所述第一VM发送的业务报文和接收的业务报文包括当前的时间周期的第一染色标识,The service packet sent by the first VM and the received service packet include a first dyed identifier of the current time period.
    所述统计模块具体用于根据当前的时间周期的第一染色标识统计位于所述计算服务器上的所有VM的发送信息和接收信息,The statistic module is specifically configured to collect, according to the first coloring identifier of the current time period, statistics of sending and receiving information of all VMs located on the computing server,
    其中,所述当前的时间周期的染色标识与所述当前的时间周期相邻的时间周期的染色标识不同。The dyeing identifier of the current time period is different from the dyeing identifier of a time period adjacent to the current time period.
  24. 根据权利要求22或23所述的计算服务器,其特征在于,A computing server according to claim 22 or 23, wherein
    所述统计模块统计的位于所述计算服务器上的所有VM的发送信息还包括所述计算服务器上源VM发送第一业务报文的发送时间戳信息;The sending information of all the VMs that are located on the computing server, and the sending timestamp information of the first service packet sent by the source VM on the computing server;
    或者,or,
    所述统计模块统计的位于所述计算服务器上的所有VM的接收信息还包括所述计算服务器上目的VM接收第一业务报文的接收时间戳信息。The receiving information of all VMs located on the computing server, which is calculated by the statistics module, further includes receiving timestamp information of the first service packet received by the destination VM on the computing server.
  25. 根据权利要求24所述的计算服务器,其特征在于,The computing server of claim 24 wherein:
    所述第一业务报文包括所述当前时间周期的第二染色标识,其中,所述统计模块具体用于根据当前的时间周期的第二染色标识记录所述第一业务报文的发送时间戳信息或接收时间戳信息,The first service packet includes a second coloring identifier of the current time period, where the statistics module is configured to record a sending timestamp of the first service packet according to a second coloring identifier of a current time period. Information or receive timestamp information,
    其中,所述当前的时间周期的第二染色标识与所述当前的时间周期相邻的时间周期的第二染色标识不同。The second coloring identifier of the current time period is different from the second coloring identifier of a time period adjacent to the current time period.
  26. 根据权利要求22至25中任一项所述的计算服务器,其特征在于,A computing server according to any one of claims 22 to 25, wherein
    所述时间周期包括发送时间周期和接收时间周期,The time period includes a transmission time period and a reception time period.
    所述发送时间周期和所述接收时间周期的起始时刻相同,且,所述接收时间周期的时长大于所述发送时间周期的时长;The sending time period is the same as the starting time of the receiving time period, and the duration of the receiving time period is greater than the duration of the sending time period;
    其中,所述统计模块具体用于在所述发送时间周期内统计的位于所述各个计算服务器上的所有VM的发送信息,在所述接收时间周期内统计的位于 所述各个计算服务器上的所有VM的接收信息。The statistic module is specifically configured to send, according to the statistics of all VMs located on the computing servers, in the sending time period, where the statistics are located in the receiving time period. Receive information of all VMs on the respective computing servers.
  27. 一种虚拟网络系统,其特征在于,包括:A virtual network system, comprising:
    如权利要求14至21中任一项所述的网络管理器,以及如权利要求22至26中任一项所述的计算服务器,A network manager according to any one of claims 14 to 21, and a computing server according to any one of claims 22 to 26.
    其中,所述计算服务器用于在当前的时间周期内统计位于所述计算服务器上的所有虚拟机VM的发送信息和接收信息,并向所述网络管理器发送位于所述计算服务器上的所有VM的发送信息和接收信息;The computing server is configured to collect sending information and receiving information of all virtual machine VMs located on the computing server in a current time period, and send all VMs located on the computing server to the network manager. Sending information and receiving information;
    所述网络管理器用于根据业务信息对所述虚拟网络进行检测,所述业务信息包括所述虚拟网络系统中各个计算服务器上报的位于所述各个计算服务器上的所有VM的发送信息和接收信息。 The network manager is configured to detect the virtual network according to the service information, where the service information includes sending information and receiving information of all VMs located on the computing servers reported by each computing server in the virtual network system.
PCT/CN2016/106978 2016-11-23 2016-11-23 Method, device, and virtual network system for monitoring virtual network WO2018094616A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/106978 WO2018094616A1 (en) 2016-11-23 2016-11-23 Method, device, and virtual network system for monitoring virtual network
CN201680045729.8A CN107996023B (en) 2016-11-23 2016-11-23 Method, device and virtual network system for monitoring virtual network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/106978 WO2018094616A1 (en) 2016-11-23 2016-11-23 Method, device, and virtual network system for monitoring virtual network

Publications (1)

Publication Number Publication Date
WO2018094616A1 true WO2018094616A1 (en) 2018-05-31

Family

ID=62028757

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/106978 WO2018094616A1 (en) 2016-11-23 2016-11-23 Method, device, and virtual network system for monitoring virtual network

Country Status (2)

Country Link
CN (1) CN107996023B (en)
WO (1) WO2018094616A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162971A (en) * 2019-12-30 2020-05-15 视联动力信息技术股份有限公司 Time delay determination method and device
CN112152872A (en) * 2020-08-31 2020-12-29 新华三大数据技术有限公司 Network sub-health detection method and device
CN112448896A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Method and device for determining transmission period in deterministic network
CN112787874A (en) * 2019-11-04 2021-05-11 烽火通信科技股份有限公司 Packet loss measurement method and system for IOAM function of SPN (Passive optical network)
CN113079091A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Active stream following detection method, network equipment and communication system
CN113328903A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Method, device and system for detecting transmission quality
CN113794641A (en) * 2021-08-20 2021-12-14 新华三信息安全技术有限公司 Message processing method and device
CN114285733A (en) * 2021-12-28 2022-04-05 苏州盛科通信股份有限公司 Message-dyeing-based IOAM network equipment congestion and time delay detection method and device
EP4109959A4 (en) * 2020-03-10 2023-08-02 Huawei Technologies Co., Ltd. In-situ flow testing method and device

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586996B (en) * 2018-11-08 2022-03-18 孔欣然 Cloud platform real-time testing system and method based on network message time delay comparison
CN109525465A (en) * 2018-12-26 2019-03-26 武汉职业技术学院 A kind of virtual communication network practical training method and system
CN110120887B (en) * 2019-04-25 2022-02-11 新华三技术有限公司合肥分公司 Network quality information monitoring method, electronic equipment and storage medium
CN112152865B (en) * 2019-06-27 2023-06-27 中兴通讯股份有限公司 Network performance measuring device and method
CN112398704B (en) * 2019-08-15 2022-12-23 中国移动通信集团广东有限公司 Virtual network delay calculation method and terminal equipment
CN112714007B (en) * 2019-10-24 2022-07-01 烽火通信科技股份有限公司 Method and device for detecting service message dyeing marks of all IOAM (input/output access am) equipment
CN110932931A (en) * 2019-11-13 2020-03-27 苏宁云计算有限公司 Detection method and device for network delay of data center
CN112929197A (en) * 2019-12-06 2021-06-08 中兴通讯股份有限公司 Network communication method, device, equipment and storage medium
CN113067740B (en) * 2020-01-02 2023-09-05 中国移动通信有限公司研究院 Road-associated performance detection method, device, equipment and computer-readable storage medium
CN111464385A (en) * 2020-03-30 2020-07-28 北京信而泰科技股份有限公司 Second counting type statistical method and device
CN112152938B (en) * 2020-08-19 2022-11-22 鹏城实验室 A Determination Method of Round Trip Delay in Cloud Virtual Environment
CN113300917B (en) * 2021-07-27 2021-10-15 苏州浪潮智能科技有限公司 Traffic monitoring method and device for Open Stack tenant network
CN114629679B (en) * 2022-01-26 2024-02-13 深圳市风云实业有限公司 Data message dyeing and detecting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741513A (en) * 2009-12-15 2010-06-16 中兴通讯股份有限公司 Method and system for detecting connectivity
CN102224709A (en) * 2011-04-20 2011-10-19 华为技术有限公司 Method and apparatus of monitoring on ip bearing net performance
CN102404166A (en) * 2011-10-27 2012-04-04 华为技术有限公司 Packet loss detecting method and system as well as transmitting equipment and receiving equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591834B (en) * 2015-07-10 2018-12-11 新华三技术有限公司 Flux monitoring method and device in VXLAN
CN105227403B (en) * 2015-10-09 2018-11-06 盛科网络(苏州)有限公司 A kind of OpenStack network flow monitoring methods
CN106130825A (en) * 2016-08-04 2016-11-16 华为技术有限公司 A kind of data transmission quality detection method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741513A (en) * 2009-12-15 2010-06-16 中兴通讯股份有限公司 Method and system for detecting connectivity
CN102224709A (en) * 2011-04-20 2011-10-19 华为技术有限公司 Method and apparatus of monitoring on ip bearing net performance
CN102404166A (en) * 2011-10-27 2012-04-04 华为技术有限公司 Packet loss detecting method and system as well as transmitting equipment and receiving equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11677670B2 (en) 2019-08-30 2023-06-13 Huawei Technologies Co., Ltd. Method for determining sending period in deterministic network and apparatus
CN112448896B (en) * 2019-08-30 2024-04-30 华为技术有限公司 Method and device for determining transmission period in deterministic network
CN112448896A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Method and device for determining transmission period in deterministic network
CN112787874B (en) * 2019-11-04 2022-06-03 烽火通信科技股份有限公司 Packet loss measurement method and system for IOAM function of SPN (Passive optical network)
CN112787874A (en) * 2019-11-04 2021-05-11 烽火通信科技股份有限公司 Packet loss measurement method and system for IOAM function of SPN (Passive optical network)
CN111162971A (en) * 2019-12-30 2020-05-15 视联动力信息技术股份有限公司 Time delay determination method and device
CN113079091A (en) * 2020-01-03 2021-07-06 华为技术有限公司 Active stream following detection method, network equipment and communication system
CN113079091B (en) * 2020-01-03 2022-07-22 华为技术有限公司 Active stream following detection method, network equipment and communication system
CN113328903A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Method, device and system for detecting transmission quality
CN113328903B (en) * 2020-02-29 2023-02-03 华为技术有限公司 Method, device and system for detecting transmission quality
EP4109959A4 (en) * 2020-03-10 2023-08-02 Huawei Technologies Co., Ltd. In-situ flow testing method and device
CN112152872B (en) * 2020-08-31 2022-05-27 新华三大数据技术有限公司 Network sub-health detection method and device
CN112152872A (en) * 2020-08-31 2020-12-29 新华三大数据技术有限公司 Network sub-health detection method and device
CN113794641A (en) * 2021-08-20 2021-12-14 新华三信息安全技术有限公司 Message processing method and device
CN114285733A (en) * 2021-12-28 2022-04-05 苏州盛科通信股份有限公司 Message-dyeing-based IOAM network equipment congestion and time delay detection method and device

Also Published As

Publication number Publication date
CN107996023B (en) 2020-04-28
CN107996023A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
WO2018094616A1 (en) Method, device, and virtual network system for monitoring virtual network
US11196654B2 (en) System for aggregating statistics associated with interfaces
CN104025508B (en) For finding the method, equipment and device of multiple spot end points in a network environment
EP2863585B1 (en) Controller driven OAM for openflow
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
US20230087454A1 (en) Tagging packets for monitoring and analysis
US20170264496A1 (en) Method and device for information processing
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
CN106130825A (en) A kind of data transmission quality detection method and device
WO2016177120A1 (en) Measurement method and system for packet loss of link packet, target node and initiating-end node
US20090282291A1 (en) Internal maintenance association end point (mep) for sharing state information
CN108632099B (en) Fault detection method and device for link aggregation
WO2016107424A1 (en) Link state detection method, apparatus and system
WO2015168947A1 (en) Path switching method and device
US20190158350A1 (en) Deadlock avoidance using modified ethernet connectivity fault management signaling
US10397340B2 (en) Multicast migration
CN115996197B (en) A Distributed Computing Traffic Simulation System and Method for Traffic Congestion Front-end
CN105516658B (en) A monitoring device control method and device
CN106603322B (en) Message sending and receiving method and network equipment
US8908682B2 (en) Switch discovery protocol for a distributed fabric system
CN116248479A (en) Network path detection method, device, equipment and storage medium
WO2017165999A1 (en) Network service implementation method, service controller, and communication system
CN106788842A (en) The processing method and SOC of a kind of PTP messages
WO2013075476A1 (en) Ethernet link detection method and device
WO2016082614A1 (en) Method and device for processing multicast route table entry, and computer storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16922491

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16922491

Country of ref document: EP

Kind code of ref document: A1