CN115883318A - Method for ensuring normal operation of gateway of Internet of things based on data link switching - Google Patents

Method for ensuring normal operation of gateway of Internet of things based on data link switching Download PDF

Info

Publication number
CN115883318A
CN115883318A CN202211650332.5A CN202211650332A CN115883318A CN 115883318 A CN115883318 A CN 115883318A CN 202211650332 A CN202211650332 A CN 202211650332A CN 115883318 A CN115883318 A CN 115883318A
Authority
CN
China
Prior art keywords
gateway
data
abnormal
internet
central server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211650332.5A
Other languages
Chinese (zh)
Other versions
CN115883318B (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.)
Beijing Sinonet Science and Technology Co Ltd
Original Assignee
Beijing Sinonet Science and 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 Beijing Sinonet Science and Technology Co Ltd filed Critical Beijing Sinonet Science and Technology Co Ltd
Priority to CN202211650332.5A priority Critical patent/CN115883318B/en
Publication of CN115883318A publication Critical patent/CN115883318A/en
Application granted granted Critical
Publication of CN115883318B publication Critical patent/CN115883318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for guaranteeing normal operation of an Internet of things gateway based on data link switching. At this time, the data is not analyzed or cleaned at the gateway and is directly transmitted to the temporary gateway of the central server. And simultaneously, the developer is contacted to optimize the process. And after the repair is finished, updating the gateway service, wherein the stability of the gateway service cannot be influenced even if abnormal data occurs at the moment, and a normal data link flow can be continued. The advantages are that: the method can reduce the abnormal operation of the gateway caused by abnormal data, can conveniently debug and complete optimization for developers, and finally ensures the stability of the gateway and improves the operation and maintenance efficiency.

Description

Method for ensuring normal operation of gateway of Internet of things based on data link switching
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method for guaranteeing normal operation of an Internet of things gateway based on data link switching.
Background
Typical internet of things systems manage massive terminal devices, and at the present stage, the devices do not have uniform technological standards and are irregular in quality, and the devices continuously transmit acquired data to a central server through a gateway. In some low-cost devices, under the condition of a severe environment, a circuit is prone to generating problems and abnormal data reporting is generated. When a device reports abnormal data frequently, the stability of the operation of the gateway (typically, an embedded small device) is affected (the abnormal data of a terminal device may cause the corresponding analysis program to crash, and affect the normal communication of data of multiple devices of the same type. If the operation and maintenance personnel need to repair the problems, the operation and maintenance personnel need to go to a deployment site and adjust the communication address of the equipment to a debugging environment. And after the debugging of the developer is finished, setting the developer to a formal environment. Since many deployment sites are located in suburbs and need support of professional implementers, one trip takes half a day or more, which brings about a lot of troubles to related work.
Disclosure of Invention
The invention aims to provide a method for ensuring the normal operation of an internet of things gateway based on data link switching, so that the problems in the prior art are solved.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for ensuring the normal operation of an Internet of things gateway based on data link switching comprises the following steps,
s1, starting a central server and deploying related programs of the Internet of things;
s2, the construction and operation and maintenance personnel go to each constructed site to deploy a plurality of gateways and terminal equipment;
s3, when the Internet of things system normally operates, the data reported by the terminal equipment reaches a central server through a normal data link, and is stored or provided for other applications;
s4, the gateway monitors whether the data of each terminal device is normal in real time, and if no abnormality is found, the S3 is returned; if the data of a certain terminal device is found to be abnormal, S5 is entered;
s5, the gateway marks the abnormal data of the terminal equipment and directly transmits the abnormal data to the central server, the abnormal data are transferred to the temporary gateway after the access service of the central server identifies the label, and the abnormal data are analyzed in the temporary gateway;
s6, debugging and verifying abnormal data in the temporary gateway by a developer, and optimizing gateway service until the temporary gateway can adapt to the abnormal data;
s7, after the developers observe for 24-48 hours, if the analysis program still can normally run in the face of the abnormal data, the gateway service optimization is finished; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
and S8, updating the analysis program to the on-site gateway, enabling the analysis service of the on-site gateway to normally process abnormal data appearing in the terminal equipment, and enabling the abnormal data to enter the central server through a normal data link after being analyzed and cleaned by the analysis service.
Preferably, the programs related to the internet of things include an access service, a data pipe, a processing service, a storage service and a temporary gateway service.
Preferably, in step S5, if the abnormal data of a certain terminal device causes the abnormal temporary gateway service of the central server, the temporary gateway service of the central server may be restarted without affecting the data of other terminal devices.
The beneficial effects of the invention are: the abnormal operation of the gateway caused by abnormal data can be reduced, developers can conveniently debug and complete optimization, and finally the stability of the gateway is guaranteed and the operation and maintenance efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method in an embodiment of the invention;
fig. 2 is a schematic diagram of a normal data link and a debug data link in the scenario of the internet of things in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Example one
In the embodiment, a method for ensuring normal operation of an internet of things gateway based on data link switching is provided, and is applied to an internet of things scene, wherein the internet of things scene comprises a central server (including access service, data pipeline, processing service and storage service), a plurality of gateways (deployed in a project site, gateways A, B and c..) and a plurality of internet of things devices (devices 1, 2 and 3).
The gateway is responsible for receiving the data of the terminal equipment and forwarding the data to the access service of the central server. The same type of equipment data is completed by the same analysis program (different types of equipment load data formats are different and need to be processed separately). The gateway manages how many kinds of terminal devices and how many kinds of parsing programs exist.
The central server is mainly responsible for processing and storing data and providing the data for other applications to use. The access service manages multiple gateways and transmits their forwarded data to the upstream data pipe. The processing and storage services in the central server consume the data in the pipeline to complete the service function.
Temporary gateway services are also deployed in the central server, and the gateway services mainly analyze and clean data of the terminal equipment, and then merge the data into a data pipeline for other services.
As shown in fig. 1, in this embodiment, the method of the present invention includes the steps of,
s1, starting a central server and deploying related programs of the Internet of things; the method comprises the following steps of accessing service, data pipeline, processing service, storage service, temporary gateway service and the like;
s2, the construction and operation and maintenance personnel go to each constructed site to deploy a plurality of gateways and terminal equipment; a constructor deploys the physical fixed gateway and the terminal equipment, and an operation and maintenance worker is responsible for testing whether the network and the data are normal or not, and at the moment, the scene deployment of the internet of things is completed;
s3, when the Internet of things system normally operates, the data reported by the terminal equipment reaches a central server through a normal data link, and is stored or provided for other applications to use;
s4, the gateway monitors whether the data of each terminal device is normal in real time, and if no abnormity is found, the gateway returns to S3; if the data of a certain terminal device is found to be abnormal, entering S5;
s5, the gateway marks (does not analyze) the abnormal data of the terminal equipment and directly transmits the abnormal data to the central server, the abnormal data are transferred to the temporary gateway after the access service of the central server identifies the label, and the abnormal data are analyzed in the temporary gateway; if the abnormal data of a certain terminal device causes the abnormal temporary gateway service of the central server, the data of other terminal devices cannot be influenced, and the temporary gateway service of the central server is restarted.
The gateway can label the abnormal data in multiple modes and languages. The labeling of the abnormal data is generally to label the abnormal data of a certain terminal device, for example, the abnormal data generated by the terminal device 1, which is not analyzed, but directly and completely encapsulated and then transmitted to the central server.
S6, debugging and verifying the abnormal data in the temporary gateway by a developer, and optimizing gateway services until the temporary gateway can adapt to the abnormal data;
s7, after the developers observe for 24-48 hours, if the analysis program still can normally run in the face of the abnormal data, the gateway service optimization is finished; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
and S8, updating the analysis program to the on-site gateway, wherein the gateway does not specially process the data reported by the terminal equipment any more, and even if the terminal equipment has abnormal data, the analysis service of the on-site gateway can also normally process the abnormal data generated by the terminal equipment, so that the abnormal data can not cause service breakdown, and the abnormal data can enter the central server through a normal data link after being analyzed and cleaned by the analysis service.
Example two
As shown in fig. 2, in this embodiment, the normal data link is: terminal equipment- > gateway (parsing) - > central server (access) - > internal data pipeline- > processing service or storage service.
The data links for exception handling (debug data links) are: terminal equipment- > gateway (not parsing) - > central server (access) - > interior gateway (cleaning) - > interior data pipe- > processing service or storage service.
The method transfers the abnormal data to the debugging link, so that the abnormal data does not influence the stability of the gateway and the stability of the normal link. Developers optimize the gateway program in time, abnormal data generated by equipment cannot influence the normal operation of the gateway, only the image is used for debugging a data link, and when the analysis program is optimized and stabilized, the gateway is updated, so that the abnormal data cannot image the stability of the gateway, and the normal operation of the gateway and the internet of things system is ensured.
In this embodiment, the scene of the internet of things is composed of a central server and a plurality of deployment sites. A suite of internet of things system entities includes at least a central server (access service, application service, data pipe, storage service, temporary gateway, which may run multiple instances as needed), gateway(s), terminal device(s), and associated hardware (switches, routers, data communication units, traffic cards, etc.).
Deployment site a shows the normal data link flow. And the deployment site B shows the debugging link flow.
1. The normal data link is:
(1) And the terminal equipment 4 and 5 collects data and transmits the data to the gateway.
(2) And the gateway A receives and analyzes the data, cleans the data into unified standard data and transmits the unified standard data to the access service of the central server.
(3) The access service passes data into an internal data pipe. (decoupling, peak elimination)
(4) The application service and the storage service consume data of the data pipe. The entire link is completed.
2. The debug data link is:
(1) The terminal device 1 collects data and transmits the data to the gateway (the data has an exception).
(2) The gateway B marks the data, does not parse the data, and transmits the data to the access service completely after tagging the data.
(3) The access service forwards the data to the temporary gateway for resolution, and if the resolution fails, the data is discarded.
(4) If the analysis is successful, the data is cleaned into uniform standard data and forwarded to the internal data pipeline.
(5) The application service and the storage service consume data of the data pipe to complete the whole link.
(6) Developers can debug the resolution service of the temporary gateway, and the resolution service can be easily updated and replaced due to the deployment of the resolution service in the central server, and data on a normal link is not influenced.
(7) And when the optimization is completed and the abnormal data collected by the terminal equipment 1 can be normally processed, updating the analysis program of the gateway B, and returning to the normal data link.
In this embodiment, when the gateway recognizes that a certain set of data causes a program crash, the gateway tags the set of data. At this time, the data is not analyzed or cleaned at the gateway and is directly transmitted to the temporary gateway of the central server. And simultaneously, the developer is contacted to optimize the process. And after the repair is finished, updating the gateway service, wherein the stability of the gateway service is not influenced even if abnormal data occurs, and a normal data link flow can be continued.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained:
the invention provides a method for guaranteeing normal operation of an Internet of things gateway based on data link switching, which can reduce abnormal gateway operation caused by abnormal data, can conveniently debug and complete optimization for developers, and finally guarantees the stability of the gateway and improves the operation and maintenance efficiency.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (3)

1. A method for ensuring normal operation of an Internet of things gateway based on data link switching is characterized in that: comprises the following steps of (a) carrying out,
s1, starting a central server and deploying related programs of the Internet of things;
s2, the construction and operation and maintenance personnel go to each constructed site to deploy a plurality of gateways and terminal equipment;
s3, when the Internet of things system normally operates, the data reported by the terminal equipment reaches a central server through a normal data link, and is stored or provided for other applications to use;
s4, the gateway monitors whether the data of each terminal device is normal in real time, and if no abnormity is found, the gateway returns to S3; if the data of a certain terminal device is found to be abnormal, S5 is entered;
s5, the gateway marks the abnormal data of the terminal equipment and directly transmits the abnormal data to the central server, the abnormal data are transferred to the temporary gateway after the access service of the central server identifies the label, and the abnormal data are analyzed in the temporary gateway;
s6, debugging and verifying the abnormal data in the temporary gateway by a developer, and optimizing gateway services until the temporary gateway can adapt to the abnormal data;
s7, after the developers observe for 24-48 hours, if the analysis program still can normally run in the face of the abnormal data, the gateway service optimization is finished; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
and S8, updating the analysis program to the on-site gateway, enabling the analysis service of the on-site gateway to normally process abnormal data appearing in the terminal equipment, and enabling the abnormal data to enter the central server through a normal data link after being analyzed and cleaned by the analysis service.
2. The method for ensuring the normal operation of the gateway of the internet of things based on the data link switching according to claim 1, wherein the method comprises the following steps: the Internet of things related programs comprise access services, data pipelines, processing services, storage services and temporary gateway services.
3. The method for ensuring the normal operation of the gateway of the internet of things based on the data link switching according to claim 1, wherein the method comprises the following steps: in step S5, if the abnormal data of a certain terminal device causes the abnormal temporary gateway service of the central server, the data of other terminal devices will not be affected, and the temporary gateway service of the central server is restarted.
CN202211650332.5A 2022-12-21 2022-12-21 Method for guaranteeing normal operation of gateway of Internet of things based on data link switching Active CN115883318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211650332.5A CN115883318B (en) 2022-12-21 2022-12-21 Method for guaranteeing normal operation of gateway of Internet of things based on data link switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211650332.5A CN115883318B (en) 2022-12-21 2022-12-21 Method for guaranteeing normal operation of gateway of Internet of things based on data link switching

Publications (2)

Publication Number Publication Date
CN115883318A true CN115883318A (en) 2023-03-31
CN115883318B CN115883318B (en) 2024-05-28

Family

ID=85755373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211650332.5A Active CN115883318B (en) 2022-12-21 2022-12-21 Method for guaranteeing normal operation of gateway of Internet of things based on data link switching

Country Status (1)

Country Link
CN (1) CN115883318B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572855A (en) * 2008-04-30 2009-11-04 华为技术有限公司 Method and device for selecting gateway for terminal
JP2011087331A (en) * 2011-01-18 2011-04-28 Ntt Docomo Inc Mobile communication method, wireless access device, and gateway device
CN111064720A (en) * 2019-12-10 2020-04-24 大唐半导体科技有限公司 Method and device for converting configuration gateway data protocol
CN114170753A (en) * 2021-12-03 2022-03-11 辰安天泽智联技术有限公司 Information acquisition and processing system and method for building fire fighting system
CN115333872A (en) * 2022-10-17 2022-11-11 北京六方云信息技术有限公司 Security gateway analysis function verification method and device, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572855A (en) * 2008-04-30 2009-11-04 华为技术有限公司 Method and device for selecting gateway for terminal
JP2011087331A (en) * 2011-01-18 2011-04-28 Ntt Docomo Inc Mobile communication method, wireless access device, and gateway device
CN111064720A (en) * 2019-12-10 2020-04-24 大唐半导体科技有限公司 Method and device for converting configuration gateway data protocol
CN114170753A (en) * 2021-12-03 2022-03-11 辰安天泽智联技术有限公司 Information acquisition and processing system and method for building fire fighting system
CN115333872A (en) * 2022-10-17 2022-11-11 北京六方云信息技术有限公司 Security gateway analysis function verification method and device, terminal device and storage medium

Also Published As

Publication number Publication date
CN115883318B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US7051244B2 (en) Method and apparatus for managing incident reports
McArthur et al. Automating power system fault diagnosis through multi-agent system technology
CN108710544B (en) Process monitoring method of database system and rail transit comprehensive monitoring system
US9189317B1 (en) Software sustaining system
CN102740112B (en) Method for controlling equipment polling based on video monitoring system
US11113236B2 (en) Method for automatic processing of a number of protocol files of an automation system
US11252052B1 (en) Intelligent node failure prediction and ticket triage solution
CN105450472A (en) Method and device for automatically acquiring states of physical components of servers
CN102903026A (en) Dynamic reconfiguration system and method of secondary equipment of intelligent substation
CN102214140A (en) Method and system for automatic software testing
CN103248625A (en) Monitoring method and system for abnormal operation of web crawler
CN112527484A (en) Workflow breakpoint continuous running method and device, computer equipment and readable storage medium
CN1474542A (en) Telecommunication equipment fault information managing method
KR100861592B1 (en) Method and apparatus for managing fault in customer network management system
JP2008059413A (en) Failure management support system and its information management method
WO2020002772A1 (en) Automated network monitoring and control
CN103475531A (en) Abnormity processing method, automatic inspection console and knowledge base system
CN115883318A (en) Method for ensuring normal operation of gateway of Internet of things based on data link switching
US10338544B2 (en) Communication configuration analysis in process control systems
US20050147211A1 (en) Methods and apparatus for automating testing of signalling transfer points
CN110572292B (en) High availability system and method based on unidirectional transmission link
JP2009087136A (en) Fault repair system and fault repair method
CN107577546B (en) Information processing method and device and electronic equipment
CN112000442A (en) Method and device for automatically acquiring cluster state based on kubernets platform
CN105550094A (en) Automatic state monitoring method of high-availability system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant