CN110191028B - Testing device, system and method of interconnection equipment capable of being defined by software - Google Patents

Testing device, system and method of interconnection equipment capable of being defined by software Download PDF

Info

Publication number
CN110191028B
CN110191028B CN201910617657.5A CN201910617657A CN110191028B CN 110191028 B CN110191028 B CN 110191028B CN 201910617657 A CN201910617657 A CN 201910617657A CN 110191028 B CN110191028 B CN 110191028B
Authority
CN
China
Prior art keywords
message
protocol
original
matching
configuration command
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
CN201910617657.5A
Other languages
Chinese (zh)
Other versions
CN110191028A (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.)
Tianjin Xinhaichuang Technology Co ltd
Information Technology Innovation Center Of Tianjin Binhai New Area
Original Assignee
Tianjin Xinhaichuang Technology Co ltd
Information Technology Innovation Center Of Tianjin Binhai New Area
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 Tianjin Xinhaichuang Technology Co ltd, Information Technology Innovation Center Of Tianjin Binhai New Area filed Critical Tianjin Xinhaichuang Technology Co ltd
Priority to CN201910617657.5A priority Critical patent/CN110191028B/en
Publication of CN110191028A publication Critical patent/CN110191028A/en
Application granted granted Critical
Publication of CN110191028B publication Critical patent/CN110191028B/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/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention provides a testing device, a system and a method of software-definable interconnection equipment; the device comprises an original protocol message generator, a target protocol message analysis matcher and a controller; the controller is used for receiving a configuration instruction of a user, generating an original protocol configuration command, analyzing a matching configuration command and a protocol conversion configuration command; the original protocol message generator is used for generating an original protocol message according to an original protocol configuration command and sending the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; the target protocol message analysis matcher is used for analyzing and matching the target protocol message according to an analysis matching configuration command after receiving the target protocol message sent by the interconnection equipment, and generating a function and function test result. The invention realizes the comprehensive test of the functions of the interconnection equipment and improves the test efficiency.

Description

