CN114374728A - Front-end equipment online state acquisition method - Google Patents

Front-end equipment online state acquisition method Download PDF

Info

Publication number
CN114374728A
CN114374728A CN202111609642.8A CN202111609642A CN114374728A CN 114374728 A CN114374728 A CN 114374728A CN 202111609642 A CN202111609642 A CN 202111609642A CN 114374728 A CN114374728 A CN 114374728A
Authority
CN
China
Prior art keywords
directory
owner
reply
data
end device
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
CN202111609642.8A
Other languages
Chinese (zh)
Other versions
CN114374728B (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.)
Guangxi Zhuang Autonomous Region Public Information Industry Co ltd
Original Assignee
Guangxi Zhuang Autonomous Region Public Information Industry 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 Guangxi Zhuang Autonomous Region Public Information Industry Co ltd filed Critical Guangxi Zhuang Autonomous Region Public Information Industry Co ltd
Priority to CN202111609642.8A priority Critical patent/CN114374728B/en
Publication of CN114374728A publication Critical patent/CN114374728A/en
Application granted granted Critical
Publication of CN114374728B publication Critical patent/CN114374728B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for acquiring the online state of front-end equipment, which comprises the following steps: (1) the system sends a directory query request and a directory subscription request to a directory owner; (2) the directory owner replies after receiving the directory inquiry request and sends a first piece of directory reply data to the system; (3) the directory owner receives and replies to the directory subscription request; (4) the system receives a directory owner reply based on the directory inquiry request, and receives and replies directory reply data; (5) the system receives a request reply of a directory owner based on directory subscription; (6) after receiving the reply based on the directory reply data from the system, the directory owner continues to send the directory reply data to the end; (7) and analyzing the received directory reply data by the system to obtain the online state of the current front-end equipment. The invention combines the directory inquiry request and the directory subscription request and then sends the combined request to the directory owner, thereby solving the problem of incorrect acquisition of the online state of the front-end equipment in the prior art.

Description

Front-end equipment online state acquisition method
Technical Field
The invention belongs to the technical field of monitoring systems, and particularly relates to a front-end equipment online state acquisition method.
Background
In a video monitoring field system, the front-end equipment is developed and communicated based on the SIP protocol specified in GB/T28181. The presence information is stored in directory data according to the requirements of the GB/T28181 standard. When a system (which may be a terminal or a superior platform server) needs to obtain the online status of a front-end device in real time, an existing mechanism mostly adopts the steps of sending a directory query request to a directory owner (which may be the front-end device or a platform server connected with the front-end device) first, and the directory owner returns all the front-end device directory data owned by the directory owner based on the request. After receiving all the node directory data, the system sends a directory subscription request to the directory owner. After receiving the request, the directory owner can actively send a directory notification to the system when the online state of the front-end equipment is changed, so that the function of acquiring the online state of the front-end equipment in real time is realized.
However, when the number of front-end device nodes of the directory owner is large, the problem that the online state acquired by the system is incorrect may exist. The reason is that when the number of front-end device nodes of the directory owner is large, the sent directory data volume is also large, and a certain time is needed for sending the directory owner. During this sending period, the directory owner has not received the directory subscription request, and if the online status of the front-end device changes, the directory owner does not notify the system, so that the online status obtained by the system is incorrect.
The chinese invention patent cn201410384194.x discloses a monitoring method of front-end application, which includes: when the terminal equipment runs the front-end application through the browser, the front-end application monitors the running state of the front-end application; when the front-end application monitors that the current running state meets a reporting trigger condition, the front-end application acquires data corresponding to the current running state and reports the acquired data to the Web server in a preset format through a reporting agent, so that the Web server organizes the data and then sends the data to the monitoring server, and the monitoring server performs corresponding processing according to the organized data. The embodiment of the invention also discloses a front-end application and a monitoring system of the front-end application. By implementing the embodiment of the invention, the front-end application can actively report the running state, and the efficiency of finding the problems of the front-end application is improved. However, it is not considered that if the number of front-end device nodes is large, the data sent to the system may not be consistent with the current state of the front end, which results in an incorrect state obtained by the system.
Chinese patent CN200810061115.6 discloses a front-end machine control system of a universal monitoring system, the front-end machine control system is an embedded microprocessor for polling, scanning and collecting end, storing the scanned data in the front-end machine, the back-end machine communicating with the front-end machine to obtain or set the data of the collecting end under the front-end machine, including defining digital switching value, the front-end machine initiatively initiates communication, and the slave machine responds, adopting a question-answer mode, the data frame format includes: a start mark, a frame header, content, a check code and an end mark; and inquiring normal data, setting the output digital switching value of the acquisition end, setting the upper and lower values of the alarm parameter of the acquisition end, setting the input switching state value of the acquisition end and setting all parameter configurations of the acquisition end by the front-end machine. The invention provides a front-end machine control system of a general monitoring system, which has good expansibility, reduces the cost and avoids waste when improving the production scale. However, the method of asking and answering needs a lot of time and cannot meet the demand.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a front-end equipment online state acquisition method which is used for solving the problem that the acquired state is incorrect in the existing front-end equipment online state acquisition method.
In order to achieve the purpose, the invention adopts the following technical scheme:
a front-end equipment online state acquisition method comprises the following steps:
step 1, a system sends a directory query request and a directory subscription request to a directory owner;
step 2, the directory owner replies after receiving the directory inquiry request and sends a first piece of directory reply data to the system;
step 3, the directory owner receives the directory subscription request and replies;
step 4, the system receives the directory owner reply based on the directory inquiry request, and receives and replies the directory reply data;
step 5, the system receives a request reply of a directory owner based on directory subscription;
step 6, after receiving the reply of the system based on the directory reply data, the directory owner continues to send the directory reply data to the end;
and 7, analyzing the received directory reply data by the system to obtain the online state of the current front-end equipment, and updating the directory state.
The invention further illustrates that the step 1 specifically comprises the following steps: when the system needs to acquire the online state of the front-end equipment in real time, the directory query request and the directory subscription request are combined together, and then the combined signaling data is sent to the directory owner, so that the directory owner is ensured to receive the directory subscription request when sending the directory data to the system. The directory query request and the directory subscription request are combined together and then sent to the directory owner, and the fact that the directory owner has received the directory subscription request when sending the directory data to the system is guaranteed.
Further, the system is a terminal or a superior platform server; the catalog owner is a head-end device or a platform server to which the head-end device is connected.
For further explanation, in step 2, the first piece of directory reply data is all directory information subordinate to the directory owner.
For further explanation of the present invention, after the reply in step 3, if the online status of the front-end device changes, a directory notification is actively sent to the system.
Further, in the step 5, after receiving the reply of the directory owner based on the directory subscription request, if the system receives the directory notification data, the system replies to the directory owner and stores the data information in the directory notification data linked list.
Further, before continuing to send the directory reply data in step 6, it is necessary to determine whether all the directory reply data signaling has been sent, if not, the next signaling is sent continuously, and if so, the directory reply process is ended.
Further, the invention explains that, after receiving and replying the directory reply data in the step 4, the directory reply data is stored in the directory reply data linked list.
Further explaining the present invention, after the online state of the current front-end device is obtained in step 7, data needs to be extracted from the directory notification data linked list, information that the online state of the front-end device changes in this period is obtained through analysis, and the online state obtained from the directory reply data before is updated.
The invention has the following beneficial effects:
1. in the invention, when the system needs to acquire the online state of the front-end equipment in real time, the two signaling data of the directory query request and the directory subscription request are firstly combined and then sent to the directory owner, so that the directory owner is ensured to receive the directory subscription request when sending the directory data to the system, and the system is effectively ensured to avoid missing the change of the online state of the front-end equipment.
2. The invention has strong universality and is suitable for realizing the online state real-time acquisition function (the terminal-platform server, the superior platform server-the inferior platform server, the platform server-the front-end equipment and other scenes) of any product conforming to the GB/T28181 signaling specification.
3. The invention solves the problem that the acquired state is incorrect in the existing method for acquiring the online state of the front-end equipment.
Drawings
Fig. 1 is a flow chart of front-end device online status acquisition.
Fig. 2 is a flow chart of front-end device online status update.
Detailed Description
The invention will be further explained with reference to the drawings.
Example 1:
a front-end equipment online state acquisition method comprises the following steps:
step 1, when a system needs to acquire the online state of front-end equipment in real time, firstly combining two signaling data of a directory query request and a directory subscription request, and then sending the signaling data to a directory owner to ensure that the directory owner has received the directory subscription request when sending the directory data to the system;
step 2, the directory owner replies 200 OK after receiving the directory inquiry request and sends a first piece of directory reply data to the system;
step 3, the directory owner receives the directory subscription request and replies 200 OK;
step 4, the system receives the 200 OK replied by the directory owner based on the directory inquiry request, receives the directory reply data and replies the 200 OK;
step 5, the system receives 200 OK replied by the directory owner based on the directory subscription request;
step 6, after receiving the reply 200 OK of the system based on the directory reply data, the directory owner continues to send the directory reply data to the end;
and 7, analyzing the received directory reply data by the system to obtain the online state of the current front-end equipment, and updating the directory state.
Example 2:
this example differs from example 1 in that: the system is a terminal or a superior platform server; the catalog owner is a head-end device or a platform server to which the head-end device is connected.
Example 3:
this example differs from example 2 in that: and if the online state of the front-end equipment is changed after the reply in the step 3, actively sending a directory notification to the system.
Example 4:
this example differs from example 3 in that: and 5, after receiving the reply of the directory owner based on the directory subscription request, if receiving the directory notification data, the system replies to the directory owner and stores the data information into the directory notification data linked list.
Example 5:
this example differs from example 4 in that: and 6, before continuing to send the directory reply data, judging whether all directory reply data signaling is sent completely, if not, continuing to send the next signaling, and if so, ending the directory reply process.
Example 6:
this example differs from example 5 in that: and 4, after receiving and replying the directory reply data in the step 4, storing the directory reply data in the directory reply data linked list.
Example 7:
this example differs from example 6 in that: after the online state of the current front-end device is obtained in step 7, data needs to be extracted from the directory notification data linked list, information that the online state of the front-end device changes in this period is obtained through analysis, and the online state obtained from the directory reply data before is updated.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made thereto by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should be considered as falling within the scope of the present invention.

Claims (9)

1. A method for acquiring the online state of front-end equipment is characterized by comprising the following steps:
step 1, a system sends a directory query request and a directory subscription request to a directory owner;
step 2, the directory owner replies after receiving the directory inquiry request and sends a first piece of directory reply data to the system;
step 3, the directory owner receives the directory subscription request and replies;
step 4, the system receives the directory owner reply based on the directory inquiry request, and receives and replies the directory reply data;
step 5, the system receives a request reply of a directory owner based on directory subscription;
step 6, after receiving the reply of the system based on the directory reply data, the directory owner continues to send the directory reply data to the end;
and 7, analyzing the received directory reply data by the system to obtain the online state of the current front-end equipment, and updating the directory state.
2. The front-end device online status acquisition method according to claim 1, wherein: the step 1 specifically comprises the following steps: when the system needs to acquire the online state of the front-end equipment in real time, the directory query request and the directory subscription request are combined together, and then the socket interface is called to send the combined data to the directory owner, so that the directory owner is ensured to receive the directory subscription request when sending the directory data to the system.
3. The front-end device online status acquisition method according to claim 1, wherein: the system is a terminal or a superior platform server; the catalog owner is a head-end device or a platform server to which the head-end device is connected.
4. The front-end device online status acquisition method according to claim 1, wherein: in the step 2, the first piece of directory reply data is all directory information subordinate to the directory owner.
5. The front-end device online status acquisition method according to claim 1, wherein: and if the online state of the front-end equipment is changed after the reply in the step 3, actively sending a directory notification to the system.
6. The front-end device online status acquisition method according to claim 1, wherein: and 5, after receiving the reply of the directory owner based on the directory subscription request, if receiving the directory notification data, the system replies to the directory owner and stores the data information into the directory notification data linked list.
7. The front-end device online status acquisition method according to claim 1, wherein: and 6, before continuing to send the directory reply data, judging whether all directory reply data signaling is sent completely, if not, continuing to send the next signaling, and if so, ending the directory reply process.
8. The front-end device online status acquisition method according to claim 1, wherein: and 4, after receiving and replying the directory reply data in the step 4, storing the directory reply data in the directory reply data linked list.
9. The front-end device online status acquisition method according to claim 1, wherein: after the online state of the current front-end device is obtained in step 7, data needs to be extracted from the directory notification data linked list, information that the online state of the front-end device changes in this period is obtained through analysis, and the online state obtained from the directory reply data before is updated.
CN202111609642.8A 2021-12-27 2021-12-27 Front-end equipment online state acquisition method Active CN114374728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111609642.8A CN114374728B (en) 2021-12-27 2021-12-27 Front-end equipment online state acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111609642.8A CN114374728B (en) 2021-12-27 2021-12-27 Front-end equipment online state acquisition method

Publications (2)

Publication Number Publication Date
CN114374728A true CN114374728A (en) 2022-04-19
CN114374728B CN114374728B (en) 2023-11-10

Family

ID=81142183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111609642.8A Active CN114374728B (en) 2021-12-27 2021-12-27 Front-end equipment online state acquisition method

Country Status (1)

Country Link
CN (1) CN114374728B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055644A (en) * 2009-11-11 2011-05-11 中兴通讯股份有限公司 Method, device and system for load management in distributed directory service system
US20130204907A1 (en) * 2010-02-11 2013-08-08 Telefonaktiebolaget L M (Publ) Data Management at a Directory Database
CN110196874A (en) * 2019-05-31 2019-09-03 新华三大数据技术有限公司 Data subscription method, device and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055644A (en) * 2009-11-11 2011-05-11 中兴通讯股份有限公司 Method, device and system for load management in distributed directory service system
US20130204907A1 (en) * 2010-02-11 2013-08-08 Telefonaktiebolaget L M (Publ) Data Management at a Directory Database
CN110196874A (en) * 2019-05-31 2019-09-03 新华三大数据技术有限公司 Data subscription method, device and server

Also Published As

Publication number Publication date
CN114374728B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN101180852A (en) Method and system for the remote management of a machine via IP links of an IP multimedia subsystem, IMS
CN112448933B (en) Method and system for self-adapting compatible platform inter-domain protocol
US9319226B2 (en) Method and system for downloading in ubiquitous network by means of multicast
CN114553373B (en) Data transmission method, device, equipment and storage medium
CN112118171A (en) Message intercommunication system, method, device, computer equipment and readable storage medium
CN113271541A (en) Method and device for acquiring terminal behavior data, method and device for transmitting terminal behavior data and network equipment
CN110247900B (en) Intelligent gateway for storing real-time video of SIP monitoring platform into ONVIF storage device
CN112929439A (en) Equipment discovery method and system based on identification analysis
CN109039731B (en) Network management northbound interface alarm self-adapting method
CN114374728A (en) Front-end equipment online state acquisition method
CN111008209B (en) Data reconciliation method, device and system, storage medium and electronic device
CN111681330B (en) Noninductive attendance checking method and equipment
CN106535101B (en) Bluetooth communication method, system and wireless router
CN111200808A (en) Dual-protocol gateway data transmission method and system
JP2003233417A (en) Data communication device and its method, and data communication program and recording medium recorded thereof
CN113794622B (en) Message processing method and device, electronic equipment and storage medium
CN113014887B (en) State switching alarm method and device, storage medium and electronic device
CN108989443B (en) Method and system for pushing message to mobile terminal by push server
CN110233744B (en) Conference state display method, conference state updating method and device
CN111931532A (en) Device management method, device, system and computer readable storage medium
CN116841836B (en) One-key log collecting tool
CN105847409B (en) A kind of agricultural machinery remote job Web method of real-time based on SignalR technology
CN109684341B (en) Real-time synchronization system and method for service data
CN114006936B (en) System operation information real-time acquisition method, server and client
CN116389422A (en) Method and device for wireless equipment to acquire IP address of wireless connection terminal

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