WO2021164261A1 - Method for testing cloud network device, and storage medium and computer device - Google Patents

Method for testing cloud network device, and storage medium and computer device Download PDF

Info

Publication number
WO2021164261A1
WO2021164261A1 PCT/CN2020/119065 CN2020119065W WO2021164261A1 WO 2021164261 A1 WO2021164261 A1 WO 2021164261A1 CN 2020119065 W CN2020119065 W CN 2020119065W WO 2021164261 A1 WO2021164261 A1 WO 2021164261A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
session
information
network device
cloud network
Prior art date
Application number
PCT/CN2020/119065
Other languages
French (fr)
Chinese (zh)
Inventor
张齐国
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021164261A1 publication Critical patent/WO2021164261A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • This application relates to the field of information technology, and in particular to a testing method, storage medium and computer equipment for cloud network equipment.
  • the existing cloud network testing method is mainly to establish a session by completely simulating a communication protocol to complete the testing of cloud network equipment.
  • the inventor realizes that when cloud network equipment is currently being tested, due to the complexity of the communication protocol stack, it is impossible to establish enough sessions to simulate the real environment. Therefore, it needs to be implemented through cluster deployment.
  • cluster deployment requires a lot of work. Human, financial and material resources, thereby increasing the test cost of cloud network equipment testing, and leading to a long time and low efficiency in cloud network equipment testing.
  • a test method for cloud network equipment including:
  • create a session data packet based on a communication protocol with incomplete simulation function the session data packet is established based on a communication protocol with incomplete simulation function; pass the session data packet through a cloud network device Forwarding to a server, where the server is used to generate traffic feedback information according to the session data packet;
  • a test method for cloud network equipment including:
  • the traffic feedback information is forwarded to the client through the cloud network device.
  • a storage medium stores at least one executable instruction, and the execution instruction causes a processor to perform the following steps: analyze network traffic samples to obtain information about a multi-tenant network structure Network traffic characteristics; set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested; in the simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session The data packet is established based on a communication protocol with incomplete simulation function; the session data packet is forwarded to the server through the cloud network device, and the server is used to generate traffic feedback information according to the session data packet; receive and analyze The traffic feedback information forwarded by the server through the cloud network device.
  • a computer device which includes a processor, a memory, a communication interface, and a communication bus.
  • the processor, the memory, and the communication interface communicate with each other through the communication bus, and
  • the memory is used to store at least one executable instruction that causes the processor to perform the following steps: analyze network traffic samples to obtain network traffic characteristics of a multi-tenant network structure; set up environmental tests based on different network traffic characteristics Parameters, simulate the test environment of the cloud network device to be tested; in the simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, and the session data packet is established based on a communication protocol with incomplete simulation function Forward the session data packet to the server through the cloud network device, the server is used to generate traffic feedback information based on the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  • another storage medium stores at least one executable instruction, and the execution instruction causes a processor to perform the following steps: receiving session data forwarded by a client through a cloud network device Packet, the session data packet is established by the client based on a communication protocol with incomplete simulation function; generating traffic feedback information according to the session data packet; forwarding the traffic feedback information to the client through a cloud network device end.
  • another computer device including a processor, a memory, a communication interface, and a communication bus.
  • the processor, the memory, and the communication interface communicate with each other through the communication bus,
  • the memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following steps: receiving a session data packet forwarded by a client through a cloud network device, and the session data packet is based on the client A communication protocol with an incomplete simulation function is established; flow feedback information is generated according to the session data packet; and the flow feedback information is forwarded to the client through a cloud network device.
  • FIG. 1 shows a flow chart of a method for testing cloud network equipment provided by an embodiment of the present application
  • FIG. 2 shows a flowchart of another cloud network device testing method provided by an embodiment of the present application
  • FIG. 3 shows a deployment mode diagram of a cloud network equipment testing apparatus provided by an embodiment of the present application
  • FIG. 4 shows a schematic structural diagram of a testing apparatus for cloud network equipment provided by an embodiment of the present application
  • FIG. 5 shows a schematic structural diagram of another cloud network equipment test apparatus provided by an embodiment of the present application.
  • FIG. 6 shows a schematic diagram of the physical structure of a computer device provided by an embodiment of the present application.
  • FIG. 7 shows a schematic structural diagram of yet another cloud network device testing apparatus provided by an embodiment of the present application.
  • FIG. 8 shows a schematic structural diagram of yet another cloud network device testing apparatus provided by an embodiment of the present application.
  • FIG. 9 shows a schematic diagram of the physical structure of another computer device provided by an embodiment of the present application.
  • an embodiment of the present application provides a method for testing cloud network equipment. As shown in FIG. 1, the method includes:
  • the received network traffic sample is analyzed, the load data of the network traffic sample is obtained, and the traffic characteristics are extracted from the load data.
  • the cloud network device may be based on a virtual public cloud (virtrul public cloud).
  • cloud, vpc) network equipment the vpc may be a multi-tenant architecture, and each tenant is physically isolated through a virtual local area network (vlan) or an expandable virtual local area network (vxlan).
  • the client obtains the network traffic characteristics of the cloud network device, and can simulate the test environment of the cloud network device to be tested according to the network traffic characteristics.
  • the network traffic characteristics may specifically include the characteristics of network segmentation based on vlan and vxlan.
  • the traffic output and monitoring device can pass the created session data packets through multiple different vlans or vxlans. Send to the cloud network device, thereby realizing the network traffic characteristics based on multi-tenancy, and simulating the test environment of the cloud network device to be tested.
  • a session data packet based on a communication protocol with an incomplete simulation function, where the session data packet is established based on a communication protocol with an incomplete simulation function.
  • the execution subject may be the client, and specifically may be a traffic output and monitoring device provided on the client.
  • the communication protocol may be TCP protocol.
  • the communication protocol with incomplete simulation function may be an incomplete simulation of the communication protocol, that is, features that the cloud network device does not care about are lost, such as the congestion algorithm of the TCP protocol and other features that consume performance resources; reserved;
  • the features that the cloud network device focuses on such as the three-way handshake of the TCP protocol, the consistency of sequence numbers, etc., occupy only a small amount of resources, thereby simplifying the process of establishing a session based on the communication protocol.
  • the client may forward the session data packet to the server through a cloud network device, and the server may process the session data packet to generate the traffic feedback information.
  • the traffic feedback information can be parsed to facilitate extraction of various data in the traffic feedback information.
  • the step 103 may specifically include: establishing a session table according to preset session flow range information; and creating a session data packet according to the session table and a communication protocol with an incomplete simulation function.
  • the session flow range can be set according to actual requirements of cloud network equipment testing.
  • the process of creating a session data packet based on a communication protocol with an incomplete simulation function may include: establishing a session table according to the configured session flow range, and the session table may be used to record the quintuple information of the session data packet and The status of the session entry, the session table is allocated to the CPU protocol stack, and the CPU protocol stack initiates a three-way handshake process to the cloud network device to be tested according to the session table to establish a connection, and then sends it to the cloud network device to be tested. The network device sends the session data packet.
  • the step 105 may specifically include: generating original data information according to the parsed traffic feedback information and a preset statistical algorithm; according to the original data information, and a preset session Service quality algorithm, which calculates the standard deviation of session service quality.
  • the client searches locally for the session information corresponding to the flow feedback information, and the client locally stores the corresponding relationship between the flow feedback information and the session information.
  • the session information the original data statistics are performed, and various indicators of each session, such as the reachability, delay, and functional judgment of the session, can be obtained.
  • the standard deviation of the quality of service of the session can also be calculated, so as to measure the stability characteristics of the session.
  • the generating the original data information according to the analyzed flow feedback information and the preset statistical algorithm may specifically include: extracting received flow information, sending flow information, and lost flow information from all flow feedback information; The received flow information, the sent flow information, and the lost flow information are respectively accumulated to obtain the total received flow information, the total sent flow information, and the total lost flow information; the total received flow information, the total sent flow information The flow information and the total lost flow information are determined to be original data information.
  • the client after the client receives and parses the flow feedback information, it can extract the flow information contained in the flow feedback information, such as received flow information, sent flow information, lost flow information, etc., and based on all received flow feedback information And the preset statistical algorithm to calculate the original data information.
  • the preset statistical algorithm may be that the received flow information, the sent flow information, and the lost flow information in all the flow feedback information are respectively accumulated, and the total received flow information, the total sent flow information, and the total lost flow are obtained. Information can be used as the original data information.
  • the calculation of the standard deviation of the session service quality according to the original data information and the preset session service quality algorithm may specifically include: using the original data information to perform a weighted average calculation; It is determined as the standard deviation of the quality of service of the session.
  • the weighted average calculation is performed according to the original data information to obtain the session service quality standard deviation, and the session service quality standard deviation can be used to measure the stability of the session under each vpc sex.
  • the simulating the test environment of the cloud network device to be tested based on the network traffic characteristics may specifically include: sending the session data packet to the cloud network device through a different virtual local area network.
  • the virtual public cloud (virtrul public cloud, vpc), establish a session table for each vpc, and assign the session table to each CPU protocol stack under different VLANs, and the CPU protocol stack sends the cloud network device to be tested to the cloud network device to be tested according to the session table
  • the session data packet can be sent to the cloud network device to be tested through a different vlan or vxlan.
  • an embodiment of the present application provides another cloud network device testing method. As shown in FIG. 2, the method includes:
  • 201 Receive a session data packet forwarded by a client through a cloud network device, where the session data packet is established by the client based on a communication protocol with an incomplete simulation function.
  • the execution subject may be the server.
  • the server can receive the session data packet forwarded by the client through the cloud network device.
  • a deployment mode diagram of a cloud network equipment test device is provided.
  • the client and the server can be deployed in accordance with a standard client-server model, and a traffic feedback device can be set on the server.
  • the traffic output and monitoring device can be set on the client.
  • the traffic feedback device may process the session data packet and generate traffic feedback information.
  • the server may forward the traffic feedback information to the client through the cloud network device after generating the traffic feedback information.
  • the step 202 may specifically include: searching the source address, destination address, source port number, and destination port number in the session data packet; exchanging the source address and the destination address, And exchange the source port number and the destination port number; confirm the exchanged session data packet as the flow feedback information.
  • the traffic feedback device set in the server can receive the session data packet, look up the source address, destination address, source port number, and destination port number in the session data packet, and further execute the exchange of the source address With the destination address and the operation of exchanging the source port number and the destination port number, the session data packet after the exchange processing can be used as traffic feedback information and forwarded to the client through the cloud network device.
  • an embodiment of the present application provides a testing device for cloud network equipment.
  • the device includes: an acquisition unit 31, a simulation unit 32, a creation unit 33, and a forwarding unit. 34 and receiving unit 35.
  • the obtaining unit 31 is configured to analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure
  • the simulation unit 32 is configured to set environmental test parameters based on different network traffic characteristics, and simulate the test environment of the cloud network device to be tested;
  • the creating unit 33 may be used to create a session data packet based on a communication protocol with an incomplete simulation function in a simulated test environment, where the session data packet is established based on a communication protocol with an incomplete simulation function;
  • the forwarding unit 34 may be configured to forward the session data packet to a server via a cloud network device, and the server is configured to generate traffic feedback information according to the session data packet;
  • the receiving unit 35 may be used to receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  • the creation unit 33 includes: a creation module 331 and a creation module 332, as shown in FIG. 5.
  • the establishment module 331 may be used to establish a session table according to a preset session flow range
  • the creation module 332 may be used to create a session data packet according to the session table and the communication protocol of the incomplete simulation function.
  • the apparatus may further include: a generating unit 36 and a calculating unit 37.
  • the generating unit 36 may be used to generate original data information according to the analyzed traffic feedback information and a preset statistical algorithm
  • the calculation unit 37 may be configured to calculate the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
  • the generating unit 36 may include: an extraction module 361, an accumulation module 362, and a first determination module 363.
  • the extraction module 361 can be used to extract received flow information, sent flow information, and lost flow information from all flow feedback information;
  • the accumulation module 362 may be used to accumulate the received flow information, the sent flow information, and the lost flow information respectively to obtain total received flow information, total sent flow information, and total lost flow information;
  • the first determining module 363 may be configured to determine the total received flow information, the total sent flow information, and the total lost flow information as original data information;
  • the calculation unit 37 may include: a calculation module 371 and a second determination module 372.
  • the calculation module 371 may be used to perform weighted average calculation using the original data information
  • the second determining module 372 may be used to determine the calculated result as the standard deviation of the session service quality.
  • the simulation unit 32 may include: a sending module 321.
  • the sending module 321 may be used to send the session data packet to the cloud network device through different virtual local area networks.
  • an embodiment of the present application also provides a storage medium.
  • the storage medium may be volatile or non-volatile, and at least one storage medium is stored in the storage medium.
  • the network device is forwarded to the server, and the server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  • an embodiment of the present application also provides a computer device.
  • a processor 41 a communication interface (Communications) Interface 42, memory 43, and communication bus 44.
  • the processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44.
  • the communication interface 44 is used to communicate with other devices such as network elements such as clients or other servers.
  • the processor 41 is configured to execute a program, and specifically can execute relevant steps in the foregoing cloud network device testing method embodiment.
  • the program may include program code, and the program code includes computer operation instructions.
  • the processor 41 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
  • ASIC Application Specific Integrated Circuit
  • the one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
  • the memory 43 is used to store programs.
  • the memory 43 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory). memory), such as at least one disk storage.
  • the program can specifically be used to make the processor 41 perform the following operations: analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure; set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested; In a simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session data packet is established based on a communication protocol with incomplete simulation function; pass the session data packet through a cloud network device Forward to the server, the server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  • an embodiment of the present application provides another cloud network device testing device. As shown in FIG. 7, the device includes: a receiving unit 51, a generating unit 52, and a forwarding unit 53.
  • the receiving unit 51 may be configured to receive a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
  • the generating unit 52 may be configured to generate traffic feedback information according to the session data packet
  • the forwarding unit 53 may be configured to forward the traffic feedback information to the client through a cloud network device.
  • the generating unit 52 may include: a search module 521, an exchange module 522, and a confirmation module 523, as shown in FIG. 8.
  • the search module 521 may be used to search for a source address, a destination address, a source port number, and a destination port number in the session data packet;
  • the switching module 522 may be used to exchange the source address and the destination address, and exchange the source port number and the destination port number;
  • the confirmation module 523 may be used to confirm the exchanged session data packet as the traffic feedback information.
  • an embodiment of the present application also provides a computer device.
  • a processor 61 a communication interface (Communications) Interface) 62, memory (memory) 63, and communication bus 64.
  • the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64.
  • the communication interface 64 is used to communicate with other devices, such as network elements such as clients or other servers.
  • the processor 61 is configured to execute a program, and specifically can execute relevant steps in the foregoing cloud network device testing method embodiment.
  • the program may include program code, and the program code includes computer operation instructions.
  • the processor 61 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
  • ASIC Application Specific Integrated Circuit
  • the one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
  • the memory 63 is used to store programs.
  • the memory 63 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory). memory), such as at least one disk storage.
  • the program can specifically be used to make the processor 61 perform the following operations: create a session data packet, which is established based on a communication protocol with an incomplete simulation function; and forward the session data packet to the server through the cloud network device
  • the server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  • modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
  • the various component embodiments of the present application may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present application.
  • This application can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
  • Such a program for implementing the present application may be stored on a computer-readable medium, or may have the form of one or more signals.
  • Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

Landscapes

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

Abstract

Disclosed is a method for testing a cloud network device, which method relates to the technical field of information, and mainly aims at being able to establish a session by means of a communication protocol having an incomplete simulation function, so as to complete testing of a cloud network device and prevent cluster deployment, thereby reducing test costs, shortening a test time and improving the test efficiency. The method comprises: analyzing a network traffic sample to acquire network traffic features of a multi-tenant network structure; setting environmental test parameters based on different network traffic features, and simulating a test environment of a cloud network device to be tested; in the simulated test environment, creating a session data packet based on a communication protocol having an incomplete simulation function, wherein the session data packet is established on the basis of the communication protocol having the incomplete simulation function; forwarding the session data packet to a serving end by means of a cloud network device, wherein the serving end is used for generating traffic feedback information according to the session data packet; and receiving and parsing the traffic feedback information forwarded by the serving end by means of the cloud network device.

Description

云网络设备的测试方法、存储介质和计算机设备Cloud network equipment testing method, storage medium and computer equipment
本申请要求于2020年2月20日提交中国专利局、申请号为CN202010104333.4、名称为“云网络设备的测试方法、装置、存储介质和计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with application number CN202010104333.4 and titled "Test methods, devices, storage media and computer equipment for cloud network equipment" on February 20, 2020, all of which The content is incorporated in this application by reference.
技术领域Technical field
本申请涉及信息技术领域,特别是涉及一种云网络设备的测试方法、存储介质和计算机设备。This application relates to the field of information technology, and in particular to a testing method, storage medium and computer equipment for cloud network equipment.
背景技术Background technique
对数据中心网络性能进行管理和优化时,首先需要对流量场景进行测试,以预估云网络设备是否能满足应对真实场景的需求,从而方便后续决策。并且随着虚拟化和云应用的使用越来越广泛,更多的虚拟公有云网络(Virtual Public Cloud,vpc)下的虚拟局域网(vlan)流量进入到云网络设备,针对云网络设备的测试越发重要。When managing and optimizing data center network performance, you first need to test traffic scenarios to estimate whether cloud network equipment can meet the needs of real scenarios, so as to facilitate subsequent decision-making. And with the increasing use of virtualization and cloud applications, more and more virtual public cloud networks (Virtual The virtual local area network (vlan) traffic under Public Cloud (vpc) enters the cloud network device, and the test for the cloud network device is becoming more and more important.
技术问题technical problem
目前,现有的云网络测试方法主要是通过完全模拟通信协议建立会话,以完成对云网络设备的测试。At present, the existing cloud network testing method is mainly to establish a session by completely simulating a communication protocol to complete the testing of cloud network equipment.
发明人意识到,目前云网络设备在进行测试时,由于通信协议协议栈的复杂性导致无法建立足够的会话来模拟真实环境,故而需要通过集群部署来实现,但是,集群部署工作需要耗费大量的人力财力物力,从而提高了云网络设备测试工作的测试成本,并且导致云网络设备测试工作时间较长且效率低下。The inventor realizes that when cloud network equipment is currently being tested, due to the complexity of the communication protocol stack, it is impossible to establish enough sessions to simulate the real environment. Therefore, it needs to be implemented through cluster deployment. However, cluster deployment requires a lot of work. Human, financial and material resources, thereby increasing the test cost of cloud network equipment testing, and leading to a long time and low efficiency in cloud network equipment testing.
技术解决方案Technical solutions
依据本申请一个方面,提供了一种云网络设备的测试方法,包括:According to one aspect of this application, a test method for cloud network equipment is provided, including:
分析网络流量样本,以获取多租户网络结构的网络流量特征;Analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure;
设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;Set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested;
在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;In a simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session data packet is established based on a communication protocol with incomplete simulation function; pass the session data packet through a cloud network device Forwarding to a server, where the server is used to generate traffic feedback information according to the session data packet;
接收并解析服务端通过云网络设备转发的流量反馈信息。Receive and parse the traffic feedback information forwarded by the server through the cloud network device.
依据本申请第二方面,提供了一种云网络设备的测试方法,包括:According to the second aspect of the present application, a test method for cloud network equipment is provided, including:
接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;Receiving a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
根据所述会话数据包生成流量反馈信息;Generating traffic feedback information according to the session data packet;
将所述流量反馈信息通过云网络设备转发给所述客户端。The traffic feedback information is forwarded to the client through the cloud network device.
依据本申请第三方面,提供了一种存储介质,所述存储介质中存储有至少一可执行指令,所述执行指令使处理器执行以下步骤:分析网络流量样本,以获取多租户网络结构的网络流量特征;设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。According to a third aspect of the present application, a storage medium is provided, the storage medium stores at least one executable instruction, and the execution instruction causes a processor to perform the following steps: analyze network traffic samples to obtain information about a multi-tenant network structure Network traffic characteristics; set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested; in the simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session The data packet is established based on a communication protocol with incomplete simulation function; the session data packet is forwarded to the server through the cloud network device, and the server is used to generate traffic feedback information according to the session data packet; receive and analyze The traffic feedback information forwarded by the server through the cloud network device.
依据本申请第四方面,提供了一种计算机设备,包括处理器、存储器、通信接口和通信总线所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信,所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行以下步骤:分析网络流量样本,以获取多租户网络结构的网络流量特征;设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。According to the fourth aspect of the present application, a computer device is provided, which includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus, and The memory is used to store at least one executable instruction that causes the processor to perform the following steps: analyze network traffic samples to obtain network traffic characteristics of a multi-tenant network structure; set up environmental tests based on different network traffic characteristics Parameters, simulate the test environment of the cloud network device to be tested; in the simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, and the session data packet is established based on a communication protocol with incomplete simulation function Forward the session data packet to the server through the cloud network device, the server is used to generate traffic feedback information based on the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
依据本申请第五方面,提供了另一种存储介质,所述存储介质中存储有至少一可执行指令,所述执行指令使处理器执行以下步骤:接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;根据所述会话数据包生成流量反馈信息;将所述流量反馈信息通过云网络设备转发给所述客户端。According to the fifth aspect of the present application, another storage medium is provided, the storage medium stores at least one executable instruction, and the execution instruction causes a processor to perform the following steps: receiving session data forwarded by a client through a cloud network device Packet, the session data packet is established by the client based on a communication protocol with incomplete simulation function; generating traffic feedback information according to the session data packet; forwarding the traffic feedback information to the client through a cloud network device end.
依据本申请第六方面,提供了另一种计算机设备,包括处理器、存储器、通信接口和通信总线所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信,所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行以下步骤:接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;根据所述会话数据包生成流量反馈信息;将所述流量反馈信息通过云网络设备转发给所述客户端。According to the sixth aspect of the present application, another computer device is provided, including a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus, The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following steps: receiving a session data packet forwarded by a client through a cloud network device, and the session data packet is based on the client A communication protocol with an incomplete simulation function is established; flow feedback information is generated according to the session data packet; and the flow feedback information is forwarded to the client through a cloud network device.
附图说明Description of the drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only used for the purpose of illustrating the preferred embodiments, and are not considered as a limitation to the application. Also, throughout the drawings, the same reference symbols are used to denote the same components. In the attached picture:
图1示出了本申请实施例提供的一种云网络设备的测试方法流程图;FIG. 1 shows a flow chart of a method for testing cloud network equipment provided by an embodiment of the present application;
图2示出了本申请实施例提供的另一种云网络设备的测试方法流程图;FIG. 2 shows a flowchart of another cloud network device testing method provided by an embodiment of the present application;
图3示出了本申请实施例提供的一种云网络设备测试装置的部署模式图;FIG. 3 shows a deployment mode diagram of a cloud network equipment testing apparatus provided by an embodiment of the present application;
图4示出了本申请实施例提供的一种云网络设备的测试装置的结构示意图;FIG. 4 shows a schematic structural diagram of a testing apparatus for cloud network equipment provided by an embodiment of the present application;
图5示出了本申请实施例提供的另一种云网络设备的测试装置的结构示意图;FIG. 5 shows a schematic structural diagram of another cloud network equipment test apparatus provided by an embodiment of the present application;
图6示出了本申请实施例提供的一种计算机设备的实体结构示意图;FIG. 6 shows a schematic diagram of the physical structure of a computer device provided by an embodiment of the present application;
图7示出了本申请实施例提供的又一种云网络设备的测试装置的结构示意图;FIG. 7 shows a schematic structural diagram of yet another cloud network device testing apparatus provided by an embodiment of the present application;
图8示出了本申请实施例提供的再一种云网络设备的测试装置的结构示意图;FIG. 8 shows a schematic structural diagram of yet another cloud network device testing apparatus provided by an embodiment of the present application;
图9示出了本申请实施例提供的另一种计算机设备的实体结构示意图。FIG. 9 shows a schematic diagram of the physical structure of another computer device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although the drawings show exemplary embodiments of the present disclosure, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
如背景技术所述,目前,云网络设备在进行测试时,由于通信协议协议栈的复杂性导致无法建立足够的会话来模拟真实环境,故而需要通过集群部署来实现,但是,集群部署工作需要耗费大量的人力财力物力,从而提高了云网络设备测试工作的测试成本,并且导致云网络设备测试工作时间较长且效率低下。As mentioned in the background art, at present, when cloud network equipment is being tested, due to the complexity of the communication protocol stack, it is impossible to establish enough sessions to simulate the real environment. Therefore, it needs to be implemented through cluster deployment. However, the cluster deployment work needs to be costly. A large amount of human, financial and material resources have increased the test cost of cloud network equipment testing, and led to a long time and low efficiency in cloud network equipment testing.
为了解决上述问题,本申请实施例提供了一种云网络设备的测试方法,如图1所示,所述方法包括:In order to solve the above-mentioned problem, an embodiment of the present application provides a method for testing cloud network equipment. As shown in FIG. 1, the method includes:
101、分析网络流量样本,以获取多租户网络结构的网络流量特征。101. Analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure.
具体地,分析接收的网络流量样本,获取所述网络流量样本的载荷数据,从所述载荷数据中提取流量特征。Specifically, the received network traffic sample is analyzed, the load data of the network traffic sample is obtained, and the traffic characteristics are extracted from the load data.
102、设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境。102. Set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested.
对于本申请实施例,所述云网络设备可以为基于虚拟公有云(virtrul public cloud,vpc)的网络设备,所述vpc可以为多租户架构,每个租户通过虚拟局域网(vlan)或者可扩展的虚拟局域网(vxlan)实现物理隔离。所述客户端获取所述云网络设备的网络流量特征,并可以根据所述网络流量特征来模拟待测试云网络设备的测试环境。所述网络流量特征具体可以包括基于vlan、vxlan进行网络分割的特征。由于现有的云计算数据中心多vpc环境通常使用vlan、vxlan等技术做大二层网络结构,因此,所述流量输出及监督装置可以将上述创建的会话数据包通过多个不同的vlan或者vxlan发送至所述云网络设备,从而实现基于多租户的网络流量特征,模拟待测试云网络设备的测试环境。For the embodiment of the present application, the cloud network device may be based on a virtual public cloud (virtrul public cloud). cloud, vpc) network equipment, the vpc may be a multi-tenant architecture, and each tenant is physically isolated through a virtual local area network (vlan) or an expandable virtual local area network (vxlan). The client obtains the network traffic characteristics of the cloud network device, and can simulate the test environment of the cloud network device to be tested according to the network traffic characteristics. The network traffic characteristics may specifically include the characteristics of network segmentation based on vlan and vxlan. Since the existing cloud computing data center multi-vpc environment usually uses vlan, vxlan and other technologies to make a large two-layer network structure, the traffic output and monitoring device can pass the created session data packets through multiple different vlans or vxlans. Send to the cloud network device, thereby realizing the network traffic characteristics based on multi-tenancy, and simulating the test environment of the cloud network device to be tested.
103、在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的。103. In a simulated test environment, create a session data packet based on a communication protocol with an incomplete simulation function, where the session data packet is established based on a communication protocol with an incomplete simulation function.
对于本申请实施例,执行主体可以为客户端,具体可以为设置在客户端的流量输出与监督装置。所述通信协议可以为TCP协议。所述具有不完全模拟功能的通信协议可以为对通信协议的不完全模拟,即损失掉所述云网络设备不关注的特征,例如所述TCP协议的拥塞算法等消耗性能资源的特征等;保留所述云网络设备重点关注的特征,例如所述TCP协议的三步握手、序列号一致性等只占用少量资源的特征,从而简化基于所述通信协议建立会话的过程。For the embodiment of the present application, the execution subject may be the client, and specifically may be a traffic output and monitoring device provided on the client. The communication protocol may be TCP protocol. The communication protocol with incomplete simulation function may be an incomplete simulation of the communication protocol, that is, features that the cloud network device does not care about are lost, such as the congestion algorithm of the TCP protocol and other features that consume performance resources; reserved; The features that the cloud network device focuses on, such as the three-way handshake of the TCP protocol, the consistency of sequence numbers, etc., occupy only a small amount of resources, thereby simplifying the process of establishing a session based on the communication protocol.
104、将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息。104. Forward the session data packet to a server through a cloud network device, where the server is configured to generate traffic feedback information according to the session data packet.
具体地,所述客户端可以将所述会话数据包通过云网络设备转发至所述服务端,所述服务端可以对所述会话数据包进行处理,生成所述流量反馈信息。Specifically, the client may forward the session data packet to the server through a cloud network device, and the server may process the session data packet to generate the traffic feedback information.
105、接收并解析服务端通过云网络设备转发的流量反馈信息。105. Receive and parse the traffic feedback information forwarded by the server through the cloud network device.
具体地,接收所述服务端通过云网络设备转发的流量反馈信息后,可以解析所述流量反馈信息,以便于提取所述流量反馈信息中的各项数据。Specifically, after receiving the traffic feedback information forwarded by the server through the cloud network device, the traffic feedback information can be parsed to facilitate extraction of various data in the traffic feedback information.
进一步的,为了更好的说明上述云网络设备的测试方法的过程,作为对上述实施例的细化和扩展,本申请实施例提供了几种可选实施例,但不限于此,具体如下所示:Further, in order to better illustrate the process of the above-mentioned cloud network device testing method, as a refinement and extension of the above-mentioned embodiment, the embodiment of the present application provides several alternative embodiments, but not limited to this, and the details are as follows Show:
在本申请的一个可选实施例,所述步骤103具体可以包括:根据预设的会话流量范围信息建立会话表;根据所述会话表以及不完全模拟功能的通信协议,创建会话数据包。其中,所述会话流量范围可以由根据云网络设备测试的实际需求设定。所述基于具有不完全模拟功能的通信协议创建会话数据包的过程可以包括:根据配置的会话流量范围,建立会话表,所述会话表可以用于记录所述会话数据包的五元组信息和会话表项的状态,将所述会话表分配给CPU协议栈,所述CPU协议栈根据所述会话表向所述待测试云网络设备发起三次握手过程以建立连接后,向所述待测试云网络设备发送会话数据包。In an optional embodiment of the present application, the step 103 may specifically include: establishing a session table according to preset session flow range information; and creating a session data packet according to the session table and a communication protocol with an incomplete simulation function. Wherein, the session flow range can be set according to actual requirements of cloud network equipment testing. The process of creating a session data packet based on a communication protocol with an incomplete simulation function may include: establishing a session table according to the configured session flow range, and the session table may be used to record the quintuple information of the session data packet and The status of the session entry, the session table is allocated to the CPU protocol stack, and the CPU protocol stack initiates a three-way handshake process to the cloud network device to be tested according to the session table to establish a connection, and then sends it to the cloud network device to be tested. The network device sends the session data packet.
在本申请的另一个可选实施例,所述步骤105具体可以包括:根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息;根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差。In another optional embodiment of the present application, the step 105 may specifically include: generating original data information according to the parsed traffic feedback information and a preset statistical algorithm; according to the original data information, and a preset session Service quality algorithm, which calculates the standard deviation of session service quality.
具体地,客户端接收所述流量反馈信息后,在本地查找所述流量反馈信息对应的会话信息,所述客户端本地保存有所述根据所述流量反馈信息与所述会话信息的对应关系。根据所述会话信息,进行原始数据统计,可以获得每个会话的各方面指标,如会话的可达性、延迟性和功能性判断等。根据所述原始数据信息,还可以计算会话的服务质量标准差,从而衡量会话的稳定性特征。Specifically, after receiving the flow feedback information, the client searches locally for the session information corresponding to the flow feedback information, and the client locally stores the corresponding relationship between the flow feedback information and the session information. According to the session information, the original data statistics are performed, and various indicators of each session, such as the reachability, delay, and functional judgment of the session, can be obtained. According to the original data information, the standard deviation of the quality of service of the session can also be calculated, so as to measure the stability characteristics of the session.
进一步地,所述根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息,具体可以包括:提取全部流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息;将所述收到流量信息、所述发送流量信息、所述丢失流量信息分别累加,得到总收到流量信息、总发送流量信息、总丢失流量信息;将所述总收到流量信息、所述总发送流量信息、所述总丢失流量信息确定为原始数据信息。Further, the generating the original data information according to the analyzed flow feedback information and the preset statistical algorithm may specifically include: extracting received flow information, sending flow information, and lost flow information from all flow feedback information; The received flow information, the sent flow information, and the lost flow information are respectively accumulated to obtain the total received flow information, the total sent flow information, and the total lost flow information; the total received flow information, the total sent flow information The flow information and the total lost flow information are determined to be original data information.
其中,所述客户端接收并解析流量反馈信息后,可以提取所述流量反馈信息内包含的流量信息,如收到流量信息、发送流量信息和丢失流量信息等,并根据接收的所有流量反馈信息以及预设的统计算法,计算原始数据信息。所述预设的统计算法可以为,将所有流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息分别进行累加,所得到的总收到流量信息、总发送流量信息和总丢失流量信息可以作为所述原始数据信息。Wherein, after the client receives and parses the flow feedback information, it can extract the flow information contained in the flow feedback information, such as received flow information, sent flow information, lost flow information, etc., and based on all received flow feedback information And the preset statistical algorithm to calculate the original data information. The preset statistical algorithm may be that the received flow information, the sent flow information, and the lost flow information in all the flow feedback information are respectively accumulated, and the total received flow information, the total sent flow information, and the total lost flow are obtained. Information can be used as the original data information.
对于本申请实施例,所述根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差,具体可以包括:利用所述原始数据信息进行加权平均计算;将计算所得结果确定为所述会话服务质量标准差。For the embodiment of the present application, the calculation of the standard deviation of the session service quality according to the original data information and the preset session service quality algorithm may specifically include: using the original data information to perform a weighted average calculation; It is determined as the standard deviation of the quality of service of the session.
其中,在确定所述原始数据信息后,根据所述原始数据信息进行加权平均计算,可以获得所述会话服务质量标准差,所述会话服务质量标准差可以用于衡量每个vpc下的会话稳定性。Wherein, after the original data information is determined, the weighted average calculation is performed according to the original data information to obtain the session service quality standard deviation, and the session service quality standard deviation can be used to measure the stability of the session under each vpc sex.
进一步地,所述基于所述网络流量特征,模拟待测试云网络设备的测试环境,具体可以包括:将所述会话数据包通过不同的虚拟局域网发送至所述云网络设备。Further, the simulating the test environment of the cloud network device to be tested based on the network traffic characteristics may specifically include: sending the session data packet to the cloud network device through a different virtual local area network.
对于本申请实施例,在创建会话数据包时,可以根据预先获取的云网络设备中,虚拟公有云(virtrul public cloud,vpc)的配置信息,建立各vpc的会话表,将所述会话表分配给不同vlan下的各个CPU协议栈,所述CPU协议栈根据所述会话表向所述待测试云网络设备发起三次握手过程以建立连接后,可以通过不同的vlan或者vxlan向所述待测试云网络设备发送会话数据包。For the embodiments of the present application, when creating a session data package, the virtual public cloud (virtrul public cloud, vpc), establish a session table for each vpc, and assign the session table to each CPU protocol stack under different VLANs, and the CPU protocol stack sends the cloud network device to be tested to the cloud network device to be tested according to the session table After the three-way handshake process is initiated to establish a connection, the session data packet can be sent to the cloud network device to be tested through a different vlan or vxlan.
进一步,对应地本申请实施例提供了另一种云网络设备的测试方法,如图2所示,所述方法包括:Further, correspondingly, an embodiment of the present application provides another cloud network device testing method. As shown in FIG. 2, the method includes:
201、接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的。201. Receive a session data packet forwarded by a client through a cloud network device, where the session data packet is established by the client based on a communication protocol with an incomplete simulation function.
对于本申请实施例,执行主体可以为服务端。所述服务端可以接收客户端通过云网络设备转发的会话数据包。For the embodiments of the present application, the execution subject may be the server. The server can receive the session data packet forwarded by the client through the cloud network device.
202、根据所述会话数据包生成流量反馈信息。202. Generate traffic feedback information according to the session data packet.
其中,如图3所示,提供了一种云网络设备测试装置的部署模式图,所述客户端和所述服务器可以为按照标准的client-server模式部署的,在服务端可以设置流量反馈装置,在所述客户端可以设置流量输出与监督装置。在接收所述客户端发送的会话数据包后,所述流量反馈装置可以对所述会话数据包进行处理,并生成流量反馈信息。Among them, as shown in Figure 3, a deployment mode diagram of a cloud network equipment test device is provided. The client and the server can be deployed in accordance with a standard client-server model, and a traffic feedback device can be set on the server. , The traffic output and monitoring device can be set on the client. After receiving the session data packet sent by the client, the traffic feedback device may process the session data packet and generate traffic feedback information.
203、将所述流量反馈信息通过云网络设备转发给所述客户端。203. Forward the traffic feedback information to the client through a cloud network device.
对于本申请实施例,所述服务端可以在生成流量反馈信息后,将所述流量反馈信息通过云网络设备转发给所述客户端。For the embodiment of the present application, the server may forward the traffic feedback information to the client through the cloud network device after generating the traffic feedback information.
进一步的,为了更好的说明上述云网络设备的测试方法的过程,作为对上述实施例的细化和扩展,本申请实施例提供了几种可选实施例,但不限于此,具体如下所示:Further, in order to better illustrate the process of the above-mentioned cloud network device testing method, as a refinement and extension of the above-mentioned embodiment, the embodiment of the present application provides several alternative embodiments, but not limited to this, and the details are as follows Show:
在本申请的一个可选实施例,所述步骤202具体可以包括:查找所述会话数据包中源地址、目的地址、源端口号以及目的端口号;交换所述源地址与所述目的地址,并交换所述源端口号与所述目的端口号;将交换处理后的会话数据包确认为所述流量反馈信息。In an optional embodiment of the present application, the step 202 may specifically include: searching the source address, destination address, source port number, and destination port number in the session data packet; exchanging the source address and the destination address, And exchange the source port number and the destination port number; confirm the exchanged session data packet as the flow feedback information.
对于本申请实施例,服务端内设置的流量反馈装置可以接收会话数据包,查找所述会话数据包中的源地址、目的地址、源端口号以及目的端口号,并进一步执行交换所述源地址与所述目的地址,以及交换所述源端口号与所述目的端口号的操作,所述交换处理之后的会话数据包即可以作为流量反馈信息,通过云网络设备转发给所述客户端。For the embodiment of the present application, the traffic feedback device set in the server can receive the session data packet, look up the source address, destination address, source port number, and destination port number in the session data packet, and further execute the exchange of the source address With the destination address and the operation of exchanging the source port number and the destination port number, the session data packet after the exchange processing can be used as traffic feedback information and forwarded to the client through the cloud network device.
进一步地,作为图1的具体实现,本申请实施例提供了一种云网络设备的测试装置,如图4所示,所述装置包括:获取单元31、模拟单元32、创建单元33、转发单元34和接收单元35。Further, as a specific implementation of FIG. 1, an embodiment of the present application provides a testing device for cloud network equipment. As shown in FIG. 4, the device includes: an acquisition unit 31, a simulation unit 32, a creation unit 33, and a forwarding unit. 34 and receiving unit 35.
获取单元31,用于分析网络流量样本,以获取多租户网络结构的网络流量特征;The obtaining unit 31 is configured to analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure;
模拟单元32,用于设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;The simulation unit 32 is configured to set environmental test parameters based on different network traffic characteristics, and simulate the test environment of the cloud network device to be tested;
所述创建单元33,可以用于在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;The creating unit 33 may be used to create a session data packet based on a communication protocol with an incomplete simulation function in a simulated test environment, where the session data packet is established based on a communication protocol with an incomplete simulation function;
所述转发单元34,可以用于将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;The forwarding unit 34 may be configured to forward the session data packet to a server via a cloud network device, and the server is configured to generate traffic feedback information according to the session data packet;
所述接收单元35,可以用于接收并解析服务端通过云网络设备转发的流量反馈信息。The receiving unit 35 may be used to receive and parse the traffic feedback information forwarded by the server through the cloud network device.
所述创建单元33包括:建立模块331和创建模块332,如图5所示。The creation unit 33 includes: a creation module 331 and a creation module 332, as shown in FIG. 5.
所述建立模块331,可以用于根据预设的会话流量范围建立会话表;The establishment module 331 may be used to establish a session table according to a preset session flow range;
所述创建模块332,可以用于根据所述会话表以及不完全模拟功能的通信协议,创建会话数据包。The creation module 332 may be used to create a session data packet according to the session table and the communication protocol of the incomplete simulation function.
对于本申请实施例,为了生成原始数据信息以及计算会话服务质量标准差,所述装置还可以包括:生成单元36和计算单元37。For the embodiment of the present application, in order to generate original data information and calculate the standard deviation of the session service quality, the apparatus may further include: a generating unit 36 and a calculating unit 37.
所述生成单元36,可以用于根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息;The generating unit 36 may be used to generate original data information according to the analyzed traffic feedback information and a preset statistical algorithm;
所述计算单元37,可以用于根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差。The calculation unit 37 may be configured to calculate the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
进一步地,所述生成单元36可以包括:提取模块361、累加模块362和第一确定模块363。Further, the generating unit 36 may include: an extraction module 361, an accumulation module 362, and a first determination module 363.
提取模块361,可以用于提取全部流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息;The extraction module 361 can be used to extract received flow information, sent flow information, and lost flow information from all flow feedback information;
累加模块362,可以用于将所述收到流量信息、所述发送流量信息、所述丢失流量信息分别累加,得到总收到流量信息、总发送流量信息、总丢失流量信息;The accumulation module 362 may be used to accumulate the received flow information, the sent flow information, and the lost flow information respectively to obtain total received flow information, total sent flow information, and total lost flow information;
第一确定模块363,可以用于将所述总收到流量信息、所述总发送流量信息、所述总丢失流量信息确定为原始数据信息;The first determining module 363 may be configured to determine the total received flow information, the total sent flow information, and the total lost flow information as original data information;
所述计算单元37可以包括:计算模块371和第二确定模块372。The calculation unit 37 may include: a calculation module 371 and a second determination module 372.
计算模块371,可以用于利用所述原始数据信息进行加权平均计算;The calculation module 371 may be used to perform weighted average calculation using the original data information;
第二确定模块372,可以用于将计算所得结果确定为所述会话服务质量标准差。The second determining module 372 may be used to determine the calculated result as the standard deviation of the session service quality.
进一步地,所述模拟单元32可以包括:发送模块321。Further, the simulation unit 32 may include: a sending module 321.
发送模块321,可以用于将所述会话数据包通过不同的虚拟局域网发送至所述云网络设备。The sending module 321 may be used to send the session data packet to the cloud network device through different virtual local area networks.
需要说明的是,本申请实施例提供的一种云网络设备的测试装置所涉及各功能模块的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of various functional modules involved in the test apparatus for cloud network equipment provided by the embodiment of the present application, reference may be made to the corresponding description of the method shown in FIG. 1, and details are not described herein again.
基于上述如图1所示方法,相应的,本申请实施例还提供了一种存储介质,所述存储介质可以是易失性,也可以是非易失性,所述存储介质中存储有至少一可执行指令,所述执行指令使处理器执行以下步骤:分析网络流量样本,以获取多租户网络结构的网络流量特征;设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。Based on the above method shown in FIG. 1, correspondingly, an embodiment of the present application also provides a storage medium. The storage medium may be volatile or non-volatile, and at least one storage medium is stored in the storage medium. Executable instructions that cause the processor to perform the following steps: analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure; set environmental test parameters based on different network traffic characteristics to simulate the test of the cloud network device to be tested Environment; in a simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session data packet is established based on a communication protocol with incomplete simulation function; pass the session data packet through the cloud The network device is forwarded to the server, and the server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
基于上述如图1所示方法和如图4所示装置的实施例,本申请实施例还提供了一种计算机设备,如图6所示,处理器(processor)41、通信接口(Communications Interface)42、存储器(memory)43、以及通信总线44。其中:处理器41、通信接口42、以及存储器43通过通信总线44完成相互间的通信。通信接口44,用于与其它设备比如客户端或其它服务器等的网元通信。处理器41,用于执行程序,具体可以执行上述云网络设备的测试方法实施例中的相关步骤。具体地,程序可以包括程序代码,该程序代码包括计算机操作指令。处理器41可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。Based on the above-mentioned method shown in FIG. 1 and the embodiment of the apparatus shown in FIG. 4, an embodiment of the present application also provides a computer device. As shown in FIG. 6, a processor 41, a communication interface (Communications) Interface 42, memory 43, and communication bus 44. Among them: the processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44. The communication interface 44 is used to communicate with other devices such as network elements such as clients or other servers. The processor 41 is configured to execute a program, and specifically can execute relevant steps in the foregoing cloud network device testing method embodiment. Specifically, the program may include program code, and the program code includes computer operation instructions. The processor 41 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
终端包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。存储器43,用于存放程序。存储器43可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。程序具体可以用于使得处理器41执行以下操作:分析网络流量样本,以获取多租户网络结构的网络流量特征;设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs. The memory 43 is used to store programs. The memory 43 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory). memory), such as at least one disk storage. The program can specifically be used to make the processor 41 perform the following operations: analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure; set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested; In a simulated test environment, create a session data packet based on a communication protocol with incomplete simulation function, the session data packet is established based on a communication protocol with incomplete simulation function; pass the session data packet through a cloud network device Forward to the server, the server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
进一步地,作为图2的具体实现,本申请实施例提供了另一种云网络设备的测试装置,如图7所示,所述装置包括:接收单元51、生成单元52和转发单元53。Further, as a specific implementation of FIG. 2, an embodiment of the present application provides another cloud network device testing device. As shown in FIG. 7, the device includes: a receiving unit 51, a generating unit 52, and a forwarding unit 53.
所述接收单元51,可以用于接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;The receiving unit 51 may be configured to receive a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
所述生成单元52,可以用于根据所述会话数据包生成流量反馈信息;The generating unit 52 may be configured to generate traffic feedback information according to the session data packet;
所述转发单元53,可以用于将所述流量反馈信息通过云网络设备转发给所述客户端。The forwarding unit 53 may be configured to forward the traffic feedback information to the client through a cloud network device.
所述生成单元52可以包括:查找模块521、交换模块522和确认模块523,如图8所示。The generating unit 52 may include: a search module 521, an exchange module 522, and a confirmation module 523, as shown in FIG. 8.
所述查找模块521,可以用于查找所述会话数据包中源地址、目的地址、源端口号以及目的端口号;The search module 521 may be used to search for a source address, a destination address, a source port number, and a destination port number in the session data packet;
所述交换模块522,可以用于交换所述源地址与所述目的地址,并交换所述源端口号与所述目的端口号;The switching module 522 may be used to exchange the source address and the destination address, and exchange the source port number and the destination port number;
所述确认模块523,可以用于将交换处理后的会话数据包确认为所述流量反馈信息。The confirmation module 523 may be used to confirm the exchanged session data packet as the traffic feedback information.
基于上述如图2所示方法和如图7所示装置的实施例,本申请实施例还提供了一种计算机设备,如图9所示,处理器(processor)61、通信接口(Communications Interface)62、存储器(memory)63、以及通信总线64。其中:处理器61、通信接口62、以及存储器63通过通信总线64完成相互间的通信。通信接口64,用于与其它设备比如客户端或其它服务器等的网元通信。处理器61,用于执行程序,具体可以执行上述云网络设备的测试方法实施例中的相关步骤。具体地,程序可以包括程序代码,该程序代码包括计算机操作指令。处理器61可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。Based on the above-mentioned method shown in FIG. 2 and the embodiment of the apparatus shown in FIG. 7, an embodiment of the present application also provides a computer device. As shown in FIG. 9, a processor 61, a communication interface (Communications) Interface) 62, memory (memory) 63, and communication bus 64. Among them, the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64. The communication interface 64 is used to communicate with other devices, such as network elements such as clients or other servers. The processor 61 is configured to execute a program, and specifically can execute relevant steps in the foregoing cloud network device testing method embodiment. Specifically, the program may include program code, and the program code includes computer operation instructions. The processor 61 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
终端包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。存储器63,用于存放程序。存储器63可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。程序具体可以用于使得处理器61执行以下操作:创建会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs. The memory 63 is used to store programs. The memory 63 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory). memory), such as at least one disk storage. The program can specifically be used to make the processor 61 perform the following operations: create a session data packet, which is established based on a communication protocol with an incomplete simulation function; and forward the session data packet to the server through the cloud network device The server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device.
通过本申请的技术方案,能够分析网络流量样本,以获取多租户网络结构的网络流量特征;设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;接收并解析服务端通过云网络设备转发的流量反馈信息。从而能够完成对云网络设备的测试,避免集群部署,降低测试成本,缩短测试时间,提高测试效率。Through the technical solution of this application, it is possible to analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure; set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested; in the simulated test environment Next, create a session data packet based on a communication protocol with incomplete simulation function, the session data packet is established based on a communication protocol with incomplete simulation function; forward the session data packet to the server through the cloud network device, The server is configured to generate traffic feedback information according to the session data packet; receive and parse the traffic feedback information forwarded by the server through the cloud network device. In this way, the test of cloud network equipment can be completed, cluster deployment is avoided, test cost is reduced, test time is shortened, and test efficiency is improved.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that the relevant features in the above method and device can be referred to each other. In addition, the “first”, “second”, etc. in the foregoing embodiments are used to distinguish the embodiments, and do not represent the advantages and disadvantages of the embodiments.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本申请也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本申请的内容,并且上面对特定语言所做的描述是为了披露本申请的最佳实施方式。The algorithms and displays provided here are not inherently related to any particular computer, virtual system or other equipment. Various general-purpose systems can also be used with the teaching based on this. Based on the above description, the structure required to construct this type of system is obvious. In addition, this application is not aimed at any specific programming language. It should be understood that various programming languages can be used to implement the content of the application described herein, and the above description of a specific language is for the purpose of disclosing the best embodiment of the application.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the instructions provided here, a lot of specific details are explained. However, it can be understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and technologies are not shown in detail, so as not to obscure the understanding of this specification.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本申请的示例性实施例的描述中,本申请的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本申请要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本申请的单独实施例。Similarly, it should be understood that, in order to simplify the present disclosure and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, Figure, or its description. However, the disclosed method should not be interpreted as reflecting the intention that the claimed application requires more features than the features explicitly recorded in each claim. More precisely, as reflected in the following claims, the inventive aspect lies in less than all the features of a single embodiment disclosed previously. Therefore, the claims following the specific embodiment are thus explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the application.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that it is possible to adaptively change the modules in the device in the embodiment and set them in one or more devices different from the embodiment. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art can understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments means that they are within the scope of the present application. Within and form different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present application. This application can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present application may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本申请进行说明而不是对本申请进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of multiple such elements. The application can be realized by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims listing several devices, several of these devices may be embodied in the same hardware item. The use of the words first, second, and third, etc. do not indicate any order. These words can be interpreted as names.

Claims (20)

  1. 一种云网络设备的测试方法,其中,包括:A testing method for cloud network equipment, including:
    分析网络流量样本,以获取多租户网络结构的网络流量特征;Analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure;
    设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;Set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested;
    在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;In a simulated test environment, create a session data packet based on a communication protocol with an incomplete simulation function, and the session data packet is established based on a communication protocol with an incomplete simulation function;
    将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;Forwarding the session data packet to a server through a cloud network device, where the server is configured to generate traffic feedback information according to the session data packet;
    接收并解析服务端通过云网络设备转发的流量反馈信息。Receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  2. 根据权利要求1的方法,其中,所述创建基于具有不完全模拟功能的通信协议的会话数据包,包括:The method according to claim 1, wherein said creating a session data packet based on a communication protocol with an incomplete simulation function comprises:
    根据预设的会话流量范围建立会话表;Establish a session table according to the preset session flow range;
    根据所述会话表以及不完全模拟功能的通信协议,创建会话数据包。Create a session data packet according to the session table and the communication protocol of incomplete simulation function.
  3. 根据权利要求1的方法,其中,所述接收并解析服务端通过云网络设备转发的流量反馈信息之后,所述方法还包括:The method according to claim 1, wherein after said receiving and parsing the traffic feedback information forwarded by the server through the cloud network device, the method further comprises:
    根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息;Generate raw data information according to the analyzed traffic feedback information and preset statistical algorithms;
    根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差。According to the original data information and the preset session quality of service algorithm, the standard deviation of the session quality of service is calculated.
  4. 根据权利要求3的方法,其中,所述根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息,包括:The method according to claim 3, wherein said generating the original data information according to the parsed traffic feedback information and a preset statistical algorithm comprises:
    提取全部流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息;Extract received flow information, sent flow information, and lost flow information from all flow feedback information;
    将所述收到流量信息、所述发送流量信息、所述丢失流量信息分别累加,得到总收到流量信息、总发送流量信息、总丢失流量信息;Respectively accumulate the received flow information, the sent flow information, and the lost flow information to obtain total received flow information, total sent flow information, and total lost flow information;
    将所述总收到流量信息、所述总发送流量信息、所述总丢失流量信息确定为原始数据信息;Determining the total received flow information, the total sent flow information, and the total lost flow information as original data information;
    所述根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差,包括:The calculating the standard deviation of the session service quality according to the original data information and the preset session service quality algorithm includes:
    利用所述原始数据信息进行加权平均计算;Perform weighted average calculation using the original data information;
    将计算所得结果确定为所述会话服务质量标准差。The calculated result is determined as the standard deviation of the session service quality.
  5. 根据权利要求1的方法,其中,所述基于多租户网络结构的网络流量特征,模拟待测试云网络设备的测试环境包括:The method according to claim 1, wherein said simulating the test environment of the cloud network device to be tested based on the network traffic characteristics of the multi-tenant network structure comprises:
    将所述会话数据包通过不同的虚拟局域网发送至所述云网络设备。The session data packet is sent to the cloud network device through different virtual local area networks.
  6. 一种云网络设备的测试方法,其中,包括:A testing method for cloud network equipment, including:
    接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;Receiving a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
    根据所述会话数据包生成流量反馈信息;Generating traffic feedback information according to the session data packet;
    将所述流量反馈信息通过云网络设备转发给所述客户端。The traffic feedback information is forwarded to the client through the cloud network device.
  7. 根据权利要求6的方法,其中,根据所述会话数据包生成流量反馈信息,包括:The method according to claim 6, wherein generating traffic feedback information according to the session data packet comprises:
    查找所述会话数据包中源地址、目的地址、源端口号以及目的端口号;Searching for the source address, destination address, source port number, and destination port number in the session data packet;
    交换所述源地址与所述目的地址,并交换所述源端口号与所述目的端口号;Exchanging the source address and the destination address, and exchanging the source port number and the destination port number;
    将交换处理后的会话数据包确认为所述流量反馈信息。The session data packet after the exchange processing is confirmed as the flow feedback information.
  8. 一种存储介质,其上存储有计算机程序,所述存储介质中存储有至少一可执行指令,所述执行指令使处理器执行如下步骤:A storage medium on which a computer program is stored, at least one executable instruction is stored in the storage medium, and the execution instruction causes a processor to perform the following steps:
    分析网络流量样本,以获取多租户网络结构的网络流量特征;Analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure;
    设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;Set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested;
    在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;In a simulated test environment, create a session data packet based on a communication protocol with an incomplete simulation function, and the session data packet is established based on a communication protocol with an incomplete simulation function;
    将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;Forwarding the session data packet to a server through a cloud network device, where the server is configured to generate traffic feedback information according to the session data packet;
    接收并解析服务端通过云网络设备转发的流量反馈信息。Receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  9. 根据权利要求8的存储介质,其中,所述创建基于具有不完全模拟功能的通信协议的会话数据包,包括:8. The storage medium according to claim 8, wherein said creating a session data packet based on a communication protocol with an incomplete simulation function comprises:
    根据预设的会话流量范围建立会话表;Establish a session table according to the preset session flow range;
    根据所述会话表以及不完全模拟功能的通信协议,创建会话数据包。Create a session data packet according to the session table and the communication protocol of incomplete simulation function.
  10. 根据权利要求8的存储介质,其中,所述接收并解析服务端通过云网络设备转发的流量反馈信息之后,所述执行指令还使处理器执行如下步骤:8. The storage medium according to claim 8, wherein, after receiving and parsing the traffic feedback information forwarded by the server through the cloud network device, the execution instruction further causes the processor to perform the following steps:
    根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息;Generate raw data information according to the analyzed traffic feedback information and preset statistical algorithms;
    根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差。According to the original data information and the preset session quality of service algorithm, the standard deviation of the session quality of service is calculated.
  11. 根据权利要求10的存储介质,其中,所述根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息,包括:The storage medium according to claim 10, wherein said generating the original data information according to the parsed traffic feedback information and a preset statistical algorithm comprises:
    提取全部流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息;Extract received flow information, sent flow information, and lost flow information from all flow feedback information;
    将所述收到流量信息、所述发送流量信息、所述丢失流量信息分别累加,得到总收到流量信息、总发送流量信息、总丢失流量信息;Respectively accumulate the received flow information, the sent flow information, and the lost flow information to obtain total received flow information, total sent flow information, and total lost flow information;
    将所述总收到流量信息、所述总发送流量信息、所述总丢失流量信息确定为原始数据信息;Determining the total received flow information, the total sent flow information, and the total lost flow information as original data information;
    所述根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差,包括:The calculating the standard deviation of the session service quality according to the original data information and the preset session service quality algorithm includes:
    利用所述原始数据信息进行加权平均计算;Perform weighted average calculation using the original data information;
    将计算所得结果确定为所述会话服务质量标准差。The calculated result is determined as the standard deviation of the session service quality.
  12. 根据权利要求8的存储介质,其中,所述基于多租户网络结构的网络流量特征,模拟待测试云网络设备的测试环境包括:The storage medium according to claim 8, wherein said simulating the test environment of the cloud network device to be tested based on the network traffic characteristics of the multi-tenant network structure comprises:
    将所述会话数据包通过不同的虚拟局域网发送至所述云网络设备。The session data packet is sent to the cloud network device through different virtual local area networks.
  13. 一种计算机设备,包括处理器、存储器、通信接口和通信总线所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信,所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如下步骤:A computer device including a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus, and the memory is used to store at least one executable Instructions, the executable instructions cause the processor to perform the following steps:
    分析网络流量样本,以获取多租户网络结构的网络流量特征;Analyze network traffic samples to obtain network traffic characteristics of the multi-tenant network structure;
    设置基于不同网络流量特征的环境测试参数,模拟待测试云网络设备的测试环境;Set environmental test parameters based on different network traffic characteristics to simulate the test environment of the cloud network device to be tested;
    在模拟的测试环境下,创建基于具有不完全模拟功能的通信协议的会话数据包,所述会话数据包是基于具有不完全模拟功能的通信协议建立的;In a simulated test environment, create a session data packet based on a communication protocol with an incomplete simulation function, and the session data packet is established based on a communication protocol with an incomplete simulation function;
    将所述会话数据包通过云网络设备转发给服务端,所述服务端用于根据所述会话数据包生成流量反馈信息;Forwarding the session data packet to a server through a cloud network device, where the server is configured to generate traffic feedback information according to the session data packet;
    接收并解析服务端通过云网络设备转发的流量反馈信息。Receive and parse the traffic feedback information forwarded by the server through the cloud network device.
  14. 根据权利要求13的计算机设备,其中,所述创建基于具有不完全模拟功能的通信协议的会话数据包,包括:The computer device according to claim 13, wherein said creating a session data packet based on a communication protocol with an incomplete simulation function comprises:
    根据预设的会话流量范围建立会话表;Establish a session table according to the preset session flow range;
    根据所述会话表以及不完全模拟功能的通信协议,创建会话数据包。Create a session data packet according to the session table and the communication protocol of incomplete simulation function.
  15. 根据权利要求13的计算机设备,其中,所述接收并解析服务端通过云网络设备转发的流量反馈信息之后,所述可执行指令还使所述处理器执行如下步骤:The computer device according to claim 13, wherein, after said receiving and analyzing the traffic feedback information forwarded by the server through the cloud network device, the executable instruction further causes the processor to perform the following steps:
    根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息;Generate raw data information according to the analyzed traffic feedback information and preset statistical algorithms;
    根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差。According to the original data information and the preset session quality of service algorithm, the standard deviation of the session quality of service is calculated.
  16. 根据权利要求15的计算机设备,其中,所述根据解析的流量反馈信息,以及预设的统计算法,生成原始数据信息,包括:The computer device according to claim 15, wherein said generating the original data information according to the parsed traffic feedback information and a preset statistical algorithm comprises:
    提取全部流量反馈信息中的收到流量信息、发送流量信息、丢失流量信息;Extract received flow information, sent flow information, and lost flow information from all flow feedback information;
    将所述收到流量信息、所述发送流量信息、所述丢失流量信息分别累加,得到总收到流量信息、总发送流量信息、总丢失流量信息;Respectively accumulate the received flow information, the sent flow information, and the lost flow information to obtain total received flow information, total sent flow information, and total lost flow information;
    将所述总收到流量信息、所述总发送流量信息、所述总丢失流量信息确定为原始数据信息;Determining the total received flow information, the total sent flow information, and the total lost flow information as original data information;
    所述根据所述原始数据信息,以及预设的会话服务质量算法,计算会话服务质量标准差,包括:The calculating the standard deviation of the session service quality according to the original data information and the preset session service quality algorithm includes:
    利用所述原始数据信息进行加权平均计算;Perform weighted average calculation using the original data information;
    将计算所得结果确定为所述会话服务质量标准差。The calculated result is determined as the standard deviation of the session service quality.
  17. 根据权利要求13的计算机设备,其中,所述基于多租户网络结构的网络流量特征,模拟待测试云网络设备的测试环境包括:The computer device according to claim 13, wherein said simulating the test environment of the cloud network device to be tested based on the network traffic characteristics of the multi-tenant network structure comprises:
    将所述会话数据包通过不同的虚拟局域网发送至所述云网络设备。The session data packet is sent to the cloud network device through different virtual local area networks.
  18. 一种存储介质,其上存储有计算机程序,所述存储介质中存储有至少一可执行指令,所述执行指令使处理器执行如下步骤:A storage medium on which a computer program is stored, at least one executable instruction is stored in the storage medium, and the execution instruction causes a processor to perform the following steps:
    接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;Receiving a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
    根据所述会话数据包生成流量反馈信息;Generating traffic feedback information according to the session data packet;
    将所述流量反馈信息通过云网络设备转发给所述客户端。The traffic feedback information is forwarded to the client through the cloud network device.
  19. 根据权利要求18的存储介质,其中,根据所述会话数据包生成流量反馈信息,包括:The storage medium according to claim 18, wherein generating traffic feedback information according to said session data packet comprises:
    查找所述会话数据包中源地址、目的地址、源端口号以及目的端口号;Searching for the source address, destination address, source port number, and destination port number in the session data packet;
    交换所述源地址与所述目的地址,并交换所述源端口号与所述目的端口号;Exchanging the source address and the destination address, and exchanging the source port number and the destination port number;
    将交换处理后的会话数据包确认为所述流量反馈信息。The session data packet after the exchange processing is confirmed as the flow feedback information.
  20. 一种计算机设备,包括处理器、存储器、通信接口和通信总线所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信,所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如下步骤:A computer device includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus, and the memory is used to store at least one executable Instructions, the executable instructions cause the processor to perform the following steps:
    接收客户端通过云网络设备转发的会话数据包,所述会话数据包为所述客户端基于具有不完全模拟功能的通信协议建立的;Receiving a session data packet forwarded by a client through a cloud network device, the session data packet being established by the client based on a communication protocol with an incomplete simulation function;
    根据所述会话数据包生成流量反馈信息;Generating traffic feedback information according to the session data packet;
    将所述流量反馈信息通过云网络设备转发给所述客户端。The traffic feedback information is forwarded to the client through the cloud network device.
PCT/CN2020/119065 2020-02-20 2020-09-29 Method for testing cloud network device, and storage medium and computer device WO2021164261A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010104333.4A CN111431758B (en) 2020-02-20 2020-02-20 Cloud network equipment testing method and device, storage medium and computer equipment
CN202010104333.4 2020-02-20

Publications (1)

Publication Number Publication Date
WO2021164261A1 true WO2021164261A1 (en) 2021-08-26

Family

ID=71547210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119065 WO2021164261A1 (en) 2020-02-20 2020-09-29 Method for testing cloud network device, and storage medium and computer device

Country Status (2)

Country Link
CN (1) CN111431758B (en)
WO (1) WO2021164261A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002010A (en) * 2022-05-27 2022-09-02 北京天融信网络安全技术有限公司 Test system, method and device, electronic equipment and storage medium
US20230037124A1 (en) * 2021-07-29 2023-02-02 Dish Wireless L.L.C. Virtualized cellular network multi-stage test and ticketing environment
US20230367642A1 (en) * 2022-05-13 2023-11-16 Google Llc Change-proposal Functions in Configuration Management Systems

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431758B (en) * 2020-02-20 2022-05-31 平安科技(深圳)有限公司 Cloud network equipment testing method and device, storage medium and computer equipment
CN113030388A (en) * 2020-09-15 2021-06-25 山东华科信息技术有限公司 Detection system and detection method for batch detection of smoke sensors
CN112436982B (en) * 2020-11-23 2022-06-21 苏州浪潮智能科技有限公司 Network flow automatic mixed running test method, system, terminal and storage medium
CN113645653A (en) * 2021-08-06 2021-11-12 腾讯数码(深圳)有限公司 Network simulation test method and device, electronic equipment and storage medium
CN116233905A (en) * 2021-12-03 2023-06-06 腾讯科技(深圳)有限公司 Test method and device of wireless local area network equipment, medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328281A1 (en) * 2014-01-14 2016-11-10 Entrix Co., Ltd. Application error detection method for cloud streaming service, and apparatus and system therefor
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus
CN108108296A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 A kind of cloud test method, server and client
CN110651459A (en) * 2017-12-21 2020-01-03 谷歌有限责任公司 Network impairment simulation framework for validating real-time interactive media streaming systems
CN111431758A (en) * 2020-02-20 2020-07-17 平安科技(深圳)有限公司 Cloud network equipment testing method and device, storage medium and computer equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5931913A (en) * 1997-05-07 1999-08-03 International Business Machines Corporation Methods, system and computer program products for establishing a session between a host and a terminal using a reduced protocol
CN105530654B (en) * 2015-12-24 2018-12-14 北京经纬恒润科技有限公司 A kind of self-organized network communication apparatus testing method and system
CN110138617B (en) * 2019-05-22 2021-11-12 北京字节跳动网络技术有限公司 Data transmission quality testing method, system, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328281A1 (en) * 2014-01-14 2016-11-10 Entrix Co., Ltd. Application error detection method for cloud streaming service, and apparatus and system therefor
CN106375142A (en) * 2016-08-26 2017-02-01 腾讯科技(深圳)有限公司 Application program test method and apparatus
CN108108296A (en) * 2016-11-24 2018-06-01 腾讯科技(北京)有限公司 A kind of cloud test method, server and client
CN110651459A (en) * 2017-12-21 2020-01-03 谷歌有限责任公司 Network impairment simulation framework for validating real-time interactive media streaming systems
CN111431758A (en) * 2020-02-20 2020-07-17 平安科技(深圳)有限公司 Cloud network equipment testing method and device, storage medium and computer equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230037124A1 (en) * 2021-07-29 2023-02-02 Dish Wireless L.L.C. Virtualized cellular network multi-stage test and ticketing environment
US11855873B2 (en) * 2021-07-29 2023-12-26 DISH Wireless L.L.C Virtualized cellular network multi-stage test and ticketing environment
US20230367642A1 (en) * 2022-05-13 2023-11-16 Google Llc Change-proposal Functions in Configuration Management Systems
US11928520B2 (en) * 2022-05-13 2024-03-12 Google Llc Change-proposal functions in configuration management systems
CN115002010A (en) * 2022-05-27 2022-09-02 北京天融信网络安全技术有限公司 Test system, method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111431758B (en) 2022-05-31
CN111431758A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
WO2021164261A1 (en) Method for testing cloud network device, and storage medium and computer device
CN110351156B (en) Test method and device
US9459987B2 (en) Method and system for comparing different versions of a cloud based application in a production environment using segregated backend systems
US9455873B2 (en) End-to-end analysis of transactions in networks with traffic-altering devices
CN110247784B (en) Method and device for determining network topology structure
US9001688B2 (en) Dynamic balancing of a traffic mix for data center device testing
WO2015165296A1 (en) Method and device for identifying protocol type
WO2021052379A1 (en) Data stream type identification method and related devices
US10091073B2 (en) Large-scale passive network monitoring using multiple tiers of ordinary network switches
EP3364601B1 (en) Testing method, device and system
WO2019206295A1 (en) Network access method and device for edge router
CN113364804B (en) Method and device for processing flow data
US10374946B2 (en) Centralized wireless network management system
CN104079571A (en) Method and device for recognizing Android simulator
WO2022057265A1 (en) Test method and device for simulating customer series deployment environment
US20220014457A1 (en) Methods, systems and computer readable media for stateless service traffic generation
US8966321B2 (en) Logical port and layer protocol test configuration resource manager
CN113055420B (en) HTTPS service identification method and device and computing equipment
CN114389792B (en) WEB log NAT (network Address translation) front-back association method and system
TWI538441B (en) Process system for constructing network structure deployment diagram and the method thereof and computer program product storing network structure deployment analysis program are provided to analyze the network structure deployment of target network
WO2021128936A1 (en) Message processing method and apparatus
Toll et al. IoTreeplay: Synchronous Distributed Traffic Replay in IoT Environments
US20230066835A1 (en) Methods, systems and computer readable media for improving remote direct memory access performance
CN113676369B (en) Network quality analysis method, data receiving server and storage medium
US9385935B2 (en) Transparent message modification for diagnostics or testing

Legal Events

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

Ref document number: 20919712

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20919712

Country of ref document: EP

Kind code of ref document: A1