CN108156045A - A kind of software definition grouping conveying network SPTN tests system and method - Google Patents

A kind of software definition grouping conveying network SPTN tests system and method Download PDF

Info

Publication number
CN108156045A
CN108156045A CN201611103940.9A CN201611103940A CN108156045A CN 108156045 A CN108156045 A CN 108156045A CN 201611103940 A CN201611103940 A CN 201611103940A CN 108156045 A CN108156045 A CN 108156045A
Authority
CN
China
Prior art keywords
interface
test
tested
message
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611103940.9A
Other languages
Chinese (zh)
Other versions
CN108156045B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611103940.9A priority Critical patent/CN108156045B/en
Publication of CN108156045A publication Critical patent/CN108156045A/en
Application granted granted Critical
Publication of CN108156045B publication Critical patent/CN108156045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application involves field of communication technology more particularly to a kind of SPTN test system and methods, to solve the problems, such as that test process existing for current southern, northbound interface test is cumbersome, test result validity is relatively low;SPTN tests system provided by the embodiments of the present application includes:Control module, northbound interface message engine, southbound interface message engine, southbound interface and northbound interface;Control module is used to receive the test instruction of user, sends northbound interface test instruction information to north orientation interface packets engine according to test instruction or sends southbound interface test instruction information to south orientation interface packets engine;Northbound interface message engine carries out message interaction by northbound interface and controller to be tested, realizes northbound interface test for the northbound interface test instruction information based on reception;Southbound interface message engine carries out message interaction by southbound interface and SPTN equipment to be tested, realizes southbound interface test for the southbound interface test instruction information based on reception.

Description

