CN105515890A - OpenFlow protocol consistency testing method and equipment - Google Patents

OpenFlow protocol consistency testing method and equipment Download PDF

Info

Publication number
CN105515890A
CN105515890A CN201510810310.4A CN201510810310A CN105515890A CN 105515890 A CN105515890 A CN 105515890A CN 201510810310 A CN201510810310 A CN 201510810310A CN 105515890 A CN105515890 A CN 105515890A
Authority
CN
China
Prior art keywords
test
module
equipment under
message
equipment
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.)
Pending
Application number
CN201510810310.4A
Other languages
Chinese (zh)
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.)
BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Petrochina Huabei Oilfield Co
Original Assignee
BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Petrochina Huabei Oilfield Co
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 BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd, Petrochina Huabei Oilfield Co filed Critical BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510810310.4A priority Critical patent/CN105515890A/en
Publication of CN105515890A publication Critical patent/CN105515890A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0226Mapping or translating multiple network management protocols
    • 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
    • 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

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 invention discloses an OpenFlow protocol consistency testing method and equipment, belongs to the technical field of testing, and provides an OpenFlow protocol consistency testing tool, so as to determine whether equipment from a manufacturer meets an OpenFlow protocol standard or not, and to solve a problem of network communication interruption caused by the inconsistency of equipment communication protocols in a network. The equipment comprises a testing process control module which is used for controlling the whole testing process of a test case after the test case is determined; a control plane testing module which is used for specifically executing and completing the test cause under the control of the testing process control module; and a testing result determining module which is used for determining whether tested equipment meets the OpenFlow protocol standard or not according to the condition that the control plane testing module executes the test case under the control of the testing process control module.

Description

