CN107197029B - Terminal equipment off-line detection method and system based on edge forwarding node - Google Patents

Terminal equipment off-line detection method and system based on edge forwarding node Download PDF

Info

Publication number
CN107197029B
CN107197029B CN201710463180.0A CN201710463180A CN107197029B CN 107197029 B CN107197029 B CN 107197029B CN 201710463180 A CN201710463180 A CN 201710463180A CN 107197029 B CN107197029 B CN 107197029B
Authority
CN
China
Prior art keywords
offline
forwarding node
terminal equipment
edge forwarding
aggregation unit
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
CN201710463180.0A
Other languages
Chinese (zh)
Other versions
CN107197029A (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.)
Shenzhen Shenglu IoT Communication Technology Co Ltd
Original Assignee
Shenzhen Shenglu IoT Communication Technology 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 Shenzhen Shenglu IoT Communication Technology Co Ltd filed Critical Shenzhen Shenglu IoT Communication Technology Co Ltd
Priority to CN201710463180.0A priority Critical patent/CN107197029B/en
Priority to PCT/CN2017/098502 priority patent/WO2018232966A1/en
Publication of CN107197029A publication Critical patent/CN107197029A/en
Application granted granted Critical
Publication of CN107197029B publication Critical patent/CN107197029B/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/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • H04W4/185Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals by embedding added-value information into content, e.g. geo-tagging

Abstract

The embodiment of the invention relates to the technical field of Internet of things, and discloses a terminal device offline detection method and system based on an edge forwarding node, wherein the method comprises the following steps: the method comprises the steps that an edge forwarding node monitors terminal equipment in a designated area within a preset time period to obtain the offline number of offline terminal equipment in the designated area; the edge forwarding node judges whether the offline number reaches a preset reporting number or not; if the offline number reaches the preset reporting number, the edge forwarding node acquires the equipment identifier or the IP address of the offline terminal equipment; the edge forwarding node encapsulates the equipment identifier or the IP address into a data packet and sends the data packet to the aggregation unit; the embodiment of the invention is used for accurately detecting the off-line terminal equipment in the designated area so as to ensure the number of the terminal equipment used for acquiring data in the designated area and ensure the reliability of data information.

Description

Terminal equipment off-line detection method and system based on edge forwarding node
Technical Field
The invention relates to the technical field of Internet of things, in particular to a terminal device offline detection method and system based on edge forwarding nodes.
Background
The internet of things is a network extended and expanded on the basis of the internet, and network terminal equipment is extended and expanded among any equipment for data exchange and communication, wherein the terminal equipment comprises 'dumb equipment', such as soil moisture-sensitive elements, street lamps, sound sensors and the like. The terminal equipment accesses the Internet of things through a forwarding node in the Internet of things and uploads data to the aggregation unit, wherein the aggregation unit is used for analyzing and processing data streams generated by countless terminal equipment and can also acquire information or configure terminal equipment parameters and the like by sending instructions.
Terminal equipment in the internet of things must be capable of independently and autonomously operating, and in a specific scene, the online number of the terminal equipment in a designated area needs to be ensured, the terminal equipment with enough online number reports data to the aggregation unit, and the reliability of information is ensured through the online number of the terminal equipment, so that the terminal equipment needs to be monitored in real time.
Disclosure of Invention
The embodiment of the invention discloses a terminal equipment offline detection method and system based on an edge forwarding node, which are used for accurately detecting offline terminal equipment in a designated area so as to ensure the number of terminal equipment used for acquiring information in the designated area and ensure the reliability of data information.
The invention discloses a terminal device off-line detection method based on an edge forwarding node in a first aspect, which comprises the following steps:
the method comprises the steps that an edge forwarding node monitors terminal equipment in a specified area within a preset time period to obtain the offline number of the offline terminal equipment in the specified area;
the edge forwarding node judges whether the offline number reaches a preset reporting number or not;
if the offline number reaches the preset reporting number, the edge forwarding node acquires a device identifier or an Internet Protocol Address (IP for short) of the offline terminal device;
and the edge forwarding node encapsulates the equipment identifier or the IP address into a data packet and sends the data packet to a convergence unit.
As an optional implementation manner, in the first aspect of the present invention, the intercepting, by the edge forwarding node, a terminal device in a specified area within a preset time period to obtain an offline number of offline terminal devices in the specified area includes:
the method comprises the steps that the edge forwarding node monitors heartbeat data packets sent by terminal equipment in a specified area in a preset time period, and identifies off-line terminal equipment which does not send the heartbeat data packets in the specified area in the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment in the specified area.
As an optional implementation manner, in the first aspect of the present invention, after the edge forwarding node listens to the terminal devices in the designated area within a preset time period to obtain the offline number of the offline terminal devices in the designated area, and before the edge forwarding node determines whether the offline number reaches a preset reporting number, the method further includes:
the edge forwarding node determines whether the offline terminal equipment belongs to the activated terminal equipment in the designated area indicated by the information statistical table according to the information statistical table of all the terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area;
and if the offline terminal equipment belongs to the terminal equipment in the specified area indicated by the information statistical table, the edge forwarding node executes a step of judging whether the offline number reaches a preset reporting number.
As an optional implementation manner, in the first aspect of the present invention, the intercepting, by the edge forwarding node, a terminal device in a specified area within a preset time period to obtain an offline number of offline terminal devices in the specified area includes:
the edge forwarding node determines all activated terminal equipment in the designated area according to the information statistical table of all terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area;
the edge forwarding node monitors heartbeat data packets sent by activated terminal equipment in the designated area within a preset time period, and identifies offline terminal equipment which does not send the heartbeat data packets within the designated area within the preset time period according to the monitored heartbeat data packets so as to obtain the offline number of the offline terminal equipment.
As an optional implementation manner, in the first aspect of the present invention, the encapsulating, by the edge forwarding node, the device identifier or the IP address into a data packet, and sending the data packet to a convergence unit includes:
the edge forwarding node acquires the offline time length of the offline terminal equipment, encapsulates the offline time length, the equipment identification or the IP address into a data packet, and sends the data packet to the aggregation unit;
after receiving the data packet, the aggregation unit acquires relevant information of the offline terminal device, wherein the relevant information includes a working environment where the offline terminal device is located, a position where the offline terminal device is located in the working environment, a device type, a device identifier and an IP address;
and the convergence unit analyzes the reason for causing the offline terminal equipment to be offline according to the related information and sends out early warning.
The second aspect of the present invention discloses an offline detection system for a terminal device based on an edge forwarding node, which may include:
the terminal equipment is arranged in a designated area within the wireless coverage range of the edge forwarding node and used for receiving the monitoring of the edge forwarding node within a preset time period;
the edge forwarding node is used for monitoring the terminal equipment in the designated area within a preset time period so as to obtain the offline number of the offline terminal equipment in the designated area;
the edge forwarding node is further configured to determine whether the offline number reaches a preset reporting number;
the edge forwarding node is further configured to acquire a device identifier or an internet protocol IP address of the offline terminal device when the offline number reaches the preset reporting number;
the edge forwarding node is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit;
and the aggregation unit is used for receiving the data packet sent by the edge forwarding node.
As an optional implementation manner, in the second aspect of the present invention, the manner in which the edge forwarding node is configured to listen to the terminal device in the designated area within a preset time period to obtain the offline number of the offline terminal device in the designated area is specifically:
the edge forwarding node is used for monitoring heartbeat data packets sent by terminal equipment in a specified area in a preset time period, and identifying off-line terminal equipment which is not sent the heartbeat data packets in the specified area in the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment in the specified area.
As an optional implementation manner, in the second aspect of the present invention, the edge forwarding node is further configured to, after monitoring terminal devices in a specified area within a preset time period to obtain an offline number of offline terminal devices in the specified area, and before determining whether the offline number reaches a preset reporting number, determine whether the offline terminal device belongs to an activated terminal device in the specified area indicated by the information statistics table according to the information statistics table of all terminal devices in the specified area issued by a convergence unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area; and if the offline terminal equipment belongs to the terminal equipment in the specified area indicated by the information statistical table, judging whether the offline number reaches a preset reporting number.
As an optional implementation manner, in the second aspect of the present invention, the manner in which the edge forwarding node is configured to listen to the terminal device in the designated area within a preset time period to obtain the offline number of the offline terminal device in the designated area is specifically:
the edge forwarding node is used for determining all activated terminal equipment in the designated area according to the information statistical table of all terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area; monitoring heartbeat data packets sent by activated terminal equipment in the designated area within a preset time period, and identifying off-line terminal equipment which does not send the heartbeat data packets in the designated area within the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment.
As an optional implementation manner, in the second aspect of the present invention, the manner in which the edge forwarding node is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit is specifically:
the edge forwarding node is further configured to obtain an offline duration of the offline terminal device, encapsulate the offline duration, the device identifier, or the IP address into a data packet, and send the data packet to the aggregation unit;
after receiving the data packet sent by the edge forwarding node, the aggregation unit acquires relevant information of the offline terminal device, wherein the relevant information includes a working environment where the offline terminal device is located, a location where the offline terminal device is located in the working environment, a device type, a device identifier, and an IP address; and analyzing the reason for causing the offline terminal equipment to be offline according to the related information, and sending out early warning.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the edge forwarding node monitors the terminal equipment in the designated area within a preset time period to obtain the offline number of the offline terminal equipment in the designated area, acquires the equipment identifier or the IP address of the offline terminal equipment when judging that the offline number reaches the preset reporting number, and then encapsulates the equipment identifier or the IP address into a data packet which is then sent to the aggregation unit. Therefore, by implementing the embodiment of the invention, the offline number of the offline terminal equipment in the designated area can be effectively detected in time, so that the number of the terminal equipment used for acquiring information in the designated area is ensured, and the reliability of the data information is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture of an internet of things according to some embodiments of the present invention;
fig. 2 is a schematic flowchart of a method for offline detection of a terminal device based on an edge forwarding node according to an embodiment of the present invention;
fig. 3 is an interaction diagram of a terminal device offline detection method based on an edge forwarding node disclosed in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device offline detection system based on an edge forwarding node disclosed in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses an offline detection method of terminal equipment based on an edge forwarding node, which is used for accurately detecting offline terminal equipment in a designated area so as to ensure the number of terminal equipment for acquiring information and improve the reliability of data information. The embodiment of the invention also correspondingly discloses a terminal equipment offline detection system based on the edge forwarding node. The technical solution of the present invention will be described in detail with reference to the following embodiments.
Before the technical solution of the present invention is introduced through a specific embodiment, a schematic diagram of an internet of things architecture disclosed in some embodiments of the present invention is introduced, and as shown in fig. 1, the internet of things architecture may include three layers, namely a terminal device layer, a forwarding node layer, and a convergence unit layer, according to functional division. The terminal device layer comprises mass terminal devices located at the edge of the Internet of things, such as a hygrometer, a smoke sensor, a ventilation device, a rainfall sensor, an irrigation valve and the like; the forwarding node layer may include a large number of forwarding nodes that may be interconnected by a network (not all shown in fig. 1). In the forwarding node layer, the forwarding node may be various intermediate devices such as a router and a relay, which is not limited in the embodiment of the present invention. It should be specially noted that, a forwarding node in the forwarding node layer, which covers the terminal device through the wireless network and directly interacts with the terminal device, is called an edge forwarding node; the aggregation unit layer can comprise an aggregation unit, wherein the aggregation unit uses a human-computer interface of crop networking in the architecture of the internet of things, is used for carrying out high-level management on the whole internet of things through a forwarding node, and comprises the steps of collecting data reported by massive terminal equipment within a certain period of time, analyzing and deciding the data, and then converting the data into a simple early warning, an abnormal report or a related report required by a user; the convergence unit can also obtain information or configure parameters of the terminal device by sending an instruction (at this time, the transmission of data points to the terminal device); the convergence unit may also introduce various input services, from big data to social networks, even from social tools "like" to weather sharing, etc. In addition, the forwarding node can use any standard networking protocol, and the forwarding node can realize data analysis among different network systems; in the internet of things architecture shown in fig. 1, each forwarding node may provide internet of things data transceiving service for a large number of terminal devices within a wireless coverage area of the forwarding node, where each terminal device within the wireless coverage area of each forwarding node may have a wireless communication module built therein, so that each forwarding node may perform wireless communication with each terminal device within the wireless coverage area of the forwarding node in a wireless network communication manner. In the internet of things architecture shown in fig. 1, when a wireless communication module built in a terminal device is produced, an upper frequency point 470MHz and a lower frequency point 510MHz can be input, so that the wireless communication module can automatically define a communication frequency band as 470 MHz-510 MHz to meet the specification of the SRRC standard in china; or, the upper frequency point 868MHz and the lower frequency point 908MHz can be input, so that the wireless communication module can automatically define the communication frequency band to 868 MHz-908 MHz to meet the provisions of the European ETSI standard; or, an upper frequency point 918MHz and a lower frequency point 928MHz can be input, so that the wireless communication module can automatically define the communication frequency band as 918 MHz-928 MHz to meet the specification of the American FCC standard; alternatively, the communication frequency band of the wireless communication module may be defined to comply with the provisions of the japanese ARIB standard or the canadian IC standard, and the embodiment of the present invention is not limited thereto. In the internet of things architecture shown in fig. 1, the terminal device may adopt a method of combining Frequency Division Multiplexing (FDMA), Frequency-Hopping Spread Spectrum (FHSS), Dynamic Time Division Multiplexing (DTDMA), and back-off multiplexing (CSMA) to solve the interference problem.
Example one
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for offline detection of a terminal device based on an edge forwarding node according to an embodiment of the present invention; in the method for offline detecting a terminal device based on an edge forwarding node shown in fig. 2, which is described from the perspective of the edge forwarding node of the internet of things architecture shown in fig. 1, with reference to fig. 1, the method for offline detecting a terminal device based on an edge forwarding node may include:
201. the method comprises the steps that an edge forwarding node monitors terminal equipment in a designated area within a preset time period to obtain the offline number of offline terminal equipment in the designated area;
the terminal device mentioned in the embodiment of the present invention may include a sensor, a smoke sensor, a hygrometer, a ventilator, and the like, which are not specifically limited in the embodiment of the present invention.
The designated area mentioned in the embodiment of the present invention may include a certain shed, a certain garage, a certain highway bridge, and the like in a certain farm, which is not specifically limited in the embodiment of the present invention.
The reasons for causing the terminal equipment in the designated area to be in the offline state in the embodiment of the invention comprise power supply faults, equipment hardware faults and the like. For example, hundreds of strain sensors are distributed at different positions of the highway bridge, and the strain sensors can collect data and report the data to the aggregation unit through the edge forwarding node, so as to monitor the state of the highway bridge. Among them, strain gauge sensors distributed on highway bridges are usually powered by "solar energy". Under normal conditions, as the sun moves, the strain gauge sensors positioned in the shadow areas stop transmitting data, and other strain gauge sensors irradiated by the sun transmit data; or the data transmission is interrupted due to the passing of the vehicle during the data transmission process of the strain gauge sensor. Although not all terminal devices can transmit data at any time, it can be ensured that a sufficient number of terminal devices are transmitting data at any time to ensure the reliability of the data information. In an abnormal situation, the terminal equipment in a certain small area is covered by the shadow for a long time, so that the online terminal equipment in the specified area is insufficient, and the reliability of the data information is influenced.
In the embodiment of the present invention, the preset time period may be set according to specific situations, for example, in the highway bridge described above, since the strain gauge sensor is powered by "solar energy", the power supply situation of the strain gauge sensor may change in a day, and a day may be used as a small period, and the preset time period is set to include multiple days.
As an optional implementation manner, the edge forwarding node receives an information statistics table issued by the aggregation unit, where the information statistics table includes a device identifier or an IP address of a terminal device in a specified area, and indicates that all the terminal devices in the specified area are in an activated state, that is, in an effective working state. Determining all activated terminal equipment in the designated area according to the information statistical table; the method comprises the steps that an edge forwarding node monitors heartbeat data packets sent by activated terminal equipment in a specified area within a preset time period; the edge forwarding node identifies offline terminal equipment (belonging to activated terminal equipment in the designated area) which does not send the heartbeat data packet in the designated area within a preset time period according to the monitored heartbeat data packet so as to obtain the offline number of the offline terminal equipment. Through the implementation mode, the determined off-line terminal devices are all terminal devices in an effective working state in the designated area.
202. The edge forwarding node judges whether the offline number reaches a preset reporting number or not;
if the offline number reaches the preset reporting number, turning to step 203; and if the offline quantity does not reach the preset reporting quantity, ending the process.
203. The edge forwarding node acquires an equipment identifier or an IP address of the offline terminal equipment;
as an optional implementation manner, the obtaining, by the edge forwarding node, the device identifier or the IP address of the offline terminal device specifically includes:
and the edge forwarding node acquires the equipment identifier or the IP address of the offline terminal equipment from the terminal equipment information table according to the determined offline terminal equipment.
204. The edge forwarding node encapsulates the device identifier or the IP address into a data packet and sends the data packet to the aggregation unit.
As an optional implementation manner, the edge forwarding node further obtains the offline duration of the offline terminal device, encapsulates the offline duration, the device identifier, or the IP address into a data packet, and sends the data packet to the aggregation unit. After receiving the data packet, the aggregation unit acquires relevant information of the offline terminal device, wherein the relevant information comprises a working environment where the offline terminal device is located, a position where the offline terminal device is located in the working environment, a device type, a device identifier and an IP address; and analyzing the reason for causing the offline terminal equipment to be offline according to the related information, and sending out an early warning. By the implementation mode, the edge forwarding node can know the offline duration of the offline terminal equipment, so that the reason for offline terminal equipment is further analyzed.
In the embodiment of the invention, the edge forwarding node monitors the terminal equipment in the designated area within a preset time period to obtain the offline number of the offline terminal equipment in the designated area, acquires the equipment identifier or the IP address of the offline terminal equipment when judging that the offline number reaches the preset reporting number, and then encapsulates the equipment identifier or the IP address into a data packet which is then sent to the aggregation unit. Therefore, by implementing the embodiment of the invention, the offline number of the offline terminal equipment in the designated area can be effectively detected in time, so that the number of the terminal equipment used for acquiring information in the designated area is ensured, and the reliability of the data information is improved.
Example two
Referring to fig. 3, fig. 3 is an interaction schematic diagram of a method for offline detection of a terminal device based on an edge forwarding node according to an embodiment of the present invention; with reference to fig. 1, the method for offline detecting a terminal device based on an edge forwarding node shown in fig. 3 may include:
301. the convergence unit sends an information statistical table to the edge forwarding node;
the information statistical table includes device identifiers or IP addresses of terminal devices in a designated area, and indicates that all the terminal devices in the designated area are in an activated state, that is, in a valid operating state.
302. Terminal equipment in the designated area sends heartbeat data packets to the edge forwarding node within a preset time period;
303. monitoring heartbeat data packets sent by terminal equipment in a specified area by an edge forwarding node in a preset time period;
304. the edge forwarding node identifies offline terminal equipment which does not send the heartbeat data packet in a preset time period in the designated area according to the monitored heartbeat data packet so as to obtain the offline number of the offline terminal equipment in the designated area;
305. the edge forwarding node determines whether the offline terminal equipment belongs to the activated terminal equipment in the specified area indicated by the information statistical table, judges whether the offline number reaches a preset reporting number when the offline terminal equipment belongs to the terminal equipment in the specified area indicated by the information statistical table, and encapsulates the equipment identification or the IP address into a data packet when the offline number reaches the preset reporting number;
306. the edge forwarding node sends the data packet to the aggregation unit;
as an optional implementation manner, before the edge forwarding node sends the data packet to the aggregation unit, the edge forwarding node determines whether the workload of the aggregation unit exceeds a threshold, and if the workload of the aggregation unit does not exceed the threshold (is equal to or less than the threshold), sends the data packet to the aggregation unit; and if the workload of the aggregation unit is lower than the threshold value, sending the data packet to the aggregation unit.
Further, before the edge forwarding node sends the data packet to the aggregation unit, the edge forwarding node receives a load indication sent by the aggregation unit, and when the edge forwarding node determines that the load indication indicates that the workload of the aggregation unit exceeds a threshold value, the edge forwarding node sends the data packet to the aggregation unit while waiting for the workload of the aggregation unit to be lower than the threshold value; and when the edge forwarding node determines that the load indication indicates that the workload of the aggregation unit does not exceed the threshold (equal to or less than the threshold), the edge forwarding node sends the data packet to the aggregation unit.
Further, the receiving, by the edge forwarding node, the load indication sent by the aggregation unit specifically includes: and the edge forwarding node receives the load indication of the aggregation unit forwarded by the filtering gateway. In this embodiment, the aggregation unit layer further includes a filtering gateway, where the filtering gateway monitors the workload of the aggregation unit in real time, and feeds the workload back to the edge forwarding node, so as to effectively control the workload of the aggregation unit, and avoid data loss or system crash of the aggregation unit due to an excessive workload of the aggregation unit.
307. The method comprises the steps that a gathering unit acquires relevant information of an offline terminal device, wherein the relevant information comprises a working environment where the offline terminal device is located, a position where the offline terminal device is located in the working environment, a device type, a device identifier and an IP address;
308. and the aggregation unit analyzes the reason for causing the offline terminal equipment to be offline according to the relevant information and sends out early warning.
In the embodiment, a convergence unit firstly issues an information statistic table to an edge forwarding node, a terminal device in a specified area sends a heartbeat data packet to the edge forwarding node within a preset time period, the edge forwarding node monitors the heartbeat data packet sent by the terminal device in the specified area within the preset time period, an offline terminal device in the specified area which does not send the heartbeat data packet within the preset time period is identified according to the monitored heartbeat data packet so as to obtain the offline number of the offline terminal devices in the specified area, when the edge forwarding node determines that the offline terminal device belongs to an activated terminal device in the specified area indicated by the information statistic table, the edge forwarding node further judges whether the offline number reaches a preset reporting number, and when the offline number reaches the preset reporting number, encapsulates a device identifier or an IP address into a data packet, and then sends the data packet to the convergence unit, the aggregation unit acquires relevant information of the offline terminal, analyzes the reason for offline of the offline terminal device, and performs early warning. By implementing the embodiment of the invention, the number of the offline terminal equipment in the designated area can be determined, and the potential abnormity or trend of the terminal equipment can be analyzed, so that the number of the online terminal equipment in the designated area is ensured, and the reliability of data information is improved.
EXAMPLE III
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device offline detection system based on an edge forwarding node according to an embodiment of the present invention; as shown in fig. 4, an offline detection system for a terminal device based on an edge forwarding node may include:
the terminal device 410 is arranged in a designated area within the wireless coverage range of the edge forwarding node 420 and receives the monitoring of the edge forwarding node 420 within a preset time period;
the edge forwarding node 420 is configured to monitor the terminal devices 410 in the designated area within a preset time period to obtain the offline number of the offline terminal devices in the designated area;
the edge forwarding node 420 is further configured to determine whether the offline number reaches a preset reporting number;
the edge forwarding node 420 is further configured to, when the offline number reaches a preset reporting number, obtain a device identifier or an internet protocol IP address of the offline terminal device;
the edge forwarding node 420 is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit 430;
the aggregation unit 430 is configured to receive the data packet sent by the edge forwarding node 420.
As an optional implementation manner, the specific manner for the edge forwarding node 420 to obtain the device identifier or the IP address of the offline terminal device is as follows:
the edge forwarding node 420 obtains the device identifier or the IP address of the offline terminal device from the terminal device information table according to the determined offline terminal device.
As an optional implementation manner, the edge forwarding node 420 receives an information statistics table sent by the aggregation unit 430, where the information statistics table includes device identifiers or IP addresses of the terminal devices 410 in a specified area, and indicates that all the terminal devices 410 in the specified area are in an activated state, that is, in a valid operating state. Determining all activated terminal devices 410 in the designated area according to the information statistical table; the edge forwarding node 420 monitors heartbeat data packets sent by activated terminal equipment in a specified area within a preset time period; the edge forwarding node 420 identifies, according to the monitored heartbeat data packets, an offline terminal device (belonging to the activated terminal device 410 in the designated area) in the designated area that does not send the heartbeat data packets within a preset time period, so as to obtain an offline number of the offline terminal devices. By this embodiment, all the determined offline terminal devices are terminal devices 410 in an effective working state in the designated area.
As an optional implementation manner, the manner in which the edge forwarding node 420 is configured to listen to the terminal device 410 in the specified area within a preset time period to obtain the offline number of the offline terminal devices in the specified area is specifically:
the edge forwarding node 420 is configured to monitor the heartbeat data packet sent by the terminal device 410 in the specified area within a preset time period, and identify an offline terminal device in the specified area that does not send the heartbeat data packet within the preset time period according to the monitored heartbeat data packet, so as to obtain an offline number of the offline terminal devices in the specified area.
As an optional implementation manner, the edge forwarding node 420 is further configured to, after monitoring the terminal devices 410 in the designated area within a preset time period to obtain the offline number of the offline terminal devices in the designated area, and before determining whether the offline number reaches the preset reporting number, determine whether the offline terminal devices belong to the activated terminal devices 410 in the designated area indicated by the information statistics table according to the information statistics table of all terminal devices in the designated area issued by the aggregation unit 430; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area; and if the offline terminal equipment belongs to the terminal equipment 410 in the specified area indicated by the information statistical table, judging whether the offline number reaches the preset reporting number.
As an optional implementation manner, the manner in which the edge forwarding node 420 is configured to listen to the terminal device 410 in the specified area within a preset time period to obtain the offline number of the offline terminal devices in the specified area is specifically:
the edge forwarding node 420 is configured to determine all activated terminal devices 410 in the designated area according to the information statistics table of all terminal devices 410 in the designated area sent by the aggregation unit 430; wherein, the information statistical table includes the device identifier or IP address of the terminal device 410 in the designated area; monitoring heartbeat data packets sent by activated terminal equipment in the designated area within a preset time period, and identifying offline terminal equipment which does not send the heartbeat data packets within the designated area within the preset time period according to the monitored heartbeat data packets so as to obtain the offline number of the offline terminal equipment. By this embodiment it is ensured that the determined offline terminal device is an activated terminal device 410 within the specified area.
As an optional implementation manner, the manner in which the edge forwarding node 420 is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit 430 is specifically:
the edge forwarding node 420 is further configured to obtain an offline duration of the offline terminal device, encapsulate the offline duration, the device identifier, or the IP address into a data packet, and send the data packet to the aggregation unit;
after receiving the data packet sent by the edge forwarding node 420, the aggregation unit 430 obtains relevant information of the offline terminal device, where the relevant information includes a working environment where the offline terminal device is located, a location where the offline terminal device is located in the working environment, a device type, a device identifier, and an IP address; and analyzing the reason for causing the offline terminal equipment to be offline according to the related information, and sending out an early warning.
Through the above embodiment, the edge forwarding node 420 can make clear the offline duration of the offline terminal device, so as to further analyze the reason for the offline terminal device.
Further, before the edge forwarding node 420 sends the data packet to the aggregation unit 430, the edge forwarding node 420 determines whether the workload of the aggregation unit 430 exceeds a threshold, and if not, sends the data packet to the aggregation unit 430; if the threshold is exceeded, the data packet is sent to the aggregation unit 430 while waiting for the workload of the aggregation unit 430 to be lower than the threshold.
Further, before the edge forwarding node 420 sends the data packet to the aggregation unit 430, the edge forwarding node 420 receives a load indication sent by the aggregation unit 430, and when it is determined that the load indication indicates that the workload of the aggregation unit 430 exceeds a threshold, the edge forwarding node 420 waits for the workload of the aggregation unit 430 to be lower than the threshold, and sends the data packet to the aggregation unit 430; the edge forwarding node 420 sends the data packet to the aggregation unit 430 upon determining that the load indication indicates that the workload of the aggregation unit 430 does not exceed the threshold (equal to or less than the threshold).
Further, the receiving, by the edge forwarding node 420, the load indication sent by the aggregation unit 430 specifically includes: the edge forwarding node 420 receives a load indication of the aggregation unit 430 forwarded by the filtering gateway. In this embodiment, the aggregation unit layer further includes a filtering gateway, where the filtering gateway monitors the workload of the aggregation unit in real time, and feeds the workload back to the edge forwarding node 420, so as to effectively control the workload of the aggregation unit 430, and avoid data loss or system crash of the aggregation unit 430 due to an excessive workload of the aggregation unit 430.
By implementing the system shown in fig. 4, the number of offline terminal devices in the designated area can be determined, and the potential abnormality or trend of the terminal devices can be analyzed, so as to ensure the number of terminal devices in the designated area and improve the reliability of data information.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The method and the system for offline detection of the terminal device based on the edge forwarding node disclosed by the embodiment of the invention are described in detail above, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment 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. A terminal device off-line detection method based on an edge forwarding node is characterized by comprising the following steps:
the edge forwarding node determines all activated terminal equipment in the designated area according to the information statistical table of all terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area;
the edge forwarding node monitors heartbeat data packets sent by activated terminal equipment in the designated area within a preset time period, and identifies offline terminal equipment which does not send the heartbeat data packets within the designated area within the preset time period according to the monitored heartbeat data packets so as to obtain the offline number of the offline terminal equipment;
the edge forwarding node judges whether the offline number reaches a preset reporting number or not;
if the offline number reaches the preset reporting number, the edge forwarding node acquires the equipment identifier or the Internet Protocol (IP) address of the offline terminal equipment;
the edge forwarding node encapsulates the equipment identifier or the IP address into a data packet and sends the data packet to a convergence unit;
before sending the data packet to the aggregation unit, the method further includes:
the edge forwarding node judges whether the workload of the aggregation unit exceeds a threshold value, and if not, the edge forwarding node sends the data packet to the aggregation unit; and if the workload of the aggregation unit is higher than the threshold value, sending the data packet to the aggregation unit when the workload of the aggregation unit is lower than the threshold value.
2. The method according to claim 1, wherein the edge forwarding node listens to terminal devices in a specified area within a preset time period to obtain an offline number of offline terminal devices in the specified area, and the method comprises:
the method comprises the steps that the edge forwarding node monitors heartbeat data packets sent by terminal equipment in a specified area in a preset time period, and identifies off-line terminal equipment which does not send the heartbeat data packets in the specified area in the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment in the specified area.
3. The method according to claim 1 or 2, wherein after the edge forwarding node listens to the terminal devices in the designated area within a preset time period to obtain the offline number of the offline terminal devices in the designated area, and before the edge forwarding node determines whether the offline number reaches a preset reporting number, the method further comprises:
the edge forwarding node determines whether the offline terminal equipment belongs to the activated terminal equipment in the designated area indicated by the information statistical table according to the information statistical table of all the terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area;
and if the offline terminal equipment belongs to the terminal equipment in the specified area indicated by the information statistical table, the edge forwarding node executes a step of judging whether the offline number reaches a preset reporting number.
4. The method of claim 1, wherein the edge forwarding node encapsulates the device identifier or IP address into a data packet and sends the data packet to a convergence unit, comprising:
the edge forwarding node acquires the offline time length of the offline terminal equipment, encapsulates the offline time length, the equipment identification or the IP address into a data packet, and sends the data packet to the aggregation unit;
after receiving the data packet, the aggregation unit acquires relevant information of the offline terminal device, wherein the relevant information includes a working environment where the offline terminal device is located, a position where the offline terminal device is located in the working environment, a device type, a device identifier and an IP address;
and the convergence unit analyzes the reason for causing the offline terminal equipment to be offline according to the related information and sends out early warning.
5. A terminal device off-line detection system based on an edge forwarding node is characterized by comprising:
the terminal equipment is arranged in a designated area within the wireless coverage range of the edge forwarding node and used for receiving the monitoring of the edge forwarding node within a preset time period;
the edge forwarding node is used for determining all activated terminal equipment in the designated area according to the information statistical table of all terminal equipment in the designated area issued by the aggregation unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area; monitoring heartbeat data packets sent by activated terminal equipment in the designated area within a preset time period, and identifying off-line terminal equipment which does not send the heartbeat data packets in the designated area within the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment;
the edge forwarding node is further configured to determine whether the offline number reaches a preset reporting number;
the edge forwarding node is further configured to acquire a device identifier or an internet protocol IP address of the offline terminal device when the offline number reaches the preset reporting number;
the edge forwarding node is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit;
the aggregation unit is used for receiving the data packet sent by the edge forwarding node;
before the edge forwarding node sends the data packet to the aggregation unit, the edge forwarding node judges whether the workload of the aggregation unit exceeds a threshold value, and if the workload of the aggregation unit does not exceed the threshold value, the edge forwarding node sends the data packet to the aggregation unit; and if the workload of the aggregation unit is higher than the threshold value, sending the data packet to the aggregation unit when the workload of the aggregation unit is lower than the threshold value.
6. The system according to claim 5, wherein the edge forwarding node is configured to listen to terminal devices in a specified area within a preset time period, and a manner of obtaining the offline number of the offline terminal devices in the specified area specifically is:
the edge forwarding node is used for monitoring heartbeat data packets sent by terminal equipment in a specified area in a preset time period, and identifying off-line terminal equipment which is not sent the heartbeat data packets in the specified area in the preset time period according to the monitored heartbeat data packets so as to obtain the off-line quantity of the off-line terminal equipment in the specified area.
7. The system of claim 5 or 6,
the edge forwarding node is further configured to, after monitoring terminal devices in a specified area within a preset time period to obtain an offline number of offline terminal devices in the specified area and before judging whether the offline number reaches a preset reporting number, determine whether the offline terminal devices belong to activated terminal devices in the specified area indicated by an information statistics table according to information statistics tables of all terminal devices in the specified area issued by a convergence unit; the information statistical table comprises equipment identification or IP address of the terminal equipment in the designated area; and if the offline terminal equipment belongs to the terminal equipment in the specified area indicated by the information statistical table, judging whether the offline number reaches a preset reporting number.
8. The system according to claim 5, wherein the edge forwarding node is further configured to encapsulate the device identifier or the IP address into a data packet, and send the data packet to the aggregation unit in a specific manner:
the edge forwarding node is further configured to obtain an offline duration of the offline terminal device, encapsulate the offline duration, the device identifier, or the IP address into a data packet, and send the data packet to the aggregation unit;
after receiving the data packet sent by the edge forwarding node, the aggregation unit acquires relevant information of the offline terminal device, wherein the relevant information includes a working environment where the offline terminal device is located, a location where the offline terminal device is located in the working environment, a device type, a device identifier, and an IP address; and analyzing the reason for causing the offline terminal equipment to be offline according to the related information, and sending out early warning.
CN201710463180.0A 2017-06-19 2017-06-19 Terminal equipment off-line detection method and system based on edge forwarding node Active CN107197029B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710463180.0A CN107197029B (en) 2017-06-19 2017-06-19 Terminal equipment off-line detection method and system based on edge forwarding node
PCT/CN2017/098502 WO2018232966A1 (en) 2017-06-19 2017-08-22 Edge forwarding node-based method and system for detection whether terminal device is offline

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710463180.0A CN107197029B (en) 2017-06-19 2017-06-19 Terminal equipment off-line detection method and system based on edge forwarding node

Publications (2)

Publication Number Publication Date
CN107197029A CN107197029A (en) 2017-09-22
CN107197029B true CN107197029B (en) 2021-02-19

Family

ID=59879708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710463180.0A Active CN107197029B (en) 2017-06-19 2017-06-19 Terminal equipment off-line detection method and system based on edge forwarding node

Country Status (2)

Country Link
CN (1) CN107197029B (en)
WO (1) WO2018232966A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864486A (en) * 2017-12-26 2018-03-30 杭州迪普科技股份有限公司 A kind of offline AP detection methods and device
CN111225224A (en) * 2018-11-27 2020-06-02 玲珑视界科技(北京)有限公司 System and method for monitoring state of grid node
CN109474494B (en) * 2018-12-05 2020-10-30 深圳绿米联创科技有限公司 Equipment detection method, device, server and storage medium
CN112953843B (en) * 2019-11-26 2022-12-30 华为技术有限公司 Data transmission method and device
CN112350792B (en) * 2020-09-27 2023-05-30 福建新大陆通信科技股份有限公司 Emergency broadcast data forwarding multiplexing method
CN114765587A (en) * 2020-12-30 2022-07-19 欧普照明股份有限公司 Method and system for reporting node online and offline states and reporting end server
CN112910981B (en) * 2021-01-27 2022-07-26 联想(北京)有限公司 Control method and device
CN113472881B (en) * 2021-06-30 2023-08-15 四川虹美智能科技有限公司 Statistical method and device for online terminal equipment
CN114401207B (en) * 2021-12-30 2024-03-15 北京首钢自动化信息技术有限公司 Communication abnormal terminal equipment positioning method and device and electronic equipment
CN115348165B (en) * 2022-08-15 2023-07-25 四川虹美智能科技有限公司 Intelligent equipment disconnection processing method based on big data
CN115795387A (en) * 2022-10-27 2023-03-14 圣名科技(广州)有限责任公司 Sensor work abnormity monitoring method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686024A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method, device and system for acquiring arrival rates of off-line messages
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136799B (en) * 2007-09-20 2010-05-26 中兴通讯股份有限公司 Method for implementing communication appliance fault centralized alarm treatment
CN102413611A (en) * 2011-11-22 2012-04-11 成都智汇科技有限公司 Street lamp energy-saving and managing system based on internet of things
US20130275230A1 (en) * 2012-03-05 2013-10-17 Elbrys Networks, Inc. Methods and systems for targeted advertising based on passively collected sensor-detected offline behavior
CN104185966A (en) * 2013-01-08 2014-12-03 华为技术有限公司 Network alarm method and device
CN103345214B (en) * 2013-06-17 2016-04-13 四川长虹电器股份有限公司 Based on the intelligent household electrical appliance linkage control method of middleware
CN104157120B (en) * 2014-08-21 2017-05-31 南京拓诺传感网络科技有限公司 Industrial equipment and the WSN information Perception system and methods of environmental monitoring
CN105629103A (en) * 2015-12-23 2016-06-01 广州市优普计算机有限公司 Online monitoring method based on transformer substation operation and maintenance network shutdown

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686024A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method, device and system for acquiring arrival rates of off-line messages
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection

Also Published As

Publication number Publication date
CN107197029A (en) 2017-09-22
WO2018232966A1 (en) 2018-12-27

Similar Documents

Publication Publication Date Title
CN107197029B (en) Terminal equipment off-line detection method and system based on edge forwarding node
WO2018232970A1 (en) Method and system for detecting state of terminal device applied in internet of things
CN107248960B (en) Internet of things data reporting control method based on transmission duration and forwarding node
CN107396416B (en) Communication control method and system based on data type
CN107197033B (en) Data packaging method and system based on Internet of things
CN107395677B (en) Data reporting control method and system based on terminal equipment priority
CN110856185B (en) Method and system for adjusting wireless signals of Internet of things
CN107318168B (en) Method and system for controlling communication of terminal equipment of Internet of things
CN107273512B (en) Method and device for data deduplication based on device type and geographic position
WO2018232976A1 (en) Terminal device operating status determination method and device
CN107197034B (en) Edge routing node and reporting frequency adjusting method thereof
CN107197030B (en) Method and system for controlling working state of terminal equipment of Internet of things
CN111049749B (en) Control and system for data reporting frequency of Internet of things of terminal equipment
WO2018233036A1 (en) Internet-of-things data reporting control method and device
CN107465719B (en) Data processing method and system applied to Internet of things
CN107197443B (en) Data transmission control method and system based on Internet of things
WO2018232967A1 (en) Internet-of-things terminal device detection method and system based on access node
WO2018233049A1 (en) Internet-of-things data communication method and system
CN107294804B (en) Method and equipment for controlling data filtering of Internet of things based on transmission duration
WO2018233034A1 (en) Method and system for controlling transmission of internet of things data
CN107360217B (en) Data reporting method and system based on geographic position and time
CN107197501B (en) Method and equipment for updating routing information table based on monitored equipment
CN107454661B (en) Weather-based Internet of things terminal device control method and system
CN107196824B (en) Method for determining working state of monitored equipment and convergence unit
CN111049920B (en) Data encapsulation control method and system based on number of terminal devices

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