CN110691012B - Message processing method and tester - Google Patents

Message processing method and tester Download PDF

Info

Publication number
CN110691012B
CN110691012B CN201911021886.7A CN201911021886A CN110691012B CN 110691012 B CN110691012 B CN 110691012B CN 201911021886 A CN201911021886 A CN 201911021886A CN 110691012 B CN110691012 B CN 110691012B
Authority
CN
China
Prior art keywords
test
flow table
board card
expansion
message
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
Application number
CN201911021886.7A
Other languages
Chinese (zh)
Other versions
CN110691012A (en
Inventor
袁瑞英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201911021886.7A priority Critical patent/CN110691012B/en
Publication of CN110691012A publication Critical patent/CN110691012A/en
Application granted granted Critical
Publication of CN110691012B publication Critical patent/CN110691012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The embodiment of the application provides a message processing method and a tester, wherein the method comprises the following steps: a test board card in the tester generates a test message according to the test information, and issues the test message to an expansion board card in the tester through a test port of the test board card; and the expansion board card respectively sends the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table. Based on the above processing, the cost of the tester can be reduced.

Description

Message processing method and tester
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a message processing method and a tester.
Background
Before the network device is on line, in order to ensure that the network device can normally process services, the performance of the device to be tested may be tested by using a testing tool.
In the related art, a tester may be used to simulate a plurality of clients, and the tester may generate a large number of messages (which may be referred to as test messages) to test the performance of downstream devices to be tested. However, in the related art, a plurality of test boards may be installed in one tester, and one test board has a plurality of test ports. For each test port in the test board card, the test board card can send a test message to a device to be tested through the test port to provide test services, that is, the number of test services provided by one test board card is the same as the number of test ports of the test board card.
Therefore, if the performance of the tester for providing the test service needs to be improved, the number of the test board cards in the tester needs to be increased, and further, the cost of the tester can be increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide a message processing method and a tester, which can reduce the cost of the tester. The specific technical scheme is as follows:
in a first aspect, the present application provides a method for processing a packet, where the method includes:
a test board card in a tester generates a test message according to test information, and the test message is issued to an expansion board card in the tester through a test port of the test board card;
and the expansion board card respectively sends the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table.
Optionally, the sending the copied test packets to the device to be tested connected to the expansion port of the expansion board card according to the stored flow table includes:
copying the test message by N parts, and respectively distributing marks for the N copied test messages according to the expansion ports of the expansion board card, wherein N is the number of the expansion ports, the marks of the N copied test messages are different from each other, and each mark corresponds to one expansion port;
aiming at each copied test message, searching a corresponding flow table according to the allocated mark;
if the characteristic information of the copied test message is matched with the flow table, sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port;
and if the characteristic information of the copied test message is not matched with the flow table, discarding the copied test message.
Optionally, the sending the copied test packets to the device to be tested connected to the expansion port of the expansion board card according to the stored flow table includes:
acquiring a flow table stored in the expansion board card;
for each flow table, comparing the characteristic information of the test message in sequence to determine whether the flow table is matched with the test message;
if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table;
and if the characteristic information of the test message is not matched with the stored flow table, comparing the characteristic information of the test message with the next flow table.
Optionally, the method further includes:
and the test board card in the tester generates a flow table according to the configuration information and issues the flow table to the expansion board card.
In a second aspect, the application provides a tester, which comprises a test board card and an expansion board card, wherein a flow table is stored on the expansion board card;
the test board comprises a message generating unit, and the expansion board comprises a test unit;
the message generating unit is used for generating a test message according to the test information and sending the test message to the expansion board card through the test port of the test board card;
and the test unit is used for respectively sending the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table.
Optionally, the test unit includes:
the copying module is used for copying the test message by N parts and distributing marks to the N copied test messages according to the expansion ports of the expansion board card, wherein N is the number of the expansion ports, the marks of the N copied test messages are different from each other, and each mark corresponds to one expansion port;
the matching module is used for searching a corresponding flow table according to the distributed marks aiming at each copied test message;
if the characteristic information of the copied test message is matched with the flow table, the copied test message is sent to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port;
and if the characteristic information of the copied test message is not matched with the flow table, discarding the copied test message.
Optionally, the expansion board card includes:
the acquisition module is used for acquiring the flow table stored in the expansion board card;
the matching module is used for sequentially comparing the characteristic information of the test message aiming at each flow table and determining whether the flow table is matched with the test message or not;
if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table;
and if the characteristic information of the test message is not matched with the stored flow table, comparing the characteristic information of the test message with the next flow table.
Optionally, the test board further includes:
and the flow table generating unit is used for generating a flow table according to the configuration information and issuing the flow table to the expansion board card.
The embodiment of the application provides a message processing method, wherein a test board card in a tester generates a test message according to test information, and sends the test message to an expansion board card in the tester through a test port of the test board card; and the expansion board card respectively sends the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table.
Based on the processing, aiming at the test message generated by the test board card, the expansion board card in the tester can copy the test message according to the flow table to obtain a plurality of test messages which are respectively sent to the corresponding expansion ports to test a plurality of devices to be tested, namely, the plurality of devices to be tested can be tested through one test port, the performance of providing test service by the tester can be improved without adding the test board card, and further, the cost of the tester can be reduced.
Of course, it is not necessary for any product or method of the present application to achieve all of the above advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 2 is a flowchart of an overall scheme of a message processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a message processing process according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the related art, the number of test boards that can provide test services is the same as the number of test ports of the test board, and if the performance of providing test services by the tester needs to be improved, the number of test boards in the tester needs to be increased, which increases the cost of the tester.
In order to solve the above problem, an embodiment of the present application provides a message processing method, which may be applied to a tester, where the tester includes a test board and an expansion board.
The test board card can generate a test message according to the test information, and issue the generated test message to the expansion board card in the tester through the test port of the test board card, and correspondingly, the expansion board card can duplicate the test message sent by the test board card according to the stored flow table, and send the duplicated test message to the expansion port of the expansion board card respectively, so that the device to be tested connected with the expansion port can receive the test message.
Based on the processing, aiming at the test message generated by the test board card, the expansion board card in the tester can copy the test message according to the flow table to obtain a plurality of test messages which are respectively sent to the corresponding expansion ports to test a plurality of devices to be tested, namely, the plurality of devices to be tested can be tested through one test port, the performance of providing test service by the tester can be improved without adding the test board card, and further, the cost of the tester can be reduced.
Referring to fig. 1, fig. 1 is a flowchart of a message processing method provided in an embodiment of the present application, where the method may include the following steps:
s101: and the test board card in the tester generates a test message according to the test information and sends the test message to the expansion board card in the tester through the test port of the test board card.
In the application embodiment, at least one test board card and at least one expansion board card can be configured in the tester, one test board card can be provided with at least one test port, and the test board card can be connected with the expansion board card through the test port, wherein the connection form of the expansion board card and the test board card can be various, generally speaking, one expansion board card can be connected with one test port of one test board card, so that one test port can simultaneously test a plurality of devices to be tested, in addition, one expansion board card can also be connected with a plurality of test ports of one test board card according to actual requirements, and one expansion board card can also be connected with a plurality of test ports of a plurality of test board cards.
The test information may be issued by a manager of the tester, and the test information is used to indicate a test packet to be generated, for example, the test information may include information such as a protocol type of the test packet to be generated, a packet length of the test packet, and a flag bit in the test packet. The test board card can acquire test information issued by a manager and store the test information in local.
When a test message needs to be generated, the test board card can acquire locally stored test information, and then generate a corresponding test message based on the test information and send the test message to the test port of the test board card, and correspondingly, the expansion board card connected with the test port can receive the test message.
S102: and the expansion board card respectively sends the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table.
The flow table may be used to instruct the expansion board to compare and forward the test packet.
In one implementation, an administrator may issue a flow table to an expansion board through a controller of a control plane in an SDN (Software Defined Network), and the expansion board may store the received flow table locally.
Correspondingly, after the expansion board card receives the test message sent by the test board card, the received test message can be copied based on the stored flow table to obtain a plurality of test messages, and then the expansion board card can respectively send the plurality of test messages obtained by copying to the own expansion port, and correspondingly, the device to be tested connected with the expansion port can receive the test message.
It can be seen that, based on the message processing method provided in the embodiment of the present application, for a test message generated by a test board, an extension board in a tester can copy the test message according to a flow table to obtain a plurality of test messages, and send the test messages to corresponding extension ports respectively, so as to test a plurality of devices to be tested, that is, a plurality of devices to be tested can be tested through one test port, and the performance of providing test services by the tester can be improved without adding a test board, so that the cost of the tester can be reduced.
Optionally, the expansion board card may copy the test packet in different manners according to the service requirement.
In one approach, S102 may include the following steps:
the method comprises the following steps of firstly, copying N parts of test messages, and respectively distributing marks for the N parts of copied test messages according to expansion ports of an expansion board card.
And N is the number of the expansion ports, the labels of the N copied test messages are different from each other, and each label corresponds to one expansion port.
In the application embodiment, after receiving the test message sent by the test board, the expansion board may test the received test message based on the number N of the expansion ports to obtain N test messages.
Then, the expansion board card can distribute the marks to the N test messages respectively based on the expansion ports of the expansion board card, so that the N marked test messages respectively correspond to the N expansion ports one to one.
For example, the expansion board may allocate port identifiers of N expansion ports to N test packets, respectively.
Alternatively, different flow table numbers may be set in advance for the flow tables corresponding to the N expansion ports, and the N flow table numbers may be assigned to the N test packets as corresponding tags.
And step two, aiming at each copied test message, searching a corresponding flow table according to the distributed marks.
In the application embodiment, after distributing the markers for the N packets, for each test packet with the distributed markers, the expansion board may determine a flow table corresponding to the marker distributed for the test packet, so as to process the test packet according to the corresponding flow table.
Step three, if the characteristic information of the copied test message is matched with the flow table, the copied test message is sent to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port; otherwise, the duplicated test message is discarded.
In the application embodiment, for each test packet to which a label is assigned, after determining a flow table corresponding to the test packet, the expansion board card may acquire feature information recorded in the flow table and compare the feature information with the feature information of the test packet.
The characteristic information may include at least one of the following information: a protocol type of the message, a source IP address of the message, a source MAC (Media Access Control) address of the message, and the like.
If the feature information of the test packet matches the feature information recorded in the corresponding flow table, the expansion board card may send the test packet to the corresponding expansion port, and correspondingly, the device to be tested connected to the expansion port may receive the test packet.
In one mode, a corresponding expansion port may be recorded in the flow table, and the expansion board card may determine the expansion port recorded in the corresponding flow table after determining that the feature information of the test packet matches the feature information recorded in the corresponding flow table, and send the test packet to the determined expansion port.
It can be understood that, before sending the test message, the expansion board card may also modify the test message according to a processing manner recorded in the corresponding flow table, where the processing manner may include modifying a protocol type of the test message and/or modifying a message structure of the test message.
For example, if the test packet is a UDP (User Data Protocol) packet and the record in the flow table is processed in such a manner that the test packet is modified into a TCP (Transmission Control Protocol), the expansion board may modify the test packet into a TCP packet.
For another example, if the test packet includes an a field and the processing manner of the record in the flow table is to modify the a field of the packet into a B field, the expansion board may modify the a field in the test packet into a B field.
If the feature information of the test packet is not matched with the feature information recorded in the corresponding flow table, it indicates that the device to be tested connected with the corresponding expansion port does not need the test packet, and correspondingly, the expansion board card may discard the test packet.
In another way, S102 may include the steps of:
step 1, obtaining flow tables stored in the expansion board card, sequentially comparing the characteristic information of the test message for each flow table, and determining whether the flow tables are matched with the flow tables.
In the embodiment of the application, in order to reduce the load of the CPU of the expansion board card, the expansion board card may not directly copy the test packet.
After receiving the test message sent by the test board, the expansion board can acquire the locally stored flow tables, and then the expansion board can compare each flow table with the test message in sequence and perform corresponding processing according to the comparison result.
Step 2, if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table; otherwise, comparing the characteristic information of the test message with the next flow table.
In the application embodiment, for one flow table, if the expansion board determines that the feature information recorded in the flow table matches with the feature information of the test packet, the expansion board may send the test packet to the corresponding expansion port.
If the expansion board card judges that the feature information recorded in the flow table is not matched with the feature information of the test message, it indicates that the device to be tested connected with the expansion port corresponding to the flow table does not need the test message, and then the expansion board card can continue to compare the feature information of the test message with the feature information recorded in the next flow table, and so on until the expansion board card compares the feature information recorded in all the flow tables with the feature information of the test message.
It can be understood that, if the expansion board card determines that the feature information recorded in the flow table matches with the feature information of the test packet, after sending the test packet to the corresponding expansion port, the expansion board card may also compare the feature information of the test packet with the next flow table.
In the above process, the expansion board card may set different flow table numbers for each flow table, and sequentially compare the feature information recorded in each flow table with the feature information of the test packet according to the flow table coding sequence.
Or, the expansion board card may also randomly select one flow table from the current flow tables that are not compared for comparison, after the comparison is finished, it may mark that the flow table is compared, and then select one flow table from the remaining flow tables that are not compared for comparison, and so on.
Optionally, the method may further include the steps of: and the test board card in the tester generates a flow table according to the configuration information and issues the flow table to the expansion board card.
The configuration information is used for indicating the test board card to generate a corresponding flow table.
In the application embodiment, the administrator can also directly issue configuration information for generating the flow table to the test board, correspondingly, the test board can generate a corresponding flow table based on the configuration information and send the generated flow table to the expansion board, and the expansion board can receive the flow table sent by the test board and store the flow table locally so as to copy and forward the test message generated by the test board according to the flow table.
Referring to fig. 2, fig. 2 is a flowchart of an overall scheme of a message processing method according to an embodiment of the present disclosure.
In fig. 2, a test board card in the tester may be provided with a test packet generation module, and the test packet generation module may generate a corresponding test packet according to the test information and send the generated test packet to the test port.
The test board card can also generate 3 flow tables according to the configuration information issued by the administrator, the expansion port recorded in the flow table 1 is the expansion port 1, the expansion port recorded in the flow table 2 is the expansion port 2, the expansion port recorded in the flow table 3 is the expansion port 3, and the generated flow tables are sent to the expansion board card.
The message replication module in the expansion board card connected to the test port may replicate the test message sent by the test board card according to the number of instances of the current Openflow (a network communication protocol, which belongs to a data link layer and can control a forwarding plane of an online switch or a router). The number of Openflow instances is the number of expansion ports. In the embodiment of the present application, the number of Openflow examples is 3 for illustration, but the present application is not limited thereto.
The expansion board card can copy the test message into three parts, compare the first test message with the flow table 1, if the first test message is matched with the flow table 1, process the first test message according to the flow table 1, and send the processed test message to the expansion port 1; similarly, the expansion board card may compare the second test packet with the flow table 2, if the second test packet matches the flow table 2, process the second test packet according to the flow table 2, and send the processed test packet to the expansion port 2; and comparing the third test message with the flow table 3, if the third test message is matched with the flow table 3, processing the third test message according to the flow table 3, and sending the processed test message to the expansion port 3.
Furthermore, one test message sent by the test port can provide test service for the three devices to be tested, so that the performance of the tester for providing the test service can be improved, and the cost of the tester is reduced.
Referring to fig. 3, fig. 3 is a schematic diagram of a message processing process according to an embodiment of the present disclosure.
In fig. 3, the upper rectangular frame represents the test board, the gray solid frame in the test board represents the test port in the test board, and the lower rectangular frame represents the expansion board.
The test board generates test messages based on the test information and sends the test messages to the test ports, the test messages are transmitted to the test board from the test ports, the test board can copy the test messages according to the number (namely n) of the expansion ports to obtain n test messages, the n test messages are compared with the n flow tables respectively to process the n test messages, and the processed test messages are sent to the n expansion ports respectively.
Furthermore, one test message sent by the test port can provide test service for n testers, so that the performance of the tester for providing the test service can be improved, and the cost of the tester is reduced.
Based on the same inventive concept, the embodiment of the application also provides a tester, which comprises a test board card and an expansion board card, wherein the expansion board card is stored with a flow table;
the test board comprises a message generation unit, and the extension board comprises a test unit;
the message generating unit is used for generating a test message according to the test information and sending the test message to the expansion board card through the test port of the test board card;
and the test unit is used for respectively sending the copied test messages to the equipment to be tested connected with the expansion port of the expansion board card according to the stored flow table.
Optionally, the test unit includes:
the copying module is used for copying the test message by N parts and distributing marks to the N copied test messages according to the expansion ports of the expansion board card, wherein N is the number of the expansion ports, the marks of the N copied test messages are different from each other, and each mark corresponds to one expansion port;
the matching module is used for searching a corresponding flow table according to the distributed marks aiming at each copied test message;
if the characteristic information of the copied test message is matched with the flow table, sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port;
and if the characteristic information of the copied test message is not matched with the flow table, discarding the copied test message.
Optionally, the expansion board card includes:
the acquisition module is used for acquiring the flow table stored in the expansion board card;
the matching module is used for sequentially comparing the characteristic information of the test message aiming at each flow table and determining whether the flow table is matched with the test message;
if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table;
and if the characteristic information of the test message is not matched with the stored flow table, comparing the characteristic information of the test message with the next flow table.
Optionally, the test board further includes:
and the flow table generating unit is used for generating a flow table according to the configuration information and issuing the flow table to the expansion board card.
It can be seen that, based on the tester provided by the embodiment of the application, for the test packet generated by the test board, the extension board in the tester can copy the test packet according to the flow table to obtain a plurality of test packets, and send the test packets to the corresponding extension ports respectively, so as to test a plurality of devices to be tested, that is, testing of a plurality of devices to be tested can be realized through one test port, and the performance of providing test service by the tester can be improved without adding a test board, so that the cost of the tester can be reduced.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the tester embodiment, since it is substantially similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for the relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the scope of protection of the present application.

Claims (8)

1. The message processing method is characterized by being applied to a tester, wherein the tester comprises a test board card and an extension board card, and a flow table is stored on the extension board card; the method comprises the following steps:
a test board card in a tester generates a test message according to test information, and the test message is issued to an expansion board card in the tester through a test port of the test board card;
the expansion board card sends the copied test message to the device to be tested connected with the expansion port of the expansion board card through the expansion port corresponding to the mark under the condition that the characteristic information of the test message is matched with the flow table according to the stored flow table; the flow table is used for indicating the expansion board card to compare and forward the test message, and the mark is the mark of the copied test message/the mark in the flow table.
2. The method according to claim 1, wherein the sending, according to the stored flow table, the copied test packet to the device under test to which the expansion port of the expansion board card is connected through the expansion port corresponding to the tag if the feature information of the test packet matches the flow table includes:
copying the test message by N parts, and respectively distributing marks for the N copied test messages according to the expansion ports of the expansion board card, wherein N is the number of the expansion ports, the marks of the N copied test messages are different from each other, and each mark corresponds to one expansion port;
aiming at each copied test message, searching a corresponding flow table according to the allocated mark;
if the characteristic information of the copied test message is matched with the flow table, the copied test message is sent to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port;
the method further comprises the following steps:
and if the characteristic information of the copied test message is not matched with the flow table, discarding the copied test message.
3. The method according to claim 1, wherein the sending, according to the stored flow table, the copied test packet to the device under test to which the expansion port of the expansion board card is connected through the expansion port corresponding to the tag if the feature information of the test packet matches the flow table includes:
acquiring a flow table stored in the expansion board card;
for each flow table, sequentially comparing the characteristic information of the test message to determine whether the characteristic information is matched with the flow table;
if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table;
the method further comprises the following steps:
and if the characteristic information of the test message is not matched with the stored flow table, comparing the characteristic information of the test message with the next flow table.
4. The method of claim 1, further comprising:
and a test board card in the tester generates a flow table according to the configuration information and issues the flow table to the expansion board card.
5. The tester is characterized by comprising a test board card and an expansion board card, wherein a flow table is stored on the expansion board card;
the test board comprises a message generating unit, and the expansion board comprises a test unit;
the message generating unit is used for generating a test message according to the test information and sending the test message to the expansion board card through the test port of the test board card;
the test unit is used for sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the expansion port corresponding to the mark under the condition that the characteristic information of the test message is matched with the flow table according to the stored flow table; the flow table is used for indicating the expansion board card to compare and forward the test message, and the mark is the mark of the copied test message/the mark in the flow table.
6. The meter of claim 5, wherein the test unit comprises:
the copying module is used for copying the test message by N parts and distributing marks to the N copied test messages according to the expansion ports of the expansion board card, wherein N is the number of the expansion ports, the marks of the N copied test messages are different from each other, and each mark corresponds to one expansion port;
the matching module is used for searching a corresponding flow table according to the distributed marks aiming at each copied test message;
if the characteristic information of the copied test message is matched with the flow table, sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port;
and if the characteristic information of the copied test message is not matched with the flow table, discarding the copied test message.
7. The tester of claim 5, wherein the expansion board card comprises:
the acquisition module is used for acquiring the flow table stored in the expansion board card;
the matching module is used for sequentially comparing the characteristic information of the test message aiming at each flow table and determining whether the flow table is matched with the test message;
if the characteristic information of the test message is matched with the stored flow table, copying the test message according to the flow table, and sending the copied test message to the device to be tested connected with the expansion port of the expansion board card through the corresponding expansion port based on the mark in the flow table;
and if the characteristic information of the test message is not matched with the stored flow table, comparing the characteristic information of the test message with the next flow table.
8. The tester of claim 5, wherein the test board further comprises:
and the flow table generating unit is used for generating a flow table according to the configuration information and issuing the flow table to the expansion board card.
CN201911021886.7A 2019-10-25 2019-10-25 Message processing method and tester Active CN110691012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911021886.7A CN110691012B (en) 2019-10-25 2019-10-25 Message processing method and tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911021886.7A CN110691012B (en) 2019-10-25 2019-10-25 Message processing method and tester

Publications (2)

Publication Number Publication Date
CN110691012A CN110691012A (en) 2020-01-14
CN110691012B true CN110691012B (en) 2022-07-22

Family

ID=69114052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911021886.7A Active CN110691012B (en) 2019-10-25 2019-10-25 Message processing method and tester

Country Status (1)

Country Link
CN (1) CN110691012B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104634B (en) * 2020-09-08 2023-06-02 中国电力科学研究院有限公司 Data message processing method, system, equipment and readable storage medium
CN113905416B (en) * 2021-09-16 2024-04-16 锐捷网络股份有限公司 VoLTE message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130769A (en) * 2016-06-30 2016-11-16 上海斐讯数据通信技术有限公司 A kind of Network Quality Analysis method based on SDN and SDN system
CN106559395A (en) * 2015-09-29 2017-04-05 北京东土军悦科技有限公司 A kind of data message detection method and device based on industrial network
CN106559334A (en) * 2016-10-24 2017-04-05 上海斐讯数据通信技术有限公司 It is a kind of based on the minimal time delay load-balancing method of SDN, device and system
CN108111367A (en) * 2017-10-30 2018-06-01 深圳市风云实业有限公司 Performance test methods and device
CN109495293A (en) * 2018-10-25 2019-03-19 锐捷网络股份有限公司 A kind of test method, system, equipment and the storage medium in Switch control face

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212493B (en) * 2006-12-30 2011-07-27 上海贝尔阿尔卡特股份有限公司 Method and device for extending functionality and performance of network access device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559395A (en) * 2015-09-29 2017-04-05 北京东土军悦科技有限公司 A kind of data message detection method and device based on industrial network
CN106130769A (en) * 2016-06-30 2016-11-16 上海斐讯数据通信技术有限公司 A kind of Network Quality Analysis method based on SDN and SDN system
CN106559334A (en) * 2016-10-24 2017-04-05 上海斐讯数据通信技术有限公司 It is a kind of based on the minimal time delay load-balancing method of SDN, device and system
CN108111367A (en) * 2017-10-30 2018-06-01 深圳市风云实业有限公司 Performance test methods and device
CN109495293A (en) * 2018-10-25 2019-03-19 锐捷网络股份有限公司 A kind of test method, system, equipment and the storage medium in Switch control face

Also Published As

Publication number Publication date
CN110691012A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US10652261B2 (en) Computer-implemented system and method for creating an environment for detecting malicious content
CN109165136B (en) Terminal operation data monitoring method, terminal device and medium
CN109033471B (en) Information asset identification method and device
AU2003230764A8 (en) Methods for identifying network traffic flows
CN110691012B (en) Message processing method and tester
CN106886410A (en) A kind of software version management system
CN105323085A (en) Processing method and device for establishing performance measurement task and performance measurement result
CN106657434B (en) method and device for checking IP address
CN108683668A (en) Resource checksum method, apparatus, storage medium and equipment in content distributing network
CN102413044A (en) Method, device, equipment and system for generating DHCP (Dynamic Host Configuration Protocol) Snooping binding table
CN112543473B (en) Test method, device and equipment based on network element simulation and computer storage medium
CN108418907A (en) IP address distribution method and device
CN104468207A (en) Terminal management method, device and system
CN108737586B (en) Disaster recovery switching method and device for domain name query service
CN111666086A (en) Method, system and storage medium for updating application software
CN105871660B (en) A kind of quality determining method and equipment
CN111193731A (en) Method and device for generating network shooting range scene description file
US20090238077A1 (en) Method and apparatus for providing automated processing of a virtual connection alarm
CN101404595B (en) Network bridge uplink port identification
CN108768849A (en) Message processing method and device
CN107357557A (en) A kind of information updating method and device
US8184542B2 (en) Methods, computer programs, and systems for verifying a customer premises connection to an integrated communication system
CN110401709A (en) Processing method, device and the storage medium of session in a kind of instant messaging application
CN106559439B (en) A kind of method for processing business and equipment
CN111343031B (en) Method and device for determining network fault

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