OpenFlow protocol conformance test method and equipment
Technical field
The present invention relates to technical field of measurement and test, particularly relate to a kind of OpenFlow protocol conformance test method and equipment.
Background technology
SDN (Software-definednetworking, software defined network) be a kind of network virtualization (Networkvirtualization) technology proposed by Emulex, mainly utilize OpenFlow agreement that the control plane of router (controlplane) is separated from datum plane (dataplane).By OpenFlow protocol between control plane and datum plane.Network manager can not change hardware unit based on this equipment, with center control, by program again planning network, for net control flow provides new method.
OpenFlow agreement is developed by ONF (OpenNetworkingFoundation, open network foundation) and a kind of SDN control plane south orientation agreement promoted.It specify mode and the content of control plane and data plane communication, be current most widely used SDN south orientation agreement, obtain industry, particularly the support of switching equipment (i.e. datum plane equipment) manufacturer.At present the OpenFlow1.3 version of this agreement is that it is safeguarded for a long time, and obtains the version of most extensive use and deployment.
As the main way that SDN realizes, also there is the consistency problem that equipment realizes in current OpenFlow1.3 agreement.Because this agreement itself is write by natural language, thus understand with realize in the place that inevitably there are some imperfections or leave a question open.The equipment of each equipment vendors exploitation is realizing cannot accomplishing in some details of OpenFlow1.3 agreement completely the same, and between different vendor, equipment cannot intercommunication.In this case, if carry out network design, then can network paralysis be caused to use due to the problem that agreement is inconsistent.
Summary of the invention
For the problem of OpenFlow testing protocol consistency instrument disappearance, the embodiment of the present invention provides a kind of measurement techniques & apparatuses of OpenFlow protocol conformance, by the test process of automation checking vendor equipment, whether all necessarily require if meeting in OpenFlow agreement, guarantee the consistency of equipment for this agreement, eliminate the problem that interconnects between different vendor's equipment, guarantee that variation can not appear in OpenFlow agreement itself because of the realization of manufacturer.
The embodiment of the present invention provides a kind of OpenFlow testing protocol consistency equipment, can comprise:
Test process control module, after determining, controls the whole test process for this test case for test case;
Control plane test module, under the control of test process control module, completes described test case; Comprise and set up control channel with equipment under test; After connecting with equipment under test, the control plane message template for described test case is provided and generates the control plane message meeting OpenFlow agreement; Control plane message is sent to equipment under test, receives the first response message that equipment under test returns; First response message is resolved;
According to packet parsing result, test result determination module, for judging whether equipment under test meets OpenFlow protocol specification.
Preferably, control plane test module comprises:
Connection establishment module, for setting up control channel with equipment under test under the control of control module;
OpenFlow protocol massages storehouse, after establishing a communications link, provides the control plane message template for described test case according to the instruction of test process control module and generates control plane message for connection establishment module and equipment under test;
OpenFlow protocol massages forwarding module, for control plane message is sent to equipment under test, receives the first response message that equipment under test returns;
OpenFlow protocol resolution module, for resolving the first response message.
Preferably, described connection establishment module comprises:
Monitor submodule, for monitoring OpenFlow Protocol TCP port;
Receive submodule, for receiving the connection request that equipment under test is sent by described tcp port;
Connexon module, for replying the described connection request that equipment under test sends, sets up control channel with equipment under test.
Preferably, described connection establishment module also for, when setting up control channel failure with equipment under test, will instruction set up control channel failure information feed back to test result determination module.
Preferably, when described test case relates to data-plane communication, then described equipment also comprises:
Datum plane message store, for providing the datum plane message template corresponding to described test case according to the instruction of test process control module and generating datum plane message;
Data message forwarding module, for datum plane message is sent to equipment under test, receives the second response message that equipment under test returns;
Data message parsing module, for resolving the second response message.
Preferably, described equipment also comprises:
Test process logging modle, for performing the instruction of test process control module, the test data that the whole test process recording described test case produces.
Preferably, described test data comprises:
The network traffic recording file of test process, and the journal file that testing equipment and equipment under test communication interaction are formed.
The embodiment of the present invention also provides a kind of OpenFlow protocol conformance test method, and described method comprises:
After test case is determined, control and perform the whole test process for this test case;
Comprise: set up control channel with equipment under test;
After connecting with equipment under test, the message template for described test case is provided and generates control plane message;
Control plane message is sent to equipment under test, receives the first response message that equipment under test returns;
First response message is resolved;
Judge whether equipment under test meets OpenFlow protocol specification according to packet parsing result.
Preferably, described method also comprises:
When described test case relates to data-plane communication, the datum plane message template corresponding to described test case is provided and generates datum plane message;
Datum plane message is sent to equipment under test;
Receive the second response message that equipment under test returns;
Resolve the second response message so that carry out consistency checking.
Preferably, described method also comprises:
The test data that the whole test process recording described test case produces.
Compared with prior art, the technical scheme that the embodiment of the present invention provides has the following advantages:
Technical scheme provided by the invention, for function point (function that equipment under test possesses, such as sending function) to be measured, first need according to function point design test example, namely test process has been the process implementing test case.In this programme, the unified implementation process controlling test case of test process control module, control plane test module specifically performs test process, because the message under OpenFlow agreement has specific structure and field composition, therefore control plane test module is after resolving the response message that returns of equipment under test, whether the message that test result determination module can send according to the analysis result determination equipment under test of response message meets the requirement of OpenFlow agreement, and then just can determine whether equipment under test has OpenFlow protocol conformance.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 1 provided by the invention;
Fig. 2 is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 2 provided by the invention;
Fig. 3 is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 3 provided by the invention;
Fig. 4 is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 4 provided by the invention;
Fig. 5 is the flow chart of OpenFlow protocol conformance test method embodiment 1 provided by the invention.
Embodiment
Embodiments provide a kind of OpenFlow protocol conformance test method and equipment, according to the OpenFlow protocol function point design test example of required test before test, realize test case by test process control module, the test for this function point can be completed.Realize the test whether different vendor's equipment being possessed to OpenFlow protocol conformance.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
The OpenFlow protocol testing method that the embodiment of the present invention provides and equipment are applicable to the OpenFlow agreement of various version, for convenience of description, all illustrate for OpenFlow1.3 agreement in the embodiment of the present invention, the test philosophy of other release protocol, with reference to the description of each embodiment in the present invention, repeats no more here.
Shown in figure 1, be the structural representation of a kind of OpenFlow testing protocol consistency apparatus embodiments 1 provided by the invention, described equipment specifically can comprise test process control module 101, control plane test module 102 and test result determination module 103.
Now each several part major function and annexation are described below:
Before testing equipment under test, need according to tested function point design test example, after test case is determined, test process control module 101 is for controlling the whole test process for this test case.Main coordination calls other modules to complete test process, realizes test purpose.Showing as in testing equipment inside, send instruction to other modules, and process the message of disparate modules feedback, is the Central Control Module of uniformity test equipment, is also the global module in framework simultaneously.
After test starts, first to control testing equipment and set up with equipment under test and communicate.Specifically under the control of control module, set up control channel with equipment under test by control plane test module 102, after connection establishment module and equipment under test establish a communications link, the message template for described test case is provided according to the instruction of test process control module, for different test cases, type of message possibility different (all messages all meet OpenFlow protocol specification) communicated between testing equipment from equipment under test, the structure of message and field composition there are differences, so corresponding message template will be provided for concrete test case, then according to instruction and message template generation control plane (test) message of test process control module, this control plane message meets OpenFlow protocol specification.Control plane message is sent to equipment under test, when equipment under test makes response, receives equipment under test and feed back the first response message and the first response message is resolved.
According to the decision logic that analysis result and the test process control module of the first response message provide, according to packet parsing result, test result determination module can judge whether equipment under test meets OpenFlow protocol specification.
Give an example, testing equipment sends the message carrying " Hello " to equipment under test, and indicate equipment under test to return to carry the response message of identical content then, then, after control plane test module parses message, according to packet parsing result, result determination module judges the structure of response message and field form whether meet OpenFlow protocol specification.
In the present embodiment, the unified implementation process controlling test case of test process control module, control plane test module specifically performs test process, because the message under OpenFlow agreement has specific structure and field composition, therefore control plane test module is after resolving the response message that returns of equipment under test, whether the message that test result determination module can send according to the analysis result determination equipment under test of response message meets the requirement of OpenFlow agreement, and then just can determine whether equipment under test has OpenFlow protocol conformance.
On the basis of embodiment 1, shown in figure 2, it is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 2 provided by the invention.Wherein control plane test module 102 can comprise connection establishment module 201, OpenFlow protocol massages storehouse 202, OpenFlow protocol massages forwarding module 203, OpenFlow protocol resolution module 204 further.
Wherein, connection establishment module 201 for setting up control channel with equipment under test under the control of control module;
OpenFlow protocol massages storehouse 202, after establishing a communications link, provides the control plane message template for described test case according to the instruction of test process control module and generates control plane message for connection establishment module and equipment under test;
OpenFlow protocol massages forwarding module 203, for control plane message is sent to equipment under test, receives the first response message that equipment under test returns;
OpenFlow protocol resolution module 204, for resolving the first response message.
Connection establishment module 201 is mainly used in receiving equipment under test connection request and setting up with it OpenFlow1.3 control channel.Preferably, connection establishment module 201 can comprise monitoring submodule further, receive submodule and connexon module.
Wherein, monitor submodule to be mainly used in monitoring OpenFlow Protocol TCP port; Reception submodule is mainly used in the connection request that reception equipment under test is sent by described tcp port; The described connection request that connexon module sends for replying equipment under test, sets up control channel with equipment under test.
At tested equipment, testing equipment shows as general SDN controller.Mutual by with connection establishment module, itself and general SDN controller can be made to connect, and then establish control plane in whole test environment, equipment under test can start normal work.When setting up control channel failure with equipment under test, connection establishment module also needs instruction to set up the information feed back of control channel failure to test result determination module.
This module of connection establishment module, except above-mentioned effect, also needs the demand by test process control module, keeps or disconnects OpenFlow control channel.
OpenFlow protocol massages storehouse 202 defines an abundant protocol suite.For realizing multiple network function and detection, statistics, the demands such as control, define multiple specific protocol subset.Each subset is all made up of its distinctive structure and field.This module provides the template of all OpenFlow protocol subset structures, configures structure and the field of all kinds of OpenFlow protocol subset.According to the real OpenFlow protocol massages (test packet) of templated synthesis.
After control plane message is sent to equipment under test by OpenFlow protocol massages forwarding module 203, when testing equipment receives OpenFlow protocol massages (the first response message) that equipment under test sends, OpenFlow protocol resolution module 204 needs to resolve it, and test result judge module judges whether equipment under test behavior meets protocol specification.Specifically, it can identification protocol subset type, and reads the value of relevant field, judges whether there is mistake in protocol architecture.If do not have mistake, then equipment under test has OpenFlow protocol conformance on the function point of test, otherwise does not then have.
Above-described embodiment essentially describes the test process of control plane, the major function of factor data plane equipment under test is for press control plane demand forwarding data flow, therefore, for needing the situation of carrying out datum plane test, except structure control plane processing section, also need to build datum plane processing section to verify that equipment under test whether can forwarding data flow on request.
Further, the invention provides a kind of OpenFlow testing protocol consistency apparatus embodiments 2, shown in figure 3, is the structural representation of OpenFlow testing protocol consistency apparatus embodiments 3 provided by the invention.In the present embodiment, described testing equipment can also comprise datum plane part of detecting, comprises datum plane message store 301, data message forwarding module 302 and data message parsing module 303.
Datum plane message store 301 is for providing the datum plane message template corresponding to described test case according to the instruction of test process control module and generating datum plane message;
Data message forwarding module 302, for datum plane message is sent to equipment under test, receives the second response message that equipment under test returns; SDN datum plane equipment needs to forward legacy network data message.Similar with OpenFlow protocol massages library facility, datum plane message store provides various required conventional network protocols, the protocol massages templates such as such as TCP, UDP, IPv4, IPv6, the whole fields in configuration protocol, and then generate the datum plane message needed for test.
Data message parsing module 303, for resolving the second response message, then carries out result judgement by test result determination module.Datum plane packet parsing module can be used for resolving the conventional network protocols message needed for test.The agreements such as such as TCP, UDP, IPv4, IPv6 can resolve classification and each field contents by this module.
The present embodiment is except can bringing the beneficial effect of embodiment 1, and further, the present embodiment can also complete the testing protocol consistency of datum plane.
For the ease of tester after the execution of each test case terminates, check detailed test process, and then find and solve Problems existing in equipment under test.On the basis of above any embodiment, shown in figure 4, for the structural representation of OpenFlow testing protocol consistency apparatus embodiments 4 provided by the invention, testing equipment can also comprise test record module 401 further, for performing the instruction of test process control module, the test data that the whole test process recording described test case produces.
Test record module mainly provides the auxiliary support function of test process.Open record function when each test case starts to perform, and record the network traffics of all communication ports.When test case terminates, stop record, and the network traffics of record are preserved respectively by passage, transfer for tester and analyze.The log file that final generation network analysis software Wireshark can read.Except network traffics capture, this module also provides log writing function, places on record by the detailed status of testing equipment with the reciprocal process of equipment under test in the mode of log document.Every other module, when state updating, sends message all can to test process logging modle, so that the change of its recording status.
The present embodiment is except can completing the testing protocol consistency of control plane and datum plane, further record is carried out to the test data of test process, facilitate tester to check detailed test process, and then find and solve Problems existing in equipment under test.
In above-described embodiment, OpenFlow protocol massages forwarding module and data plane data packet forwarding module all can provide the interface function of testing equipment and physical network card.Packaged message is sent to equipment under test network interface by testing equipment network interface card port and also receives the message sent from equipment under test.
To sum up, test process control module and test process logging modle have participated in each stage of test process, and all there is certain correspondence with other all modules in equipment, test procedures module is responsible for control and the scheduling of other all modules, and test process logging modle needs the state information recording arbitrary module.Other modules then do not participate in whole stages of test process.
The division of described module, be that a kind of logic function divides, actual can have other dividing mode when realizing, and such as multiple module combines or can be integrated into another system, or some features can be ignored, or does not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or module or communication connection can be electrical, machinery or other form.
The described module illustrated as separating component can or may not be physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each module in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of modules exists, also can two or more module integrations in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
Accordingly, the present invention also provides OpenFlow protocol conformance test method embodiment, and shown in figure 5, be the flow chart of embodiment of the method 1, in the present embodiment, described method specifically can comprise the steps:
S501: after test case is determined, controls and performs the whole test process for this test case.
Before testing equipment under test, need, according to tested function point design test example, after test case is determined, control and perform the whole test process for this test case.
Specifically can comprise the steps S502-S506:
S502: set up control channel with equipment under test.
After test starts, first to set up with equipment under test and communicate.Be specially and set up control channel with equipment under test.
S503: after connecting with equipment under test, provides the message template for described test case and generates control plane message.
After establishing a communications link with equipment under test, message template for described test case is provided, for different test cases, type of message possibility different (all messages all meet OpenFlow protocol specification) communicated between testing equipment from equipment under test, the structure of message and field composition there are differences, so corresponding message template will be provided for concrete test case, then according to instruction and the message template generation control plane message of test process control module, this control plane message meets OpenFlow protocol specification.
S504: control plane message is sent to equipment under test, receives the first response message that equipment under test returns.
S505: the first response message is resolved.
S506: judge whether equipment under test meets OpenFlow protocol specification according to packet parsing result.
In the present embodiment, because the message under OpenFlow agreement has specific structure and field composition, therefore equipment is after resolving the response message that returns of equipment under test, whether the message that can send according to the analysis result determination equipment under test of response message meets the requirement of OpenFlow agreement, and then just can determine whether equipment under test has OpenFlow protocol conformance.
On the basis of embodiment of the method 1, when described test case relates to data-plane communication, described method can comprise further:
S501: the datum plane message template corresponding to described test case is provided and generates datum plane message;
SDN datum plane equipment needs to forward legacy network data message.Datum plane message template comprises template corresponding to various required conventional network protocols, the agreements such as such as TCP, UDP, IPv4, IPv6, the whole fields in configuration protocol, and then generates the datum plane message needed for test.
S502: datum plane message is sent to equipment under test;
S503: receive the second response message that equipment under test returns;
S504: resolve the second response message so that carry out consistency checking.
For the ease of tester after the execution of each test case terminates, check detailed test process, and then find and solve Problems existing in equipment under test.On the basis of above either method embodiment, this method of testing can also comprise further: the test data that the whole test process recording described test case produces.
Preferably, open record function when each test case starts to perform, and record the network traffics of all communication ports.When test case terminates, stop record, and the network traffics of record are preserved respectively by passage, transfer for tester and analyze.The log file that final generation network analysis software Wireshark can read.Except network traffics capture, this module also provides log writing function, places on record by the detailed status of testing equipment with the reciprocal process of equipment under test in the mode of log document.
In order to the technical scheme provided the embodiment of the present invention has more deep understanding, illustrate below.
Test case title: add same stream list item
Agreement foundation: Flow_add message is the SDN controller specified in OpenFlow1.3 agreement is the type of message that Forwarding plane equipment (equipment under test) adds stream list item.Within the message, controller can configure the attributes such as the matching field of new incremental list item, action, priority, time-out are aging, cookie.Flow_add message can arrange multiple flag bit simultaneously, if the OFPFF_CHECK_OVERLAP flag bit in enable Flow_add message, in this message, the matching field of new incremental list item is identical with a certain bar stream list item existed in Forwarding plane equipment with priority simultaneously, then former existence stream list item must be removed, and installs new stream list item.
Test purpose: test in Flow_add message after enable OFPFF_CHECK_OVERLAP flag bit, can data retransmission plane correctly identify and flag bit compulsory exercise as described above.
Test process comprises:
S1: test process control module assigns the instruction that connects to connection establishment module.
S2: connection establishment module is set up and is connected with the OpenFlow control channel of equipment under test;
S3: test process control module assigns beginning recording instruction to test process logging modle.
S4: test process logging modle starts to monitor OpenFlow control channel and data channel data flow, and captures flow information.
S5: connection establishment module feedback OpenFlow control channel sets up result, as being successfully established, enters S6, and failed then feedback result is to test result determination module.
S6: test process control module requires that OpenFlow1.3 protocol massages storehouse provides Flow_add source template, and configures the attributes such as its matching field, priority, action, cookie, generates Flow_add message, such as configuration flow list item matching field:
in_port=1;
tcp_src=192.168.100.100;
Priority=100 (priority);
Action=outputtoPort2 (action);
cookie=1000。
S7: by the Flow_add Message Transmission of generation to OpenFlow1.3 protocol massages forwarding module.
The Flow_add message received is sent to equipment under test by physical interface by S8:OpenFlow1.3 protocol massages forwarding module.
S9:OpenFlow1.3 protocol massages forwarding module monitors OpenFlow control channel 3 second, and checking equipment under test returns with or without error message.If do not have error message to return, then enter S10, if any, then error message is fed back to OpenFlow1.3 protocol resolution module.
S10: for checking stream list item is properly installed really, test process control module requires that datum plane message store generates the tcp protocol massages of tcp_src=192.168.100.100, and passes to datum plane packet forwarding module.
S11: the tcp protocol massages of the tcp_src=192.168.100.100 received sends from datum plane port Port1 by datum plane packet forwarding module.
S12: datum plane packet forwarding module monitored data plane port Port2, the message received is fed back to datum plane parsing module to confirm whether the tcp message sent forwards by stream list item regulation.In this way, then enter S11, or not then do not feed back to test result determination module.
S13: test process control module requires that OpenFlow1.3 protocol massages storehouse provides Flow_add source template, and configures the attributes such as its matching field, priority, action, cookie.Generate Flow_add message, configuration flow list item matching field:
in_port=1;
tcp_src=192.168.100.100;
priority=100;
action=outputtoPort2;
cookie=1001;
OFPFF_CHECK_OVERLAP flag bit is enable.
By the Message Transmission of generation to OpenFlow1.3 protocol massages forwarding module.
The message information received is sent to equipment under test by physical interface by S14:OpenFlow1.3 protocol massages forwarding module.
S15:OpenFlow1.3 protocol massages forwarding module monitors OpenFlow control channel 3 second, and checking equipment under test returns with or without error message.If no, then enter S16, if any, by message feedback to OpenFlow1.3 protocol resolution module.
S16: for checking stream list item is properly installed really, test process control module requires that datum plane message store generates the tcp protocol massages of tcp_src=192.168.100.100, and passes to datum plane packet forwarding module.
S17: the message received sends from datum plane port Port1 by datum plane packet forwarding module.
S18: datum plane packet forwarding module monitored data plane port Port2, the message received is fed back to datum plane parsing module to confirm whether the tcp message sent forwards by stream list item regulation.In this way, then enter next step, or not then do not feed back to test result determination module.
S19: test process control module requires that protocol massages storehouse generates Flow_stat_request message.
The message information received is sent to equipment under test by physical interface by S20:OpenFlow1.3 protocol massages forwarding module.
S21:OpenFlow1.3 protocol massages forwarding module monitors OpenFlow control channel 5 second, wait-receiving mode Flow_stat_reply message;
S22:OpenFlow1.3 protocol massages forwarding module by message feedback to OpenFlow1.3 protocol massages parsing module.Parsing module confirms whether only comprise stream list item, simultaneously this stream list item cookie=1001 in this message.Analysis result feeds back to test result determination module.
S23: test process control module requires that test result determination module provides final result.
S24: test process control module requires that test process logging modle stops record.
S25: test process control module requires that connection establishment module disconnects the connection with equipment under test, and test terminates.
Above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1.OpenFlow testing protocol consistency equipment, is characterized in that, described equipment comprises:
Test process control module, after determining, controls the whole test process for this test case for test case;
Control plane test module, under the control of test process control module, completes described test case; Comprise and set up control channel with equipment under test; After connecting with equipment under test, the control plane message template for described test case is provided and generates the control plane message meeting OpenFlow agreement; Control plane message is sent to equipment under test, receives the first response message that equipment under test returns; First response message is resolved;
According to packet parsing result, test result determination module, for judging whether equipment under test meets OpenFlow protocol specification.
2. testing equipment according to claim 1, is characterized in that, control plane test module comprises:
Connection establishment module, for setting up control channel with equipment under test under the control of control module;
OpenFlow protocol massages storehouse, after establishing a communications link, provides the control plane message template for described test case according to the instruction of test process control module and generates control plane message for connection establishment module and equipment under test;
OpenFlow protocol massages forwarding module, for control plane message is sent to equipment under test, receives the first response message that equipment under test returns;
OpenFlow protocol resolution module, for resolving the first response message.
3. testing equipment according to claim 2, is characterized in that, described connection establishment module comprises:
Monitor submodule, for monitoring OpenFlow Protocol TCP port;
Receive submodule, for receiving the connection request that equipment under test is sent by described tcp port;
Connexon module, for replying the described connection request that equipment under test sends, sets up control channel with equipment under test.
4. testing equipment according to claim 1, is characterized in that, described connection establishment module also for, when setting up control channel failure with equipment under test, will instruction set up control channel failure information feed back to test result determination module.
5. testing equipment according to claim 1, is characterized in that, when described test case relates to data-plane communication, then described equipment also comprises:
Datum plane message store, for providing the datum plane message template corresponding to described test case according to the instruction of test process control module and generating datum plane message;
Data message forwarding module, for datum plane message is sent to equipment under test, receives the second response message that equipment under test returns;
Data message parsing module, for resolving the second response message.
6. will go the testing equipment described in any one of 1-5 according to right, it is characterized in that, described equipment also comprises:
Test process logging modle, for performing the instruction of test process control module, the test data that the whole test process recording described test case produces.
7. testing equipment according to claim 6, is characterized in that, described test data comprises:
The network traffic recording file of test process, and the journal file that testing equipment and equipment under test communication interaction are formed.
8. an OpenFlow protocol conformance test method, is characterized in that, described method comprises:
After test case is determined, control and perform the whole test process for this test case;
Comprise: set up control channel with equipment under test;
After connecting with equipment under test, the message template for described test case is provided and generates control plane message;
Control plane message is sent to equipment under test, receives the first response message that equipment under test returns;
First response message is resolved;
Judge whether equipment under test meets OpenFlow protocol specification according to packet parsing result.
9. method according to claim 8, is characterized in that, described method also comprises:
When described test case relates to data-plane communication, the datum plane message template corresponding to described test case is provided and generates datum plane message;
Datum plane message is sent to equipment under test;
Receive the second response message that equipment under test returns;
Resolve the second response message so that carry out consistency checking.
10. method according to claim 8 or claim 9, it is characterized in that, described method also comprises:
The test data that the whole test process recording described test case produces.
CN201510810310.4A 2015-11-20 2015-11-20 OpenFlow protocol consistency testing method and equipment Pending CN105515890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510810310.4A CN105515890A (en) 2015-11-20 2015-11-20 OpenFlow protocol consistency testing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510810310.4A CN105515890A (en) 2015-11-20 2015-11-20 OpenFlow protocol consistency testing method and equipment

Publications (1)

Publication Number Publication Date
CN105515890A true CN105515890A (en) 2016-04-20

Family

ID=55723549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510810310.4A Pending CN105515890A (en) 2015-11-20 2015-11-20 OpenFlow protocol consistency testing method and equipment

Country Status (1)

Country Link
CN (1) CN105515890A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302027A (en) * 2016-08-29 2017-01-04 北京天地互连信息技术有限公司 A kind of SDN controller performance tester and method of testing
CN108737212A (en) * 2018-05-18 2018-11-02 中国人民解放军61062部队科技装备处 A kind of transport protocol accordance detection device, system and method
CN109460009A (en) * 2018-12-17 2019-03-12 国家计算机网络与信息安全管理中心 A kind of industrial control system reliability test system and test method
KR20200083214A (en) * 2018-12-28 2020-07-08 한국과학기술원 Dynamic security analysis method for control plane and system therefore
CN113163418A (en) * 2021-02-19 2021-07-23 广东电网有限责任公司广州供电局 Standardized test management system and test method for metering automation equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378250A (en) * 2013-08-13 2015-02-25 中兴通讯股份有限公司 Data link detection method, device and system, controller and gateways
CN104579837A (en) * 2015-01-05 2015-04-29 北京邮电大学 Method and system for performing conformance testing on OpenFlow protocols
CN104734920A (en) * 2015-03-27 2015-06-24 盛科网络(苏州)有限公司 Method and device for testing stability of openflow interchanger

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378250A (en) * 2013-08-13 2015-02-25 中兴通讯股份有限公司 Data link detection method, device and system, controller and gateways
CN104579837A (en) * 2015-01-05 2015-04-29 北京邮电大学 Method and system for performing conformance testing on OpenFlow protocols
CN104734920A (en) * 2015-03-27 2015-06-24 盛科网络(苏州)有限公司 Method and device for testing stability of openflow interchanger

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杜泓庆: "基于TTCN_3的OpenFlow协议一致性测试系统的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
杜泓庆等: "基于TTCN-3的CoAP一致性测试", 《通信学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302027A (en) * 2016-08-29 2017-01-04 北京天地互连信息技术有限公司 A kind of SDN controller performance tester and method of testing
CN108737212A (en) * 2018-05-18 2018-11-02 中国人民解放军61062部队科技装备处 A kind of transport protocol accordance detection device, system and method
CN109460009A (en) * 2018-12-17 2019-03-12 国家计算机网络与信息安全管理中心 A kind of industrial control system reliability test system and test method
KR20200083214A (en) * 2018-12-28 2020-07-08 한국과학기술원 Dynamic security analysis method for control plane and system therefore
KR102215706B1 (en) 2018-12-28 2021-02-16 한국과학기술원 Dynamic security analysis method for control plane and system therefore
CN113163418A (en) * 2021-02-19 2021-07-23 广东电网有限责任公司广州供电局 Standardized test management system and test method for metering automation equipment

