CN109286536B - Interface testing method and device - Google Patents

Interface testing method and device Download PDF

Info

Publication number
CN109286536B
CN109286536B CN201811151110.2A CN201811151110A CN109286536B CN 109286536 B CN109286536 B CN 109286536B CN 201811151110 A CN201811151110 A CN 201811151110A CN 109286536 B CN109286536 B CN 109286536B
Authority
CN
China
Prior art keywords
data
wsn
interface
control command
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.)
Active
Application number
CN201811151110.2A
Other languages
Chinese (zh)
Other versions
CN109286536A (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

Images

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

Abstract

The invention discloses an interface testing method and a device, wherein the method issues a control command to a WSN node through a service application management system; acquiring a first control command message issued by a service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to a WSN node by a sensor gateway through a WSN network protocol analyzer; generating a management interface test result according to the first control command message and the second control command message; acquiring a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN (wireless sensor network) protocol analyzer, and acquiring a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer; and generating a data interface test result according to the first data message, the second data message and the third data message. The invention can realize the intercommunication test of the southbound interface of the sensor gateway in the environment of fusing the telecommunication network and the WSN network.

Description

Interface testing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an interface testing method and apparatus.
Background
With the development of information technology, the internet of things develops rapidly. The Internet of things is an important component of a new generation of information technology and is also an important development stage of the information era. In an environment of integrating a telecommunication Network and a Wireless Sensor Network (WSN), a sensor gateway is an intermediate device for connecting the telecommunication Network and the WSN, and has a crucial role. The existing sensor gateway testing mode can only simply test the functions of the sensor gateway based on the existing network, and can not realize the intercommunication test of the southbound interfaces of the sensor gateway in the environment of fusing a telecommunication network and a WSN network.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
The invention aims to solve at least one of the technical problems in the prior art, and provides an interface testing method and device, which can realize the intercommunication test of the southbound interface of a sensor gateway in an environment fusing a telecommunication network and a WSN network.
In order to achieve the above object, the present invention provides an interface testing method for testing a southbound interface of a sensor gateway, where the southbound interface is used to connect the sensor gateway and a WSN network, and includes a management interface and a data interface, the method includes:
issuing a control command to the WSN node through a service application management system;
acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer;
generating a management interface test result according to the first control command message and the second control command message;
acquiring a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN (wireless sensor network) protocol analyzer, and acquiring a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer;
and generating a data interface test result according to the first data message, the second data message and the third data message.
Optionally, before the issuing the control command to the WSN node by the service application management system, the method further includes:
and constructing an interface test environment, wherein the interface test environment at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN network protocol analyzer and a plurality of WSN nodes.
Optionally, before the acquiring, by the WSN network protocol analyzer, the first data packet uploaded by the first WSN node and the second data packet uploaded by the second WSN node, the method further includes:
configuring a data reporting mode of a WSN node into a periodic reporting mode through a service application management system, and configuring a preset period of the periodic reporting mode;
and respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period.
Optionally, the generating a management interface test result according to the first control command packet and the second control command packet specifically includes:
judging whether the data field effective loads of the first control command message and the second control command message are the same and the headers are different;
and if the data field effective load of the first control command message and the data field effective load of the second control command message are the same and the headers are different, the generated management interface test result is that the test is passed.
Optionally, the generating a data interface test result according to the first data packet, the second data packet, and the third data packet specifically includes:
determining whether the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and whether the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet;
and if the data field load of the third data message is judged to comprise the data field load of the first data message and the data field load of the second data message, and the data header of the third data message is different from the data header of the first data message and the data header of the second data message, the generated data interface test result is that the test is passed.
In order to achieve the above object, the present invention further provides an interface testing apparatus for testing a southbound interface of a sensor gateway, where the southbound interface is used to connect the sensor gateway and a WSN network, and includes a management interface and a data interface, the apparatus including:
the issuing module is used for issuing a control command to the WSN node through the service application management system;
the acquisition module is used for acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer; acquiring a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN (wireless sensor network) protocol analyzer, and acquiring a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer;
the generating module is used for generating a management interface test result according to the first control command message and the second control command message; and generating a data interface test result according to the first data message, the second data message and the third data message.
Optionally, the method further comprises:
the interface testing system at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN (wireless sensor network) protocol analyzer and a plurality of WSN nodes.
Optionally, the method further comprises:
the system comprises a configuration module, a service application management system and a reporting module, wherein the configuration module is used for configuring a data reporting mode of a WSN node into a periodic reporting mode through the service application management system and configuring a preset period of the periodic reporting mode;
and the reporting module is used for respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period.
Optionally, the generating module includes:
the judging submodule is used for judging whether the data field effective loads of the first control command message and the second control command message are the same and the headers are different;
and the generation submodule is used for generating a management interface test result as a test pass when the data field effective load of the first control command message is judged to be the same as that of the second control command message and the headers of the first control command message and the second control command message are different.
Optionally, the determining sub-module is further configured to determine whether the data field payload of the third data packet includes the data field payload of the first data packet and the data field payload of the second data packet, and whether a data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet;
the generating sub-module is further configured to generate a data interface test result as a test pass when it is determined that the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet.
The invention has the following beneficial effects:
the interface testing method provided by the invention can realize the intercommunication test of the southbound interface of the sensor gateway in the environment of fusing the telecommunication network and the WSN network by acquiring the first control command message issued by the service application management system and the third data message uploaded to the service application management system by the sensor gateway through the telecommunication network protocol analyzer, acquiring the second control command message forwarded to the WSN node by the sensor gateway, the first data message uploaded by the first WSN node and the second data message uploaded by the second WSN node through the WSN network protocol analyzer.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
Fig. 1 is a schematic structural diagram of a convergence environment of a telecommunications network and a WSN network provided in an embodiment of the present invention;
fig. 2 is a topology structure diagram for testing an interface of a sensor gateway according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an interface testing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another interface testing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following clear and complete description of the technical solution of the present invention is made with reference to the accompanying drawings, and it is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a schematic structural diagram of a convergence environment of a telecommunications network and a WSN network according to an embodiment of the present invention, as shown in fig. 1, which includes the telecommunications network and the WSN network, and a sensor gateway is an intermediate device between the telecommunications network and the WSN network. The sensor gateway is used for connecting the telecommunication network and the WSN: the sensor gateway includes a south interface and a north interface (not shown in the figure), the south interface is an interface between the sensor gateway and the WSN network, and the south interface may be: a Bluetooth interface or a WLAN interface or a ZIGBEE interface or an NFC interface; the northbound interface is an interface between the sensor gateway and the telecommunication network, and may be: 2G/3G/4G interface or PON network interface or DSL interface. Optionally, the telecommunication network in this embodiment may also be a satellite communication network or an IP network. In this embodiment, the types of southbound interfaces include a management interface and a data interface.
The system also comprises a WSN node, an access network, a core network, a service platform, a management center, a protocol gateway, a far-end application, a near-end application, a data center and a charging center. The WSN node is accessed to a telecommunication network through a sensor gateway. The access network may be a radio base station. The core network is used for connecting the call request or the data request to different networks. And the service platform is used for managing the sensor gateway. The data center is used for storing data. The charging center is used for charging the service combined with the WSN in the telecommunication network, and the charging center is matched with the service platform to complete the charging process. The near-end application is a service application combined with the WSN in the telecommunication network, and the far-end application is a service application combined with the WSN outside the telecommunication network. The protocol gateway is responsible for the conversion of the protocol and the adaptation work of the interface. And the management center is responsible for performing fault management, performance management and safety management on the sensor gateway.
Fig. 2 is a topology structure diagram of an interface test of a sensor gateway according to an embodiment of the present invention, as shown in fig. 2, during an actual test, a telecommunication network protocol analyzer is disposed between a telecommunication network and the sensor gateway, the telecommunication network protocol analyzer is configured to analyze a data domain load communicated between the telecommunication network and the sensor gateway, a WSN network protocol analyzer is disposed between the sensor gateway and the WSN network, and the WSN network protocol analyzer is configured to analyze a data domain load communicated between the sensor gateway and the WSN network. The interface testing method described in this embodiment can be implemented in the environment shown in fig. 1 and under the interface testing topology shown in fig. 2.
Fig. 3 is a schematic flowchart of an interface testing method according to an embodiment of the present invention, where the method is used to test a southbound interface of a sensor gateway, the southbound interface is used to connect the sensor gateway and a WSN network, and the southbound interface includes a management interface and a data interface. As shown in fig. 3, the method includes:
step 101a, a control command is issued to the WSN node through the service application management system.
And 101b, acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer.
And 101c, generating a management interface test result according to the first control command message and the second control command message.
Step 102a, a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node are obtained through a WSN analyzer, and a third data message uploaded to a service application management system by a sensor gateway is obtained through a telecommunication network protocol analyzer.
And 102b, generating a data interface test result according to the first data message, the second data message and the third data message.
In the interface testing method provided by this embodiment, a first control command packet issued by a service application management system and a third data packet uploaded to the service application management system by a sensor gateway are acquired by a telecommunication network protocol analyzer, and a second control command packet forwarded to a WSN node by the sensor gateway, a first data packet uploaded by the first WSN node and a second data packet uploaded by the second WSN node are acquired by the WSN network protocol analyzer, so that a southbound interface intercommunication test of the sensor gateway can be implemented in an environment in which a telecommunication network and a WSN network are integrated.
Fig. 4 is a schematic flowchart of another interface testing method according to an embodiment of the present invention, where the method is used to test a southbound interface of a sensor gateway, the southbound interface is used to connect the sensor gateway and a WSN network, and the southbound interface includes a management interface and a data interface. As shown in fig. 4, the method includes:
step 201, building an interface test environment.
Preferably, the steps in this embodiment are performed by the interface test apparatus.
The southbound interface includes a plurality of interfaces of different types, and this embodiment mainly describes an intercommunication test method for a management interface and a data interface.
The interface test environment at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN network protocol analyzer and a plurality of WSN nodes. The sensor gateway is used for connecting a telecommunication network and a WSN network, and the service application management system is arranged in the telecommunication network.
Step 202a, a control command is issued to the WSN node through the service application management system.
The service application management system is provided on the service platform as shown in fig. 1 or the service application management system carries at least part of the functions of the service platform as shown in fig. 1. The service application management system can issue a control command to the WSN node so that the WSN node can report data according to the control command.
And a control command issued by the service application management system is transmitted to the WSN node through the sensor gateway.
Step 202b, acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer.
The telecommunication network protocol analyzer is arranged between the telecommunication network and the sensor gateway and is used for analyzing data domain loads communicated between the telecommunication network and the sensor gateway. The WSN network protocol analyzer is arranged between the sensor gateway and the WSN network and used for analyzing data domain loads communicated between the sensor gateway and the WSN network. In the process of issuing the control command to the WSN node by the service application management system, both the telecommunication network protocol analyzer and the WSN network protocol analyzer can obtain message information corresponding to the control command, in this embodiment, the message information corresponding to the control command obtained by the telecommunication network protocol analyzer is denoted as a first control command message C1, and the message information corresponding to the control command forwarded by the sensor gateway obtained by the WSN network protocol analyzer is denoted as a second control command message C2.
The control command messages described in this embodiment each include a data field payload and a header.
Step 202c, judging whether the data field payloads of the first control command message and the second control command message are the same and the headers are different, if so, executing step 202 d; if not, go to step 202 e.
Functional testing of the management interface may be achieved through steps 202 a-202 c. The functional test results of the management interface can be used to represent: and the sensor gateway performs function test results of control command analysis, format conversion and forwarding on a control command issued to the WSN node by the service application management system.
Step 202d, generating a management interface test result, wherein the management interface test result is that the test is passed, and executing step 203.
When the data field payloads of the first control command message C1 and the second control command message C2 are the same and the headers of the first control command message C1 and the second control command message C2 are different, it indicates that the interworking function of the management interface in the southbound interface of the sensor gateway is normal, and the generated test result of the management interface is that the test is passed.
Step 202e, generating a management interface test result, wherein the management interface test result is that the test fails, and executing step 203.
When the data field payloads of the first control command message C1 and the second control command message C2 are different or the headers of the first control command message C1 and the second control command message C2 are the same, it indicates that the interworking function of the management interface in the southbound interface of the sensor gateway has failed, and the generated test result of the management interface is that the test fails.
Step 203, configuring the data reporting mode of the WSN node as a periodic reporting mode through the service application management system, and configuring a preset period of the periodic reporting mode.
Such as: the preset period can be denoted as p.
And 204a, respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period.
And respectively reporting data by a first WSN node and a second WSN node in the WSN within a preset period p. And the data reported by the first WSN node and the second WSN node are transmitted to a service application management system through the sensor gateway.
And 204b, acquiring a first data message uploaded by the first WSN node and a second data message uploaded by the second WSN node through the WSN analyzer, and acquiring a third data message uploaded to the service application management system by the sensor gateway through the telecommunication network protocol analyzer.
In the process of reporting data to the service application management system by the first WSN node and the second WSN node, both the telecommunication network protocol analyzer and the WSN network protocol analyzer may obtain message information corresponding to the data reported by the first WSN node and the second WSN node, in this embodiment, the message information corresponding to the data reported by the first WSN node and the second WSN node, which is obtained by the WSN network protocol analyzer, is recorded as a first data message D1 and a second data message D2, and the message information corresponding to the data reported by the first WSN node and the second WSN node, which is obtained by the telecommunication network protocol analyzer and forwarded by the sensor gateway, is recorded as a third data message D3.
The data packets described in this embodiment each include a data field payload and a data header.
Step 204c, determining whether the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and whether the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet, if yes, executing step 204 d; if not, go to step 204 e.
The functional testing of the data interface can be realized through steps 204 a-204 c. The functional test results of the data interface can be used to represent: and the sensor gateway performs the function test results of gathering, repackaging and forwarding the data reported to the service application management system by the WSN node.
And 204d, generating a data interface test result, wherein the data interface test result is that the test is passed, and the process is ended.
When the data field payload of the third data packet D3 includes the data field payload of the first data packet D1 and the data field payload of the second data packet D2, and the data header of the third data packet D3 is different from the data header of the first data packet D1 and the data header of the second data packet D2, it indicates that the interworking function of the data interface in the southbound interface of the sensor gateway is normal, and the generated test result of the data interface is that the test passes.
And 204e, generating a data interface test result, wherein the data interface test result is that the test fails, and the process is ended.
When the data field payload of the third data packet D3 does not include the data field payload of the first data packet D1 and the data field payload of the second data packet D2, or the data header of the third data packet D3 is the same as the data header of the first data packet D1 or the data header of the second data packet D2, it indicates that the interworking function of the data interface in the southbound interface of the sensor gateway has failed, and the generated test result of the data interface is that the test fails.
It should be noted that while the operations of the method of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
In the interface testing method provided by this embodiment, the first control command packet issued by the service application management system and the third data packet uploaded to the service application management system by the sensor gateway are acquired by the telecommunication network protocol analyzer, and the second control command packet forwarded to the WSN node by the sensor gateway, the first data packet uploaded by the first WSN node, and the second data packet uploaded by the second WSN node are acquired by the WSN network protocol analyzer, so that the functional test of the management interface and the data interface in the southbound interface of the sensor gateway can be realized in an environment in which the telecommunication network and the WSN network are integrated, thereby realizing the functional test of the sensor gateway.
Correspondingly, an embodiment of the present invention further provides an interface testing apparatus for implementing the interface testing method, fig. 5 is a schematic structural diagram of an interface testing apparatus provided in an embodiment of the present invention, the apparatus is used for testing a southbound interface of a sensor gateway, the southbound interface is used for connecting the sensor gateway and a WSN network, the southbound interface includes a management interface and a data interface, as shown in fig. 5, the apparatus includes: the system comprises a sending module 11, an obtaining module 12 and a generating module 13.
The issuing module 11 is configured to issue a control command to the WSN node through the service application management system. The acquisition module 12 is configured to acquire, through a telecommunication network protocol analyzer, a first control command packet issued by the service application management system, and acquire, through a WSN network protocol analyzer, a second control command packet forwarded to the WSN node by a sensor gateway; the method comprises the steps of obtaining a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN analyzer, and obtaining a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer. The generating module 13 is configured to generate a management interface test result according to the first control command packet and the second control command packet; and generating a data interface test result according to the first data message, the second data message and the third data message.
Further, the device also comprises a building module 14. The building module 14 is used for building an interface test environment, and the interface test environment at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN network protocol analyzer and a plurality of WSN nodes.
Further, the device also comprises a configuration module 15 and a reporting module 16. The configuration module 15 is configured to configure the data reporting mode of the WSN node as a periodic reporting mode through the service application management system, and configure a preset period of the periodic reporting mode. The reporting module 16 is configured to report data to the service application management system through the first WSN node and the second WSN node in the preset period, respectively.
Further, the generating module 13 includes a judging sub-module 131 and a generating sub-module 132. The determining sub-module 131 is configured to determine whether the data field payloads of the first control command packet and the second control command packet are the same and the headers are different. The generating sub-module 132 is configured to, when it is determined that the data field payloads of the first control command packet and the second control command packet are the same and the headers are different, generate a management interface test result that the test is passed.
Further, the determining sub-module 131 is further configured to determine whether the data field payload of the third data packet includes the data field payload of the first data packet and the data field payload of the second data packet, and whether the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet. The generating sub-module 132 is further configured to, when it is determined that the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet, generate a data interface test result that the test is passed.
In the interface testing apparatus provided in this embodiment, the obtaining module is configured to obtain, by the telecommunication network protocol analyzer, a first control command packet issued by the service application management system and a third data packet uploaded to the service application management system by the sensor gateway, and obtain, by the WSN network protocol analyzer, a second control command packet forwarded to the WSN node by the sensor gateway, a first data packet uploaded by the first WSN node, and a second data packet uploaded by the second WSN node, so that a south-bound interface intercommunication test of the sensor gateway can be implemented in an environment in which the telecommunication network and the WSN network are integrated.
The embodiment of the invention also provides an interface test system which comprises the sensor gateway and the interface test device. The interface test system provided by the embodiment can realize the intercommunication test of the southbound interface of the sensor gateway in the environment fusing the telecommunication network and the WSN.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An interface testing method is characterized in that the interface testing method is used for testing a southbound interface of a sensor gateway, the southbound interface is used for connecting the sensor gateway and a WSN (wireless sensor Network), the southbound interface comprises a management interface and a data interface, and the WSN (Wireless sensor Network) refers to a wireless sensor Network, and the method comprises the following steps:
an interface test environment is set up, wherein the interface test environment at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN network protocol analyzer and a plurality of WSN nodes;
issuing a control command to the WSN node through a service application management system;
acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer;
generating a management interface test result according to the first control command message and the second control command message;
acquiring a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN (wireless sensor network) protocol analyzer, and acquiring a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer;
and generating a data interface test result according to the first data message, the second data message and the third data message.
2. The interface testing method according to claim 1, wherein before the acquiring, by the WSN network protocol analyzer, the first data packet uploaded by the first WSN node and the second data packet uploaded by the second WSN node, further comprises:
configuring a data reporting mode of a WSN node into a periodic reporting mode through a service application management system, and configuring a preset period of the periodic reporting mode;
and respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period.
3. The interface testing method according to claim 1, wherein the generating a management interface test result according to the first control command packet and the second control command packet specifically comprises:
judging whether the data field effective loads of the first control command message and the second control command message are the same and the headers are different;
and if the data field effective load of the first control command message and the data field effective load of the second control command message are the same and the headers are different, the generated management interface test result is that the test is passed.
4. The interface testing method according to claim 1, wherein the generating a data interface test result according to the first data packet, the second data packet, and the third data packet specifically comprises:
determining whether the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and whether the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet;
and if the data field load of the third data message is judged to comprise the data field load of the first data message and the data field load of the second data message, and the data header of the third data message is different from the data header of the first data message and the data header of the second data message, the generated data interface test result is that the test is passed.
5. An interface testing device, characterized in that, the device is used for testing a southbound interface of a sensor gateway, the southbound interface is used for connecting the sensor gateway and a WSN Network, the southbound interface includes a management interface and a data interface, and the WSN (wireless sensor Network, WSN) refers to a wireless sensor Network, the device includes:
the interface testing system comprises a building module, a testing module and a testing module, wherein the building module is used for building an interface testing environment, and the interface testing environment at least comprises a service application management system, a telecommunication network protocol analyzer, a sensor gateway, a WSN network protocol analyzer and a plurality of WSN nodes;
the issuing module is used for issuing a control command to the WSN node through the service application management system;
the acquisition module is used for acquiring a first control command message issued by the service application management system through a telecommunication network protocol analyzer, and acquiring a second control command message which is forwarded to the WSN node by a sensor gateway through a WSN network protocol analyzer; acquiring a first data message uploaded by a first WSN node and a second data message uploaded by a second WSN node through a WSN (wireless sensor network) protocol analyzer, and acquiring a third data message uploaded to a service application management system by a sensor gateway through a telecommunication network protocol analyzer;
the generating module is used for generating a management interface test result according to the first control command message and the second control command message; and generating a data interface test result according to the first data message, the second data message and the third data message.
6. The interface test apparatus of claim 5, further comprising:
the system comprises a configuration module, a service application management system and a reporting module, wherein the configuration module is used for configuring a data reporting mode of a WSN node into a periodic reporting mode through the service application management system and configuring a preset period of the periodic reporting mode;
and the reporting module is used for respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period.
7. The interface testing apparatus of claim 5, wherein the generating module comprises:
the judging submodule is used for judging whether the data field effective loads of the first control command message and the second control command message are the same and the headers are different;
and the generation submodule is used for generating a management interface test result as a test pass when the data field effective load of the first control command message is judged to be the same as that of the second control command message and the headers of the first control command message and the second control command message are different.
8. Interface test apparatus according to claim 7,
the determining sub-module is further configured to determine whether the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and whether a data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet;
the generating sub-module is further configured to generate a data interface test result as a test pass when it is determined that the data field load of the third data packet includes the data field load of the first data packet and the data field load of the second data packet, and the data header of the third data packet is different from the data header of the first data packet and the data header of the second data packet.
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 CN109286536A (en) 2019-01-29
CN109286536B true 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)

Families Citing this family (2)

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

Family Cites Families (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)

Also Published As

Publication number Publication date
CN109286536A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
US11765686B2 (en) Packet transmission method and apparatus for communicating between terminals of a same 5G LAN group
EP3585095A1 (en) Method for controlling quality of service, and device, smf, upf, ue, pcf and an therefor
CN106060900A (en) Method and apparatus for controlling access to network slicing, terminal small cell and SDN controller
CN111865830A (en) Processing method, device and system for time delay sensitive network service TSN
JP2021168480A (en) Method for processing dcn packet, network device, and network system
US20150222711A1 (en) Method, Device and Terminal for Implementing Internet of Things Application
CN103312532B (en) The automatic method for removing of fault for things-internet gateway and system
CN111866987A (en) Communication method and device
CN111865633B (en) Communication method, device and system
EP3742786A1 (en) Network alarm method, device, system and terminal
CN109286536B (en) Interface testing method and device
WO2022082724A1 (en) Method and apparatus for multicast service support in time sensitive network
CN105009625A (en) Service testing method, device and system, network node and quality processing node
CN109729122A (en) Determine the method and device of ethernet mac address
CN114205866A (en) Deterministic information reporting and issuing method and device, storage medium and electronic equipment
CN104579942B (en) The retransmission method and device of network message
CN103765819B (en) A kind of data configuration method and network management server
CN104320322A (en) Message control method and equipment
CN107995008B (en) Service alarm processing method, device and system
CN109089278B (en) Interface testing method and device
CN109195159B (en) Addressing test method, device and system for sensor gateway
Leite et al. A framework for performance evaluation of network function virtualisation in 5G networks
CN107171972B (en) Multilink-based data transmission method and device
CN114342489A (en) Communication method, communication device, terminal equipment and user plane network element
CN107800583B (en) Message transmission method and device

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