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

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

Info

Publication number
CN115883318B
CN115883318B CN202211650332.5A CN202211650332A CN115883318B CN 115883318 B CN115883318 B CN 115883318B CN 202211650332 A CN202211650332 A CN 202211650332A CN 115883318 B CN115883318 B CN 115883318B
Authority
CN
China
Prior art keywords
gateway
data
service
internet
abnormal
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
CN202211650332.5A
Other languages
Chinese (zh)
Other versions
CN115883318A (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

Landscapes

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

Abstract

The invention discloses a method for guaranteeing normal operation of a gateway of an Internet of things based on data link switching. At this time, the group of data is directly transmitted to the temporary gateway of the central server without being parsed or cleaned at the gateway. While contacting the developer for optimization. After the repair is completed, the gateway service is updated, and at this time, even if abnormal data occurs, the stability of the gateway service is not affected, and the normal data link flow can be continued. The advantages are that: the method can reduce the abnormal work of the gateway caused by abnormal data, and can conveniently enable the developer to debug and complete optimization, thereby finally guaranteeing the stability of the gateway and improving the operation and maintenance efficiency.

Description

Method for guaranteeing normal operation of gateway of Internet of things based on data link switching
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a method for guaranteeing normal operation of a gateway of the Internet of things based on data link switching.
Background
In a typical internet of things system, a large number of terminal devices are managed, and in the current stage, the devices have no unified process standard and uneven quality, and continuously transmit collected data to a central server through a gateway. Under the condition that the environment is severe, some low-cost equipment is easy to cause problems in a circuit, and abnormal data reporting is generated. When a certain device reports abnormal data frequently, the stability of the work of a gateway (generally, embedded small-sized device) is affected (the abnormal data of a certain terminal device may cause the breakdown of a corresponding analysis program to affect the normal communication of a plurality of similar device data, and meanwhile, the frequent breakdown/recovery of the program may affect the stability of the gateway). 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. After the debugging is completed, the developer needs to be set in a formal environment. Because many deployment sites are in suburban areas, professional implementation personnel are required to support, and a trip takes half a day or even longer, so that a great deal of trouble is brought to related work.
Disclosure of Invention
The invention aims to provide a method for guaranteeing 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 above 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, which comprises the following steps,
S1, starting a central server, and deploying relevant programs of the Internet of things;
s2, the construction and operation staff go to each construction 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 are 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, entering S5;
s5, the gateway marks the abnormal data of the terminal equipment and directly transmits the abnormal data to the central server, and after the central server accesses the service identification tag, the abnormal data are transferred to the temporary gateway, 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 developer observes for 24-48 hours, if the analysis program can still normally run in the face of the abnormal data, the gateway service optimization is completed; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
S8, updating the analysis program to the on-site gateway, wherein the analysis service of the on-site gateway can normally process abnormal data appearing in the terminal equipment, and the abnormal data enter the central server through a normal data link after being analyzed and cleaned by the analysis service.
Preferably, the internet of things related program comprises an access service, a data pipeline, a processing service, a storage service and a temporary gateway service.
Preferably, in step S5, if the temporary gateway service of the central server is abnormal due to abnormal data of a certain terminal device, the temporary gateway service of the central server may be restarted without affecting data of other terminal devices.
The beneficial effects of the invention are as follows: the gateway working abnormality caused by abnormal data can be reduced, and the developer can conveniently debug and finish optimization, so that the stability of the gateway is finally ensured, and the operation and maintenance efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the invention;
fig. 2 is a schematic diagram of a normal data link and a debug data link in an internet of things scenario in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the detailed description is presented by way of example only and is not intended to limit the invention.
Example 1
In this embodiment, a method for guaranteeing normal operation of an internet of things gateway based on data link switching is provided, and the method is applied in an internet of things scene, where the internet of things scene includes a central server (including access service, data pipeline, processing service, and storage service), a plurality of gateways (deployed on a project site, gateway A, B, c.) and a plurality of internet of things devices (devices 1,2,3, and..n.).
The gateway is responsible for receiving the data of the terminal device and forwarding the data to the access service of the central server. The same type of device data is completed by the same parsing program (different types of device load data formats 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 primarily responsible for processing and storing data and providing it for use by other applications. The access service manages multiple gateways and transmits their forwarded data to the upstream data pipe. And the processing and storage service in the central server consumes the data in the pipeline to complete the service function.
Temporary gateway services are deployed in the central server, and the gateway services mainly analyze and clean the data of the terminal equipment, and then combine 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 relevant programs of the Internet of things; including access services, data pipes, processing services, storage services, temporary gateway services, etc.;
S2, the construction and operation staff go to each construction site to deploy a plurality of gateways and terminal equipment; the constructor can deploy the physical fixed gateway and the terminal equipment, and the operation and maintenance personnel are responsible for testing whether the network and the data are normal or not, and the deployment of the scene of the Internet of things is completed at the moment;
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 are 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, 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, and after the central server accesses the service identification tag, the abnormal data are transferred to the temporary gateway, and the abnormal data are analyzed in the temporary gateway; if the abnormal data of a certain terminal device causes abnormal temporary gateway service of the center server, the data of other terminal devices cannot be influenced, and the temporary gateway service of the center server is restarted.
The gateway can label the abnormal data in various modes and in various 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 is not resolved, but directly and completely packaged and then transmitted to the central server.
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 developer observes for 24-48 hours, if the analysis program can still normally run in the face of the abnormal data, the gateway service optimization is completed; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
S8, updating the analysis program to the gateway on the site, wherein the gateway does not specially process the data reported by the terminal equipment, at the moment, even if the terminal equipment generates abnormal data, the analysis service of the site gateway can normally process the abnormal data generated by the terminal equipment, and the abnormal data can not cause service breakdown, and after being analyzed and cleaned by the analysis service, the abnormal data enters the central server through a normal data link.
Example two
As shown in fig. 2, in this embodiment, the normal data link is: terminal equipment- > gateway (resolution) - > central server (access) - > internal data pipe- > processing service or storage service.
The exception handling data link (debug data link) is: terminal equipment- > gateway (unresolved) - > central server (access) - > interior gateway (cleaning) - > interior data pipe- > processing service or storage service.
The method of the invention transfers the abnormal data to the debugging link, and does not cause the abnormal data to influence the stability of the gateway and the stability of the normal link. The developer optimizes the gateway program in time, so that abnormal data generated by the equipment cannot influence the normal operation of the gateway, only the data link is debugged by the image, and after the analysis program is optimized and stabilized, the gateway is updated, so that the abnormal data cannot influence the stability of the gateway, and the normal operation of the gateway and the Internet of things system is ensured.
In this embodiment, the internet of things scenario is composed of a central server and a plurality of deployment sites. The set of internet of things system entities at least comprises a central server (access service, application service, data pipeline, storage service, temporary gateway, which can run multiple instances according to the need), gateway(s), terminal device(s) and related hardware (switches, routers, data communication units, traffic cards, etc.).
Deployment site a shows the normal data link flow. Deployment site B shows the debug link flow.
1. The normal data link is:
(1) The terminal devices 4, 5 transmit the collected data to the gateway.
(2) 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 center server.
(3) The access service passes the data into an internal data pipe. (decoupling, peak-eliminating)
(4) Application services and storage services consume data of a data pipeline. 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 (data with anomalies).
(2) The gateway B marks the data, does not analyze the data, marks the data and then completely transmits the data to the access service.
(3) The access service forwards the data to the temporary gateway for analysis, and if the analysis fails, the data is discarded.
(4) And if the analysis is successful, cleaning the data into unified standard data, and forwarding the unified standard data to an internal data pipeline.
(5) The application service and the storage service consume the data of the data pipeline to complete the whole link.
(6) The developer can debug the analysis service of the temporary gateway, and can easily update and replace the analysis service due to the deployment in the central server, and the analysis service on the normal link is not influenced.
(7) When the optimization is completed and abnormal data collected by the terminal equipment 1 can be normally processed, updating the analysis program of the gateway B, and returning to a normal data link at the moment.
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 group of data is directly transmitted to the temporary gateway of the central server without being parsed or cleaned at the gateway. While contacting the developer for optimization. After the repair is completed, the gateway service is updated, and at this time, even if abnormal data occurs, the stability of the gateway service is not affected, and the 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 the normal operation of an Internet of things gateway based on data link switching, which can reduce the abnormal operation of the gateway caused by abnormal data, and can conveniently enable the developer to debug and complete optimization, thereby finally guaranteeing the stability of the gateway and improving the operation and maintenance efficiency.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which is also intended to be covered by the present invention.

Claims (3)

1. A method for guaranteeing normal operation of an Internet of things gateway based on data link switching is characterized by comprising the following steps: comprises the following steps of the method,
S1, starting a central server, and deploying relevant programs of the Internet of things;
s2, the construction and operation staff go to each construction 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 are 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, entering S5;
s5, the gateway marks the abnormal data of the terminal equipment and directly transmits the abnormal data to the central server, and after the central server accesses the service identification tag, the abnormal data are transferred to the temporary gateway, 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 developer observes for 24-48 hours, if the analysis program can still normally run in the face of the abnormal data, the gateway service optimization is completed; otherwise, circulating S6-S7, and continuously optimizing until the optimization is completed;
S8, updating the analysis program to the on-site gateway, wherein the analysis service of the on-site gateway can normally process abnormal data appearing in the terminal equipment, and the abnormal data enter the central server through a normal data link after being analyzed and cleaned by the analysis service.
2. The method for guaranteeing normal operation of the gateway of the internet of things based on data link switching according to claim 1, wherein the method comprises the following steps: the internet of things related program comprises an access service, a data pipeline, a processing service, a storage service and a temporary gateway service.
3. The method for guaranteeing normal operation of the gateway of the internet of things based on data link switching according to claim 1, wherein the method comprises the following steps: in step S5, if the temporary gateway service of the central server is abnormal due to the abnormal data of a certain terminal device, the temporary gateway service of the central server may be restarted without affecting the data of other terminal devices.
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 CN115883318A (en) 2023-03-31
CN115883318B true 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
CN115883318A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
US8799722B2 (en) Business to business network management event detection and response system and method
US7337373B2 (en) Determining the source of failure in a peripheral bus
CN101197621B (en) Method and system for remote diagnosing and locating failure of network management system
CN102903026A (en) Dynamic reconfiguration system and method of secondary equipment of intelligent substation
US20160283307A1 (en) Monitoring system, monitoring device, and test device
CN101001183A (en) Test method and system for network application software
CN102752624A (en) Remote diagnosis method of television fault, television and system
CN101296135A (en) Fault information processing method and device
JP2008217735A (en) Fault analysis system, method and program
CN103248625A (en) Monitoring method and system for abnormal operation of web crawler
CN102214140A (en) Method and system for automatic software testing
CN112527484A (en) Workflow breakpoint continuous running method and device, computer equipment and readable storage medium
CN101188530A (en) Method and device for IPv4 and IPv6 network failure detection and location
CN1474542A (en) Telecommunication equipment fault information managing method
JP2009294837A (en) Failure monitoring system and device, monitoring apparatus, and failure monitoring method
CN108959037A (en) A kind of data center's automatic detecting method and device
CN115883318B (en) Method for guaranteeing normal operation of gateway of Internet of things based on data link switching
KR100861592B1 (en) Method and apparatus for managing fault in customer network management system
Li et al. Going through the life cycle of faults in clouds: Guidelines on fault handling
CN117914758A (en) Full-link monitoring method and system for intelligently measuring complex service scene
CN103475531A (en) Abnormity processing method, automatic inspection console and knowledge base system
US10338544B2 (en) Communication configuration analysis in process control systems
JP2001244946A (en) Network monitoring device
US20050147211A1 (en) Methods and apparatus for automating testing of signalling transfer points
CN110572292B (en) High availability system and method based on unidirectional transmission link

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