CN110691012A - Message processing method and tester - Google Patents

Message processing method and tester Download PDF

Info

Publication number
CN110691012A
CN110691012A CN201911021886.7A CN201911021886A CN110691012A CN 110691012 A CN110691012 A CN 110691012A CN 201911021886 A CN201911021886 A CN 201911021886A CN 110691012 A CN110691012 A CN 110691012A
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.)
Granted
Application number
CN201911021886.7A
Other languages
Chinese (zh)
Other versions
CN110691012B (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 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 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 the service, 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 one device to be tested through the test port to provide test services, that is, the number of test ports which one test board card can provide test services is the same as the number of test ports which the test board card has.
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, 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 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 includes a test board and an expansion board, wherein the expansion board stores 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 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;
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;
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 extension board card in the tester can copy the test message according to the flow table to obtain a plurality of test messages, and the test messages are respectively sent to the corresponding extension 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 for the tester can be improved without adding the test board card, and further, the cost of the tester can be reduced.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within 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 the tester for providing test services needs to be improved, the number of test boards in the tester needs to be increased, which may increase 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 send 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 copy the test message sent by the test board card according to the stored flow table, and send the copied 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 extension board card in the tester can copy the test message according to the flow table to obtain a plurality of test messages, and the test messages are respectively sent to the corresponding extension 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 for 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 according to 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 the 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.
Wherein, 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 packets sent by the test board, the expansion board may test the received test packets based on the number N of the expansion ports to obtain N test packets.
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 allocated mark.
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 copied test message is discarded.
In the application embodiment, after determining the flow table corresponding to each test packet to which the label is assigned, the expansion board card may obtain the 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: protocol type of the message, source IP address of the message, 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 after determining that the feature information of the test packet matches the feature information recorded in the corresponding flow table, the expansion board card may determine the expansion port 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 packet, the expansion board card may also modify the test packet according to a processing manner recorded in the corresponding flow table, where the processing manner may include modifying a protocol type of the test packet and/or modifying a packet structure of the test packet.
For example, if the test packet is a UDP (User Data Protocol) packet and the processing manner recorded in the flow table is to modify the test packet into a TCP (Transmission Control Protocol) type, the extension 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 manner, 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 feature 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 may also directly issue configuration information for generating the flow table to the test board, and correspondingly, the test board may generate a corresponding flow table based on the configuration information and send the generated flow table to the expansion board, and the expansion board may receive the flow table sent by the test board and store the flow table locally, so as to copy and forward the test packet 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 application.
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 copying module in the expansion board card connected to the test port may copy the test message sent by the test board card according to the number of current Openflow (a network communication protocol, which belongs to a data link layer and can control a forwarding plane of an on-line 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 instances is 3 for example, but the invention is not limited thereto.
The expansion board card can copy the test message into three parts, compare the first part of the test message with the flow table 1, if the first part of the test message is matched with the flow table 1, process the first part of the 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 is matched with 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 box represents a test board, the gray solid box in the test board represents a test port in the test board, and the lower rectangular box represents an 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 respectively compared with the n flow tables to process the n test messages, and the processed test messages are respectively sent to the n expansion ports.
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 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;
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;
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, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, 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 protection scope of the present application.

Claims (8)

1. A message processing method is characterized by comprising 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;
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.
2. The method according to claim 1, wherein the sending the copied test packets to the devices to be tested connected to the expansion ports 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, 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.
3. The method according to claim 1, wherein the sending the copied test packets to the devices to be tested connected to the expansion ports 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.
4. The method of claim 1, further comprising:
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.
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 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.
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 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;
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.
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 true CN110691012A (en) 2020-01-14
CN110691012B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104634A (en) * 2020-09-08 2020-12-18 中国电力科学研究院有限公司 Data message processing method, system, equipment and readable storage medium
CN113905416A (en) * 2021-09-16 2022-01-07 锐捷网络股份有限公司 VoLTE message processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212493A (en) * 2006-12-30 2008-07-02 上海贝尔阿尔卡特股份有限公司 Method and device for extending functionality and performance of network access device
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212493A (en) * 2006-12-30 2008-07-02 上海贝尔阿尔卡特股份有限公司 Method and device for extending functionality and performance of network access device
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

Cited By (3)

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

Also Published As

Publication number Publication date
CN110691012B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN109165136B (en) Terminal operation data monitoring method, terminal device and medium
US10652261B2 (en) Computer-implemented system and method for creating an environment for detecting malicious content
CN109033471B (en) Information asset identification method and device
US20030223367A1 (en) Methods for identifying network traffic flows
EP3169018B1 (en) Method and device for establishing performance measurement task and processing performance measurement result
US20120110146A1 (en) Method and system for realizing network topology discovery
CN110691012B (en) Message processing method and tester
CN109151025B (en) Load balancing method and device based on URL, computer storage medium and equipment
CN102316416A (en) Access method for terminal and wireless communication network
CN112543473B (en) Test method, device and equipment based on network element simulation and computer storage medium
CN104468207A (en) Terminal management method, device and system
CN108737586B (en) Disaster recovery switching method and device for domain name query service
CN111193731A (en) Method and device for generating network shooting range scene description file
CN109067657B (en) Message processing method and device
US20090238077A1 (en) Method and apparatus for providing automated processing of a virtual connection alarm
CN108768849A (en) Message processing method and device
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN110958124B (en) Multicast group management method, device, readable storage medium and computer
RU2008121872A (en) NEAREST NODE FOR CONNECTIONS OF DISTRIBUTED SERVICES
US8184542B2 (en) Methods, computer programs, and systems for verifying a customer premises connection to an integrated communication system
CN109617817B (en) Method and device for generating forwarding table entry of MLAG networking
CN112351050A (en) Method, device, communication equipment and storage medium for mirroring data stream
CN102333070A (en) Method and device for obtaining information
CN100527706C (en) Communication system, method and apparatus for providing mirroring service in the communication system
CN106559439B (en) A kind of method for processing business and equipment

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