A kind of software definition grouping conveying network SPTN tests system and method
Technical field
This application involves field of communication technology more particularly to a kind of software definition grouping conveying network SPTN test system and Method.
Background technology
Now, each supplier produces software definition grouping conveying network (Software Packet Transport respectively Network, SPTN) equipment and corresponding controller, therefore, for purchaser, such as commmunication company, need respectively to set SPTN Standby and controller is tested.Wherein, the test carried out to SPTN equipment is also known as southbound interface test, and controller is carried out Test is also known as northbound interface test.
At present, purchaser needs to carry out southbound interface test respectively using different testing tools and northbound interface is tested, Test process is comparatively laborious.Moreover, either southbound interface test or northbound interface test, current testing tool is all inadequate It is objective.By taking south orientation interface testing as an example, since different south orientation testing tool testing standards may be different, a kind of survey is used Trial work has the function and performance for going the SPTN equipment for testing each supplier's production that can not effectively assess SPTN equipment.
As it can be seen that there is test process is cumbersome, test result is effective for current southbound interface test and northbound interface test The problem of property is relatively low.
Invention content
The embodiment of the present application provides a kind of SPTN tests system and method, to solve southbound interface test in the prior art There is the problem of test process is cumbersome, test result validity is relatively low with northbound interface test.
A kind of SPTN tests system provided by the embodiments of the present application, including control module, northbound interface message engine, south orientation Interface packets engine, southbound interface and northbound interface, wherein:
Control module for receiving the first of user the test instruction, instructs, to north orientation interface packets according to first test Engine sends northbound interface test instruction information, judges that northbound interface tests whether according to the result that the northbound interface of reception is tested Success;It is additionally operable to, receives the second test instruction of user, instructed according to second test, sent to south orientation interface packets engine Southbound interface test instruction information, judges that southbound interface tests whether success according to the result that the southbound interface of reception is tested;
Northbound interface message engine, for the northbound interface test instruction information based on reception, by northbound interface with treating Test controller carries out message interaction, and to realize that northbound interface is tested, and the result that northbound interface is tested is sent to control mould Block;
Southbound interface message engine, for the southbound interface test instruction information based on reception, by southbound interface with treating It tests SPTN equipment and carries out message interaction, to realize that southbound interface is tested, and the result that southbound interface is tested is sent to control Module.
Optionally, the information of instruction test content is included in northbound interface test instruction information, wherein in the test indicated Hold be it is following in it is one or more:
Interface automata;Functional test;Performance test.
Optionally, northbound interface message engine specifically includes:
Interface consistency module, for based on reception instruction interface automata information, by northbound interface to Controller transmission interface uniformity test message to be tested, and the message that the controller to be tested of reception is returned is sent to control Module, so that message and SPTN specifications, verification interface consistency that control module is returned according to the controller to be tested of reception are surveyed Whether examination succeeds;
Functional test module carries out the information of specified functional test for the instruction based on reception, is surveyed according to specified function Corresponding testing process is tried, message interaction is carried out by northbound interface and the controller to be tested, and by message interaction content Control module is sent to, so that control module is according to the message interaction content of reception, determines whether specified functional test succeeds;
Performance test module, for the information of the instruction performance test based on reception, by northbound interface to control to be tested Device processed sends the performance test message of specified quantity, and the message that the controller to be tested of reception is returned and measurement The message respectively returned it is corresponding return duration be sent to the control module, so that the control module is according to statistics The corresponding return duration of message that the message amount and each success that the controller to be tested successfully returns return, assessment The performance of controller to be tested.
Optionally, protocol stack letter based on when in southbound interface test instruction information comprising progress southbound interface test Breath, wherein, the protocol stack that southbound interface message engine is supported includes open flows OpenFlow protocol stacks and open flow management and matches Put OFConfig protocol stacks.
Optionally, southbound interface message engine specifically includes:
OpenFlow protocol modules, for the southbound interface test instruction information based on reception, by southbound interface to treating It tests SPTN equipment and sends OpenFlow test packets, and the message that SPTN equipment to be tested is returned is sent to control module;
OFConfig protocol modules, for the southbound interface test instruction information based on reception, by southbound interface to treating It tests SPTN equipment and sends OFConfig test packets, and the message that SPTN equipment to be tested is returned is sent to control module;
Control module is specifically used for:
The message of the SPTN equipment to be tested return of OpenFlow protocol modules transmission based on reception, OFConfig agreements The message and preset test result that the SPTN equipment to be tested that module is sent returns, verification southbound interface test are No success.
A kind of method that SPTN tests are carried out using above system provided by the embodiments of the present application, including:
Control module is drawn after the first test instruction of user is received, according to the first test instruction to north orientation interface packets It holds up and sends northbound interface test instruction information;Northbound interface test instruction information of the northbound interface message engine based on reception, leads to It crosses northbound interface and carries out message interaction with controller to be tested, to realize that northbound interface is tested, and the knot that northbound interface is tested Fruit is sent to control module;Control module judges that northbound interface is tested whether into according to the result that the northbound interface of reception is tested Work(;And/or
Control module is drawn after the second test instruction of user is received, according to the second test instruction to south orientation interface packets It holds up and sends southbound interface test instruction information;Southbound interface test instruction information of the southbound interface message engine based on reception, leads to It crosses southbound interface and carries out message interaction with SPTN equipment to be tested, to realize that southbound interface is tested, and southbound interface is tested As a result it is sent to control module;Control module judges that southbound interface is tested whether into according to the result that the southbound interface of reception is tested Work(.
Optionally, the information of instruction test content is included in northbound interface test instruction information, wherein in the test indicated Hold be it is following in it is one or more:
Interface automata;Functional test;Performance test.
Optionally, northbound interface message engine includes interface consistency module;Northbound interface message engine is based on reception Northbound interface test instruction information, message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is surveyed Examination, including:
The information of instruction interface automata of the interface consistency module based on reception, by northbound interface to be tested Controller transmission interface uniformity test message, and the message that the controller to be tested of reception is returned is sent to control module, The message and SPTN specifications returned so as to control module according to the controller to be tested of reception, whether verification interface automata Success.
Optionally, northbound interface message engine includes functional test module;North of the northbound interface message engine based on reception Information is indicated to interface testing, and message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is tested, Including:
Instruction of the functional test module based on reception carries out the information of specified functional test, is corresponded to according to specified functional test Testing process, message interaction is carried out, and message interaction content is sent to control by northbound interface and controller to be tested Module so that control module is according to the message interaction content of reception, determines whether specified functional test succeeds.
Optionally, northbound interface message engine includes performance test module;North of the northbound interface message engine based on reception Information is indicated to interface testing, and message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is tested, Including:
The information of instruction performance test of the performance test module based on reception, is sent out by northbound interface to controller to be tested Send the performance test message of specified quantity, and the message that the controller to be tested of reception is returned and respectively returning of measuring The corresponding duration that returns of message is sent to control module, so that control module is successfully returned according to the controller to be tested of statistics The corresponding return duration of message that the message amount and each success returned return assesses the performance of controller to be tested.
Optionally, protocol stack letter based on when in southbound interface test instruction information comprising progress southbound interface test Breath, wherein, the protocol stack that southbound interface message engine is supported includes OpenFlow protocol stacks and OFConfig protocol stacks.
Optionally, southbound interface message engine includes OpenFlow protocol modules and OFConfig protocol modules;South orientation connects Southbound interface test instruction information of the mouth message engine based on reception, passes through southbound interface and SPTN equipment to be tested carries out message Interaction, to realize that southbound interface is tested, including:
Southbound interface test instruction information of the OpenFlow protocol modules based on reception, by southbound interface to be tested SPTN equipment sends OpenFlow test packets, and the message that SPTN equipment to be tested is returned is sent to control module;And
Southbound interface test instruction information of the OFConfig protocol modules based on reception, by southbound interface to be tested SPTN equipment sends OFConfig test packets, and the message that SPTN equipment to be tested is returned is sent to control module;
Control module judges that southbound interface tests whether success according to the result that the southbound interface of reception is tested, including:
The message of the SPTN equipment to be tested return of OpenFlow protocol module transmission of the control module based on reception, The message and preset test result that the SPTN equipment to be tested that OFConfig protocol modules are sent returns, verification south Whether succeed to interface testing.
SPTN test systems in the embodiment of the present application, system include control module, northbound interface message engine, south orientation and connect Mouth message engine, southbound interface and northbound interface, wherein, the first test that control module is used to receive user instructs, and according to The first test instruction sends northbound interface test instruction information to north orientation interface packets engine, is surveyed according to the northbound interface of reception The result of examination judges that northbound interface tests whether success;It is additionally operable to receive the second test instruction of user, according to second test It instructs to south orientation interface packets engine and sends southbound interface test instruction information, sentenced according to the result that the southbound interface of reception is tested Disconnected southbound interface tests whether success;Northbound interface message engine leads to for the northbound interface test instruction information based on reception It crosses northbound interface and carries out message interaction with controller to be tested, to realize that northbound interface is tested;Southbound interface message engine is used for Southbound interface test instruction information based on reception, carries out message interaction, with reality by southbound interface and SPTN equipment to be tested Existing southbound interface test.In this way, the SPTN tests system in the embodiment of the present application is not only able to be carried out at the same time southbound interface test It tests, simplifies to the test process of SPTN equipment and controller with northbound interface, and southbound interface can be unified and north orientation connects The testing standard of mouth improves the validity of southbound interface and northbound interface test result.
Description of the drawings
Fig. 1 tests system schematic for SPTN provided by the embodiments of the present application;
Fig. 2 tests system schematic for another SPTN provided by the embodiments of the present application;
Fig. 3 is SPTN test methods flow chart provided by the embodiments of the present application.
Specific embodiment
SPTN test systems in the embodiment of the present application, system include control module, northbound interface message engine, south orientation and connect Mouth message engine, southbound interface and northbound interface, wherein, the first test that control module is used to receive user instructs, and according to The first test instruction sends northbound interface test instruction information to north orientation interface packets engine, is surveyed according to the northbound interface of reception The result of examination judges that northbound interface tests whether success;It is additionally operable to receive the second test instruction of user, according to second test It instructs to south orientation interface packets engine and sends southbound interface test instruction information, sentenced according to the result that the southbound interface of reception is tested Disconnected southbound interface tests whether success;Northbound interface message engine leads to for the northbound interface test instruction information based on reception It crosses northbound interface and carries out message interaction with controller to be tested, to realize that northbound interface is tested;Southbound interface message engine is used for Southbound interface test instruction information based on reception, carries out message interaction, with reality by southbound interface and SPTN equipment to be tested Existing southbound interface test.In this way, the SPTN tests system in the embodiment of the present application is not only able to be carried out at the same time southbound interface test It tests, simplifies to the test process of SPTN equipment and controller with northbound interface, and southbound interface can be unified and north orientation connects The testing standard of mouth improves the validity of southbound interface and northbound interface test result.
In specific implementation process, SPTN tests system can provide UI interfaces, and test user is selected by UI interfaces Carry out northbound interface test or southbound interface test.If user has selected northbound interface test, user by UI interfaces also A variety of test contents, such as interface automata, functional test, performance test can be selected, is determining that user has selected tool After the test content of body, control module can control and the test content according to testing process corresponding with the test content Corresponding test module carries out message interaction by northbound interface and controller to be tested, so as to complete northbound interface test;Such as Fruit user has selected southbound interface test, and control module can control OpenFlow agreement moulds according to preset testing process Block and OFConfig protocol modules carry out message interaction with survey SPTN equipment to be tested, so as to complete southbound interface test.
The embodiment of the present application is described in further detail with reference to the accompanying drawings of the specification.
Embodiment one
As shown in Figure 1, testing 10 schematic diagram of system for SPTN provided by the embodiments of the present application, SPTN tests system includes Control module 101, northbound interface message engine 102, southbound interface message engine 103, northbound interface 104,105 and of southbound interface I/O modules 106, wherein, control module receives the first test instruction of user by I/O modules and the second test instructs, and lead to Cross/O module output northbound interface and southbound interface test information.
Optionally, northbound interface message engine 102 and southbound interface message engine 103 are using Programmable Design, Ke Yishi The function of existing a variety of testing tools, scalability, flexibility are more preferable.
Control module 101 for receiving the first of user the test instruction, instructs, to northbound interface according to first test Message engine sends northbound interface test instruction information, and the result tested according to the northbound interface of reception judges that northbound interface is tested Whether succeed;It is additionally operable to receive the second test instruction of user, is sent out according to the second test instruction to south orientation interface packets engine Southbound interface test instruction information is sent, judges that southbound interface tests whether success according to the result that the southbound interface of reception is tested.
Northbound interface message engine 102, for based on reception northbound interface test instruction information, by northbound interface with Controller to be tested carries out message interaction, and to realize that northbound interface is tested, and the result that northbound interface is tested is sent to control Module.
Optionally, the information of instruction test content is included in northbound interface test instruction information, wherein in the test indicated Hold be it is following in it is one or more:Interface automata;Functional test;Performance test.
In specific implementation process, northbound interface message engine specifically includes interface consistency module, functional test module And performance test module.
Interface consistency module, for based on reception instruction interface automata information, by northbound interface to Controller transmission interface uniformity test message to be tested, and the message that the controller to be tested of reception is returned is sent to control Module, so that message and SPTN specifications, verification interface consistency that control module is returned according to the controller to be tested of reception are surveyed Whether examination succeeds.
Functional test module carries out the information of specified functional test for the instruction based on reception, is surveyed according to specified function Corresponding testing process is tried, message interaction is carried out by northbound interface and the controller to be tested, and by message interaction content Control module is sent to, so that control module is according to the message interaction content of reception, determines whether specified functional test succeeds.
It optionally, can be from the business demand of purchaser, by various work(in order to test the function of each controller It can test and be integrated in functional test module, after user's selection specifies function to test certain, you can in control module The corresponding testing process of function is specified to treat test controller according to this under control to be tested.
Performance test module, for the information of the instruction performance test based on reception, by northbound interface to control to be tested Device processed sends the performance test message of specified quantity, and by the message of the controller to be tested return of reception and measures each The corresponding duration that returns of the message of return is sent to control module, so that control module is according to the controller to be tested of statistics The corresponding return duration of message that the message amount and each success that success returns return assesses the property of controller to be tested Energy.
Optionally, the multiple performance of test controller is treated, performance test module can divide under the control of control module Not Chan Sheng test packet corresponding with various performances, and can to controller to be tested send specified quantity the test report Text, and then measure the return duration that each message that controller to be tested returns is answered, later, each report that controller to be tested is returned The corresponding duration that returns of literary and each message is sent to control module, so that control module can be according to the controller to be tested of statistics The corresponding return duration of message that the message amount and each success that success returns return, assesses controller to be tested Performance.
At present, the supplier of Production Controller is more, controller function is also more, and northbound interface testing tool compares It is less, and since the business that each north orientation testing tool of the prior art considers in design is not comprehensive, testing standard also may be used Can be different, so test request of the purchaser to controller can not be met.And the northbound interface in the embodiment of the present application It tests from the business demand of purchaser, can not only fully consider testing requirement of the purchaser to controller, and can be with The unified testing standard to controller.
Southbound interface message engine 103, for based on reception southbound interface test instruction information, by southbound interface with SPTN equipment to be tested carries out message interaction, and to realize that southbound interface is tested, and the result that southbound interface is tested is sent to control Molding block.
Optionally, protocol stack letter based on when in southbound interface test instruction information comprising progress southbound interface test Breath, wherein, the protocol stack that southbound interface message engine is supported includes OpenFlow protocol stacks and open flow management and configuration (OpenFlow Configuration and Management, OF-CONFIG) protocol stack.
In specific implementation process, southbound interface message engine specifically includes OpenFlow protocol modules and OFConfig associations Discuss module.Wherein, OpenFlow protocol modules for based on reception southbound interface test instruction information, by southbound interface to SPTN equipment to be tested sends OpenFlow test packets, and the message that SPTN equipment to be tested is returned is sent to control mould Block;OFConfig protocol modules are for the southbound interface test instruction information based on reception, by southbound interface to be tested SPTN equipment sends OFConfig test packets, and the message that SPTN equipment to be tested is returned is sent to control module.
Further, the SPTN to be tested that control module is sent specifically for the OpenFlow protocol modules based on reception is set The message and preset survey that the SPTN equipment to be tested that the standby message returned, OFConfig protocol modules are sent returns Test result, verification southbound interface test whether success.
At present, southbound interface is tested, existing southbound interface testing tool is carried out based on OpenFlow protocol stacks , some better simply business function tests can only be carried out to SPTN equipment, some more complicated business functions can not be completed Test, for example business function cannot be protected to test the band of SPTN equipment.And the southbound interface in the embodiment of the present application is surveyed Examination not only supports OpenFlow protocol stacks, and supports OFConfig protocol stacks, in this way, can be carried out to SPTN equipment more complete The test in face ensures that SPTN equipment meets the business needs of purchaser.
SPTN test systems in the embodiment of the present application, system include control module, northbound interface message engine, south orientation and connect Mouth message engine, southbound interface and northbound interface, wherein, the first test that control module is used to receive user instructs, and according to The first test instruction sends northbound interface test instruction information to north orientation interface packets engine, is surveyed according to the northbound interface of reception The result of examination judges that northbound interface tests whether success;It is additionally operable to, the second test instruction of user is received, according to second test Instruction sends southbound interface test instruction information, the result tested according to the southbound interface of reception to south orientation interface packets engine Judge that southbound interface tests whether success;Northbound interface message engine indicates information for the northbound interface test based on reception, Message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is tested;Southbound interface message engine is used In the southbound interface test instruction information based on reception, message interaction is carried out by southbound interface and SPTN equipment to be tested, with Realize southbound interface test.In this way, the SPTN tests system in the embodiment of the present application is not only able to be carried out at the same time southbound interface survey Examination and northbound interface test, simplify the test process to SPTN equipment and controller, and can unify southbound interface and north orientation The testing standard of interface improves the validity of southbound interface and northbound interface test result.
Embodiment two
As shown in Fig. 2, test 20 schematic diagram of system, SPTN test systems for another SPTN provided by the embodiments of the present application Including control module 201, northbound interface message engine 202, southbound interface message engine 203, northbound interface 204, southbound interface 205 and I/O modules 206.
In specific implementation process, control module by I/O modules receive user first test instruct, according to this first Test instruction sends northbound interface test instruction information to north orientation interface packets engine, and northbound interface message engine is receiving north After interface testing indicates information, message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is surveyed Examination, and northbound interface test result is sent to control module, judge that northbound interface tests whether success by control module, and then By control module control I/O module output northbound interface test information;Control module can also receive user's by I/O modules Second test instruction sends southbound interface test instruction information, south according to the second test instruction to south orientation interface packets engine To interface packets engine after southbound interface test instruction information is received, carried out by southbound interface and SPTN equipment to be tested Message interaction to realize that southbound interface is tested, and southbound interface test result is sent to control module, is judged by control module Southbound interface tests whether success, and then by control module control I/O module output southbound interface test information.
Optionally, the information of instruction test content is included in northbound interface test instruction information, test content can be to connect It is one or more in mouth uniformity test, functional test and performance test.
Optionally, northbound interface message engine specifically includes interface consistency module, functional test module and performance test Module.
The test process of northbound interface is exemplified below.
Test content one:Interface automata.
1) interface consistency module receives the instruction that control module is sent and carries out interface automata information, passes through north orientation Interface meets the xml messages of SPTN specifications to controller to be tested transmission.
2) interface consistency module receives the message that controller to be tested returns, and the message is sent to control module.
3) message and the consistency of SPTN specifications that control module controller more to be tested returns, then such as consistent, interface Uniformity test success;Otherwise, interface automata fails.
Test content two:Functional test.
1) functional test module receives the information that the instruction that control module is sent carries out specified functional test, according to specified work( Corresponding testing process can be tested, sends the xml messages of specified functional test needs to controller to be tested by northbound interface.
2) functional test module receives the message that controller to be tested returns, according still further to the pre-set test of control module Flow sends out the subsequent packet needed for specified functional test flow, and until specified functional test completion, message interaction content is sent out Give control module.
3) control module is according to message interaction content and preset test result, verify specified functional test whether into Work(.
Below for creating Ethernet service function, the above process is illustrated.
A) functional test module receives the information that the instruction that control module is sent create Ethernet service test, passes through Northbound interface sends query message to controller to be tested.
B) functional test module receives network control domain (the Network Control that controller to be tested is sent Domain, NCD) Universally Unique Identifier (Universally Unique Identifier, UUID), network element (Network Element, NE) UUID, logic terminal (Logic Terminal Point, LTP) UUID, it is then advance according still further to control module The testing process of setting sends the message for obtaining routing to controller to be tested, receives the routing letter that controller to be tested returns Breath, then the message for creating tunnel is sent to controller to be tested, if controller to be tested, which returns, creates the successful message in tunnel, then The message for creating Ethernet Private Line business is sent to controller to be tested, receives the Ethernet service wound that controller to be tested returns The information of work(/ failure is built up, and sends that information to control module.
C) control module determines whether Ethernet service establishment succeeds according to the information for creating successfully/failure received.
Test content three:Performance test.
1) performance test module receives the information that is tested for the property of instruction that control module is sent, by northbound interface to Controller to be tested sends specified quantity, such as 1024,2048,4096, meets the xml messages of SPTN specifications.Wherein, property High performance on-site programmable gate array (Field-Programmable Gate Array, FPGA) may be used in energy test module To realize.
2) performance test module receives the message that controller to be tested returns, and measures the return duration of every message, and will These information are sent to control module.
3) report that the message amount and each success that control module is successfully returned according to the controller to be tested of statistics return The corresponding return duration of text assesses the performance of controller to be tested;
Optionally, protocol stack letter based on when in southbound interface test instruction information comprising progress southbound interface test Breath, the protocol stack that southbound interface message engine is supported include OpenFlow protocol stacks and OFConfig protocol stacks.
Optionally, southbound interface message engine specifically includes OpenFlow protocol modules and OFConfig protocol modules.
The test process of southbound interface is exemplified below.
1) OpenFlow protocol modules receive the southbound interface test instruction information that control module is sent, and pass through southbound interface Meet the openflow messages of SPTN specifications to SPTN equipment to be tested transmission, and the SPTN equipment to be tested of reception is returned Message is sent to control module.
2) OFConfig protocol modules receive the southbound interface test instruction information that control module is sent, and pass through southbound interface Meet the ofconfig messages of SPTN specifications to SPTN equipment to be tested transmission, the ofconfig messages in openflow id, It is consistent with above-mentioned openflow messages in the parameters such as mep id, is later sent to the message that SPTN equipment to be tested returns Control module.
Message that 3) the SPTN equipment to be tested that OpenFlow protocol module of the control module based on reception is sent returns, The message and preset test result that the SPTN equipment to be tested that OFConfig protocol modules are sent returns, verification south Whether succeed to interface testing.
SPTN test systems in the embodiment of the present application, system include control module, northbound interface message engine, south orientation and connect Mouth message engine, southbound interface and northbound interface, wherein, the first test that control module is used to receive user instructs, and according to The first test instruction sends northbound interface test instruction information to north orientation interface packets engine, is surveyed according to the northbound interface of reception The result of examination judges that northbound interface tests whether success;It is additionally operable to, the second test instruction of user is received, according to second test Instruction sends southbound interface test instruction information, the result tested according to the southbound interface of reception to south orientation interface packets engine Judge that southbound interface tests whether success;Northbound interface message engine indicates information for the northbound interface test based on reception, Message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is tested;Southbound interface message engine is used In the southbound interface test instruction information based on reception, message interaction is carried out by southbound interface and SPTN equipment to be tested, with Realize southbound interface test.In this way, the SPTN tests system in the embodiment of the present application is not only able to be carried out at the same time southbound interface survey Examination and northbound interface test, simplify the test process to SPTN equipment and controller, and can unify southbound interface and north orientation The testing standard of interface improves the validity of southbound interface and northbound interface test result.
Embodiment three
Based on same inventive concept, a kind of SPTN corresponding with SPTN tests system is additionally provided in the embodiment of the present application and is surveyed Method for testing, since the principle that this method solves the problems, such as is similar to the embodiment of the present application SPTN tests system, the reality of this method The implementation for the system of may refer to is applied, overlaps will not be repeated.
As shown in figure 3, for SPTN test methods flow chart provided by the embodiments of the present application, including:
S301a:Control module is instructed according to first test to northbound interface after the first test instruction of user is received Message engine sends northbound interface test instruction information.
Optionally, the information of instruction test content is included in northbound interface test instruction information, wherein in the test indicated Hold for any one or more in interface automata, functional test and performance test.
S302a:Northbound interface test instruction information of the northbound interface message engine based on reception, by northbound interface with treating Test controller carries out message interaction, and to realize that northbound interface is tested, and the result that northbound interface is tested is sent to control mould Block.
Optionally, northbound interface message engine includes interface consistency module, functional test module and performance test module.
In specific implementation process, the information of instruction interface automata of the interface consistency module based on reception is led to Northbound interface is crossed to controller transmission interface uniformity test message to be tested, and the report that the controller to be tested of reception is returned Text is sent to control module, the message and SPTN specifications returned so as to control module according to the controller to be tested of reception, verification Whether interface automata succeeds;Instruction of the functional test module based on reception carries out the information of specified functional test, according to The corresponding testing process of specified functional test carries out message interaction, and will report by northbound interface and the controller to be tested Literary interaction content is sent to control module, so that control module is according to the message interaction content of reception, determines specified function Test whether success;The information of instruction performance test of the performance test module based on reception, by northbound interface to control to be tested Device processed sends the performance test message of specified quantity, and by the message of the controller to be tested return of reception and measures each The corresponding duration that returns of the message of return is sent to control module, so that control module is according to the controller to be tested of statistics The corresponding return duration of message that the message amount and each success that success returns return assesses the property of controller to be tested Energy.
S303a:Control module judges that northbound interface tests whether success according to the result that the northbound interface of reception is tested.
S301b:Control module is instructed according to second test to southbound interface after the second test instruction of user is received Message engine sends southbound interface test instruction information.
Optionally, protocol stack letter based on when in southbound interface test instruction information comprising progress southbound interface test Breath, wherein, the protocol stack that southbound interface message engine is supported includes OpenFlow protocol stacks and OFConfig protocol stacks.
S302b:Southbound interface test instruction information of the southbound interface message engine based on reception, by southbound interface with treating It tests SPTN equipment and carries out message interaction, to realize that southbound interface is tested, and the result that southbound interface is tested is sent to control Module.
Optionally, southbound interface message engine includes OpenFlow protocol modules and OFConfig protocol modules.
In specific implementation process, southbound interface test instruction information of the OpenFlow protocol modules based on reception passes through Southbound interface sends OpenFlow test packets to SPTN equipment to be tested, and the message that SPTN equipment to be tested is returned is sent To control module;And OFConfig protocol modules based on reception southbound interface test instruction information, by southbound interface to SPTN equipment to be tested sends OFConfig test packets, and the message that SPTN equipment to be tested is returned is sent to control mould Block.
S303b:Control module judges that southbound interface tests whether success according to the result that the southbound interface of reception is tested.
Optionally, the report that the SPTN equipment to be tested that OpenFlow protocol module of the control module based on reception is sent returns The message and preset test result that the SPTN equipment to be tested that text, OFConfig protocol modules are sent returns, verification Southbound interface tests whether success.
In specific implementation process, the scheme of above-mentioned S301a~S303a and S301b~S303b can be performed separately, It can perform, not limit herein together.
In the embodiment of the present application, control module receive user first test instruction, and according to this first test instruction to Northbound interface message engine sends northbound interface test instruction information, and northbound interface of the northbound interface message engine based on reception is surveyed Examination instruction information, message interaction is carried out by northbound interface and controller to be tested, to realize that northbound interface is tested, and by north orientation The result of interface testing is sent to control module, and control module judges northbound interface according to the result that the northbound interface of reception is tested Test whether success;And/or control module is after the second test instruction of user is received, it is to the south according to the second test instruction Southbound interface test instruction information, southbound interface test of the southbound interface message engine based on reception are sent to interface packets engine It indicates information, message interaction is carried out by southbound interface and SPTN equipment to be tested, to realize that southbound interface is tested, and by south orientation The result of interface testing is sent to control module;Control module judges southbound interface according to the result that the southbound interface of reception is tested Test whether success.In this way, the SPTN test methods in the embodiment of the present application be not only able to be carried out at the same time southbound interface test and Northbound interface is tested, and simplifies the test process to SPTN equipment and controller, and can unify southbound interface and northbound interface Testing standard, improve the validity of southbound interface and northbound interface test result.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to according to the method, apparatus (system) of the embodiment of the present application and the flow of computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out the application essence of the various modification and variations without departing from the application God and range.In this way, if these modifications and variations of the application belong to the range of the application claim and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (12)

1. a kind of software definition grouping conveying network SPTN tests system, which is characterized in that the system includes control module, north orientation Interface packets engine, southbound interface message engine, southbound interface and northbound interface, wherein:
The control module for receiving the first of user the test instruction, instructs, to the northbound interface according to first test Message engine sends northbound interface test instruction information, and the result tested according to the northbound interface of reception judges that northbound interface is tested Whether succeed;It is additionally operable to, receives the second test instruction of user, instructed according to second test, to the southbound interface message Engine sends southbound interface test instruction information, judges that southbound interface tests whether according to the result that the southbound interface of reception is tested Success;
The northbound interface message engine for the northbound interface test instruction information based on reception, passes through the north orientation Interface carries out message interaction with controller to be tested, to realize that northbound interface is tested, and the result of northbound interface test is sent To the control module;
The southbound interface message engine for the southbound interface test instruction information based on reception, passes through the south orientation Interface carries out message interaction with SPTN equipment to be tested, to realize that southbound interface is tested, and the result of southbound interface test is sent out Give the control module.
2. the system as claimed in claim 1, which is characterized in that include instruction test in the northbound interface test instruction information The information of content, wherein the test content indicated is one or more in following:
Interface automata;Functional test;Performance test.
3. system as claimed in claim 2, which is characterized in that the northbound interface message engine specifically includes:
Interface consistency module, for based on reception instruction interface automata information, by the northbound interface to The controller transmission interface uniformity test message to be tested, and the message that the controller to be tested of reception is returned is sent out The control module is given, so that message and SPTN that the control module is returned according to the controller to be tested of reception are advised Whether model, verification interface automata succeed;
Functional test module carries out the information of specified functional test for the instruction based on reception, is surveyed according to the specified function Corresponding testing process is tried, message interaction is carried out by the northbound interface and the controller to be tested, and by message interaction Content is sent to the control module, so that the control module is according to the message interaction content of reception, determines the finger Determine whether functional test succeeds;
Performance test module, for the information of the instruction performance test based on reception, by the northbound interface to described to be measured Try the performance test message that controller sends specified quantity, and message that the controller to be tested of reception is returned and The corresponding duration that returns of the message respectively returned measured is sent to the control module, so that the control module is according to system When the message amount that successfully returns of the controller to be tested of meter and the corresponding return of the message of each successfully return It is long, assess the performance of the controller to be tested.
4. the system as claimed in claim 1, which is characterized in that include progress south orientation in the southbound interface test instruction information Protocol stack information based on during interface testing, wherein, the protocol stack that the southbound interface message engine is supported includes open flows OpenFlow protocol stacks and open flow management and configuration OFConfig protocol stacks.
5. system as claimed in claim 4, which is characterized in that the southbound interface message engine specifically includes:
OpenFlow protocol modules for the southbound interface test instruction information based on reception, pass through the southbound interface OpenFlow test packets are sent, and the message that the SPTN equipment to be tested is returned is sent to institute to SPTN equipment to be tested State control module;
OFConfig protocol modules for the southbound interface test instruction information based on reception, pass through the southbound interface OFConfig test packets are sent, and the message that the SPTN equipment to be tested is returned is sent to institute to SPTN equipment to be tested State control module;
The control module is specifically used for:
It is message that the SPTN equipment to be tested that OpenFlow protocol modules based on reception are sent returns, described The message and preset test result that the SPTN equipment to be tested that OFConfig protocol modules are sent returns, are tested Card southbound interface tests whether success.
A kind of 6. method that SPTN tests are carried out using the system as described in Claims 1 to 5 is any, which is characterized in that this method Including:
Control module is sent out after the first test instruction of user is received, according to the first test instruction to north orientation interface packets engine Send northbound interface test instruction information;Northbound interface test instruction information of the northbound interface message engine based on reception, leads to It crosses northbound interface and carries out message interaction with controller to be tested, to realize that northbound interface is tested, and the knot that northbound interface is tested Fruit is sent to the control module;The control module judges northbound interface according to the result that the northbound interface of reception is tested Test whether success;And/or
Control module is sent out after the second test instruction of user is received, according to the second test instruction to south orientation interface packets engine Send southbound interface test instruction information;Southbound interface test instruction information of the southbound interface message engine based on reception, leads to It crosses southbound interface and carries out message interaction with SPTN equipment to be tested, to realize that southbound interface is tested, and southbound interface is tested As a result it is sent to the control module;The control module judges that south orientation connects according to the result that the southbound interface of reception is tested Mouth tests whether success.
7. method as claimed in claim 6, which is characterized in that include instruction test in the northbound interface test instruction information The information of content, wherein the test content indicated is one or more in following:
Interface automata;Functional test;Performance test.
8. the method for claim 7, which is characterized in that the northbound interface message engine includes interface consistency mould Block;The northbound interface message engine based on reception the northbound interface test instruction information, by northbound interface with it is to be measured It tries controller and carries out message interaction, to realize that northbound interface is tested, including:
The information of instruction interface automata of the interface consistency module based on reception, by the northbound interface to institute Controller transmission interface uniformity test message to be tested is stated, and the message that the controller to be tested of reception is returned is sent To the control module, so that message and SPTN that the control module is returned according to the controller to be tested of reception are advised Whether model, verification interface automata succeed.
9. the method for claim 7, which is characterized in that the northbound interface message engine includes functional test module; Northbound interface test instruction information of the northbound interface message engine based on reception, passes through northbound interface and control to be tested Device processed carries out message interaction, to realize that northbound interface is tested, including:
Instruction of the functional test module based on reception carries out the information of specified functional test, according to the specified functional test Corresponding testing process carries out message interaction, and will be in message interaction by the northbound interface and the controller to be tested Appearance is sent to the control module, so that the control module is according to the message interaction content of reception, determines described specified Whether functional test succeeds.
10. the method for claim 7, which is characterized in that the northbound interface message engine includes performance test module; Northbound interface test instruction information of the northbound interface message engine based on reception, passes through northbound interface and control to be tested Device processed carries out message interaction, to realize that northbound interface is tested, including:
The information of instruction performance test of the performance test module based on reception, by the northbound interface to described to be tested Controller sends the performance test message of specified quantity, and the message that the controller to be tested of reception is returned and survey The corresponding duration that returns of the message respectively returned of amount is sent to the control module, so that the control module is according to statistics The message amount that successfully returns of the controller to be tested and the corresponding return duration of message that returns of each success, comment Estimate the performance of the controller to be tested.
11. method as claimed in claim 6, which is characterized in that southern comprising carrying out in the southbound interface test instruction information To protocol stack information based on during interface testing, wherein, the protocol stack that the southbound interface message engine is supported includes OpenFlow protocol stacks and OFConfig protocol stacks.
12. method as claimed in claim 11, which is characterized in that the southbound interface message engine includes OpenFlow agreements Module and OFConfig protocol modules;Southbound interface test instruction letter of the southbound interface message engine based on reception Breath carries out message interaction by southbound interface and SPTN equipment to be tested, to realize that southbound interface is tested, including:
Southbound interface test instruction information of the OpenFlow protocol modules based on reception, by the southbound interface to be measured It tries SPTN equipment and sends OpenFlow test packets, and the message that the SPTN equipment is returned is sent to the control module; And
Southbound interface test instruction information of the OFConfig protocol modules based on reception, by the southbound interface to be measured It tries SPTN equipment and sends OFConfig test packets, and the message that the SPTN equipment is returned is sent to the control module;
The control module judges that southbound interface tests whether success according to the result that the southbound interface of reception is tested, packet It includes:
What the SPTN equipment to be tested that the OpenFlow protocol module of the control module based on reception is sent returned The message and preset survey that the SPTN equipment to be tested that message, the OFConfig protocol modules are sent returns Test result, verification southbound interface test whether success.
CN201611103940.9A 2016-12-05 2016-12-05 A kind of software definition grouping conveying network SPTN test macro and method Active CN108156045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611103940.9A CN108156045B (en) 2016-12-05 2016-12-05 A kind of software definition grouping conveying network SPTN test macro and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611103940.9A CN108156045B (en) 2016-12-05 2016-12-05 A kind of software definition grouping conveying network SPTN test macro and method

Publications (2)

Publication Number Publication Date
CN108156045A true CN108156045A (en) 2018-06-12
CN108156045B CN108156045B (en) 2019-10-29

Family

ID=62469989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611103940.9A Active CN108156045B (en) 2016-12-05 2016-12-05 A kind of software definition grouping conveying network SPTN test macro and method

Country Status (1)

Country Link
CN (1) CN108156045B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478790A (en) * 2020-03-02 2020-07-31 烽火通信科技股份有限公司 Method and system for supporting southbound protocol virtualization verification in SDN network architecture
CN111970701A (en) * 2019-05-20 2020-11-20 南京红阵网络安全技术研究院有限公司 Endogenous safety centralized WLAN control system and method
CN114629833A (en) * 2022-03-31 2022-06-14 中国电子科技集团公司第三十四研究所 Automatic testing system and method for SPTN (shortest Path bridging) equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997199A (en) * 2007-01-12 2007-07-11 中国电信股份有限公司 An integrated testing system and method for 3G network management interface
CN102905278A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Management method, management device and management system for coverage optimization
EP2676463A1 (en) * 2011-02-18 2013-12-25 Telefonaktiebolaget L M Ericsson (PUBL) Mobile router in eps

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997199A (en) * 2007-01-12 2007-07-11 中国电信股份有限公司 An integrated testing system and method for 3G network management interface
EP2676463A1 (en) * 2011-02-18 2013-12-25 Telefonaktiebolaget L M Ericsson (PUBL) Mobile router in eps
CN102905278A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Management method, management device and management system for coverage optimization

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970701A (en) * 2019-05-20 2020-11-20 南京红阵网络安全技术研究院有限公司 Endogenous safety centralized WLAN control system and method
CN111970701B (en) * 2019-05-20 2024-04-09 南京红阵网络安全技术研究院有限公司 Endogenous safety centralized WLAN control system and method
CN111478790A (en) * 2020-03-02 2020-07-31 烽火通信科技股份有限公司 Method and system for supporting southbound protocol virtualization verification in SDN network architecture
CN111478790B (en) * 2020-03-02 2022-07-01 烽火通信科技股份有限公司 Method and system for supporting southbound protocol virtualization verification in SDN network architecture
CN114629833A (en) * 2022-03-31 2022-06-14 中国电子科技集团公司第三十四研究所 Automatic testing system and method for SPTN (shortest Path bridging) equipment
CN114629833B (en) * 2022-03-31 2023-05-02 中国电子科技集团公司第三十四研究所 Automatic test system and method for SPTN equipment

Also Published As

Publication number Publication date
CN108156045B (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN104065528B (en) For analyzing and examining functional method and apparatus of multiple network equipments
KR102116850B1 (en) System and method for execution of user-defined instrument command sequences using multiple hardware and analysis modules
CN110430096A (en) A kind of gateway test method and equipment
CN103220153B (en) Cipher set-up method based on Quick Response Code and device, information system
CN102291745A (en) Method and device for testing multiple access points (AP)
CN108156045B (en) A kind of software definition grouping conveying network SPTN test macro and method
CN104038605A (en) Phone point of sale (POS) payment terminal transaction testing method
CN103716356B (en) Storing process operating method, device and system based on web
CN105791032B (en) The test method and device of transport protocol between intelligent appliance and mobile terminal
CN110347604A (en) Programming interface test method and equipment, electronic equipment and readable storage medium storing program for executing
CN107770786A (en) A kind of method of testing of network performance, equipment and system
CN105049280B (en) The interface Behavior modeling test macro and method of Business Management Platform
CN105117345A (en) Interface testing method and device for application program
CN107566204B (en) Excitation message generation control method and device and logic detection equipment
CN108304938A (en) A kind of quantum entanglement verification system and method
CN106792784B (en) A kind of method, server and system carrying out data check in server side
CN106708723B (en) A kind of test, method of calibration and device
CN104639390A (en) Method and device for testing system
CN108231132A (en) A kind of nand flash memory verification device and verification system
CN105391601A (en) Network management equipment performance testing method and system
CN102841843B (en) Compatible determination methods and device
CN106301976A (en) A kind of intelligent substation schedule information automated testing method
CN111935767B (en) Network simulation system
CN107273147A (en) A kind of many SE management method and device
CN106161452B (en) The sending method and device of identifying code

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