Testing device, system and method of interconnection equipment capable of being defined by software
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device, a system, and a method for testing software-definable interconnection devices.
Background
The technical essence of software definition is that original integrated hardware facilities are broken through, basic hardware is virtualized and standardized basic functions are provided, then the basic functions are controlled through control software, and more open, flexible and intelligent control services are provided. The software-defined interconnection technology can be applied to interconnection equipment, so that the interconnection equipment can realize the conversion of a plurality of communication protocols through software definition. The current test mode for the software-defined interconnection technology can be verified by using traditional UVM (Universal Verification Methodology) logic simulation, but the test result of the mode is one-sided, slow in speed and low in efficiency.
Disclosure of Invention
The invention aims to provide a testing device, a system and a method of interconnection equipment capable of being defined by software, so as to realize the comprehensive testing of the functions of the interconnection equipment and improve the testing efficiency.
In a first aspect, an embodiment of the present invention provides a testing apparatus for software-definable interconnection equipment, where the testing apparatus includes an original protocol packet generator, a target protocol packet parsing matcher, and a controller; the controller is respectively connected with the original protocol message generator, the target protocol message analysis matcher and the interconnection equipment; the controller is used for receiving a configuration instruction of a user, generating an original protocol configuration command, analyzing a matching configuration command and a protocol conversion configuration command; the original protocol message generator is used for generating an original protocol message according to an original protocol configuration command and a configuration command and sending the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; the target protocol message analysis matcher is used for receiving a target protocol message sent by the interconnection equipment, analyzing and matching the target protocol message according to an analysis matching configuration command, and generating a function test result.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the original protocol configuration command includes an original message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode, and a total message length; the original protocol message generator comprises a first control register, a message packet header generation module, a message load generation module and an original protocol message encapsulation module; the first control register is respectively connected with the message packet header generation module, the message load generation module and the original protocol message encapsulation module; the original protocol message encapsulation module is respectively connected with the message packet header generation module and the message load generation module; the first control register is used for receiving an original protocol configuration command sent by the controller; the message packet header generating module is used for generating an original message packet header according to the original message protocol type, the message source address, the message destination address and the message combined total length; the message load generation module is used for generating an original message load according to the message load watermark algorithm mode, the total message combination length and the preset load generation logic; the original protocol message encapsulation module is used for encapsulating the header of the original message and the original message load, generating the original protocol message and sending the original protocol message to the interconnection equipment.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the parsing matching configuration command includes a target protocol packet protocol type, a packet source address, a packet destination address, a packet payload watermarking algorithm mode, and a packet combination total length; the target protocol message analysis matcher comprises a target protocol message analysis module, a target protocol message matching module and a second control register; the second control register is respectively connected with the target protocol message analysis module and the target protocol message matching module; the second control register is used for receiving an analysis matching configuration command; the target protocol message analysis module is used for analyzing the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet head and a conversion message load; and the target protocol message matching module is used for matching the head of the conversion message and the load of the conversion message according to the source address of the message, the destination address of the message, the watermark algorithm mode of the message load and the total length of the message combination to generate a function test result.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the target protocol packet matching module includes a packet header matching unit, a packet load matching unit, and a status register unit; the state register unit is respectively connected with the message packet head matching unit and the message load matching unit; the message packet header matching unit is used for matching the converted message packet header with a message source address, a message destination address and a message combined total length to generate a first matching result; the message load matching unit is used for matching the message load watermarks in the message loads according to a message load watermark algorithm mode to generate a second matching result; the state register unit is used for storing the first matching result and the second matching result to obtain a function test result.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the protocol conversion configuration command includes a port protocol type, a forwarding routing table entry, and a heterogeneous protocol conversion related table entry.
In a second aspect, an embodiment of the present invention provides a test system for a software-definable interconnection device, including the above test apparatus and the interconnection device.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the interconnection device is configured to generate a target protocol packet according to an original protocol packet and a protocol conversion configuration command sent by a test apparatus.
In a third aspect, an embodiment of the present invention provides a method for testing a software-definable interconnection device, where the method is applied to the above test apparatus; the method comprises the following steps: the controller receives a configuration instruction of a user, and generates an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command according to the configuration instruction; the original protocol message generator generates an original protocol message according to an original protocol configuration command, and sends the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; and the target protocol message analysis matcher receives a target protocol message sent by the interconnection equipment, and analyzes and matches the target protocol message according to the analysis matching configuration command to generate a function test result.
With reference to the third aspect, an embodiment of the present invention provides a first possible implementation manner of the third aspect, where the original protocol configuration command includes an original message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode, and a total message length; the original protocol message generator comprises a first control register, a message packet header generating module, a message load generating module and an original protocol message packaging module; the first control register is respectively connected with the message packet header generation module, the message load generation module and the original protocol message encapsulation module; the original protocol message encapsulation module is respectively connected with the message packet header generation module and the message load generation module; generating an original protocol message according to an original protocol configuration command, and sending the original protocol message to the interconnection equipment, wherein the method comprises the following steps: the first control register receives an original protocol configuration command sent by the controller; the message packet header generating module generates an original message packet header according to the original message protocol type, the message source address, the message destination address and the message combined total length; the message load generation module generates an original message load according to a message load watermark algorithm mode, the total message combination length and a preset load generation logic; and the original protocol message encapsulation module encapsulates the header of the original message and the original message load to generate an original protocol message, and sends the original protocol message to the interconnection equipment.
With reference to the first possible implementation manner of the third aspect, an embodiment of the present invention provides a second possible implementation manner of the third aspect, where the parsing matching configuration command includes a target protocol packet protocol type, a packet source address, a packet destination address, a packet payload watermarking algorithm mode, and a packet combination total length; the target protocol message analysis matcher comprises a target protocol message analysis module, a target protocol message matching module and a second control register; the second control register is respectively connected with the target protocol message analysis module and the target protocol message matching module; receiving a target protocol message sent by interconnection equipment, analyzing and matching the target protocol message according to an analysis matching configuration command, and generating a function test result, wherein the function test result comprises the following steps: the second control register receives the analysis matching configuration command; the target protocol message analysis module analyzes the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet header and a conversion message load; and the target protocol message matching module matches the head of the conversion message and the load of the conversion message according to the source address of the message, the destination address of the message, the watermark algorithm mode of the message load and the total length of the message combination to generate a function test result.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a testing device, a system and a method of software-definable interconnection equipment; the controller receives a configuration instruction of a user, and generates an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command; the original protocol message generator generates an original protocol message according to an original protocol configuration command, and sends the original protocol message to the interconnection equipment, so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; and after receiving the target protocol message sent by the interconnection equipment, the target protocol message analysis matcher analyzes and matches the target protocol message according to an analysis matching configuration command to generate a function test result. The method realizes the comprehensive test of the functions of the interconnection equipment and improves the test efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a testing apparatus for a software definable interconnect device according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another testing apparatus for a software definable interconnect device according to an embodiment of the present invention;
fig. 3 is a block diagram of a test platform recommendation architecture of a test apparatus for a network switching device and a bridge device interconnected by software definition based on hardware implementation according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a test system for a software definable interconnect device according to an embodiment of the present invention;
fig. 5 is a flowchart of a testing method for a software definable interconnect device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The technical essence of software definition is that original integrated hardware facilities are broken through, basic hardware is virtualized and standardized basic functions are provided, then the basic functions are controlled through control software, and more open, flexible and intelligent control services are provided. Currently, many researches are conducted at home and abroad for Software definition, such as Software Defined Networking (SDN), Software Defined Data center (Data center), Software Defined Storage (SDM), and the like. However, in the current software definition system, no matter SDN, SDDC and SDM, they can only implement software definition above the network layer, but there is no device capable of supporting software definition for the link layer and the physical layer, which means flexible, efficient and transparent interconnection and interworking of heterogeneous protocols cannot be implemented.
The software-defined interconnection technology is a completely innovative enabling technology, and the content of the technology comprises the aspects of interconnection protocol software-definable, interconnection bandwidth software-definable, interconnection port software-definable, interconnection topology software-definable and interconnection protocol conversion software-definable. The software-defined interconnection technology is responsible for finally solving flexible interconnection and intercommunication of any heterogeneous protocol, and specifically at least comprises a software-defined physical layer technology, a software-defined link layer technology, a software-defined heterogeneous protocol conversion technology and the like.
Currently, the software-defined interconnection technology can be verified by adopting a traditional UVM logic simulation mode, but the UVM simulation has defects in several aspects:
(1) due to the fact that heterogeneous protocols are converted in the software defined interconnection technology, conversion processing from an original protocol to a target protocol exists, whether the processed target protocol can meet the extra requirements of an upper protocol stack of standard endpoint equipment or not is judged, and current UVM simulation cannot temporarily cover the target protocol. Because the VIP (verification IP) of UVM simulation can only carry out traditional verification on the specification of a target protocol at present, the verification of protocol compatibility can only be ensured, and whether the target protocol obtained after the conversion of the software-defined interconnection technology meets the extra processing requirement of an upper protocol stack of standard endpoint equipment or not can not be ensured by the VIP, the test based on the real application scene of the standard physical equipment is the fundamental verification aiming at the brand-new software-defined interconnection technology.
(2) The simulation speed is slow, especially when the scale of the digital circuit is large, the logic simulation speed becomes slower, which causes the verification period of the whole project to become mediocre and the lead time of the whole project to be limited.
(3) It is impossible to verify the Clock Domain Crossing (CDC) processing logic, Clock recovery and Clock compensation logic of high-speed signals in the digital circuit, such as RapidIO protocol/FC (fiber bus) protocol/Ethernet protocol/PCIE (Peripheral Component Interface Express) protocol and other high-speed communication protocols.
Based on the above problems, embodiments of the present invention provide a testing apparatus, system, and method for a software-definable interconnect device, which can be applied to a functional test of the interconnect device and a test of a software-definable network switch device or a bridge device.
For the understanding of the present embodiment, a detailed description will be given to a testing apparatus for a software definable interconnect device disclosed in the present embodiment.
Referring to fig. 1, a schematic structural diagram of a testing apparatus for a software definable interconnection device is shown; the testing device comprises an original protocol message generator 10, a target protocol message analysis matcher 20 and a controller 30; the controller 30 is connected to the original protocol packet generator 10, the target protocol packet parsing matcher 20, and the interconnection device 40, respectively.
In the testing device, a controller is used for receiving a configuration instruction of a user, and generating an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command according to the configuration instruction; the original protocol message generator is used for generating an original protocol message according to an original protocol configuration command and sending the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; the target protocol message analysis matcher is used for receiving a target protocol message sent by the interconnection equipment, analyzing and matching the target protocol message according to an analysis matching configuration command, and generating a function test result.
In practical cases, the configuration instruction may include an original protocol and a target conversion protocol corresponding to the function detection of the interconnection device to be detected, and a message parameter used in the detection process, such as a message length.
After receiving a configuration instruction of a user, the controller can split the content in the configuration instruction to respectively generate an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command; the original protocol configuration command is sent to an original protocol message generator, and the configuration command can contain the original protocol type, a message source address, a message load, a message destination address and other contents required by message generation; a protocol conversion configuration command is sent to the interconnection equipment, wherein the configuration command at least comprises a port protocol type, a forwarding routing table item and a heterogeneous protocol conversion related table item, so that the interconnection equipment converts an original protocol message to generate a target protocol message; when the same communication protocol is adopted between two communication devices connected with the interconnection device, the original protocol is the same as the target protocol, and the interconnection device does not need to convert the message in the aspect of the communication protocol; the analysis matching configuration command is sent to the analysis matcher of the target protocol message, and the configuration command can include the information when the target protocol message is analyzed, such as the type of the target protocol; the method can also include information required for matching the analyzed message content, such as preset message content.
When the function test of the interconnection equipment is carried out, the original protocol and the target protocol can be set to be the same, and the message transmission function of the interconnection equipment is tested; when the test result shows that the message transmission function is intact, the original protocol and the target protocol are respectively set according to the protocol type of the interconnection equipment capable of carrying out protocol conversion, and the protocol conversion function of the interconnection equipment is tested.
The original protocol message generator at least comprises a message packaging module and a configuration register; when the original protocol configuration command does not include the message content, the protocol configuration command at least comprises a message generation module, and the message content can be generated according to preset logic. The target protocol message parsing matcher at least comprises a parsing module, a matching module and a configuration register.
The embodiment of the invention provides a testing device of software-definable interconnection equipment; the controller receives a configuration instruction of a user, and generates an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command; the original protocol message generator generates an original protocol message according to an original protocol configuration command, and sends the original protocol message to the interconnection equipment, so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command; and after receiving the target protocol message sent by the interconnection equipment, the target protocol message analysis matcher analyzes and matches the target protocol message according to an analysis matching configuration command to generate a function test result. The method realizes the comprehensive test of the function of the interconnection equipment and improves the test efficiency.
The embodiment of the invention also provides another testing device of the software-definable interconnection equipment; the device is realized on the basis of the testing device shown in fig. 1, and the structural schematic diagram of the device is shown in fig. 2.
An original protocol message generator 10 in the device comprises a first control register 11, a message header generating module 12, a message load generating module 13 and an original protocol message packaging module 14; the first control register 11 is connected to the packet header generating module 12, the packet load generating module 13, and the original protocol packet encapsulating module 14, respectively.
The original protocol configuration command sent by the controller comprises an original message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combined total length; in the working process of the original protocol message generator, a first control register receives an original protocol configuration command sent by a controller; the message packet header generating module generates an original message packet header according to the original message protocol type, the message source address, the message destination address and the message combined total length; the message load generation module generates an original message load according to a message load watermark algorithm mode, the total message combination length and a preset load generation logic; the original protocol message encapsulation module is used for encapsulating the header of the original message and the original message load, generating the original protocol message and sending the original protocol message to the interconnection equipment.
A target protocol message analysis matcher 20 in the device comprises a target protocol message analysis module 21, a target protocol message matching module 22 and a second control register 23; the second control register 23 is connected to the target protocol packet parsing module 21 and the target protocol packet matching module 22, respectively.
The analysis matching configuration command sent by the controller comprises a target protocol message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combination total length; in the working process of the target protocol message analysis matcher, the second control register receives an analysis matching configuration command; the target protocol message analysis module analyzes the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet header and a conversion message load; and the target protocol message matching module matches the head of the conversion message and the load of the conversion message according to the source address of the message, the destination address of the message, the watermark algorithm mode of the message load and the total length of the message combination to generate a function test result.
In some specific implementation processes, the target protocol packet matching module 22 may further include a packet header matching unit 22a, a packet load matching unit 22b, and a status register unit 22 c; the status register unit 22c is connected to the packet header matching unit 22a and the packet load matching unit 22b, respectively; in the working process of the target protocol message matching module, a message packet header matching unit matches a converted message packet header with a message source address, a message destination address and a message combined total length to generate a first matching result; the message load matching unit matches the message load watermarks in the message loads according to the message load watermark algorithm mode to generate a second matching result; the state register unit is used for storing the first matching result and the second matching result to obtain a function test result; when the packet header of the converted message obtained by analysis is completely matched with the message source address, the message destination address and the total length of the message combination, and the message watermark in the message load can be completely matched, the interconnection equipment is determined to have good function, and the function of protocol conversion can be realized.
The testing device provided by the embodiment of the invention utilizes the original protocol message generator to generate the original protocol message and loads the watermark in the original protocol message; analyzing the target protocol message converted by the interconnection equipment to be tested by using a target protocol message analysis matcher, and respectively verifying a message packet header and a watermark of a message load so as to determine a function test result of the interconnection equipment; the method comprehensively tests the conversion capability of the interconnection equipment to each part of the message, and has the advantages of high speed and high test efficiency.
The embodiment of the invention also provides a test device for the network switching equipment and the bridging equipment which are interconnected by software definition and realized based on hardware, and the test device is realized based on the test device shown in the figure 1; a block diagram of a recommendation architecture for a test platform according to the present invention is shown in fig. 3.
The original protocol message generator in fig. 3 is responsible for generating an original protocol message of the test device; the method specifically comprises the following steps: the method comprises the steps of generating a header of an original protocol message, processing the load of the original protocol message and packaging the original protocol message; the control register configuration corresponding to each part is also included; the structure is used for generating a plurality of two-layer heterogeneous protocol messages, including message load and generation of all fields of a packet header. Wherein, in the generation process of the message load, a watermark is generated according to a certain watermark algorithm and is embedded into the corresponding message load.
The device to be tested is a test object of the whole test platform, and can be a network switching device or a bridge device supporting software defined interconnection.
The target protocol message analysis matcher is responsible for automatically comparing analysis of a target protocol message processed by equipment to be tested with a relevant test result, and specifically comprises the following steps: the target protocol message analyzer is used for receiving target protocol message analysis generated after heterogeneous protocol routing table look-up, conversion table look-up, protocol conversion and target protocol message encapsulation are carried out on the equipment to be tested; the target protocol message matcher comprises: the device comprises a target protocol message packet header information extraction and automatic comparison, a target protocol message load extraction and automatic comparison, a test result state recording module and the like, and the device mainly completes two operations: extracting and checking the target protocol message load watermark according to a load watermark corresponding generation algorithm in the message generator, and testing the heterogeneous protocol conversion of the device to be tested to generate effective load matching check; and according to the expected packet header field configuration, the packet header field is extracted by the preceding-stage message resolver module to be compared as required, and the packet header field configuration and the preceding-stage message resolver module are used for testing the compatibility test of the packet header field encapsulation and the heterogeneous protocol during the heterogeneous protocol conversion of the device to be tested.
The user control software (equivalent to the controller) is responsible for the whole platform test equipment (the original protocol message generator and the target protocol message analyzer), the configuration of the equipment to be tested and the maintenance of the final full-automatic test log.
The whole testing process of the testing method and the testing device based on the test platform recommendation framework comprises the following specific steps:
(1) initializing a test device and a device to be tested defined by configuration software according to a functional test requirement, wherein the configuration of a test device message generator and a parser at least comprises the following steps: message protocol type, message source address, message destination address, message load watermarking algorithm mode and message combined total length; the configuration of the device under test comprises at least: port protocol type, forwarding routing table entry, heterogeneous protocol conversion related table entry.
(2) And (3) setting related message quantity counters in the test device and the equipment to be tested, starting the test device message generator to generate test messages according to the configuration items of the test device in the step (1), and transmitting the generated messages to the equipment to be tested.
Specifically, the original protocol packet header generator includes a user configuration table entry, a control register configuration and a packet header generation logic; the message header generating logic generates a message header according to the configuration of the user configuration table entry and the configuration of the control register; the original protocol message load processing logic comprises a message load generator, a control register configuration and a message load watermark embedding logic; the message load watermark embedding logic embeds the message watermark in the message load generated by the message load generator; and finally, the original protocol message encapsulation logic encapsulates the packet header and the message load containing the message watermark according to the control register configuration to generate the original protocol message, namely the test message.
(3) The device to be tested receives the test message, and according to the configuration items defined by the specific software, the device to be tested analyzes the received original protocol message, extracts the fields, looks up the table by the route, converts the protocol, encapsulates the target protocol message and finally forwards the message to the expected destination port.
(4) And after the equipment to be tested completes the conversion from the original protocol message to the target protocol message according to the protocol conversion rule, the target protocol message is sent to the software-defined testing device through the equipment to be tested.
(5) And after receiving the target protocol message generated by the conversion of the equipment to be tested, the testing device starts a target protocol message analyzer in the testing device. The target protocol message analyzer is responsible for analyzing the target protocol message and extracting all fields of a message packet head and a corresponding message load, so that the separation of the message packet head and the load is finally realized, and meanwhile, the counting of the number of received messages, the total length statistics of the data load and the like are completed.
(6) The analyzer of the test device can enable the message of the later stage to match the comparator after completing the corresponding message analysis. The protocol matching comparator of the test device at least accomplishes two aspects of work: 1) matching the message load extracted by the preceding stage parser module in real time according to an expected message load watermark matching algorithm and recording a matching result; 2) and extracting the packet header field according to the expected packet header field configuration and a preceding stage resolver module, comparing the extracted packet header field according to requirements, and recording a comparison result.
(7) And reading a final test result by utilizing upper-layer software, wherein the result can comprise the final message counting generated and sent by the message generator, the message counting received by the message analyzer, the result recorded by the message matching comparator and the message counting corresponding to the equipment to be tested. And the tester reads the corresponding counting counter value of the whole platform and the record result of the message matching comparator based on the upper software, writes the corresponding processing program real-time processing program and generates a final test result, and the colleagues automatically write the result into a special file for the tester to look up and analyze.
The test device provided by the embodiment of the invention firstly performs the initialization configuration of the software definition interconnection test device and the equipment to be tested, and further determines the specific test vector and the conversion content of the heterogeneous protocol; then generating a test message through a test device message generator, and sending the test message to the equipment to be tested through a link; then, the equipment to be tested converts the original protocol message, generates a target protocol message and sends the target protocol message to a target protocol message analysis matcher of the testing device; and finally, generating a payload matching check in a target protocol message analysis matcher defined by software and comparing all field contents of the packet header, and finally giving a visual conclusion to a tester after all processing results are processed by upper-layer software. The whole process realizes packet header inspection and load matching of the message forwarded by the software-defined interconnection equipment, and completes all-round test and verification of the equipment to be tested.
The testing method and the testing device provided by the embodiment of the invention are based on the idea of defining hardware by software, the whole device is based on hardware realization, supports linear speed real-time processing and has strong structure expandability, the whole process is upper-layer software automatic processing, and the final processing result is visual, so that the workload of testers is greatly released, the testing efficiency of the whole project is improved, and the testing method and the testing device can be more flexibly used for testing interconnection and intercommunication among various heterogeneous two-layer protocols.
Corresponding to the above embodiments, the embodiment of the present invention provides a test system for software-definable interconnection devices, and a schematic structural diagram of the test system is shown in fig. 4; the system comprises the above-mentioned test device 41 and the interconnect device 40.
Specifically, the interconnection device is configured to generate a target protocol packet according to an original protocol packet and a protocol conversion configuration command sent by the test apparatus.
The test system of the interconnection equipment capable of being defined by software provided by the embodiment of the invention has the same technical characteristics as the test device of the interconnection equipment capable of being defined by software provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Corresponding to the above embodiments, the embodiment of the present invention further provides a method for testing a software definable interconnect device, and a flowchart thereof is shown in fig. 5; the test method is applied to the test device; the method comprises the following steps:
step S500: the controller receives a configuration instruction of a user, and generates an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command according to the configuration instruction;
step S502: the original protocol message generator generates an original protocol message according to an original protocol configuration command, and sends the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command;
step S504: and the target protocol message analysis matcher receives a target protocol message sent by the interconnection equipment, and analyzes and matches the target protocol message according to the analysis matching configuration command to generate a function test result.
Specifically, the original protocol configuration command includes an original message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combined total length; the original protocol message generator comprises a first control register, a message packet header generating module, a message load generating module and an original protocol message packaging module; the first control register is respectively connected with the message packet header generation module, the message load generation module and the original protocol message encapsulation module; the original protocol message encapsulation module is respectively connected with the message packet header generation module and the message load generation module; the step S502 is specifically implemented by the following steps:
(1) the first control register receives an original protocol configuration command sent by the controller.
(2) The message header generating module generates an original message header according to the original message protocol type, the message source address, the message destination address and the message combination total length.
(3) And the message load generation module generates the original message load according to the message load watermark algorithm mode, the message combination total length and the preset load generation logic.
(4) And the original protocol message encapsulation module encapsulates the header of the original message and the original message load to generate an original protocol message, and sends the original protocol message to the interconnection equipment.
Specifically, the parsing matching configuration command includes a target protocol message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combination total length; the target protocol message analysis matcher comprises a target protocol message analysis module, a target protocol message matching module and a second control register; the second control register is respectively connected with the target protocol message analysis module and the target protocol message matching module; the step S504 is specifically implemented by the following steps:
(1) the second control register receives a resolve match configuration command.
(2) And the target protocol message analysis module analyzes the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet header and a conversion message load.
(3) And the target protocol message matching module matches the head of the conversion message and the load of the conversion message according to the source address of the message, the destination address of the message, the watermark algorithm mode of the message load and the total length of the message combination to generate a function test result.
The test apparatus, system, and computer program product of the method for software-definable interconnect devices provided in the embodiments of the present invention include a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the methods in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and/or the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A testing device of software-definable interconnection equipment is characterized by comprising an original protocol message generator, a target protocol message analysis matcher and a controller; the controller is respectively connected with the original protocol message generator, the target protocol message analysis matcher and the interconnection equipment;
the controller is used for receiving a configuration instruction of a user, and generating an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command according to the configuration instruction;
the original protocol message generator is used for generating an original protocol message according to the original protocol configuration command and sending the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command;
the target protocol message analysis matcher is used for receiving a target protocol message sent by the interconnection equipment, analyzing and matching the target protocol message according to the analysis matching configuration command, and generating a function test result;
the original protocol configuration command comprises an original message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combined total length;
the original protocol message generator comprises a first control register, a message packet header generation module, a message load generation module and an original protocol message encapsulation module;
the first control register is used for receiving an original protocol configuration command sent by the controller;
the message header generating module is used for generating an original message header according to the original message protocol type, the message source address, the message destination address and the message combined total length;
the message load generation module is used for generating an original message load according to the message load watermark algorithm mode, the total message combination length and a preset load generation logic;
the original protocol message encapsulation module is used for encapsulating the header of the original message and the load of the original message, generating an original protocol message and sending the original protocol message to the interconnection equipment.
2. The apparatus according to claim 1, wherein the first control register is connected to the packet header generation module, the packet payload generation module, and the native protocol packet encapsulation module, respectively; the original protocol message encapsulation module is respectively connected with the message packet header generation module and the message load generation module.
3. The apparatus of claim 1, wherein the parse-match configuration command comprises a target protocol message protocol type, a message source address, a message destination address, a message payload watermarking algorithm pattern, and a message combined total length;
the target protocol message analysis matcher comprises a target protocol message analysis module, a target protocol message matching module and a second control register; the second control register is respectively connected with the target protocol message analysis module and the target protocol message matching module;
the second control register is used for receiving the analysis matching configuration command;
the target protocol message analysis module is used for analyzing the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet header and a conversion message load;
the target protocol message matching module is used for matching the packet head of the conversion message and the conversion message load according to the message source address, the message destination address, the message load watermarking algorithm mode and the message combination total length to generate a function test result.
4. The apparatus of claim 3, wherein the target protocol packet matching module comprises a packet header matching unit, a packet payload matching unit, and a status register unit; the state register unit is respectively connected with the message packet header matching unit and the message load matching unit;
the message packet header matching unit is used for matching the converted message packet header with the message source address, the message destination address and the message combined total length to generate a first matching result;
the message load matching unit is used for matching the message load watermarks in the message loads according to the message load watermark algorithm mode to generate a second matching result;
the state register unit is used for storing the first matching result and the second matching result to obtain a function test result.
5. The apparatus of claim 1, wherein the protocol conversion configuration command comprises a port protocol type, a forwarding routing entry, a heterogeneous protocol conversion related entry.
6. A test system for software definable interconnect devices, characterized in that it comprises an interconnect device and a test apparatus according to any of claims 1-5.
7. The system according to claim 6, wherein the interconnection device is configured to generate a target protocol packet according to an original protocol packet and a protocol conversion configuration command sent by the testing apparatus.
8. A test method of a software definable interconnection device, characterized in that the test method is applied to a test apparatus according to claim 1; the method comprises the following steps:
the controller receives a configuration instruction of a user, and generates an original protocol configuration command, an analysis matching configuration command and a protocol conversion configuration command according to the configuration instruction;
the original protocol message generator generates an original protocol message according to the original protocol configuration command, and sends the original protocol message to the interconnection equipment so that the interconnection equipment generates a target protocol message according to the original protocol message and the protocol conversion configuration command;
the target protocol message analysis matcher receives a target protocol message sent by the interconnection equipment, and analyzes and matches the target protocol message according to the analysis matching configuration command to generate a function test result;
the analysis matching configuration command comprises a target protocol message protocol type, a message source address, a message destination address, a message load watermarking algorithm mode and a message combined total length;
the target protocol message analysis matcher comprises a target protocol message analysis module, a target protocol message matching module and a second control register;
the receiving a target protocol message sent by the interconnection equipment, analyzing and matching the target protocol message according to the analysis matching configuration command, and generating a function test result includes:
the second control register receives the analysis matching configuration command;
the target protocol message analysis module analyzes the target protocol message according to the protocol type of the target protocol message to obtain a conversion message packet header and a conversion message load;
and the target protocol message matching module matches the packet head of the conversion message and the conversion message load according to the message source address, the message destination address, the message load watermarking algorithm mode and the message combined total length to generate a function test result.
9. The method of claim 8, wherein the original protocol configuration command comprises an original message protocol type, a message source address, a message destination address, a message payload watermarking algorithm mode, and a message combined total length;
the original protocol message generator comprises a first control register, a message packet header generation module, a message load generation module and an original protocol message encapsulation module; the first control register is respectively connected with the message packet header generation module, the message load generation module and the original protocol message encapsulation module; the original protocol message encapsulation module is respectively connected with the message packet header generation module and the message load generation module;
generating an original protocol message according to the original protocol configuration command, and sending the original protocol message to the interconnection device, wherein the method comprises the following steps:
the first control register receives an original protocol configuration command sent by the controller;
the message packet header generating module generates an original message packet header according to the original message protocol type, the message source address, the message destination address and the message combined total length;
the message load generation module generates an original message load according to the message load watermark algorithm mode, the message combination total length and a preset load generation logic;
and the original protocol message packaging module packages the header of the original message and the load of the original message to generate an original protocol message, and sends the original protocol message to the interconnection equipment.
10. The method according to claim 9, wherein the second control register is connected to the target protocol packet parsing module and the target protocol packet matching module, respectively.
CN201910617657.5A 2019-07-10 2019-07-10 Testing device, system and method of interconnection equipment capable of being defined by software Active CN110191028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910617657.5A CN110191028B (en) 2019-07-10 2019-07-10 Testing device, system and method of interconnection equipment capable of being defined by software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910617657.5A CN110191028B (en) 2019-07-10 2019-07-10 Testing device, system and method of interconnection equipment capable of being defined by software

Publications (2)

Publication Number Publication Date
CN110191028A CN110191028A (en) 2019-08-30
CN110191028B true CN110191028B (en) 2020-12-01

Family

ID=67725420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910617657.5A Active CN110191028B (en) 2019-07-10 2019-07-10 Testing device, system and method of interconnection equipment capable of being defined by software

Country Status (1)

Country Link
CN (1) CN110191028B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205427B (en) * 2021-11-17 2023-06-02 武汉慧联无限科技有限公司 Method, apparatus and storage medium for protocol docking debugging
CN115632976A (en) * 2022-10-25 2023-01-20 深圳市楠菲微电子有限公司 PCIE transaction layer message generation method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902759A (en) * 2010-05-25 2010-12-01 中国科学技术大学 Wireless network safety analysis method and device based on protocol testing
CN103281317A (en) * 2013-05-09 2013-09-04 浙江师范大学 Attack testing method for SDN (software defined network)
US9042402B1 (en) * 2011-05-10 2015-05-26 Juniper Networks, Inc. Methods and apparatus for control protocol validation of a switch fabric system
CN106936664A (en) * 2017-01-18 2017-07-07 中国电子科技集团公司第五十研究所 Software defined network path performance test apparatus and method
CN107483281A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 A kind of statistical method based on software defined network, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253071B2 (en) * 2013-09-13 2016-02-02 Ixia Methods, systems, and computer readable media for test configuration optimized decoding of protocol messages in a network device test system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902759A (en) * 2010-05-25 2010-12-01 中国科学技术大学 Wireless network safety analysis method and device based on protocol testing
US9042402B1 (en) * 2011-05-10 2015-05-26 Juniper Networks, Inc. Methods and apparatus for control protocol validation of a switch fabric system
US9531622B1 (en) * 2011-05-10 2016-12-27 Juniper Networks, Inc. Methods and apparatus for control protocol validation of a switch fabric system
CN103281317A (en) * 2013-05-09 2013-09-04 浙江师范大学 Attack testing method for SDN (software defined network)
CN107483281A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 A kind of statistical method based on software defined network, apparatus and system
CN106936664A (en) * 2017-01-18 2017-07-07 中国电子科技集团公司第五十研究所 Software defined network path performance test apparatus and method

Also Published As

Publication number Publication date
CN110191028A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
US6373822B1 (en) Data network protocol conformance test system
US7100091B2 (en) Method and system for testing networks
US6560723B1 (en) Automatic communication protocol test system with message/sequence edit function and test method using the same
US9253062B2 (en) Byte by byte received data integrity check
CN104980317A (en) Automatic test system and test method for dispatching data network equipment
CN110191028B (en) Testing device, system and method of interconnection equipment capable of being defined by software
CN110213233B (en) Simulation method and simulation platform for defending against power grid distributed denial of service attack and establishment method thereof
CN111431758A (en) Cloud network equipment testing method and device, storage medium and computer equipment
CN102123058A (en) Test equipment and method for testing network protocol decoder
CN109471737B (en) Software adaptation method and device for high-speed magnetic levitation operation control system semi-physical simulation
CN104767655A (en) Analog result detection method and device
US20070047448A1 (en) Network equipment testing method and system
CN105515890A (en) OpenFlow protocol consistency testing method and equipment
CN100366003C (en) Device and method for emulated route analysis test
CN111935767B (en) Network simulation system
CN116723058B (en) Network attack detection and protection method and device
CN101272211B (en) Service cross software test method and system
CN114629830B (en) Method and system for automatically controlling test center instrument test
CN113872826B (en) Network card port stability testing method, system, terminal and storage medium
JP4736135B2 (en) Internal bus analysis system for inter-card communication, method and program
CN114527679A (en) Semi-physical simulation verification method and system
US20150288548A1 (en) Method for Verifying the Functionality of a Digital Circuit
JPH08251168A (en) Intra-system information transmission system
CN115174439B (en) Verification method, device and storage medium of multi-protocol label switching channel
CN110474819B (en) FC-ETH protocol conversion chip verification device and method based on packet counting

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