CN109286536A - A kind of interface test method and device - Google Patents

A kind of interface test method and device Download PDF

Info

Publication number
CN109286536A
CN109286536A CN201811151110.2A CN201811151110A CN109286536A CN 109286536 A CN109286536 A CN 109286536A CN 201811151110 A CN201811151110 A CN 201811151110A CN 109286536 A CN109286536 A CN 109286536A
Authority
CN
China
Prior art keywords
data
message
interface
wsn
data message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811151110.2A
Other languages
Chinese (zh)
Other versions
CN109286536B (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811151110.2A priority Critical patent/CN109286536B/en
Publication of CN109286536A publication Critical patent/CN109286536A/en
Application granted granted Critical
Publication of CN109286536B publication Critical patent/CN109286536B/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/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

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

Abstract

The invention discloses a kind of interface test method and device, this method issues control command to WSN node by service application management system;The first control command message that service application management system issues is obtained by telecommunication network protocol analyzer, and the second control command message that sensor gateway is transmitted to WSN node is obtained by WSN network protocol analysis instrument;Management interface test result is generated according to the first control command message and the second control command message;The second data message that the first data message, the 2nd WSN node that the first WSN node uploads upload is obtained by WSN network protocol analysis instrument, and shuts the third data message for being transmitted to service application management system by telecommunication network protocol analyzer acquisition sensor network;Data-interface test result is generated according to first data message, the second data message and third data message.The present invention can realize the southbound interface interoperability test of sensor gateway in the environment of combining telecommunication net network and WSN network.

Description

A kind of interface test method and device
Technical field
The present invention relates to field of communication technology, in particular to a kind of interface test method and device.
Background technique
With the development of information technology, Internet of Things rapid development.Internet of Things is the important composition portion of generation information technology Point and the information age important development stage.In combining telecommunication net network and wireless sensor network (Wireless Sensor Network, WSN) environment in, sensor gateway be connect telecommunication network and WSN network intermediate equipment, tool There is vital effect.Existing sensor gateway test mode be merely able to the function of the sensor gateway based on existing net into Row simple test can not realize that the southbound interface intercommunication of sensor gateway is surveyed in the environment of combining telecommunication net network and WSN network Examination.
It should be noted that the above description of the technical background be intended merely to it is convenient to technical solution of the present invention carry out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Cannot merely because these schemes of the invention Background technology part is expounded and thinks that above-mentioned technical proposal is known to those skilled in the art.
Summary of the invention
The present invention is directed at least solve one of the technical problems existing in the prior art, a kind of interface test method is provided And device, the southbound interface interoperability test of sensor gateway can be realized in the environment of combining telecommunication net network and WSN network.
To achieve the above object, the present invention provides a kind of interface test methods, for testing the south orientation of sensor gateway Interface, for the southbound interface for connecting the sensor gateway and WSN network, the southbound interface includes management interface sum number According to interface, which comprises
Control command is issued to WSN node by service application management system;
The first control command message that the service application management system issues is obtained by telecommunication network protocol analyzer, And the second control command message that sensor gateway is transmitted to the WSN node is obtained by WSN network protocol analysis instrument;
Management interface test result is generated according to the first control command message and the second control command message;
By on the first data message of WSN network protocol analysis instrument acquisition the first WSN node upload, the 2nd WSN node The second data message passed, and shut by telecommunication network protocol analyzer acquisition sensor network and be transmitted to service application management system Third data message;
Data-interface test result is generated according to first data message, the second data message and third data message.
Optionally, it is described control command to WSN node is issued by service application management system before further include:
Interface testing environment is built, the interface testing environment includes at least service application management system, telecommunication network is assisted Discuss analyzer, sensor gateway, WSN network protocol analysis instrument and multiple WSN nodes.
Optionally, it is described by WSN network protocol analysis instrument obtain the first WSN node upload the first data message, Before the second data message that 2nd WSN node uploads further include:
It reports mode periodically to report mode by the data that service application management system configures WSN node, and configures The periodicity reports the predetermined period of mode;
Distinguish reported data to business by the first WSN node and the 2nd WSN node in the predetermined period and answer Use management system.
Optionally, described that management interface test is generated according to the first control command message and the second control command message As a result it specifically includes:
Judge the first control command message and the second control command message data field payload whether phase Whether same and header is different;
If judging the data field payload phase of the first control command message and the second control command message When same and header difference, the management interface test result of generation is that test passes through.
Optionally, described to be connect according to first data message, the second data message and third data message generation data Mouth test result specifically includes:
Judge whether the data field including first data message carries in the data field load of the third data message The data field load of lotus and second data message, and whether the datagram header of the third data message is different from described The datagram header of the datagram header of one data message and second data message;
If judging, the data field in the data field load of the third data message including first data message is carried The data field load of lotus and second data message, and the datagram header of the third data message is different from first number According to the datagram header of message and the datagram header of second data message, the data-interface test result of generation is that test is logical It crosses.
To achieve the above object, the present invention also provides a kind of interface test devices, for testing the south of sensor gateway To interface, the southbound interface for connecting the sensor gateway and WSN network, the southbound interface include management interface and Data-interface, described device include:
Module is issued, for issuing control command to WSN node by service application management system;
Module is obtained, first for obtaining that the service application management system issues by telecommunication network protocol analyzer Control command message, and the second control that sensor gateway is transmitted to the WSN node is obtained by WSN network protocol analysis instrument Command message;By on the first data message of WSN network protocol analysis instrument acquisition the first WSN node upload, the 2nd WSN node The second data message passed, and shut by telecommunication network protocol analyzer acquisition sensor network and be transmitted to service application management system Third data message;
Generation module is surveyed for generating management interface according to the first control command message and the second control command message Test result;Data-interface test result is generated according to first data message, the second data message and third data message.
Optionally, further includes:
Module is built, for building interface testing environment, the interface testing environment includes at least service application management system System, telecommunication network protocol analyzer, sensor gateway, WSN network protocol analysis instrument and multiple WSN nodes.
Optionally, further includes:
Configuration module, it is periodicity that the data for configuring WSN node by service application management system, which report mode, Report mode, and configure the predetermined period that the periodicity reports mode;
Reporting module, for being reported respectively in the predetermined period by the first WSN node and the 2nd WSN node Data are to service application management system.
Optionally, the generation module includes:
Judging submodule, for judging the data field of the first control command message and the second control command message Whether payload is identical and whether header is different;
Submodule is generated, for when the number for judging the first control command message and the second control command message When according to domain payload, identical and header is different, the management interface test result of generation is that test passes through.
Optionally, the judging submodule be also used to judge in the data field load of the third data message whether include The data field load of the data field load of first data message and second data message, and the third data message Datagram header whether be different from the datagram header of first data message and the datagram header of second data message;
The submodule that generates is also used to when judging to include described the in the data field load of the third data message The data field load of the data field load of one data message and second data message, and the data of the third data message Header be different from first data message datagram header and second data message datagram header when, the data of generation Interface testing result is that test passes through.
The invention has the following advantages:
Interface test method provided by the invention is obtained under service application management system by telecommunication network protocol analyzer The first control command message, the sensor network of hair shut the third data message for being transmitted to service application management system, pass through WSN net Network protocol analyzer obtains sensor gateway and is transmitted to the second control command message of WSN node, that the first WSN node uploads The second data message that one data message, the 2nd WSN node upload, can be in the environment of combining telecommunication net network and WSN network Realize the southbound interface interoperability test of sensor gateway.
Referring to following description and accompanying drawings, only certain exemplary embodiments of this invention is disclosed in detail, specifies original of the invention Reason can be in a manner of adopted.It should be understood that embodiments of the present invention are not so limited in range.In appended power In the range of the spirit and terms that benefit requires, embodiments of the present invention include many changes, modifications and are equal.
The feature for describing and/or showing for a kind of embodiment can be in a manner of same or similar one or more It uses in a other embodiment, is combined with the feature in other embodiment, or the feature in substitution other embodiment.
It should be emphasized that term "comprises/comprising" refers to the presence of feature, one integral piece, step or component when using herein, but simultaneously It is not excluded for the presence or additional of one or more other features, one integral piece, step or component.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of telecommunication network and WSN network integration environment provided in an embodiment of the present invention;
Fig. 2 is a kind of interface testing topology diagram of sensor gateway provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of interface test method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another interface test method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of interface test device provided in an embodiment of the present invention.
Specific embodiment
To make those skilled in the art more fully understand technical solution of the present invention, with reference to the accompanying drawing in the present invention Technical solution carry out clear, complete description, it is clear that described embodiment is a part of the embodiments of the present invention, without It is whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work Under the premise of every other embodiment obtained, shall fall within the protection scope of the present invention.
Those skilled in the art will understand that embodiments of the present invention can be implemented as a kind of system, device, equipment, Method or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete soft The form that part (including firmware, resident software, microcode etc.) or hardware and software combine.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Fig. 1 is a kind of structural schematic diagram of telecommunication network and WSN network integration environment provided in an embodiment of the present invention, is such as schemed Shown in 1 comprising telecommunication network and WSN network, sensor gateway are telecommunication network and the internetwork intermediate equipment of WSN.Sensing Device gateway is for connecting telecommunication network and WSN network: sensor gateway includes southbound interface and northbound interface (not shown), Interface of the southbound interface between sensor gateway and WSN network, southbound interface can be with are as follows: blue tooth interface or WLAN interface or ZIGBEE interface or NFC interface;Interface of the northbound interface between sensor gateway and telecommunication network, northbound interface can be with are as follows: 2G/3G/4G interface or PON network interface or DSL interface.Optionally, the telecommunication network in the present embodiment can also be logical for satellite Interrogate network or IP network.In the present embodiment, the type of southbound interface includes management interface and data-interface.
It further includes WSN node, access net, core net, business platform, administrative center, protocol gateway, distally applies, closely End application, data center and charging center.Wherein, WSN node passes through sensor gateway accessing telecommunication network.Accessing net can be Wireless base station.Call request or request of data for being subsequently entered different networks by core net.Business platform is passed for managing Sensor gateway.Data center is for storing data.Charging center is used for combining with WSN sensor network in telecommunication network Business carries out charging, and charging center cooperates business platform to complete charging process.Proximal end apply in telecommunication network with WSN network phase In conjunction with service application, distally application is the outer service application combined with WSN of telecommunication network.Protocol gateway is responsible for turning for agreement Change the adaptation work with interface.Administrative center is responsible for putting row fault management, performance management and safety management into sensor network.
Fig. 2 is a kind of interface testing topology diagram of sensor gateway provided in an embodiment of the present invention, as shown in Fig. 2, In actual test, telecommunication network protocol analyzer, telecommunication network protocol analyzer are equipped between telecommunication network and sensor gateway For analyzing the data field load communicated between telecommunication network and sensor gateway, it is equipped between sensor gateway and WSN network WSN network protocol analysis instrument, WSN network protocol analysis instrument are used for the data communicated between analyte sensors gateway and WSN network Domain load.Interface test method described in the present embodiment can be in environment shown in FIG. 1 and interface testing shown in Fig. 2 is topological It is realized under structure.
Fig. 3 is a kind of flow diagram of interface test method provided in an embodiment of the present invention, and this method is passed for testing The southbound interface of sensor gateway, the southbound interface is for connecting the sensor gateway and WSN network, the southbound interface packet Include management interface and data-interface.As shown in figure 3, this method comprises:
Step 101a, control command is issued to WSN node by service application management system.
Step 101b, the first control that the service application management system issues is obtained by telecommunication network protocol analyzer Command message, and the second control command that sensor gateway is transmitted to the WSN node is obtained by WSN network protocol analysis instrument Message.
Step 101c, management interface test knot is generated according to the first control command message and the second control command message Fruit.
Step 102a, pass through the first data message of WSN network protocol analysis instrument acquisition the first WSN node upload, second The second data message that WSN node uploads, and the business of being transmitted to is shut by telecommunication network protocol analyzer acquisition sensor network and is answered With the third data message of management system.
Step 102b, data-interface is generated according to first data message, the second data message and third data message Test result.
Interface test method provided in this embodiment obtains service application management system by telecommunication network protocol analyzer The the first control command message, the sensor network that issue shut the third data message for being transmitted to service application management system, pass through WSN Network protocol analysis instrument acquisition sensor gateway is transmitted to the second control command message of WSN node, the first WSN node uploads The second data message that first data message, the 2nd WSN node upload, can be in the environment of combining telecommunication net network and WSN network The middle southbound interface interoperability test for realizing sensor gateway.
Fig. 4 is the flow diagram of another interface test method provided in an embodiment of the present invention, and this method is for testing The southbound interface of sensor gateway, the southbound interface is for connecting the sensor gateway and WSN network, the southbound interface Including management interface and data-interface.As shown in figure 4, this method comprises:
Step 201 builds interface testing environment.
Preferably, each step in the present embodiment is executed by interface test device.
Southbound interface includes the interface of multiple and different types, and the present embodiment mainly describes the mutual of management interface and data-interface Logical test method.
Interface testing environment include at least service application management system, telecommunication network protocol analyzer, sensor gateway, WSN network protocol analysis instrument and multiple WSN nodes.Sensor gateway is for connecting telecommunication network and WSN network, service application pipe Reason system is set in telecommunication network.
Step 202a, control command is issued to WSN node by service application management system.
Service application management system is set on business platform as shown in Figure 1 or service application management system at least carries The partial function of business platform as shown in fig. 1.Service application management system can issue control command to WSN node, for WSN Node is according to control command reported data.
The control command that service application management system issues need to be sent to WSN node through sensor gateway.
Step 202b, the first control that the service application management system issues is obtained by telecommunication network protocol analyzer Command message, and the second control command that sensor gateway is transmitted to the WSN node is obtained by WSN network protocol analysis instrument Message.
Telecommunication network protocol analyzer is set between telecommunication network and sensor gateway, and telecommunication network protocol analyzer is used for The data field load communicated between analysis telecommunication network and sensor gateway.WSN network protocol analysis instrument is set to sensor gateway Between WSN network, the data field that WSN network protocol analysis instrument is used to communicate between analyte sensors gateway and WSN network is carried Lotus.During service application management system issues control command to WSN node, telecommunication network protocol analyzer and WSN net Network protocol analyzer can obtain message information corresponding with the control command, pass through telecommunication network protocal analysis in the present embodiment The corresponding message information of the control command that instrument obtains is denoted as the first control command message C1, passes through WSN network protocol analysis instrument The corresponding message information of the control command through sensor gateway forwards obtained is denoted as the second control command message C2.
Control command message described in the present embodiment includes data field payload and header.
Step 202c, judge that the first control command message and the data field of the second control command message effectively carry Whether lotus is identical and whether header is different, if so, executing step 202d;If it is not, executing step 202e.
The functional test to management interface can be realized by step 202a- step 202c.The functional test knot of management interface Fruit can be used in indicating: the control command that sensor gateway is handed down to WSN node to service application management system carries out control life Enable the functional test results of parsing, format conversion and forwarding.
Step 202d, management interface test result is generated, the management interface test result is that test passes through, and executes step 203。
When the data field payload of the first control command message C1 and the second control command message C2 are identical and the first control When the header difference of command message C1 processed and the second control command message C2, the management in the southbound interface of sensor gateway is indicated The interworking function of interface is normal, and the management interface test result of generation is that test passes through.
Step 202e, management interface test result is generated, the management interface test result is that test does not pass through, executes step Rapid 203.
When the data field payload difference of the first control command message C1 and the second control command message C2 or first When the header of control command message C1 and the second control command message C2 are identical, the pipe in the southbound interface of sensor gateway is indicated The interworking function failure of interface is managed, the management interface test result of generation is that test does not pass through.
Step 203 reports mode by the data that service application management system configures WSN node periodically to report mould Formula, and configure the predetermined period that the periodicity reports mode.
Such as: predetermined period can be denoted as p.
Step 204a, reported data is distinguished by the first WSN node and the 2nd WSN node in the predetermined period To service application management system.
In predetermined period p, the first WSN node and the 2nd WSN node in WSN network distinguish reported data.First WSN The data that node and the 2nd WSN node report are both needed to be sent to service application management system through sensor gateway.
Step 204b, pass through the first data message of WSN network protocol analysis instrument acquisition the first WSN node upload, second The second data message that WSN node uploads, and the business of being transmitted to is shut by telecommunication network protocol analyzer acquisition sensor network and is answered With the third data message of management system.
During the first WSN node and the 2nd WSN node reported data to service application management system, telecommunication network Protocol analyzer and WSN network protocol analysis instrument can obtain corresponding with the first WSN node and the 2nd WSN node reported data Message information, obtained respectively by WSN network protocol analysis instrument in the present embodiment with the first WSN node and the 2nd WSN node The corresponding message information of reported data is denoted as the first data message D1 and the second data message D2, passes through telecommunication network protocal analysis Message information corresponding with the first WSN node and the 2nd WSN node reported data note through sensor gateway forwards that instrument obtains For third data message D3.
Data message described in the present embodiment includes data field load and datagram header.
Step 204c, judge in the data field load of the third data message whether to include first data message The data field load of data field load and second data message, and whether the datagram header of the third data message is different In the datagram header of first data message and the datagram header of second data message, if so, executing step 204d;If It is no, execute step 204e.
The functional test to data-interface can be realized by step 204a- step 204c.The functional test knot of data-interface Fruit can be used in indicating: the data that sensor gateway reports to service application management system to WSN node are converged, are wrapped again The functional test results of dress and forwarding.
Step 204d, data-interface test result is generated, the data-interface test result is that test passes through, process knot Beam.
When the data field load in the data field load of third data message D3 including the first data message D1 and the second number According to the data field load of message D2, and the datagram header of third data message D3 is different from the datagram header of the first data message D1 When with the datagram header of the second data message D2, the interworking function of the data-interface in the southbound interface of sensor gateway is being indicated just Often, the data-interface test result of generation is that test passes through.
Step 204e, data-interface test result is generated, the data-interface test result is that test does not pass through, process knot Beam.
When in the data field load of third data message D3 not simultaneously including the first data message D1 data field load and The datagram of the data field load of second data message D2 or the datagram header of third data message D3 and the first data message D1 When the datagram header of head or the second data message D2 are identical, the intercommunication of the data-interface in the southbound interface of sensor gateway is indicated Functional fault, the data-interface test result of generation are that test does not pass through.
It should be noted that although describing the operation of the method for the present invention in the accompanying drawings with particular order, this is not required that Or hint must execute these operations in this particular order, or have to carry out operation shown in whole and be just able to achieve the phase The result of prestige.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or will One step is decomposed into execution of multiple steps.
Interface test method provided in this embodiment obtains service application management system by telecommunication network protocol analyzer The the first control command message, the sensor network that issue shut the third data message for being transmitted to service application management system, pass through WSN Network protocol analysis instrument acquisition sensor gateway is transmitted to the second control command message of WSN node, the first WSN node uploads The second data message that first data message, the 2nd WSN node upload, can be in the environment of combining telecommunication net network and WSN network The functional test of management interface and data-interface in the middle southbound interface for realizing sensor gateway, to realize to sensor gateway Functional test.
Correspondingly, the embodiments of the present invention also provide a kind of interface testing dresses for realizing above-mentioned interface test method It sets, Fig. 5 is a kind of structural schematic diagram of interface test device provided in an embodiment of the present invention, and the device is for testing sensor network The southbound interface of pass, the southbound interface include management for connecting the sensor gateway and WSN network, the southbound interface Interface and data-interface, as shown in figure 5, the device includes: to issue module 11, obtain module 12 and generation module 13.
Module 11 is issued for issuing control command to WSN node by service application management system.Module 12 is obtained to use In obtaining the first control command message that the service application management system issues by telecommunication network protocol analyzer, and pass through WSN network protocol analysis instrument obtains the second control command message that sensor gateway is transmitted to the WSN node;Pass through WSN net Network protocol analyzer obtains the second data message that the first data message, the 2nd WSN node that the first WSN node uploads upload, And the third data message for being transmitted to service application management system is shut by telecommunication network protocol analyzer acquisition sensor network.It is raw It is used to generate management interface test result according to the first control command message and the second control command message at module 13;Root Data-interface test result is generated according to first data message, the second data message and third data message.
Further, which further includes building module 14.Module 14 is built to be used to build interface testing environment, it is described to connect Mouth test environment includes at least service application management system, telecommunication network protocol analyzer, sensor gateway, WSN network protocol Analyzer and multiple WSN nodes.
Further, which further includes configuration module 15 and reporting module 16.Configuration module 15 by business for being answered Reporting mode with the data of management system configuration WSN node is periodically to report mode, and configure the periodicity and report mode Predetermined period.Reporting module 16 is used to distinguish in the predetermined period by the first WSN node and the 2nd WSN node Reported data is to service application management system.
Further, the generation module 13 includes judging submodule 131 and generation submodule 132.Judging submodule 131 Data field payload for judging the first control command message and the second control command message it is whether identical and Whether header is different.It generates submodule 132 and is used to work as and judge the first control command message and second control command When the data field payload of message is identical and header is different, the management interface test result of generation is that test passes through.
Further, the judging submodule 131 be also used to judge in the data field load of the third data message be The data field load of the no data field load including first data message and second data message, and the third number Whether it is different from the datagram header of first data message and the data of second data message according to the datagram header of message Header.The submodule 132 that generates is also used to when judging to include described the in the data field load of the third data message The data field load of the data field load of one data message and second data message, and the data of the third data message Header be different from first data message datagram header and second data message datagram header when, the data of generation Interface testing result is that test passes through.
Interface test device provided in this embodiment obtains module and is used to obtain business by telecommunication network protocol analyzer The first control command message, the sensor network that application management system issues shut the third data for being transmitted to service application management system Message obtains sensor gateway by WSN network protocol analysis instrument and is transmitted to the second control command message of WSN node, first The second data message that the first data message that WSN node uploads, the 2nd WSN node upload, can in combining telecommunication net network and The southbound interface interoperability test of sensor gateway is realized in the environment of WSN network.
The embodiment of the invention also provides a kind of interface test systems, including sensor gateway and the upper interface testing Device.Interface test system provided in this embodiment can realize sensor in the environment of combining telecommunication net network and WSN network The southbound interface interoperability test of gateway.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above embodiments Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of interface test method, which is characterized in that for testing the southbound interface of sensor gateway, the southbound interface is used In connecting the sensor gateway and WSN network, the southbound interface include management interface and data-interface, the method packet It includes:
Control command is issued to WSN node by service application management system;
The first control command message that the service application management system issues is obtained by telecommunication network protocol analyzer, and is led to It crosses WSN network protocol analysis instrument and obtains the second control command message that sensor gateway is transmitted to the WSN node;
Management interface test result is generated according to the first control command message and the second control command message;
The first data message, the 2nd WSN node that the first WSN node uploads is obtained by WSN network protocol analysis instrument to upload Second data message, and sensor network obtained by telecommunication network protocol analyzer shut and be transmitted to the of service application management system Three data messages;
Data-interface test result is generated according to first data message, the second data message and third data message.
2. interface test method according to claim 1, which is characterized in that under the management system by service application Before hair control command to WSN node further include:
Interface testing environment is built, the interface testing environment includes at least service application management system, telecommunication network agreement point Analyzer, sensor gateway, WSN network protocol analysis instrument and multiple WSN nodes.
3. interface test method according to claim 1, which is characterized in that pass through WSN network protocol analysis instrument described Obtain the first WSN node upload the first data message, the 2nd WSN node upload the second data message before further include:
Mode is reported periodically to report mode by the data that service application management system configures WSN node, and described in configuration Periodically report the predetermined period of mode;
Reported data is distinguished to service application pipe by the first WSN node and the 2nd WSN node in the predetermined period Reason system.
4. interface test method according to claim 1, which is characterized in that described according to the first control command message Management interface test result is generated with the second control command message to specifically include:
Judge the data field payload of the first control command message and the second control command message it is whether identical and Whether header is different;
If judge the first control command message it is identical with the data field payload of the second control command message and When header difference, the management interface test result of generation is that test passes through.
5. interface test method according to claim 1, which is characterized in that described according to first data message, Two data messages and third data message generate data-interface test result and specifically include:
Judge in the data field load of the third data message whether include first data message data field load and The data field load of second data message, and whether the datagram header of the third data message is different from first number According to the datagram header of message and the datagram header of second data message;
If judge in the data field load of the third data message including first data message data field load and The data field load of second data message, and the datagram header of the third data message is different from first datagram The datagram header of text and the datagram header of second data message, the data-interface test result of generation are that test passes through.
6. a kind of interface test device, which is characterized in that for testing the southbound interface of sensor gateway, the southbound interface is used In connecting the sensor gateway and WSN network, the southbound interface include management interface and data-interface, described device packet It includes:
Module is issued, for issuing control command to WSN node by service application management system;
Module is obtained, for obtaining the first control that the service application management system issues by telecommunication network protocol analyzer Command message, and the second control command that sensor gateway is transmitted to the WSN node is obtained by WSN network protocol analysis instrument Message;The first data message, the 2nd WSN node that the first WSN node uploads is obtained by WSN network protocol analysis instrument to upload Second data message, and sensor network obtained by telecommunication network protocol analyzer shut and be transmitted to the of service application management system Three data messages;
Generation module, for generating management interface test knot according to the first control command message and the second control command message Fruit;Data-interface test result is generated according to first data message, the second data message and third data message.
7. interface test device according to claim 6, which is characterized in that further include:
Module is built, for building interface testing environment, the interface testing environment includes at least service application management system, electricity Communication network protocol analyzer, sensor gateway, WSN network protocol analysis instrument and multiple WSN nodes.
8. interface test device according to claim 6, which is characterized in that further include:
Configuration module, the data for configuring WSN node by service application management system report mode periodically to report mould Formula, and configure the predetermined period that the periodicity reports mode;
Reporting module, for distinguishing reported data by the first WSN node and the 2nd WSN node in the predetermined period To service application management system.
9. interface test device according to claim 6, which is characterized in that the generation module includes:
Judging submodule, the data field for judging the first control command message and the second control command message are effective Whether load is identical and whether header is different;
Submodule is generated, for when the data field for judging the first control command message and the second control command message When payload is identical and header is different, the management interface test result of generation is that test passes through.
10. interface test device according to claim 9, which is characterized in that
The judging submodule is also used to judge in the data field load of the third data message whether include first number According to the data field load of message and the data field load of second data message, and the datagram header of the third data message Whether the datagram header of first data message and the datagram header of second data message are different from;
The submodule that generates is also used to work as in the data field load for judging the third data message including first number According to the data field load of message and the data field load of second data message, and the datagram header of the third data message When the datagram header of datagram header and second data message different from first data message, the data-interface of generation Test result is that test passes through.
CN201811151110.2A 2018-09-29 2018-09-29 Interface testing method and device Active CN109286536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811151110.2A CN109286536B (en) 2018-09-29 2018-09-29 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811151110.2A CN109286536B (en) 2018-09-29 2018-09-29 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN109286536A true CN109286536A (en) 2019-01-29
CN109286536B CN109286536B (en) 2020-08-18

Family

ID=65182353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811151110.2A Active CN109286536B (en) 2018-09-29 2018-09-29 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN109286536B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134792A (en) * 2020-09-24 2020-12-25 山东交通学院 Remote train network communication interface test gateway equipment and system
CN113573392A (en) * 2021-07-13 2021-10-29 电子科技大学中山学院 Energy-saving communication method under abnormal state of gateway of Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083123A (en) * 2011-03-01 2011-06-01 中国联合网络通信集团有限公司 Gateway test method, device and system
CN102111315A (en) * 2010-12-20 2011-06-29 大唐移动通信设备有限公司 Method, system and equipment for fusing Internet of Things and telecommunication network
CN203241072U (en) * 2013-03-29 2013-10-16 国家电气设备检测与工程能效测评中心(武汉) Mobile energy efficiency data detection device based on WSN (wireless sensor network)
WO2013155657A1 (en) * 2012-04-16 2013-10-24 Renesas Mobile Corporation Routing arrangement in a wireless sensor network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111315A (en) * 2010-12-20 2011-06-29 大唐移动通信设备有限公司 Method, system and equipment for fusing Internet of Things and telecommunication network
CN102083123A (en) * 2011-03-01 2011-06-01 中国联合网络通信集团有限公司 Gateway test method, device and system
WO2013155657A1 (en) * 2012-04-16 2013-10-24 Renesas Mobile Corporation Routing arrangement in a wireless sensor network
CN203241072U (en) * 2013-03-29 2013-10-16 国家电气设备检测与工程能效测评中心(武汉) Mobile energy efficiency data detection device based on WSN (wireless sensor network)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134792A (en) * 2020-09-24 2020-12-25 山东交通学院 Remote train network communication interface test gateway equipment and system
CN112134792B (en) * 2020-09-24 2022-08-30 山东交通学院 Remote train network communication interface testing gateway equipment and system
CN113573392A (en) * 2021-07-13 2021-10-29 电子科技大学中山学院 Energy-saving communication method under abnormal state of gateway of Internet of things
CN113573392B (en) * 2021-07-13 2022-11-22 电子科技大学中山学院 Energy-saving communication method under abnormal state of gateway of Internet of things

Also Published As

Publication number Publication date
CN109286536B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN104737519B (en) System and equipment for the general network controller of software defined network (SDN)
CN106961445B (en) Packet parsing device based on FPGA hardware parallel pipeline
CN107222353B (en) The unrelated software defined network virtual management platform of supported protocol
CN103501254B (en) Multipurpose avionics relay network topology configuration management method and multipurpose avionics relay network topology configuration management system
WO2020164229A1 (en) Network topology abstraction method and system of flexible ethernet for sdn controller
CN104065398B (en) A kind of electric power communication network network merges method for designing and the system of test platform
CN105915407A (en) Flow generator virtualization realization system and flow generator virtualization realization method based on SDN
CN106134133A (en) Tunnel passes through WAN time-critical message between substation
CN106471780B (en) The method, system and logic of link-local are configured based on remote link partner
Guillemin et al. Internet of Things Standardisation—Status, Requirements, Initiatives and Organisations
CN106330697A (en) Hybrid network spanning tree establishing method, backup method and control system thereof
CN110493079A (en) The production automation test method of industrial ethernet switch
CN108965204A (en) A kind of method and device of automatic realization IOAM encapsulation
CN103780425A (en) A method and a controller device for configuring a software-defined network
CN109286536A (en) A kind of interface test method and device
CN102438017B (en) Routing function-based conversion apparatus of Modbus protocol and BACnet Ethernet protocol and conversion method thereof
CN113055232A (en) Network configuration deployment method, device and equipment
Cavalcanti et al. WiFi TSN: Enabling deterministic wireless connectivity over 802.11
Huang et al. Automatical end to end topology discovery and flow viewer on SDN
CN105072040A (en) Efficient satellite SpaceWire Plug-and-Play (PnP) network topology construction method
CN107483284A (en) The method of testing and device of the network equipment
CN106506359B (en) A kind of customized tissue middleware of network for naming central site network
CN103117880A (en) Web technology based network topological generation method
CN103763676B (en) Communication means and equipment between AP and AC
TWI608442B (en) Software definition driven cloud computing network component service assembly system

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