Similar Documents

Publication Publication Date Title
CN105515890A (en) OpenFlow protocol consistency testing method and equipment
US7100091B2 (en) Method and system for testing networks
WO2020151483A1 (en) Stress testing system for internet-of-things platform, method, device, and server
CN104683797A (en) Intelligent television production test method and system
CN102546266B (en) Method and platform for diagnosing network failures
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
US20190245755A1 (en) Network testing
CN110674027A (en) SDN data plane software consistency test system and method oriented to P4 programming language
CN105553885A (en) FC switch priority testing method
US7823005B2 (en) Communications system
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN110532162A (en) A kind of fuzz testing script and testing engine based on protocol state machine
CN107124326B (en) Automatic testing method and system
US7478303B2 (en) System and method for testing nodes in a network
CN116962184A (en) Method, system, terminal and medium for automatically deploying RoCE cluster
CN115314565B (en) Protocol configuration method, protocol conversion method and building control system
JP3551481B2 (en) Router device test method and router test device
CN116056120A (en) Operation and maintenance operation method, system and network equipment
CN114443488A (en) ARINC664 network configuration testing framework construction method
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN113872826A (en) Network card port stability testing method, system, terminal and storage medium
CN107453944B (en) Method and system for determining optimal test connection number of network throughput test
CN109257264B (en) System and method for opening Ethernet virtual private network service
US20240129219A1 (en) Methods, systems, and computer readable media for using a programmable processing pipeline device to execute scalable connections per second (cps) generation test and an application replay sequence test
WO2022029917A1 (en) Testing system, testing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication