CN111147795B - Resource scheduling method, server, terminal, electronic device, and storage medium - Google Patents

Resource scheduling method, server, terminal, electronic device, and storage medium Download PDF

Info

Publication number
CN111147795B
CN111147795B CN201911381004.8A CN201911381004A CN111147795B CN 111147795 B CN111147795 B CN 111147795B CN 201911381004 A CN201911381004 A CN 201911381004A CN 111147795 B CN111147795 B CN 111147795B
Authority
CN
China
Prior art keywords
resource
monitoring
video
terminal
management server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911381004.8A
Other languages
Chinese (zh)
Other versions
CN111147795A (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 CN201911381004.8A priority Critical patent/CN111147795B/en
Publication of CN111147795A publication Critical patent/CN111147795A/en
Application granted granted Critical
Publication of CN111147795B publication Critical patent/CN111147795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a resource scheduling method, a server, a terminal, an electronic device and a storage medium, wherein the method is applied to a monitoring management server, the monitoring management server is deployed in a video network, and the method comprises the following steps: receiving a resource request packet sent by a video network terminal, wherein the video network terminal is any one of all video network terminals configured in a monitoring management server; analyzing the resource request packet based on the video networking protocol to obtain a resource request parameter; acquiring a monitoring resource list according to the resource request parameters; based on a video networking protocol, packaging the monitoring resource list to obtain a resource response packet; and sending the resource response packet to the video network terminal as a response packet of the resource request packet. The applied monitoring resource scheduling process is completely based on a video networking mode, the mode of requesting monitoring resources is more flexible, great convenience can be provided for a user to check the monitoring resources, and the use experience of the user is effectively improved.

Description

Resource scheduling method, server, terminal, electronic device, and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a resource scheduling method, a server, a terminal, an electronic device, and a storage medium.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users. Video networking communication technology is becoming a communication option for many users.
In the video network, a user terminal calls a monitoring video stream through a monitoring management platform, namely: the user terminal sends a request for acquiring the monitoring video stream to the monitoring management platform, and the monitoring management platform returns the monitoring video stream to the user terminal after acquiring the monitoring video stream. In the related art, deployment of a monitoring management platform needs to be supported by an IP network, so that a user terminal needs to adopt an IP access mode to acquire a monitoring video stream from the monitoring management platform. However, when using the IP access method, all video services must be performed in the video private network, that is: only when the monitoring management platform and the terminal equipment requesting to monitor the video stream are deployed in the private network, the terminal equipment can call the monitoring video stream in the monitoring management platform. In some remote areas, due to limited deployment of the IP network, a monitoring management platform cannot be deployed, so that terminal devices in the area cannot call monitoring video streams, and the use experience of users is greatly influenced.
Disclosure of Invention
The embodiment of the application provides a resource scheduling method, a server, a terminal, an electronic device and a storage medium, and aims to provide a better resource scheduling monitoring mode to overcome the problems.
A first aspect of an embodiment of the present application provides a resource scheduling method, which is applied to a monitoring management server, where the monitoring management server is deployed in a video network, and the method includes:
receiving a resource request packet sent by a video network terminal, wherein the video network terminal is any one of all video network terminals configured in the monitoring management server;
analyzing the resource request packet based on a video networking protocol to obtain a resource request parameter;
acquiring a monitoring resource list according to the resource request parameters;
based on a video networking protocol, packaging the monitoring resource list to obtain a resource response packet;
and sending the resource response packet to the video network terminal as a response packet of the resource request packet.
A second aspect of the embodiments of the present application provides a resource scheduling method, which is applied to a video networking terminal, and the method includes:
acquiring a resource request parameter input by a user;
determining a target monitoring management server according to the resource request parameters;
based on a video networking protocol, packaging the resource request parameters to obtain a resource request packet;
sending the resource request packet to the target monitoring management server, wherein the target monitoring management server is any one of at least one monitoring management server deployed in the video network;
and receiving a resource response packet which is returned by the target monitoring management server and aims at the resource request packet.
Optionally, after receiving a resource response packet for the resource request packet returned by the monitoring management server, the method further includes:
analyzing the resource response packet based on a video networking protocol to obtain a monitoring resource list;
displaying the monitoring resource list;
receiving a request of ordering target monitoring resources sent by a remote control terminal, wherein the target monitoring resources are any monitoring resources determined by a user in the monitoring resource list;
sending the request to a video networking monitoring access server;
receiving target monitoring resources returned by the video networking monitoring access server;
and playing the target monitoring resource.
A third aspect of the embodiments of the present application provides a monitoring management server, deployed in a video network, where the monitoring management server includes:
the first receiving module is used for receiving a resource request packet sent by a video network terminal, and the video network terminal is any one of all video network terminals configured in the monitoring management server;
the first analysis module is used for analyzing the resource request packet based on a video networking protocol to obtain a resource request parameter;
a first obtaining module, configured to obtain a monitoring resource list according to the resource request parameter;
the first packaging module is used for packaging the monitoring resource list based on a video networking protocol to obtain a resource response packet;
and the first sending module is used for sending the resource response packet to the video networking terminal as a response packet of the resource request packet.
A fourth aspect of the embodiments of the present application provides a video networking terminal, where the video networking terminal includes:
the second obtaining module is used for obtaining the resource request parameters input by the user;
a third determining module, configured to determine a target monitoring management server according to the resource request parameter;
the second packaging module is used for packaging the resource request parameter based on a video networking protocol to obtain a resource request packet;
a third sending module, configured to send the resource request packet to the target monitoring management server, where the target monitoring management server is any one of at least one monitoring management server deployed in a video network;
and the second receiving module is used for receiving a resource response packet which is returned by the target monitoring management server and aims at the resource request packet.
A fifth aspect of embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method according to the first aspect of the present application are implemented.
A sixth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps in the method according to the first aspect of the present application.
The embodiment of the application provides a resource scheduling method, wherein a monitoring management server is deployed in a video network, and as long as the monitoring management server is deployed in a terminal device in the video network, the method comprises the following steps: the video network terminal and the monitoring management server can be configured in the video network terminal and receive the resource request packet sent by the video network terminal in the following process. After receiving the resource request packet sent by the video network terminal, the monitoring management server analyzes the resource request packet based on the video network protocol to obtain a resource request parameter, obtains a monitoring resource list according to the resource request parameter, packages the monitoring resource list according to the video network protocol to obtain a resource response packet, and finally sends the resource response packet to the video network terminal as a response packet of the resource request packet. In this embodiment, a plurality of monitoring management servers can be deployed in the video network, and a video network terminal can be configured in any one of the monitoring management servers, so that a monitoring resource can be requested from any one configured monitoring management server without being limited by a private network/local area network.
Drawings
FIG. 1 is a schematic diagram of an implementation environment shown in an embodiment of the present application;
fig. 2 is a flowchart illustrating a resource scheduling method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another resource scheduling method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a resource scheduling method according to an embodiment of the present application;
fig. 5 is a block diagram illustrating a monitoring management server according to an embodiment of the present application;
fig. 6 is a block diagram illustrating a video network terminal according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an electronic device shown in an embodiment of the present application;
FIG. 8 is a schematic networking diagram of a video network, according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a hardware structure of a node server according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating a hardware structure of an access switch according to an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related technology, if a user needs to call a video stream, a monitoring management server is accessed in an http:// ip: port mode during access, and then a video network terminal is controlled on the monitoring management server to call monitoring. The disadvantages of this method are: if the mobile terminal is in a network isolation area, the ip cannot penetrate through the mobile terminal, so that the mobile terminal cannot access the monitoring management server and cannot call the video. In order to overcome the problem, in the embodiment, the calling monitoring does not need to access the monitoring management server in an ip mode, and the calling monitoring is transmitted on the video network terminal through the video network in a second layer, so that the problem of network isolation is solved.
Fig. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. In the implementation environment, the video network terminal is in communication connection with the monitoring management server and the video network monitoring access server respectively, and the video network terminal, the monitoring management server and the video network monitoring access server are all deployed in the video network. A video networking monitoring management system is deployed in the monitoring management server, and monitoring resources of the video networking monitoring equipment are stored in the video networking monitoring access server.
The present application first provides a resource scheduling method, which is applied to the monitoring management server in fig. 1. Fig. 2 is a flowchart illustrating a resource scheduling method according to an embodiment of the present application. Referring to fig. 2, the resource scheduling method of the present application may include the following steps:
step S11: and receiving a resource request packet sent by a video network terminal, wherein the video network terminal is any one of all video network terminals configured in the monitoring management server.
In this embodiment, a plurality of monitoring management servers may be deployed within the video network. After the monitoring management server is accessed to the network, a plurality of video network terminals are configured on the monitoring management server. All the terminals configured in the monitoring management server can send the resource request packet to the monitoring management server. The resource request packet is used to request a monitoring resource.
Step S12: and analyzing the resource request packet based on a video networking protocol to obtain a resource request parameter.
In this embodiment, the communication interaction between the monitoring management server and the video network terminal is performed based on the video network protocol. And after receiving the resource request packet, the monitoring management server analyzes the resource request packet based on the video networking protocol to obtain a resource request parameter. The resource request parameters may include: the terminal number, the network access number of the monitoring management server, the user ID, the number of current request pages, the resource quantity, and the like, and the resource request parameters may be specifically set according to actual requirements, which is not specifically limited in the present application.
The terminal number is used for uniquely identifying the terminal of the video network in the whole video network; the network access number of the monitoring management server is used for uniquely identifying the monitoring management server in the whole video network; the user ID is used for binding a plurality of monitoring devices (the monitoring devices can be added and removed at will), and the monitoring management server can obtain monitoring resources in any monitoring device under the monitoring management server through a certain user ID; after the video network terminal acquires the monitoring resources, the monitoring resources are displayed in a terminal interface in a list mode in a paging mode, and when a user looks at a certain page of monitoring resource list through the terminal interface, the user can request a next page of monitoring resource list from the monitoring management server to acquire more monitoring resources; the resource quantity is the quantity of monitoring resources displayed in each page by the video network terminal.
Step S13: and acquiring a monitoring resource list according to the resource request parameters.
In this embodiment, the parameters used when obtaining the monitoring resource list are mainly: the user ID. The monitoring management server obtains corresponding monitoring resources from a plurality of monitoring devices bound to the user ID according to the user ID
Step S14: and packaging the monitoring resource list based on a video networking protocol to obtain a resource response packet.
In this embodiment, after acquiring the monitoring resource list, the monitoring management server encapsulates the monitoring resource list based on the video networking protocol to obtain the resource response packet.
Step S15: and sending the resource response packet to the video networking terminal as a response packet of the resource request packet.
In this embodiment, after obtaining the resource response packet, the monitoring management server sends the resource response packet to the video network terminal, so that the video network terminal parses the resource response packet, obtains the monitoring resource list, and displays the monitoring resource list in the video network terminal interface.
By way of example, taking the monitoring management server a in the video network as an example, it is assumed that the monitoring management server a completes the configuration of the video network terminals 1-N on its own. After receiving a resource request packet sent by a video network terminal 1, a monitoring management server A analyzes the resource request packet according to a video network protocol to obtain a terminal number of the video network terminal 1, a network access number of the monitoring management server, a user ID, a current request page number, a resource quantity and the like, the monitoring management server A finds that the network access number of the monitoring management server is the same as a network access number distributed when the monitoring management server A accesses the network, determines that the video network terminal 1 requests monitoring resources from the monitoring management server, searches the user ID corresponding to the video network terminal 1 in a plurality of pre-stored terminal number-user ID lists according to the terminal number of the video network terminal 1, obtains the monitoring resources from a plurality of monitoring devices bound by the user ID, determines the monitoring resources in the requested page number of the user according to the current request page number, obtains the monitoring resources according to the resource quantity from the remaining monitoring resources, then generates a monitoring resource list, encapsulates the monitoring resource list by adopting the video network protocol to obtain a resource response packet, finally transmits the resource response packet to the video network terminal 1 in a transparent transmission mode, and completes the scheduling of the monitoring resources.
In this embodiment of the present application, the monitoring management server is deployed in the video network, and as long as the monitoring management server is deployed in the terminal device in the video network, the monitoring management server is: the video network terminal and the monitoring management server can configure the video network terminal and the monitoring management server in the video network terminal, and subsequently receive the resource request packet sent by the monitoring management server. After receiving the resource request packet sent by the video network terminal, the monitoring management server analyzes the resource request packet based on the video network protocol to obtain a resource request parameter, obtains a monitoring resource list according to the resource request parameter, packages the monitoring resource list according to the video network protocol to obtain a resource response packet, and finally sends the resource response packet to the video network terminal as a response packet of the resource request packet. In this embodiment, a plurality of monitoring management servers can be deployed in the video network, and a video network terminal can be configured in any monitoring management server, so that a monitoring resource can be requested from any configured monitoring management server without being limited by a private network/local area network.
With reference to the foregoing embodiments, in an implementation manner, before receiving a resource request packet sent by a video network terminal, the monitoring management server needs to configure multiple video network terminals on its own. Specifically, the resource scheduling method of the present application may further include:
acquiring a terminal number of at least one video network terminal, and storing the terminal number;
distributing a user ID (identity) aiming at each terminal number, wherein the user ID is bound with at least one monitoring device in the video network;
sending a network access number of a monitoring management server and a user ID (identity) distributed for the video network terminal to each video network terminal, so that the video network terminal stores the network access number and the user ID of the monitoring management server, and when monitoring resources are required to be requested from the monitoring management server, generating a resource request packet according to the network access number and the user ID, wherein the network access number of the monitoring management server is used for uniquely identifying the monitoring management server;
correspondingly, analyzing the resource request packet to obtain a resource request parameter, including:
analyzing the resource request packet to obtain the network access number and the user ID of the monitoring management server;
correspondingly, according to the resource request parameter, a monitoring resource list is obtained, which includes:
and when the network access number of the monitoring management server is the same as the network access number of the monitoring management server, acquiring the monitoring resource list according to the user ID.
In this embodiment, the monitoring management server may configure any video networking terminal on its own, and provide a video networking service for the successfully configured video networking terminal. The specific configuration process is as follows: the monitoring management server firstly completes network access; after successful network access, obtaining a plurality of effective terminal numbers of the video network terminal, wherein the obtaining mode can be obtained from a third party platform or manually input, and the application is not particularly limited to this; then obtaining a plurality of user IDs, wherein the obtaining mode can be obtained from a monitoring access server; the plurality of user IDs are distributed to the plurality of video network terminals, each video network terminal corresponds to one user ID, and because the monitoring equipment bound under different user IDs can be different, the monitoring resources obtained by the video network terminals can be controlled by distributing different user IDs to the video network terminals; after the distribution of a plurality of user IDs is finished, the user IDs distributed to the user IDs and the network access number of the monitoring management server are sent to each video network terminal; and after receiving the user ID and the network access number of the monitoring management server, the video network terminal returns a response, and after receiving the response, the monitoring management server determines that the video network terminal is successfully configured. After the configuration of the video network terminal is successful, when a monitoring resource needs to be requested from the monitoring management server, a resource request packet may be generated based on the user ID and the network access number of the monitoring management server, and sent to the monitoring management server.
In this embodiment, since a plurality of monitoring management servers can be deployed in the video network, each monitoring management server can be configured with a plurality of video network terminals, so that the same video network terminal may be configured in a plurality of monitoring management servers, thereby having a phenomenon of a plurality of user IDs. In the practical implementation of the resource scheduling method, a configuration coverage principle is adopted, that is, the method comprises the following steps: after receiving the user ID and the network access number of the monitoring management server sent by one monitoring management server, the video network terminal uses the user ID and the network access number of the monitoring management server to cover the user ID and the network access number of the monitoring management server sent by the previous monitoring management server, so that only the user ID and the network access number of the monitoring management server sent by one monitoring management server are stored. Of course, the video network terminal may also save the user ID and the network access number of each monitoring management server without adopting a configuration coverage principle, and when a subsequent monitoring resource acquisition request exists, one monitoring management server may be selected from a plurality of configured monitoring management servers, and a resource request packet is generated according to the user ID and the network access number sent by the monitoring management server, so as to acquire the monitoring resource. The video network terminal specifically stores the user ID and the network access number of the monitoring management server in any manner, and may be set according to actual requirements, which is not specifically limited in the present application.
With reference to the foregoing embodiment, in an implementation manner, a monitoring resource acquisition right may be further set for each video network terminal. Specifically, the resource scheduling method of the present application may further include:
setting resource authority for a user ID corresponding to each terminal number, wherein the resource authority is the authority of requesting to monitor resources under the user ID of the video network terminal;
correspondingly, obtaining the monitoring resource list according to the user ID includes:
acquiring the resource authority of the user ID;
and obtaining the monitoring resource list according to the resource authority.
In this embodiment, since a plurality of monitoring devices are bound under each user ID, the monitoring devices under the user IDs can be controlled to further control the monitoring resources acquired by the video network terminal. Illustratively, when the user ID: YTY58, when assigned to video network terminal a, may be in the user ID: and setting bound monitoring devices specifically to be the monitoring devices of the area A and the area B under the YTY58, so that the video network terminal A can only acquire the monitoring resources acquired by the monitoring devices in the area A and the area B.
In this embodiment, the monitoring management server may set a resource authority for each video network terminal in the process of configuring the video network terminal, or may set a resource authority for each video network terminal after the configuration is completed. After the resource authority is set, the available monitoring resources of the video network terminal can be prestored according to the resource authority, so that the video network terminal can timely return the monitoring resources to the video network terminal when requesting the monitoring resources next time.
In this embodiment, the monitoring resources pre-stored in the monitoring management server mainly include: monitoring name, monitoring ID, organization, online status, routing inspection failures, etc. When the video network terminal requests the monitoring resource next time, the monitoring management server can return the monitoring resource to the video network terminal, so that the video network terminal can select the target monitoring resource and obtain the target monitoring resource from the monitoring access server, and the monitoring access server is mainly used for storing the monitoring video stream corresponding to the monitoring resource.
With reference to the foregoing embodiments, in an implementation manner, a paging transmission mechanism may also be adopted to return monitoring resources to the terminal of the video network. Specifically, the resource request parameter includes: the current request is divided into pages and resource quantity.
Therefore, according to the resource request parameter, a monitoring resource list is obtained, which may be:
determining the requested page number and the corresponding sent monitoring resource according to the current requested page number;
determining the monitoring resource which is not sent according to the monitoring resource which is sent;
and acquiring the monitoring resources according with the resource quantity from the unsent monitoring resources to serve as a monitoring resource list corresponding to the current request page number.
In this embodiment, the monitoring management server may return the monitoring resource to the terminal of the video network in a paging transmission manner. And the video network terminal displays the monitoring resources in a terminal interface in a list mode in a paging mode so as to be viewed by a user. After a user checks a certain monitoring resource list, if the next monitoring resource needs to be checked, the number of pages and the number of resources requested to be divided can be set, and the video network terminal contains the set value in a resource request packet according to the value set by the user and sends the resource request packet to the monitoring management server.
Exemplarily, taking an example that a user views monitoring resources on an internet of view terminal a, if the user currently views monitoring resources on page 3 and wants to request monitoring resources on page 4, setting the number of currently requested pages to be 4, setting the number of monitoring resources displayed on page 4 to be, for example, 10, and after the internet of view terminal a acquires page 4 and 10 input by the user, packaging the value into a resource request packet, and sending the resource request packet to a monitoring management server; the monitoring management server analyzes and obtains the monitoring resources which the user wants to request page 4, obtains the monitoring resources of pages 1-3, removes the monitoring resources of pages 1-3 from the monitoring resources which can be obtained by the pre-stored video network terminal A, and obtains 10 monitoring resources from the rest monitoring resources as the monitoring resources displayed on page 4.
In the embodiment, the monitoring resources are displayed in a paging mode, the monitoring resource acquisition request of the user can be responded in time, a diversified monitoring resource request mode is provided for the user, the user requirement is met, and the user experience is improved.
With reference to the foregoing embodiment, in an implementation manner, encapsulating the monitoring resource list based on an internet of view protocol to obtain a resource response packet may include:
based on a video networking protocol, packaging the monitoring resource list in a json character string mode to obtain the resource response packet;
correspondingly, the sending the resource response packet to the video network terminal as the response packet of the resource request packet includes:
the resource response packet is used as a response packet of the resource request packet and is transmitted to the video network terminal;
and when the transparent transmission fails, transmitting the resource response packet to the video network terminal again until the transparent transmission is successful.
In this embodiment, after obtaining the monitoring resource (in each embodiment of the present application, if not specifically described, the monitoring resource in the monitoring management server is stored in a list form), the monitoring management server encapsulates the monitoring resource in a json string manner based on the video networking protocol to obtain a resource response packet, and transparently transmits the resource response packet to the networking terminal in a video networking transparent transmission manner, and when the transparent transmission fails, transparently transmits the resource response packet again until the resource response packet is successfully transmitted to the video networking terminal.
The application also provides a resource scheduling method, which is applied to the video network terminal in fig. 1. Fig. 3 is a flowchart illustrating another resource scheduling method according to an embodiment of the present application. Referring to fig. 3, the resource scheduling method of the present application may include:
step S21: acquiring a resource request parameter input by a user;
step S22: determining a target monitoring management server according to the resource request parameters;
step S23: based on a video networking protocol, packaging the resource request parameters to obtain a resource request packet;
step S24: sending the resource request packet to the target monitoring management server, wherein the target monitoring management server is any one of at least one monitoring management server deployed in the video network;
step S25: and receiving a resource response packet which is returned by the target monitoring management server and aims at the resource request packet.
In the embodiment of the application, the terminal of the video network is mainly used for displaying the monitoring resource, and certainly, the terminal of the video network can also be used for receiving the resource request parameter input by the user. For example: the user can input the number of current request pages, the number of resources, the network access number of the monitoring management server (when the network access numbers of a plurality of monitoring management servers are stored in the user, the input network access number of the monitoring management server can be selected), and the like on the video network terminal.
Determining a target monitoring management server according to the resource request parameters, which mainly comprises the following steps: and determining a target monitoring management server according to the network access number of the monitoring management server. In this embodiment, a user does not need to input all resource request parameters, when the video networking terminal only stores the network access number and the allocated user ID of one monitoring management server, the user only needs to input the current request page number and the resource number, and the video networking terminal automatically packages and obtains a resource request packet according to the stored network access number, the allocated user ID, the input current request page number, the resource number, the terminal number and the like of the monitoring management server; when the video network terminal only stores the network access numbers and the allocated user IDs of a plurality of monitoring management servers, a user only needs to input the network access number, the current request page number and the resource number of a target monitoring management server, and the video network terminal packages the stored network access number, the allocated user ID, the input current request page number, the resource number, the terminal number and the like of the target monitoring management server to obtain a resource request packet, sends the resource request packet to the monitoring management server and receives a returned resource response packet.
With reference to the foregoing embodiment, in an implementation manner, after receiving a resource response packet for the resource request packet returned by the monitoring management server, the following steps may also be performed:
analyzing the resource response packet based on a video networking protocol to obtain a monitoring resource list;
displaying the monitoring resource list;
receiving a request of ordering target monitoring resources sent by a remote control terminal, wherein the target monitoring resources are any monitoring resources determined by a user in the monitoring resource list;
sending the request to a video networking monitoring access server;
receiving target monitoring resources returned by the video networking monitoring access server;
and playing the target monitoring resource.
In this embodiment, after receiving the resource response packet, the video network terminal parses the resource response packet to obtain a monitoring resource list, and displays the monitoring resource list in a terminal interface for a user to view.
In this embodiment, the video network terminal further includes a remote control terminal configured to cooperate with the video network terminal. The user inputs operation instructions through the remote control terminal, such as: the method comprises the steps that target monitoring resources are selected from a monitoring resource list displayed on a terminal interface through a remote control terminal, the remote control terminal generates a request for requesting the target monitoring resources according to the operation of a user and sends the request to a video network terminal, the video network terminal sends the request to a video network monitoring access server, the video network monitoring access server acquires the target monitoring resources from massive monitoring resources stored in the monitoring resources, the target monitoring resources are sent to the video network terminal, and the video network terminal plays the target monitoring resources in the terminal interface so as to meet the watching requirements of the user.
Fig. 4 is a schematic diagram illustrating a resource scheduling method according to an embodiment of the present application. When the resource scheduling method is used, the video network monitoring management platform (namely, the video network monitoring management system) firstly completes the configuration of the video network terminals on the video network monitoring management platform per se and binds resource authorities for each video network terminal (the step of setting the resource authorities can be specifically referred to the above description); after configuration is completed, when a video networking terminal requests monitoring information from a video networking monitoring management platform, the video networking monitoring management platform transmits the obtained monitoring information to the video networking terminal according to a video networking protocol, the video networking terminal displays the monitoring information in a terminal interface, determines monitoring to be played according to selection of a user, then sends a video stream scheduling request to a video networking monitoring access server, and the video networking monitoring access server responds to the request and returns monitoring video streams to be played to the video networking terminal.
In the above process, the video networking protocol used by the video networking monitoring management platform and the video networking terminal in interaction includes: 6101 protocol, and 6102 protocol. The resource scheduling method of the present application will be described in its entirety with reference to fig. 1.
In fig. 4, the video network monitoring management system (the monitoring management server deployed in fig. 1) is configured with a video network terminal a, a video network terminal B and a video network terminal C, and may send monitoring information to each video network terminal through a video network protocol, and the video network monitoring access server is respectively in communication connection with the video network monitoring management system and each video network terminal, and is used to send monitoring information (for example, information such as monitoring name, monitoring ID, organization, online status and polling failure) to the video network monitoring management system, and send monitoring video stream to each video network terminal.
Suppose that the terminal a of the video network needs to request the monitoring resource from the monitoring management system of the video network, firstly, an instruction whether the monitoring resource can be requested or not is initiated to the monitoring management system of the video network, and after the monitoring management system of the video network analyzes the instruction, a transparent transmission instruction sequence can be generated according to the protocol shown in the following table 1 and is returned to the terminal of the video network, so as to inform the terminal that the monitoring resource can be requested currently.
Figure GDA0003853821690000121
TABLE 1
After receiving the transparent transmission instruction sequence, the video network terminal can generate a response instruction according to the protocol shown in the following table 2, and return the response instruction to the video network monitoring management system to inform the video network monitoring management system that the video network monitoring management system is ready to request for monitoring resources.
Figure GDA0003853821690000122
TABLE 2
Then, the terminal of the video network can generate an instruction (the instruction includes the user ID, the current request page, the number of resources, etc.) for requesting to monitor the resource list according to the protocol shown in table 3 below.
Figure GDA0003853821690000123
TABLE 3
Figure GDA0003853821690000124
Figure GDA0003853821690000131
TABLE 4
After receiving the instruction, the video networking monitoring management system obtains the monitoring resource, can generate an instruction for issuing a monitoring resource list (the instruction needs to include the total packet number, the current packet serial number, the current packet length, monitoring resource list data in json format, and the like) according to the protocol shown in table 4, and issues the monitoring resource to the video networking terminal.
After receiving the monitoring resource, the video network terminal generates a receiving confirmation instruction according to the protocol shown in the following table 5, and informs the video network monitoring management system of successfully receiving the monitoring resource.
Figure GDA0003853821690000132
TABLE 5
In the process, after receiving a response instruction sent by the video network terminal, the video network monitoring management system establishes a data transmission channel with the video network terminal, and then issues a monitoring resource to the video network terminal according to an instruction of requesting a monitoring resource list sent by the video network terminal, wherein the monitoring resource may include: monitoring status (0 for offline, 1 for online), monitoring source (0 for video networking access, 1 for public security push), monitoring access server number, monitoring channel number on the monitoring access server, monitoring ID, monitoring name, etc. Specifically, the method comprises the following steps: the video network monitoring management system divides monitoring resources to be sent according to the loadable data length of the protocol (for example, the current loadable data length is 1024 bytes);
firstly, sending a first group of data by taking 50 data packets as units, and waiting for a packet confirmation instruction returned by the video network terminal after the sending is finished; after receiving the packet confirmation instruction, judging whether a packet needing to be retransmitted exists according to the packet confirmation instruction, if not, continuing to transmit the next group of data, if so, continuing to transmit the packet needing to be retransmitted, and after the transmission is finished, entering a new round of process of waiting for the packet confirmation instruction; if the packet confirmation instruction is not received within 500 milliseconds, retransmitting the last data packet in the current group of data twice and waiting for 500 milliseconds each time, if the three times of waiting are overtime, directly quitting the transmission and returning a transmission failure error instruction to the video network terminal, and repeating the process until all data is transmitted.
Meanwhile, in the process, after the video network terminal receives the first data packet, the total data length, the total packet number and the like of the monitoring resource list can be obtained through the first data packet; the video network terminal receives the data packet, the first byte represents the packet sequence number, the second byte represents the effective data of the current packet, and the second byte is the effective data. The video network terminal displays the monitoring resources by pages, and a resource request packet is sent to the video network monitoring management system each time a user views a new page.
After the video network terminal displays the monitoring resource list, the user may send a request for requesting monitoring resources to the video network terminal through the remote controller, and specifically, the remote controller may generate the request for requesting monitoring resources according to a protocol shown in table 6 below.
Figure GDA0003853821690000141
TABLE 6
After receiving the request for on-demand monitoring resources, the video network terminal may generate a response to the request for on-demand monitoring resources according to the protocol shown in table 7 below.
Figure GDA0003853821690000142
Figure GDA0003853821690000151
TABLE 7
Figure GDA0003853821690000152
TABLE 8
After the user plays the monitoring resource, the user may send a request for closing the video to the terminal of the video networking through the remote controller, and specifically, the remote controller may generate the request for closing the video according to a protocol shown in table 8.
After the video network terminal receives the request of sending the video closing request from the remote controller, a response of the video closing request can be generated according to the protocol shown in the following table 9.
Figure GDA0003853821690000153
TABLE 9
Figure GDA0003853821690000154
Figure GDA0003853821690000161
TABLE 10
When the terminal of the video network requests the monitoring video stream from the monitoring access server of the video network, the monitoring video stream acquisition request may be generated according to the protocol shown in table 10.
When receiving a surveillance video stream acquisition request sent by a video network terminal, a surveillance access server in the video network may generate a response to the surveillance video stream acquisition request according to a protocol shown in table 11 below.
If the video network terminal finishes requesting the monitoring video stream from the video network monitoring access server as required, the monitoring video stream acquisition finishing request may be generated according to a protocol shown in table 12.
After receiving the request for ending the acquisition of the surveillance video stream sent by the terminal of the video network, the surveillance access server of the video network may generate a response for ending the request for ending the acquisition of the surveillance video stream according to the protocol shown in table 13 below.
Figure GDA0003853821690000162
TABLE 11
Figure GDA0003853821690000163
Figure GDA0003853821690000171
TABLE 12
The present application also provides a monitoring management server 500, as shown in fig. 5. Fig. 5 is a block diagram illustrating a structure of a monitoring management server according to an embodiment of the present application. Referring to fig. 5, the monitoring management server 500 includes:
a first receiving module 501, configured to receive a resource request packet sent by a video networking terminal, where the video networking terminal is any one of all video networking terminals configured in the monitoring management server;
a first parsing module 502, configured to parse the resource request packet based on a video networking protocol to obtain a resource request parameter;
a first obtaining module 503, configured to obtain a monitoring resource list according to the resource request parameter;
a first encapsulating module 504, configured to encapsulate the monitoring resource list based on a video networking protocol
Figure GDA0003853821690000172
Watch 13
Loading to obtain a resource response packet;
a first sending module 505, configured to send the resource response packet to the video networking terminal as a response packet of the resource request packet.
Optionally, the monitoring management server 500 further includes:
the storage module is used for obtaining a terminal number of at least one video networking terminal and storing the terminal number;
the distribution module is used for distributing a user ID for each terminal number, and the user ID is bound with at least one monitoring device in the video network;
the second sending module is used for sending the network access number of the monitoring management server and the user ID allocated to the video network terminal to each video network terminal, so that the video network terminal stores the network access number of the monitoring management server and the user ID, and generates the resource request packet according to the network access number and the user ID when monitoring resources are required to be requested from the monitoring management server, wherein the network access number of the monitoring management server is used for uniquely identifying the monitoring management server;
the first parsing module 502 comprises:
the first analysis submodule is used for analyzing the resource request packet to obtain the network access number and the user ID of the monitoring management server;
the first obtaining module 503 includes:
and the first obtaining submodule is used for obtaining the monitoring resource list according to the user ID when the network access number of the monitoring management server is the same as the network access number of the monitoring management server.
Optionally, the monitoring management server 500 further includes:
the setting module is used for setting resource permission for the user ID corresponding to each terminal number, wherein the resource permission is the permission of the video network terminal for requesting to monitor resources under the user ID;
the first obtaining sub-module includes:
the authority acquisition module is used for acquiring the resource authority of the user ID;
and the first resource acquisition module is used for acquiring the monitoring resource list according to the resource authority.
Optionally, the resource request parameter includes: the current request is divided into page number and resource number;
the first obtaining module 503 includes:
the first determining module is used for determining the requested page number and the corresponding sent monitoring resource according to the current requested page number;
a second determining module, configured to determine a monitoring resource that is not sent according to the monitoring resource that has been sent;
and the second resource acquisition module is used for acquiring the monitoring resources meeting the resource quantity from the unsent monitoring resources as a monitoring resource list corresponding to the current request page number.
Optionally, the first packaging module 504 includes:
the first packaging submodule is used for packaging the monitoring resource list in a json character string mode based on a video networking protocol to obtain the resource response packet;
the first sending module 505 comprises:
the first sending submodule is used for transparently transmitting the resource response packet to the video networking terminal as a response packet of the resource request packet; and when the transparent transmission fails, transmitting the resource response packet to the video network terminal again until the transparent transmission is successful.
The application also provides a video networking terminal 600, as shown in fig. 6. Fig. 6 is a block diagram illustrating a video network terminal according to an embodiment of the present application. Referring to fig. 6, the video network terminal 600 includes:
a second obtaining module 601, configured to obtain a resource request parameter input by a user;
a third determining module 602, configured to determine a target monitoring management server according to the resource request parameter;
a second encapsulating module 603, configured to encapsulate the resource request parameter based on a video networking protocol, to obtain a resource request packet;
a third sending module 604, configured to send the resource request packet to the target monitoring management server, where the target monitoring management server is any one of at least one monitoring management server deployed in a video network;
a second receiving module 605, configured to receive a resource response packet, which is returned by the target monitoring management server and is for the resource request packet.
Optionally, the video network terminal 600 includes:
the second analysis module is used for analyzing the resource response packet based on a video networking protocol to obtain a monitoring resource list;
the display module is used for displaying the monitoring resource list;
a third receiving module, configured to receive a request for requesting a target monitoring resource sent by a remote control terminal, where the target monitoring resource is any monitoring resource determined by a user in the monitoring resource list;
the fourth sending module is used for sending the request to the video networking monitoring access server;
the fourth receiving module is used for receiving the target monitoring resource returned by the video network monitoring access server;
and the playing module is used for playing the target monitoring resource.
Based on the same inventive concept, another embodiment of the present application provides an electronic device 700, as shown in fig. 7. Fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 702, a processor 701 and a computer program stored on the memory and executable on the processor, which when executed performs the steps of the method according to any of the embodiments described above.
Based on the same inventive concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above-mentioned embodiments of the present application.
The method for recovering the video networking service is applied to the video networking, and the video networking technology is simply introduced as follows:
the video networking is an important milestone of 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 is face-to-face.
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 network and the unified video platform is different from the traditional server, the streaming media transmission of the video network and the unified video platform is established on the basis of connection orientation, the data processing capability of the video network and the unified video platform is irrelevant to 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 over one hundred times compared with that of the 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 eradicates the network security problem disturbing the Internet from the structure by the modes of independent admission control of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, stops 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 matching 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.
Fig. 8 is a networking diagram of a video network according to an embodiment of the present application. As shown in fig. 8, 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 may be directly connected to the access switch or may be directly connected to the terminal.
Similarly, devices on the metro network part can 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 central control function in the metropolitan area network and can control the node switch and the 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:
fig. 9 is a schematic hardware structure diagram of a node server according to an embodiment of the present application. As shown in fig. 9, 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 packets coming from 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 and forwards if the following conditions are met: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, reading, writing, 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:
fig. 10 is a schematic diagram illustrating a hardware structure of an access switch according to an embodiment of the present application. As shown in fig. 10, the network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304 are mainly included;
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 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is close to full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the 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
Fig. 11 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present application. As shown in fig. 11, the system 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 (2 byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, if there is a packet, the ethernet MAC DA of the corresponding terminal is known according to the destination address DA of the packet in the video network, the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type are added, and the packet is sent.
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), and is defined to be the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to the types of different datagrams, 64 bytes if it is a packet of various protocols, 32+1024=1056 bytes if it is a packet of unicast data, and certainly 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 0x0001. 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, one of the core concepts of the embodiments of the present invention is provided, following the protocol of the video network, after receiving a resource request packet sent by a video network terminal, a monitoring management server analyzes the resource request packet based on the video network protocol to obtain a resource request parameter, obtains a monitoring resource list according to the resource request parameter, encapsulates the monitoring resource list according to the video network protocol to obtain a resource response packet, and finally sends the resource response packet to the video network terminal as a response packet of the resource request packet.
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 so forth) 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.
The resource scheduling method, the server, the terminal, the electronic device, and the storage medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A resource scheduling method is applied to a monitoring management server, wherein the monitoring management server is deployed in a video network, and the method comprises the following steps:
receiving a resource request packet sent by a video network terminal, wherein the video network terminal is any one of all video network terminals configured in the monitoring management server;
analyzing the resource request packet based on a video networking protocol to obtain a resource request parameter;
acquiring a monitoring resource list according to the resource request parameter;
based on a video networking protocol, packaging the monitoring resource list to obtain a resource response packet;
sending the resource response packet to the video network terminal as a response packet of the resource request packet, so that the video network terminal analyzes the resource response packet based on a video network protocol to obtain a monitoring resource list; displaying the monitoring resource list; receiving a request of ordering target monitoring resources sent by a remote control terminal, wherein the target monitoring resources are any monitoring resources determined by a user in the monitoring resource list; sending the request to a video networking monitoring access server; receiving target monitoring resources returned by the video network monitoring access server; playing the target monitoring resource;
wherein, the resource request parameter includes: the current request is divided into page number and resource number;
obtaining a monitoring resource list according to the resource request parameter includes:
determining the requested page number and the corresponding sent monitoring resource according to the current requested page number;
determining the unsent monitoring resource according to the sent monitoring resource;
and acquiring the monitoring resources according with the resource quantity from the unsent monitoring resources to serve as a monitoring resource list corresponding to the current request page splitting number.
2. The method of claim 1, wherein before receiving the resource request packet sent by the terminal of the video network, the method further comprises:
acquiring a terminal number of at least one video network terminal, and storing the terminal number;
distributing a user ID (identity) aiming at each terminal number, wherein the user ID is bound with at least one monitoring device in the video network;
sending a network access number of a monitoring management server and a user ID (identity) distributed to each video network terminal, so that the video network terminals store the network access number and the user ID of the monitoring management server, and when monitoring resources are required to be requested from the monitoring management server, generating a resource request packet according to the network access number and the user ID, wherein the network access number of the monitoring management server is used for uniquely identifying the monitoring management server;
analyzing the resource request packet to obtain resource request parameters, including:
analyzing the resource request packet to obtain the network access number and the user ID of the monitoring management server;
obtaining a monitoring resource list according to the resource request parameter, including:
and when the network access number of the monitoring management server is the same as the network access number of the monitoring management server, acquiring the monitoring resource list according to the user ID.
3. The method of claim 2, further comprising:
setting resource authority for a user ID corresponding to each terminal number, wherein the resource authority is the authority of requesting to monitor resources under the user ID of the video network terminal;
obtaining the monitoring resource list according to the user ID, including:
acquiring the resource authority of the user ID;
and obtaining the monitoring resource list according to the resource authority.
4. The method according to any one of claims 1-3, wherein encapsulating the monitoring resource list based on an internet of view protocol to obtain a resource response packet comprises:
based on a video networking protocol, packaging the monitoring resource list in a json character string mode to obtain the resource response packet;
sending the resource response packet to the video network terminal as a response packet of the resource request packet, including:
the resource response packet is used as a response packet of the resource request packet and is transmitted to the video networking terminal;
and when the transparent transmission fails, transmitting the resource response packet to the video network terminal again until the transparent transmission is successful.
5. A resource scheduling method is applied to a video network terminal, and comprises the following steps:
acquiring a resource request parameter input by a user;
determining a target monitoring management server according to the resource request parameters;
based on a video networking protocol, packaging the resource request parameters to obtain a resource request packet;
sending the resource request packet to the target monitoring management server, wherein the target monitoring management server is any one of at least one monitoring management server deployed in the video network;
receiving a resource response packet which is returned by the target monitoring management server and aims at the resource request packet;
after receiving a resource response packet for the resource request packet returned by the monitoring management server, the method further includes:
analyzing the resource response packet based on a video networking protocol to obtain a monitoring resource list;
displaying the monitoring resource list;
receiving a request of ordering target monitoring resources sent by a remote control terminal, wherein the target monitoring resources are any monitoring resources determined by a user in the monitoring resource list;
sending the request to a video networking monitoring access server;
receiving target monitoring resources returned by the video network monitoring access server;
and playing the target monitoring resource.
6. A monitoring management server deployed in a video network, the monitoring management server comprising:
the first receiving module is used for receiving a resource request packet sent by a video networking terminal, and the video networking terminal is any one of all video networking terminals configured in the monitoring management server;
the first analysis module is used for analyzing the resource request packet based on a video networking protocol to obtain a resource request parameter;
a first obtaining module, configured to obtain a monitoring resource list according to the resource request parameter;
the first packaging module is used for packaging the monitoring resource list based on a video networking protocol to obtain a resource response packet;
the first sending module is used for sending the resource response packet to the video network terminal as a response packet of the resource request packet, so that the video network terminal analyzes the resource response packet based on a video network protocol to obtain a monitoring resource list; displaying the monitoring resource list; receiving a request for requesting a target monitoring resource sent by a remote control terminal, wherein the target monitoring resource is any monitoring resource determined by a user in the monitoring resource list; sending the request to a video networking monitoring access server; receiving target monitoring resources returned by the video networking monitoring access server; playing the target monitoring resource;
the resource request parameters include: the current request is divided into page number and resource number;
the first obtaining module includes:
the first determining module is used for determining the requested number of pages and the corresponding sent monitoring resource according to the current requested number of pages;
a second determining module, configured to determine, according to the sent monitoring resource, a non-sent monitoring resource;
and the second resource acquisition module is used for acquiring the monitoring resources which accord with the resource quantity from the unsent monitoring resources as a monitoring resource list corresponding to the current request paging number.
7. A video networking terminal, said video networking terminal comprising:
the second obtaining module is used for obtaining the resource request parameters input by the user;
the third determining module is used for determining a target monitoring management server according to the resource request parameter;
the second packaging module is used for packaging the resource request parameter based on a video networking protocol to obtain a resource request packet;
a third sending module, configured to send the resource request packet to the target monitoring management server, where the target monitoring management server is any one of at least one monitoring management server deployed in a video network;
a second receiving module, configured to receive a resource response packet that is returned by the target monitoring management server and is addressed to the resource request packet;
the video networking terminal includes:
the second analysis module is used for analyzing the resource response packet based on a video networking protocol to obtain a monitoring resource list;
the display module is used for displaying the monitoring resource list;
a third receiving module, configured to receive a request for requesting a target monitoring resource sent by a remote control terminal, where the target monitoring resource is any monitoring resource determined by a user in the monitoring resource list;
the fourth sending module is used for sending the request to the video network monitoring access server;
the fourth receiving module is used for receiving the target monitoring resource returned by the video network monitoring access server;
and the playing module is used for playing the target monitoring resource.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executed, carries out the steps of the method according to any of claims 1-4.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201911381004.8A 2019-12-27 2019-12-27 Resource scheduling method, server, terminal, electronic device, and storage medium Active CN111147795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911381004.8A CN111147795B (en) 2019-12-27 2019-12-27 Resource scheduling method, server, terminal, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911381004.8A CN111147795B (en) 2019-12-27 2019-12-27 Resource scheduling method, server, terminal, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN111147795A CN111147795A (en) 2020-05-12
CN111147795B true CN111147795B (en) 2022-12-23

Family

ID=70521197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911381004.8A Active CN111147795B (en) 2019-12-27 2019-12-27 Resource scheduling method, server, terminal, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN111147795B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306604B (en) * 2020-08-21 2022-09-23 海信视像科技股份有限公司 Progress display method and display device for file transmission

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003274383A (en) * 2002-03-18 2003-09-26 Hitachi Kokusai Electric Inc Server and system for video distribution
CN105847873A (en) * 2016-05-16 2016-08-10 西安电子科技大学 High definition video code stream and data multiplexing system and method for surveillance application
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system
CN108462678A (en) * 2017-02-21 2018-08-28 北京视联动力国际信息技术有限公司 A kind of method and apparatus of checking monitoring video recording
CN110113309A (en) * 2019-04-03 2019-08-09 视联动力信息技术股份有限公司 Method for processing resource and device
CN110475102A (en) * 2019-08-28 2019-11-19 视联动力信息技术股份有限公司 A kind of monitoring data processing method and system based on view networking
CN110581846A (en) * 2019-08-22 2019-12-17 视联动力信息技术股份有限公司 Monitoring video processing and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7260826B2 (en) * 2000-05-31 2007-08-21 Microsoft Corporation Resource allocation in multi-stream IP network for optimized quality of service

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003274383A (en) * 2002-03-18 2003-09-26 Hitachi Kokusai Electric Inc Server and system for video distribution
CN105847873A (en) * 2016-05-16 2016-08-10 西安电子科技大学 High definition video code stream and data multiplexing system and method for surveillance application
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system
CN108462678A (en) * 2017-02-21 2018-08-28 北京视联动力国际信息技术有限公司 A kind of method and apparatus of checking monitoring video recording
CN110113309A (en) * 2019-04-03 2019-08-09 视联动力信息技术股份有限公司 Method for processing resource and device
CN110581846A (en) * 2019-08-22 2019-12-17 视联动力信息技术股份有限公司 Monitoring video processing and system
CN110475102A (en) * 2019-08-28 2019-11-19 视联动力信息技术股份有限公司 A kind of monitoring data processing method and system based on view networking

Also Published As

Publication number Publication date
CN111147795A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN109120946B (en) Method and device for watching live broadcast
CN109451264B (en) Method and system for monitoring equipment conference entry
CN109167960B (en) Method and system for processing video stream data
CN109996086B (en) Method and device for inquiring service state of video networking
CN109040658B (en) Conference control method and device
CN108810581B (en) Software menu updating method and device
CN109474715B (en) Resource configuration method and device based on video network
CN109660816B (en) Information processing method and device
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN110191315B (en) Monitoring and checking method and device based on video network
CN109743522B (en) Communication method and device based on video networking
CN110049273B (en) Video networking-based conference recording method and transfer server
CN110572433A (en) Video scheduling method, system and device
CN111431966B (en) Service request processing method and device, electronic equipment and storage medium
CN110557612B (en) Control method of monitoring equipment and video networking system
CN110224988B (en) Image data processing method, system and device and storage medium
CN109547727B (en) Data caching method and device
CN109347844B (en) Method and device for accessing equipment to Internet
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110289974B (en) Data stream processing method, system and device and storage medium
CN111147795B (en) Resource scheduling method, server, terminal, electronic device, and storage medium
CN110557594B (en) Video call processing method and device and storage medium
CN110798450B (en) Audio and video data processing method and device and storage medium
CN109819209B (en) System, method and device for monitoring resource calling
CN109194896B (en) Calling method and system for video networking terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant