CN110266755B - Method and device for acquiring state of cooperative server - Google Patents

Method and device for acquiring state of cooperative server Download PDF

Info

Publication number
CN110266755B
CN110266755B CN201910385569.7A CN201910385569A CN110266755B CN 110266755 B CN110266755 B CN 110266755B CN 201910385569 A CN201910385569 A CN 201910385569A CN 110266755 B CN110266755 B CN 110266755B
Authority
CN
China
Prior art keywords
server
time information
web platform
protocol
module
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
CN201910385569.7A
Other languages
Chinese (zh)
Other versions
CN110266755A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910385569.7A priority Critical patent/CN110266755B/en
Publication of CN110266755A publication Critical patent/CN110266755A/en
Application granted granted Critical
Publication of CN110266755B publication Critical patent/CN110266755B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a method and a device for acquiring a state of a cooperative server, comprising the following steps: the method comprises the steps that an intermediate server sends a heartbeat request to a corotation server through a video networking protocol, wherein the heartbeat request comprises a main message number of the corotation server; receiving a response message returned by the protocol conversion server; updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the response message; and the Web platform determines whether the protocol conversion server is on line according to the first time information so as to solve the problem that the current Web platform cannot display the state of the protocol conversion server in real time.

Description

Method and device for acquiring state of cooperative server
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for acquiring a state of a cooperative server.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other.
However, at present, because the Web platform adopts the internet protocol and the protocol of the video network adopted by the protocol conversion server, the Web platform cannot display the state of the protocol conversion server in real time.
Disclosure of Invention
The application provides a method and a device for acquiring a state of a cooperative server, which are used for solving the problem that the state of the cooperative server cannot be displayed in real time by the conventional Web platform.
In order to solve the above problem, the present application discloses a method for acquiring a state of a cooperative server, including:
the method comprises the steps that an intermediate server sends a heartbeat request to a corotation server through a video networking protocol, wherein the heartbeat request comprises a main message number of the corotation server;
receiving a response message returned by the protocol conversion server;
the response message updates first time information of the protocol conversion server in the Web platform database through an Internet protocol;
and the Web platform determines whether the collaboration server is on line or not according to the first time information.
Optionally, the step of updating the first time information of the collaboration server in the Web platform database through the internet protocol according to the response message includes:
determining second time information of a response message returned by the protocol conversion server;
and updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information.
Optionally, the step of determining, by the Web platform, whether the collaboration server is online according to the first time information includes:
acquiring third time information of the protocol conversion server in a Web platform reading database;
and determining the interval time of the first time information and the third time information, and if the interval time is less than a preset threshold value, determining that the cooperative server is online.
Optionally, the step of determining, by the Web platform, whether the collaboration server is online according to the first time information further includes:
and if the interval time is greater than a preset threshold value, determining that the cooperative server is offline.
Optionally, the step of sending, by the intermediate server, the heartbeat request to the cooperative server through the video networking protocol includes:
and the intermediate server sends a heartbeat request to the coordination server through a video networking protocol according to the set interval time.
In order to solve the above problem, the present application further discloses an apparatus for acquiring a state of a cooperative server, including:
the sending module is used for sending a heartbeat request to the corotation server through a video networking protocol, wherein the heartbeat request comprises a main message number of the corotation server;
the receiving module is used for receiving a response message returned by the protocol conversion server;
the first time module is used for updating the first time information of the protocol conversion server in the Web platform database through the response message by an Internet protocol;
and the determining module is used for determining whether the cooperative server is on line or not by the Web platform according to the first time information.
Optionally, the first time module includes:
the second time module is used for determining second time information of a response message returned by the protocol conversion server;
and the updating module is used for updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information.
Optionally, the determining module includes:
the acquisition module is used for acquiring third time information of the cooperative conversion server in a Web platform reading database;
and the comparison module is used for determining the interval time between the first time information and the third time information, and if the interval time is smaller than a preset threshold value, the cooperative server is determined to be on line.
Optionally, the comparing module is further configured to determine that the cooperative server is offline if the interval time is greater than a preset threshold.
Optionally, the sending module is specifically configured to: and sending a heartbeat request to the coordination server through the video networking protocol according to the set interval time.
Compared with the prior art, the method has the following advantages:
the method comprises the steps that communication between a Web platform and a protocol conversion server is achieved through an intermediate server, the intermediate server sends a heartbeat request to the protocol conversion server through a video networking protocol, and the heartbeat request comprises a main message number of the protocol conversion server; receiving a response message returned by the protocol conversion server; the response message updates first time information of the protocol conversion server in the Web platform database through an Internet protocol; and the Web platform determines whether the protocol conversion server is on line according to the first time information, so that the problem that the Web platform cannot display the state of the protocol conversion server in real time is solved.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for practicing the present application.
Drawings
Fig. 1 is a schematic diagram of a networking structure of a method for acquiring a state of a cooperative server according to the present application;
fig. 2 is a flowchart of a method for acquiring a state of a collaboration server according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for acquiring a state of a collaboration server according to a second embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
The protocol conversion server is also called a monitoring access server and is responsible for accessing monitoring equipment (which can also be described as monitoring resources) of the internet into the video network, so that the monitoring equipment on the internet can be browsed and controlled in the video network.
The networking structure of the method for acquiring the state of the cooperative server comprises the following steps: the system comprises a protocol conversion server 11 … 1n, a video network server 21 … 2n, an intermediate server VmsServer31 … 3n, a Web platform database 41 … 4n and a Web platform 51 … 5n, wherein the protocol conversion server and the video network server are communicated by adopting a video network protocol, the video network server and the intermediate server are communicated by adopting the video network protocol, the intermediate server and the Web platform database are communicated by adopting the Internet protocol, the Web platform database and the Web platform are communicated by adopting the Internet protocol, and the Web platform cannot display the state of the protocol conversion server in real time due to the fact that the video network and the Internet use different communication protocols, so that the intermediate server is used as an intermediary, and communication between the Web platform and the protocol conversion server is achieved.
Example one
Referring to fig. 2, a flowchart of a method for acquiring a state of a collaboration server in an embodiment of the present application is shown, which specifically includes:
step 201: the method comprises the steps that an intermediate server sends a heartbeat request to a protocol conversion server through a video networking protocol, wherein the heartbeat request comprises a main message number of the protocol conversion server.
Specifically, the intermediate server sends a heartbeat request to the protocol conversion server through the video networking protocol, wherein the heartbeat request is sent by 8F85, 0090 protocol transmission based on the video networking protocol.
In practical application, the intermediate server sends a heartbeat request to the coordination server through a video networking protocol according to set interval time.
The setting of the interval time may be set by a person skilled in the art in any appropriate manner, for example, a threshold may be set by manual experience, or the interval time may be set according to a difference value of historical data, for example: 1 minute, 5 minutes, etc., which the present application does not limit.
Step 202: and receiving a response message returned by the protocol conversion server.
After receiving the heartbeat request sent by the intermediate server, the protocol conversion server returns response information according to the main message number of the protocol conversion server in the heartbeat request, and the response information is sent to the intermediate server through a video networking protocol.
The response information returned by the protocol conversion server is transmitted to the intermediate server based on 8785, 0091 protocol of the video network.
Step 203: and the response message updates the first time information of the protocol conversion server in the Web platform database through an Internet protocol.
In practical application, the step of updating the first time information of the protocol conversion server in the Web platform database through the internet protocol according to the response message includes:
and determining second time information of the response message returned by the protocol server.
And updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information.
The second time information is time when the intermediate server receives the response message of the collaboration server, and is used as the second time information.
Step 204: and the Web platform determines whether the collaboration server is on line or not according to the first time information.
As one implementation manner, the step of determining, by the Web platform, whether the collaboration server is online according to the first time information includes:
acquiring third time information of the protocol conversion server in a Web platform reading database;
and determining the interval time of the first time information and the third time information, and if the interval time is less than a preset threshold value, determining that the cooperative server is online.
As another implementation manner, the step of determining, by the Web platform, whether the collaboration server is online according to the first time information further includes:
and if the interval time is greater than a preset threshold value, determining that the cooperative server is offline.
The preset threshold may be set by a person skilled in the art in any appropriate manner, for example, the threshold may be set by manual experience, or the interval time may be set according to the difference value of the historical data, for example: 1 minute, 5 minutes, etc., which the present application does not limit.
In this embodiment, the communication between the Web platform and the protocol conversion server is realized through the intermediate server, and the intermediate server sends a heartbeat request to the protocol conversion server through a video networking protocol, where the heartbeat request includes a main message number of the protocol conversion server; receiving a response message returned by the protocol conversion server; the response message updates first time information of the protocol conversion server in the Web platform database through an Internet protocol; and the Web platform determines whether the protocol conversion server is on line according to the first time information, so that the problem that the Web platform cannot display the state of the protocol conversion server in real time is solved.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Based on the description of the method embodiment, the present application further provides a corresponding apparatus embodiment to implement the content described in the method embodiment.
Example two
Referring to fig. 3, a structural diagram of an apparatus for acquiring a state of a collaboration server according to the second embodiment of the present application is shown, which specifically includes:
a sending module 301, configured to send a heartbeat request to a cooperative server through a video networking protocol, where the heartbeat request includes a main message number of the cooperative server.
A receiving module 302, configured to receive a response message returned by the collaboration server.
A first time module 303, configured to update, in the response message, first time information of the collaboration server in the Web platform database through an internet protocol.
A determining module 304, configured to determine, by the Web platform, whether the collaboration server is online according to the first time information.
Optionally, the first time module includes:
the second time module is used for determining second time information of a response message returned by the protocol conversion server;
and the updating module is used for updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information.
Optionally, the determining module includes:
the acquisition module is used for acquiring third time information of the cooperative conversion server in a Web platform reading database;
and the comparison module is used for determining the interval time between the first time information and the third time information, and if the interval time is smaller than a preset threshold value, the cooperative server is determined to be on line.
Optionally, the comparing module is further configured to determine that the cooperative server is offline if the interval time is greater than a preset threshold.
Optionally, the sending module is specifically configured to: and sending a heartbeat request to the coordination server through the video networking protocol according to the set interval time.
In this embodiment, the communication between the Web platform and the protocol conversion server is realized through the intermediate server, and the intermediate server sends a heartbeat request to the protocol conversion server through a video networking protocol, where the heartbeat request includes a main message number of the protocol conversion server; receiving a response message returned by the protocol conversion server; the response message updates the first time information of the protocol conversion server in the Web platform database through an Internet protocol; and the Web platform determines whether the protocol conversion server is on line according to the first time information, so that the problem that the Web platform cannot display the state of the protocol conversion server in real time is solved.
For the above-mentioned apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the illustrated method embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present application, but the present disclosure is not necessarily detailed herein for reasons of space.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
The method and the device for acquiring the state of the cooperative server provided by the application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the above embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A method for obtaining a state of a collaboration server, comprising:
the method comprises the steps that an intermediate server sends a heartbeat request to a corotation server through a video networking protocol, wherein the heartbeat request comprises a main message number of the corotation server;
receiving a response message returned by the protocol conversion server;
updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the response message, wherein the step of updating the first time information of the protocol conversion server in the Web platform database through the Internet protocol according to the response message comprises the following steps:
determining second time information of a response message returned by the protocol conversion server;
updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information;
the Web platform determines whether the cooperative conversion server is on-line according to the first time information, and the step that the Web platform determines whether the cooperative conversion server is on-line according to the first time information comprises the following steps:
acquiring third time information of the protocol conversion server in a Web platform reading database;
and determining the interval time of the first time information and the third time information, and if the interval time is less than a preset threshold value, determining that the cooperative server is online.
2. The method of claim 1, wherein the step of the Web platform determining whether the collaboration server is online based on the first time information further comprises:
and if the interval time is greater than a preset threshold value, determining that the cooperative server is offline.
3. The method according to any of claims 1-2, wherein the step of the intermediate server sending a heartbeat request to a coordination server via a video networking protocol comprises:
and the intermediate server sends a heartbeat request to the coordination server through a video networking protocol according to the set interval time.
4. An apparatus for obtaining a state of a collaboration server, comprising:
the sending module is used for sending a heartbeat request to the corotation server through a video networking protocol, wherein the heartbeat request comprises a main message number of the corotation server;
the receiving module is used for receiving a response message returned by the protocol conversion server;
a first time module, configured to update, by the response message through an internet protocol, first time information of a collaboration server in a Web platform database, where the first time module further includes:
the second time module is used for determining second time information of a response message returned by the protocol conversion server;
the updating module is used for updating the first time information of the protocol conversion server in the Web platform database through an Internet protocol according to the second time information;
a determining module, configured to determine, by the Web platform, whether the collaboration server is online according to the first time information, where the determining module further includes:
the acquisition module is used for acquiring third time information of the cooperative conversion server in a Web platform reading database;
and the comparison module is used for determining the interval time between the first time information and the third time information, and if the interval time is smaller than a preset threshold value, the cooperative server is determined to be on line.
5. The apparatus of claim 4, wherein the determining module comprises:
the acquisition module is used for acquiring third time information of the cooperative conversion server in a Web platform reading database;
and the comparison module is used for determining the interval time between the first time information and the third time information, and if the interval time is smaller than a preset threshold value, the cooperative server is determined to be on line.
6. The apparatus of claim 5, wherein the comparing module is further configured to determine that the collaboration server is offline if the interval time is greater than a preset threshold.
7. The apparatus according to any one of claims 4 to 6, wherein the sending module is specifically configured to: and sending a heartbeat request to the coordination server through the video networking protocol according to the set interval time.
CN201910385569.7A 2019-05-09 2019-05-09 Method and device for acquiring state of cooperative server Active CN110266755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910385569.7A CN110266755B (en) 2019-05-09 2019-05-09 Method and device for acquiring state of cooperative server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910385569.7A CN110266755B (en) 2019-05-09 2019-05-09 Method and device for acquiring state of cooperative server

Publications (2)

Publication Number Publication Date
CN110266755A CN110266755A (en) 2019-09-20
CN110266755B true CN110266755B (en) 2022-02-25

Family

ID=67914526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910385569.7A Active CN110266755B (en) 2019-05-09 2019-05-09 Method and device for acquiring state of cooperative server

Country Status (1)

Country Link
CN (1) CN110266755B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1423795A1 (en) * 2001-08-17 2004-06-02 Genesys Telecommunications Laboratories, Inc. System for routing instant messages from users in a customer service group
WO2008094540A1 (en) * 2007-01-29 2008-08-07 Mashery, Inc. Methods for analyzing limiting, and enhancing access to an internet api, web service, and data
CN108965226A (en) * 2017-12-21 2018-12-07 北京视联动力国际信息技术有限公司 A kind of data capture method and device based on view networking
CN108965369A (en) * 2017-11-22 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method for pushing and system of server state
CN109714568A (en) * 2018-12-12 2019-05-03 视联动力信息技术股份有限公司 A kind of synchronous method and device of video monitoring data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1423795A1 (en) * 2001-08-17 2004-06-02 Genesys Telecommunications Laboratories, Inc. System for routing instant messages from users in a customer service group
WO2008094540A1 (en) * 2007-01-29 2008-08-07 Mashery, Inc. Methods for analyzing limiting, and enhancing access to an internet api, web service, and data
CN108965369A (en) * 2017-11-22 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method for pushing and system of server state
CN108965226A (en) * 2017-12-21 2018-12-07 北京视联动力国际信息技术有限公司 A kind of data capture method and device based on view networking
CN109714568A (en) * 2018-12-12 2019-05-03 视联动力信息技术股份有限公司 A kind of synchronous method and device of video monitoring data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Design, Prototype Implementation, and Comparison of Scalable Web-Push Architectures on Amazon Web Services Using the Actor Model;Hussachai Puripunpinyo;《2017 25th International Conference on Systems Engineering (ICSEng)》;20170824;全文 *
低延迟P2P直播客户端系统设计与实现;黄志武;《中国优秀硕士论文全文数据库 信息科技辑》;20190315(第3期);全文 *
基于嵌入式Web的监控系统结构研究;符意德等;《工业控制计算机》;20030120(第12期);全文 *

Also Published As

Publication number Publication date
CN110266755A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US20240022612A1 (en) Systems and methods for dynamic connection management
CN108965369A (en) A kind of method for pushing and system of server state
US8682969B1 (en) Framed event system and method
CN104581189A (en) Multi-screen controlling method and system
CN111222008A (en) Terminal information management method and device, electronic equipment and medium
CN101227265B (en) Method for data synchronization among client ends in equipment monitoring system
CN103763380B (en) A kind of method and system of synchronous demonstrating data
DE112013004133B4 (en) Server for synchronized transmission
CN112866390B (en) Data transmission method, device, terminal equipment and storage medium
CN111405229A (en) Video conference processing method, system, client, electronic device and storage medium
CN112260946B (en) Link failure processing method and device, terminal equipment and storage medium
CN110266755B (en) Method and device for acquiring state of cooperative server
CN112134937B (en) Ship remote data monitoring system and method based on content aggregation
CN111212043A (en) Multimedia file generation method and device
CN110033660B (en) Interactive teaching system
CN111131777B (en) Viewing method and device for video network monitoring
CN111083426B (en) Data processing method and device, terminal equipment and storage medium
CN113573025A (en) Monitoring video viewing method and device, terminal equipment and storage medium
CN111556284A (en) Method and device for sharing video stream monitored by video network
CN112040281A (en) Parameter modification method, client, server, electronic device and storage medium
CN110120967B (en) Data synchronization method and device
CN110138584B (en) Monitoring method and device
CN111726645A (en) Live broadcast control method and device, electronic equipment and storage medium
EP3257220A1 (en) Method for transmitting data in a multimedia system, and software product and device for controlling the transmission of data in a multimedia system
CN115776587B (en) Information synchronization method and device and related equipment

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