CN109089278B - Interface testing method and device - Google Patents

Interface testing method and device Download PDF

Info

Publication number
CN109089278B
CN109089278B CN201811148937.8A CN201811148937A CN109089278B CN 109089278 B CN109089278 B CN 109089278B CN 201811148937 A CN201811148937 A CN 201811148937A CN 109089278 B CN109089278 B CN 109089278B
Authority
CN
China
Prior art keywords
wsn
data
network protocol
protocol analyzer
data field
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
CN201811148937.8A
Other languages
Chinese (zh)
Other versions
CN109089278A (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 CN201811148937.8A priority Critical patent/CN109089278B/en
Publication of CN109089278A publication Critical patent/CN109089278A/en
Application granted granted Critical
Publication of CN109089278B publication Critical patent/CN109089278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • 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 device, which are used for testing a northbound interface of a sensor gateway, wherein the northbound interface is used for connecting the sensor gateway and a telecommunication network, and the method comprises the following steps: reporting data to a service application management system through a WSN node; acquiring a data domain load of the WSN network protocol analyzer corresponding to data reported by the WSN node through the WSN network protocol analyzer; acquiring a data field load of the telecommunication network protocol analyzer, which is forwarded by the sensor gateway and corresponds to the data reported by the WSN node, by the telecommunication network protocol analyzer; and generating a test result of the northbound interface according to the data field load of the WSN and the data field load of the telecommunication network protocol analyzer. The invention can realize the intercommunication test of the northbound interface of the sensor gateway in the environment of fusing the telecommunication network and the WSN network and under the condition that the service mode of the sensor gateway is a channel mode or a non-channel mode.

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 cannot realize the intercommunication test of the northbound interface 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 technical problem in the prior art, and provides an interface testing method and device, which can realize the intercommunication test of the northbound 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 northbound interface of a sensor gateway, where the northbound interface is used to connect the sensor gateway and a telecommunication network, and the method includes:
reporting data to a service application management system through a WSN node;
acquiring a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node through the WSN network protocol analyzer;
acquiring a data field load of the telecommunication network protocol analyzer, which is forwarded by a sensor gateway and corresponds to the data reported by the WSN node, by the telecommunication network protocol analyzer;
and generating a test result of the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer.
Optionally, before reporting the data to the service application management system through the WSN node, 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, the service mode of the sensor gateway is a channel mode, and the generating a test result of the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer includes:
and judging whether the data field load of the WSN network protocol analyzer is the same as the data field load of the telecommunication network protocol analyzer, if so, generating a test result of the northbound interface as a test pass.
Optionally, a service mode of the sensor gateway is a non-channel mode, and before reporting data to the service application management system through the WSN node, the method further includes:
the method comprises the steps of 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.
Optionally, the service mode of the sensor gateway is a non-channel mode, and the reporting of the data to the service application management system by the WSN node specifically includes:
respectively reporting data to a service application management system through the first WSN node and the second WSN node in the preset period;
the acquiring, by the WSN network protocol analyzer, a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node is specifically:
acquiring a first data domain load corresponding to the data reported by the first WSN node and a second data domain load corresponding to the data reported by the second WSN node through a WSN network protocol analyzer;
the test result of generating the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer is specifically as follows:
and judging whether the data domain load of the telecommunication network protocol analyzer comprises the first data domain load and the second data domain load, if so, generating a test result of the northbound interface as a test pass.
To achieve the above object, accordingly, the present invention further provides an interface testing apparatus for testing a northbound interface of a sensor gateway, where the northbound interface is used to connect the sensor gateway and a telecommunication network, the apparatus including:
the reporting module is used for reporting data to the service application management system through the WSN node;
the acquisition module is used for acquiring a WSN (wireless sensor network) network protocol analyzer data field load corresponding to the WSN node reported data through a WSN (wireless sensor network) network protocol analyzer and acquiring a telecommunication network protocol analyzer data field load which is forwarded by a sensor gateway and corresponds to the WSN node reported data through a telecommunication network protocol analyzer;
and the generating module is used for generating a test result of the northbound interface according to the data field load of the WSN and the data field load of the telecommunication network protocol analyzer.
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 service mode of the sensor gateway is a channel mode, and the generating module includes:
the judging submodule is used for judging whether the data field load of the WSN network protocol analyzer is the same as the data field load of the telecommunication network protocol analyzer or not;
and the generating submodule is used for generating a test result of the northbound interface as a test pass when the data field load of the WSN network protocol analyzer is judged to be the same as the data field load of the telecommunication network protocol analyzer.
Optionally, the service mode of the sensor gateway is a non-channel mode, and the interface testing apparatus further includes:
the configuration module is used for configuring the data reporting mode of the WSN node into a periodic reporting mode through the service application management system and configuring the preset period of the periodic reporting mode.
Optionally, the service mode of the sensor gateway is a non-channel mode,
the reporting module is specifically configured to report data to a service application management system through the first WSN node and the second WSN node in the preset period, respectively;
the acquisition module is specifically used for acquiring a first data domain load corresponding to the data reported by the first WSN node and a second data domain load corresponding to the data reported by the second WSN node through a WSN network protocol analyzer;
the judging submodule is also used for judging whether the data field load of the telecommunication network protocol analyzer comprises the first data field load and the second data field load;
the generation submodule is further used for generating a test result of the northbound interface as a test pass when the data field load of the telecommunication network protocol analyzer is judged to comprise the first data field load and the second data field load.
The invention has the following beneficial effects:
the interface testing method provided by the invention is obtained by the WSN network protocol analyzer and connected with the WSN
The method comprises the steps that a WSN (wireless sensor network) network protocol analyzer data field load corresponding to data reported by a node is obtained through a telecommunication network protocol analyzer, the telecommunication network protocol analyzer data field load which is forwarded by a sensor gateway and corresponds to the data reported by the WSN node is obtained, a test result of a northbound interface is generated according to the WSN network protocol analyzer data field load and the telecommunication network protocol analyzer data field load, and the northbound interface intercommunication test of the sensor gateway can be realized in an environment of fusing the telecommunication network and the WSN and under the condition that a service mode of the sensor gateway is a channel mode or a non-channel mode.
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. 3a is a schematic flowchart of a first interface testing method according to an embodiment of the present invention;
fig. 3b is a schematic structural diagram of a first interface testing apparatus according to an embodiment of the present invention;
fig. 4a is a schematic flowchart of a second interface testing method according to an embodiment of the present invention;
fig. 4b is a schematic structural diagram of a second interface testing apparatus according to an embodiment of the present invention;
fig. 5a is a schematic flowchart of a third interface testing method according to an embodiment of the present invention;
fig. 5b is a schematic structural diagram of a third 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.
Those skilled in the art will appreciate that embodiments of the present invention may be implemented as a system,
An apparatus, a device, a method, or a 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 disclosed in this embodiment can be implemented in the environment shown in fig. 1 and under the interface testing topology shown in fig. 2.
Fig. 3a is a schematic flowchart of a first interface testing method according to an embodiment of the present invention, and fig. 3b is a schematic structural diagram of a first interface testing apparatus according to an embodiment of the present invention, where the method and the apparatus are used for testing a northbound interface of a sensor gateway, and the northbound interface is used for connecting the sensor gateway and a telecommunication network, as shown in fig. 3a, the method includes:
and step 101, reporting data to a service application management system through a WSN node.
And 102, acquiring a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node through the WSN network protocol analyzer.
And 103, acquiring a data field load of the telecommunication network protocol analyzer, which is forwarded by the sensor gateway and corresponds to the data reported by the WSN node, by the telecommunication network protocol analyzer.
And 104, generating a test result of a northbound interface according to the data field load of the WSN and the data field load of the telecommunication network protocol analyzer.
Correspondingly, this embodiment further provides a testing apparatus corresponding to the first interface testing method, as shown in fig. 3b, the apparatus includes: the device comprises a reporting module 11, an obtaining module 12 and a generating module 13. The reporting module 11 is configured to report data to the service application management system through the WSN node. The obtaining module 12 is configured to obtain, by a WSN network protocol analyzer, a WSN network protocol analyzer data field load corresponding to the WSN node report data, and obtain, by a telecommunications network protocol analyzer, a telecommunications network protocol analyzer data field load that is forwarded by a sensor gateway and corresponds to the WSN node report data. The generating module 13 is configured to generate a test result of the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer.
In the first interface testing method and apparatus provided in this embodiment, a WSN network protocol analyzer data field load corresponding to data reported by a WSN node is obtained by a WSN network protocol analyzer, a telecommunications network protocol analyzer data field load corresponding to data reported by the WSN node and forwarded by a sensor gateway is obtained by a telecommunications network protocol analyzer, and a testing result of a northbound interface is generated according to the WSN network protocol analyzer data field load and the telecommunications network protocol analyzer data field load, so that the northbound interface intercommunication test of the sensor gateway can be implemented in an environment where the telecommunications network and the WSN network are integrated and a service mode of the sensor gateway is a channel mode or a non-channel mode.
Fig. 4a is a schematic flowchart of a second interface testing method according to an embodiment of the present invention, and fig. 4b is a schematic structural diagram of a second interface testing apparatus according to an embodiment of the present invention, where the method and apparatus are used to test a northbound interface of a sensor gateway, and the northbound interface is used to connect the sensor gateway and a telecommunication network, as shown in fig. 4a, the method includes:
step 201, building an interface test environment.
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.
And step 202, reporting the data to a service application management system through the WSN node.
Specifically, the WSN node is triggered so that the WSN node reports data to the service application management system, and the data reported by the WSN node needs to be forwarded through the sensor gateway to be transmitted to 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 second interface testing method provided by the embodiment of the invention is suitable for the condition that the service mode of the sensor gateway is the channel mode, under the channel mode, the sensor gateway is only used as one node between the service application management system in the telecommunication network and the WSN node in the WSN network, the sensor gateway does not process data transmitted between the service application management system and the WSN node, and the service application management system directly manages the WSN node.
And 203, acquiring a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node through the WSN network protocol analyzer.
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.
And 204, acquiring the data field load of the telecommunication network protocol analyzer which is forwarded by the sensor gateway and corresponds to the data reported by the WSN node through the telecommunication 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.
And in the process of reporting the data to the service application management system by the WSN node, both the WSN protocol analyzer and the telecommunication network protocol analyzer can acquire the data field load corresponding to the data reported by the WSN node. In this embodiment, the data domain load corresponding to the data reported by the WSN node, which is obtained by the WSN network protocol analyzer, is recorded as WSN network protocol analyzer data domain load D1, and the data domain load corresponding to the data reported by the WSN node, which is obtained by the telecommunication network protocol analyzer and is forwarded by the sensor gateway, is recorded as telecommunication network protocol analyzer data domain load D2.
Step 205, judging whether the data field load of the WSN network protocol analyzer is the same as the data field load of the telecommunication network protocol analyzer, if so, executing step 206; if not, go to step 207.
Specifically, it is determined whether the WSN network protocol analyzer data field payload D1 and the telecommunications network protocol analyzer data field payload D2 are the same.
And step 206, generating a test result of the northbound interface, wherein the test result of the northbound interface is that the test is passed, and the process is ended.
When the WSN network protocol analyzer data field load D1 and the telecommunication network protocol analyzer data field load D2 are the same, it indicates that the interworking function of the northbound interface of the sensor gateway is normal and the generated test result of the northbound interface is that the test is passed when the service mode of the sensor gateway is the channel mode. The test result of the northbound interface is that the test is passed and can also be used to indicate that the sensor gateway is functioning properly if the service mode is the channel mode.
And step 207, generating a test result of the northbound interface, wherein the test result of the northbound interface is that the test fails, and the process is ended.
When the WSN network protocol analyzer data field load D1 and the telecommunication network protocol analyzer data field load D2 are different, it indicates that, when the service mode of the sensor gateway is the channel mode, the interworking function of the northbound interface of the sensor gateway fails, and the generated test result of the northbound interface is that the test fails. The test result of the northbound interface is that a test pass can also be used to indicate a functional failure of the sensor gateway if the service mode is the channel mode.
Correspondingly, this embodiment further provides a testing apparatus corresponding to the second interface testing method, as shown in fig. 4b, the apparatus includes: the device comprises a reporting module 11, an obtaining module 12 and a generating module 13. The reporting module 11 is configured to report data to the service application management system through the WSN node. The obtaining module 12 is configured to obtain, by a WSN network protocol analyzer, a WSN network protocol analyzer data field load corresponding to the WSN node report data, and obtain, by a telecommunications network protocol analyzer, a telecommunications network protocol analyzer data field load that is forwarded by a sensor gateway and corresponds to the WSN node report data. The generating module 13 is configured to generate a test result of the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer.
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 service mode of the sensor gateway is a channel mode, and the generating module 13 includes a determining submodule 131 and a generating submodule 132. The determining submodule 131 is configured to determine whether the WSN network protocol analyzer data field load is the same as the telecommunication network protocol analyzer data field load. The generating submodule 132 is configured to generate a test result of the northbound interface as a test pass when it is determined that the WSN network protocol analyzer data field load is the same as the telecommunications network protocol analyzer data field load.
In the second interface testing method and apparatus provided in this embodiment, a WSN network protocol analyzer data field load corresponding to data reported by a WSN node is obtained by the WSN network protocol analyzer, a telecommunications network protocol analyzer data field load corresponding to data reported by the WSN node and forwarded by the sensor gateway is obtained by the telecommunications network protocol analyzer, and a testing result of a northbound interface is generated according to the WSN network protocol analyzer data field load and the telecommunications network protocol analyzer data field load.
Fig. 5a is a schematic flowchart of a third interface testing method according to an embodiment of the present invention, and fig. 5b is a schematic structural diagram of a third interface testing apparatus according to an embodiment of the present invention, where the method and the apparatus are used to test a northbound interface of a sensor gateway, and the northbound interface is used to connect the sensor gateway and a telecommunication network, as shown in fig. 5a, the method includes:
and 301, building an interface test environment.
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 302, configuring a 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 step 303, reporting data to a service application management system through the first WSN node and the second WSN node respectively in the preset period.
And in a preset period p, triggering a first WSN node and a second WSN node in the WSN for the first WSN node and the second WSN node to respectively report data to a service application management system. And the data reported by the first WSN node and the second WSN node are forwarded by the sensor gateway to be transmitted to 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 third interface testing method provided by the embodiment of the invention is suitable for the condition that the service mode of the sensor gateway is a non-channel mode, wherein the non-channel mode comprises a mode that a business application management system manages to a gateway and a mode that the business application management system manages to a WSN node:
under the mode that the service application management system is managed to the gateway, the service application management system in the telecommunication network does not relate to the management of WSN nodes in the WSN, all the WSN nodes do not directly communicate with the service application management system, and the service application management system only manages the sensor gateway. The sensor gateway is specifically used for converging the reported data of the WSN node and providing the reported data to the service application management system. Meanwhile, the sensor gateway also receives various management and operations of the service application management system, processes the management and operations in the WSN, and reports a result generated after processing to the service application management system.
Under the mode that the service application management system is managed to the WSN nodes, the service application management system manages the sensor gateway and each WSN node in the WSN, the sensor gateway is used for assisting the service application management system in managing the WSN nodes, the management and data processing of the WSN nodes are processed by the sensor gateway, the sensor gateway is used for carrying out aggregation, format encapsulation and uploading on data reported by the WSN nodes on one hand, and is used for carrying out command analysis, format conversion and result report on management commands of the service application management system on the other hand. The business application management system manages to the WSN node mode without including a channel mode, which is different from the channel mode.
And 304, acquiring a first data field load corresponding to the data reported by the first WSN node and a second data field load corresponding to the data reported by the second WSN node by using a WSN network protocol analyzer.
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.
And in the process of reporting the data to the service application management system by the first WSN node and the second WSN node, the WSN network protocol analyzer can acquire data domain loads corresponding to the data reported by the first WSN node and the data reported by the second WSN node. In this embodiment, data domain loads corresponding to data reported by the first WSN node and data reported by the second WSN node, which are respectively obtained by the WSN network protocol analyzer, are recorded as a first data domain load D1 and a second data domain load D2.
And 305, acquiring a data field load of the telecommunication network protocol analyzer, which is forwarded by the sensor gateway and corresponds to the data reported by the WSN node, by the telecommunication 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 nodes described in step 305 include a first WSN node and a second WSN node. Specifically, the sensor gateway processes the first WSN node reported data and the second WSN node reported data to generate WSN node reported data, and forwards the WSN node reported data to the service application management system. And recording the data domain load which is obtained by the telecommunication network protocol analyzer, forwarded by the sensor gateway and corresponds to the data reported by the WSN node as the telecommunication network protocol analyzer data domain load D3.
Step 306, judging whether the data field load of the telecommunication network protocol analyzer comprises the first data field load and the second data field load, if so, executing step 307; if not, go to step 308.
Specifically, it is determined whether the telecommunication network protocol analyzer data field payload D3 includes the first data field payload D1 and the second data field payload D2.
And 307, generating a test result of the northbound interface, wherein the test result of the northbound interface is that the test is passed, and the process is ended.
When the telecommunication network protocol analyzer data field payload D3 includes the first data field payload D1 and the second data field payload D2, it indicates that, in the case that the service mode of the sensor gateway is the non-channel mode, the interworking function of the northbound interface of the sensor gateway is normal, and the generated test result of the northbound interface is that the test is passed. The test result of the northbound interface is that the test is passed, and the test is also used for indicating that the sensor gateway is in normal function under the condition that the service mode is the non-channel mode.
And 308, generating a test result of the northbound interface, wherein the test result of the northbound interface is that the test fails, and the process is ended.
When the telecommunication network protocol analyzer data field load D3 does not include the first data field load D1 or the second data field load D2, it indicates that the interworking function of the northbound interface of the sensor gateway is failed in the case that the service mode of the sensor gateway is the non-channel mode, and the generated test result of the northbound interface is that the test fails. The test result of the northbound interface is that the test is passed, and the test is also used for indicating that the sensor gateway has a functional fault when the service mode is the non-channel mode.
Correspondingly, this embodiment further provides a testing apparatus corresponding to the third interface testing method, as shown in fig. 5b, the apparatus includes: the device comprises a reporting module 11, an obtaining module 12 and a generating module 13. The reporting module 11 is configured to report data to the service application management system through the WSN node. The obtaining module 12 is configured to obtain, by a WSN network protocol analyzer, a WSN network protocol analyzer data field load corresponding to the WSN node report data, and obtain, by a telecommunications network protocol analyzer, a telecommunications network protocol analyzer data field load that is forwarded by a sensor gateway and corresponds to the WSN node report data. The generating module 13 is configured to generate a test result of the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer.
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 apparatus also comprises a configuration module 15. 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.
Further, the service mode of the sensor gateway is a non-channel mode, and the generating module 13 includes a determining submodule 131 and a generating submodule 132.
The reporting module 11 is specifically configured to report data to a service application management system through the first WSN node and the second WSN node in the preset period, respectively. The obtaining module 12 is specifically configured to obtain, by a WSN network protocol analyzer, a first data domain load corresponding to the data reported by the first WSN node and a second data domain load corresponding to the data reported by the second WSN node. The determining sub-module 131 is further configured to determine whether the data field payload of the telecommunication network protocol analyzer includes the first data field payload and the second data field payload. The generating sub-module 132 is further configured to generate a test result of the northbound interface as a test pass when it is determined that the data field load of the telecommunication network protocol analyzer includes the first data field load and the second data field load.
In the third interface testing method and apparatus provided in this embodiment, a WSN network protocol analyzer obtains a first data field load corresponding to data reported by a first WSN node and a second data field load corresponding to data reported by a second WSN node, and a telecommunications network protocol analyzer obtains a data field load of the telecommunications network protocol analyzer, which is forwarded by a sensor gateway and corresponds to the data reported by the WSN node, and generates a testing result of a northbound interface according to the data field load of the WSN network protocol analyzer, the first data field load, and the second data field load, so that the northbound interface intercommunication test of the sensor gateway can be implemented in an environment in which the telecommunications network and the WSN network are integrated and under the condition that a service mode of the sensor gateway is a non-channel mode, thereby implementing a functional test on the sensor gateway.
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.
Further, the embodiment of the invention also provides an interface testing system, which comprises a sensor gateway and the interface testing device. The interface test system provided by the embodiment can realize the intercommunication test of the northbound interface of the sensor gateway in the environment fusing the telecommunication network and the WSN network and under the condition that the service mode of the sensor gateway is the channel mode or the non-channel mode.
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 (6)

1. An interface testing method for testing a northbound interface of a sensor gateway, the northbound interface for connecting the sensor gateway to a telecommunications network, the method comprising:
reporting data to a service application management system through a WSN node;
acquiring a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node through the WSN network protocol analyzer;
acquiring a data field load of the telecommunication network protocol analyzer, which is forwarded by a sensor gateway and corresponds to the data reported by the WSN node, by the telecommunication network protocol analyzer;
generating a test result of a northbound interface according to the data field load of the WSN and the data field load of the telecommunication network protocol analyzer;
before reporting data to the service application management system through the WSN node, the method further includes:
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;
the service mode of the sensor gateway is a channel mode, and the test result of generating the northbound interface according to the data field load of the WSN analyzer and the data field load of the telecommunication network analyzer comprises the following steps:
and judging whether the data field load of the WSN network protocol analyzer is the same as the data field load of the telecommunication network protocol analyzer, if so, generating a test result of the northbound interface as a test pass.
2. The interface testing method according to claim 1, wherein a service mode of the sensor gateway is a non-channel mode, and before the reporting of the data to the service application management system by the WSN node, the method further comprises:
the method comprises the steps of 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.
3. The interface testing method according to claim 2, wherein the service mode of the sensor gateway is a non-channel mode, and the reporting of the data to the service application management system via the WSN node specifically comprises:
respectively reporting data to a service application management system through a first WSN node and a second WSN node in the preset period;
the acquiring, by the WSN network protocol analyzer, a data field load of the WSN network protocol analyzer corresponding to the data reported by the WSN node is specifically:
acquiring a first data domain load corresponding to the data reported by the first WSN node and a second data domain load corresponding to the data reported by the second WSN node through a WSN network protocol analyzer;
the test result of generating the northbound interface according to the data field load of the WSN network protocol analyzer and the data field load of the telecommunication network protocol analyzer is specifically as follows:
and judging whether the data domain load of the telecommunication network protocol analyzer comprises the first data domain load and the second data domain load, if so, generating a test result of the northbound interface as a test pass.
4. An interface testing apparatus for testing a northbound interface of a sensor gateway, the northbound interface for connecting the sensor gateway to a telecommunications network, the apparatus comprising:
the reporting module is used for reporting data to the service application management system through the WSN node;
the acquisition module is used for acquiring a WSN (wireless sensor network) network protocol analyzer data field load corresponding to the WSN node reported data through a WSN (wireless sensor network) network protocol analyzer and acquiring a telecommunication network protocol analyzer data field load which is forwarded by a sensor gateway and corresponds to the WSN node reported data through a telecommunication network protocol analyzer;
the generating module is used for generating a test result of a northbound interface according to the data field load of the WSN and the data field load of the telecommunication network protocol analyzer;
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 service mode of the sensor gateway is a channel mode, and the generation module comprises:
the judging submodule is used for judging whether the data field load of the WSN network protocol analyzer is the same as the data field load of the telecommunication network protocol analyzer or not;
and the generating submodule is used for generating a test result of the northbound interface as a test pass when the data field load of the WSN network protocol analyzer is judged to be the same as the data field load of the telecommunication network protocol analyzer.
5. The interface testing device of claim 4, wherein the service mode of the sensor gateway is a non-channel mode, the interface testing device further comprising:
the configuration module is used for configuring the data reporting mode of the WSN node into a periodic reporting mode through the service application management system and configuring the preset period of the periodic reporting mode.
6. The interface testing device of claim 5, wherein the service mode of the sensor gateway is a non-channel mode,
the reporting module is specifically configured to report data to a service application management system through the first WSN node and the second WSN node in the preset period, respectively;
the acquisition module is specifically used for acquiring a first data domain load corresponding to the data reported by the first WSN node and a second data domain load corresponding to the data reported by the second WSN node through a WSN network protocol analyzer;
the judging submodule is also used for judging whether the data field load of the telecommunication network protocol analyzer comprises the first data field load and the second data field load;
the generation submodule is further used for generating a test result of the northbound interface as a test pass when the data field load of the telecommunication network protocol analyzer is judged to comprise the first data field load and the second data field load.
CN201811148937.8A 2018-09-29 2018-09-29 Interface testing method and device Active CN109089278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811148937.8A CN109089278B (en) 2018-09-29 2018-09-29 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811148937.8A CN109089278B (en) 2018-09-29 2018-09-29 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN109089278A CN109089278A (en) 2018-12-25
CN109089278B true CN109089278B (en) 2022-04-01

Family

ID=64842939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811148937.8A Active CN109089278B (en) 2018-09-29 2018-09-29 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN109089278B (en)

Citations (8)

* 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
CN102271162A (en) * 2011-08-03 2011-12-07 南京中兴新软件有限责任公司 Platform as a service (PAAS)-cloud-based telecommunication comprehensive service platform system and using method
CN102469546A (en) * 2010-11-19 2012-05-23 中兴通讯股份有限公司 Combined network, method for processing reported data of WSN terminal, and WSN gateway
CN102685787A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network into telecommunication network
CN102685786A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network (WSN) to telecommunication network
CN103067958A (en) * 2012-12-28 2013-04-24 中国科学院深圳先进技术研究院 Network convergence testing method and system of wireless sensor network and mobile communication network
CN103533574A (en) * 2013-10-09 2014-01-22 中国联合网络通信集团有限公司 Method and device for data transmission between wireless sensor network and internet
CN105682121A (en) * 2016-01-29 2016-06-15 中国联合网络通信集团有限公司 Data acquisition method for sensor network, gateway and data acquisition system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457877B (en) * 2010-11-01 2016-07-27 中兴通讯股份有限公司 In conjunction with network, the method processing WSN terminal processes data and WSN gateway
KR101438606B1 (en) * 2012-12-20 2014-09-15 현대자동차 주식회사 Virtual sensor network system for convergence of heterogeneous sensors
US20160337786A1 (en) * 2014-01-31 2016-11-17 National Institute Of Information And Communications Technology Dynamic mobile sensors network platform for identifier-based communication
CN104185307B (en) * 2014-09-05 2017-10-24 苏州大学 A kind of integrated WSN intelligence sensors unified interface system of facing agricultural greenhouse
CN104219247A (en) * 2014-09-22 2014-12-17 中国科学院上海微系统与信息技术研究所 Method for accessing IP network to wireless multimedia sensor network
US10009783B2 (en) * 2016-09-27 2018-06-26 King Fahd University Of Petroleum And Minerals Energy efficient data collection routing protocol for wireless rechargeable sensor networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469546A (en) * 2010-11-19 2012-05-23 中兴通讯股份有限公司 Combined network, method for processing reported data of WSN terminal, and WSN gateway
CN102083123A (en) * 2011-03-01 2011-06-01 中国联合网络通信集团有限公司 Gateway test method, device and system
CN102685787A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network into telecommunication network
CN102685786A (en) * 2011-03-18 2012-09-19 中兴通讯股份有限公司 Method and system for accessing wireless sensor network (WSN) to telecommunication network
CN102271162A (en) * 2011-08-03 2011-12-07 南京中兴新软件有限责任公司 Platform as a service (PAAS)-cloud-based telecommunication comprehensive service platform system and using method
CN103067958A (en) * 2012-12-28 2013-04-24 中国科学院深圳先进技术研究院 Network convergence testing method and system of wireless sensor network and mobile communication network
CN103533574A (en) * 2013-10-09 2014-01-22 中国联合网络通信集团有限公司 Method and device for data transmission between wireless sensor network and internet
CN105682121A (en) * 2016-01-29 2016-06-15 中国联合网络通信集团有限公司 Data acquisition method for sensor network, gateway and data acquisition system

Also Published As

Publication number Publication date
CN109089278A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN103428627B (en) The transfer approach of data, Internet of things system and related device in Internet of things system
US10187272B2 (en) Interface management service entity, function service entity, and element management method
US11032126B2 (en) Diagnostic traffic generation for automatic testing and troubleshooting
EP3335374B1 (en) Automatic symptom data collection in cloud deployment
EP3742786A1 (en) Network alarm method, device, system and terminal
CN103139150A (en) Terminal adaptation processing method, protocol adaptation module and terminal
US10129774B2 (en) Methods and apparatuses of WLAN alarm notification in cellular networks
WO2016082476A1 (en) Service testing method and apparatus
CN111865633B (en) Communication method, device and system
CN105577463A (en) Testing method and testing device based on communication protocol
CN112584398B (en) Data processing method, device and storage medium
CN109286536B (en) Interface testing method and device
Goshi et al. PP5GS-an efficient procedure-based and stateless architecture for next generation core networks
CN114205866A (en) Deterministic information reporting and issuing method and device, storage medium and electronic equipment
CN106407061A (en) Northbound interface testing device and northbound interface testing method
CN109089278B (en) Interface testing method and device
CN105320604A (en) Automated testing system and method
Ungureanu et al. Leveraging the cloud-native approach for the design of 5G NextGen Core Functions
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
CN102457881B (en) Conformance testing method and system
CN112019491A (en) Message processing method and system
CN115333980B (en) Test method, second edge node equipment and edge gateway
CN111030860B (en) Network management device, method, terminal and medium based on OpenDayLight
Alcalde Cespedes Log-based monitoring, detection and automated correction of anomalies in the 5G Core

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