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

Front-end equipment online state acquisition method Download PDF

Info

Publication number
CN114374728B
CN114374728B CN202111609642.8A CN202111609642A CN114374728B CN 114374728 B CN114374728 B CN 114374728B CN 202111609642 A CN202111609642 A CN 202111609642A CN 114374728 B CN114374728 B CN 114374728B
Authority
CN
China
Prior art keywords
catalog
owner
reply
data
end equipment
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
CN202111609642.8A
Other languages
Chinese (zh)
Other versions
CN114374728A (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

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 application discloses a method for acquiring the online state of front-end equipment, which comprises the following steps: (1) The system sends a catalog inquiry request and a catalog subscription request to a catalog owner; (2) The directory owner replies after receiving the directory inquiry request, and sends first entry directory reply data to the system; (3) the catalog owner receives the catalog subscription request and replies; (4) The system receives the reply of the catalog owner based on the catalog inquiry request, receives catalog reply data and replies; (5) The system receives a reply of the catalog owner based on the catalog subscription request; (6) After receiving the reply of the system based on the catalog reply data, the catalog owner continuously sends the catalog reply data to the end; (7) And analyzing the received catalog reply data by the system to obtain the online state of the current front-end equipment. The application combines the catalog inquiry request and the catalog subscription request and sends the combined catalog inquiry request and the catalog subscription request to the catalog owner, thereby solving the problem of incorrect online state of the front-end equipment in the prior art.

Description

Front-end equipment online state acquisition method
Technical Field
The application belongs to the technical field of monitoring systems, and particularly relates to a method for acquiring the online state of front-end equipment.
Background
In the video monitoring field system, the front-end equipment is mostly developed and communicated based on the SIP protocol specified by GB/T28181. According to the GB/T28181 standard, the online state information is stored in directory data. When the system (the system can be a terminal or an upper platform server) needs to acquire the online state of the front-end equipment in real time, the existing mechanism mostly adopts to send a catalog owner (the catalog owner can be the front-end equipment or the platform server connected with the front-end equipment) first, and the catalog owner returns all the catalog data of the front-end equipment owned by the catalog owner based on the request. After receiving all node directory data, the system sends a directory subscription request to a directory owner. After receiving the request, the catalog owner actively transmits catalog 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 equipment nodes of the directory owner is large, the problem that the online state acquired by the system is incorrect may exist in this way. The reason is that when the number of front-end equipment nodes of the catalog owner is large, the amount of catalog data to be sent is also large, and a certain time is required for sending to be completed. During this transmission, the directory owner has not received a directory subscription request, and if the presence status of the head-end equipment changes, the directory owner does not notify the system, resulting in incorrect presence status obtained by the system.
The Chinese patent No. CN201410384194.X discloses a front-end application monitoring method, comprising the following steps: when the terminal equipment runs a front-end application through a browser, the front-end application monitors the running state of the terminal equipment; when the front-end application monitors that the current running state meets the reporting triggering condition, the front-end application acquires data corresponding to the current running state, and reports the acquired data to a Web server through a reporting agency in a preset format, so that the Web server regulates the data, then sends the regulated data to a monitoring server, and the monitoring server carries out corresponding processing according to the regulated data. The embodiment of the application also discloses a front-end application and a monitoring system of the front-end application. By implementing the embodiment of the application, the front-end application can actively report the running condition, and the efficiency of finding the problem of the front-end application is improved. But does not take into account that if the number of head-end nodes is large, the data sent to the system may not be consistent with the current state of the head-end, resulting in an incorrect state being acquired by the system.
The application of China is patent CN200810061115.6, a front-end processor control system of a general monitoring system is disclosed, the front-end processor control system is used for polling a scanning acquisition end, storing scanned data to the front-end processor, a rear-end processor is communicated with the front-end processor to acquire or set an embedded microprocessor of the acquisition end data under the front-end processor, the embedded microprocessor comprises a defined digital switching value, the front-end processor actively initiates communication, and the front-end processor responds, and adopts a one-to-one mode, wherein a data frame format comprises: a start flag, a frame header, content, a check code, and an end flag; normal data inquiry is carried out, the digital switching value output by the acquisition end is set, the alarm parameter up-down value of the acquisition end is set, the input switching state quantity of the acquisition end is set by the front-end machine, and the configuration of all parameters of the acquisition end is set. The front end machine control system of the universal monitoring system has good expansibility, reduces cost and avoids waste when the production scale is increased. However, the one-to-one method requires a relatively long time, and cannot meet the demand.
Disclosure of Invention
Aiming at the defects of the prior art, the application 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 above purpose, the present application adopts the following technical scheme:
a front-end equipment online state acquisition method comprises the following steps:
step 1, a system sends a catalog inquiry request and a catalog subscription request to a catalog owner;
step 2, the catalog owner replies after receiving the catalog inquiry request, and sends first entry catalog reply data to the system;
step 3, the catalog owner receives the catalog subscription request and replies;
step 4, the system receives the reply of the catalog owner based on the catalog inquiry request, receives catalog reply data and replies;
step 5, the system receives a reply of the catalog owner based on the catalog subscription request;
step 6, after receiving the reply of the system based on the catalog reply data, the catalog owner continues to send the catalog reply data to the end;
and 7, analyzing the received catalog reply data by the system to obtain the online state of the current front-end equipment, and updating the catalog state.
The application further describes 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, firstly, combining the two signaling data of the catalog inquiry request and the catalog subscription request, and then sending the two signaling data to the catalog owner, so as to ensure that the catalog subscription request is received when the catalog owner sends the catalog data to the system. The method and the system combine the catalog inquiry request and the catalog subscription request and send the combined catalog inquiry request and the catalog subscription request to the catalog owner, and ensure that the catalog subscription request is received when the catalog owner sends catalog data to the system, and are key to ensuring that the system avoids the online state change of the missing front-end equipment.
The application further provides that the system is a terminal or an upper platform server; the directory owner is a head-end or a platform server to which the head-end is connected.
In a further explanation of the present application, in the step 2, the first entry record reply data is all directory information subordinate to the directory owner.
According to the application, after the reply in the step 3, if the online state of the front-end equipment is changed, the catalog notification is actively sent to the system.
In step 5, after receiving the reply of the catalog owner based on the catalog subscription request, if the catalog notification data is received, the system replies to the catalog owner and stores the data information into the catalog notification data link list.
In the further explanation of the present application, before continuing to send the directory reply data in step 6, it needs to determine whether all the directory reply data signaling has been sent completely, if not, the next signaling is sent continuously, and if so, the directory reply process is ended.
In a further explanation of the present application, after receiving and replying the directory reply data in the step 4, the directory reply data is saved in a directory reply data link table.
In the step 7, after the online state of the current front-end device is obtained, the data needs to be extracted from the catalog notification data linked list, the information that the online state of the front-end device changes in the period of time is obtained by analysis, and the online state obtained from the catalog reply data before is updated.
The application has the following beneficial effects:
1. in the application, when the system needs to acquire the online state of the front-end equipment in real time, firstly, the catalog inquiry request and the catalog subscription request are combined together, and then the two signaling data are sent to the catalog owner, so that the catalog owner is ensured to have received the catalog subscription request when sending the catalog data to the system, and the online state change of the front-end equipment is effectively ensured to be avoided.
2. The method has strong universality, and is suitable for realizing the online state real-time acquisition function of any product meeting the GB/T28181 signaling specification (the scenes such as a terminal-platform server, an upper-level platform server-a lower-level platform server, a platform server-front-end equipment and the like are all applicable).
3. The application solves the problem of incorrect acquired state in the existing front-end equipment online state acquisition method.
Drawings
Fig. 1 is a flow chart of the front-end equipment online status acquisition.
Fig. 2 is a flow chart of a front-end device presence update.
Detailed Description
The application is further described below with reference to the accompanying 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 catalog inquiry request and a catalog subscription request together, and then sending the two signaling data to a catalog owner to ensure that the catalog subscription request is received when the catalog owner sends the catalog data to the system;
step 2, after receiving the catalog inquiry request, the catalog owner replies 200 OK and sends first entry catalog reply data to the system;
step 3, the catalog owner receives the catalog subscription request and replies 200 OK;
step 4, the system receives the directory owner reply based on the directory inquiry request 200 OK, receives the directory reply data and replies 200 OK;
step 5, the system receives 200 OK replied by the catalog owner based on the catalog subscription request;
step 6, after receiving the reply 200 OK of the system based on the catalog reply data, the catalog owner continues to send the catalog reply data to the end;
and 7, analyzing the received catalog reply data by the system to obtain the online state of the current front-end equipment, and updating the catalog state.
Example 2:
this embodiment differs from embodiment 1 in that: the system is a terminal or an upper platform server; the directory owner is a head-end or a platform server to which the head-end is connected.
Example 3:
this embodiment differs from embodiment 2 in that: and after the reply in the step 3, if the online state of the front-end equipment is changed, actively sending a catalog notification to the system.
Example 4:
this embodiment differs from embodiment 3 in that: and 5, after receiving the reply of the catalog owner based on the catalog subscription request, if the catalog notification data is received, the system replies to the catalog owner and stores the data information into a catalog notification data link list.
Example 5:
this embodiment differs from embodiment 4 in that: and (3) judging whether all the directory reply data signaling is sent completely or not before the directory reply data is continuously sent in the step (6), if not, continuing to send the next signaling, and if so, ending the directory reply flow.
Example 6:
this embodiment differs from embodiment 5 in that: and 4, after receiving the catalog reply data and replying, storing the catalog reply data into a catalog reply data linked list.
Example 7:
this embodiment differs from embodiment 6 in that: after the online state of the current front-end equipment is obtained in the step 7, data needs to be extracted from the catalog notification data linked list, information that the online state of the front-end equipment changes in the period of time is obtained through analysis, and the online state obtained from the catalog reply data before is updated.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements of parts may be made to the present application within the spirit and scope of the application, and such modifications and equivalents should be considered to fall within the scope of the application.

Claims (8)

1. The method for acquiring the online state of the front-end equipment is characterized by comprising the following steps of:
step 1, a system sends a catalog inquiry request and a catalog subscription request to a catalog owner, wherein the catalog inquiry request and the catalog subscription request are specifically as follows: when the system needs to acquire the online state of the front-end equipment in real time, firstly combining two signaling data of a catalog inquiry request and a catalog subscription request together, and then calling a socket interface to send the combined data to a catalog owner so as to ensure that the catalog subscription request is received when the catalog owner sends the catalog data to the system;
step 2, the catalog owner replies after receiving the catalog inquiry request, and sends first entry catalog reply data to the system;
step 3, the catalog owner receives the catalog subscription request and replies;
step 4, the system receives the reply of the catalog owner based on the catalog inquiry request, receives catalog reply data and replies;
step 5, the system receives a reply of the catalog owner based on the catalog subscription request;
step 6, after receiving the reply of the system based on the catalog reply data, the catalog owner continues to send the catalog reply data to the end;
and 7, analyzing the received catalog reply data by the system to obtain the online state of the current front-end equipment, and updating the catalog state.
2. The front-end equipment online status acquisition method according to claim 1, wherein: the system is a terminal or an upper platform server; the directory owner is a head-end or a platform server to which the head-end is connected.
3. The front-end equipment online status acquisition method according to claim 1, wherein: and 2, the first entry list reply data in the step is all the list information subordinate to the list owner.
4. The front-end equipment online status acquisition method according to claim 1, wherein: and after the reply in the step 3, if the online state of the front-end equipment is changed, actively sending a catalog notification to the system.
5. The front-end equipment online status acquisition method according to claim 1, wherein: and 5, after receiving the reply of the catalog owner based on the catalog subscription request, if the catalog notification data is received, the system replies to the catalog owner and stores the data information into a catalog notification data link list.
6. The front-end equipment online status acquisition method according to claim 1, wherein: and (3) judging whether all the directory reply data signaling is sent completely or not before the directory reply data is continuously sent in the step (6), if not, continuing to send the next signaling, and if so, ending the directory reply flow.
7. The front-end equipment online status acquisition method according to claim 1, wherein: and 4, after receiving the catalog reply data and replying, storing the catalog reply data into a catalog reply data linked list.
8. The front-end equipment online status acquisition method according to claim 1, wherein: after the online state of the current front-end equipment is obtained in the step 7, data needs to be extracted from the catalog notification data linked list, information that the online state of the front-end equipment changes in the period of time is obtained through analysis, and the online state obtained from the catalog 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 CN114374728A (en) 2022-04-19
CN114374728B true 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 (2)

* 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
CN110196874A (en) * 2019-05-31 2019-09-03 新华三大数据技术有限公司 Data subscription method, device and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2534587B1 (en) * 2010-02-11 2019-11-20 Telefonaktiebolaget LM Ericsson (publ) Data management at a directory database

Patent Citations (2)

* 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
CN110196874A (en) * 2019-05-31 2019-09-03 新华三大数据技术有限公司 Data subscription method, device and server

Also Published As

Publication number Publication date
CN114374728A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN106210099B (en) Data processing system and method
CN110913000A (en) Method, system and computer readable storage medium for processing service information
CN101180852A (en) Method and system for the remote management of a machine via IP links of an IP multimedia subsystem, IMS
CN112650606B (en) Message processing method, device, system, electronic equipment and storage medium
CN110391974A (en) A kind of message synchronization method, server-side, terminal and system
CN114374728B (en) Front-end equipment online state acquisition method
CN110247900B (en) Intelligent gateway for storing real-time video of SIP monitoring platform into ONVIF storage device
CN113407635B (en) Multi-terminal data synchronization method and system for intelligent manufacturing
CN113407555B (en) Operation data updating method and system of equipment handheld terminal
RU2432715C2 (en) Delivery report in communication system
CN111008209B (en) Data reconciliation method, device and system, storage medium and electronic device
EP2804407B1 (en) Method and system for transmitting a text-based emergency call message by means of a mobile telecommunications terminal and a mobile radio communication network, system, computer program and a computer program product
CN111681330B (en) Noninductive attendance checking method and equipment
CN113794622B (en) Message processing method and device, electronic equipment and storage medium
CN103312816B (en) A kind of message distributing method and equipment
CN108989443B (en) Method and system for pushing message to mobile terminal by push server
CN114553944A (en) Early warning message pushing method and system
CN109684341B (en) Real-time synchronization system and method for service data
CN116841836B (en) One-key log collecting tool
CN112449312B (en) Method and device for acquiring multimedia mass-sending service group members in broadband cluster system
CN105847409B (en) A kind of agricultural machinery remote job Web method of real-time based on SignalR technology
CN115499435B (en) Task scheduling method, system, electronic device and computer readable storage medium
CN116614420A (en) Vehicle-mounted SOMEIP protocol testing method and device
CN114827260B (en) Data transmission method and related device
CN117729458A (en) Method and device for preventing ONU (optical network Unit) alarm from being lost, PON (Passive optical network) system and medium

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