CN112333044B - Shunting equipment performance test method, device and system, electronic equipment and medium - Google Patents
Shunting equipment performance test method, device and system, electronic equipment and medium Download PDFInfo
- Publication number
- CN112333044B CN112333044B CN202011186146.1A CN202011186146A CN112333044B CN 112333044 B CN112333044 B CN 112333044B CN 202011186146 A CN202011186146 A CN 202011186146A CN 112333044 B CN112333044 B CN 112333044B
- Authority
- CN
- China
- Prior art keywords
- data packet
- test
- equipment
- time
- shunting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Abstract
The invention discloses a method, a system, a device, electronic equipment and a medium for testing the performance of shunting equipment. The method comprises the following steps: the test client sends a first data packet carrying a preset rule to the shunting equipment, and records the packet sending time of the first data packet; the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment; the test client receives feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule; the test client determines the rule effective time of the shunting equipment according to the packet sending time and the feedback time of the first data packet, so that the test flexibility and the test efficiency are improved.
Description
Technical Field
The embodiment of the invention relates to the field of data communication, in particular to a method, a system, a device, electronic equipment and a medium for testing the performance of shunting equipment.
Background
In recent years, the application of broadband networks and value-added services in China is more and more extensive. Telecom operators, value added service providers, and even various public safety organizations all need to deploy various distribution devices in private networks. The shunting device filters data required by the user according to the conditions of port numbers, IP, feature codes and the like of different protocols. The offloading device has various performance requirements for data processing, where the validation time of the rule is an important performance indicator.
The existing rule effective time testing method has high requirements on resources, and needs a testing machine, a bale-issuing machine, a three-layer switch, a server, special RCP software and the like. And the requirement on the knowledge reserve of testers is high, the switch is required to be configured, and RCP is used. Test environment set-up and test operations are also complex. Often at significant human, resource and time costs.
Disclosure of Invention
The invention provides a method, a device, a system, electronic equipment and a medium for testing the performance of shunting equipment, which improve the flexibility and the efficiency of testing.
In a first aspect, an embodiment of the present invention provides a method for testing performance of a shunting device, where the method is applied to a test system, where the test system includes a test client, a shunting device to be tested, and a test device, the test client is respectively in communication connection with the shunting device and the test device based on an ethernet, and the shunting device and the test device are in wired connection, and the method includes:
the test client sends a first data packet carrying a preset rule to the shunting equipment, and records the packet sending time of the first data packet;
the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment;
the test client receives feedback time of the shunting device sent by the test device, wherein the feedback time is receiving time of a third data packet fed back to the second data packet by the test device according to a preset rule;
and the test client determines the rule effective time of the shunting equipment according to the packet sending time of the first data packet and the feedback time.
In a second aspect, an embodiment of the present invention further provides a device for testing performance of a shunting device, where the device includes:
the first time recording module is used for sending a first data packet carrying a preset rule to the shunting equipment by the test client and recording the packet sending time of the first data packet;
the second data packet sending module is used for controlling the test client to construct a second data packet matched with the preset rule by the test equipment and continuously sending the second data packet to the shunting equipment;
the second time recording module is used for the test client to receive feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule;
and the third time determining module is used for determining the rule effective time of the shunting device by the test client according to the packet sending time of the first data packet and the feedback time.
In a third aspect, an embodiment of the present invention further provides a system for testing performance of a shunting device, where the system includes:
the system comprises a test device, a shunt device to be tested and a test client, wherein the test client is respectively in communication connection with the shunt device and the test device based on an Ethernet, and the shunt device is in wired connection with the test device; wherein, the first and the second end of the pipe are connected with each other,
the test equipment constructs a second data packet matched with a preset rule at an equipment interface and continuously sends the second data packet to the shunt equipment to be tested, continuously captures a data message fed back by the shunt equipment, determines a timestamp of the captured first data message as feedback time, and sends the feedback time to the test client;
the test client sends a first data packet carrying a preset rule to the shunting equipment, continuously captures an interactive message with the shunting equipment, and determines the captured first interactive message as the packet sending time of the first data packet;
the method comprises the steps that the shunting equipment receives a first data packet which is sent by a test client and carries a preset rule and receives a second data packet which is sent by the test equipment and carries the preset rule, a third data packet which is matched with the second data packet is generated based on the preset rule, and the third data packet is fed back to the test equipment;
and the test client determines the rule effective time of the shunting equipment based on the packet sending time and the feedback time of the first data packet.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the shunting device performance testing method provided by any embodiment of the invention.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for testing the performance of the shunting device according to any embodiment of the present invention is implemented.
The testing system is formed by building a testing operation environment, wherein the testing system comprises a testing client, shunting equipment to be tested and testing equipment, the testing client is respectively in communication connection with the shunting equipment and the testing equipment on the basis of Ethernet, and the shunting equipment and the testing equipment are in wired connection. The method specifically comprises the steps that a first data packet carrying a preset rule is sent to-be-tested shunting equipment through a test client, and the packet sending time of the first data packet is recorded; controlling the test equipment to construct a second data packet matched with the preset rule and continuously sending the second data packet to the shunting equipment; and receiving feedback time of the shunting device sent by the testing device, and determining rule effective time of the shunting device according to the packet sending time and the feedback time of the first data packet. The test environment is simple to build and test, and no higher knowledge storage requirement is provided for testers. The method and the device can test the rule effective time of the shunting equipment under the condition of lacking test resources or time emergency, and improve the test flexibility and the test efficiency.
Drawings
Fig. 1 is a schematic flowchart of a method for testing performance of a shunting device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of feedback time of a shunting device according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a time for sending a first data packet according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a performance testing system of a shunting device according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for testing performance of shunting equipment according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for testing performance of a shunting device according to an embodiment of the present invention, where the method provided in this embodiment is applicable to a shunting device test system, and specifically may be a case of testing rule validation performance of a shunting device. The method can be executed by a shunting device performance testing apparatus, which can be implemented by software and/or hardware, and in particular, can be configured in a computer device.
The method applies a shunting device performance testing system such as that shown in fig. 4, where the shunting device performance testing system includes a testing device 210, a shunting device to be tested 220, and a testing client 230, and tests the shunting device to be tested 220 based on the testing device 210 and the testing client 230, and determines rule validation time of the shunting device 220. The performance test system of the shunt device in the embodiment is simple in structure, and the cost of the device is reduced.
As shown in fig. 1, the method specifically includes the following steps:
s110, the test client sends a first data packet carrying a preset rule to the shunting device, and records packet sending time of the first data packet.
In order to control the network traffic flow direction, the network application concerned by the user, and the like to ensure network security and support normal and stable operation of the service, a network operator and the like need to configure a screening rule on the shunting device to filter a large amount of network data, thereby acquiring required data. In the embodiment of the present invention, the performance of the shunting device needs to be tested according to the time when the screening rule takes effect. Specifically, the client to be tested sends a first data packet carrying a preset rule to the to-be-tested distribution equipment, and records the packet sending time of the first data packet. Optionally, the test client may be an intelligent terminal device with a computing function, and optionally, may be an electronic device such as a PC (Personal Computer) or an intelligent tablet Computer. Optionally, the preset rule may be a filtering rule, for example, an ipv4 message with a source IP of 1.1.1.1 is obtained; or other rules instructing the offloading device to process the data packets, such as instructing the offloading device to update or tag the content of the data packets. Specifically, the first data packet is a message in which the test client issues a rule to the shunting device. Optionally, the test client may send a first data packet carrying a preset rule to the offloading device through a preset connection protocol, where the preset connection protocol includes any one of an ssh (Secure Shell, Secure Shell protocol) protocol, a telnet (remote terminal protocol) protocol, and a windows system self-contained protocol.
In order to record the packet sending time of the first data packet, the test client may continuously capture the message information locally, specifically, the captured message information includes the message information carrying the preset rule sent by the test client to the flow distribution device, the flow distribution device receives the feedback information of the preset rule, and the test client receives the receipt information fed back by the flow distribution device. Optionally, network packet analysis software (e.g., wireshark) may be used to analyze the captured interactive data packet with the offloading device, and obtain the interactive packet information. And filtering the interactive message information by adopting a preset filtering rule, and acquiring the message information sent to the shunting equipment by the test client, namely the first interactive message information. Optionally, the feedback information and the receipt information may be filtered according to the type of the interactive message information, and only the data packet carrying the preset rule is obtained, although the preset filtering method is not limited in the embodiment of the present invention. Recording an obtained packet sending timestamp of a first data packet carrying a preset rule, and determining the timestamp as the packet sending time of the first data packet.
And S120, the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment.
In the embodiment of the present invention, the test client sends the control instruction to the test device to control the test device to construct the second data packet matching the preset rule, and optionally, an 8/6 interface of the test device may be used to construct a plurality of data packets matching the preset rule, and continuously send the matched data packets to the shunting device to be tested. Optionally, when the offloading device does not receive the first data packet sent by the test client, the message sent by the test device to the offloading device through the 8/6 interface may not hit the offloading device, so that the offloading device may not send feedback information to the test device, and therefore, at this time, the 8/6 interface of the test device only sends the message, and does not receive the message.
And S130, the test client receives feedback time of the distribution equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule.
In the embodiment of the present invention, when the offloading device receives the first data packet sent by the test client, the offloading device is configured with the preset rule, and at this time, the message sent by the test device to the offloading device through the 8/6 interface may hit the offloading device, so that the offloading device sends, to the test device, each third data packet fed back to each second data packet according to the preset rule. At this time, not only the transmitted message but also the received message exist in the messages continuously captured by the 8/6 interface of the test equipment. Optionally, a preset filtering rule is adopted to obtain 8/6 a received message that the interface continuously captures, and a timestamp of a first received message that the interface captures is recorded. Optionally, the test client receives a timestamp of a first received packet sent by the test device, and determines the timestamp as the feedback time of the offloading device.
And S140, the test client determines rule effective time of the shunting equipment according to the packet sending time of the first data packet and the feedback time.
In the embodiment of the present invention, in order to determine the rule validation time, a difference value between the feedback time of the offloading device and the packet sending time of the first data packet is used as the rule validation time of the offloading device. Optionally, when the test client receives the feedback time of the offloading device and the packet sending time of the first data packet, a difference between timestamps of the two data packets is calculated, and the difference is used as the rule effective time of the offloading device. Illustratively, the feedback time of the offloading device and the packet sending time of the first data packet are respectively shown in fig. 2 and fig. 3, and the time interval of the first timestamp in the two graphs is calculated, that is, the rule validation time of the offloading device. Optionally, the rule validation time of the forking device is the 1 st timestamp in fig. 2 to the 1 st packet time in fig. 3 is 9.897s-6.401s 3.496 s. Optionally, the user may measure, according to the length of the rule effective time, whether the offloading device can process the data packet quickly and accurately.
The method specifically comprises the steps that a test client sends a first data packet carrying a preset rule to a to-be-tested flow distribution device, and the packet sending time of the first data packet is recorded; controlling the test equipment to construct a second data packet matched with the preset rule, and continuously sending the second data packet to the shunting equipment; and receiving feedback time of the shunting device sent by the testing device, and determining rule effective time of the shunting device according to the packet sending time and the feedback time of the first data packet. The test environment is simple to build and test, and has no higher knowledge storage requirement on testers. The method and the device can test the rule effective time of the shunting equipment under the condition of lacking test resources or time emergency, and improve the test flexibility and the test efficiency.
Example two
Fig. 4 is a schematic structural diagram of a system for testing performance of a offloading device according to a second embodiment of the present invention, where the method provided in this embodiment is applicable to a case of testing a rule effectiveness performance of an offloading device. The system can be implemented by software and/or hardware, and particularly, can be configured in a computer device. As shown in fig. 4, the system specifically includes: a testing device 210, a shunting device to be tested 220 and a testing client 230, wherein:
the testing device 210 and the shunting device 220 are connected by a wire, specifically, may be connected by an optical fiber or a dual fiber. Optionally, the testing device 210 is configured to construct a second data packet matching a preset rule at a device interface, continuously send the second data packet to the shunting device 220 to be tested, continuously capture a data packet fed back by the shunting device 220, determine a timestamp of the captured first data packet as a feedback time, and send the feedback time to the testing client 230.
Optionally, the 8/6 interface of the testing device 210 may construct a plurality of data packets matching the preset rule, and continuously send the matched data packets to the shunting device 220 to be tested. When the offloading device 220 receives the first data packet sent by the testing client 230, the offloading device 220 is configured with a preset rule, so that the offloading device 220 sends, to the testing device 210, each third data packet fed back to each second data packet according to the preset rule. At this time, the 8/6 interface of the testing device 210 continuously captures not only the transmitted message but also the received message. Optionally, a preset filtering rule is used to obtain 8/6 the received message that the interface continuously captures, and a timestamp of the first received message captured by the interface is recorded. Optionally, the timestamp is determined as the feedback time of the shunting device, and is sent to the test client 230.
The distribution device 220 is configured to receive a first data packet carrying a preset rule and sent by a test client 230, receive a second data packet carrying a preset rule and sent by the test device 210, generate a third data packet matching the second data packet based on the preset rule, and feed the third data packet back to the test device 210.
Optionally, when the offloading device 220 does not receive the first data packet sent by the testing client 230, the offloading device 220 does not receive the second data packet sent by the testing device 210; optionally, when the offloading device 220 receives the first data packet sent by the test client 230, the offloading device 220 is configured with a preset rule, and at this time, a message sent by the test client 230 to the offloading device 220 through the 8/6 interface may hit the offloading device 220, so that the offloading device 220 sends, to the test client 210, each third data packet fed back to each second data packet according to the preset rule.
The test client 230 is in communication connection with the shunting device 220 and the test device 210 based on ethernet, specifically, may be connected in the manners of ethernet, WiFi, bluetooth, and the like. On one hand, the test client 230 is configured to send a first data packet carrying a preset rule to the offloading device 220, continuously capture an interaction packet with the offloading device, and determine a captured first interaction packet as a packet sending time of the first data packet; on the other hand, the testing client 230 is configured to determine the rule validation time of the shunting device 220 based on the packet sending time of the first data packet and the feedback time.
Optionally, the testing client 230 sends a first data packet carrying a preset rule to the to-be-tested offloading device 220. In order to record the packet sending time of the first data, the test client 230 may capture message information locally, specifically, the captured message information includes message information carrying a preset rule sent by the test client 230 to the offloading device 210, the offloading device 220 receives feedback information of the preset rule, and the test client 230 receives response information fed back by the offloading device 220. Optionally, network packet analysis software (e.g., wireshark) may be used to open the captured interactive data packet with the offloading device 220, so as to obtain the interactive packet information. The interactive message information is filtered by using a preset filtering rule, and the message information sent to the shunting device 220 by the test client 230 is obtained. Optionally, the feedback information and the receipt information may be filtered according to the type of the interactive message information, and only the data packet carrying the preset rule is obtained, although the preset filtering method is not limited in the embodiment of the present invention. Recording an obtained packet sending timestamp of a first data packet carrying a preset rule, and determining the timestamp as the packet sending time of the first data packet. And adopting a preset filtering rule to obtain 8/6 the received messages continuously captured by the interface, and recording the timestamp of the first received message captured by the interface. Optionally, the test client 230 receives a timestamp of a first received packet sent by the test device, and determines the timestamp as the feedback time of the shunting device 220.
Optionally, when the test client 230 receives the feedback time of the offloading device 220 and the packet sending time of the first data packet, a difference between the timestamps of the two data packets is calculated, and the difference is used as the rule validation time. Illustratively, the feedback time of the distribution device 220 and the packet sending time of the first data packet are respectively shown in fig. 2 and fig. 3, and the time interval of the first timestamp in the two graphs is calculated, which is the rule effective time. Optionally, the rule effective time is 1 st packet time to 2 nd packet time 9.897s-6.401s 3.496 s. Optionally, the user may measure the capability of the offloading device to process the data packet quickly and accurately according to the length of the rule effective time.
The test system is formed by building a test operation environment, wherein the test system comprises a test client, a shunt device to be tested and a test device, the test client is respectively in communication connection with the shunt device and the test device based on the Ethernet, and the shunt device is in wired connection with the test device. The method specifically comprises the steps that a test client sends a first data packet carrying a preset rule to a to-be-tested flow distribution device, and the packet sending time of the first data packet is recorded; controlling the test equipment to construct a second data packet matched with the preset rule and continuously sending the second data packet to the shunting equipment; and receiving the feedback time of the shunting equipment sent by the testing equipment, and determining the rule effective time of the shunting equipment according to the packet sending time and the feedback time of the first data packet. The test environment is simple to build and test, and has no higher knowledge storage requirement on testers. The method and the device can test the rule effective time of the shunting equipment under the condition of lacking test resources or time emergency, and improve the test flexibility and the test efficiency.
The following is an embodiment of a performance test analysis apparatus provided in an embodiment of the present invention, which belongs to the same inventive concept as the performance test analysis methods in the embodiments described above, and reference may be made to the embodiments of the performance test analysis method for details that are not described in detail in the embodiments of the performance test analysis apparatus.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a performance test analysis apparatus according to a third embodiment of the present invention, which is applicable to a performance test in a software test. The specific structure of the image data processing device is as follows:
a first data packet sending module 310, configured to send, by the test client, a first data packet carrying a preset rule to the offloading device.
A first time recording module 320, configured to record a packet sending time of the first data packet.
A second data packet sending module 330, configured to control the test client to construct a second data packet matching the preset rule by the test device, and continuously send the second data packet to the offloading device.
The second time recording module 340 is configured to receive, by the test client, feedback time of the distribution device sent by the test device, where the feedback time is reception time of a third data packet, which is fed back to the distribution device by the test device according to a preset rule, of the second data packet.
A third time determining module 350, configured to determine, by the test client, a rule validation time of the offloading device according to the packet sending time of the first data packet and the feedback time.
Optionally, the first data packet sending module 310 includes:
and the first data packet sending unit is used for sending a first data packet carrying a preset rule to the shunting equipment by the test client through a preset connection protocol.
Optionally, the preset connection protocol includes any one of a ssh protocol, a telnet protocol, and a windows system self-contained protocol.
Optionally, the preset rule is a filtering rule.
Optionally, the first time recording module 320 includes:
the message information capturing unit is used for capturing message information locally by the test client and filtering the start of the interactive message with the shunting equipment;
and the first time recording unit is used for recording the timestamp of the captured first interactive message information and determining the timestamp as the packet sending time of the first data packet.
Optionally, the second time recording module 340 includes:
and the second time recording module is used for controlling the test client to continuously capture the packet by the test equipment, receiving the timestamp of the first message captured by the test equipment and determining the timestamp as the feedback time of the shunting equipment.
Optionally, the third time determining module 350 includes:
and the third time determining unit is used for taking the difference value between the feedback time and the packet sending time of the first data packet as the rule effective time of the shunting equipment.
The method specifically comprises the steps that a test client sends a first data packet carrying a preset rule to a to-be-tested flow distribution device, and the packet sending time of the first data packet is recorded; controlling the test equipment to construct a second data packet matched with the preset rule, and continuously sending the second data packet to the shunting equipment; and receiving feedback time of the shunting device sent by the testing device, and determining rule effective time of the shunting device according to the packet sending time and the feedback time of the first data packet. The test environment is simple to build and test, and no higher knowledge storage requirement is provided for testers. The method and the device can test the rule effective time of the shunting equipment under the condition of lacking test resources or time emergency, and improve the test flexibility and the test efficiency.
It should be noted that, in the embodiment of the image data processing apparatus, the units and modules included in the image data processing apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the electronic device 12 is in the form of a general purpose computing electronic device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and sample data acquisition by running the program stored in the system memory 28, for example, implementing steps of a method for testing performance of a streaming device according to any embodiment of the present invention, where the method for acquiring sample data includes:
the test client sends a first data packet carrying a preset rule to the shunting equipment, and records the packet sending time of the first data packet;
the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment;
the test client receives feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule;
and the test client determines the rule effective time of the shunting equipment according to the packet sending time of the first data packet and the feedback time.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the sample data obtaining method provided in any embodiment of the present invention.
EXAMPLE five
The fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements, for example, the steps of the method for testing the performance of the streaming apparatus provided in any embodiment of the present invention, where the method for obtaining sample data includes:
the test client sends a first data packet carrying a preset rule to the shunting equipment, and records the packet sending time of the first data packet;
the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment;
the test client receives feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule;
and the test client determines the rule effective time of the shunting equipment according to the packet sending time of the first data packet and the feedback time.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (9)
1. A method for testing performance of shunt equipment is characterized in that the method is applied to a test system, wherein the test system comprises a test client, shunt equipment to be tested and test equipment, the test client is respectively in communication connection with the shunt equipment and the test equipment based on Ethernet, and the shunt equipment is in wired connection with the test equipment, and the method comprises the following steps:
the test client sends a first data packet carrying a preset rule to the shunting equipment, and records the packet sending time of the first data packet;
the test client controls the test equipment to construct a second data packet matched with the preset rule and continuously sends the second data packet to the shunting equipment;
the test client receives feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule;
the test client determines rule effective time of the shunting equipment according to the packet sending time of the first data packet and the feedback time;
wherein, the recording the packet sending time of the first data packet comprises:
the test client side captures message information locally and starts and filters interactive messages with the shunting equipment;
and recording the timestamp of the captured first interactive message information, and determining the timestamp as the packet sending time of the first data packet.
2. The method according to claim 1, wherein the sending, by the test client, a first data packet carrying a preset rule to the offloading device includes:
the test client sends a first data packet carrying a preset rule to the distribution equipment through a preset connection protocol, wherein the preset connection protocol comprises any one of an ssh protocol, a telnet protocol and a windows system self-contained protocol.
3. The method of claim 1, wherein the predetermined rule is a filtering rule.
4. The method of claim 1, wherein the step of the test client accepting the feedback time of the splitter device sent by the test device comprises:
and the test client controls the test equipment to continuously grab the packet, receives the timestamp of the first message grabbed by the test equipment and determines the timestamp as the feedback time of the shunting equipment.
5. The method according to claim 1, wherein the determining, by the test client, the rule validation time of the offloading device according to the packet sending time of the first data packet and the feedback time includes:
and taking the difference value between the feedback time and the packet sending time of the first data packet as the rule effective time of the shunting equipment.
6. A shunt equipment capability test device, characterized in that includes:
the first time recording module is used for testing that a client sends a first data packet carrying a preset rule to the shunting device and recording the packet sending time of the first data packet;
the second data packet sending module is used for controlling the test client to construct a second data packet matched with the preset rule by the test equipment and continuously sending the second data packet to the shunting equipment;
the second time recording module is used for the test client to receive feedback time of the shunting equipment sent by the test equipment, wherein the feedback time is the receiving time of a third data packet fed back to the second data packet by the test equipment according to a preset rule;
a third time determining module, configured to determine, by the test client, rule validation time of the offloading device according to the packet sending time of the first data packet and the feedback time;
the first time recording module comprises:
the message information capturing unit is used for capturing message information locally by the test client and filtering the start of the interactive message with the shunting equipment;
and the first time recording unit is used for recording a timestamp of the captured first interactive message information and determining the timestamp as the packet sending time of the first data packet.
7. The system for testing the performance of the shunt equipment is characterized by comprising test equipment, the shunt equipment to be tested and a test client, wherein the test client is in communication connection with the shunt equipment and the test equipment respectively based on Ethernet, and the shunt equipment is in wired connection with the test equipment; wherein, the first and the second end of the pipe are connected with each other,
the test equipment constructs a second data packet matched with a preset rule at an equipment interface and continuously sends the second data packet to the shunt equipment to be tested, continuously captures a data message fed back by the shunt equipment, determines a timestamp of the captured first data message as feedback time, and sends the feedback time to the test client;
the test client sends a first data packet carrying a preset rule to the shunting device, continuously captures an interactive message with the shunting device, and determines the captured first interactive message as the packet sending time of the first data packet;
the method comprises the steps that the shunting equipment receives a first data packet which is sent by a test client and carries a preset rule and receives a second data packet which is sent by the test equipment and carries the preset rule, a third data packet which is matched with the second data packet is generated based on the preset rule, and the third data packet is fed back to the test equipment;
and the test client determines the rule effective time of the shunting equipment based on the packet sending time and the feedback time of the first data packet.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the offloading device performance testing method of any of claims 1-5.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method for performance testing of a shunt device according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011186146.1A CN112333044B (en) | 2020-10-29 | 2020-10-29 | Shunting equipment performance test method, device and system, electronic equipment and medium |
PCT/CN2021/108677 WO2022088791A1 (en) | 2020-10-29 | 2021-07-27 | Performance test method, apparatus and system for distribution device, electronic device, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011186146.1A CN112333044B (en) | 2020-10-29 | 2020-10-29 | Shunting equipment performance test method, device and system, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112333044A CN112333044A (en) | 2021-02-05 |
CN112333044B true CN112333044B (en) | 2022-07-15 |
Family
ID=74297517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011186146.1A Active CN112333044B (en) | 2020-10-29 | 2020-10-29 | Shunting equipment performance test method, device and system, electronic equipment and medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112333044B (en) |
WO (1) | WO2022088791A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333044B (en) * | 2020-10-29 | 2022-07-15 | 北京锐安科技有限公司 | Shunting equipment performance test method, device and system, electronic equipment and medium |
CN113630640B (en) * | 2021-07-27 | 2023-11-17 | 中央广播电视总台 | Method and device for analyzing flow precision of media equipment and readable storage medium |
CN114006838B (en) * | 2021-10-30 | 2023-06-27 | 杭州迪普信息技术有限公司 | Testing method and system of flow control device |
CN115442284B (en) * | 2022-08-22 | 2023-06-09 | 绿盟科技集团股份有限公司 | System and method for testing equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539470A (en) * | 2014-11-28 | 2015-04-22 | 北京锐安科技有限公司 | Method for testing whether packet loss occurs in shunting equipment or not, test client and system |
CN104601400A (en) * | 2014-12-17 | 2015-05-06 | 北京锐安科技有限公司 | Shunting equipment performance test method, test client side and test server |
WO2017211169A1 (en) * | 2016-06-06 | 2017-12-14 | 中兴通讯股份有限公司 | Link testing method, apparatus and system |
CN109167707A (en) * | 2018-09-10 | 2019-01-08 | 北京锐安科技有限公司 | A kind of shunting device test macro, method, apparatus, server and storage medium |
CN111371639A (en) * | 2020-02-21 | 2020-07-03 | 腾讯科技(深圳)有限公司 | Network delay analysis method and device, storage medium and computer equipment |
CN111431766A (en) * | 2020-03-20 | 2020-07-17 | 深圳震有科技股份有限公司 | Port test method and system of switch |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272291B (en) * | 2008-04-29 | 2012-05-30 | 北京星网锐捷网络技术有限公司 | Network appliance testing method and system |
US8934332B2 (en) * | 2012-02-29 | 2015-01-13 | International Business Machines Corporation | Multi-threaded packet processing |
CN112333044B (en) * | 2020-10-29 | 2022-07-15 | 北京锐安科技有限公司 | Shunting equipment performance test method, device and system, electronic equipment and medium |
-
2020
- 2020-10-29 CN CN202011186146.1A patent/CN112333044B/en active Active
-
2021
- 2021-07-27 WO PCT/CN2021/108677 patent/WO2022088791A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539470A (en) * | 2014-11-28 | 2015-04-22 | 北京锐安科技有限公司 | Method for testing whether packet loss occurs in shunting equipment or not, test client and system |
CN104601400A (en) * | 2014-12-17 | 2015-05-06 | 北京锐安科技有限公司 | Shunting equipment performance test method, test client side and test server |
WO2017211169A1 (en) * | 2016-06-06 | 2017-12-14 | 中兴通讯股份有限公司 | Link testing method, apparatus and system |
CN109167707A (en) * | 2018-09-10 | 2019-01-08 | 北京锐安科技有限公司 | A kind of shunting device test macro, method, apparatus, server and storage medium |
CN111371639A (en) * | 2020-02-21 | 2020-07-03 | 腾讯科技(深圳)有限公司 | Network delay analysis method and device, storage medium and computer equipment |
CN111431766A (en) * | 2020-03-20 | 2020-07-17 | 深圳震有科技股份有限公司 | Port test method and system of switch |
Also Published As
Publication number | Publication date |
---|---|
WO2022088791A1 (en) | 2022-05-05 |
CN112333044A (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112333044B (en) | Shunting equipment performance test method, device and system, electronic equipment and medium | |
CN110320891B (en) | Railway vehicle braking system CAN bus message maintenance monitoring system and monitoring method | |
CN111008135B (en) | APP test method, device, equipment and storage medium | |
US10601639B2 (en) | Multi cause correlation in wireless protocols | |
US11856426B2 (en) | Network analytics | |
CN111400127B (en) | Service log monitoring method and device, storage medium and computer equipment | |
CN113067747A (en) | Link abnormity tracing method, cluster, node and system | |
CN111818041B (en) | Real-time message processing system and method based on network layer message analysis | |
CN112769876B (en) | Method, device, equipment and medium for acquiring equipment channel information | |
WO2021120544A1 (en) | Method and apparatus for debugging device | |
US9917747B2 (en) | Problem detection in a distributed digital network through distributed packet analysis | |
CN113225339A (en) | Network security monitoring method and device, computer equipment and storage medium | |
US8176216B1 (en) | Methods for analyzing USB data traffic using a single USB host controller | |
CN107763794A (en) | The treating method and apparatus of fault data | |
CN107861821B (en) | Mining method and device for module call relation and computer readable medium | |
CN110995538B (en) | Network data acquisition method, device, system, equipment and storage medium | |
JP6904600B2 (en) | Data acquisition device, client-server system, data acquisition method, and program | |
CN116260747A (en) | Monitoring method and device of terminal test equipment and electronic equipment | |
CN110244638B (en) | Data monitoring device and method | |
CN114301802A (en) | Confidential evaluation detection method and device and electronic equipment | |
JP2015119275A (en) | Communication device, packet monitoring method, and computer program | |
CN110971436A (en) | Service processing method and device and electronic equipment | |
CN112181789B (en) | Equipment end log collection method based on AWS | |
CN116886445B (en) | Processing method and device of filtering result, storage medium and electronic equipment | |
JP6149549B2 (en) | Monitoring system and monitoring program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |