CN110971479A - Server detection method, device and system based on video network - Google Patents

Server detection method, device and system based on video network Download PDF

Info

Publication number
CN110971479A
CN110971479A CN201910950790.2A CN201910950790A CN110971479A CN 110971479 A CN110971479 A CN 110971479A CN 201910950790 A CN201910950790 A CN 201910950790A CN 110971479 A CN110971479 A CN 110971479A
Authority
CN
China
Prior art keywords
server
detected
online
servers
video network
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
CN201910950790.2A
Other languages
Chinese (zh)
Other versions
CN110971479B (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 CN201910950790.2A priority Critical patent/CN110971479B/en
Publication of CN110971479A publication Critical patent/CN110971479A/en
Application granted granted Critical
Publication of CN110971479B publication Critical patent/CN110971479B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a server detection method, a device and a system based on a video network, relating to the technical field of video networks. The method comprises the following steps: the method comprises the steps that a video network client determines identifications corresponding to at least two servers to be detected; sending a first online detection request containing identifiers corresponding to at least two servers to be detected to a video network server; and receiving a detection result returned by the video network server and determining whether each server to be detected is online or not based on the detection result. In the embodiment of the invention, a user only needs to send a first online detection request containing the identifiers corresponding to the servers to be detected to the video network server by using the video network client, and the video network server can realize the simultaneous detection of the servers to be detected. Therefore, the servers to be detected do not need to be manually logged in one by one for detection, so that the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.

Description

Server detection method, device and system based on video network
Technical Field
The invention relates to the technical field of video networking, in particular to a server detection method, device and system based on video networking.
Background
At present, in order to meet the increasing network demands of users, network providers often set a server to provide corresponding network services for users, for example, set a streaming media server to provide streaming media resources for users to watch. However, the server can normally provide the network service for the user only when the server is in the online state, and therefore, in order to ensure that the user can normally obtain the network service provided by the server, it is often necessary to detect whether the server is online.
In the prior art, generally, an operation and maintenance worker logs in servers to be detected one by using a client in a manual login manner, so as to detect whether the servers are online. Thus, the whole inspection process consumes a long time and a large cost, and the whole inspection process is complicated.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a method, apparatus and system for detecting a server based on a video network, which overcome the above problems or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a server detection method based on a video network, which is applied to a video network client, and includes:
determining the corresponding identifications of at least two servers to be detected;
sending a first online detection request containing the identifications corresponding to the at least two servers to be detected to a video network server, so that the video network server sends a second online detection request to each server to be detected respectively based on the identifications corresponding to the at least two servers to be detected;
receiving a detection result returned by the video networking server;
and determining whether each server to be detected is online or not based on the detection result.
The embodiment of the invention also discloses a server detection method based on the video network, which is applied to the video network server and comprises the following steps:
receiving a first online detection request sent by a video networking client; the first online detection request comprises identifications corresponding to at least two servers to be detected;
based on the identifiers corresponding to at least two servers to be detected contained in the first online detection request, respectively sending a second online detection request to each server to be detected so as to detect whether each server to be detected is online;
generating a detection result based on the response result of each server to be detected;
and sending the detection result to the video networking client.
The embodiment of the invention also discloses a server detection method based on the video network, which comprises the following steps:
the video network client determines the corresponding identifications of at least two servers to be detected;
the video network client side sends a first online detection request containing the identifications corresponding to the at least two servers to be detected to the video network server;
the video network server sends a second online detection request to each server to be detected respectively based on the identification corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the video network server generates a detection result based on the response result of each server to be detected;
the video network server sends the detection result to the video network client;
the video network client receives a detection result returned by the video network server;
and the video network client determines whether each server to be detected is online or not based on the detection result.
The embodiment of the invention discloses a server detection device based on a video network, which is applied to a video network client, and comprises:
the first determining module is used for determining the corresponding identifications of the at least two servers to be detected;
the sending module is used for sending a first online detection request containing the identifications corresponding to the at least two servers to be detected to the video network server so that the video network server sends a second online detection request to each server to be detected based on the identifications corresponding to the at least two servers to be detected;
the receiving module is used for receiving a detection result returned by the video networking server;
and the second determining module is used for determining whether each server to be detected is online or not based on the detection result.
The embodiment of the invention also discloses a server detection device based on the video network, which is applied to the video network server, and the device comprises:
the receiving module is used for receiving a first online detection request sent by a video networking client; the first online detection request comprises identifications corresponding to at least two servers to be detected;
the first sending module is used for sending a second online detection request to each server to be detected respectively based on the identifiers corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the generating module generates a detection result based on the response result of each server to be detected;
and the second sending module is used for sending the detection result to the video networking client.
The embodiment of the invention also discloses a server detection system based on the video network, which comprises a video network client and a video network server;
the video network client is used for determining the corresponding identification of at least two servers to be detected;
the video network client is used for sending a first online detection request containing the identifiers corresponding to the at least two servers to be detected to the video network server;
the video network server is used for sending a second online detection request to each server to be detected respectively based on the identification corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the video network server is used for generating a detection result based on the response result of each server to be detected;
the video network server is used for sending the detection result to the video network client;
the video network client is used for receiving a detection result returned by the video network server;
and the video network client is used for determining whether each server to be detected is online or not based on the detection result.
The embodiment of the invention also discloses a server detection device based on the video network, which is characterized by comprising the following components:
one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a video networking based server detection method as described above.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for enabling a processor to execute the detection method based on the video network server.
The embodiment of the invention has the following advantages:
according to the server detection method based on the video network, a user only needs to send a first online detection request containing the identification corresponding to the servers to be detected to the video network server by using the video network client, and the servers to be detected can be detected simultaneously through the video network server. Therefore, the servers to be detected do not need to be manually logged in one by one for detection, the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flow chart of the steps of a method for Visio-based Server detection in accordance with the present invention;
FIG. 6 is a flow chart of the steps of another video-networking based server detection method of the present invention;
FIG. 7 is a flow chart of the steps of yet another video network-based server detection method of the present invention;
FIG. 8 is an interaction flow chart of a detection method of a streaming media server based on video networking according to the invention;
FIG. 9 is an interaction flow diagram of another streaming media server detection method based on video networking according to the present invention;
FIG. 10 is a block diagram of a server detection device based on video network according to the present invention;
FIG. 11 is a block diagram of another embodiment of a video-networking based server detection apparatus;
fig. 12 is a block diagram of a server detection system based on video network according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
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.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
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.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video network, the core concept of the embodiment of the invention is provided, the video network client sends a first online detection request to the video network server, the video network server sends a second online detection request to each server to be detected, and the video network server generates a detection result and returns the detection result to the video network client based on the response result of each server to be detected.
Referring to fig. 5, a flowchart illustrating steps of an embodiment of a server detection method based on a video network according to the present invention is shown, where the method is applied to a video network client, and specifically may include the following steps:
step 501, determining identifiers corresponding to at least two servers to be detected.
In the embodiment of the invention, the video network client can be a terminal in the video network. The number of the servers to be detected can be determined by the number of the servers to be detected, for example, the number of the servers to be detected can be 2, 3 or thousands, and the number of the servers to be detected is not limited in the embodiment of the present invention. Further, the identifier corresponding to the at least two servers to be detected may be a server identifier of each server to be detected, and the server identifier may be a Media Access Control (MAC) address or a master message number. The server to be detected may be a streaming media server, and the master message number may be a virtual terminal selected by the server to be detected from any virtual terminal issued by the video network server in advance. The primary message number may uniquely identify the detection server. The identifier corresponding to the at least two servers to be detected may also be a group name of a server group to which the servers to be detected belong.
Step 502, sending a first online detection request containing the identifiers corresponding to the at least two servers to be detected to a video network server, so that the video network server sends a second online detection request to each server to be detected based on the identifiers corresponding to the at least two servers to be detected.
In the embodiment of the invention, the video network server is a server capable of communicating with the video network client and the server to be detected. The first online detection request is a request instruction sent to the video networking server when the video networking client needs to detect whether the server to be detected is online. Correspondingly, after receiving the first online detection request, the video network server may send a second online detection request to each server to be detected based on the identifier corresponding to the server to be detected, so as to implement simultaneous detection on a plurality of servers to be detected.
Step 503, receiving the detection result returned by the internet of view servers, and determining whether each server to be detected is online based on the detection result.
The detection result returned by the video network server can indicate whether the servers to be detected are online or not, and accordingly, the video network client can determine whether each server to be detected is online or not based on the detection result.
In summary, the server detection method based on the video network provided by the embodiment of the present invention includes: the method comprises the steps that a video network client determines identifications corresponding to at least two servers to be detected; sending a first online detection request containing identifiers corresponding to at least two servers to be detected to a video network server; and receiving a detection result returned by the video network server and determining whether each server to be detected is online or not based on the detection result. In the embodiment of the invention, a user only needs to send a first online detection request containing the identifiers corresponding to the servers to be detected to the video network server by using the video network client, and the video network server can realize the simultaneous detection of the servers to be detected. Therefore, the servers to be detected do not need to be manually logged in one by one for detection, so that the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.
Referring to fig. 6, a flowchart illustrating steps of another embodiment of a method for detecting a server based on a video network according to the present invention is shown, where the method is applied to a video network server, and specifically may include the following steps:
601, receiving a first online detection request sent by a video network client; the first online detection request comprises identifications corresponding to at least two servers to be detected.
In the embodiment of the invention, the video network client can be any video network client managed by the video network server, the video network server is in communication connection with the video network client, and correspondingly, the video network server can receive the first online detection request sent by the video network client.
Step 602, based on the identifiers corresponding to the at least two servers to be detected included in the first online detection request, respectively sending a second online detection request to each server to be detected, so as to detect whether each server to be detected is online.
In the embodiment of the present invention, the second online detection request may be used to detect whether the server to be detected is online. The video network server may read the identifiers corresponding to the at least two servers to be detected included in the first online detection request, and then send the second online detection request to each server to be detected based on the corresponding identifiers. Therefore, the second online detection request is sent to each server to be detected, a plurality of servers to be detected can be detected simultaneously, and the detection efficiency of the plurality of servers to be detected can be improved to a certain extent. It should be noted that, in an actual application scenario, the servers to be detected may be distributed in a plurality of different regions, and the video network may include a plurality of video network servers, and these video network servers may be connected to each other to form a video network cascade, so that the video network server may forward the second online detection request to the servers to be detected through other video network servers based on the cascade with other video network servers.
Step 603, generating a detection result based on the response result of each server to be detected, and sending the detection result to the video network client.
The response result may be a response made by the server to be detected after receiving the second online detection request. And the server to be detected can make different responses aiming at the second online detection request under different states. Therefore, the video network server can generate a detection result capable of indicating whether the server to be detected is online or not based on the response result. Further, the detection result can be sent to the video network client, so that the video network client can know whether each server to be detected is online.
In summary, the server detection method based on the video network provided by the embodiment of the present invention includes: the method comprises the steps that a video network server receives a first online detection request sent by a video network client; and determining the identification corresponding to the server to be detected, respectively sending a second online detection request to each server to be detected, generating a detection result based on the response result of each server to be detected, and then sending the detection result to the video networking client. In the embodiment of the invention, the video network server can simultaneously detect the plurality of servers to be detected based on the identifications corresponding to the plurality of servers to be detected contained in the first online detection request, so that a user only needs to utilize the video network client to send one first online detection request containing the identifications corresponding to the plurality of servers to be detected to the video network server, and the video network server can simultaneously detect the plurality of servers to be detected, thereby shortening the detection time, reducing the detection cost and improving the detection efficiency.
Referring to fig. 7, a flowchart illustrating steps of another embodiment of a method for detecting a server based on a video network according to the present invention is shown, which may specifically include the following steps:
step 701, the client of the video network determines the corresponding identifiers of at least two servers to be detected.
In the embodiment of the invention, the server to be detected can be a streaming media server deployed with a mobile phone streaming media service system. The mobile phone streaming media service system can be called streaming media for short, compress a series of media data at the video network side, send the data in segments on the network, and transmit video and audio on the network for viewing. The mobile phone end connected with the streaming media server can communicate with the video network side through the streaming media server, watch and monitor, live broadcast, carry out a conference and the like.
A plurality of virtual terminals are configured under the streaming media server, and each virtual terminal corresponds to a 5-digit number, for example 18115. The user can designate the number corresponding to any virtual terminal as the main message number, and the main message number uniquely identifies the streaming media server.
Specifically, when the client of the video network determines the identifiers corresponding to the at least two servers to be detected, the client of the video network may receive the group name input by the user, and then, the group name is used as the identifier corresponding to the at least two servers to be detected. Or, the video network client may also obtain, based on the group name, a server identifier of each server to be detected in the group of servers to be detected indicated by the group name, and obtain identifiers corresponding to at least two servers to be detected. The group name may be a name of a server group to which the servers to be detected belong, and the server group may be pre-established. For example, assuming that the group name input by the user is 001, the server identifier of the server to be detected included in the server group with the group name 001 is: A. b, C, D and E, the client of the video network can directly use 001 as the corresponding identification of at least two servers to be detected, and can also use A, B, C, D and E as the corresponding identification of at least two servers to be detected. In the embodiment of the invention, when a plurality of servers to be detected need to be detected, a user only needs to input the grouping names of the server groups to which the servers to be detected belong, so that the operation amount of the user can be reduced to a certain extent, and the operation efficiency can be improved.
Further, the user can also directly input the server identifier of each server to be detected, and correspondingly, the client of the video network can receive the server identifiers of at least two servers to be detected, which are input by the user, to obtain the identifiers corresponding to the at least two servers to be detected. Therefore, the server identification of each server to be detected is input as the identification corresponding to at least two servers to be detected, so that the server identification of each at least two servers to be detected can be obtained, and the accuracy and the completeness of data can be further ensured.
Step 702, the client sends a first online detection request containing the identifiers corresponding to the at least two servers to be detected to the server of the video network.
In an internet of view, an internet of view client may generate a first presence detect request via the 8F85 protocol, the specification of which 8F85 protocol may be as shown in the following table:
Figure BDA0002225728110000151
the 8F85/8785 protocol is a large instruction protocol defined by streaming media and video network, and it also has smaller small instructions inside it, and the small instructions are used to represent specific request instruction information, and the forwarding of the instructions is realized by the video network server.
Step 703, the video network server sends a second online detection request to each server to be detected respectively based on the identifiers corresponding to at least two servers to be detected contained in the first online detection request, so as to detect whether each server to be detected is online.
In this step, the identifier corresponding to the at least two servers to be detected included in the first online detection request may be a server identifier of each server to be detected in the at least two servers to be detected, or may be a group name of a group of servers to which the at least two servers to be detected belong.
Correspondingly, when the corresponding identifier is a group name of a server group to which at least two servers to be detected belong, the video network server can respectively send a second online detection request to each server to be detected based on the following substeps (1) to (3):
substep (1): the video network server extracts the packet name from the first presence detect request.
In this step, the video network server may parse the first online detection request, and then extract the group name from the parsed first online detection request.
Substep (2): and the video network server acquires the server identifier of each server to be detected in the server group to be detected indicated by the group name based on the group name.
In this step, the server of the video network may search the server identifier corresponding to the group name from the preset corresponding relationship between the group name and the server identifier, and further obtain the server identifier of each server to be detected. The preset correspondence between the group name and the server identifier may be established based on the identifier of the server included in each server group and the group name of the server group, and the correspondence may be stored in the video network server in advance.
Substep (3): and the video network server respectively sends a second online detection request to each server to be detected based on the server identification of each server to be detected.
For example, assuming that server identifications of 5 servers to be detected are obtained, the internet-of-view server may send second online detection requests to the 5 internet-of-view servers respectively based on the 5 internet-of-view servers.
In the embodiment of the invention, the video network server determines the server identifier based on the group name in the first online detection request, so that the video network client does not need to set the server identifiers of all the servers to be detected in the first online detection request, the data volume contained in the first online detection request can be reduced to a certain extent, and the network resource required for sending the first online detection request can be reduced.
Further, when the corresponding identifier is the server identifier of each server to be detected, the server of the video network may extract the server identifier of each server to be detected from the first online detection request; and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected. Therefore, the video network server can respectively send the second online detection request to each server to be detected without searching the server identification based on the group name, and further processing resources required by the video network server for sending the second online detection request can be reduced to a certain extent.
Optionally, in the internet of view, the server of the internet of view may generate the second online detection request through a 8785 protocol, and the specification of the 8785 protocol may be as shown in the following table:
Figure BDA0002225728110000171
step 704, the video network server generates a detection result based on the response result of each server to be detected.
In this step, the detection result may be online indication information, where the online indication information at least includes an online server identifier of the server to be detected, and accordingly, the video network server may implement, by sub-step (4) in the following implementation manner one, a response result based on each server to be detected, and generate the detection result:
implementation mode one
Substep (4): for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message includes the server identifier of the server to be detected.
In this step, if the server to be detected is in an online state, when receiving the second online detection request, a response message is returned to the video network server, where the response message is used to indicate that the server to be detected is online. Correspondingly, if the server to be detected is in an offline state, the detection server cannot normally receive the second online detection request, and further, a response message cannot be returned to the video network server. Thus, the visual network server may generate the detection result based on the different response results of each server to be detected. Further, when influenced by network delay, network deployment environment, and the like, a response message returned by the server to be detected in the online state may have a return delay. Therefore, the video network server can confirm that the server to be detected which returns the response message within the preset time length is the online server to be detected, and further can generate online indication information based on the response message returned by the servers to be detected. The preset time length may be set according to a maximum delay time length of response message return delay caused by the server to be detected in an online state due to the influence of network delay, network deployment environment and other factors.
The presence indication information may be used to indicate which servers to be detected are online. Specifically, the received response message can be used as the online indication information, so that the online indication information can be generated based on the response message conveniently and quickly. Or, the server identifier of the server to be detected which sends the response message can be acquired; and generating a server identification list as online indication information based on the server identification. The response message may include a server identifier of the server to be detected, and the video network server may extract the server identifier in the response message and then generate an identifier list based on the server identifier, so as to serve as the online indication information. Because the list can show the server identification of the online server to be detected more intuitively, the server identification is obtained and the list is generated, so that the client of the video network can conveniently determine the online server to be detected based on the online indication information.
In the embodiment of the invention, the video network client can determine the online server to be detected only by generating the online indication information by the video network server, so that the processing resource of the video network server can be saved in a certain program. Meanwhile, the response message returned within the preset time length is used as a judgment basis, so that the phenomenon that the online server to be detected, which is delayed due to the returned response message caused by the influence of factors such as network delay, network deployment environment and the like, is determined as an offline server can be avoided, and the online indication information can be generated more accurately.
Further, the detection result may be online indication information and offline indication information, and accordingly, the video network server may implement, through the following sub-steps (5) to (6) in the second implementation manner, the response result based on each server to be detected, and generate the detection result:
implementation mode two
Substep (5): for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message includes the server identifier of the server to be detected.
Specifically, the implementation manner of this step may refer to the foregoing steps, and details are not described herein in this embodiment of the present invention.
Substep (6): and for the server to be detected which does not return the response message within the preset time length, generating the offline indication information based on the server identification of the server to be detected.
In this step, the offline indication information at least may include an offline server identifier of the server to be detected. Assuming that the video network server sends a second online detection request to the server a to be detected, the server b to be detected, the server c to be detected, the server d to be detected and the server e to be detected, wherein the server a to be detected, the server b to be detected and the server c to be detected return response messages within a preset time period, the video network server can generate online indication information based on the response messages returned by the server a to be detected, the server b to be detected and the server c to be detected. For example, a list including server identifiers of the server a to be detected, the server b to be detected, and the server c to be detected may be generated as the online indication information. Further, the offline indication information may be generated based on the server identifiers of the server d to be detected and the server e to be detected. The offline indication information may be an offline list including server identifiers of the server d to be detected and the server e to be detected. In the embodiment of the invention, the video network server generates the online indication information and the offline indication information, so that the video network client can conveniently determine the online server and the offline server directly based on the online indication information and the offline indication information, and the determination efficiency of the video network client can be further improved.
Step 705, the video network server sends the detection result to the video network client.
Specifically, the implementation manner of this step may refer to step 603 described above, and details of the embodiment of the present invention are not described herein.
Step 706, the client receives the detection result returned by the server of the video network, and determines whether each server to be detected is online based on the detection result.
Specifically, if the detection result is online indication information including the server identifier of the online server to be detected, the client of the video network may determine the server to be detected indicated by each server identifier included in the online indication information as the online server, and then determine any server to be detected, except the online server, of the at least two servers to be detected as the offline server. For example, if the online indication information includes server identifiers of a server a to be detected, a server b to be detected, and a server c to be detected, the server a to be detected, the server b to be detected, and the server c to be detected may be determined as an online server. Further, assuming that the servers to be detected by the client of the video network further include a server d to be detected and a server e to be detected, the server d to be detected and the server e to be detected can be determined as offline servers. In the embodiment of the invention, the video network client can determine the online server to be detected and the offline server to be detected based on the online indication information, so that the video network server can only generate the online indication information, and the processing resource of the video network server can be saved.
Further, if the detection result is online indication information including the server identifier of the online server to be detected and offline indication information including the server identifier of the offline server to be detected, the client of the video network may determine the server to be detected indicated by each server identifier included in the online indication information as the online server and determine the server to be detected indicated by each server identifier included in the offline indication information as the offline server. For example, if the online indication information includes server identifiers of a server a to be detected, a server b to be detected, and a server c to be detected, the server a to be detected, the server b to be detected, and the server c to be detected may be determined as an online server. The offline indication information includes the server e to be detected and the server identifier of the server e to be detected, so that the server d to be detected and the server e to be detected can be determined as the offline server. In the embodiment of the invention, when the video network client determines the off-line server, the server identification of which servers to be detected are not included is not required to be determined based on the on-line indication information, and the off-line server can be conveniently determined based on the off-line indication information directly, so that the determination efficiency can be improved.
Fig. 8 shows an interaction flow chart of a streaming media server detection method based on the video network according to the invention. In the flowchart, the servers to be detected are streaming media servers, and referring to the foregoing steps, the video network client sends a first online detection request to the video network server under the 8F85 protocol, where the first online detection request includes identifiers corresponding to at least two servers to be detected; the video network server sends second online detection requests to the streaming media servers to be detected respectively under the 8785 protocol; and if the streaming media server to be detected is online, processing the second online detection request after the streaming media server receives the second online detection request, and returning a response message to the video networking server under the 8F85 protocol, wherein the response message comprises an identifier corresponding to the streaming media server. And if the server to be detected is not on line, no response information exists. And then, the video network server generates a detection result according to a return response result of the streaming media to be detected. And finally, the video network server sends the detection result to the video network client under the 8785 protocol, and the video network client determines whether the server to be detected is online according to the detection result.
Fig. 9 shows an interaction flow chart of another streaming media server detection method based on the video network according to the invention. The video network client sends a first online detection request to a video network server, and the video network server sends a second online detection request to a streaming media server; the online streaming media server sends corresponding information to the video network server; and the video network server sends the detection result to the video network client.
In summary, the server detection method based on the video network provided by the embodiment of the present invention includes: the method comprises the steps that a video network client determines identifications corresponding to at least two servers to be detected; the method comprises the steps that a video network client sends a first online detection request containing identifiers corresponding to at least two servers to be detected to a video network server; after receiving a first online detection request sent by a video network client, the video network server determines an identifier corresponding to a server to be detected, sends a second online detection request to each server to be detected, generates a detection result based on a response result of each server to be detected, and sends the detection result to the video network client; and the video network client receives the detection result returned by the video network server and determines whether each server to be detected is online or not based on the detection result. In the embodiment of the invention, a user only needs to send a first online detection request containing the identifiers corresponding to the servers to be detected to the video network server by using the video network client, and the video network server can realize the simultaneous detection of the servers to be detected. Therefore, the servers to be detected do not need to be manually logged in one by one for detection, so that the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 10, there is shown a block diagram of a server detection apparatus based on video network according to the present invention, where the apparatus 100 may be applied in a video network client, and specifically may include the following modules:
a first determining module 1001, configured to determine identifiers corresponding to at least two servers to be detected;
a sending module 1002, configured to send a first online detection request including identifiers corresponding to the at least two servers to be detected to a video network server, so that the video network server sends a second online detection request to each server to be detected based on the identifiers corresponding to the at least two servers to be detected;
a receiving module 1003, configured to receive a detection result returned by the video networking server;
a second determining module 1004, configured to determine whether each server to be detected is online based on the detection result.
Optionally, the first determining module 1001 is configured to:
receiving a grouping name input by a user; taking the group name as the identifier corresponding to the at least two servers to be detected, or acquiring the server identifier of each server to be detected in the group of servers to be detected indicated by the group name based on the group name to obtain the identifier corresponding to the at least two servers to be detected; or receiving server identifications of at least two servers to be detected input by a user to obtain identifications corresponding to the at least two servers to be detected.
Optionally, the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected; the second determining module 1004 is configured to:
determining the server to be detected indicated by each server identification contained in the online indication information as an online server; and determining any server to be detected in the at least two servers to be detected except the online server as an offline server.
Optionally, the detection result is online indication information and offline indication information, the online indication information at least includes an online server identifier of the server to be detected, and the offline indication information at least includes an offline server identifier of the server to be detected; the second determining module 1004 is configured to:
and determining the server to be detected indicated by each server identifier contained in the offline indication information as an online server, and determining the server to be detected indicated by each server identifier contained in the offline indication information as an offline server.
In summary, the server detection device based on the video network provided by the embodiment of the present invention can determine the identifiers corresponding to at least two servers to be detected; sending a first online detection request containing identifiers corresponding to at least two servers to be detected to a video network server; and receiving a detection result returned by the video network server and determining whether each server to be detected is online or not based on the detection result. In the embodiment of the invention, a user only needs to send a first online detection request containing the identifiers corresponding to the servers to be detected to the video network server by using the video network client, and the video network server can realize the simultaneous detection of the servers to be detected. Therefore, the servers to be detected do not need to be manually logged in one by one for detection, so that the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.
Referring to fig. 11, a block diagram of an embodiment of a server detection apparatus based on video network according to the present invention is shown, where the apparatus 110 may be applied in a video network server, and specifically may include the following modules:
a receiving module 1101, configured to receive a first online detection request sent by a video networking client; the first online detection request comprises identifications corresponding to at least two servers to be detected;
a first sending module 1102, configured to send a second online detection request to each server to be detected respectively based on identifiers corresponding to at least two servers to be detected included in the first online detection request, so as to detect whether each server to be detected is online;
a generating module 1103, configured to generate a detection result based on a response result of each server to be detected;
and a second sending module 1104, configured to send the detection result to the video networking client.
Optionally, the identifiers corresponding to the at least two servers to be detected are server group names; the first sending module 1102 is configured to:
extracting the group name from the first online detection request; based on the group name, acquiring a server identifier of each server to be detected in the group of servers to be detected indicated by the group name; and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
Optionally, the identifier corresponding to the at least two servers to be detected is a server identifier of each server to be detected; the first sending module 1102 is configured to:
extracting the server identification of each server to be detected from the first online detection request;
and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
Optionally, the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected; the generating module 1103 is configured to:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message includes the server identifier of the server to be detected.
Optionally, the detection result is online indication information and offline indication information, the online indication information at least includes an online server identifier of the server to be detected, and the offline indication information at least includes an offline server identifier of the server to be detected; the generating module 1003 is configured to:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message comprises a server identifier of the server to be detected; and for the server to be detected which does not return the response message within the preset time length, generating the offline indication information based on the server identification of the server to be detected.
Optionally, the generating module 1103 is further configured to:
using the response message as the online indication information; or acquiring a server identifier of the server to be detected which sends the response message; and generating a server identification list as the online indication information based on the server identification.
In summary, the server detection apparatus based on the video network provided in the embodiment of the present invention may receive a first online detection request sent by a video network client; and determining the identification corresponding to the server to be detected, respectively sending a second online detection request to each server to be detected, generating a detection result based on the response result of each server to be detected, and then sending the detection result to the video networking client. In the embodiment of the invention, the video network server can simultaneously detect the plurality of servers to be detected based on the identifications corresponding to the plurality of servers to be detected contained in the first online detection request, so that a user only needs to utilize the video network client to send the first online detection request containing the identifications corresponding to the plurality of servers to be detected to the video network server, and the video network server can simultaneously detect the plurality of servers to be detected. And further, the detection time can be shortened, the detection cost is reduced, and the detection efficiency is improved.
Referring to fig. 12, a block diagram of an embodiment of the present invention is shown, wherein the system 120 comprises: the system comprises a video network client and a video network server.
The video networking client 1201 is used for determining the corresponding identifiers of at least two servers to be detected;
the video networking client 1201 is configured to send a first online detection request including identifiers corresponding to the at least two servers to be detected to the video networking server;
the video network server 1202 is configured to send a second online detection request to each server to be detected based on the identifiers corresponding to at least two servers to be detected included in the first online detection request, so as to detect whether each server to be detected is online;
the video network server 1202 is configured to generate a detection result based on a response result of each server to be detected;
the video network server 1202 is configured to send the detection result to the video network client;
the video networking client 1201 is used for receiving a detection result returned by the video networking server;
and the video networking client 1201 is configured to determine whether each server to be detected is online based on the detection result.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment. Optionally, the embodiment of the present invention further discloses a server detection device based on the video network, which is characterized by comprising: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a video networking based server detection method as described above.
Optionally, an embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program for enabling a processor to execute the server detection method based on the video network.
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 will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these 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 such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The server detection method based on the video network and the server detection device based on the video network provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (22)

1. A server detection method based on video network is applied to a video network client, and comprises the following steps:
determining the corresponding identifications of at least two servers to be detected;
sending a first online detection request containing the identifications corresponding to the at least two servers to be detected to a video network server, so that the video network server sends a second online detection request to each server to be detected respectively based on the identifications corresponding to the at least two servers to be detected;
receiving a detection result returned by the video networking server;
and determining whether each server to be detected is online or not based on the detection result.
2. The method according to claim 1, wherein the determining the identifiers corresponding to the at least two servers to be detected comprises:
receiving a grouping name input by a user; taking the group name as the identifier corresponding to the at least two servers to be detected, or acquiring the server identifier of each server to be detected in the group of servers to be detected indicated by the group name based on the group name to obtain the identifier corresponding to the at least two servers to be detected; alternatively, the first and second electrodes may be,
receiving server identifications of at least two servers to be detected input by a user to obtain identifications corresponding to the at least two servers to be detected.
3. The method according to claim 1, wherein the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected;
the determining whether each server to be detected is online based on the detection result includes:
determining the server to be detected indicated by each server identification contained in the online indication information as an online server;
and determining any server to be detected in the at least two servers to be detected except the online server as an offline server.
4. The method according to claim 1, wherein the detection result is online indication information and offline indication information, the online indication information at least includes a server identifier of an online server to be detected, and the offline indication information at least includes a server identifier of an offline server to be detected;
the determining whether each server to be detected is online based on the detection result includes:
and determining the server to be detected indicated by each server identifier contained in the offline indication information as an online server, and determining the server to be detected indicated by each server identifier contained in the offline indication information as an offline server.
5. A server detection method based on video network is applied to a video network server, and the method comprises the following steps:
receiving a first online detection request sent by a video networking client; the first online detection request comprises identifications corresponding to at least two servers to be detected;
based on the identifiers corresponding to at least two servers to be detected contained in the first online detection request, respectively sending a second online detection request to each server to be detected so as to detect whether each server to be detected is online;
generating a detection result based on the response result of each server to be detected;
and sending the detection result to the video networking client.
6. The method according to claim 5, wherein the identifiers corresponding to the at least two servers to be detected are server group names;
the step of sending a second online detection request to each server to be detected based on the identifiers corresponding to the at least two servers to be detected contained in the first online detection request includes:
extracting the group name from the first online detection request;
based on the group name, acquiring a server identifier of each server to be detected in the group of servers to be detected indicated by the group name;
and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
7. The method according to claim 5, wherein the identifier corresponding to the at least two servers to be detected is a server identifier of each server to be detected;
the step of sending a second online detection request to each server to be detected based on the identifiers corresponding to the at least two servers to be detected contained in the first online detection request includes:
extracting the server identification of each server to be detected from the first online detection request;
and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
8. The method according to claim 5, wherein the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected;
the step of generating a detection result based on the response result of each server to be detected comprises:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message includes the server identifier of the server to be detected.
9. The method according to claim 5, wherein the detection result is online indication information and offline indication information, the online indication information at least includes a server identifier of an online server to be detected, and the offline indication information at least includes a server identifier of an offline server to be detected;
the step of generating a detection result based on the response result of each server to be detected comprises:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message comprises a server identifier of the server to be detected;
and for the server to be detected which does not return the response message within the preset time length, generating the offline indication information based on the server identification of the server to be detected.
10. The method according to claim 8 or 9, wherein the generating the online indication information based on the response message returned by the server to be detected comprises:
using the response message as the online indication information; alternatively, the first and second electrodes may be,
acquiring a server identifier of a server to be detected which sends the response message; and generating a server identification list as the online indication information based on the server identification.
11. A server detection method based on video network is applied to a system comprising a video network client and a video network server, and the method comprises the following steps:
the video network client determines the corresponding identifications of at least two servers to be detected;
the video network client side sends a first online detection request containing the identifications corresponding to the at least two servers to be detected to the video network server;
the video network server sends a second online detection request to each server to be detected respectively based on the identification corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the video network server generates a detection result based on the response result of each server to be detected;
the video network server sends the detection result to the video network client;
the video network client receives a detection result returned by the video network server;
and the video network client determines whether each server to be detected is online or not based on the detection result.
12. A server detection device based on video network is characterized in that the device is applied to a video network client, and the device comprises:
the first determining module is used for determining the corresponding identifications of the at least two servers to be detected;
the sending module is used for sending a first online detection request containing the identifications corresponding to the at least two servers to be detected to the video network server so that the video network server sends a second online detection request to each server to be detected based on the identifications corresponding to the at least two servers to be detected;
the receiving module is used for receiving a detection result returned by the video networking server;
and the second determining module is used for determining whether each server to be detected is online or not based on the detection result.
13. The apparatus of claim 12, wherein the first determining module is configured to:
receiving a grouping name input by a user; taking the group name as the identifier corresponding to the at least two servers to be detected, or acquiring the server identifier of each server to be detected in the group of servers to be detected indicated by the group name based on the group name to obtain the identifier corresponding to the at least two servers to be detected; alternatively, the first and second electrodes may be,
receiving server identifications of at least two servers to be detected input by a user to obtain identifications corresponding to the at least two servers to be detected.
14. The device according to claim 12, wherein the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected;
the second determining module is configured to:
determining the server to be detected indicated by each server identification contained in the online indication information as an online server;
and determining any server to be detected in the at least two servers to be detected except the online server as an offline server.
15. The apparatus according to claim 12, wherein the detection result is online indication information and offline indication information, the online indication information at least includes a server identifier of an online server to be detected, and the offline indication information at least includes a server identifier of an offline server to be detected;
the second determining module is configured to:
and determining the server to be detected indicated by each server identifier contained in the offline indication information as an online server, and determining the server to be detected indicated by each server identifier contained in the offline indication information as an offline server.
16. A server detection device based on video network is characterized in that the device is applied to a video network server, and the device comprises:
the receiving module is used for receiving a first online detection request sent by a video networking client; the first online detection request comprises identifications corresponding to at least two servers to be detected;
the first sending module is used for sending a second online detection request to each server to be detected respectively based on the identifiers corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the generating module generates a detection result based on the response result of each server to be detected;
and the second sending module is used for sending the detection result to the video networking client.
17. The apparatus according to claim 16, wherein the identifier corresponding to the at least two servers to be detected is a server group name;
the first sending module is configured to:
extracting the group name from the first online detection request;
based on the group name, acquiring a server identifier of each server to be detected in the group of servers to be detected indicated by the group name;
and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
18. The apparatus according to claim 16, wherein the identifier corresponding to the at least two servers to be detected is a server identifier of each of the servers to be detected;
the first sending module is configured to:
extracting the server identification of each server to be detected from the first online detection request;
and respectively sending a second online detection request to each server to be detected based on the server identification of each server to be detected.
19. The device according to claim 16, wherein the detection result is online indication information, and the online indication information at least includes a server identifier of an online server to be detected;
the generation module is configured to:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message includes the server identifier of the server to be detected.
20. The apparatus according to claim 16, wherein the detection result is online indication information and offline indication information, the online indication information at least includes a server identifier of an online server to be detected, and the offline indication information at least includes a server identifier of an offline server to be detected;
the generation module is configured to:
for a server to be detected which returns a response message within a preset time length, generating the online indication information based on the response message returned by the server to be detected; the response message comprises a server identifier of the server to be detected;
and for the server to be detected which does not return the response message within the preset time length, generating the offline indication information based on the server identification of the server to be detected.
21. The apparatus of claim 19 or 20, wherein the generating module is further configured to:
using the response message as the online indication information; alternatively, the first and second electrodes may be,
acquiring a server identifier of a server to be detected which sends the response message; and generating a server identification list as the online indication information based on the server identification.
22. A server detection system based on a video network, comprising: the system comprises a video network client and a video network server;
the video network client is used for determining the corresponding identification of at least two servers to be detected;
the video network client is used for sending a first online detection request containing the identifiers corresponding to the at least two servers to be detected to the video network server;
the video network server is used for sending a second online detection request to each server to be detected respectively based on the identification corresponding to at least two servers to be detected contained in the first online detection request so as to detect whether each server to be detected is online;
the video network server is used for generating a detection result based on the response result of each server to be detected;
the video network server is used for sending the detection result to the video network client;
the video network client is used for receiving a detection result returned by the video network server;
and the video network client is used for determining whether each server to be detected is online or not based on the detection result.
CN201910950790.2A 2019-10-08 2019-10-08 Server detection method, device and system based on video network Active CN110971479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950790.2A CN110971479B (en) 2019-10-08 2019-10-08 Server detection method, device and system based on video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950790.2A CN110971479B (en) 2019-10-08 2019-10-08 Server detection method, device and system based on video network

Publications (2)

Publication Number Publication Date
CN110971479A true CN110971479A (en) 2020-04-07
CN110971479B CN110971479B (en) 2022-03-25

Family

ID=70029747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950790.2A Active CN110971479B (en) 2019-10-08 2019-10-08 Server detection method, device and system based on video network

Country Status (1)

Country Link
CN (1) CN110971479B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080275972A1 (en) * 2007-05-04 2008-11-06 Donald Ellis System and Method for Providing Improved Packet Traceability
US20120303487A1 (en) * 2011-05-27 2012-11-29 Lonstein Wayne D Online stream honey pot capture
CN107026769A (en) * 2017-04-07 2017-08-08 广东浪潮大数据研究有限公司 A kind of whether online method of batch detection multipoint service device
CN108322502A (en) * 2017-12-22 2018-07-24 杭州大搜车汽车服务有限公司 Method, gateway system and storage medium for equalization server load
CN108880926A (en) * 2017-11-30 2018-11-23 北京视联动力国际信息技术有限公司 A kind of method and apparatus of server monitoring
CN108965367A (en) * 2017-07-25 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method and system of control view networked server
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110190973A (en) * 2019-04-18 2019-08-30 视联动力信息技术股份有限公司 A kind of presence detection method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080275972A1 (en) * 2007-05-04 2008-11-06 Donald Ellis System and Method for Providing Improved Packet Traceability
US20120303487A1 (en) * 2011-05-27 2012-11-29 Lonstein Wayne D Online stream honey pot capture
CN107026769A (en) * 2017-04-07 2017-08-08 广东浪潮大数据研究有限公司 A kind of whether online method of batch detection multipoint service device
CN108965367A (en) * 2017-07-25 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method and system of control view networked server
CN108880926A (en) * 2017-11-30 2018-11-23 北京视联动力国际信息技术有限公司 A kind of method and apparatus of server monitoring
CN108322502A (en) * 2017-12-22 2018-07-24 杭州大搜车汽车服务有限公司 Method, gateway system and storage medium for equalization server load
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110190973A (en) * 2019-04-18 2019-08-30 视联动力信息技术股份有限公司 A kind of presence detection method and device

Also Published As

Publication number Publication date
CN110971479B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108965224B (en) Video-on-demand method and device
CN109617956B (en) Data processing method and device
CN109309806B (en) Video conference management method and system
CN111193788A (en) Audio and video stream load balancing method and device
CN109996086B (en) Method and device for inquiring service state of video networking
CN110572433B (en) Video scheduling method, system and device
CN110190973B (en) Online state detection method and device
CN109561072B (en) Link detection method and system
CN110719258B (en) Server access method and system
CN109040656B (en) Video conference processing method and system
CN110557319B (en) Message processing method and device based on video network
CN109768957B (en) Method and system for processing monitoring data
CN110134892B (en) Loading method and system of monitoring resource list
CN110493149B (en) Message processing method and device
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110289974B (en) Data stream processing method, system and device and storage medium
CN111510341A (en) Network testing method and device for video network
CN110677315A (en) Method and system for monitoring state
CN110557658A (en) Monitoring system and method
CN110557411A (en) video stream processing method and device based on video network
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110475088B (en) User login method and device
CN110971479B (en) Server detection method, device and system based on video network
CN111355927A (en) Monitoring equipment determining method, device, equipment and storage medium based on video network

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