CN106921533B - Method, device and system for measuring network performance - Google Patents
Method, device and system for measuring network performance Download PDFInfo
- Publication number
- CN106921533B CN106921533B CN201510994478.5A CN201510994478A CN106921533B CN 106921533 B CN106921533 B CN 106921533B CN 201510994478 A CN201510994478 A CN 201510994478A CN 106921533 B CN106921533 B CN 106921533B
- Authority
- CN
- China
- Prior art keywords
- node
- destination
- source
- detection
- detection node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开了一种测量网络性能的方法、装置及系统。该系统包括:控制节点,用于接收测量请求,发送第一测量指令和第二测量指令,接收第一结果并转发;源探测节点,用于接收第一测量指令,基于第一测量指令向目的探测节点发送探测请求报文,接收目标探测节点发送的探测响应报文,根据探测请求报文和探测响应报文生成第一结果并向控制节点发送;目的探测节点,用于接收第二测量指令,接收源探测节点发送的探测请求报文,基于第二测量指令向源探测节点发送的探测响应报文;其中,源物理服务器中的源探测节点和源虚拟客户机均通过源虚拟交换机与外界通信,目的物理服务器中的目的探测节点和目的虚拟客户机均通过源虚拟交换机与外界通信。
The embodiments of the present invention disclose a method, device and system for measuring network performance. The system includes: a control node for receiving a measurement request, sending a first measurement instruction and a second measurement instruction, and receiving and forwarding a first result; a source detection node for receiving the first measurement instruction, and sending a message to the destination based on the first measurement instruction The detection node sends a detection request message, receives a detection response message sent by the target detection node, generates a first result according to the detection request message and the detection response message, and sends it to the control node; the target detection node is used for receiving the second measurement instruction , receive the detection request message sent by the source detection node, and send the detection response message to the source detection node based on the second measurement instruction; wherein, the source detection node and the source virtual client in the source physical server communicate with the outside world through the source virtual switch For communication, both the destination detection node and the destination virtual client in the destination physical server communicate with the outside world through the source virtual switch.
Description
技术领域technical field
本发明涉及通信技术领域,特别是涉及一种测量网络性能的方法、装置及系统。The present invention relates to the field of communication technologies, and in particular, to a method, device and system for measuring network performance.
背景技术Background technique
对于网络服务来说,服务提供方和服务使用方通常都需要了解网络性能情况。对于服务提供方来说,网络性能可以用于衡量网络服务的服务质量。对于服务使用方来说,网络性能可以用于了解网络情况。通常地,网络性能的测量人员可以通过ping操作来了解两个网络终端之间的网络性能。假设测量人员需要了解网络终端A与网络终端B之间的网络性能,测量人员可以在网络终端A上手动编写针对网络终端B的网络地址的ping命令并手动触发编写好的ping命令,网络终端A可以得到网络终端A与网络终端B之间的网络性能的测量结果,这样测量人员就可以通过网络终端A得到的测量结果了解网络终端A与网络终端B之间的网络性能。可见,为了测量网络终端之间的网络性能,测量人员需要在被测量网络终端上手动编写和触发ping命令。可见,网络性能的测量操作对测量人员来说是较为繁琐和复杂的。For network services, both the service provider and the service consumer usually need to know the network performance. For service providers, network performance can be used to measure the service quality of network services. For service consumers, network performance can be used to understand network conditions. Generally, a network performance measurer can know the network performance between two network terminals through a ping operation. Assuming that the surveyor needs to know the network performance between network terminal A and network terminal B, the surveyor can manually write a ping command for the network address of network terminal B on network terminal A and manually trigger the programmed ping command, network terminal A The measurement result of the network performance between the network terminal A and the network terminal B can be obtained, so that the measurement personnel can know the network performance between the network terminal A and the network terminal B through the measurement result obtained by the network terminal A. It can be seen that in order to measure the network performance between network terminals, the measurement personnel need to manually write and trigger the ping command on the measured network terminal. It can be seen that the measurement operation of the network performance is cumbersome and complicated for the measurement personnel.
发明内容SUMMARY OF THE INVENTION
本发明实施例所要解决的技术问题是,提供一种测量网络性能的方法、装置及系统,以简化测量人员在网络性能测量过程中的手动操作,从而使得测量人员能够更简便地测量网络性能。The technical problem to be solved by the embodiments of the present invention is to provide a method, device and system for measuring network performance, so as to simplify the manual operation of the measurement personnel in the network performance measurement process, so that the measurement personnel can measure the network performance more easily.
第一方面,本发明实施例提供了一种测量网络性能的系统。所述系统包括:In a first aspect, an embodiment of the present invention provides a system for measuring network performance. The system includes:
控制节点,用于接收测量请求,向源探测节点发送第一测量指令,向目的探测节点发送第二测量指令,接收所述源探测节点发送的第一结果,以及,转发第一结果,其中,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The control node is configured to receive the measurement request, send a first measurement instruction to the source detection node, send a second measurement instruction to the destination detection node, receive the first result sent by the source detection node, and forward the first result, wherein, The measurement request is used to instruct the control node to feed back a result for identifying the performance of the link from the source virtual client to the destination virtual client;
所述源探测节点,用于接收所述控制节点发送的所述第一测量指令,基于所述第一测量指令向所述目的探测节点发送探测请求报文,接收所述目的探测节点发送的探测响应报文,根据所述探测请求报文和所述探测响应报文生成所述第一结果,以及,向所述控制节点发送所述第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能;The source detection node is configured to receive the first measurement instruction sent by the control node, send a detection request message to the destination detection node based on the first measurement instruction, and receive the detection request sent by the destination detection node a response message, generating the first result according to the probe request message and the probe response message, and sending the first result to the control node, where the first result is used to identify the source the performance of the link from the probe node to the destination probe node;
所述目的探测节点,用于接收所述控制节点发送的所述第二测量指令,接收所述源探测节点发送的所述探测请求报文,以及,基于所述第二测量指令向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;The destination detection node is configured to receive the second measurement instruction sent by the control node, receive the detection request message sent by the source detection node, and send a message to the source based on the second measurement instruction The detection node sends the detection response message corresponding to the detection request message;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the results of the performance of the virtual guest-to-destination virtual guest link belong.
可选的,所述基于所述第一测量指令向所述目的探测节点发送探测请求报文,包括:Optionally, the sending a probe request message to the destination probe node based on the first measurement instruction includes:
根据所述第一测量指令中的所述类型,确定所述探测请求报文的发送方式;determining the sending mode of the probe request message according to the type in the first measurement instruction;
按照所述发送方式,向所述目的探测节点发送所述探测请求报文。According to the sending manner, the probe request message is sent to the destination probe node.
可选的,optional,
所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。The source probe node is a process in the source virtual client, and the destination probe node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,optional,
所述源探测节点,还用于确定所述第一结果是否属于第一范围,以及,当所述第一结果不属于所述第一范围时生成并向所述控制节点发送第一告警;The source detection node is further configured to determine whether the first result belongs to a first range, and to generate and send a first alarm to the control node when the first result does not belong to the first range;
所述控制节点,还用于接收所述源探测节点发送的所述第一告警,以及,转发所述第一告警。The control node is further configured to receive the first alarm sent by the source detection node, and forward the first alarm.
可选的,optional,
所述目的探测节点,还用于根据所述探测请求报文生成第二结果,以及,向所述控制节点发送所述第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;The destination detection node is further configured to generate a second result according to the detection request message, and send the second result to the control node, where the second result is used to identify the source detection node to the destination detection node. Describe the performance of the link of the destination detection node;
所述控制节点,还用于接收所述目的探测节点发送的所述第二结果,以及,转发所述第二结果。The control node is further configured to receive the second result sent by the destination detection node, and forward the second result.
可选的,optional,
所述目的探测节点,还用于确定所述第二结果是否属于第二范围,以及,当所述第二结果不属于所述第二范围时生成并向所述控制节点发送第二告警;The destination detection node is further configured to determine whether the second result belongs to the second range, and to generate and send a second alarm to the control node when the second result does not belong to the second range;
所述控制节点,还用于接收所述目的探测节点发送的所述第二告警,以及,转发所述第二告警。The control node is further configured to receive the second alarm sent by the destination detection node, and forward the second alarm.
可选的,所述系统还包括:Optionally, the system further includes:
源代理节点,用于接收所述控制节点发送的所述第一测量指令并向所述源探测节点转发所述第一测量指令,以及,接收所述源探测节点发送的所述第一结果并向所述控制节点转发所述第一结果;A source proxy node, configured to receive the first measurement instruction sent by the control node and forward the first measurement instruction to the source detection node, and receive the first result sent by the source detection node and forwarding the first result to the control node;
目的代理节点,用于接收所述控制节点发送的所述第二测量指令并向所述目的探测节点转发所述第二测量指令。A destination proxy node, configured to receive the second measurement instruction sent by the control node and forward the second measurement instruction to the destination detection node.
可选的,optional,
所述目的代理节点,还用于接收所述目的探测节点发送的所述第二结果并向所述控制节点转发所述第二结果。The destination proxy node is further configured to receive the second result sent by the destination detection node and forward the second result to the control node.
可选的,optional,
所述源代理节点,还用于接收所述源探测节点发送的所述第一告警并向所述控制节点转发所述第一告警;the source proxy node, further configured to receive the first alarm sent by the source detection node and forward the first alarm to the control node;
所述目的代理节点,还用于接收所述目的探测节点发送的所述第二告警并向所述控制节点转发所述第二告警。The destination proxy node is further configured to receive the second alarm sent by the destination detection node and forward the second alarm to the control node.
可选的,optional,
所述源代理节点,还用于在转发所述第一测量指令之前,对所述第一测量指令进行签名;The source agent node is further configured to sign the first measurement instruction before forwarding the first measurement instruction;
所述源探测节点,还用于在接收所述第一测量指令之后,对签名后的第一测量指令进行验证,在所述验证是成功的的情况下,向所述目的探测节点发送所述探测请求报文;The source detection node is further configured to verify the signed first measurement instruction after receiving the first measurement instruction, and if the verification is successful, send the destination detection node the Probe request message;
所述目的代理节点,还用于在转发所述第二测量指令之前,对所述第二测量指令进行签名;The destination proxy node is further configured to sign the second measurement instruction before forwarding the second measurement instruction;
所述目的探测节点,还用于在接收所述第二测量指令之后,对签名后的第二测量指令进行验证,在所述验证是成功的的情况下,基于所述第二测量指令向所述源探测节点发送对应所述探测请求报文的所述探测响应报文。The destination detection node is further configured to verify the signed second measurement instruction after receiving the second measurement instruction, and in the case that the verification is successful, send the request to the destination based on the second measurement instruction. The source detection node sends the detection response message corresponding to the detection request message.
可选的,所述源代理节点与所述目的代理节点是同一代理节点;Optionally, the source proxy node and the destination proxy node are the same proxy node;
所述控制节点,还用于在发送所述第一测量指令之前,获取所述源代理节点到所述源探测节点的第一路由和所述源探测节点到所述源代理节点的第二路由,向所述源代理节点发送所述第一路由,向所述源探测节点发送所述第二路由,以及,在发送所述第二测量指令之前,获取所述目的代理节点到所述目的探测节点之间的第三路由,向所述目的代理节点发送所述第三路由;The control node is further configured to acquire a first route from the source proxy node to the source probe node and a second route from the source probe node to the source proxy node before sending the first measurement instruction , send the first route to the source proxy node, send the second route to the source probe node, and, before sending the second measurement instruction, obtain the destination proxy node to the destination probe node a third route between nodes, sending the third route to the destination proxy node;
其中,所述第一路由用于所述源代理节点向所述源探测节点发送所述第一测量指令,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果,所述第三路由用于所述目的代理节点向所述目的探测节点发送所述第二测量指令。The first route is used by the source proxy node to send the first measurement instruction to the source detection node, and the second route is used by the source detection node to send the first measurement instruction to the source proxy node. As a result, the third route is used for the destination proxy node to send the second measurement instruction to the destination detection node.
可选的,所述源代理节点是所述源物理服务器中的一个进程,所述目的代理节点是所述目的物理服务器中的一个进程。Optionally, the source proxy node is a process in the source physical server, and the destination proxy node is a process in the destination physical server.
可选的,optional,
所述控制节点,还用于在发送所述第一测量指令和所述第二测量指令之前,向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,以及,建立包含所述第一端口与所述第二端口的虚拟局域网;所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源探测节点通信,所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文;The control node is further configured to send first control information to the source proxy node and send second control information to the destination proxy node before sending the first measurement instruction and the second measurement instruction, so as to The source detection node specifies a first port on the source virtual switch and specifies a second port on the destination virtual switch for the destination detection node, and establishes a configuration including the first port and the second port the virtual local area network; the source detection node can communicate with the destination detection node through the first port, the destination detection node can communicate with the source detection node through the second port, and the virtual local area network is used for transmitting the probe request message and the probe response message;
所述源代理节点,还用于接收所述第一控制信息,以及,基于所述第一控制信息在所述源物理服务器中创建所述第一虚拟机和所述源探测节点;The source proxy node is further configured to receive the first control information, and create the first virtual machine and the source detection node in the source physical server based on the first control information;
所述目的代理节点,还用于接收所述第二控制信息,以及,基于所述第二控制信息在所述目的物理服务器中创建所述第二虚拟机和所述目的探测节点。The destination proxy node is further configured to receive the second control information, and create the second virtual machine and the destination detection node in the destination physical server based on the second control information.
第二方面,本发明实施例提供了一种测量网络性能的方法。所述方法包括:In a second aspect, an embodiment of the present invention provides a method for measuring network performance. The method includes:
控制节点接收测量请求,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;the control node receives a measurement request, the measurement request is used to instruct the control node to feed back a result for identifying the performance of the link from the source virtual client to the destination virtual client;
所述控制节点向源探测节点发送第一测量指令并向目的探测节点发送第二测量指令,所述第一测量指令用于指示源探测节点向目的探测节点发送探测请求报文、接收对应所述探测请求报文的探测响应报文并根据所述探测请求报文和所述探测响应报文生成第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述第二测量指令用于指示所述目的探测节点向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;The control node sends a first measurement instruction to the source detection node and sends a second measurement instruction to the destination detection node, where the first measurement instruction is used to instruct the source detection node to send a detection request message to the destination detection node, receive a corresponding A probe response message of a probe request message and generate a first result according to the probe request message and the probe response message, where the first result is used to identify the link from the source probe node to the destination probe node performance of the road, and the second measurement instruction is used to instruct the destination detection node to send the detection response message corresponding to the detection request message to the source detection node;
所述控制节点接收所述源探测节点发送的所述第一结果,并转发所述第一结果;receiving, by the control node, the first result sent by the source detection node, and forwarding the first result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the result of the virtual guest-to-destination virtual guest link belongs.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点接收所述目的探测节点发送的所述第二结果,并转发所述第二结果;receiving, by the control node, the second result sent by the destination detection node, and forwarding the second result;
其中,所述第二结果所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能。The second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the performance of the link from the source detection node to the destination detection node.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点接收所述源探测节点发送的第一告警,并转发所述第一告警;receiving, by the control node, a first alarm sent by the source detection node, and forwarding the first alarm;
所述控制节点接收所述目的探测节点发送的第二告警,并转发所述第二告警;receiving, by the control node, the second alarm sent by the destination detection node, and forwarding the second alarm;
其中,所述第一告警是所述源探测节点在确定所述第一结果不属于第一范围时生成并发送的,所述第二告警是所述目的探测节点在确定所述第二结果不属于第二范围时生成并发送的。The first alarm is generated and sent by the source detection node when it determines that the first result does not belong to the first range, and the second alarm is generated by the destination detection node when it determines that the second result does not belong to the first range. Generated and sent when belonging to the second range.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点确定所述第一结果是否属于第三范围;the control node determines whether the first result belongs to a third range;
当所述第一结果不属于所述第三范围时,所述控制节点生成第三告警并转发;When the first result does not belong to the third range, the control node generates a third alarm and forwards it;
所述控制节点确定所述第二结果是否属于第四范围;the control node determines whether the second result belongs to a fourth range;
当所述第二结果不属于所述第四范围时,所述控制节点生成第四告警并转发。When the second result does not belong to the fourth range, the control node generates and forwards a fourth alarm.
可选的,optional,
所述控制节点向所述源探测节点发送第一测量指令并向所述目的探测节点发送第二测量指令,包括:所述控制节点向源代理节点发送所述第一测量指令,以指示所述源代理节点向所述源探测节点转发所述第一测量指令;所述控制节点向目的代理节点发送所述第二测量指令,以指示所述目的代理节点向所述目的探测节点转发所述第二测量指令;Sending, by the control node, a first measurement instruction to the source detection node and a second measurement instruction to the destination detection node includes: the control node sending the first measurement instruction to a source proxy node to instruct the The source proxy node forwards the first measurement instruction to the source detection node; the control node sends the second measurement instruction to the destination proxy node to instruct the destination proxy node to forward the first measurement instruction to the destination detection node 2. Measurement instructions;
所述控制节点接收所述源探测节点发送的第一结果,具体为:所述控制节点接收所述源代理节点转发的所述第一结果,所述第一结果是由所述源探测节点发送到所述源代理节点的。The control node receives the first result sent by the source detection node, specifically: the control node receives the first result forwarded by the source proxy node, where the first result is sent by the source detection node to the source agent node.
可选的,optional,
所述控制节点接收所述目的探测节点发送的第二结果,具体为:所述控制节点接收所述目的代理节点转发的所述第二结果,所述第二结果是由所述目的探测节点发送到所述目的代理节点的。The control node receives the second result sent by the destination detection node, specifically: the control node receives the second result forwarded by the destination proxy node, where the second result is sent by the destination detection node to the destination proxy node.
可选的,optional,
所述控制节点接收所述源探测节点发送的第一告警,具体为:所述控制节点接收所述源代理节点转发的所述第一告警,所述第一告警是由所述源探测节点发送到所述源代理节点的;The control node receives the first alarm sent by the source detection node, specifically: the control node receives the first alarm forwarded by the source proxy node, where the first alarm is sent by the source detection node to the source agent node;
所述控制节点接收所述目的探测节点发送的第二告警,具体为:所述控制节点接收所述目的代理节点转发的所述第二告警,所述第二告警是由所述目的探测节点发送到所述目的代理节点的。The control node receives the second alarm sent by the destination detection node, specifically: the control node receives the second alarm forwarded by the destination proxy node, where the second alarm is sent by the destination detection node to the destination proxy node.
可选的,所述源代理节点与所述目的代理节点是同一代理节点;Optionally, the source proxy node and the destination proxy node are the same proxy node;
在所述控制节点发送第一测量指令和第二测量指令之前,所述方法还包括:Before the control node sends the first measurement instruction and the second measurement instruction, the method further includes:
所述控制节点获取所述源代理节点到所述源探测节点的第一路由和所述源探测节点到所述源代理节点的第二路由,向所述源代理节点发送所述第一路由,向所述源探测节点发送所述第二路由,所述第一路由用于所述源代理节点向所述源探测节点转发所述第一测量指令,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果;obtaining, by the control node, a first route from the source proxy node to the source detection node and a second route from the source detection node to the source proxy node, and sending the first route to the source proxy node, Sending the second route to the source detection node, where the first route is used by the source proxy node to forward the first measurement instruction to the source detection node, and the second route is used for the source detection node the node sends the first result to the source proxy node;
所述控制节点获取所述目的代理节点到所述目的探测节点的第三路由,向所述目的代理节点发送所述第三路由,所述第三路由用于所述目的代理节点向所述目的探测节点转发所述第二测量指令。The control node acquires a third route from the destination proxy node to the destination detection node, and sends the third route to the destination proxy node, where the third route is used by the destination proxy node to send the destination proxy node to the destination proxy node. The probe node forwards the second measurement instruction.
可选的,所述源代理节点是源物理服务器中的一个进程,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the source proxy node is a process in the source physical server, and the destination proxy node is a process in the destination physical server;
在所述控制节点发送第一测量指令和第二测量指令之前,所述方法还包括:Before the control node sends the first measurement instruction and the second measurement instruction, the method further includes:
所述控制节点向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,所述第一控制信息用于指示所述源代理节点在所述源物理服务器中创建第一虚拟机和所述源探测节点,所述第二控制信息用于指示所述目的代理节点在所述目的物理服务器中创建第二虚拟机和所述目的探测节点,其中,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机,所述目的探测节点是所述第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机;The control node sends first control information to the source proxy node and sends second control information to the destination proxy node, where the first control information is used to instruct the source proxy node to create in the source physical server a first virtual machine and the source detection node, the second control information is used to instruct the destination proxy node to create a second virtual machine and the destination detection node in the destination physical server, wherein the source detection node A node is a process in the first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the source physical server, and the destination detection node is the second virtual machine A process in the machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server;
所述控制节点为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源代理节点通信;The control node designates a first port on the source virtual switch for the source detection node and a second port on the destination virtual switch for the destination detection node, and the source detection node can pass the first port through the first port. A port communicates with the destination detection node, and the destination detection node can communicate with the source proxy node through the second port;
所述控制节点建立包含所述第一端口与所述第二端口的虚拟局域网;所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文。The control node establishes a virtual local area network including the first port and the second port; the virtual local area network is used to transmit the probe request message and the probe response message.
第三方面,本发明实施例提供了一种测量网络性能的装置。所述装置部署有控制节点。所述装置包括:In a third aspect, an embodiment of the present invention provides an apparatus for measuring network performance. The apparatus is deployed with a control node. The device includes:
第一接收单元,用于接收测量请求,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a first receiving unit, configured to receive a measurement request, where the measurement request is used to instruct the control node to feed back a result for identifying the performance of the link from the source virtual client to the destination virtual client;
第一发送单元,用于向源探测节点发送第一测量指令并向目的探测节点发送第二测量指令,所述第一测量指令用于指示源探测节点向目的探测节点发送探测请求报文、接收对应所述探测请求报文的探测响应报文并根据所述探测请求报文和所述探测响应报文生成第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述第二测量指令用于指示所述目的探测节点向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;a first sending unit, configured to send a first measurement instruction to the source detection node and a second measurement instruction to the destination detection node, where the first measurement instruction is used to instruct the source detection node to send a detection request message to the destination detection node, receive a Corresponding to the probe response message of the probe request message and generating a first result according to the probe request message and the probe response message, the first result is used to identify the source probe node to the destination probe the performance of the link of the node, and the second measurement instruction is used to instruct the destination detection node to send the detection response message corresponding to the detection request message to the source detection node;
第二接收单元,用于接收所述源探测节点发送的所述第一结果;a second receiving unit, configured to receive the first result sent by the source detection node;
第一转发单元,用于转发所述第一结果;a first forwarding unit, configured to forward the first result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the result of the virtual guest-to-destination virtual guest link belongs.
可选的,所述装置还包括:Optionally, the device further includes:
第三接收单元,用于接收所述目的探测节点发送的所述第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;a third receiving unit, configured to receive the second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the performance of the link from the source probe node to the destination probe node;
第二转发单元,用于转发所述第二结果。A second forwarding unit, configured to forward the second result.
可选的,所述装置还包括:Optionally, the device further includes:
第四接收单元,用于接收所述源探测节点发送的第一告警,所述第一告警是所述源探测节点在确定所述第一结果不属于第一范围时生成并发送的;a fourth receiving unit, configured to receive a first alarm sent by the source detection node, where the first alarm is generated and sent by the source detection node when it is determined that the first result does not belong to the first range;
第三转发单元,用于转发所述第一告警;a third forwarding unit, configured to forward the first alarm;
第五接收单元,用于接收所述目的探测节点发送的第二告警,所述第二告警是所述目的探测节点在确定所述第二结果不属于第二范围时生成并发送的;a fifth receiving unit, configured to receive a second alarm sent by the destination detection node, where the second alarm is generated and sent by the destination detection node when it is determined that the second result does not belong to the second range;
第四转发单元,用于转发所述第二告警。a fourth forwarding unit, configured to forward the second alarm.
可选的,所述装置还包括:Optionally, the device further includes:
第一确定单元,用于确定所述第一结果是否属于第三范围;a first determining unit, configured to determine whether the first result belongs to a third range;
第五转发单元,用于当所述第一结果不属于所述第三范围时,生成第三网络性能告警信息并转发;a fifth forwarding unit, configured to generate and forward third network performance alarm information when the first result does not belong to the third range;
第二确定单元,用于确定所述第二结果是否属于第四范围;a second determination unit, configured to determine whether the second result belongs to the fourth range;
第六反馈单元,用于当所述第二结果不属于所述第四范围时,生成第四网络性能告警信息并转发。A sixth feedback unit, configured to generate and forward fourth network performance alarm information when the second result does not belong to the fourth range.
可选的,optional,
所述第一发送单元,具体用于向源代理节点发送所述第一测量指令,以指示所述源代理节点向所述源探测节点转发所述第一测量指令,以及,向目的代理节点发送所述第二测量指令,以指示所述目的代理节点向所述目的探测节点转发所述第二测量指令;The first sending unit is specifically configured to send the first measurement instruction to the source proxy node, so as to instruct the source proxy node to forward the first measurement instruction to the source detection node, and send the first measurement instruction to the destination proxy node the second measurement instruction to instruct the destination proxy node to forward the second measurement instruction to the destination detection node;
所述第二接收单元,具体用于接收所述源代理节点转发的所述第一结果,所述第一结果是由所述源探测节点发送到所述源代理节点的。The second receiving unit is specifically configured to receive the first result forwarded by the source proxy node, where the first result is sent by the source detection node to the source proxy node.
可选的,optional,
所述第三接收单元,具体用于接收所述目的代理节点转发的所述第二结果,所述第二结果是由所述目的探测节点发送到所述目的代理节点的。The third receiving unit is specifically configured to receive the second result forwarded by the destination proxy node, where the second result is sent by the destination detection node to the destination proxy node.
可选的,optional,
所述第四接收单元,具体用于接收所述源代理节点转发的所述第一告警,所述第一告警是由所述源探测节点发送到所述源代理节点的;The fourth receiving unit is specifically configured to receive the first alarm forwarded by the source proxy node, where the first alarm is sent by the source detection node to the source proxy node;
所述第五接收单元,具体用于接收所述目的代理节点转发的所述第二告警,所述第二告警是由所述目的探测节点发送到所述目的代理节点的。The fifth receiving unit is specifically configured to receive the second alarm forwarded by the destination proxy node, where the second alarm is sent by the destination detection node to the destination proxy node.
可选的,所述源代理节点与所述目的代理节点是同一代理节点;Optionally, the source proxy node and the destination proxy node are the same proxy node;
所述装置还包括:The device also includes:
第一获取单元,用于获取所述源代理节点到所述源探测节点的第一路由并向所述源代理节点发送,所述第一路由用于所述源代理节点向所述源探测节点转发所述第一测量指令a first obtaining unit, configured to obtain a first route from the source proxy node to the source detection node and send it to the source proxy node, where the first route is used by the source proxy node to send to the source detection node forward the first measurement instruction
第二获取单元,用于获取所述源探测节点到所述源代理节点的第二路由并向所述源探测节点发送,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果;a second obtaining unit, configured to obtain a second route from the source detection node to the source proxy node and send it to the source detection node, where the second route is used from the source detection node to the source proxy node sending the first result;
第三获取单元,用于获取所述目的代理节点到所述目的探测节点的第二路由并向所述目的代理节点发送,所述第二路由用于所述目的代理节点向所述目的探测节点转发所述第二测量指令。a third acquiring unit, configured to acquire a second route from the destination proxy node to the destination detection node and send it to the destination proxy node, where the second route is used by the destination proxy node to send the destination detection node Forward the second measurement instruction.
可选的,所述源代理节点是源物理服务器中的一个进程,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the source proxy node is a process in the source physical server, and the destination proxy node is a process in the destination physical server;
所述装置还包括:The device also includes:
第二发送单元,用于向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,所述第一控制信息用于指示所述源代理节点在所述源物理服务器中创建第一虚拟机和所述源探测节点,所述第二控制信息用于指示所述目的代理节点在所述目的物理服务器中创建第二虚拟机和所述目的探测节点,其中,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机,所述目的探测节点是所述第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机;a second sending unit, configured to send first control information to the source proxy node and send second control information to the destination proxy node, where the first control information is used to instruct the source proxy node in the source physical A first virtual machine and the source detection node are created in the server, and the second control information is used to instruct the destination proxy node to create a second virtual machine and the destination detection node in the destination physical server, wherein all the The source detection node is a process in the first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the source physical server, and the destination detection node is the A process in a second virtual machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server;
指定单元,用于为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源代理节点通信;a specifying unit, configured to specify a first port on the source virtual switch for the source detection node and a second port on the destination virtual switch for the destination detection node, the source detection node can pass the The first port communicates with the destination detection node, and the destination detection node can communicate with the source proxy node through the second port;
建立单元,用于建立包含所述第一端口与所述第二端口的虚拟局域网;所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文。The establishment unit is configured to establish a virtual local area network including the first port and the second port; the virtual local area network is configured to transmit the probe request message and the probe response message.
第四方面,本发明实施例提供了一种测量网络性能的方法。所述方法包括:In a fourth aspect, an embodiment of the present invention provides a method for measuring network performance. The method includes:
源探测节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The source detection node receives the measurement instruction sent by the control node, the measurement instruction is sent when the control node receives the measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to the destination virtual client. the results of the performance of the client's link;
所述源探测节点基于所述测量指令向目的探测节点发送探测请求报文;The source detection node sends a detection request message to the destination detection node based on the measurement instruction;
所述源探测节点接收所述目的探测节点发送的探测响应报文,并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;The source detection node receives the detection response message sent by the destination detection node, and generates a result according to the detection request message and the detection response message, where the result is used to identify the source detection node to the destination detection node The performance of the link of the node, the probe response message is sent by the destination probe node corresponding to the probe request message;
所述源探测节点向所述控制节点发送所述结果,以便所述控制节点转发所述结果;The source detection node sends the result to the control node, so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求和所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, both the measurement request and the measurement instruction carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier used to identify the source virtual client to the destination virtual client. The type of indicator to which the link performance result belongs.
可选的,所述源探测节点基于所述测量指令向目的探测节点发送探测请求报文,具体包括:Optionally, the source detection node sends a detection request message to the destination detection node based on the measurement instruction, which specifically includes:
所述源探测节点根据所述测量指令中的所述类型,确定所述探测请求报文的发送方式;The source detection node determines a transmission mode of the detection request message according to the type in the measurement instruction;
所述源探测节点按照所述发送方式,向所述目的探测节点发送所述探测请求报文。The source detection node sends the detection request message to the destination detection node according to the sending manner.
可选的,optional,
所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。The source probe node is a process in the source virtual client, and the destination probe node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server.
可选的,所述方法还包括:Optionally, the method further includes:
所述源探测节点确定所述结果是否属于范围;the source probe node determines whether the result is in scope;
当所述结果不属于所述范围时,所述源探测节点生成告警;When the result does not belong to the range, the source detection node generates an alarm;
所述源探测节点向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The source detection node sends the alarm to the control node so that the control node forwards the alarm.
可选的,optional,
所述源探测节点接收控制节点发送的测量指令,具体为:所述源探测节点接收源代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述源代理节点的;The source detection node receives the measurement instruction sent by the control node, specifically: the source detection node receives the measurement instruction forwarded by the source proxy node, where the measurement instruction is sent by the control node to the source proxy node ;
所述源探测节点向所述控制节点发送所述结果,具体为:所述源探测节点向所述源代理节点发送所述结果,以便所述源代理节点向所述控制节点发送所述结果。The source detection node sending the result to the control node is specifically: the source detection node sends the result to the source proxy node, so that the source proxy node sends the result to the control node.
可选的,optional,
所述源探测节点向所述控制节点发送所述告警,具体为:所述源探测节点向所述源代理节点发送所述告警,以便所述源代理节点向所述控制节点转发所述告警。The source detection node sending the alarm to the control node is specifically: the source detection node sends the alarm to the source proxy node, so that the source proxy node forwards the alarm to the control node.
可选的,所述方法还包括:Optionally, the method further includes:
所述源探测节点对所述测量指令进行验证,并在验证通过的情况下向所述目的探测节点发送所述探测请求报文;The source detection node verifies the measurement instruction, and sends the detection request message to the destination detection node when the verification is passed;
其中,所述测量指令是所述源代理节点签名之后转发给所述源探测节点的。The measurement instruction is forwarded to the source detection node after being signed by the source proxy node.
第五方面,本发明提供了一种测量网络性能的装置。所述装置部署有源探测节点。所述装置包括:In a fifth aspect, the present invention provides an apparatus for measuring network performance. The apparatus deploys active probe nodes. The device includes:
第一接收单元,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a first receiving unit, configured to receive a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client results of the performance of the link from the host to the destination virtual client;
第一发送单元,用于基于所述测量指令向目的探测节点发送探测请求报文;a first sending unit, configured to send a probe request message to the destination probe node based on the measurement instruction;
第二接收单元,用于接收所述目的探测节点发送的探测响应报文;a second receiving unit, configured to receive a probe response message sent by the destination probe node;
第一生成单元,用于根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;A first generating unit, configured to generate a result according to the probe request message and the probe response message, where the result is used to identify the performance of the link from the source probe node to the destination probe node, and the probe response reports The message is sent by the destination detection node corresponding to the detection request message;
第二发送单元,用于向所述控制节点发送所述结果,以便所述控制节点转发所述结果;a second sending unit, configured to send the result to the control node, so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求和所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, both the measurement request and the measurement instruction carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier used to identify the source virtual client to the destination virtual client. The type of indicator to which the link performance result belongs.
可选的,所述第一发送单元,具体用于:Optionally, the first sending unit is specifically used for:
根据所述测量指令中的所述类型,确定所述探测请求报文的发送方式;determining the sending mode of the probe request message according to the type in the measurement instruction;
按照所述发送方式,向所述目的探测节点发送所述探测请求报文。According to the sending manner, the probe request message is sent to the destination probe node.
可选的,optional,
所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。The source probe node is a process in the source virtual client, and the destination probe node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server.
可选的,所述装置还包括:Optionally, the device further includes:
确定单元,用于确定所述结果是否属于范围;a determination unit for determining whether the result belongs to a range;
第二生成单元,用于当所述结果不属于所述范围时,生成告警;a second generating unit, configured to generate an alarm when the result does not belong to the range;
第三发送单元,用于向所述控制节点发送所述告警,以便所述控制节点转发所述告警。A third sending unit, configured to send the alarm to the control node, so that the control node forwards the alarm.
可选的,optional,
所述第二接收单元,具体用于接收源代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述源代理节点的;The second receiving unit is specifically configured to receive the measurement instruction forwarded by the source proxy node, where the measurement instruction is sent by the control node to the source proxy node;
所述第二发送单元,具体用于向所述源代理节点发送所述结果,以便所述源代理节点向所述控制节点转发所述结果。The second sending unit is specifically configured to send the result to the source proxy node, so that the source proxy node forwards the result to the control node.
可选的,optional,
所述第三发送单元,具体用于向所述源代理节点发送所述告警,以便所述源代理节点向所述控制节点转发所述告警。The third sending unit is specifically configured to send the alarm to the source proxy node, so that the source proxy node forwards the alarm to the control node.
可选的,所述装置还包括:Optionally, the device further includes:
验证单元,用于对所述测量指令中的签名进行验证,所述测量指令是所述源代理节点签名之后转发给所述源探测节点的;a verification unit, configured to verify the signature in the measurement instruction, and the measurement instruction is forwarded to the source detection node after being signed by the source agent node;
触发单元,用于在验证通过的情况下触发所述第一发送单元。a triggering unit, configured to trigger the first sending unit when the verification is passed.
第六方面,本发明实施例提供了一种测量网络性能的方法。所述方法包括:In a sixth aspect, an embodiment of the present invention provides a method for measuring network performance. The method includes:
目的探测节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The destination detection node receives the measurement instruction sent by the control node, the measurement instruction is sent when the control node receives the measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to the destination virtual client. the results of the performance of the client's link;
所述目的探测节点接收源探测节点发送的探测请求报文;The destination detection node receives the detection request message sent by the source detection node;
所述目的探测节点基于所述测量指令向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点与所述目的探测节点的链路的性能,所述第一结果被所述控制节点用于转发;The destination detection node sends a detection response packet corresponding to the detection request packet to the source detection node based on the measurement instruction, and the detection request packet and the detection response packet are used by the source detection node to generate sending a first result to the control node, where the first result is used to identify the performance of the link between the source detection node and the destination detection node, and the first result is used by the control node for forwarding;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request and the measurement instruction both carry the identifier of the source virtual client and the identifier of the destination virtual client, and the measurement request is used to instruct the control node to feed back for the identifier. The type of metric that the result of the performance of the link from the source virtual client to the destination virtual client belongs to.
可选的,optional,
所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。The source probe node is a process in the source virtual client, and the destination probe node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的探测节点根据所述探测请求报文生成第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;generating, by the destination detection node, a second result according to the detection request message, where the second result is used to identify the performance of the link from the source detection node to the destination detection node;
所述目的探测节点向所述控制节点发送所述第二结果,以便所述控制节点转发所述第二结果。The destination detection node sends the second result to the control node, so that the control node forwards the second result.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的探测节点确定所述第二结果是否属于范围;the destination detection node determines whether the second result belongs to a range;
当所述第二结果不属于所述范围时,所述目的探测节点生成告警;When the second result does not belong to the range, the destination detection node generates an alarm;
所述目的探测节点向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The destination detection node sends the alarm to the control node, so that the control node forwards the alarm.
可选的,optional,
所述目的探测节点接收所述控制节点发送的测量指令,具体为:所述目的探测节点接收目的代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述目的代理节点。The destination detection node receives the measurement instruction sent by the control node, specifically: the destination detection node receives the measurement instruction forwarded by the destination proxy node, where the measurement instruction is sent by the control node to the destination proxy node.
可选的,optional,
所述目的探测节点向所述控制节点发送所述第二结果,具体为:所述目的探测节点向所述目的代理节点发送所述结果,以便所述目的代理节点向所述控制节点转发所述第二结果。The destination detection node sends the second result to the control node, specifically: the destination detection node sends the result to the destination proxy node, so that the destination proxy node forwards the result to the control node Second result.
可选的,optional,
所述目的探测节点向所述控制节点发送所述告警,具体为:所述目的探测节点向所述目的代理节点发送所述告警,以便所述目的代理节点向所述控制节点转发所述告警。The destination detection node sends the alarm to the control node, specifically: the destination detection node sends the alarm to the destination proxy node, so that the destination proxy node forwards the alarm to the control node.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的探测节点对所述测量指令进行验证,并在验证通过的情况下接收所述源探测节点发送的所述探测请求报文;The destination detection node verifies the measurement instruction, and receives the detection request message sent by the source detection node when the verification is passed;
其中,所述测量指令是所述目的代理节点签名之后转发给所述目的探测节点的。The measurement instruction is forwarded to the destination detection node after being signed by the destination proxy node.
第七方面,本发明实施例提供了一种测量网络性能的装置。所述装置部署有目的探测节点。所述装置包括:In a seventh aspect, an embodiment of the present invention provides an apparatus for measuring network performance. The apparatus deploys purposeful probe nodes. The device includes:
第一接收单元,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a first receiving unit, configured to receive a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client results of the performance of the link from the host to the destination virtual client;
第二接收单元,用于接收源探测节点发送的探测请求报文;a second receiving unit, configured to receive the probe request message sent by the source probe node;
返回单元,用于基于所述测量指令向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,第一结果用于标识所述源探测节点到所述目的探测节点之间的链路的性能,第一结果被所述控制节点用于转发;A returning unit, configured to send a probe response packet corresponding to the probe request packet to the source probe node based on the measurement instruction, where the probe request packet and the probe response packet are used by the source probe node generating a first result and sending it to the control node, where the first result is used to identify the performance of the link between the source detection node and the destination detection node, and the first result is used by the control node for forwarding;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request and the measurement instruction both carry the identifier of the source virtual client and the identifier of the destination virtual client, and the measurement request is used to instruct the control node to feed back for the identifier. The type of metric that the result of the performance of the link from the source virtual client to the destination virtual client belongs to.
可选的,optional,
所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。The source probe node is a process in the source virtual client, and the destination probe node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,所述装置还包括:Optionally, the device further includes:
第一生成单元,用于根据所述探测请求报文生成第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;a first generating unit, configured to generate a second result according to the probe request message, where the second result is used to identify the performance of the link from the source probe node to the destination probe node;
第一发送单元,用于向所述控制节点发送所述第二结果,以便所述控制节点转发所述第二结果。A first sending unit, configured to send the second result to the control node, so that the control node forwards the second result.
可选的,所述装置还包括:Optionally, the device further includes:
确定单元,用于确定所述第二结果是否属于范围;a determining unit, configured to determine whether the second result belongs to a range;
第二生成单元,用于当所述第二结果不属于所述范围时,生成告警;a second generating unit, configured to generate an alarm when the second result does not belong to the range;
第二发送单元,用于向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The second sending unit is configured to send the alarm to the control node, so that the control node forwards the alarm.
可选的,optional,
所述第一接收单元,具体用于接收目的代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述目的代理节点。The first receiving unit is specifically configured to receive the measurement instruction forwarded by a destination proxy node, where the measurement instruction is sent by the control node to the destination proxy node.
可选的,optional,
所述第一发送单元,具体用于向所述目的代理节点发送所述第二结果,以便所述目的代理节点向所述控制节点转发所述第二结果。The first sending unit is specifically configured to send the second result to the destination proxy node, so that the destination proxy node forwards the second result to the control node.
可选的,optional,
所述第二发送单元,具体用于向所述目的代理节点发送所述告警,以便所述目的代理节点向所述控制节点转发所述告警。The second sending unit is specifically configured to send the alarm to the destination proxy node, so that the destination proxy node forwards the alarm to the control node.
可选的,所述装置还包括:Optionally, the device further includes:
验证单元,用于对所述测量指令进行验证,所述测量指令是所述目的代理节点签名之后转发给所述目的探测节点的;a verification unit, configured to verify the measurement instruction, the measurement instruction is forwarded to the destination detection node after being signed by the destination proxy node;
触发单元,用于在验证通过的情况下触发所述第二接收单元。a triggering unit, configured to trigger the second receiving unit when the verification is passed.
第八方面,本发明实施例提供了一种测量网络性能的方法。所述方法包括:In an eighth aspect, an embodiment of the present invention provides a method for measuring network performance. The method includes:
源代理节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The source proxy node receives the measurement instruction sent by the control node, the measurement instruction is sent when the control node receives the measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to the destination virtual client. the results of the performance of the client's link;
所述源代理节点向源探测节点转发所述测量指令,以指示所述源探测节点向目的探测节点发送探测请求报文、接收所述目的探测节点发送的探测响应报文并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;The source proxy node forwards the measurement instruction to the source probe node, so as to instruct the source probe node to send a probe request message to the destination probe node, receive a probe response message sent by the destination probe node, and execute the probe request message according to the probe request. packet and the detection response packet generation result, the result is used to identify the performance of the link between the source detection node and the destination detection node, and the detection response packet is the destination detection node corresponding to the Probe request message sent;
所述源代理节点接收所述源探测节点发送的所述结果;receiving, by the source proxy node, the result sent by the source detection node;
所述源代理节点向所述控制节点转发所述结果,以便所述控制节点转发所述结果;the source proxy node forwards the result to the control node so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述方法还包括:Optionally, the method further includes:
所述源代理节点接收所述源探测节点发送的告警,所述告警是所述源探测节点在确定所述结果不属于范围时生成的;receiving, by the source proxy node, an alarm sent by the source detection node, where the alarm is generated by the source detection node when it is determined that the result does not belong to the scope;
所述源代理节点向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The source proxy node forwards the alarm to the control node so that the control node forwards the alarm.
可选的,在所述源代理节点向源探测节点转发所述测量指令之前,所述方法还包括:Optionally, before the source proxy node forwards the measurement instruction to the source detection node, the method further includes:
所述源代理节点对所述测量指令中进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The source proxy node signs the measurement instruction; the signed measurement instruction is used for verification by the source detection node and sends the detection request message to the destination detection node when the verification is passed.
可选的,所述源代理节点是源物理服务器中的一个进程;Optionally, the source agent node is a process in the source physical server;
在所述源代理节点接收所述测量指令之前,所述方法还包括:Before the source proxy node receives the measurement instruction, the method further includes:
所述源代理节点接收所述控制节点发送的控制信息;receiving, by the source agent node, the control information sent by the control node;
所述源代理节点基于所述控制信息在所述源物理服务器中创建虚拟机和所述源探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。The source proxy node creates a virtual machine and the source detection node in the source physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
第九方面,本发明实施例提供了一种测量网络性能的装置。所述装置配置有源代理节点。所述装置包括:In a ninth aspect, an embodiment of the present invention provides an apparatus for measuring network performance. The apparatus is configured with an active proxy node. The device includes:
第一接收单元,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a first receiving unit, configured to receive a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client results of the performance of the link from the host to the destination virtual client;
第一转发单元,用于向所述源探测节点转发所述测量指令,以指示所述源探测节点向目的探测节点发送探测请求报文、接收所述目的探测节点发送的探测响应报文并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;A first forwarding unit, configured to forward the measurement instruction to the source detection node, so as to instruct the source detection node to send a detection request message to the destination detection node, receive a detection response message sent by the destination detection node, and according to the The probe request packet and the probe response packet are generated, the results are used to identify the performance of the link between the source probe node and the destination probe node, and the probe response packet is the destination probe Sent by the node corresponding to the probe request message;
第二接收单元,接收所述源探测节点发送的所述结果;a second receiving unit, receiving the result sent by the source detection node;
第二转发单元,用于向所述控制节点转发所述结果,以便所述控制节点转发所述结果;a second forwarding unit, configured to forward the result to the control node, so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述装置还包括:Optionally, the device further includes:
第三接收单元,用于接收所述源探测节点发送的告警,所述告警是所述源探测节点在确定所述结果不属于范围时生成的;a third receiving unit, configured to receive an alarm sent by the source detection node, where the alarm is generated by the source detection node when it is determined that the result does not belong to the range;
第三转发单元,用于向所述控制节点转发所述告警,以便所述控制节点转发所述告警。A third forwarding unit, configured to forward the alarm to the control node, so that the control node forwards the alarm.
可选的,所述装置还包括:Optionally, the device further includes:
签名单元,用于在向所述源探测节点发送所述测量指令之前,对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The signature unit is used to sign the measurement instruction before sending the measurement instruction to the source detection node; the signed measurement instruction is used for verification by the source detection node and is sent to the source detection node when the verification is passed. The destination detection node sends the detection request message.
可选的,所述源代理节点是源物理服务器中的一个进程;Optionally, the source agent node is a process in the source physical server;
所述装置还包括:The device also includes:
第四接收单元,用于接收所述控制节点发送的控制信息;a fourth receiving unit, configured to receive the control information sent by the control node;
创建单元,用于在接收所述测量指令之前,基于所述控制信息在所述源物理服务器中创建虚拟机和所述源探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A creation unit, configured to create a virtual machine and the source detection node in the source physical server based on the control information before receiving the measurement instruction, wherein the source detection node is the first virtual machine A process in the virtual machine and the source virtual client are two virtual machines located on the source physical server.
第十方面,本发明实施例提供了一种测量网络性能的方法。所述方法包括:In a tenth aspect, an embodiment of the present invention provides a method for measuring network performance. The method includes:
目的代理节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The destination proxy node receives the measurement instruction sent by the control node, the measurement instruction is sent when the control node receives the measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to the destination virtual client. the results of the performance of the client's link;
所述目的代理节点向目的探测节点转发所述测量指令,以指示所述目的探测节点接收源探测节点发送的探测请求报文并向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,第一结果被所述控制节点用于转发;The destination proxy node forwards the measurement instruction to the destination probe node, so as to instruct the destination probe node to receive the probe request message sent by the source probe node and send a probe response corresponding to the probe request message to the source probe node message, the probe request message and the probe response message are used by the source probe node to generate a first result and send it to the control node, where the first result is used to identify the source probe node to the the performance of the link of the destination detection node, and the first result is used for forwarding by the control node;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的代理节点接收所述目的探测节点发送的第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;The destination proxy node receives a second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the source detection node the performance of the link from the node to the destination probe node;
所述目的代理节点向所述控制节点转发所述第二结果,以便所述控制节点转发所述第二结果。The destination proxy node forwards the second result to the control node so that the control node forwards the second result.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的代理节点接收所述目的探测节点发送的告警,所述告警是所述目的探测节点在确定所述第二结果不属于范围时生成的;receiving, by the destination proxy node, an alarm sent by the destination detection node, where the alarm is generated by the destination detection node when it is determined that the second result does not belong to the scope;
所述目的代理节点向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The destination proxy node forwards the alarm to the control node, so that the control node forwards the alarm.
可选的,在所述目的代理节点向目的探测节点转发所述测量指令之前,所述方法还包括:Optionally, before the destination proxy node forwards the measurement instruction to the destination detection node, the method further includes:
所述目的代理节点对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The destination proxy node signs the measurement instruction; the signed measurement instruction is used for verification by the source detection node and sends the detection request message to the destination detection node when the verification is passed.
可选的,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the destination proxy node is a process in the destination physical server;
在所述目的代理节点接收所述测量指令之前,所述方法还包括:Before the destination proxy node receives the measurement instruction, the method further includes:
所述目的代理节点接收所述控制节点发送的控制信息;receiving, by the destination proxy node, the control information sent by the control node;
所述目的代理节点基于所述控制信息在所述目的物理服务器中创建虚拟机和所述目的探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。The destination proxy node creates a virtual machine and the destination detection node in the destination physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
第十一方面,本发明实施例提供了一种测量网络性能的装置。所述装置部署有目的代理节点。所述装置包括:In an eleventh aspect, an embodiment of the present invention provides an apparatus for measuring network performance. The apparatus is deployed with a destination proxy node. The device includes:
第一接收单元,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a first receiving unit, configured to receive a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client results of the performance of the link from the host to the destination virtual client;
第一转发单元,用于向目的探测节点转发所述测量指令,以指示所述目的探测节点接收源探测节点发送的探测请求报文并向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,第一结果被所述控制节点用于转发;The first forwarding unit is configured to forward the measurement instruction to the destination detection node, so as to instruct the destination detection node to receive the detection request message sent by the source detection node and to send the source detection node corresponding to the detection request message. A probe response message, where the probe request message and the probe response message are used by the source probe node to generate a first result and send it to the control node, where the first result is used to identify the source probe the performance of the link from the node to the destination detection node, and the first result is used for forwarding by the control node;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述装置还包括:Optionally, the device further includes:
第二接收单元,用于接收所述目的探测节点发送的第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;A second receiving unit, configured to receive a second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the the performance of the link from the source probe node to the destination probe node;
第二转发单元,用于向所述控制节点转发所述第二结果,以便所述控制节点转发所述第二结果。A second forwarding unit, configured to forward the second result to the control node, so that the control node forwards the second result.
可选的,所述装置还包括:Optionally, the device further includes:
第三接收单元,用于接收所述目的探测节点发送的告警,所述告警是所述目的探测节点在确定所述第二结果不属于范围时生成的;a third receiving unit, configured to receive an alarm sent by the destination detection node, where the alarm is generated by the destination detection node when it is determined that the second result does not belong to the range;
第三转发单元,用于向所述控制节点转发所述告警,以便所述控制节点转发所述告警。A third forwarding unit, configured to forward the alarm to the control node, so that the control node forwards the alarm.
可选的,所述装置还包括:Optionally, the device further includes:
签名单元,用于在向目的探测节点发送所述测量指令之前,对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。a signature unit, configured to sign the measurement instruction before sending the measurement instruction to the destination detection node; the signed measurement instruction is used for verification by the source detection node and is sent to the destination if the verification is passed The detection node sends the detection request message.
可选的,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the destination proxy node is a process in the destination physical server;
所述装置还包括:The device also includes:
第四接收单元,用于接收所述控制节点发送的控制信息;a fourth receiving unit, configured to receive the control information sent by the control node;
创建单元,用于基于所述控制信息在所述目的物理服务器中创建虚拟机和所述目的探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A creation unit, configured to create a virtual machine and the destination detection node in the destination physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
与现有技术相比,本发明实施例至少具有以下优点:Compared with the prior art, the embodiments of the present invention have at least the following advantages:
在本发明实施例的技术方案中,控制节点接收到用于指示该控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果的测量请求时,向源探测节点和目的探测节点发送测量指令。在测量指令的指示下,源探测节点向目的探测节点发送探测请求报文,目的探测节点向源探测节点发送对应探测请求报文的探测响应报文,源探测节点根据探测请求报文和探测响应报文生成网络测量的结果并向控制节点发送该结果。该结果用于标识源探测节点到目的探测节点的链路的性能。控制节点则可以以该结果作为测量请求对应的结果进行转发,从而完成源虚拟客户机与目的虚拟客户机之间的网络性能的测量。其中,源虚拟客户机、源探测节点、源虚拟交换机均位于源物理服务器上,目的虚拟客户机、目的探测节点、目的虚拟交换机均位于目的物理服务器上,源虚拟客户机与目的虚拟客户间之间的通信需要通过源虚拟交换机和目的虚拟交换机,源探测节点与目的探测节点之间的通信需要通过源虚拟交换机和目的虚拟交换机。由此可见,测量人员通过向控制节点发起测量请求就可以获得虚拟客户机之间的网络性能的测量结果,而不必在被测量的虚拟客户机上手动操作,这样就简化了测量人员在网络性能测量过程中的手动操作,从而使得测量人员能够更简便地测量网络性能。尤其是,在提供有大量虚拟客户机的云计算服务的数据中心中,测量人员可以按照需求灵活地向控制节点发起针对不同的虚拟客户机的测量请求并获得相应的测量结果,因此,云计算服务的数据中心能够实现按照需求灵活地对虚拟客户机之间的网络性能进行测量,因此,测量人员就能够方便灵活地了解到虚拟客户机之间的网络性能情况。In the technical solution of the embodiment of the present invention, when the control node receives a measurement request for instructing the control node to feed back a result used to identify the performance of the link between the source virtual client and the destination virtual client, the control node sends a request to the source detection node and the destination virtual client. The destination detection node sends a measurement command. Under the instruction of the measurement command, the source detection node sends a detection request message to the destination detection node, and the destination detection node sends a detection response message corresponding to the detection request message to the source detection node. The message generates the result of the network measurement and sends the result to the control node. The result is used to identify the performance of the link from the source probe node to the destination probe node. The control node can forward the result as a result corresponding to the measurement request, so as to complete the measurement of the network performance between the source virtual client and the destination virtual client. The source virtual client, the source detection node, and the source virtual switch are all located on the source physical server, and the destination virtual client, the destination detection node, and the destination virtual switch are all located on the destination physical server. The communication between them needs to pass through the source virtual switch and the destination virtual switch, and the communication between the source detection node and the destination detection node needs to pass through the source virtual switch and the destination virtual switch. It can be seen that the measurement personnel can obtain the measurement results of the network performance between the virtual clients by initiating a measurement request to the control node, without having to manually operate on the virtual clients to be measured, which simplifies the network performance measurement for the measurement personnel. Manual operation in the process, making it easier for measurement personnel to measure network performance. In particular, in a data center that provides cloud computing services with a large number of virtual clients, measurement personnel can flexibly initiate measurement requests for different virtual clients to control nodes and obtain corresponding measurement results according to their needs. Therefore, cloud computing The service data center can flexibly measure the network performance between the virtual clients according to the requirements, so the measurement personnel can easily and flexibly learn the network performance between the virtual clients.
此外,在本发明实施例中,由于源探测节点与源虚拟客户机位于同一物理服务器并且均通过源虚拟交换机与外界通信,目的探测节点与目的虚拟客户机位于同一物理服务器并且均通过目的虚拟交换机与外界通信,相对于源物理路由器与目的物理服务器之间探测报文的传输过程,源探测节点与目的探测节点之间探测报文的传输过程和源虚拟客户机与目的虚拟客户机之间报文的传输过程,均不仅包括了报文在物理路由器之间传输的处理过程而且也包括了报文在物理服务器内部的处理过程。因此,源探测节点与目的探测节点之间探测报文的传输过程更接近于源虚拟客户机与目的虚拟客户机之间报文的传输过程。可见,相对于通过源物理路由器与目的物理服务器之间传输探测报文而得到的测量结果,通过源探测节点与目的探测节点之间传输探测报文而得到的测量结果所标识出的网络性能更接近于源虚拟客户机与目的虚拟客户机之间的真实网络性能。In addition, in this embodiment of the present invention, since the source detection node and the source virtual client are located on the same physical server and both communicate with the outside world through the source virtual switch, the destination detection node and the destination virtual client are located on the same physical server and both pass through the destination virtual switch. For communication with the outside world, compared with the transmission process of detection packets between the source physical router and the destination physical server, the transmission process of detection packets between the source detection node and the destination detection node and the transmission process of detection packets between the source virtual client and the destination virtual client The transmission process of the packet not only includes the processing process of the packet transmission between physical routers, but also includes the processing process of the packet inside the physical server. Therefore, the transmission process of the probe packet between the source detection node and the destination detection node is closer to the transmission process of the packet between the source virtual client and the destination virtual client. It can be seen that compared with the measurement results obtained by transmitting probe packets between the source physical router and the destination physical server, the network performance identified by the measurement results obtained by transmitting probe packets between the source detection node and the destination detection node is better. Approach the real network performance between the source virtual guest and the destination virtual guest.
此外,本发明实施例中,控制节点可以向源探测节点和目的探测节点发出测量指令,并通过控制节点接收测量结果,可见,测量人员仅需与控制节点交互就能够获得测量结果,而不必在物理路由器上手动配置发送、接收、处理探测报文的功能,因此,网络性能测量的技术实现更为容易和灵活。In addition, in the embodiment of the present invention, the control node can send measurement instructions to the source detection node and the destination detection node, and receive the measurement result through the control node. It can be seen that the measurement personnel can obtain the measurement result only by interacting with the control node, without having to The functions of sending, receiving, and processing probe packets are manually configured on the physical router. Therefore, the technical implementation of network performance measurement is easier and more flexible.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
图1为本发明实施例提供的一应用场景所涉及的系统框架示意图;1 is a schematic diagram of a system framework involved in an application scenario provided by an embodiment of the present invention;
图2为本发明实施例中一种测量网络性能的系统的结构示意图;FIG. 2 is a schematic structural diagram of a system for measuring network performance in an embodiment of the present invention;
图3为本发明实施例中一种测量网络性能的系统的结构示意图;3 is a schematic structural diagram of a system for measuring network performance in an embodiment of the present invention;
图4为本发明实施例的系统适用的一种网络架构示意图;4 is a schematic diagram of a network architecture to which the system according to an embodiment of the present invention is applicable;
图5为本发明实施例的系统适用的一种网络架构示意图;5 is a schematic diagram of a network architecture to which the system according to an embodiment of the present invention is applicable;
图6为本发明实施例中一种测量网络性能的方法的流程示意图;6 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图7为本发明实施例中一种测量网络性能的方法的流程示意图;7 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图8为本发明实施例中一种测量网络性能的方法的流程示意图;FIG. 8 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图9为本发明实施例中一种测量网络性能的方法的流程示意图;FIG. 9 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图10为本发明实施例中一种测量网络性能的方法的流程示意图;10 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图11为本发明实施例中一种测量网络性能的方法的流程示意图;11 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图12为本发明实施例中一种测量网络性能的方法的流程示意图;12 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention;
图13为本发明实施例中一种测量网络性能的装置的结构示意图;13 is a schematic structural diagram of an apparatus for measuring network performance according to an embodiment of the present invention;
图14为本发明实施例中一种测量网络性能的装置的结构示意图;14 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention;
图15为本发明实施例中一种测量网络性能的装置的结构示意图;15 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention;
图16为本发明实施例中一种测量网络性能的装置的结构示意图;16 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention;
图17为本发明实施例中一种测量网络性能的装置的结构示意图;17 is a schematic structural diagram of an apparatus for measuring network performance according to an embodiment of the present invention;
图18为本发明实施例中一种物理服务器的结构示意图;18 is a schematic structural diagram of a physical server in an embodiment of the present invention;
图19为本发明实施例中一种物理服务器的结构示意图;19 is a schematic structural diagram of a physical server in an embodiment of the present invention;
图20为本发明实施例中一种物理服务器的结构示意图;20 is a schematic structural diagram of a physical server in an embodiment of the present invention;
图21为本发明实施例中一种物理服务器的结构示意图;21 is a schematic structural diagram of a physical server in an embodiment of the present invention;
图22为本发明实施例中一种物理服务器的结构示意图。FIG. 22 is a schematic structural diagram of a physical server in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。In order to enable those skilled in the art to better understand the solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments.
目前,云计算服务已成为网络发展的热点。在云计算服务中,集成有大量服务器的数据中心为用户提供计算资源及网络资源。在数据中心中,服务器通常采用虚拟化技术。具体地,一个物理服务器通过虚拟化技术被虚拟成了多个逻辑计算机,每一个逻辑计算机即是物理服务器上的一个虚拟机(Virtual Machine,简称VM),其中,每个虚拟机可以运行不同的操作系统,因此,各个虚拟机的应用程序可以运行在互相独立的操作系统的空间内。物理服务器上的虚拟机通常包括有虚拟客户机和虚拟交换机。其中,虚拟客户机是用于提供给用户使用的虚拟机。不同的虚拟客户机之间需要通过虚拟交换机传输流量。At present, cloud computing services have become a hot spot in network development. In cloud computing services, a data center integrated with a large number of servers provides users with computing resources and network resources. In a data center, servers are usually virtualized. Specifically, a physical server is virtualized into multiple logical computers through virtualization technology, and each logical computer is a virtual machine (Virtual Machine, VM for short) on the physical server, wherein each virtual machine can run different The operating system, therefore, the applications of each virtual machine can run in the space of the operating system independent of each other. Virtual machines on physical servers usually include virtual clients and virtual switches. The virtual client is a virtual machine provided to the user. Traffic between different virtual clients needs to be transmitted through virtual switches.
发明人经过研究发现,随着云计算服务的发展,服务提供方和服务使用方都具有了解虚拟客户机之间网络性能的需求。通常,云计算服务的数据中心提供有大量的虚拟客户机,测量人员需要测量不同的虚拟客户机之间的网络性能。但是,在网络性能的传统测量技术下,测量人员需要按照需求在不同的虚拟客户机上手动编写和触发ping命令,这样的操作过于繁琐和复杂。因此,传统的数据中心还无法实现按照需求灵活地测量虚拟客户机之间的网络性能并反馈测量结果,测量人员难以简便灵活地了解到虚拟客户机之间的网络性能情况。此外,为了测量物理路由器之间的网络性能,测量人员在物理路由器上配置发送、接收和处理探测报文的功能,物理路由器之间可以通过传输探测报文来测量物理路由器之间的网络性能。但是,虚拟客户机之间传输报文时,报文除了需要在物理路由器之间传输之外,还需要在物理服务器内部经过虚拟客户机与虚拟交换机之间的传输以及虚拟交换机的转发处理,也即,虚拟客户机之间报文的传输过程不仅包括报文在物理路由器之间传输的处理过程也包括报文在物理路由器内部的处理过程。可见,通过物理路由器之间传输探测报文而得到的测量结果无法反映出报文在物理服务器内部处理时的网络性能,因此该测量结果并不能真实反映虚拟客户机之间的网络性能。The inventor found through research that, with the development of cloud computing services, both the service provider and the service user need to know the network performance between virtual clients. Usually, the data center of cloud computing service provides a large number of virtual clients, and the measurement personnel need to measure the network performance between different virtual clients. However, under the traditional measurement technology of network performance, the measurement personnel need to manually write and trigger ping commands on different virtual clients as required, which is too cumbersome and complicated. Therefore, traditional data centers cannot flexibly measure the network performance between virtual clients and feed back the measurement results according to requirements, and it is difficult for measurement personnel to easily and flexibly understand the network performance between virtual clients. In addition, in order to measure the network performance between physical routers, the measurement personnel configure the functions of sending, receiving, and processing probe packets on the physical routers. The physical routers can transmit probe packets to measure the network performance between physical routers. However, when a message is transmitted between virtual clients, in addition to being transmitted between physical routers, the message also needs to be transmitted between the virtual client and the virtual switch and forwarded by the virtual switch within the physical server. That is, the packet transmission process between virtual clients includes not only the processing process of the packet transmission between the physical routers, but also the processing process of the packet inside the physical router. It can be seen that the measurement result obtained by transmitting probe packets between physical routers cannot reflect the network performance when the packets are processed inside the physical server, so the measurement result cannot truly reflect the network performance between virtual clients.
为了解决现有技术的上述问题,本发明实施例提供了一种测量网络性能的方法、装置及系统。其中,网络中部署有控制节点(Master)和与虚拟客户机对应的探测节点(Probe),探测节点与相应的虚拟客户机位于同一物理服务器且通过同一虚拟交换机与外界通信。控制节点为测量人员提供了按需测量虚拟客户机之间网络性能的接口,用于接收测量人员的终端发送的测量请求并向相应的探测节点发送测量指令,以及,用于接收探测节点返回的测量结果并转发给测量人员的终端。其中,探测节点发送的测量结果是通过探测节点之间传输探测报文而测量到的。由此可见,一方面,测量人员可以通过测量请求按照需求灵活地指定需要被测量的虚拟客户机,控制节点可以根据测量请求灵活地选择相应的探测节点,从而获得符合需求的虚拟客户机之间的网络性能的测量结果并向测量人员反馈,这样测量人员就不必在被测量的虚拟客户机上手动操作,从而减少了测量人员测量网络性能需要手动操作的设备,简化了测量人员在网络性能测量过程中的手动操作,从而使得测量人员能够更简便地测量网络性能。因此,数据中心能够按照需求灵活地对虚拟客户机之间的网络性能进行测量并反馈测量结果,测量人员能够方便灵活地了解到虚拟客户机之间的网络性能情况。另一方面,由于探测节点与相应的虚拟客户机位于同一物理服务器并且均通过同一虚拟交换机与外界通信,探测节点之间传输报文的过程与相应的虚拟客户机之间传输报文的过程是非常接近甚至相同的,这两个过程都既包含了物理路由器之间传输报文的处理过程也包含了在物理服务器内部虚拟机之间传输报文的处理过程,因此,通过与虚拟客户机对应的探测节点之间传输探测报文而得到的测量结果更接近地反映出虚拟机所在网络环境的真实网络性能。In order to solve the above problems in the prior art, the embodiments of the present invention provide a method, an apparatus, and a system for measuring network performance. A control node (Master) and a probe node (Probe) corresponding to the virtual client are deployed in the network, and the probe node and the corresponding virtual client are located on the same physical server and communicate with the outside world through the same virtual switch. The control node provides the measurement personnel with an interface to measure the network performance between virtual clients on demand, and is used to receive the measurement request sent by the measurement personnel's terminal and send the measurement instruction to the corresponding probe node, and to receive the data returned by the probe node. The measurement results are forwarded to the measurement personnel's terminal. The measurement results sent by the detection nodes are measured by transmitting detection packets between the detection nodes. It can be seen that, on the one hand, the measurement personnel can flexibly specify the virtual client to be measured according to the requirements through the measurement request, and the control node can flexibly select the corresponding probe node according to the measurement request, so as to obtain the virtual client that meets the requirements. The measurement results of the network performance are fed back to the measurement personnel, so that the measurement personnel do not have to manually operate on the virtual client to be measured, thereby reducing the equipment that the measurement personnel need to manually operate to measure the network performance, and simplifying the measurement personnel in the network performance measurement process. This makes it easier for measurement personnel to measure network performance. Therefore, the data center can flexibly measure the network performance between the virtual clients and feed back the measurement results according to the requirements, and the measurement personnel can easily and flexibly learn the network performance between the virtual clients. On the other hand, since the detection node and the corresponding virtual client are located on the same physical server and communicate with the outside world through the same virtual switch, the process of transmitting packets between the detection nodes and the process of transmitting packets between the corresponding virtual clients is as follows: Very close or even the same, these two processes include both the processing of transmitting packets between physical routers and the processing of transmitting packets between virtual machines inside the physical server. Therefore, by corresponding to the virtual client The measurement results obtained by transmitting detection packets between the detection nodes more closely reflect the real network performance of the network environment where the virtual machine is located.
需要说明的是,本文提及的术语“测量人员”,是指测量网络性能的功能的使用者。例如,测量人员可以是虚拟客户机的使用者,或者也可以是云计算服务的提供方的技术人员。“测量人员的终端”表示的是可与测量人员交互且可与控制节点交互的任意一种设备,该设备可以向控制节点发送测量请求并接收控制节点发送的测量结果。术语“虚拟客户机”,是指用于提供给用户作为用户终端设备使用的虚拟机(Virtual Machine,简称VM),这里的“用户”表示云计算服务提供的虚拟客户机的使用者。术语“虚拟交换机”,是指用于为虚拟客户机提供报文转发功能的虚拟机,如开放虚拟交换机(Open Virtual Switch,简称OVS)等。其中,虚拟客户机与虚拟交换机均部署于物理服务器中,两者是物理服务器中提供不同功能的虚拟机。此外,本文提及的“物理服务器”、“物理设备”等名称中的“物理”,表示该名称的设备为物理的、实体的、硬件的设备。本文提及的“虚拟客户机”、“虚拟交换机”等名称中的“虚拟”,表示该名称的设备为在物理设备上通过虚拟化技术虚拟出的设备。It should be noted that the term "measurer" mentioned in this document refers to a user of the function of measuring network performance. For example, a surveyor may be a user of a virtual client, or may also be a technician of a provider of cloud computing services. The "terminal of the surveyor" refers to any device that can interact with the surveyor and the control node, and the device can send a measurement request to the control node and receive the measurement result sent by the control node. The term "virtual client" refers to a virtual machine (Virtual Machine, VM for short) that is provided to a user as a user terminal device, and the "user" here refers to the user of the virtual client provided by the cloud computing service. The term "virtual switch" refers to a virtual machine for providing a packet forwarding function for a virtual client, such as an Open Virtual Switch (Open Virtual Switch, OVS for short). The virtual client and the virtual switch are both deployed in the physical server, and the two are virtual machines that provide different functions in the physical server. In addition, the "physical" in the names such as "physical server" and "physical device" mentioned in this document indicates that the device of the name is a physical, physical, and hardware device. The "virtual" in the names such as "virtual client" and "virtual switch" mentioned in this article indicates that the device with this name is a device virtualized by the virtualization technology on the physical device.
举例说明,本发明实施例的应用场景之一,可以应用到图1所示的网络系统中。在该网络系统中,控制节点101位于物理服务器108中,探测节点102、虚拟客户机104和虚拟交换机106均位于物理服务器109中,探测节点103、虚拟客户机105和虚拟交换机107均位于物理服务器110中。其中,探测节点102与虚拟客户机104均通过虚拟交换机106与外界通信,探测节点103和虚拟客户机105均通过虚拟交换机107与外界通信,物理服务器108通过物理路由器111与外界通信,物理服务器109通过物理路由器112与外界通信,物理服务器110通过物理路由器113与外界通信。在网络性能测量的过程中,控制节点101接收用于指示所述控制节点反馈用于标识虚拟客户机104到虚拟客户机105的链路的性能的结果的测量请求,向探测节点102发送第一测量指令并向探测节点103发送第二测量指令。探测节点102基于第一测量指令向探测节点103发送探测请求报文。探测节点103接收探测节点102发送的探测请求报文并基于第二测试指令向探测节点102发送对应探测请求报文的探测响应报文。探测节点102接收探测节点103发送的探测请求报文并根据探测请求报文和探测响应报文生成用于标识探测节点102到探测节点103的链路的性能的结果,向控制节点101发送所述结果。控制节点101以所述结果,转发所述结果。可以理解的是,在上述信息交互方式中,探测节点102相当于源探测节点,探测节点103相当于目的探测节点。相应地,虚拟客户机103相当于源虚拟客户机,虚拟客户机104相当于目的虚拟客户机。从图1中可以看出,相对于物理路由器112与物理路由器113之间探测报文的传输路径,探测节点102与探测节点103之间探测报文的传输路径更接近于虚拟客户机104与虚拟客户机105之间报文的传输路径,因此,通过探测节点102与探测节点103之间传输探测报文而得到的测量结果,能够更加准确地反映出虚拟客户机102到虚拟客户机103的链路的性能。For example, one of the application scenarios of the embodiments of the present invention can be applied to the network system shown in FIG. 1 . In this network system, the
在实际应用中,测量请求涉及的虚拟客户机103与虚拟客户机105,可以位于不同物理服务器,即物理服务器109和物理服务器110可以是两个不同的物理服务器。或者,测量请求涉及的虚拟客户机103与虚拟客户机105,也可以位于同一物理服务器,即物理服务器109和物理服务器110也可以是同一物理服务器。此外,控制节点101可以位于网络系统中的任意物理服务器上。也即,具有控制节点101的物理服务器108,可以与物理服务器109是同一物理服务器,或者也可以与物理服务器110是同一物理服务器,或者还可以是与物理服务器109、物理服务器110都不同的另一物理服务器。In practical applications, the
需要注意的是,上述应用场景仅是为了便于理解本发明的原理而示出,不用于限定本发明实施例提供的技术方案。It should be noted that the above application scenarios are only shown to facilitate understanding of the principles of the present invention, and are not used to limit the technical solutions provided by the embodiments of the present invention.
下面结合附图,通过实施例来详细说明本发明中测量网络性能的方法、装置和系统的实现方式。The implementation manner of the method, device and system for measuring network performance in the present invention will be described in detail below with reference to the accompanying drawings.
图2为本发明实施例中一种测量网络性能的系统的结构示意图。在本实施例中,所述系统例如可以包括:FIG. 2 is a schematic structural diagram of a system for measuring network performance in an embodiment of the present invention. In this embodiment, the system may include, for example:
控制节点201,用于接收测量请求,向源探测节点202发送第一测量指令,向目的探测节点203发送第二测量指令,接收所述源探测节点202发送的第一结果,以及,转发所述第一结果,其中,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The
所述源探测节点202,用于接收所述控制节点发送的第一测量指令,基于所述第一测量指令向目的探测节点203发送探测请求报文,接收所述目的探测节点203发送的探测响应报文,根据所述探测请求报文和所述探测响应报文生成第一结果,以及,发送所述第一结果,所述第一结果用于标识所述源探测节点202与所述目的探测节点203的链路的性能;The
所述目的探测节点203,用于接收所述控制节点201发送的第二测量指令,接收所述源探测节点201发送的所述探测请求报文,以及,基于所述第二测量指令向所述源探测节点202发送对应所述探测请求报文的所述探测响应报文。The
其中,所述源探测节点202、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点203、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点202用于通过所述源虚拟交换机与所述目的探测节点203通信,所述目的探测节点203用于通过所述目的虚拟交换机与所述源探测节点202通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。具体地,所述源探测节点202的端口和所述源虚拟客户机的端口可以均连接到源虚拟交换机,所述目的探测节点203的端口和所述目的探测节点的端口均连接到目的虚拟交换机。其中,所述源探测节点202的端口用于所述源探测节点与外界通信,所述源虚拟客户机的端口用于所述源虚拟客户机与外界通信,所述目的探测节点203的端口用于所述目的节点与外界通信,所述目的虚拟客户机的端口用于所述目的虚拟客户机与外界通信。Wherein, the
在本实施例提供的系统中,当测量人员需要测量源虚拟机与目的虚拟机之间的网络性能时,测量人员可以通过测量人员的终端可以向控制节点201发送测量请求。在接收到所述测量请求之后,控制节点201根据所述测量请求,确定与所述源虚拟客户机对应的源探测节点202和与所述目的虚拟客户机对应的目的探测节点203。控制节点201向源探测节点202发送第一测量指令并向目的探测节点203发送第二测量指令。源探测节点202接收到所述第一测量指令之后,基于所述第一测量指令向目的探测节点203发送探测请求报文。目的探测节点203接收到所述第二测量指令和所述探测请求报文之后,基于所述第二测量指令,向源探测节点202发送对应所述探测请求报文的探测响应报文。源探测节点202根据所述探测请求报文和所述探测响应报文,生成用于标识源探测节点202到目的探测节点203的链路的性能的第一结果,并向控制节点201发送所述第一结果。控制节点201在接收到所述第一结果之后,将所述第一结果作为用于标识所述源虚拟客户机到所述目的虚拟客户机的链路的性能的结果,向测量人员的终端转发所述第一结果,以便测量人员通过测量人员的终端获得第一结果。其中,测量请求可以是来自于虚拟客户机的使用用户,即云计算服务的使用用户,或者,用户测量请求也可以是来自于提供云计算服务的运营商用户,该运营商用户为云计算服务的使用用户部署了云计算服务的数据中心。此外,控制节点201可以位于网络中的任意一个物理服务器上。例如,若网络中具有一个作为控制器的物理服务器,则控制节点201可以位于所述作为控制器的物理服务器上。In the system provided in this embodiment, when the measurement personnel need to measure the network performance between the source virtual machine and the destination virtual machine, the measurement personnel can send a measurement request to the
在具体实施方式中,所述测量请求中可以携带所述源虚拟客户机的标识、所述目的虚拟机的标识和用于指示网络性能测量业务的业务标识。控制节点201根据所述测量请求中业务标识,可以确定所述测量请求用于请求网络性能测量的业务。控制节点201根据所述测量请求中所述源虚拟客户机的标识和所述目的虚拟客户机的标识,可以确定测量请求针对所述源虚拟客户机和所述目的虚拟客户机,从而确定出与所述源虚拟客户机对应的源探测节点202和与所述目的虚拟客户机对应的目的探测节点203。可以理解的是,测量人员可以按照需求指定需要测量网络性能的源虚拟客户机与目的虚拟客户机,也即测量请求中可以携带测量人员按照需求指定的源虚拟客户机和目的虚拟客户机的标识,这样控制节点201就可以按照需求测量指定的源虚拟客户机与目的虚拟客户机之间的网络性能。In a specific implementation manner, the measurement request may carry the identifier of the source virtual client, the identifier of the destination virtual machine, and a service identifier used to indicate a network performance measurement service. The
此外,所述测量请求还可以携带所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。控制节点201根据所述测量请求中的所述类型,可以确定所述测量请求请求测量的结果所属指标的类型。若图2所示的系统能够测量网络性能的多个不同类型的指标的结果,则测量请求可以携带按照需求指定的指标的类型,这样控制节点201就可以按照需求测量指定类型的指标的结果。其中,所述指标用于反应源虚拟客户机到目的虚拟客户机的链路的性能。所述指标的类型可以为时延、抖动、丢包率或负载率等。。In addition, the measurement request may further carry the type of the indicator to which the result for identifying the performance of the link from the source virtual client to the destination virtual client belongs. The
进一步而言,控制节点201在接收到所述测量请求之后,可以从所述测量请求中提取出所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述业务标识、所述类型,并基于所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述业务标识和所述类型,生成所述第一测量指令和所述第二测量指令。这样所述第一测量指令和所述第二测量指令中也可以携带所述源虚拟客户机的标识、所述目的虚拟机的标识、所述业务标识和所述类型。需要说明的是,为了测量不同类型的指标的结果,源探测节点202需要以不同的发送方式向目的探测节点203发送探测请求报文。因此,在所述测量请求携带有所述类型的情况下,源探测节点202为了实现所述基于所述第一测量指令向目的探测节点发送探测请求报文,可以执行以下操作:根据所述第一测量指令中的所述类型,确定所述探测请求报文的发送方式;按照所述发送方式,向所述目的探测节点发送所述探测请求报文。其中,所述发送方式可以表示所述探测请求报文的发送次数、发送间隔等。Further, after receiving the measurement request, the
在具体实施方式中,源探测节点202根据所述探测响应报文的接收情况的不同,可以生成不同类型的指标的结果。例如,若源探测节点202在发送所述探测请求报文之后预定的时间内接收到所述探测响应报文,则根据探测响应报文的接收时间可以生成源探测节点202到目的探测节点203的链路的网络时延的结果。又如,若源探测节点202在发送所述探测请求报文之后预定的时间内接收不到所述探测响应报文,则可以将本次探测事件作为丢包事件,生成源探测节点202到目的探测节点203的链路的网络丢包率的结果。In a specific implementation manner, the
在本实施例中,多种实施方式可以用于部署源探测节点202与目的探测节点203。In this embodiment, various implementations can be used to deploy the
作为一种示例,源探测节点202可以部署在所述源虚拟客户机中,所述目的探测节点部署在目的虚拟客户机中。具体地,源探测节点202可以是所述源虚拟客户机中的一个进程,源探测节点202的端口即相当于所述源虚拟客户机的端口,源探测节点202与外界通信的方式即是所述源虚拟客户机与外界通信的方式。相应地,目的探测节点203可以是所述目的虚拟客户机中的一个进程,目的探测节点203的端口即相当于所述目的虚拟客户机的端口,目的探测节点203与外界通信的方式即是所述目的虚拟客户机与外界通信的方式。因此,源探测节点202与目的探测节点203之间探测请求报文和探测响应报文的传输路径,即是所述源虚拟客户机与所述目的虚拟客户机之间报文的传输路径。可见,通过所述探测请求报文和所述探测响应报文测量到的所述第一结果所反映出的网络性能,即相当于所述源虚拟客户机到所述目的虚拟客户机的链路的真实性能。As an example, the
作为另一种示例,源探测节点202可以部署在第一虚拟机中,源探测节点202的端口为所述第一虚拟机的端口,第一虚拟机与源虚拟客户机是位于源物理服务器的两个虚拟机,所述第一虚拟机仅用于部署源探测节点202;目的探测节点203可以部署在第二虚拟机中,目的探测节点203的端口为所述第二虚拟机的端口,第一虚拟机与源虚拟客户机是位于源物理服务器的两个虚拟机,所述第二虚拟机仅用于部署所述目的探测节点。具体地,在同时部署有源探测节点202、所述源虚拟客户机、所述源虚拟交换机的源物理服务器上,可以部署仅用于部署源探测节点202的第一虚拟机。也即,所述第一虚拟机是所述源物理服务器上独立于所述源虚拟客户机、所述源虚拟交换机的另一个虚拟机,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机仅用于完成源探测节点202的功能。其中,所述第一虚拟机的端口与所述源虚拟客户机的端口都连接到所述源虚拟交换机上。相应地,在同时部署有目的探测节点203、所述目的虚拟客户机、所述目的虚拟交换机的目的物理服务器上,可以部署仅用于部署目的探测节点203的第二虚拟机。也即,所述第二虚拟机是所述目的物理服务器上独立于所述目的虚拟客户机、所述目的虚拟交换机的另一个虚拟机,所述源探测节点是所述第一虚拟机中的一个进程,所述第二虚拟机仅用于完成目的探测节点203的功能。其中,所述第二虚拟机的端口与所述目的虚拟客户机的端口都连接到所述目的虚拟交换上。因此,源探测节点202与目的探测节点203之间探测请求报文和探测响应报文的传输路径,接近于所述源虚拟客户机与所述目的虚拟客户机之间报文的传输路径。可见,通过所述探测请求报文和所述探测响应报文测量到的所述第一结果所反映的网络性能,接近于所述源虚拟客户机到所述目的虚拟客户机的链路的真实性能。As another example, the
在实际应用中,测量人员往往比较关心网络性能的异常情况。图2所示的系统可以基于测量到的所述第一结果向测量人员反馈网络性能的异常情况。作为一种示例,源探测节点202可以基于所述第一结果发起告警。具体地,在所述系统中,所述源探测节点202,还可以用于确定所述第一结果是否属于第一范围,以及,当所述第一结果不属于所述第一范围时生成并向控制节点201发送第一告警;所述控制节点201,还可以用于接收所述元探测节点发送的所述第一告警,以及,转发所述第一告警。作为另一种示例,控制节点201可以基于所述第一结果发起告警。具体地,在所述系统中,所述控制节点201,还用于确定所述第一结果是否属于第三范围,以及,当所述第一结果不属于所述第三范围时生成第三告警并转发。In practical applications, measurement personnel are often concerned about abnormal network performance. The system shown in FIG. 2 can feed back the abnormal situation of the network performance to the measurement personnel based on the measured first result. As an example, the
其中,所述第一范围是预先在源探测节点202中为所述第一结果设置的结果范围。所述第一范围对应于网络性能的正常状态。若所述第一结果属于所述第一范围,则所述源探测节点202确定网络性能正常。若所述第一结果不属于所述第一范围,则所述源探测节点202确定网络性能异常。所述第三范围是预先在控制节点201中为所述第一结果设置的结果范围。所述第三范围对应于网络性能的正常状态。若所述第一结果属于所述第一范围,则所述控制节点201确定网络性能正常。若所述第一结果不属于所述第三范围,则所述控制节点201确定网络性能异常。可以理解的是,所述第一范围与所述第三范围可以是相同的,也可以是不同的。Wherein, the first range is a result range previously set in the
在源探测节点202与目的探测节点203之间传输所述探测请求报文和所述探测响应报文的过程中,除了源探测节点202根据所述探测响应报文的接收情况可以测量源探测节点202到目的探测节点203的链路的性能之外,目的探测节点203根据所述探测请求报文的接收情况也可以测量源探测节点202到目的探测节点203的链路的性能。具体地,在所述系统中,所述目的探测节点203,还用于根据所述探测请求报文生成第二结果,以及,发送所述第二网络性能参数,所述第二结果用于标识所述源探测节点202到所述目的探测节点203的链路的性能;所述控制节点201,还用于接收所述第二结果,以及,转发所述第二结果。In the process of transmitting the probe request message and the probe response message between the
进一步而言,若目的探测节点203测量所述第二结果,则图2所示的系统可以基于测量到的所述第二结果向测量人员反馈网络性能的异常情况。作为一种示例,目的探测节点203可以基于所述第二结果发起告警。具体地,在所述系统中,所述目的探测节点203,还用于确定所述第二结果是否处于第二范围,以及,当所述第二结果不属于所述第二范围时生成并向所述控制节点201发送第二告警;所述控制节点201,还用于接收所述第二告警,以及,转发所述第二告警。作为另一种示例,控制节点201可以基于所述第二结果发起告警。具体地,在所述系统中,所述控制节点201,还用于确定所述第二结果是否属于第四范围,以及,当所述第二结果不属于所述第四范围时生成第四告警并转发。Further, if the
其中,所述第二范围是预先在目的探测节点203中为所述第二结果设置的结果范围。所述第二范围对应于网络性能的正常状态。若所述第二结果属于所述第二结果范围,则所述目的探测节点203确定网络性能正常。若所述第二结果不属于所述第二范围,则所述目的探测节点203确定网络性能异常。所述第四范围是预先在控制节点201中为所述第二结果设置的结果范围。所述第四范围对应于网络性能的正常状态。若所述第二结果属于所述第四范围,则所述控制节点201确定网络性能正常。若所述第二结果不属于所述第四范围,则所述控制节点201确定网络性能异常。可以理解的是,所述第二范围与所述第四范围可以是相同的,也可以是不同的。Wherein, the second range is a result range previously set in the
为了更好地适应云计算数据中心的网络,本实施例的系统还可以在控制节点与探测节点之间可以增加代理节点(Broker或Agent),控制节点与探测节点之间交互的信息均由代理节点转发。如图3所示,本实施例的系统在图2的基础上,还可以包括:In order to better adapt to the network of the cloud computing data center, the system of this embodiment may also add a broker node (Broker or Agent) between the control node and the detection node, and the information exchanged between the control node and the detection node is all handled by the broker Node forwarding. As shown in FIG. 3 , on the basis of FIG. 2 , the system of this embodiment may further include:
源代理节点301,用于接收所述控制节点201发送的所述第一测量指令并向所述源探测节点202转发所述第一测量指令,以及,接收所述源探测节点202发送的所述第一结果并向所述控制节点201转发所述第一结果;The source proxy node 301 is configured to receive the first measurement instruction sent by the
目的代理节点302,用于接收所述控制节点201发送的所述第二测量指令并向所述目的探测节点转发所述第二测量指令。The destination proxy node 302 is configured to receive the second measurement instruction sent by the
在图3所示的系统中,在接收到测量请求之后,控制节点201根据所述测量请求,确定与所述源虚拟客户机对应的源探测节点202和与所述目的虚拟客户机对应的目的探测节点203。控制节点201向与所述源探测节点201对应的源代理节点301发送所述第一测量指令并向与所述目的探测节点203对应的目的代理节点302发送所述第二测量指令。在接收到所述第一测量指令之后,源代理节点301根据所述第一测量指令,确定所述第一测量指令对应的所述源探测节点202,并向源探测节点202转发所述第一测量指令。在接收到所述第二测量指令之后,目的代理节点302根据所述第二测量指令,确定所述第二测量指令对应的所述目的探测节点203,并向所述目的探测节点203转发所述测量节点。源探测节点202接收到所述第一测量指令之后,基于所述第一测量指令向目的探测节点203发送探测请求报文。目的探测节点203接收到所述第二测量指令和所述探测请求报文之后,基于所述第二测量指令,向源探测节点202发送对应所述探测请求报文的探测响应报文。源探测节点202根据所述探测请求报文和所述探测响应报文,生成用于标识源探测节点202到目的探测节点203的链路的性能的第一结果,并向源代理节点301发送。在接收到所述第一结果之后,源代理节点301向控制节点201转发所述第一结果。在接收到所述第一转发之后,控制节点201转发所述第一结果。In the system shown in FIG. 3, after receiving the measurement request, the
在具体实施方式中,在源探测节点202接收到所述第一测量指令之后,可以执行网络性能测量的第一准备工作,并在所述第一准备工作完成之后向源代理节点301发送第一就绪信息。源代理节点301在接收到所述第一就绪信息之后向源探测节点202发送第一开始测量指令。所述源探测节点202在接收到所述第一开始指令之后,向所述目的探测节点203发送所述探测请求报文并接收所述目的探测报文203发送的所述探测响应报文。其中,所述第一准备工作例如包括源探测节点202打开用于向目的探测节点203发送所述探测请求报文并接收目的探测节点203发送的所述探测响应报文的端口。相应地,在目的探测节点203接收到所述第二测量指令之后,可以执行网络性能测量的第二准备工作,并在所述第二准备工作完成之后向目的代理节点302发送第二就绪信息。目的代理节点302在接收到所述第二就绪信息之后向目的探测节点203发送第一开始测量指令。所述目的探测节点203在接收到所述第一开始指令之后,接收所述源探测节点202发送的所述探测请求报文并向所述源探测节点202返回所述探测响应报文。其中,所述第二准备工作例如包括目的探测节点203打开用于接收源探测节点202发送的所述探测请求报文并向目的探测节点203返回所述探测响应报文的端口。In a specific implementation manner, after the
可以理解的是,在图3所示的系统中,除了所述第一测量指令、所述第二测量指令和所述第一结果之外,控制节点与探测节点之间交互的其他信息也可以通过代理节点来转发。It can be understood that, in the system shown in FIG. 3, in addition to the first measurement instruction, the second measurement instruction and the first result, other information exchanged between the control node and the detection node may also be Forwarded through proxy nodes.
例如,若目的探测节点203测量了所述第二结果,则所述目的探测节点203可以通过目的代理节点302向控制节点201发送所述第二结果。具体地,在图3所示的系统中,所述目的代理节点302,还可以用于接收所述目的探测节点203发送的所述第二结果并向所述控制节点201转发所述第二结果。For example, if the
又如,若源探测节点201基于所述第一结果发起了所述第一告警,则所述源探测节点202可以通过源代理节点301向控制节点201发送所述第一告警。具体地,在图3所示的系统中,所述源代理节点301,还可以用于接收所述源探测节点202发送的所述第一告警并向所述控制节点201转发所述第一告警。For another example, if the
再如,若目的探测节点203基于所述第二结果发起了所述第二结果告警,则所述目的探测节点203可以通过目的代理节点302向控制节点201发送所述第二告警。具体地,在图3所示的系统中,所述目的代理节点302,还可以用于接收所述目的探测节点203发送的所述第二告警并向所述控制节点201转发所述第二告警。For another example, if the
在一些网络环境中,源代理节点301与源探测节点202之间的信息传输可能没有与其他的信息传输相隔离。在这样的网络环境下,源代理节点301可以对需要发送给源探测节点202的信息进行签名,源探测节点202可以对接收到的信息进行签名验证,这样保证了源代理节点301与源探测节点202之间信息传输的安全。具体地,在图3所示的系统中,所述源代理节点301,还可以用于在转发所述第一测量指令之前,对所述第一测量指令进行签名;所述源探测节点202,还可以用于在接收所述第一测量指令之后,对签名后的第一测量指令进行验证,并在验证通过的情况下向所述目的探测节点203发送探测请求报文。In some network environments, the transmission of information between the source proxy node 301 and the
相应地,在一些网络环境中,目的代理节点302与目的探测节点203之间的信息传输可能没有与其他的信息传输相隔离。在这样的网络环境下,目的代理节点302可以对需要发送给目的探测节点203的信息进行签名,目的探测节点203可以对接收到的信息进行签名验证,这样保证了目的代理节点302与目的探测节点203之间信息传输的安全。具体地,在图3所示的系统中,所述目的代理节点302,还可以用于在转发所述第二测量指令之前,对所述第二测量指令进行签名;所述目的探测节点303,还可以用于在接收所述第二测量指令之后,对签名后的第二测量指令进行验证,并在验证通过的情况下基于所述第二测量指令向所述源探测节点201发送对应所述探测请求报文的所述探测响应报文。Accordingly, in some network environments, the information transmission between the destination proxy node 302 and the
在本实施例中,多种实施方式可以用于部署源代理节点301与目的代理节点302。In this embodiment, various implementations can be used to deploy the source proxy node 301 and the destination proxy node 302 .
作为一种示例,网络内可以对应于控制节点201仅部署有唯一的一个代理节点,即与控制节点201进行通信的代理节点仅包括所述唯一的一个代理节点。在控制节点201与控制节点201控制下的所有探测节点之间传输的信息均经过所述唯一的一个代理节点转发。其中,所述唯一的一个代理节点可以部署于网络中可与控制节点201及控制节点201控制下的所有探测节点进行通信的任意一个物理服务器上。例如,所述唯一的一个代理节点可以与控制节点201一起部署于作为控制器的物理服务器上。又如,所述唯一的一个代理节点可以与一个或多个虚拟客户机一起部署于同一物理服务器上。再如,所述唯一的一个代理节点可以部署于一个独立的物理服务器上,所述独立的物理服务器仅部署有所述唯一的一个代理节点,所述独立的物理服务器没有部署控制节点201、任意虚拟客户机以及任何探测节点。As an example, only one proxy node corresponding to the
可以理解的是,若网络内对应于控制节点201仅部署了所述唯一的一个代理节点,则源代理节点301和目的代理节点302实际上就是位于同一物理服务器的同一代理节点,或者说,源代理节点301和目的代理节点302均是所述唯一的一个代理节点。由于网络中仅有一个物理服务器上部署有所述唯一的一个代理节点,大部分或者全部的虚拟客户机对应的探测节点没有部署在部署有所述唯一的一个代理节点的物理服务器上。可见,若源代理节点301和目的代理节点302是位于同一物理服务器的同一代理节点,则源探测节点202与源代理节点301可能不在同一物理服务器上,目的探测节点203与目的代理节点302也可能不在同一物理服务器上。为了使得源探测节点202与源代理节点301之间能够通信,在图3所示的系统中,所述控制节点201,还可以用于在发送所述第一测量指令之前,获取所述源代理节点301到所述源探测节点202的第一路由和所述源探测节点202到所述源代理节点301的第二路由,向所述源代理节点301发送所述第一路由,向所述源探测节点202发送所述第二路由,其中,所述第一路由用于所述源代理节点301向所述源探测节点202发送所述第一测量指令,所述第二路由用于所述源探测节点02向所述源代理节点301发送所述第一结果。此外,第一路由和第二路由也可以用于源探测节点202与源代理节点301之间传输其他信息,如第二路由可以用于传输前述的第一告警。相应地,为了使得目的探测节点203与目的代理节点302之间能够通信,在图3所示的系统中,所述控制节点201,还可以用于在发送所述第二测量指令之前,获取所述目的代理节点302到所述目的探测节点203的第三路由和所述目的探测节点203到所述目的代理节点302的第四路由,向所述目的代理节点302发送所述第三路由,向所述目的探测节点203发送所述第四路由,所述第三路由用于所述目的代理节点301向所述目的探测节点203发送所述第二测量指令,所述第四路由用于所述目的探测节点203向所述目的代理节点发送所述第二结果。此外,第三路由和第四路由也可以用于目的探测节点203与目的代理节点301之间传输其他信息,如所述第四路由可以用于传输前述的第二告警。It can be understood that if only the only one proxy node is deployed in the network corresponding to the
若源代理节点301和目的代理节点302均是所述唯一的一个代理节点,在前述有关所述第一就绪信息和所述第二就绪信息的具体实施方式中,所述唯一的一个代理节点可以在所述第一就绪信息和所述第二就绪信息都被接收到之后,向源探测节点202发送所述第一开始测量指令并向目的探测节点203发送所述第二开始测量指令。If both the source proxy node 301 and the destination proxy node 302 are the only proxy node, in the above-mentioned specific implementation manner of the first ready information and the second ready information, the only proxy node may After both the first ready information and the second ready information are received, the first measurement start instruction is sent to the
作为另一种示例,网络内可以在每一个部署有虚拟客户机和探测节点的物理服务器上分别部署一个代理节点,即探测节点对应的代理节点与探测节点部署在同一物理服务器上。若探测节点与代理节点部署于同一物理服务器上,则探测节点与代理节点之间可通信。若探测节点与代理节点部署于不同的物理服务器,则探测节点与代理节点之间不可通信。由于控制节点201控制下的探测节点通常部署在多个不同的物理服务器上,控制节点201通常可以与多个物理服务器上部署的代理节点进行通信。As another example, a proxy node may be respectively deployed on each physical server on which the virtual client and the probe node are deployed in the network, that is, the proxy node corresponding to the probe node and the probe node are deployed on the same physical server. If the probe node and the proxy node are deployed on the same physical server, the probe node and the proxy node can communicate with each other. If the probe node and the proxy node are deployed on different physical servers, the probe node and the proxy node cannot communicate with each other. Since the detection nodes under the control of the
可以理解的是,若网络内在每一个部署有虚拟客户机和探测节点的物理服务器上分别部署一个代理节点,源代理节点301与源探测节点202均部署于同一物理服务器中,目的代理节点302与目的探测探测节点203均部署于同一物理服务器中。或者说,源代理节点301是源物理服务器中的一个进程,目的代理节点302是目的物理服务器中的一个进程,其中,源物理服务器表示部署有源探测节点202的物理服务器,目的物理服务器表示部署有目的探测节点203的物理服务器。It can be understood that if a proxy node is respectively deployed on each physical server in which the virtual client and the detection node are deployed in the network, the source proxy node 301 and the
若源代理节点301与源探测节点202均部署于源物理服务器中且目的代理节点302与目的探测节点203均部署于目的物理服务器,则源探测节点202与源代理节点301之间可以通过套接字实现通信,目的探测节点203与目的代理节点302之间也可以通过套接字实现通信。具体地,在源物理服务器中,源探测节点202可以部署在源Namespace(命名空间)中,源代理节点301可以部署在所述源Namespace之外。此时,源代理节点301与源探测节点202之间可以通过套接字进行通信。在目的物理服务器中,目的探测节点203可以部署在目的Namespace中,目的代理节点302可以部署在所述目的Namespace之外。此时,目的代理节点302与目的探测节点203之间可以通过套接字进行通信。其中,所述源Namespace和所述目的Namespace具体可以是Linux Network Namespace。所述源Namespace可以是在部署有所述源探测节点202的虚拟机中开辟出来的Namespace,如所述源Namespace是所述源虚拟客户机内的Namespace或者所述第一虚拟机内的Namespace。所述目的Namespace可以是在部署有所述目的探测节点203的虚拟机中开辟出来的Namespace,如所述目的Namespace是所述目的虚拟客户机内的Namespace或者所述第二虚拟机内的Namespace。所述套接字具体可以是UNIX域套接字所述套接字具体可以是UNIX域套接字。可以理解的是,Linux NetworkNamespace可以将源探测节点202与目的探测节点203之间传输的所述探测请求报文和所述探测响应报文与其他传输信息隔离开。If both the source proxy node 301 and the
若源代理节点301与源探测节点202均部署于源物理服务器中且目的代理节点302与目的探测节点203均部署于目的物理服务器,则源探测节点202可以是由源代理节点301动态创建的,目的探测节点203可以是由目的代理节点302动态创建的。具体地,在图3所示的系统中,所述控制节点201,还可以用于在发送所述第一测量指令和所述第二测量指令之前,向所述源代理节点301发送第一控制信息并向所述目的代理节点302发送第二控制信息,为所述源探测节点202指定所述源虚拟交换机上的第一端口并为所述目的探测节点203指定所述目的虚拟交换机上的第二端口,以及,建立包含所述第一端口与所述第二端口的虚拟局域网(Virtual Local Area Network,简称VLAN),所述源探测节点202能够通过所述第一端口与所述目的探测节点203通信,所述目的探测节点203能够通过所述第二端口与所述源探测节点202通信,所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文;所述源代理节点301,还可以用于接收所述第一控制信息,以及,基于所述第一控制信息在所述源物理服务器中创建所述第一虚拟机和所述源探测节点202;所述目的代理节点301,还可以用于接收所述第二控制信息,以及,基于所述第二控制信息在所述目的物理服务器中创建所述第二虚拟机和所述目的探测节点203。其中,所述VLAN可以是用于测量的专用网络,即所述VLAN中仅传输所述探测请求报文和所述探测响应报文而不传输其他信息。此外,在源代理节点301创建了所述源探测节点202之后,源代理节点301可以向控制节点201发送第三就绪信息。控制节点201在接收到所述第三就绪信息之后,可以向源代理节点301发送所述第一测量指令。相应地,在目的代理节点302创建了所述目的探测节点203之后,目的代理节点302可以向控制节点201发送第四就绪信息。控制节点201在接收到所述第四就绪信息之后,可以向目的代理节点302发送所述第二测量指令。If both the source proxy node 301 and the
若源代理节点301与源探测节点202均部署于源物理服务器中且目的代理节点302与目的探测节点203均部署于目的物理服务器,则源代理节点301与目的代理节点302可能是部署于同一物理服务器的同一代理节点,也可能是部署于不同物理服务器的不同代理节点。具体地,若所述源虚拟客户机与所述目的虚拟客户机部署于不同的物理服务器,则源探测节点202与目的探测节点203部署于不同的物理服务器,即源物理服务器与目的物理服务器是不同的物理服务器,此时源代理节点301与目的代理节点302即是部署于不同物理服务器的不同代理节点。若所述源虚拟客户机与所述目的虚拟客户机部署于同一物理服务器,则源探测节点202与目的探测节点203部署于同一物理服务器,即源物理服务器与目的物理服务器是同一物理服务器,此时源代理节点301与目的代理节点302即是部署于同一物理服务器的同一代理节点。If both the source proxy node 301 and the
在本实施例中,图3所示的系统可以适用于不同架构的网络。In this embodiment, the system shown in FIG. 3 can be applied to networks of different architectures.
作为一种示例,所述图3所示的系统可以适用于图4所示的网络架构中。所述图4所示的网络架构包括作为控制器的物理服务器401、部署有虚拟客户机的物理服务器402、控制网络403和转发网络404。控制节点201可以部署于物理服务器401上。所述图4所示的网络架构可以仅在一个物理服务器402上部署一个可与控制节点201通信的代理节点,此时源代理节点301和目的代理节点302即是部署于同一物理服务器402的同一代理节点。所述图4所示的网络架构可以在每一个物理服务器402上分别部署一个可与控制节点201通信的代理节点,此时源代理节点301和目的代理节点302可能是部署于同一物理服务器402的同一代理节点,也可能是部署于不同物理服务器402上的不同代理节点。探测节点与其对应的虚拟客户机部署在同一物理服务器402上。具体地,源探测节点202与所述源虚拟客户机部署在同一物理服务器402上。目的探测节点203与所述虚拟客户机部署在同一物理服务器402上。控制网络403用于物理服务器401与物理服务器402之间传输有关管理或控制的信息,如前述第一测量指令、前述第二测量指令、前述第一网络性能参数等。数据网络用于物理服务器402上各虚拟机之间传输信息以及物理服务器402上各虚拟机与用户之间传输信息,如前述探测请求报文、前述探测响应报文等。As an example, the system shown in FIG. 3 can be applied to the network architecture shown in FIG. 4 . The network architecture shown in FIG. 4 includes a physical server 401 serving as a controller, a physical server 402 deployed with virtual clients, a control network 403 and a forwarding network 404 . The
作为另一种示例,所述图3所示的系统可以适用于图5所示的网络架构中。所述图5所示的网络架构包括作为控制器的物理服务器501、部署有虚拟客户机的物理服务器502和转发网络503。控制节点201可以部署于物理服务器501上。所述图5所示的网络架构可以仅在一个物理服务器502上部署一个可与控制节点201通信的代理节点,此时源代理节点301和目的代理节点302即是部署于同一物理服务器502的同一代理节点。所述图4所示的网络架构可以在每一个物理服务器502上分别部署一个可与控制节点201通信的代理节点,此时源代理节点301和目的代理节点302可能是部署于同一物理服务器502的同一代理节点,也可能是部署于不同物理服务器502上的不同代理节点。探测节点与其对应的虚拟客户机部署在同一物理服务器502上。具体地,源探测节点202与所述源虚拟客户机部署在同一物理服务器502上。目的探测节点203与所述虚拟客户机部署在同一物理服务器502上。转发网络503用于物理服务器501与物理服务器502之间传输有关管理或控制的信息,如前述第一测量指令、前述第二测量指令、前述第一结果等。转发网络503还用于物理服务器502上各虚拟机之间传输信息以及物理服务器502上各虚拟机与用户之间传输信息,如前述探测请求报文、前述探测响应报文等。As another example, the system shown in FIG. 3 may be applied to the network architecture shown in FIG. 5 . The network architecture shown in FIG. 5 includes a physical server 501 serving as a controller, a physical server 502 deployed with virtual clients, and a forwarding network 503 . The
通过本实施例的技术方案,一方面,测量人员可以通过测量请求按照需求灵活地指定需要被测量的虚拟客户机,控制节点可以根据测量请求灵活地选择相应的探测节点,从而获得符合需求的虚拟客户机之间的网络性能的测量结果并向测量人员反馈,这样测量人员就不必在被测量的虚拟客户机上手动操作,从而减少了测量人员测量网络性能需要手动操作的设备,简化了测量人员在网络性能测量过程中的手动操作,从而使得测量人员能够更简便地测量网络性能。因此,数据中心能够按照需求灵活地对虚拟客户机之间的网络性能进行测量并反馈测量结果,测量人员能够方便灵活地了解到虚拟客户机之间的网络性能情况。另一方面,由于探测节点与相应的虚拟客户机位于同一物理服务器并且均通过同一虚拟交换机与外界通信,探测节点之间传输报文的过程与相应的虚拟客户机之间传输报文的过程是非常接近甚至相同的,这两个过程都既包含了物理路由器之间传输报文的处理过程也包含了在物理服务器内部虚拟机之间传输报文的处理过程,因此,通过与虚拟客户机对应的探测节点之间传输探测报文而得到的测量结果更接近地反映出虚拟机所在网络环境的真实网络性能。Through the technical solution of this embodiment, on the one hand, the measurement personnel can flexibly designate the virtual client to be measured according to the measurement request, and the control node can flexibly select the corresponding detection node according to the measurement request, so as to obtain the virtual client that meets the requirements. The measurement results of the network performance between clients are fed back to the measurement personnel, so that the measurement personnel do not have to manually operate on the virtual client to be measured, thereby reducing the need for manual operation of the equipment for the measurement personnel to measure the network performance, and simplifying the measurement personnel. Manual operation during network performance measurement, making it easier for measurement personnel to measure network performance. Therefore, the data center can flexibly measure the network performance between the virtual clients and feed back the measurement results according to the requirements, and the measurement personnel can easily and flexibly learn the network performance between the virtual clients. On the other hand, since the detection node and the corresponding virtual client are located on the same physical server and communicate with the outside world through the same virtual switch, the process of transmitting packets between the detection nodes and the process of transmitting packets between the corresponding virtual clients is as follows: Very close or even the same, these two processes include both the processing of transmitting packets between physical routers and the processing of transmitting packets between virtual machines inside the physical server. Therefore, by corresponding to the virtual client The measurement results obtained by transmitting detection packets between the detection nodes more closely reflect the real network performance of the network environment where the virtual machine is located.
为了使得本领域技术人员更清楚地了解本发明实施例的具体应用方式,下面以两个示例性的应用场景对本发明实施例进行介绍。In order to make those skilled in the art understand the specific application manners of the embodiments of the present invention more clearly, the embodiments of the present invention are described below by using two exemplary application scenarios.
在第一个示例性的应用场景中,源虚拟客户机中部署有源探测节点,目的虚拟客户机部署有目的探测节点。网络系统中仅部署有一个可与控制节点通信的代理节点,即源代理节点与目的代理节点为同一代理节点。在所述第一个示例性的应用场景下,图6所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如可以包括:In the first exemplary application scenario, active detection nodes are deployed in the source virtual client, and purposeful detection nodes are deployed in the destination virtual client. Only one proxy node that can communicate with the control node is deployed in the network system, that is, the source proxy node and the destination proxy node are the same proxy node. In the first exemplary application scenario, FIG. 6 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may include, for example:
601、控制节点接收测量请求。601. The control node receives the measurement request.
602、所述控制节点根据所述测量请求,获取所述源虚拟客户机与所述目的虚拟客户机的相关信息。602. The control node acquires the relevant information of the source virtual client and the destination virtual client according to the measurement request.
其中,所述相关信息可以包括所述源虚拟客户机的标识与所述目的虚拟机客户机的标识,还可以包括所述源虚拟客户机中的所述源探测节点的标识和所述目的虚拟客户机中的所述目的探测节点的标识。The relevant information may include the identifier of the source virtual client and the identifier of the destination virtual client, and may also include the identifier of the source detection node in the source virtual client and the destination virtual client. The identity of the destination probe node in the client.
603、所述控制节点建立所述代理节点到所述源探测节点的第一路由、所述源探测节点到所述代理节点的第二路由、所述代理节点到所述目的探测节点的第三路由以及所述目的探测节点到所述代理节点的第四路由。603. The control node establishes a first route from the proxy node to the source probe node, a second route from the source probe node to the proxy node, and a third route from the proxy node to the destination probe node. route and a fourth route from the destination probe node to the proxy node.
604、所述控制节点向所述代理节点发送第一测量指令和第二测量指令。604. The control node sends a first measurement instruction and a second measurement instruction to the proxy node.
605、所述代理节点对所述第一测量指令进行签名,并向所述源探测节点转发签名后的第一测量指令。605. The proxy node signs the first measurement instruction, and forwards the signed first measurement instruction to the source detection node.
606、所述源探测节点在接收到签名后的第一测量指令之后,对签名后的第一测量指令进行验证。在验证通过的情况下可以进入607。606. After receiving the signed first measurement instruction, the source detection node verifies the signed first measurement instruction. If the verification is passed, you can enter 607.
可以理解的是,若606中验证不通过,所述源探测节点可以终止流程,或者也可以向所述代理节点反馈错误信息。It can be understood that, if the verification in 606 fails, the source detection node may terminate the process, or may also feed back error information to the proxy node.
607、所述源探测节点执行网络性能测量的第一准备工作,并在完成所述第一准备工作之后向所述代理节点返回第一就绪信息。607. The source detection node performs a first preparation for network performance measurement, and returns first preparation information to the proxy node after completing the first preparation.
608、所述代理节点对所述第二测量指令进行签名,并向所述目的探测节点转发签名后的第二测量指令。608. The proxy node signs the second measurement instruction, and forwards the signed second measurement instruction to the destination detection node.
609、所述目的探测节点在接收到签名后的第二测量指令之后,对签名后的第二测量指令进行验证。在验证通过的情况下可以进入610。609. After receiving the signed second measurement instruction, the destination detection node verifies the signed second measurement instruction. 610 can be entered if the verification is passed.
可以理解的是,若609中验证不通过,所述目的探测节点可以终止流程,或者也可以向所述代理节点反馈错误信息。It can be understood that, if the verification in 609 fails, the destination detection node may terminate the process, or may also feed back error information to the proxy node.
610、所述目的探测节点执行网络性能测量的第二准备工作,并在完成所述第二准备工作之后向所述代理节点返回第二就绪信息。610. The destination detection node performs a second preparation for network performance measurement, and returns second preparation information to the proxy node after completing the second preparation.
需要说明的是,在604执行完成之后,605~607和608~610是互相之间没有执行顺序限定的过程。例如,本实施例可以先执行605~607的过程再执行608~610的过程,或者,本实施例也可以先执行608~610的过程再执行605~607的过程,或者,本实施例还可以同步执行605~607的过程和608~610的过程。It should be noted that, after the execution of 604 is completed, 605 to 607 and 608 to 610 are processes whose execution order is not limited to each other. For example, in this embodiment, the processes of 605 to 607 may be executed first, and then the processes of 608 to 610 may be executed, or, in this embodiment, the processes of 608 to 610 may be executed first, and then the processes of 605 to 607 may be executed, or, this embodiment may also The processes of 605-607 and the processes of 608-610 are executed synchronously.
611、所述代理节点在接收到所述第一就绪信息和所述第二就绪信息之后,向所述源探测节点发送第一开始测量指令并向所述目的探测节点发送第二开始测量指令。611. After receiving the first ready information and the second ready information, the proxy node sends a first measurement start instruction to the source detection node and a second measurement start instruction to the destination detection node.
612、所述源探测节点在接收到所述第一开始测量指令之后,向所述目的探测节点发送探测请求报文。612. After receiving the first start measurement instruction, the source detection node sends a detection request message to the destination detection node.
613、所述目的探测节点在接收到所述第二开始测试指令之后,接收所述源探测节点发送的所述探测请求报文,并向所述源探测节点发送对应所述探测请求报文的探测响应报文。613. After receiving the second start test instruction, the destination detection node receives the detection request message sent by the source detection node, and sends the detection request message corresponding to the detection request message to the source detection node. Probe response message.
614、所述源探测节点接收所述目的探测节点发送的所述探测响应报文,根据所述探测请求报文和所述探测响应报文生成用于标识所述源探测节点到所述目的探测节点的链路的性能的结果,并向所述代理节点发送所述结果。614. The source detection node receives the detection response message sent by the destination detection node, and generates a detection request message for identifying the source detection node to the destination detection message according to the detection request message and the detection response message. results of the performance of the node's link and send the results to the proxy node.
615、所述代理节点在接收到所述结果之后,向所述控制节点转发所述结果。615. After receiving the result, the proxy node forwards the result to the control node.
616、所述控制节点在接收到所述结果之后,转发所述结果。616. After receiving the result, the control node forwards the result.
617、所述源探测节点确定所述结果是否属于预设范围。617. The source detection node determines whether the result belongs to a preset range.
其中,所述预设范围表示正常的网络性能的结果范围。Wherein, the preset range represents the result range of normal network performance.
618、所述源探测节点在确定所述结果不属于所述预设范围之后,生成告警并向所述代理节点发送。618. After determining that the result does not belong to the preset range, the source detection node generates an alarm and sends it to the proxy node.
619、所述代理节点在接收到所述告警之后,向所述控制节点转发所述告警。619. After receiving the alarm, the proxy node forwards the alarm to the control node.
620、所述控制节点在接收到所述告警之后,转发所述告警。620. After receiving the alarm, the control node forwards the alarm.
在本实施例的技术方案中,通过在网络系统中部署一个控制节点、一个代理节点并在虚拟客户机中部署探测节点,网络系统可以按照用户需求灵活地测量不同的虚拟客户机之间的网络性能。而且,探测节点之间传输探测报文的路径即是虚拟客户机之间传输报文的路径,因此,测量结果能够准确地反映出虚拟客户机之间真实的网络性能。In the technical solution of this embodiment, by deploying a control node and an agent node in the network system and deploying a detection node in the virtual client, the network system can flexibly measure the network between different virtual clients according to user requirements performance. Moreover, the path for transmitting the probe message between the detection nodes is the path for transmitting the message between the virtual clients, so the measurement result can accurately reflect the real network performance between the virtual clients.
在第二个示例性的应用场景中,源探测节点部署于第一虚拟机中,所述第一虚拟机的端口与源虚拟客户机的端口连接到源虚拟交换机上,目的探测节点部署于第二虚拟机中,所述第二虚拟机的端口与目的虚拟客户机的端口连接到目的虚拟交换机上。网络系统中在每一个部署有虚拟客户机的物理服务器上分别部署一个代理节点,也即,源代理节点与源探测节点均部署于源物理服务器上,目的代理节点与目的探测节点均部署于目的物理服务器上。在所述第二个示例性的应用场景下,图7所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如可以包括:In the second exemplary application scenario, the source detection node is deployed in the first virtual machine, the port of the first virtual machine and the port of the source virtual client are connected to the source virtual switch, and the destination detection node is deployed on the first virtual machine. In the two virtual machines, the port of the second virtual machine and the port of the destination virtual client are connected to the destination virtual switch. In the network system, an agent node is respectively deployed on each physical server where the virtual client is deployed, that is, the source agent node and the source detection node are both deployed on the source physical server, and the destination agent node and the destination detection node are both deployed on the destination on the physical server. In the second exemplary application scenario, FIG. 7 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may include, for example:
701、控制节点接收测量请求。701. The control node receives the measurement request.
702、所述控制节点根据所述测量请求,获取所述源虚拟客户机与所述目的虚拟客户机的相关信息。702. The control node acquires the relevant information of the source virtual client and the destination virtual client according to the measurement request.
其中,所述相关信息可以参见前述图6所示的实施例。For the relevant information, reference may be made to the embodiment shown in FIG. 6 above.
703、所述控制节点建立用于测量的VLAN,在源物理服务器的源虚拟交换机上为所述VLAN分配第一端口并在目的物理服务器的目的虚拟交换上为所述VLAN分配第二端口。703. The control node establishes a VLAN for measurement, allocates a first port to the VLAN on the source virtual switch of the source physical server, and allocates a second port to the VLAN on the destination virtual switch of the destination physical server.
704、所述控制节点向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息。704. The control node sends first control information to the source proxy node and sends second control information to the destination proxy node.
705、所述源代理节点在接收到所述第一控制信息之后,在所述源物理服务器中创建所述第一虚拟机和所述源探测节点。705. After receiving the first control information, the source proxy node creates the first virtual machine and the source detection node in the source physical server.
其中,所述第一虚拟机中开辟有源Namespace,所述源探测节点部署于所述源Namespace中。Wherein, an active Namespace is opened in the first virtual machine, and the source detection node is deployed in the source Namespace.
706、所述源代理节点向所述控制节点返回第一就绪信息。706. The source proxy node returns the first ready information to the control node.
可以理解的是,所述第一就绪信息相当于前述系统实施例中的第三就绪信息。It can be understood that the first ready information is equivalent to the third ready information in the foregoing system embodiment.
707、所述目的代理节点在接收到所述第二控制信息之后,在所述目的物理服务器中创建所述第二虚拟机和所述目的探测节点。707. After receiving the second control information, the destination proxy node creates the second virtual machine and the destination detection node in the destination physical server.
其中,所述第二虚拟机中开辟有目的Namespace,所述目的探测节点部署于所述目的Namespace中。Wherein, a target Namespace is opened in the second virtual machine, and the target detection node is deployed in the target Namespace.
708、所述目的代理节点向所述控制节点返回第二就绪信息。708. The destination proxy node returns second ready information to the control node.
可以理解的是,所述第二就绪信息相当于前述系统实施例中的第四就绪信息。It can be understood that the second ready information is equivalent to the fourth ready information in the foregoing system embodiment.
709、所述控制节点将所述第一端口指定给所述第一虚拟机并将所述第二端口指定给所述第二虚拟机。709. The control node assigns the first port to the first virtual machine and assigns the second port to the second virtual machine.
其中,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源探测节点通信。The source detection node can communicate with the destination detection node through the first port, and the destination detection node can communicate with the source detection node through the second port.
710、所述控制节点向所述源代理节点发送第一测量指令并向所述目的代理节点发送第二测量指令。710. The control node sends a first measurement instruction to the source proxy node and sends a second measurement instruction to the destination proxy node.
711、所述源代理节点在接收到所述第一测量指令之后,向所述源探测节点转发所述第一测量指令。711. After receiving the first measurement instruction, the source proxy node forwards the first measurement instruction to the source detection node.
712、所述目的代理节点在接收到所述第二测量指令之后,向所述源探测节点转发所述第二测量指令。712. After receiving the second measurement instruction, the destination proxy node forwards the second measurement instruction to the source detection node.
713、所述源探测节点在接收到所述第一测量指令之后,向所述目的探测节点发送所述探测请求报文。713. After receiving the first measurement instruction, the source detection node sends the detection request message to the destination detection node.
714、所述目的探测节点在接收到所述第二测量指令之后,接收所述源探测节点发送的所述探测请求报文,并向所述源探测节点发送对应所述探测请求报文的探测响应报文。714. After receiving the second measurement instruction, the destination probe node receives the probe request message sent by the source probe node, and sends a probe corresponding to the probe request message to the source probe node response message.
715、所述源探测节点接收所述目的探测节点发送的所述探测响应报文,根据所述探测请求报文和所述探测响应报文生成用于标识所述源探测节点到所述目的探测节点的链路的性能的结果,并向所述源代理节点发送所述结果。715. The source detection node receives the detection response message sent by the destination detection node, and generates a detection request message for identifying the source detection node to the destination detection message according to the detection request message and the detection response message. results of the performance of the node's link and send the results to the source proxy node.
716、所述源代理节点在接收到所述结果之后,向所述控制节点转发所述结果。716. After receiving the result, the source proxy node forwards the result to the control node.
717、所述控制节点在接收到所述结果之后,转发所述结果。717. After receiving the result, the control node forwards the result.
718、所述源探测节点确定所述结果是否属于预设范围。718. The source detection node determines whether the result belongs to a preset range.
其中,所述网络性能的预设范围表示正常的网络性能的结果范围。Wherein, the preset range of network performance represents the result range of normal network performance.
719、所述源探测节点在确定所述结果不属于所述预设范围之后,生成告警并向所述代理节点发送。719. After determining that the result does not belong to the preset range, the source detection node generates an alarm and sends it to the proxy node.
720、所述源代理节点在接收到所述告警之后,向所述控制节点转发所述告警。720. After receiving the alarm, the source proxy node forwards the alarm to the control node.
721、所述控制节点在接收到所述告警之后,转发所述告警。721. After receiving the alarm, the control node forwards the alarm.
在本实施例的技术方案中,通过在网络系统中部署一个控制节点、在虚拟客户机所在的每个物理服务器中分别部署一个代理节点以及在与在虚拟客户机连接在同一虚拟交换机上的另一虚拟机中部署探测节点,网络系统可以按照需求灵活地测量不同的虚拟客户机之间的网络性能。而且,探测节点之间传输探测报文的路径相对于物理路由器之间传输报文的路径来说更接近于虚拟客户机之间传输报文的路径,因此,测量结果相能够较准确地反映出虚拟客户机之间真实的网络性能。In the technical solution of this embodiment, a control node is deployed in the network system, an agent node is respectively deployed in each physical server where the virtual client is located, and another node connected to the virtual client on the same virtual switch A detection node is deployed in a virtual machine, and the network system can flexibly measure the network performance between different virtual clients according to the requirements. Moreover, the path for transmitting probe packets between detection nodes is closer to the path for transmitting packets between virtual clients than the path for transmitting packets between physical routers. Therefore, the measurement results can more accurately reflect the path of transmitting packets. Real network performance between virtual guests.
图8所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如具体可以包括:FIG. 8 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may specifically include, for example:
801、控制节点接收测量请求,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;801. The control node receives a measurement request, where the measurement request is used to instruct the control node to feed back a result for identifying the performance of the link from the source virtual client to the destination virtual client;
802、所述控制节点向源探测节点发送第一测量指令并向目的探测节点发送第二测量指令,所述第一测量指令用于指示源探测节点向目的探测节点发送探测请求报文、接收对应所述探测请求报文的探测响应报文并根据所述探测请求报文和所述探测响应报文生成第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述第二测量指令用于指示所述目的探测节点向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;802. The control node sends a first measurement instruction to the source detection node and sends a second measurement instruction to the destination detection node, where the first measurement instruction is used to instruct the source detection node to send a detection request message to the destination detection node and receive a corresponding the probe response message of the probe request message and generate a first result according to the probe request message and the probe response message, where the first result is used to identify the source probe node to the destination probe node The performance of the link, the second measurement instruction is used to instruct the destination probe node to send the probe response message corresponding to the probe request message to the source probe node;
803、所述控制节点接收所述源探测节点发送的所述第一结果,并转发所述第一结果;803. The control node receives the first result sent by the source detection node, and forwards the first result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the result of the virtual guest-to-destination virtual guest link belongs.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点接收所述目的探测节点发送的所述第二结果,并转发所述第二结果;receiving, by the control node, the second result sent by the destination detection node, and forwarding the second result;
其中,所述第二结果所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能。The second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the performance of the link from the source detection node to the destination detection node.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点接收所述源探测节点发送的第一告警,并转发所述第一告警;receiving, by the control node, a first alarm sent by the source detection node, and forwarding the first alarm;
所述控制节点接收所述目的探测节点发送的第二告警,并转发所述第二告警;receiving, by the control node, the second alarm sent by the destination detection node, and forwarding the second alarm;
其中,所述第一告警是所述源探测节点在确定所述第一结果不属于第一范围时生成并发送的,所述第二告警是所述目的探测节点在确定所述第二结果不属于第二范围时生成并发送的。The first alarm is generated and sent by the source detection node when it determines that the first result does not belong to the first range, and the second alarm is generated by the destination detection node when it determines that the second result does not belong to the first range. Generated and sent when belonging to the second range.
可选的,所述方法还包括:Optionally, the method further includes:
所述控制节点确定所述第一结果是否属于第三范围;the control node determines whether the first result belongs to a third range;
当所述第一结果不属于所述第三范围时,所述控制节点生成第三告警并转发;When the first result does not belong to the third range, the control node generates a third alarm and forwards it;
所述控制节点确定所述第二结果是否属于第四范围;the control node determines whether the second result belongs to a fourth range;
当所述第二结果不属于所述第四范围时,所述控制节点生成第四告警并转发。When the second result does not belong to the fourth range, the control node generates and forwards a fourth alarm.
可选的,optional,
所述802具体包括:所述控制节点向源代理节点发送所述第一测量指令,以指示所述源代理节点向所述源探测节点转发所述第一测量指令;所述控制节点向目的代理节点发送所述第二测量指令,以指示所述目的代理节点向所述目的探测节点转发所述第二测量指令;The
所述803具体为:所述控制节点接收所述源代理节点转发的所述第一结果,所述第一结果是由所述源探测节点发送到所述源代理节点的。The
可选的,所述控制节点接收所述目的探测节点发送的第二结果,具体为:所述控制节点接收所述目的代理节点转发的所述第二结果,所述第二结果是由所述目的探测节点发送到所述目的代理节点的。Optionally, the control node receives the second result sent by the destination detection node, specifically: the control node receives the second result forwarded by the destination proxy node, where the second result is sent by the destination proxy node. sent by the destination probe node to the destination proxy node.
可选的,optional,
所述控制节点接收所述源探测节点发送的第一告警,具体为:所述控制节点接收所述源代理节点转发的所述第一告警,所述第一告警是由所述源探测节点发送到所述源代理节点的;The control node receives the first alarm sent by the source detection node, specifically: the control node receives the first alarm forwarded by the source proxy node, where the first alarm is sent by the source detection node to the source agent node;
所述控制节点接收所述目的探测节点发送的第二告警,具体为:所述控制节点接收所述目的代理节点转发的所述第二告警,所述第二告警是由所述目的探测节点发送到所述目的代理节点的。The control node receives the second alarm sent by the destination detection node, specifically: the control node receives the second alarm forwarded by the destination proxy node, where the second alarm is sent by the destination detection node to the destination proxy node.
可选的,所述源代理节点与所述目的代理节点是同一代理节点;Optionally, the source proxy node and the destination proxy node are the same proxy node;
在所述802之前,所述方法还包括:Before the 802, the method further includes:
所述控制节点获取所述源代理节点到所述源探测节点的第一路由和所述源探测节点到所述源代理节点的第二路由,向所述源代理节点发送所述第一路由,向所述源探测节点发送所述第二路由,所述第一路由用于所述源代理节点向所述源探测节点转发所述第一测量指令,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果;obtaining, by the control node, a first route from the source proxy node to the source detection node and a second route from the source detection node to the source proxy node, and sending the first route to the source proxy node, Sending the second route to the source detection node, where the first route is used by the source proxy node to forward the first measurement instruction to the source detection node, and the second route is used for the source detection node the node sends the first result to the source proxy node;
所述控制节点获取所述目的代理节点到所述目的探测节点的第三路由,向所述目的代理节点发送所述第三路由,所述第三路由用于所述目的代理节点向所述目的探测节点转发所述第二测量指令。The control node acquires a third route from the destination proxy node to the destination detection node, and sends the third route to the destination proxy node, where the third route is used by the destination proxy node to send the destination proxy node to the destination proxy node. The probe node forwards the second measurement instruction.
可选的,所述源代理节点是源物理服务器中的一个进程,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the source proxy node is a process in the source physical server, and the destination proxy node is a process in the destination physical server;
在所述802之前,所述方法还包括:Before the 802, the method further includes:
所述控制节点向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,所述第一控制信息用于指示所述源代理节点在所述源物理服务器中创建第一虚拟机和所述源探测节点,所述第二控制信息用于指示所述目的代理节点在所述目的物理服务器中创建第二虚拟机和所述目的探测节点,其中,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机,所述目的探测节点是所述第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机;The control node sends first control information to the source proxy node and sends second control information to the destination proxy node, where the first control information is used to instruct the source proxy node to create in the source physical server a first virtual machine and the source detection node, the second control information is used to instruct the destination proxy node to create a second virtual machine and the destination detection node in the destination physical server, wherein the source detection node A node is a process in the first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the source physical server, and the destination detection node is the second virtual machine A process in the machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server;
所述控制节点为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源代理节点通信;The control node designates a first port on the source virtual switch for the source detection node and a second port on the destination virtual switch for the destination detection node, and the source detection node can pass the first port through the first port. A port communicates with the destination detection node, and the destination detection node can communicate with the source proxy node through the second port;
所述控制节点建立包含所述第一端口与所述第二端口的虚拟局域网;所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文。The control node establishes a virtual local area network including the first port and the second port; the virtual local area network is used to transmit the probe request message and the probe response message.
需要说明的是,本发明实施例中的控制节点相当于前述图2所示的实施例中的控制节点201。本实施例中控制节点执行的方法的各种具体实施方式,均可以参见前述图2所示的实施例的详细介绍,此处不再赘述。It should be noted that the control node in the embodiment of the present invention is equivalent to the
在本实施例的技术方案中,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,控制节点在接收到测量请求的情况下可以按照测量请求指示的需求灵活地向与相应的探测节点下发测量指令并接收返回的测量结果,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,用户通过测量请求也可以灵活地指示网络性能参数的类型等其他需求,控制节点可以按照测量请求的指示灵活地获取符合用户的各项需求的测量结果并反馈给用户。因此,数据中心能够灵活地满足用户对网络性能测量的各项需求。In the technical solution of this embodiment, the user can flexibly designate the virtual client that needs to measure the network performance through the measurement request according to their own needs, and the control node can flexibly send the request to the measurement request when receiving the measurement request. The data center can flexibly measure and feed back the network performance between virtual clients according to user requirements. In addition, the user can also flexibly indicate other requirements such as the type of network performance parameters through the measurement request, and the control node can flexibly obtain measurement results that meet the user's requirements and feed it back to the user according to the measurement request. Therefore, the data center can flexibly meet the various needs of users for network performance measurement.
图9所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所示方法例如具体可以包括:FIG. 9 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the shown method, for example, may specifically include:
901、源探测节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;901. The source detection node receives a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to The result of the performance of the link of the destination virtual client;
902、所述源探测节点基于所述测量指令向目的探测节点发送探测请求报文;902. The source detection node sends a detection request message to a destination detection node based on the measurement instruction;
903、所述源探测节点接收所述目的探测节点发送的探测响应报文,并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;903. The source detection node receives the detection response packet sent by the destination detection node, and generates a result according to the detection request packet and the detection response packet, where the result is used to identify the source detection node to the destination detection node. The performance of the link of the destination detection node, the detection response message is sent by the destination detection node corresponding to the detection request message;
904、所述源探测节点向所述控制节点发送所述结果,以便所述控制节点转发所述结果;904. The source detection node sends the result to the control node, so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求和所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, both the measurement request and the measurement instruction carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier used to identify the source virtual client to the destination virtual client. The type of indicator to which the link performance result belongs.
可选的,所述902具体包括:Optionally, the 902 specifically includes:
所述源探测节点根据所述测量指令中的所述类型,确定所述探测请求报文的发送方式;The source detection node determines a transmission mode of the detection request message according to the type in the measurement instruction;
所述源探测节点按照所述发送方式,向所述目的探测节点发送所述探测请求报文。The source detection node sends the detection request message to the destination detection node according to the sending manner.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述物理服务器的两个虚拟机;所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机。Optionally, the source detection node is a process in a first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the physical server; the destination detection node is A process in a second virtual machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server.
可选的,所述方法还包括:Optionally, the method further includes:
所述源探测节点确定所述结果是否属于范围;the source probe node determines whether the result is in scope;
当所述结果不属于所述范围时,所述源探测节点生成告警;When the result does not belong to the range, the source detection node generates an alarm;
所述源探测节点向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The source detection node sends the alarm to the control node so that the control node forwards the alarm.
可选的,optional,
所述901具体为:所述源探测节点接收源代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述源代理节点的;The 901 is specifically: the source detection node receives the measurement instruction forwarded by the source proxy node, and the measurement instruction is sent by the control node to the source proxy node;
所述904具体为:所述源探测节点向所述源代理节点发送所述结果,以便所述源代理节点向所述控制节点发送所述结果。The 904 is specifically: the source detection node sends the result to the source proxy node, so that the source proxy node sends the result to the control node.
可选的,optional,
所述源探测节点向所述控制节点发送所述告警,具体为:所述源探测节点向所述源代理节点发送所述告警,以便所述源代理节点向所述控制节点转发所述告警。The source detection node sending the alarm to the control node is specifically: the source detection node sends the alarm to the source proxy node, so that the source proxy node forwards the alarm to the control node.
可选的,所述方法还包括:Optionally, the method further includes:
所述源探测节点对所述测量指令进行验证,并在验证通过的情况下向所述目的探测节点发送所述探测请求报文;The source detection node verifies the measurement instruction, and sends the detection request message to the destination detection node when the verification is passed;
其中,所述测量指令是所述源代理节点签名之后转发给所述源探测节点的。The measurement instruction is forwarded to the source detection node after being signed by the source proxy node.
需要说明的是,本发明实施例中的源探测节点相当于前述图2所示的实施例中的源探测节点202。本实施例中源探测节点执行的方法的各种具体实施方式,均可以参见前述图2所示的实施例关于源探测节点202的详细介绍,此处不再赘述。It should be noted that the source detection node in the embodiment of the present invention is equivalent to the
在本实施例的技术方案中,网络系统中为虚拟客户机部署有探测节点,其中,探测节点的端口与虚拟客户机的端口均连接在同一虚拟交换机上。因此,相对于物理路由器之间传输报文的路径,所述探测节点之间传输报文的路径和虚拟客户机之间传输报文的路径是更接近的,因此,通过探测节点之间传输报文得到的网络性能的测量结果更接近于虚拟客户机之间的网络性能。此外,源探测节点接收到的测量指令是控制节点按照测量请求指示的用户需求而下发的,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。In the technical solution of this embodiment, a detection node is deployed for the virtual client in the network system, wherein the port of the detection node and the port of the virtual client are both connected to the same virtual switch. Therefore, compared with the path for transmitting packets between physical routers, the path for transmitting packets between the detection nodes and the path for transmitting packets between virtual clients are closer. Therefore, through the transmission of packets between detection nodes The network performance measurements obtained in this paper are closer to the network performance between virtual clients. In addition, the measurement instruction received by the source detection node is issued by the control node according to the user requirements indicated by the measurement request. It can be seen that the user can flexibly specify the virtual client that needs to measure the network performance through the measurement request according to his own needs. Therefore, The data center can flexibly measure and feedback network performance between virtual clients according to user needs.
图10所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如具体可以包括:FIG. 10 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may specifically include, for example:
1001、目的探测节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;1001. The destination detection node receives a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to The result of the performance of the link of the destination virtual client;
1002、所述目的探测节点接收源探测节点发送的探测请求报文;1002. The destination detection node receives a detection request message sent by the source detection node;
1003、所述目的探测节点基于所述测量指令向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点与所述目的探测节点的链路的性能,所述第一结果被所述控制节点用于转发;1003. The destination detection node sends a detection response packet corresponding to the detection request packet to the source detection node based on the measurement instruction, where the detection request packet and the detection response packet are used by the source detection node. in generating a first result and sending it to the control node, the first result is used to identify the performance of the link between the source detection node and the destination detection node, and the first result is used by the control node for Forward;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request and the measurement instruction both carry the identifier of the source virtual client and the identifier of the destination virtual client, and the measurement request is used to instruct the control node to feed back for the identifier. The type of metric that the result of the performance of the link from the source virtual client to the destination virtual client belongs to.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的探测节点根据所述探测请求报文生成第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;generating, by the destination detection node, a second result according to the detection request message, where the second result is used to identify the performance of the link from the source detection node to the destination detection node;
所述目的探测节点向所述控制节点发送所述第二结果,以便所述控制节点转发所述第二结果。The destination detection node sends the second result to the control node, so that the control node forwards the second result.
可选的,还包括:Optionally, also include:
所述目的探测节点确定所述第二结果是否属于范围;the destination detection node determines whether the second result belongs to a range;
当所述第二结果不属于所述范围时,所述目的探测节点生成告警;When the second result does not belong to the range, the destination detection node generates an alarm;
所述目的探测节点向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The destination detection node sends the alarm to the control node, so that the control node forwards the alarm.
可选的,所述1001具体为:所述目的探测节点接收目的代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述目的代理节点。Optionally, the 1001 is specifically: the destination detection node receives the measurement instruction forwarded by the destination proxy node, where the measurement instruction is sent by the control node to the destination proxy node.
可选的,所述目的探测节点向所述控制节点发送所述第二结果,具体为:所述目的探测节点向所述目的代理节点发送所述结果,以便所述目的代理节点向所述控制节点转发所述第二结果。Optionally, the destination detection node sends the second result to the control node, specifically: the destination detection node sends the result to the destination proxy node, so that the destination proxy node sends the control node to the control node. The node forwards the second result.
可选的,所述目的探测节点向所述控制节点发送所述告警,具体为:所述目的探测节点向所述目的代理节点发送所述告警,以便所述目的代理节点向所述控制节点转发所述告警。Optionally, the destination detection node sends the alarm to the control node, specifically: the destination detection node sends the alarm to the destination proxy node, so that the destination proxy node forwards the alarm to the control node the alert.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的探测节点对所述测量指令进行验证,并在验证通过的情况下接收所述源探测节点发送的所述探测请求报文;The destination detection node verifies the measurement instruction, and receives the detection request message sent by the source detection node when the verification is passed;
其中,所述测量指令是所述目的代理节点签名之后转发给所述目的探测节点的。The measurement instruction is forwarded to the destination detection node after being signed by the destination proxy node.
需要说明的是,本发明实施例中的目的探测节点相当于前述图2所示的实施例中的目的探测节点203。本实施例中目的探测节点执行的方法的各种具体实施方式,均可以参见前述图2所示的实施例关于目的探测节点203的详细介绍,此处不再赘述。It should be noted that, the destination detection node in the embodiment of the present invention is equivalent to the
在本实施例的技术方案中,网络系统中为虚拟客户机部署有探测节点,其中,探测节点的端口与虚拟客户机的端口均连接在同一虚拟交换机上。因此,相对于物理路由器之间传输报文的路径,所述探测节点之间传输报文的路径和虚拟客户机之间传输报文的路径是更接近的,因此,通过探测节点之间传输报文得到的网络性能的测量结果更接近于虚拟客户机之间的真实网络性能。此外,目的探测节点接收到的测量指令是控制节点按照用户测量请求指示的用户需求而下发的,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。In the technical solution of this embodiment, a detection node is deployed for the virtual client in the network system, wherein the port of the detection node and the port of the virtual client are both connected to the same virtual switch. Therefore, compared with the path for transmitting packets between physical routers, the path for transmitting packets between the detection nodes and the path for transmitting packets between virtual clients are closer. Therefore, through the transmission of packets between detection nodes The network performance measurements obtained in this paper are closer to the real network performance between virtual clients. In addition, the measurement instruction received by the destination detection node is issued by the control node according to the user requirements indicated by the user measurement request. It can be seen that the user can flexibly specify the virtual client that needs to measure the network performance through the measurement request according to his own requirements. Therefore, , the data center can flexibly measure and feedback network performance between virtual clients according to user needs.
图11所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如具体可以包括:FIG. 11 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may specifically include, for example:
1101、源代理节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;1101. The source proxy node receives a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to The result of the performance of the link of the destination virtual client;
1102、所述源代理节点向源探测节点转发所述测量指令,以指示所述源探测节点向目的探测节点发送探测请求报文、接收所述目的探测节点发送的探测响应报文并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;1102. The source proxy node forwards the measurement instruction to the source detection node, so as to instruct the source detection node to send a detection request message to the destination detection node, receive a detection response message sent by the destination detection node, and perform the measurement according to the A probe request message and a result of generating the probe response message, the result is used to identify the performance of the link from the source probe node to the destination probe node, and the probe response message corresponds to the destination probe node. Sent by the probe request message;
1103、所述源代理节点接收所述源探测节点发送的所述结果;1103. The source proxy node receives the result sent by the source detection node;
1104、所述源代理节点向所述控制节点转发所述结果,以便所述控制节点转发所述结果;1104. The source proxy node forwards the result to the control node, so that the control node forwards the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述方法还包括:Optionally, the method further includes:
所述源代理节点接收所述源探测节点发送的告警,所述告警是所述源探测节点在确定所述结果不属于范围时生成的;receiving, by the source proxy node, an alarm sent by the source detection node, where the alarm is generated by the source detection node when it is determined that the result does not belong to the scope;
所述源代理节点向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The source proxy node forwards the alarm to the control node so that the control node forwards the alarm.
可选的,在所述1102之前,所述方法还包括:Optionally, before the 1102, the method further includes:
所述源代理节点对所述测量指令中进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The source proxy node signs the measurement instruction; the signed measurement instruction is used for verification by the source detection node and sends the detection request message to the destination detection node when the verification is passed.
可选的,所述源代理节点是源物理服务器中的一个进程;Optionally, the source agent node is a process in the source physical server;
在所述源代理节点接收所述测量指令之前,所述方法还包括:Before the source proxy node receives the measurement instruction, the method further includes:
所述源代理节点接收所述控制节点发送的控制信息;receiving, by the source agent node, the control information sent by the control node;
所述源代理节点基于所述控制信息在所述源物理服务器中创建虚拟机和所述源探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。The source proxy node creates a virtual machine and the source detection node in the source physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
需要说明的是,本发明实施例中的源代理节点相当于前述图2所示的实施例中的源代理节点301。本实施例中源代理节点执行的方法的各种具体实施方式,均可以参见前述图2所示的实施例的详细介绍,此处不再赘述。It should be noted that the source proxy node in the embodiment of the present invention is equivalent to the source proxy node 301 in the embodiment shown in the foregoing FIG. 2 . For various specific implementations of the method performed by the source proxy node in this embodiment, reference may be made to the detailed introduction of the embodiment shown in FIG. 2 above, and details are not repeated here.
在本实施例的技术方案中,源代理节点接收到的测量指令是控制节点按照测量请求指示的用户需求而下发的,源代理节点需要按照测量指令的指示向符合用户需求的源探测节点发送测量指令,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,对于源探测节点测量到的网络性能参数,源代理节点可以经过整理、统计和分析之后再返回给控制节点。控制节点与源探测节点之间的信息交互通过源代理节点转发,源代理节点可以通过签名的方式来保证信息交互的安全。源代理节点可以按照控制节点的控制在源物理服务器中动态地创建源探测节点,这样源探测节点在没有测量需求的情况下不会占用源物理服务器的资源。In the technical solution of this embodiment, the measurement instruction received by the source proxy node is issued by the control node according to the user requirement indicated by the measurement request, and the source proxy node needs to send the measurement instruction to the source detection node that meets the user requirement according to the instruction of the measurement instruction. From the measurement instruction, it can be seen that the user can flexibly specify the virtual client that needs to measure the network performance through the measurement request according to his own needs. Therefore, the data center can flexibly measure and feedback the network performance between the virtual clients according to the user's needs. In addition, for the network performance parameters measured by the source detection node, the source proxy node can return to the control node after sorting, statistics and analysis. The information interaction between the control node and the source detection node is forwarded by the source proxy node, and the source proxy node can ensure the security of the information interaction by means of signature. The source agent node can dynamically create the source probe node in the source physical server according to the control of the control node, so that the source probe node will not occupy the resources of the source physical server without measurement requirements.
图12所示的是本发明实施例中一种测量网络性能的方法的流程示意图。在本实施例中,所述方法例如具体可以包括:FIG. 12 is a schematic flowchart of a method for measuring network performance in an embodiment of the present invention. In this embodiment, the method may specifically include, for example:
1201、目的代理节点接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;1201. The destination proxy node receives a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual client to the destination. The result of the performance of the link of the destination virtual client;
1202、所述目的代理节点向目的探测节点转发所述测量指令,以指示所述目的探测节点接收源探测节点发送的探测请求报文并向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,第一结果被所述控制节点用于转发;1202. The destination proxy node forwards the measurement instruction to the destination probe node, so as to instruct the destination probe node to receive the probe request message sent by the source probe node and send to the source probe node a message corresponding to the probe request message. A probe response message, where the probe request message and the probe response message are used by the source probe node to generate a first result and send it to the control node, where the first result is used to identify the source probe the performance of the link from the node to the destination detection node, and the first result is used for forwarding by the control node;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的代理节点接收所述目的探测节点发送的第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;The destination proxy node receives a second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the source detection node the performance of the link from the node to the destination probe node;
所述目的代理节点向所述控制节点转发所述第二结果,以便所述控制节点转发所述第二结果。The destination proxy node forwards the second result to the control node so that the control node forwards the second result.
可选的,所述方法还包括:Optionally, the method further includes:
所述目的代理节点接收所述目的探测节点发送的告警,所述告警是所述目的探测节点在确定所述第二结果不属于范围时生成的;receiving, by the destination proxy node, an alarm sent by the destination detection node, where the alarm is generated by the destination detection node when it is determined that the second result does not belong to the scope;
所述目的代理节点向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The destination proxy node forwards the alarm to the control node, so that the control node forwards the alarm.
可选的,在所述1202之前,还包括:Optionally, before the 1202, it further includes:
所述目的代理节点对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The destination proxy node signs the measurement instruction; the signed measurement instruction is used for verification by the source detection node and sends the detection request message to the destination detection node when the verification is passed.
可选的,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the destination proxy node is a process in the destination physical server;
在所述1201之前,所述方法还包括:Before the 1201, the method further includes:
所述目的代理节点接收所述控制节点发送的控制信息;receiving, by the destination proxy node, the control information sent by the control node;
所述目的代理节点基于所述控制信息在所述目的物理服务器中创建虚拟机和所述目的探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。The destination proxy node creates a virtual machine and the destination detection node in the destination physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
需要说明的是,本发明实施例中的目的代理节点相当于前述图2所示的实施例中的目的代理节点302。本实施例中目的代理节点执行的方法的各种具体实施方式,均可以参见前述图2所示的实施例的详细介绍,此处不再赘述。It should be noted that, the destination proxy node in the embodiment of the present invention is equivalent to the destination proxy node 302 in the embodiment shown in the foregoing FIG. 2 . For various specific implementation manners of the method performed by the destination proxy node in this embodiment, reference may be made to the detailed introduction of the embodiment shown in FIG. 2, which is not repeated here.
在本实施例的技术方案中,目的代理节点接收到的测量指令是控制节点按照用户测量请求指示的用户需求而下发给的,目的代理节点需要按照测量指令的指示向符合用户需求的目的探测节点发送测量指令,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,对于目的探测节点测量到的网络性能参数,目的代理节点可以经过整理、统计和分析之后再返回给控制节点。控制节点与目的探测节点之间的信息交互通过目的代理节点转发,目的代理节点可以通过签名的方式来保证信息交互的安全。目的代理节点可以按照控制节点在目的物理服务器中动态地创建目的探测节点,这样目的探测节点在没有测量需求的情况下不会占用目的物理服务器的资源。In the technical solution of this embodiment, the measurement instruction received by the destination proxy node is issued by the control node according to the user demand indicated by the user measurement request, and the destination proxy node needs to detect the purpose that meets the user demand according to the instruction of the measurement instruction The node sends the measurement instruction. It can be seen that the user can flexibly specify the virtual client that needs to measure the network performance through the measurement request according to their own needs. Therefore, the data center can flexibly measure and feedback the network performance between the virtual clients according to the user's needs. In addition, for the network performance parameters measured by the destination detection node, the destination proxy node can return to the control node after sorting, statistics and analysis. The information interaction between the control node and the destination detection node is forwarded by the destination proxy node, and the destination proxy node can ensure the security of the information interaction by means of signature. The destination proxy node can dynamically create the destination detection node in the destination physical server according to the control node, so that the destination detection node will not occupy the resources of the destination physical server when there is no measurement requirement.
图13所示的是本发明实施例中一种测量网络性能的装置的结构示意图。在本实施例中,所述装置1300部署有控制节点。所述装置1300例如具体可以包括:FIG. 13 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention. In this embodiment, the
第一接收单元1301,用于接收测量请求,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;a
第一发送单元1302,用于向源探测节点发送第一测量指令并向目的探测节点发送第二测量指令,所述第一测量指令用于指示源探测节点向目的探测节点发送探测请求报文、接收对应所述探测请求报文的探测响应报文并根据所述探测请求报文和所述探测响应报文生成第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述第二测量指令用于指示所述目的探测节点向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;The
第二接收单元1303,用于接收所述源探测节点发送的所述第一结果;A
第一转发单元1304,用于转发所述第一结果;a
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
举例来说,图13所示的装置1300可以用于执行图8所示的方法。具体地,第一接收单元1301可以用于执行图8中的801。第一发送单元1302可以用于执行图8中的802。第二接收单元1303和第一反馈单元1304可以用于执行图8中的803。For example, the
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the result of the virtual guest-to-destination virtual guest link belongs.
可选的,所述装置1300还包括:Optionally, the
第三接收单元,用于接收所述目的探测节点发送的所述第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;a third receiving unit, configured to receive the second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the performance of the link from the source probe node to the destination probe node;
第二转发单元,用于转发所述第二结果。A second forwarding unit, configured to forward the second result.
可选的,所述装置1300还包括:Optionally, the
第四接收单元,用于接收所述源探测节点发送的第一告警,所述第一告警是所述源探测节点在确定所述第一结果不属于第一范围时生成并发送的;a fourth receiving unit, configured to receive a first alarm sent by the source detection node, where the first alarm is generated and sent by the source detection node when it is determined that the first result does not belong to the first range;
第三转发单元,用于转发所述第一告警;a third forwarding unit, configured to forward the first alarm;
第五接收单元,用于接收所述目的探测节点发送的第二告警,所述第二告警是所述目的探测节点在确定所述第二不属于第二范围时生成并发送的;a fifth receiving unit, configured to receive a second alarm sent by the destination detection node, where the second alarm is generated and sent by the destination detection node when it is determined that the second does not belong to the second range;
第四转发单元,用于转发所述第二告警。a fourth forwarding unit, configured to forward the second alarm.
可选的,所述装置1300还包括:Optionally, the
第一确定单元,用于确定所述第一结果是否属于第三范围;a first determining unit, configured to determine whether the first result belongs to a third range;
第五转发单元,用于当所述第一结果不属于所述第三范围时,生成第三网络性能告警信息并转发;a fifth forwarding unit, configured to generate and forward third network performance alarm information when the first result does not belong to the third range;
第二确定单元,用于确定所述第二结果是否属于第四范围;a second determination unit, configured to determine whether the second result belongs to the fourth range;
第六反馈单元,用于当所述第二结果不属于所述第四范围时,生成第四网络性能告警信息并转发。A sixth feedback unit, configured to generate and forward fourth network performance alarm information when the second result does not belong to the fourth range.
可选的,optional,
所述第一发送单元1302,具体用于向源代理节点发送所述第一测量指令,以指示所述源代理节点向所述源探测节点转发所述第一测量指令,以及,向目的代理节点发送所述第二测量指令,以指示所述目的代理节点向所述目的探测节点转发所述第二测量指令;The
所述第二接收单元1303,具体用于接收所述源代理节点转发的所述第一结果,所述第一结果是由所述源探测节点发送到所述源代理节点的。The
可选的,所述第三接收单元,具体用于接收所述目的代理节点转发的所述第二结果,所述第二结果是由所述目的探测节点发送到所述目的代理节点的。Optionally, the third receiving unit is specifically configured to receive the second result forwarded by the destination proxy node, where the second result is sent by the destination detection node to the destination proxy node.
可选的,optional,
所述第四接收单元,具体用于接收所述源代理节点转发的所述第一告警,所述第一告警是由所述源探测节点发送到所述源代理节点的;The fourth receiving unit is specifically configured to receive the first alarm forwarded by the source proxy node, where the first alarm is sent by the source detection node to the source proxy node;
所述第五接收单元,具体用于接收所述目的代理节点转发的所述第二告警,所述第二告警是由所述目的探测节点发送到所述目的代理节点的。The fifth receiving unit is specifically configured to receive the second alarm forwarded by the destination proxy node, where the second alarm is sent by the destination detection node to the destination proxy node.
可选的,所述源代理节点与所述目的代理节点是同一代理节点;Optionally, the source proxy node and the destination proxy node are the same proxy node;
所述装置1300还包括:The
第一获取单元,用于获取所述源代理节点到所述源探测节点的第一路由并向所述源代理节点发送,所述第一路由用于所述源代理节点向所述源探测节点转发所述第一测量指令a first obtaining unit, configured to obtain a first route from the source proxy node to the source detection node and send it to the source proxy node, where the first route is used by the source proxy node to send to the source detection node forward the first measurement instruction
第二获取单元,用于获取所述源探测节点到所述源代理节点的第二路由并向所述源探测节点发送,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果;a second obtaining unit, configured to obtain a second route from the source detection node to the source proxy node and send it to the source detection node, where the second route is used from the source detection node to the source proxy node sending the first result;
第三获取单元,用于获取所述目的代理节点到所述目的探测节点的第二路由并向所述目的代理节点发送,所述第二路由用于所述目的代理节点向所述目的探测节点转发所述第二测量指令。a third acquiring unit, configured to acquire a second route from the destination proxy node to the destination detection node and send it to the destination proxy node, where the second route is used by the destination proxy node to send the destination detection node Forward the second measurement instruction.
可选的,所述源代理节点是源物理服务器中的一个进程,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the source proxy node is a process in the source physical server, and the destination proxy node is a process in the destination physical server;
所述装置1300还包括:The
第二发送单元,用于向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,所述第一控制信息用于指示所述源代理节点在所述源物理服务器中创建第一虚拟机和所述源探测节点,所述第二控制信息用于指示所述目的代理节点在所述目的物理服务器中创建第二虚拟机和所述目的探测节点,其中,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机,所述目的探测节点是所述第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机;a second sending unit, configured to send first control information to the source proxy node and send second control information to the destination proxy node, where the first control information is used to instruct the source proxy node in the source physical A first virtual machine and the source detection node are created in the server, and the second control information is used to instruct the destination proxy node to create a second virtual machine and the destination detection node in the destination physical server, wherein all the The source detection node is a process in the first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the source physical server, and the destination detection node is the A process in a second virtual machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server;
指定单元,用于为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源代理节点通信;a specifying unit, configured to specify a first port on the source virtual switch for the source detection node and a second port on the destination virtual switch for the destination detection node, the source detection node can pass the The first port communicates with the destination detection node, and the destination detection node can communicate with the source proxy node through the second port;
建立单元,用于建立包含所述第一端口与所述第二端口的虚拟局域网;所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文。The establishment unit is configured to establish a virtual local area network including the first port and the second port; the virtual local area network is configured to transmit the probe request message and the probe response message.
需要说明的是,本发明实施例中的装置1300部署有前述图2所示的实施例中的控制节点201。本实施例中装置1400的各种具体实施方式,均可以参见前述图2所示的实施例关于控制节点201的详细介绍,此处不再赘述。It should be noted that, the
通过本实施例的装置1300,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,第一接收单元1301在接收到测量请求的情况下,第一发送单元1302可以按照测量请求指示的用户需求灵活地向与相应的探测节点下发测量指令,第二接收单元1303可以接收返回的网络性能参数作为测量结果,第一转发单元1304可以将测量结果向用户反馈,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,用户通过测量请求也可以灵活地指示网络性能参数的类型等其他需求,所述装置1300可以按照测量请求的指示灵活地获取符合用户各项需求的测量结果并反馈给用户。因此,数据中心能够灵活地满足用户对网络性能测量的各项需求。With the
图14所示的是本发明实施例中一种测量网络性能的装置的结构示意图。在本实施例中,所述装置1400中部署有源探测节点所述装置。所述装置1400例如具体可以包括:FIG. 14 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention. In this embodiment, an active detection node is deployed in the
第一接收单元1401,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The
第一发送单元1402,用于基于所述测量指令向目的探测节点发送探测请求报文;a
第二接收单元1403,用于接收所述目的探测节点发送的探测响应报文;The
第一生成单元1404,用于根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;A
第二发送单元1405,用于向所述控制节点发送所述结果,以便所述控制节点转发所述结果;a
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
举例来说,图14所示的装置1400可以用于执行图9所示的方法。具体地,第一接收单元1401可以用于执行图9中的901。第一发送单元1402可以用于执行图9中的902。第二接收单元1403和第一生成单元1404可以用于执行图9中的903。第二发送单元1405可以用于执行图9中的904。For example, the
可选的,所述测量请求和所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, both the measurement request and the measurement instruction carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier used to identify the source virtual client to the destination virtual client. The type of indicator to which the link performance result belongs.
可选的,所述第一发送单元1402,具体用于:Optionally, the
根据所述测量指令中的所述类型,确定所述探测请求报文的发送方式;determining the sending mode of the probe request message according to the type in the measurement instruction;
按照所述发送方式,向所述目的探测节点发送所述探测请求报文。According to the sending manner, the probe request message is sent to the destination probe node.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server.
可选的,所述装置1400还包括:Optionally, the
确定单元,用于确定所述结果是否属于范围;a determination unit for determining whether the result belongs to a range;
第二生成单元,用于当所述结果不属于所述范围时,生成告警;a second generating unit, configured to generate an alarm when the result does not belong to the range;
第三发送单元,用于向所述控制节点发送所述告警,以便所述控制节点转发所述告警。A third sending unit, configured to send the alarm to the control node, so that the control node forwards the alarm.
可选的,optional,
所述第二接收单元1403,具体用于接收源代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述源代理节点的;The
所述第二发送单元1405,具体用于向所述源代理节点发送所述结果,以便所述源代理节点向所述控制节点转发所述结果。The
可选的,所述第三发送单元,具体用于向所述源代理节点发送所述告警,以便所述源代理节点向所述控制节点转发所述告警。Optionally, the third sending unit is specifically configured to send the alarm to the source proxy node, so that the source proxy node forwards the alarm to the control node.
可选的,所述装置1400还包括:Optionally, the
验证单元,用于对所述测量指令中的签名进行验证,所述测量指令是所述源代理节点签名之后转发给所述源探测节点的;a verification unit, configured to verify the signature in the measurement instruction, and the measurement instruction is forwarded to the source detection node after being signed by the source agent node;
触发单元,用于在验证通过的情况下触发所述第一发送单元1402。A triggering unit, configured to trigger the
需要说明的是,本发明实施例中的装置1400部署有前述图2所示的实施例中的源探测节点202。本实施例中装置1400的各种具体实施方式,均可以参见前述图2所示的实施例关于源探测节点202的详细介绍,此处不再赘述。It should be noted that, the
在本实施例的装置1400中,网络系统中为虚拟客户机部署有探测节点,其中,探测节点的端口与虚拟客户机的端口均连接在同一虚拟交换机上。因此,相对于物理路由器之间传输报文的路径,所述探测节点之间传输报文的路径和虚拟客户机之间传输报文的路径是更接近的,因此,通过探测节点之间传输报文得到的网络性能的测量结果更接近于虚拟客户机之间的网络性能。此外,第一接收单元1401接收到的测量指令是控制节点按照测量请求指示的用户需求而下发的,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。In the
图15所示的是本发明实施例中一种测量网络性能的装置的结构示意图。在本实施例中,所述装置1500部署有目的探测节点。所述装置1500例如具体可以包括:FIG. 15 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention. In this embodiment, the apparatus 1500 deploys a purposeful detection node. For example, the apparatus 1500 may specifically include:
第一接收单元1501,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The first receiving unit 1501 is configured to receive a measurement instruction sent by a control node, where the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back for identifying the source virtual Results of the performance of the link from the guest to the destination virtual guest;
第二接收单元1502,用于接收源探测节点发送的探测请求报文;The second receiving unit 1502 is configured to receive the probe request message sent by the source probe node;
返回单元1503,用于基于所述测量指令向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,第一结果用于标识所述源探测节点到所述目的探测节点之间的链路的性能,第一结果被所述控制节点用于转发;Returning unit 1503, configured to send a probe response packet corresponding to the probe request packet to the source probe node based on the measurement instruction, where the probe request packet and the probe response packet are sent to the source probe node by the source probe node is used to generate and send the first result to the control node, where the first result is used to identify the performance of the link between the source detection node and the destination detection node, and the first result is used by the control node for forwarding ;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
举例来说,图15所示的装置1500可以用于执行图10所示的方法。具体地,第一接收单元1501可以用于执行图10中的1001。第二接收单元1402可以用于执行图10中的1002。返回单元1503可以用于执行图10中的1003。For example, the apparatus 1500 shown in FIG. 15 can be used to perform the method shown in FIG. 10 . Specifically, the first receiving unit 1501 may be used to execute 1001 in FIG. 10 . The
可选的,所述测量请求、所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request and the measurement instruction both carry the identifier of the source virtual client and the identifier of the destination virtual client, and the measurement request is used to instruct the control node to feed back for the identifier. The type of metric that the result of the performance of the link from the source virtual client to the destination virtual client belongs to.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,optional,
所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;The source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server;
所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。The destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,所述装置1500还包括:Optionally, the apparatus 1500 further includes:
第一生成单元,用于根据所述探测请求报文生成第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;a first generating unit, configured to generate a second result according to the probe request message, where the second result is used to identify the performance of the link from the source probe node to the destination probe node;
第一发送单元,用于向所述控制节点发送所述第二结果,以便所述控制节点转发所述第二结果。A first sending unit, configured to send the second result to the control node, so that the control node forwards the second result.
可选的,所述装置1500还包括:Optionally, the apparatus 1500 further includes:
确定单元,用于确定所述第二结果是否属于范围;a determining unit, configured to determine whether the second result belongs to a range;
第二生成单元,用于当所述第二结果不属于所述范围时,生成告警;a second generating unit, configured to generate an alarm when the second result does not belong to the range;
第二发送单元,用于向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The second sending unit is configured to send the alarm to the control node, so that the control node forwards the alarm.
可选的,所述第一接收单元1501,具体用于接收目的代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述目的代理节点。Optionally, the first receiving unit 1501 is specifically configured to receive the measurement instruction forwarded by a destination proxy node, where the measurement instruction is sent by the control node to the destination proxy node.
可选的,所述第一发送单元,具体用于向所述目的代理节点发送所述第二结果,以便所述目的代理节点向所述控制节点转发所述第二结果。Optionally, the first sending unit is specifically configured to send the second result to the destination proxy node, so that the destination proxy node forwards the second result to the control node.
可选的,所述第二发送单元,具体用于向所述目的代理节点发送所述告警,以便所述目的代理节点向所述控制节点转发所述告警。Optionally, the second sending unit is specifically configured to send the alarm to the destination proxy node, so that the destination proxy node forwards the alarm to the control node.
可选的,所述装置1500还包括:Optionally, the apparatus 1500 further includes:
验证单元,用于对所述测量指令进行验证,所述测量指令是所述目的代理节点签名之后转发给所述目的探测节点的;a verification unit, configured to verify the measurement instruction, the measurement instruction is forwarded to the destination detection node after being signed by the destination proxy node;
触发单元,用于在验证通过的情况下触发所述第二接收单元。a triggering unit, configured to trigger the second receiving unit when the verification is passed.
需要说明的是,本发明实施例中的装置1500部署有前述图2所示的实施例中的目的探测节点203。本实施例中装置1500的各种具体实施方式,均可以参见前述图2所示的实施例关于目的探测节点203的详细介绍,此处不再赘述。It should be noted that, the apparatus 1500 in this embodiment of the present invention is deployed with the
在本实施例的装置1500中,网络系统中为虚拟客户机部署有探测节点,其中,探测节点的端口与虚拟客户机的端口均连接在同一虚拟交换机上。因此,相对于物理路由器之间传输报文的路径,所述探测节点之间传输报文的路径和虚拟客户机之间传输报文的路径是更接近的,因此,通过探测节点之间传输报文得到的网络性能的测量结果更接近于虚拟客户机之间的真实网络性能。此外,第一接收单元1501接收到的测量指令是控制节点按照用户测量请求指示的用户需求而下发的,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。In the apparatus 1500 of this embodiment, a detection node is deployed for the virtual client in the network system, wherein the port of the detection node and the port of the virtual client are both connected to the same virtual switch. Therefore, compared with the path for transmitting packets between physical routers, the path for transmitting packets between the detection nodes and the path for transmitting packets between virtual clients are closer. Therefore, through the transmission of packets between detection nodes The network performance measurements obtained in this paper are closer to the real network performance between virtual clients. In addition, the measurement instruction received by the first receiving unit 1501 is issued by the control node according to the user requirements indicated by the user measurement request. It can be seen that the user can flexibly specify the virtual client that needs to measure the network performance through the measurement request according to his own requirements. , so the data center can flexibly measure and feed back the network performance between virtual clients according to user needs.
图16所示的是本发明实施例中一种测量网络性能的装置的结构示意图。在本实施例中,所述装置1600配置有源代理节点,所述装置1600例如具体可以包括:FIG. 16 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention. In this embodiment, the
第一接收单元1601,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The
第一转发单元1602,用于向所述源探测节点转发所述测量指令,以指示所述源探测节点向目的探测节点发送探测请求报文、接收所述目的探测节点发送的探测响应报文并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;The
第二接收单元1603,接收所述源探测节点发送的所述结果;The
第二转发单元1604,用于向所述控制节点转发所述结果,以便所述控制节点转发所述结果;a
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
举例来说,图16所示的装置1600可以用于执行图11所示的方法。具体地,第一接收单元1601可以用于执行图11中的1101。第一转发单元1602可以用于执行图11中的1102。第二接收单元1603可以用于执行图11中的1103。第二转发单元1604可以用于执行图11中的1104。For example, the
可选的,所述装置1600还包括:Optionally, the
第三接收单元,用于接收所述源探测节点发送的告警,所述告警是所述源探测节点在确定所述结果不属于范围时生成的;a third receiving unit, configured to receive an alarm sent by the source detection node, where the alarm is generated by the source detection node when it is determined that the result does not belong to the range;
第三转发单元,用于向所述控制节点转发所述告警,以便所述控制节点转发所述告警。A third forwarding unit, configured to forward the alarm to the control node, so that the control node forwards the alarm.
可选的,所述装置1600还包括:Optionally, the
签名单元,用于在向所述源探测节点发送所述测量指令之前,对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The signature unit is used to sign the measurement instruction before sending the measurement instruction to the source detection node; the signed measurement instruction is used for verification by the source detection node and is sent to the source detection node when the verification is passed. The destination detection node sends the detection request message.
可选的,所述源代理节点是源物理服务器中的一个进程;Optionally, the source agent node is a process in the source physical server;
所述装置1600还包括:The
第四接收单元,用于接收所述控制节点发送的控制信息;a fourth receiving unit, configured to receive the control information sent by the control node;
创建单元,用于在接收所述测量指令之前,基于所述控制信息在所述源物理服务器中创建虚拟机和所述源探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A creation unit, configured to create a virtual machine and the source detection node in the source physical server based on the control information before receiving the measurement instruction, wherein the source detection node is the first virtual machine A process in the virtual machine and the source virtual client are two virtual machines located on the source physical server.
需要说明的是,本发明实施例中的装置1600部署有前述图2所示的实施例中的源代理节点301。本实施例中装置1600的各种具体实施方式,均可以参见前述图2所示的实施例关于源代理节点301的详细介绍,此处不再赘述。It should be noted that the
在本实施例的装置1600中,第一接收单元1601接收到的测量指令是控制节点按照测量请求指示的用户需求而下发的,第一发送单元1602需要按照测量指令的指示向符合用户需求的源探测节点发送测量指令,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,对于源探测节点测量到的网络性能参数,装置1600可以经过整理、统计和分析之后再经由第二发送单元1604返回给控制节点。控制节点与源探测节点之间的信息交互通过源代理节点转发,源代理节点可以通过签名的方式来保证信息交互的安全。装置1600可以按照控制节点的控制在源物理服务器中动态地创建源探测节点,这样源探测节点在没有测量需求的情况下不会占用源物理服务器的资源。In the
图17所示的是本发明实施例中一种测量网络性能的装置的结构示意图。在本实施例中,所述装置1700部署有目的代理节点,所述装置1700例如具体可以包括:FIG. 17 is a schematic structural diagram of an apparatus for measuring network performance in an embodiment of the present invention. In this embodiment, the
第一接收单元1701,用于接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;The
第一转发单元1702,用于向目的探测节点转发所述测量指令,以指示所述目的探测节点接收源探测节点发送的探测请求报文并向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,第一结果被所述控制节点用于转发;The
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
举例来说,图17所示的装置1700可以用于执行图12所示的方法。具体地,第一接收单元1701可以用于执行图12中的1201。第一转发单元1702可以用于执行图12中的1202。For example, the
可选的,所述装置1700还包括:Optionally, the
第二接收单元,用于接收所述目的探测节点发送的第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;A second receiving unit, configured to receive a second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the the performance of the link from the source probe node to the destination probe node;
第二转发单元,用于向所述控制节点转发所述第二结果,以便所述控制节点转发所述第二结果。A second forwarding unit, configured to forward the second result to the control node, so that the control node forwards the second result.
可选的,所述装置1700还包括:Optionally, the
第三接收单元,用于接收所述目的探测节点发送的告警,所述告警是所述目的探测节点在确定所述第二结果不属于范围时生成的;a third receiving unit, configured to receive an alarm sent by the destination detection node, where the alarm is generated by the destination detection node when it is determined that the second result does not belong to the range;
第三转发单元,用于向所述控制节点转发所述告警,以便所述控制节点转发所述告警。A third forwarding unit, configured to forward the alarm to the control node, so that the control node forwards the alarm.
可选的,所述装置1700还包括:Optionally, the
签名单元,用于在向目的探测节点发送所述测量指令之前,对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。a signature unit, configured to sign the measurement instruction before sending the measurement instruction to the destination detection node; the signed measurement instruction is used for verification by the source detection node and is sent to the destination if the verification is passed The detection node sends the detection request message.
可选的,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the destination proxy node is a process in the destination physical server;
所述装置1700还包括:The
第四接收单元,用于接收所述控制节点发送的控制信息;a fourth receiving unit, configured to receive the control information sent by the control node;
创建单元,用于基于所述控制信息在所述目的物理服务器中创建虚拟机和所述目的探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A creation unit, configured to create a virtual machine and the destination detection node in the destination physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine and the source virtual client are two virtual machines located on the source physical server.
需要说明的是,本发明实施例中的装置1700部署有前述图2所示的实施例中的目的代理节点302。本实施例中装置1700的各种具体实施方式,均可以参见前述图2所示的实施例关于目的代理节点302的详细介绍,此处不再赘述。It should be noted that, the
在本实施例的装置1700中,第一接收单元1701接收到的测量指令是控制节点按照测量请求指示的用户需求而下发给的,第一转发单元1702需要按照测量指令的指示向符合用户需求的目的探测节点发送测量指令,可见,用户可以通过测量请求按照自己的需求灵活地指定需要测量网络性能的虚拟客户机,因此,数据中心能够按照用户需求灵活地测量并反馈虚拟客户机之间的网络性能。此外,对于目的探测节点对网络性能的测量结果,装置1700可以经过整理、统计和分析之后再返回给控制节点。控制节点与目的探测节点之间的信息交互通过装置1700转发,签名单元可以通过签名的方式来保证信息交互的安全。装置1700可以按照控制节点在目的物理服务器中动态地创建目的探测节点,这样目的探测节点在没有测量需求的情况下不会占用目的物理服务器的资源。In the
图18为本发明实施例中一种物理服务器的结构示意图。在本实施例中物理服务器1800部署有图2所示的实施例中的控制节点201,可以用于执行图8所示的实施例的方法。所述物理服务器1800包括:处理器1801、存储器1802、网络接口1803、总线系统1804。FIG. 18 is a schematic structural diagram of a physical server in an embodiment of the present invention. In this embodiment, the
所述总线系统1804,用于将物理服务器1800的各个硬件组件耦合在一起。The
所述网络接口1803,用于实现物理服务器1800与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等方式。The
所述存储器1802,用于存储程序指令和数据。The
所述处理器1801,用于读取存储器1802中存储的指令和数据,执行以下操作:The
接收测量请求,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;receiving a measurement request, the measurement request being used to instruct the control node to feed back a result for identifying the performance of the link from the source virtual client to the destination virtual client;
向源探测节点发送第一测量指令并向目的探测节点发送第二测量指令,所述第一测量指令用于指示源探测节点向目的探测节点发送探测请求报文、接收对应所述探测请求报文的探测响应报文并根据所述探测请求报文和所述探测响应报文生成第一结果,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述第二测量指令用于指示所述目的探测节点向所述源探测节点发送对应所述探测请求报文的所述探测响应报文;Send a first measurement instruction to the source detection node and send a second measurement instruction to the destination detection node, where the first measurement instruction is used to instruct the source detection node to send a detection request message to the destination detection node and receive the corresponding detection request message. and generate a first result according to the probe request message and the probe response message, where the first result is used to identify the performance of the link from the source probe node to the destination probe node, The second measurement instruction is used to instruct the destination detection node to send the detection response message corresponding to the detection request message to the source detection node;
接收所述源探测节点发送的所述第一结果,并转发所述第一结果;receiving the first result sent by the source detection node, and forwarding the first result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述第一测量指令和所述第二测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的结果所属指标的类型。Optionally, the measurement request, the first measurement instruction, and the second measurement instruction all carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier for identifying the source. The type of metric to which the result of the virtual guest-to-destination virtual guest link belongs.
可选的,所述处理器1801还可以执行以下操作:Optionally, the
接收所述目的探测节点发送的所述第二结果,并转发所述第二结果;receiving the second result sent by the destination detection node, and forwarding the second result;
其中,所述第二结果所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能。The second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the performance of the link from the source detection node to the destination detection node.
可选的,所述处理器1801还可以执行以下操作:Optionally, the
接收所述源探测节点发送的第一告警,并转发所述第一告警;receiving a first alarm sent by the source detection node, and forwarding the first alarm;
接收所述目的探测节点发送的第二告警,并转发所述第二告警;receiving a second alarm sent by the destination detection node, and forwarding the second alarm;
其中,所述第一告警是所述源探测节点在确定所述第一结果不属于第一范围时生成并发送的,所述第二告警是所述目的探测节点在确定所述第二结果不属于第二范围时生成并发送的。The first alarm is generated and sent by the source detection node when it determines that the first result does not belong to the first range, and the second alarm is generated by the destination detection node when it determines that the second result does not belong to the first range. Generated and sent when belonging to the second range.
可选的,所述处理器1801还可以执行以下操作:Optionally, the
确定所述第一结果是否属于第三范围;determining whether the first result falls within a third range;
当所述第一结果不属于所述第三范围时,生成第三告警并转发;When the first result does not belong to the third range, generate a third alarm and forward it;
确定所述第二结果是否属于第四范围;determining whether the second result falls within a fourth range;
当所述第二结果不属于所述第四范围时,生成第四告警并转发。When the second result does not belong to the fourth range, a fourth alarm is generated and forwarded.
可选的,为了发送所述第一测量指令和所述第二测量指令,所述处理器1801可以执行以下操作:Optionally, in order to send the first measurement instruction and the second measurement instruction, the
向源代理节点发送所述第一测量指令,以指示所述源代理节点向所述源探测节点转发所述第一测量指令;sending the first measurement instruction to the source proxy node to instruct the source proxy node to forward the first measurement instruction to the source detection node;
向目的代理节点发送所述第二测量指令,以指示所述目的代理节点向所述目的探测节点转发所述第二测量指令。Sending the second measurement instruction to the destination proxy node to instruct the destination proxy node to forward the second measurement instruction to the destination detection node.
可选的,为了接收所述第一结果,所述处理器1801可以执行以下操作:Optionally, in order to receive the first result, the
接收所述源代理节点转发的所述第一结果,所述第一结果是由所述源探测节点发送到所述源代理节点的。The first result forwarded by the source proxy node is received, where the first result is sent by the source detection node to the source proxy node.
可选的,为了接收第二结果,所述处理器1801可以执行以下操作:Optionally, in order to receive the second result, the
接收所述目的代理节点转发的所述第二结果,所述第二结果是由所述目的探测节点发送到所述目的代理节点的。Receive the second result forwarded by the destination proxy node, where the second result is sent by the destination detection node to the destination proxy node.
可选的,为了接收所述第一告警,所述处理器1801可以执行以下操作:Optionally, in order to receive the first alarm, the
接收所述源代理节点转发的所述第一告警,所述第一告警是由所述源探测节点发送到所述源代理节点的;receiving the first alarm forwarded by the source proxy node, where the first alarm is sent to the source proxy node by the source detection node;
可选的,为了接收所述第二告警,所述处理器1801可以执行以下操作:Optionally, in order to receive the second alarm, the
接收所述目的代理节点转发的所述第二告警,所述第二告警是由所述目的探测节点发送到所述目的代理节点的。Receive the second alarm forwarded by the destination proxy node, where the second alarm is sent by the destination detection node to the destination proxy node.
可选的,所述源代理节点与所述目的代理节点可以是同一代理节点;Optionally, the source proxy node and the destination proxy node may be the same proxy node;
在发送所述第一测量指令和所述第二测量指令之前,所述处理器1801还可以执行以下操作:Before sending the first measurement instruction and the second measurement instruction, the
获取所述源代理节点到所述源探测节点的第一路由和所述源探测节点到所述源代理节点的第二路由,向所述源代理节点发送所述第一路由,向所述源探测节点发送所述第二路由,所述第一路由用于所述源代理节点向所述源探测节点转发所述第一测量指令,所述第二路由用于所述源探测节点向所述源代理节点发送所述第一结果;Obtain a first route from the source proxy node to the source probe node and a second route from the source probe node to the source proxy node, send the first route to the source proxy node, and send the source proxy node to the source proxy node. The probe node sends the second route, where the first route is used by the source proxy node to forward the first measurement instruction to the source probe node, and the second route is used by the source probe node to send the first measurement instruction to the source probe node. the source agent node sends the first result;
获取所述目的代理节点到所述目的探测节点的第三路由,向所述目的代理节点发送所述第三路由,所述第三路由用于所述目的代理节点向所述目的探测节点转发所述第二测量指令。Obtain the third route from the destination proxy node to the destination detection node, and send the third route to the destination proxy node, where the third route is used by the destination proxy node to forward the information to the destination detection node. the second measurement command.
可选的,所述源代理节点可以是源物理服务器中的一个进程,所述目的代理节点可以是目的物理服务器中的一个进程;Optionally, the source proxy node may be a process in the source physical server, and the destination proxy node may be a process in the destination physical server;
在发送所述第一测量指令和所述第二测量指令之前,所述处理器1801可以执行以下操作:Before sending the first measurement instruction and the second measurement instruction, the
向所述源代理节点发送第一控制信息并向所述目的代理节点发送第二控制信息,所述第一控制信息用于指示所述源代理节点在所述源物理服务器中创建第一虚拟机和所述源探测节点,所述第二控制信息用于指示所述目的代理节点在所述目的物理服务器中创建第二虚拟机和所述目的探测节点,其中,所述源探测节点是所述第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机,所述目的探测节点是所述第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机;Sending first control information to the source proxy node and sending second control information to the destination proxy node, where the first control information is used to instruct the source proxy node to create a first virtual machine in the source physical server and the source detection node, the second control information is used to instruct the destination proxy node to create a second virtual machine and the destination detection node in the destination physical server, wherein the source detection node is the A process in a first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the source physical server, and the destination detection node is one of the second virtual machines process, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server;
为所述源探测节点指定所述源虚拟交换机上的第一端口并为所述目的探测节点指定所述目的虚拟交换机上的第二端口,所述源探测节点能够通过所述第一端口与所述目的探测节点通信,所述目的探测节点能够通过所述第二端口与所述源代理节点通信;A first port on the source virtual switch is specified for the source detection node and a second port on the destination virtual switch is specified for the destination detection node, and the source detection node can communicate with the destination virtual switch through the first port. communicating with the destination detection node, and the destination detection node can communicate with the source proxy node through the second port;
建立包含所述第一端口与所述第二端口的虚拟局域网;所述虚拟局域网用于传输所述探测请求报文和所述探测响应报文。A virtual local area network including the first port and the second port is established; the virtual local area network is used to transmit the probe request message and the probe response message.
图19为本发明实施例中一种物理服务器的结构示意图。在本实施例中物理服务器1900部署有图2所示的实施例中的源探测节点202,可以用于执行图9所示的实施例的方法。所述物理服务器1900包括:处理器1901、存储器1902、网络接口1903、总线系统1904。FIG. 19 is a schematic structural diagram of a physical server in an embodiment of the present invention. In this embodiment, the
所述总线系统1904,用于将物理服务器1900的各个硬件组件耦合在一起。The
所述网络接口1903,用于实现物理服务器1900与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等方式。The
所述存储器1902,用于存储程序指令和数据。The
所述处理器1901,用于读取存储器1902中存储的指令和数据,执行以下操作:The
接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;Receive a measurement instruction sent by the control node, the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back the information used to identify the source virtual client to the destination virtual client. the result of the performance of the link;
基于所述测量指令向目的探测节点发送探测请求报文;Send a probe request message to the destination probe node based on the measurement instruction;
接收所述目的探测节点发送的探测响应报文,并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;Receive a probe response message sent by the destination probe node, and generate a result according to the probe request message and the probe response message, where the result is used to identify the link between the source probe node and the destination probe node. performance, the probe response message is sent by the destination probe node corresponding to the probe request message;
向所述控制节点发送所述结果,以便所述控制节点转发所述结果;sending the result to the control node for the control node to forward the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求和所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, both the measurement request and the measurement instruction carry the identifier of the source virtual client, the identifier of the destination virtual client, and the identifier used to identify the source virtual client to the destination virtual client. The type of indicator to which the link performance result belongs.
可选的,为了发送所述探测请求报文,所述处理器1901可以执行以下操作:Optionally, in order to send the probe request message, the
根据所述测量指令中的所述类型,确定所述探测请求报文的发送方式;determining the sending mode of the probe request message according to the type in the measurement instruction;
所述源探测节点按照所述发送方式,向所述目的探测节点发送所述探测请求报文。The source detection node sends the detection request message to the destination detection node according to the sending manner.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述物理服务器的两个虚拟机;所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟客户机是位于所述目的物理服务器的两个虚拟机。Optionally, the source detection node is a process in a first virtual machine, the first virtual machine and the source virtual client are two virtual machines located on the physical server; the destination detection node is A process in a second virtual machine, the second virtual machine and the destination virtual client are two virtual machines located on the destination physical server.
可选的,所述处理器1901还可以执行以下操作:Optionally, the
确定所述结果是否属于范围;determine whether the result is in scope;
当所述结果不属于所述范围时,生成告警;when the result does not belong to the range, generating an alarm;
向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The alarm is sent to the control node for the control node to forward the alarm.
可选的,为了接收所述测量指令,所述处理器1901可以执行以下操作:Optionally, in order to receive the measurement instruction, the
接收源代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述源代理节点的。The measurement instruction forwarded by the source agent node is received, and the measurement instruction is sent by the control node to the source agent node.
可选的,为了发送所述结果,所述处理器1901可以执行以下操作:Optionally, in order to send the result, the
向所述源代理节点发送所述结果,以便所述源代理节点向所述控制节点发送所述结果。The results are sent to the source proxy node for the source proxy node to send the results to the control node.
可选的,为了发送所述告警,所述处理器1901可以执行以下操作:Optionally, in order to send the alarm, the
向所述源代理节点发送所述告警,以便所述源代理节点向所述控制节点转发所述告警。The alert is sent to the source proxy node so that the source proxy node forwards the alert to the control node.
可选的,所述处理器1901还可以执行以下操作:Optionally, the
对所述测量指令进行验证,并在验证通过的情况下向所述目的探测节点发送所述探测请求报文;Verifying the measurement instruction, and sending the detection request message to the destination detection node when the verification is passed;
其中,所述测量指令是所述源代理节点签名之后转发给所述源探测节点的。The measurement instruction is forwarded to the source detection node after being signed by the source proxy node.
图20为本发明实施例中一种物理服务器的结构示意图。在本实施例中物理服务器2000部署有图2所示的实施例中的目的探测节点203,可以用于执行图10所示的实施例的方法。所述物理服务器2000包括:处理器2001、存储器2002、网络接口2003、总线系统2004。FIG. 20 is a schematic structural diagram of a physical server in an embodiment of the present invention. In this embodiment, the
所述总线系统2004,用于将物理服务器2000的各个硬件组件耦合在一起。The
所述网络接口2003,用于实现物理服务器2000与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等方式。The
所述存储器2002,用于存储程序指令和数据。The
所述处理器2001,用于读取存储器2002中存储的指令和数据,执行以下操作:The
接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;Receive a measurement instruction sent by the control node, the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back the information used to identify the source virtual client to the destination virtual client. the result of the performance of the link;
接收源探测节点发送的探测请求报文;Receive the probe request message sent by the source probe node;
基于所述测量指令向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点与所述目的探测节点的链路的性能,所述第一结果被所述控制节点用于转发;Send a probe response packet corresponding to the probe request packet to the source probe node based on the measurement instruction, where the probe request packet and probe response packet are used by the source probe node to generate a first result and send it to the source probe node. Sent by the control node, the first result is used to identify the performance of the link between the source detection node and the destination detection node, and the first result is used by the control node for forwarding;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述测量请求、所述测量指令中均携带有所述源虚拟客户机的标识、所述目的虚拟客户机的标识、所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果所属指标的类型。Optionally, the measurement request and the measurement instruction both carry the identifier of the source virtual client and the identifier of the destination virtual client, and the measurement request is used to instruct the control node to feed back for the identifier. The type of metric that the result of the performance of the link from the source virtual client to the destination virtual client belongs to.
可选的,所述源探测节点是所述源虚拟客户机中的一个进程,所述目的探测节点是所述目的虚拟客户机中的一个进程。Optionally, the source detection node is a process in the source virtual client, and the destination detection node is a process in the destination virtual client.
可选的,所述源探测节点是第一虚拟机中的一个进程,所述第一虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机;所述目的探测节点是第二虚拟机中的一个进程,所述第二虚拟机与所述目的虚拟机是位于所述目的物理服务器的两个虚拟机。Optionally, the source detection node is a process in a first virtual machine, and the first virtual machine and the source virtual client are two virtual machines located on the source physical server; the destination detection node is a process in a second virtual machine, and the second virtual machine and the destination virtual machine are two virtual machines located on the destination physical server.
可选的,所述处理器2001还可以执行以下操作:Optionally, the
根据所述探测请求报文生成第二结果,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;generating a second result according to the probe request message, where the second result is used to identify the performance of the link from the source probe node to the destination probe node;
向所述控制节点发送所述第二结果,以便所述控制节点转发所述第二结果。The second result is sent to the control node for the control node to forward the second result.
可选的,所述处理器2001还可以执行以下操作:Optionally, the
确定所述第二结果是否属于范围;determining whether the second result falls within a range;
当所述第二结果不属于所述范围时,生成告警;when the second result does not belong to the range, generating an alarm;
向所述控制节点发送所述告警,以便所述控制节点转发所述告警。The alarm is sent to the control node for the control node to forward the alarm.
可选的,为了接收所述测量指令,所述处理器2001可以执行以下操作:Optionally, in order to receive the measurement instruction, the
接收目的代理节点转发的所述测量指令,所述测量指令是由所述控制节点发送到所述目的代理节点。Receive the measurement instruction forwarded by the destination proxy node, where the measurement instruction is sent by the control node to the destination proxy node.
可选的,为了发送所述第二结果,所述处理器2001可以执行以下操作:Optionally, in order to send the second result, the
向所述目的代理节点发送所述结果,以便所述目的代理节点向所述控制节点转发所述第二结果。The result is sent to the destination proxy node so that the destination proxy node forwards the second result to the control node.
可选的,为了发送所述告警,所述处理器2001可以执行以下操作:Optionally, in order to send the alarm, the
向所述目的代理节点发送所述告警,以便所述目的代理节点向所述控制节点转发所述告警。The alert is sent to the destination proxy node so that the destination proxy node forwards the alert to the control node.
可选的,所述处理器2001还可以执行以下操作:Optionally, the
对所述测量指令进行验证,并在验证通过的情况下接收所述源探测节点发送的所述探测请求报文;Verifying the measurement instruction, and receiving the probe request message sent by the source probe node when the verification is passed;
其中,所述测量指令是所述目的代理节点签名之后转发给所述目的探测节点的。The measurement instruction is forwarded to the destination detection node after being signed by the destination proxy node.
图21为本发明实施例中一种物理服务器的结构示意图。在本实施例中物理服务器2100部署有图2所示的实施例中的源代理节点301,可以用于执行图11所示的实施例的方法。所述物理服务器2100包括:处理器2101、存储器2102、网络接口2103、总线系统2104。FIG. 21 is a schematic structural diagram of a physical server in an embodiment of the present invention. In this embodiment, the physical server 2100 is deployed with the source proxy node 301 in the embodiment shown in FIG. 2 , which can be used to execute the method in the embodiment shown in FIG. 11 . The physical server 2100 includes: a processor 2101 , a memory 2102 , a network interface 2103 , and a bus system 2104 .
所述总线系统2104,用于将物理服务器2100的各个硬件组件耦合在一起。The bus system 2104 is used to couple various hardware components of the physical server 2100 together.
所述网络接口2103,用于实现物理服务器2100与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等方式。The network interface 2103 is used to implement the communication connection between the physical server 2100 and at least one other network element, and may use the Internet, a wide area network, a local network, a metropolitan area network, or the like.
所述存储器2102,用于存储程序指令和数据。The memory 2102 is used to store program instructions and data.
所述处理器2101,用于读取存储器2102中存储的指令和数据,执行以下操作:The processor 2101 is used to read the instructions and data stored in the memory 2102, and perform the following operations:
接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;Receive a measurement instruction sent by the control node, the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back the information used to identify the source virtual client to the destination virtual client. the result of the performance of the link;
向源探测节点转发所述测量指令,以指示所述源探测节点向目的探测节点发送探测请求报文、接收所述目的探测节点发送的探测响应报文并根据所述探测请求报文和所述探测响应报文生成结果,所述结果用于标识所述源探测节点到所述目的探测节点的链路的性能,所述探测响应报文是所述目的探测节点对应所述探测请求报文发送的;Forward the measurement instruction to the source detection node to instruct the source detection node to send a detection request message to the destination detection node, receive a detection response message sent by the destination detection node, and perform a detection based on the detection request message and the A probe response packet generation result, where the result is used to identify the performance of the link between the source probe node and the destination probe node, and the probe response packet is sent by the destination probe node corresponding to the probe request packet of;
接收所述源探测节点发送的所述结果;receiving the result sent by the source detection node;
向所述控制节点转发所述结果,以便所述控制节点转发所述结果;forwarding the result to the control node for the control node to forward the result;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述处理器2100还可以执行以下操作:Optionally, the processor 2100 may also perform the following operations:
接收所述源探测节点发送的告警,所述告警是所述源探测节点在确定所述结果不属于范围时生成的;receiving an alarm sent by the source detection node, where the alarm is generated by the source detection node when it is determined that the result does not belong to the scope;
向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The alarm is forwarded to the control node for the control node to forward the alarm.
可选的,在发送所述测量指令之前,所述处理器2100还可以执行以下操作:Optionally, before sending the measurement instruction, the processor 2100 may further perform the following operations:
对所述测量指令中进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。The measurement instruction is signed; the signed measurement instruction is used for verification by the source detection node, and the detection request message is sent to the destination detection node when the verification is passed.
可选的,所述源代理节点是源物理服务器中的一个进程;Optionally, the source agent node is a process in the source physical server;
在接收所述测量指令之前,所述处理器2100还可以执行以下操作:Before receiving the measurement instruction, the processor 2100 may further perform the following operations:
接收所述控制节点发送的控制信息;receiving control information sent by the control node;
基于所述控制信息在所述源物理服务器中创建虚拟机和所述源探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A virtual machine and the source detection node are created in the source physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine is associated with the source detection node. Virtual clients are two virtual machines located on the source physical server.
图22为本发明实施例中一种物理服务器的结构示意图。在本实施例中物理服务器2200部署有图2所示的实施例中的目的代理节点302,可以用于执行图12所示的实施例的方法。所述物理服务器2200包括:处理器2201、存储器2202、网络接口2203、总线系统2204。FIG. 22 is a schematic structural diagram of a physical server in an embodiment of the present invention. In this embodiment, the
所述总线系统2204,用于将物理服务器2200的各个硬件组件耦合在一起。The
所述网络接口2203,用于实现物理服务器2200与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等方式。The
所述存储器2202,用于存储程序指令和数据。The
所述处理器2201,用于读取存储器2202中存储的指令和数据,执行以下操作:The
接收控制节点发送的测量指令,所述测量指令是所述控制节点接收到测量请求时发送的,所述测量请求用于指示所述控制节点反馈用于标识源虚拟客户机到目的虚拟客户机的链路的性能的结果;Receive a measurement instruction sent by the control node, the measurement instruction is sent when the control node receives a measurement request, and the measurement request is used to instruct the control node to feed back the information used to identify the source virtual client to the destination virtual client. the result of the performance of the link;
向目的探测节点转发所述测量指令,以指示所述目的探测节点接收源探测节点发送的探测请求报文并向所述源探测节点发送对应所述探测请求报文的探测响应报文,所述探测请求报文和所述探测响应报文被所述源探测节点用于生成第一结果并向所述控制节点发送,所述第一结果用于标识所述源探测节点到所述目的探测节点的链路的性能,第一结果被所述控制节点用于转发;Forwarding the measurement instruction to the destination detection node to instruct the destination detection node to receive the detection request message sent by the source detection node and to send to the source detection node a detection response message corresponding to the detection request message, the The probe request message and the probe response message are used by the source probe node to generate a first result and send it to the control node, where the first result is used to identify the source probe node to the destination probe node The performance of the link, the first result is used by the control node for forwarding;
其中,所述源探测节点、所述源虚拟客户机与所述源虚拟交换机位于源物理服务器,所述目的探测节点、所述目的虚拟客户机与所述目的虚拟交换机位于目的物理服务器,所述源物理服务器与所述目的物理服务器是两个物理服务器,所述源探测节点用于通过所述源虚拟交换机与所述目的探测节点通信,所述目的探测节点用于通过所述目的虚拟交换机与所述源探测节点通信,所述源虚拟客户机用于通过所述源虚拟交换机与所述目的虚拟客户机通信,所述目的虚拟客户机用于通过所述目的虚拟交换机与所述源虚拟客户机通信。The source detection node, the source virtual client and the source virtual switch are located on a source physical server, the destination detection node, the destination virtual client and the destination virtual switch are located on a destination physical server, the The source physical server and the destination physical server are two physical servers, the source detection node is used to communicate with the destination detection node through the source virtual switch, and the destination detection node is used to communicate with the destination virtual switch through the destination virtual switch. communicating with the source detection node, the source virtual client for communicating with the destination virtual client through the source virtual switch, and the destination virtual client for communicating with the source virtual client through the destination virtual switch machine communication.
可选的,所述处理器2201还可以执行以下操作:Optionally, the
接收所述目的探测节点发送的第二结果,所述第二结果是所述目的探测节点根据所述探测请求报文生成的,所述第二结果用于标识所述源探测节点到所述目的探测节点的链路的性能;Receive a second result sent by the destination detection node, where the second result is generated by the destination detection node according to the detection request message, and the second result is used to identify the source detection node to the destination Probe the performance of the node's link;
向所述控制节点转发所述第二结果,以便所述控制节点转发所述第二结果。The second result is forwarded to the control node for the control node to forward the second result.
可选的,所述处理器2201还可以执行以下操作:Optionally, the
接收所述目的探测节点发送的告警,所述告警是所述目的探测节点在确定所述第二结果不属于范围时生成的;receiving an alarm sent by the destination detection node, where the alarm is generated by the destination detection node when it is determined that the second result does not belong to the scope;
向所述控制节点转发所述告警,以便所述控制节点转发所述告警。The alarm is forwarded to the control node for the control node to forward the alarm.
可选的,在发送所述测量指令之前,所述处理器2201还可以执行以下操作:Optionally, before sending the measurement instruction, the
对所述测量指令进行签名;签名后的测量指令被所述源探测节点用于验证并在验证通过的情况下向所述目的探测节点发送所述探测请求报文。Sign the measurement instruction; the signed measurement instruction is used for verification by the source detection node and sends the detection request message to the destination detection node when the verification is passed.
可选的,所述目的代理节点是目的物理服务器中的一个进程;Optionally, the destination proxy node is a process in the destination physical server;
在接收所述测量指令之前,所述处理器2201还可以执行以下操作:Before receiving the measurement instruction, the
接收所述控制节点发送的控制信息;receiving control information sent by the control node;
基于所述控制信息在所述目的物理服务器中创建虚拟机和所述目的探测节点,其中,所述述源探测节点是所述第一虚拟机中的一个进程,所述虚拟机与所述源虚拟客户机是位于所述源物理服务器的两个虚拟机。A virtual machine and the destination detection node are created in the destination physical server based on the control information, wherein the source detection node is a process in the first virtual machine, and the virtual machine is associated with the source detection node. Virtual clients are two virtual machines located on the source physical server.
本发明实施例中提到的“第一测量指令”、“第一网络性能参数”等名称中的“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”、“第三”、“第四”和“第五”等。"First" in names such as "first measurement instruction" and "first network performance parameter" mentioned in the embodiments of the present invention are only used for name identification, and do not represent first in order. The same rule applies to "second," "third," "fourth," and "fifth," etc.
需要说明的是,本发明实施例中的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。这些指令可以通过其中的处理器以配合实现及控制,用于执行本发明实施例揭示的方法。上述处理器还可以是通用处理器、数字信号处理器(DigitalSignal Processing,DSP)、专用集成电路(application specific integrated circuit)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。It should be noted that, the processor in the embodiment of the present invention may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. These instructions can be implemented and controlled by a processor therein in cooperation with each other, and are used to execute the methods disclosed in the embodiments of the present invention. The above-mentioned processor may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (application specific integrated circuit), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices , discrete gate or transistor logic devices, discrete hardware components.
其中,上述通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器,解码器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。Wherein, the above-mentioned general-purpose processor may be a microprocessor or the processor may also be any conventional processor, decoder, and the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
另外,需要说明的是,总线系统除了包括数据总线之外,还可包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8、9中将各种总线都标为总线系统。In addition, it should be noted that, in addition to the data bus, the bus system may also include a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figures 8 and 9, the various buses are marked as bus systems.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如媒体网关等网络通信设备)执行本发明各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products can be stored in storage media, such as ROM/RAM, magnetic disks, etc. , CD, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway) to perform the methods described in various embodiments or parts of embodiments of the present invention.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于方法实施例和设备实施例而言,由于其基本相似于系统实施例,所以描述得比较简单,相关之处参见系统实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. place. In particular, for the method embodiments and the device embodiments, since they are basically similar to the system embodiments, the descriptions are relatively simple, and reference may be made to some descriptions of the system embodiments for related parts. The device and system embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本发明的优选实施方式,并非用于限定本发明的保护范围。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.
Claims (36)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994478.5A CN106921533B (en) | 2015-12-25 | 2015-12-25 | Method, device and system for measuring network performance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994478.5A CN106921533B (en) | 2015-12-25 | 2015-12-25 | Method, device and system for measuring network performance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106921533A CN106921533A (en) | 2017-07-04 |
CN106921533B true CN106921533B (en) | 2020-02-14 |
Family
ID=59455172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510994478.5A Active CN106921533B (en) | 2015-12-25 | 2015-12-25 | Method, device and system for measuring network performance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106921533B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544835B (en) * | 2017-08-21 | 2020-04-28 | 新华三云计算技术有限公司 | Method and device for detecting service network port of virtual machine |
CN112532468B (en) * | 2019-09-19 | 2023-03-28 | 华为技术有限公司 | Network measurement system, method, device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056217A (en) * | 2006-04-14 | 2007-10-17 | 华为技术有限公司 | A network performance measurement method and system |
CN101404597A (en) * | 2008-11-19 | 2009-04-08 | 华为技术有限公司 | Network quality index acquirement method, system and apparatus |
CN101945018A (en) * | 2010-08-30 | 2011-01-12 | 北京星网锐捷网络技术有限公司 | Node detection method and device and central node of network |
CN102801587A (en) * | 2012-08-29 | 2012-11-28 | 北京邮电大学 | Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof |
CN103401716A (en) * | 2013-08-06 | 2013-11-20 | 华为技术有限公司 | Network performance measurement method, network management equipment and network element equipment |
CN105099822A (en) * | 2015-08-04 | 2015-11-25 | 北京瑞汛世纪科技有限公司 | Method and physical machine for measuring network performance |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9300565B2 (en) * | 2014-04-17 | 2016-03-29 | Accedian Networks Inc. | System and method for out-of-line real-time in-service performance measurement |
US9755926B2 (en) * | 2014-06-13 | 2017-09-05 | Cisco Technology, Inc. | Efficiently utilizing probe packets within a network |
-
2015
- 2015-12-25 CN CN201510994478.5A patent/CN106921533B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056217A (en) * | 2006-04-14 | 2007-10-17 | 华为技术有限公司 | A network performance measurement method and system |
CN101404597A (en) * | 2008-11-19 | 2009-04-08 | 华为技术有限公司 | Network quality index acquirement method, system and apparatus |
CN101945018A (en) * | 2010-08-30 | 2011-01-12 | 北京星网锐捷网络技术有限公司 | Node detection method and device and central node of network |
CN102801587A (en) * | 2012-08-29 | 2012-11-28 | 北京邮电大学 | Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof |
CN103401716A (en) * | 2013-08-06 | 2013-11-20 | 华为技术有限公司 | Network performance measurement method, network management equipment and network element equipment |
CN105099822A (en) * | 2015-08-04 | 2015-11-25 | 北京瑞汛世纪科技有限公司 | Method and physical machine for measuring network performance |
Also Published As
Publication number | Publication date |
---|---|
CN106921533A (en) | 2017-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10764169B2 (en) | Methods, systems, and computer readable media for testing virtual network components deployed in virtual private clouds (VPCs) | |
CN108353004B (en) | Method, system, and computer readable medium for testing Network Function Virtualization (NFV) | |
EP3082296B1 (en) | Method and apparatus for visualized operation and maintenance of network | |
WO2018228302A1 (en) | Virtual network link detection method and device | |
EP3355532B1 (en) | Method for path detection in vxlan, and controller and network device | |
CN103248535B (en) | A kind of cloud system method of testing and device | |
EP2951957B1 (en) | Network switch simulation | |
EP3248333B1 (en) | Devices, systems and methods for debugging network connectivity | |
CN107409063B (en) | A method, device and system for obtaining VNF information | |
US11188371B2 (en) | Monitoring controller and a method performed thereby for monitoring network performance | |
US10097442B2 (en) | Methods, systems, and computer readable media for receiving test configuration information | |
US9882784B1 (en) | Holistic validation of a network via native communications across a mirrored emulation of the network | |
US10110556B2 (en) | Methods, systems, and computer readable media for initiating and executing performance tests of a private network and/or components thereof | |
CN114070723A (en) | Virtual network configuration method, system and intelligent network card of bare metal server | |
CN104796298A (en) | SDN (Software Defined Network) network fault analyzing method and device | |
US10958616B2 (en) | Methods, systems, and computer readable media for network test configuration using virtual local area network (VLAN) scanning | |
CN106921533B (en) | Method, device and system for measuring network performance | |
TWI538441B (en) | Processing system and method for constructing network structure deployment diagram and computer program product for deploying analysis program of internal storage network structure | |
CN110855528B (en) | Message processing method and test equipment | |
CN105763347A (en) | Method for obtaining parameter, network equipment and system | |
Hawari et al. | OP4T: Bringing Advanced Network Packet Timestamping into the Field | |
US20240372797A1 (en) | Methods, systems, and computer readable media for controlling a traffic generator using an open application programming interface | |
US20240372806A1 (en) | Packet Sending Method, Packet Receiving Method, Information Sending Method, and Apparatus | |
Nissim | GRAMI Software Enhancement on SDN Networks | |
CN118590425A (en) | Dial-up test method, device, system and computing device cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |