Network equipment performance testing method, device, equipment and storage medium
By obtaining session data of multiple network services and establishing a preset data transmission process, the performance test of network devices is solved, and the problem that the existing technology cannot meet the testing of multiple mixed services is achieved, and a comprehensive evaluation of network device performance is achieved. .
Patent Information
- Application Number
- CN202211017467.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2042-08-23
AI Technical Summary
The prior art cannot meet the performance testing needs of network equipment under multiple hybrid services, and cannot simulate multiple services to perform performance evaluation at the same time.
By obtaining session data of multiple network services, a preset data transmission process is established based on the session data of each service, and the performance test of the network equipment is carried out according to the data transmission process to obtain the test results.
The performance test of network equipment under a variety of mixed services is realized, and performance indicators such as maximum data reception rate, maximum number of received sessions, average data reception rate and average number of received sessions are able to meet the testing needs of complex business scenarios.
Smart Images

Figure CN115459863B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of network technology, and in particular, relates to a network equipment performance testing method, device, equipment and storage medium. Background Art
[0002] CPE (Customer Premise Equipment) is a commonly used network device that can receive mobile signals and forward them as wireless WIFI signals. It can also convert high-speed 4G or 5G signals into WiFi signals and support multiple mobile terminals to access the Internet at the same time. Currently, the performance test of network devices such as CPE mainly uses tools such as Iperf, but tools such as Iperf can only simulate a single service and cannot meet the performance test of multiple mixed services. Summary of the invention
[0003] The embodiments of the present application provide a network equipment performance testing method, apparatus, device and storage medium, which can solve the problem that the prior art cannot meet the performance testing requirements under multiple hybrid services.
[0004] A first aspect of an embodiment of the present application provides a network device performance testing method, including:
[0005] Get session data of multiple network services respectively, each of which corresponds to different protocols;
[0006] Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through the network device;
[0007] According to the data transmission process, the performance of the network equipment is tested to obtain the test results.
[0008] A second aspect of an embodiment of the present application provides a network device performance testing device, including:
[0009] The data acquisition module acquires the session data of various network services respectively, and each network service corresponds to a different protocol;
[0010] A transmission establishment module, used to establish a data transmission process of a preset duration corresponding to each network service through a network device based on the session data of each network service;
[0011] The performance test module is used to perform performance tests on network devices according to the data transmission process and obtain test results.
[0012] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network device performance testing method as described above when executing the computer program.
[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the network device performance testing method as described above is implemented.
[0014] The first aspect of the embodiment of the present application provides a network device performance testing method, which obtains session data of multiple network services respectively, and establishes a data transmission process of a preset duration corresponding to each network service through the network device based on the session data of each network service, thereby performing a performance test on the network device according to the data transmission process to obtain a test result, thereby being able to realize performance testing under multiple mixed services.
[0015] It can be understood that the beneficial effects of the second, third and fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 A schematic diagram of a test environment for a network device performance test method provided in an embodiment of the present application;
[0018] Figure 2 A flowchart of a network device performance testing method provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of the structure of a network device performance testing device provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. "Multiple" means "two or more".
[0027] Embodiment 1
[0028] Embodiment 1 of the present application provides a network device performance testing method, which can be executed by a processor of a terminal device when running a corresponding computer program, and is used to obtain session data of multiple network services respectively, and establish a data transmission process of a preset duration corresponding to each network service through the network device based on the session data of each network service, thereby performing a performance test on the network device according to the data transmission process, obtaining a test result, and realizing performance testing under multiple mixed services.
[0029] Figure 1 The test environment of the network equipment performance test method provided in this embodiment, wherein the core network 101 and the base station 102 are configured with the same network segment address, and the addresses of each other are set to ensure that the link is established. The core network 101 is configured with SIM card information, including IMSI, OP, OPC, KI, DNN, SST, SD, PLMN, TAC and other information, the base station 102 is configured with SST, SD, PLMN, TAC and other information, the APN configured on the CPE 103 is consistent with the DNN of the core network 101, the CPE 103 dials successfully to obtain the IP address assigned by the core network 101, the server 104 is connected to the LAN port of the CPE 103 at one end, and the other end is connected to the switch 105, so as to test the CPE 103 and record the test results.
[0030] like Figure 2 As shown, the network device performance testing method provided in this embodiment includes the following steps S21 to S23:
[0031] S21. Acquire session data of multiple network services respectively, each network service corresponding to a different protocol.
[0032] In the application, users can Figure 1 The control PC 106 shown opens the server's WEB page and imports session data of various network services such as video, voice, game, download, email, web browsing, etc. as the service protocol simulation source. Each network service corresponds to a different protocol such as http, https, smtp, pop3, rtsp, sip, bittorent. The session data can include packet capture files of a single session and its combination.
[0033] S22. Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through a network device.
[0034] In the application, the user can enter the IP range of the service protocol simulation source on the WEB page. The WEB page sends the IP range and data ratio to the server. The server establishes a virtual host range based on the current IP range and responds to the ARP request. The server uses each protocol as a template to establish the client and server respectively. The client of the server sends the corresponding amount of session data to the server through the CPE according to the data ratio, and the server responds after receiving it. The above preset duration can be pre-set by the user, such as 10 minutes, and the above data ratio can be the number of sessions required to achieve the sending rate.
[0035] S23. Perform performance test on the network equipment according to the data transmission process to obtain test results.
[0036] In the application, the server can perform performance tests on the CPE according to the data transmission process corresponding to each network service, and store the test results in the database. The test data of each network service per second can be transmitted back to the WEB page through Websocks, and dynamic charts can be displayed on the WEB page.
[0037] The network device performance testing method provided in the embodiment of the present application obtains the session data of multiple network services respectively, and based on the session data of each network service, establishes a data transmission process of a preset duration corresponding to each network service through the network device, thereby performing a performance test on the network device according to the data transmission process to obtain a test result, thereby being able to realize performance testing under multiple mixed services.
[0038] Embodiment 2
[0039] Embodiment 2 of the present application provides a network equipment performance testing method based on embodiment 1, which can be executed by the processor of the terminal equipment when running the corresponding computer program, and is used to implement the maximum data receiving rate, maximum number of receiving sessions, average data receiving rate, and average number of receiving sessions for testing a single network service.
[0040] In this embodiment, step S22 includes: based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through the network device at the maximum transmission rate. Step S23 includes: according to each data transmission process, a performance test is performed on the network device to obtain the maximum data receiving rate and the average data receiving rate of each network service.
[0041] In the application, the performance test can be performed on each network service in turn, and the session data of a network service is obtained each time. Based on the session data, a data transmission process of a preset duration corresponding to the network service is established through the network device at the maximum transmission rate. Specifically, the server can use the protocol corresponding to the network service as a template to establish the client and the server. The client sends the session data of the network service to the server at the maximum transmission rate through the CPE, and the server responds after receiving it. The above-mentioned maximum transmission rate can be a transmission rate obtained in advance, such as 1000Mbps, and the above-mentioned preset duration can be pre-set by the user, such as 10 minutes. The server can perform performance testing on the CPE according to the data transmission process corresponding to the network service, record the ratio t of the network service every second = data receiving rate / maximum transmission rate, and save it to the current service rate ratio T list, and finally obtain the maximum data receiving rate and average data receiving rate of the network service within the preset duration.
[0042] In this embodiment, step S22 further includes: based on the session data of each network service, establishing a data transmission process of a preset duration corresponding to each network service through the network device at a sending rate of a preset growth rate. Step S23 further includes: performing a performance test on the network device according to each data transmission process in turn to obtain the maximum number of received sessions and the average number of received sessions for each network service.
[0043] In the application, after testing the maximum data receiving rate and average data receiving rate of a network service, the maximum number of receiving sessions and the average number of receiving sessions of the network service can also be tested, that is, a data transmission process of a preset duration corresponding to the network service is established through the network device at a sending rate with a preset growth rate. Specifically, the client can send the session data of the network service to the server through the CPE at a sending rate with a preset growth rate, and the server responds after receiving it. The sending rate of the preset growth rate can be preset by the user, such as starting with 10 sessions and increasing by 10 sessions per second. The preset duration can be preset by the user, such as 10 minutes. The server can perform performance testing on the CPE according to the data transmission process corresponding to the network service, record the number of receiving sessions s of the network service per second, and save it to the current service session number S list, and finally obtain the maximum number of receiving sessions and the average number of receiving sessions of the network service within the preset duration.
[0044] Embodiment 3
[0045] Embodiment 3 of the present application provides a network equipment performance testing method based on embodiment 1, which can be executed by the processor of the terminal equipment when running the corresponding computer program, and is used to implement the maximum total data receiving rate, maximum total receiving session number, average total data receiving rate, and average total receiving session number of the hybrid network service.
[0046] In this embodiment, step S22 includes: based on the session data of all network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at the maximum transmission rate, and each network service corresponds to a data transmission process. Step S23 includes: based on all data transmission processes, the network device is subjected to performance testing to obtain the maximum total data receiving rate and the average total data receiving rate of all network services.
[0047] In the application, multiple network services can be tested for performance at the same time, and session data of at least four network services can be obtained. Based on the session data of all network services, multiple data transmission processes of preset duration can be established at the same time through the network equipment according to the maximum sending rate. Specifically, the server can use the protocol corresponding to each network service as a template to establish the client and the server respectively. The client sends the session data of the network service corresponding to the client to the server corresponding to the client through the CPE at the maximum sending rate. After receiving the data, the server corresponding to the client responds. The above-mentioned maximum sending rate can be a pre-acquired sending rate, such as 1000Mbps, and the above-mentioned preset duration can be pre-set by the user, such as 10 minutes. The server can perform performance testing on the CPE according to the data transmission process corresponding to all network services, record the ratio t = data receiving rate / maximum sending rate of each network service every second, and save it to the current service rate ratio T list, and finally obtain the maximum total data receiving rate and average total data receiving rate of all network services within the preset duration.
[0048] In this embodiment, step S22 also includes: based on the session data of all network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at a sending rate of a preset growth rate, and each network service corresponds to a data transmission process. Step S23 also includes: based on all data transmission processes, a performance test is performed on the network device to obtain the maximum total number of received sessions and the average total number of received sessions for all network services.
[0049] In the application, after testing the maximum total data receiving rate and average total data receiving rate of multiple network services, the maximum total receiving session number and average total receiving session number of multiple network services can also be tested, that is, multiple data transmission processes of preset duration are established simultaneously through the network device at a sending rate with a preset growth rate. Specifically, the client can send the session data of the network service corresponding to the client to the server corresponding to the client through the CPE at a sending rate with a preset growth rate, and the server corresponding to the client responds after receiving it. The sending rate of the preset growth rate can be preset by the user, such as starting with 10 sessions and increasing by 10 sessions per second. The preset duration can be preset by the user, such as 10 minutes. The server can perform performance testing on the CPE according to the data transmission processes corresponding to all network services, record all receiving session numbers s of all network services per second, and save them to the current service session number S list, and finally obtain the maximum total receiving session number and average total receiving session number of all network services within the preset duration.
[0050] Embodiment 4
[0051] Embodiment 4 of the present application provides a network equipment performance testing method based on embodiment 1, which can be executed by the processor of the terminal equipment when running the corresponding computer program, and is used to implement the test of the average data receiving rate of each network service of the hybrid network service under the fair competition mechanism.
[0052] In this embodiment, step S22 includes: respectively obtaining the sending ratio rate of each network service; based on the session data of all network services, simultaneously establishing multiple data transmission processes of preset duration through network equipment, each network service corresponds to a data transmission process, and each data transmission process is established according to the sending ratio rate of the network service corresponding thereto. Step S23 includes: respectively performing performance testing on the network equipment according to each data transmission process, and obtaining the average data receiving rate of each network service.
[0053] In the application, the session data of at least four network services are obtained, and the CPE starts a fair competition mechanism so that each network service can obtain its own transmission ratio rate, such as the maximum transmission rate is 1000Mbps, the transmission ratio rate of video is 30% of the maximum transmission rate, the transmission ratio rate of voice is 10% of the maximum transmission rate, the transmission ratio rate of game is 40% of the maximum transmission rate, and the transmission ratio rate of download is 20% of the maximum transmission rate. Based on the session data of all network services, multiple data transmission processes with preset durations are established simultaneously through network devices. Specifically, the server can use the protocol corresponding to each network service as a template to establish the client and the server respectively. The client sends the session data of the network service corresponding to the client to the server corresponding to the client through the CPE according to the transmission ratio rate of the network service corresponding to the client. The server corresponding to the client responds after receiving it. The above preset duration can be set by the user in advance, such as 10 minutes. The server can perform performance tests on the CPE according to the data transmission process corresponding to each network service, record the ratio t = data receiving rate / maximum sending rate of each network service every second, and save it to the current service rate ratio T list, and finally obtain the average data receiving rate of each network service within the preset time.
[0054] Embodiment 5
[0055] Embodiment 5 of the present application provides a network equipment performance testing method based on embodiment 4, which can be executed by the processor of the terminal equipment when running the corresponding computer program, and is used to implement the test of the data receiving rate and response time of each network service of the hybrid network service at a fixed sending ratio rate.
[0056] In this embodiment, step S22 includes: based on the session data of all network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at a sending rate that is the same as the average data receiving rate obtained in embodiment 4, and each network service corresponds to a data transmission process. Step S23 includes: based on all data transmission processes, a performance test is performed on the network device to obtain a data receiving rate fluctuation curve and a response time fluctuation curve of all network services within a preset duration.
[0057] In the application, based on the session data of all network services, multiple data transmission processes of preset duration are established simultaneously through network devices. Specifically, the server can use the protocol corresponding to each network service as a template to establish the client and the server respectively. The client sends the session data of the network service corresponding to the client to the server corresponding to the client through the CPE at the same sending rate as the average data receiving rate of the network service corresponding to the client. The server corresponding to the client responds after receiving the data. The above preset duration can be preset by the user, such as 24 hours. The server can perform performance tests on the CPE according to the data transmission process corresponding to each network service, record the ratio t = data receiving rate / maximum sending rate of each network service every second, save it to the current service rate ratio T list, and transmit it to the WEB real-time performance chart; record the response time k = server start receiving time - client start sending time of each network service every second, record it in the response time K list, and transmit it to the WEB real-time response chart, and finally obtain the data receiving rate fluctuation curve and response time fluctuation curve of each network service within the preset duration.
[0058] Embodiment 6
[0059] like Figure 3 As shown, this embodiment provides a network device performance test device 300, and the network device performance test device 300 includes:
[0060] The data acquisition module 301 acquires session data of various network services respectively, each network service corresponding to a different protocol;
[0061] A transmission establishment module 302, configured to establish a data transmission process of a preset duration corresponding to each network service through a network device based on the session data of each network service;
[0062] The performance test module 303 is used to perform performance test on the network device according to the data transmission process and obtain the test result.
[0063] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0064] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0065] The present application embodiment also provides a terminal device 400, such as Figure 4 As shown, it includes a memory 401, a processor 402, and a computer program 403 stored in the memory 401 and executable on the processor 402. When the processor 402 executes the computer program 403, the steps of the network device performance testing method provided in the first aspect are implemented.
[0066] In the application, the terminal device may include, but is not limited to, a processor and a memory. Figure 4 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input and output devices, network access devices, etc. Input and output devices may include cameras, audio acquisition / playback devices, display screens, etc. The network access device may include a network module for wirelessly communicating with external devices.
[0067] In applications, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0068] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. The memory may also include both an internal storage unit and an external storage device of the terminal device. The memory is used to store operating systems, applications, boot loaders, data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
[0069] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0070] The present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0071] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] Those of ordinary skill in the art will appreciate that the devices and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0073] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices, which can be electrical, mechanical or other forms.
[0074] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A network equipment performance testing method, characterized in that: include: Respectively obtain session data of multiple network services, each of which corresponds to a different protocol, wherein the user opens a WEB page of the server to import the session data of multiple network services as a service protocol simulation source; Based on the session data of the network service, a data transmission process of a preset duration corresponding to the network service is established through a network device, wherein the user enters the IP range of the service protocol simulation source on the WEB page, the WEB page sends the IP range and data ratio to the server, the server establishes a virtual host range according to the IP range and responds to the ARP request, the server establishes a client and a server respectively using each protocol as a template, the client of the server sends a corresponding amount of session data to the server through the network device according to the data ratio, and the server responds after receiving the data, and the data ratio is the number of sessions required to achieve the sending rate; The server performs a performance test on the network device according to the data transmission process corresponding to the network service to obtain a test result; The establishing of a data transmission process of a preset duration corresponding to the network service through a network device based on the session data of the network service includes: Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through a network device at a maximum transmission rate. According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: Performing a performance test on the network device according to each of the data transmission processes in turn to obtain a maximum data receiving rate and an average data receiving rate for each of the network services; and Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through a network device at a sending rate of a preset growth rate; According to the data transmission process, a performance test is performed on the network device to obtain a test result, further comprising: According to each of the data transmission processes, the network device is tested for performance in turn to obtain a maximum number of receiving sessions and an average number of receiving sessions for each of the network services; Alternatively, the establishing, based on the session data of the network service, a data transmission process of a preset duration corresponding to the network service through a network device includes: Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at the maximum sending rate, each of the network services corresponds to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to all the data transmission processes, the network equipment is subjected to a performance test to obtain a maximum total data receiving rate and an average total data receiving rate of all the network services; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at a sending rate of a preset growth rate, each of the network services corresponds to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, further comprising: According to all the data transmission processes, a performance test is performed on the network device to obtain a maximum total number of receiving sessions and an average total number of receiving sessions for all the network services; Alternatively, the establishing, based on the session data of the network service, a data transmission process of a preset duration corresponding to the network service through a network device includes: Respectively obtain the sending ratio rate of each network service; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device, each of the network services corresponds to one data transmission process, and each of the data transmission processes is established according to the sending ratio rate of the network service corresponding thereto; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to each of the data transmission processes, the network equipment is subjected to a performance test to obtain an average data receiving rate of each of the network services; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through a network device at a sending rate that is the same as the average data receiving rate, each of the network services corresponding to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to all the data transmission processes, the network equipment is subjected to a performance test to obtain a data receiving rate fluctuation curve and a response time fluctuation curve of all the network services within a preset time period.
2. A network equipment performance testing device, characterized in that: include: A data acquisition module acquires session data of various network services respectively, each of which corresponds to a different protocol, wherein a user opens a WEB page of a server to import session data of various network services as a service protocol simulation source; A transmission establishment module, used to establish a data transmission process of a preset duration corresponding to the network service through a network device based on the session data of the network service, wherein the user enters the IP range of the service protocol simulation source on the WEB page, the WEB page sends the IP range and data ratio to the server, the server establishes a virtual host range according to the IP range and responds to the ARP request, the server establishes a client and a server respectively using each protocol as a template, the client of the server sends a corresponding amount of session data to the server through the network device according to the data ratio, and the server responds after receiving the data, and the data ratio is the number of sessions required to achieve the sending rate; A performance testing module, used to perform a performance test on the network device according to the data transmission process corresponding to the network service, and obtain a test result; The establishing of a data transmission process of a preset duration corresponding to the network service through a network device based on the session data of the network service includes: Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through a network device at a maximum transmission rate. According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: Performing a performance test on the network device according to each of the data transmission processes in turn to obtain a maximum data receiving rate and an average data receiving rate for each of the network services; and Based on the session data of each network service, a data transmission process of a preset duration corresponding to each network service is established through a network device at a sending rate of a preset growth rate; According to the data transmission process, a performance test is performed on the network device to obtain a test result, further comprising: According to each of the data transmission processes, the network device is tested for performance in turn to obtain a maximum number of receiving sessions and an average number of receiving sessions for each of the network services; Alternatively, the establishing, based on the session data of the network service, a data transmission process of a preset duration corresponding to the network service through a network device includes: Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at the maximum sending rate, each of the network services corresponds to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to all the data transmission processes, the network equipment is subjected to a performance test to obtain a maximum total data receiving rate and an average total data receiving rate of all the network services; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device at a sending rate of a preset growth rate, each of the network services corresponds to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, further comprising: According to all the data transmission processes, a performance test is performed on the network device to obtain a maximum total number of receiving sessions and an average total number of receiving sessions for all the network services; Alternatively, the establishing, based on the session data of the network service, a data transmission process of a preset duration corresponding to the network service through a network device includes: Respectively obtain the sending ratio rate of each network service; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through the network device, each of the network services corresponds to one data transmission process, and each of the data transmission processes is established according to the sending ratio rate of the network service corresponding thereto; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to each of the data transmission processes, the network equipment is subjected to a performance test to obtain an average data receiving rate of each of the network services; Based on the session data of all the network services, a plurality of data transmission processes of preset duration are simultaneously established through a network device at a sending rate that is the same as the average data receiving rate, each of the network services corresponding to one data transmission process; According to the data transmission process, a performance test is performed on the network device to obtain a test result, including: According to all the data transmission processes, the network equipment is subjected to a performance test to obtain a data receiving rate fluctuation curve and a response time fluctuation curve of all the network services within a preset time period.
3. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the network device performance testing method as claimed in claim 1 is implemented.
4. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network device performance testing method as claimed in claim 1 is implemented.
Citation Information
Patent Citations
System and a method for testing network communication devices
US7418492B1