[go: up one dir, main page]

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
monitoring
resource
terminal
management server
video
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 technical field of information processing, in particular to a resource scheduling method, a server, a terminal, electronic equipment and a storage medium.

背景技术Background technique

随着网络科技的快速发展,视频会议、视频教学等双向通信在用户的生活、工作、学习等方面广泛普及。所以视联网通信技术逐渐成为诸多用户的通信选择。With the rapid development of network technology, two-way communications such as video conferencing and video teaching are widely used in users' life, work, and study. Therefore, the Internet of View communication technology has gradually become the communication choice of many users.

在视联网中,用户终端调取监控视频流需要通过监控管理平台,即:用户终端向监控管理平台发送获取监控视频流的请求,监控管理平台获取到监控视频流以后返回给用户终端。在相关技术中,监控管理平台的部署需要依托于IP网络,这使得用户终端需要采用IP访问方式才能从监控管理平台中获取到监控视频流。然而,使用IP访问方式时,所有的视频业务都必须在视频专网内进行,即:只有当监控管理平台和请求监控视频流的终端设备部署于专网中,终端设备才可以调取到监控管理平台中的监控视频流。在一些偏远地区,由于IP网络的部署有限,因此无法部署监控管理平台,导致该地区内的终端设备无法调取到监控视频流,极大地影响了用户的使用体验。In the video network, the user terminal needs to pass through the monitoring management platform to retrieve the monitoring video stream, that is, the user terminal sends a request for obtaining the monitoring video stream to the monitoring management platform, and the monitoring management platform returns the monitoring video stream to the user terminal after obtaining the monitoring video stream. In related technologies, the deployment of the monitoring and management platform needs to rely on the IP network, which makes the user terminal need to use the IP access method to obtain the monitoring video stream from the monitoring and management platform. However, when using the IP access method, all video services must be carried out in the video private network, that is: only when the monitoring management platform and the terminal device requesting to monitor the video stream are deployed in the private network, the terminal device can call the monitoring Manage surveillance video streams in the platform. In some remote areas, due to the limited deployment of IP networks, it is impossible to deploy a surveillance management platform, resulting in the inability of terminal devices in this area to retrieve surveillance video streams, which greatly affects the user experience.

发明内容Contents of the invention

本申请实施例提供了一种资源调度方法、服务器、终端、电子设备及存储介质,旨在提供一种更好地监控资源调度方式,以克服上述提到的问题。Embodiments of the present application provide a resource scheduling method, a server, a terminal, an electronic device, and a storage medium, aiming to provide a better way to monitor resource scheduling so as to overcome the aforementioned problems.

本申请实施例第一方面提供了一种资源调度方法,应用于监控管理服务器,所述监控管理服务器部署于视联网中,所述方法包括:The first aspect of the embodiment of the present application provides a method for resource scheduling, which is applied to a monitoring and management server, and the monitoring and management server is deployed in a video network, and the method includes:

接收视联网终端发送的资源请求包,所述视联网终端为所述监控管理服务器中已配置的所有视联网终端中的任意一个视联网终端;Receiving a resource request packet sent by an Internet-of-Vision terminal, where the Internet-of-Vision terminal is any one of all Internet-of-Vision terminals configured in the monitoring and management server;

基于视联网协议,对所述资源请求包进行解析,获得资源请求参数;Based on the Internet of View protocol, parsing the resource request packet to obtain resource request parameters;

根据所述资源请求参数,获得监控资源列表;Obtain a list of monitored resources according to the resource request parameters;

基于视联网协议,对所述监控资源列表进行封装,获得资源响应包;Encapsulating the monitoring resource list based on a video networking protocol to obtain a resource response packet;

将所述资源响应包作为所述资源请求包的响应包发送给所述视联网终端。Sending the resource response packet as a response packet to the resource request packet to the Internet of Vision terminal.

本申请实施例第二方面提供了一种资源调度方法,应用于视联网终端,所述方法包括:The second aspect of the embodiment of the present application provides a resource scheduling method, which is applied to a video network terminal, and the method includes:

获得用户输入的资源请求参数;Obtain the resource request parameters input by the user;

根据所述资源请求参数确定目标监控管理服务器;determining a target monitoring and management server according to the resource request parameter;

基于视联网协议,对所述资源请求参数进行封装,获得资源请求包;Encapsulating the resource request parameters based on the Internet of View protocol to obtain a resource request package;

将所述资源请求包发送到所述目标监控管理服务器,所述目标监控管理服务器是部署于视联网中的至少一个监控管理服务器中的任意一个监控管理服务器;Send the resource request packet to the target monitoring and management server, where the target monitoring and management server is any one of at least one monitoring and management server deployed in the Internet of Vision;

接收所述目标监控管理服务器返回的针对所述资源请求包的资源响应包。and receiving a resource response packet for the resource request packet returned by the target monitoring and management server.

可选地,在接收所述监控管理服务器返回的针对所述资源请求包的资源响应包后,所述方法还包括:Optionally, after receiving the resource response packet for the resource request packet returned by the monitoring and management server, the method further includes:

基于视联网协议,对所述资源响应包进行解析,获得监控资源列表;Analyzing the resource response packet based on the Internet of View protocol to obtain a list of monitoring resources;

显示所述监控资源列表;displaying the list of monitoring resources;

接收遥控终端发送的点播目标监控资源的请求,所述目标监控资源是用户在所述监控资源列表中确定的任意监控资源;receiving a request for on-demand target monitoring resources sent by the remote control terminal, where the target monitoring resources are any monitoring resources determined by the user in the monitoring resource list;

将所述请求发送到视联网监控接入服务器;Send the request to the Internet of View monitoring access server;

接收所述视联网监控接入服务器返回的目标监控资源;receiving the target monitoring resource returned by the Internet of View monitoring access server;

播放所述目标监控资源。Play the target monitoring resource.

本申请实施例第三方面提供了一种监控管理服务器,部署于视联网中,所述监控管理服务器包括:The third aspect of the embodiment of the present application provides a monitoring and management server, which is deployed in the Internet of Things, and the monitoring and management server includes:

第一接收模块,用于接收视联网终端发送的资源请求包,所述视联网终端为所述监控管理服务器中已配置的所有视联网终端中的任意一个视联网终端;The first receiving module is configured to receive a resource request packet sent by a video-network terminal, where the video-network terminal is any video-network terminal among all video-network terminals configured in the monitoring and management server;

第一解析模块,用于基于视联网协议,对所述资源请求包进行解析,获得资源请求参数;The first parsing module is configured to parse the resource request packet based on the Internet of View protocol to obtain resource request parameters;

第一获得模块,用于根据所述资源请求参数,获得监控资源列表;A first obtaining module, configured to obtain a monitoring resource list according to the resource request parameter;

第一封装模块,用于基于视联网协议,对所述监控资源列表进行封装,获得资源响应包;The first encapsulation module is configured to encapsulate the monitoring resource list based on the Internet of Vision protocol to obtain a resource response packet;

第一发送模块,用于将所述资源响应包作为所述资源请求包的响应包发送给所述视联网终端。The first sending module is configured to send the resource response packet as a response packet of the resource request packet to the Internet of Vision terminal.

本申请实施例第四方面提供了一种视联网终端,所述视联网终端包括:The fourth aspect of the embodiment of the present application provides a video network terminal, the video network terminal includes:

第二获得模块,用于获得用户输入的资源请求参数;The second obtaining module is used to obtain resource request parameters input by the user;

第三确定模块,用于根据所述资源请求参数确定目标监控管理服务器;A third determining module, configured to determine a target monitoring and management server according to the resource request parameter;

第二封装模块,用于基于视联网协议,对所述资源请求参数进行封装,获得资源请求包;The second encapsulation module is configured to encapsulate the resource request parameters based on the Internet of View protocol to obtain a resource request packet;

第三发送模块,用于将所述资源请求包发送到所述目标监控管理服务器,所述目标监控管理服务器是部署于视联网中的至少一个监控管理服务器中的任意一个监控管理服务器;A third sending module, configured to send the resource request packet to the target monitoring and management server, where the target monitoring and management server is any one of at least one monitoring and management server deployed in the Internet of Things;

第二接收模块,用于接收所述目标监控管理服务器返回的针对所述资源请求包的资源响应包。The second receiving module is configured to receive a resource response packet for the resource request packet returned by the target monitoring and management server.

本申请实施例第五方面提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现本申请第一方面所述的方法的步骤。The fifth aspect of the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the method described in the first aspect of the present application when executed A step of.

本申请实施例第六方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请第一方面所述的方法中的步骤。The sixth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.

本申请实施例提供了一种资源调度方法,监控管理服务器部署于视联网中,只要是部署于视联网中的终端设备,即:视联网终端,监控管理服务器均可以将其配置在自身中,并在后续接收其发送的资源请求包。监控管理服务器在接收到视联网终端发送的资源请求包后,基于视联网协议,对资源请求包进行解析,获得资源请求参数,并根据资源请求参数获得监控资源列表,再按照视联网协议,对监控资源列表进行封装,获得资源响应包,最后将资源响应包作为资源请求包的响应包发送给视联网终端。在本实施例中,视联网中可以部署多个监控管理服务器,视联网终端可以配置在任意一个监控管理服务器中,因而可以向任意一个已配置的监控管理服务器请求监控资源,而不会受到专网/局域网的限制,相比于相关技术中视联网终端通过IP方式请求监控管理服务器中的监控资源时,视联网终端只能向自身所处的视频专网中已经部署的监控管理服务器请求监控资源,本申请的监控资源调度过程完全基于视联网方式,请求监控资源的方式更加灵活,既能充分发挥海量监控资源在实际业务中的价值,也能为用户查看监控资源提供巨大的便利,有效改善用户的使用体验。The embodiment of the present application provides a resource scheduling method. The monitoring and management server is deployed in the Internet of Vision. As long as it is a terminal device deployed in the Internet of Vision, that is, a terminal of the Internet of View, the monitoring and management server can configure it in itself. And subsequently receive the resource request packet sent by it. After receiving the resource request packet sent by the Internet of Vision terminal, the monitoring and management server analyzes the resource request packet based on the Internet of Vision protocol, obtains the resource request parameters, and obtains the list of monitoring resources according to the resource request parameters, and then according to the Internet of Vision protocol. The monitoring resource list is encapsulated to obtain a resource response packet, and finally the resource response packet is sent to the Internet of Vision terminal as a response packet of the resource request packet. In this embodiment, multiple monitoring and management servers can be deployed in the Internet of Views, and the Internet of Views terminal can be configured in any monitoring and management server, so it can request monitoring resources from any configured monitoring and management server without being subject to dedicated Network/LAN restrictions, compared to related technologies, when a video network terminal requests monitoring resources in the monitoring management server through IP, the video network terminal can only request monitoring resources from the monitoring management server deployed in the video private network where it is located , the monitoring resource scheduling process of this application is completely based on the Internet of View method, and the method of requesting monitoring resources is more flexible, which can not only give full play to the value of massive monitoring resources in actual business, but also provide great convenience for users to view monitoring resources, effectively improving User experience.

附图说明Description of drawings

图1是本申请一实施例示出的一种实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment shown in an embodiment of the present application;

图2是本申请一实施例示出的一种资源调度方法的流程图;Fig. 2 is a flowchart of a resource scheduling method shown in an embodiment of the present application;

图3是本申请一实施例示出的另一种资源调度方法的流程图;Fig. 3 is a flowchart of another resource scheduling method shown in an embodiment of the present application;

图4是本申请一实施例示出的资源调度方法的原理图;FIG. 4 is a schematic diagram of a resource scheduling method shown in an embodiment of the present application;

图5是本申请一实施例示出的一种监控管理服务器的的结构框图;Fig. 5 is a structural block diagram of a monitoring and management server shown in an embodiment of the present application;

图6是本申请一实施例示出的一种视联网终端的结构框图;Fig. 6 is a structural block diagram of a video network terminal shown in an embodiment of the present application;

图7是本申请一实施例示出的一种电子设备的示意图;Fig. 7 is a schematic diagram of an electronic device shown in an embodiment of the present application;

图8是本申请一实施例示出的一种视联网的组网示意图;Fig. 8 is a schematic diagram of networking of a video network shown in an embodiment of the present application;

图9是本申请一实施例示出的一种节点服务器的硬件结构示意图;FIG. 9 is a schematic diagram of a hardware structure of a node server shown in an embodiment of the present application;

图10是本申请一实施例示出的一种接入交换机的硬件结构示意图;FIG. 10 is a schematic diagram of a hardware structure of an access switch shown in an embodiment of the present application;

图11是本申请一实施例示出的一种以太网协转网关的硬件结构示意图。Fig. 11 is a schematic diagram of a hardware structure of an Ethernet protocol conversion gateway shown in an embodiment of the present application.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

相关技术中,如果用户需要调取视频流,首先在访问时用http://ip:port的方式访问监控管理服务器,然后在监控管理服务器上控制视联网终端,调取监控。此种方式的弊端在于:若处于网络隔离地区,ip无法穿透,因此无法访问监控管理服务器,无法调取视频。为克服该问题,在本实施例中,调取监控不需要通过ip方式访问监控管理服务器,在视联网终端上通过视联网二层传输,以解决网络隔离的问题。In related technologies, if a user needs to retrieve video streams, he first accesses the monitoring and management server through http://ip:port when accessing, and then controls the video network terminal on the monitoring and management server to retrieve the monitoring. The disadvantage of this method is that if it is in a network isolation area, the ip cannot penetrate, so the monitoring and management server cannot be accessed, and the video cannot be retrieved. In order to overcome this problem, in this embodiment, calling monitoring does not need to access the monitoring management server through ip mode, and it is transmitted through the second layer of the Internet of Vision on the Internet of Vision terminal to solve the problem of network isolation.

图1是本申请一实施例示出的一种实施环境示意图。在该实施环境中,视联网终端分别与监控管理服务器和视联网监控接入服务器通信连接,且视联网终端、监控管理服务器以及视联网监控接入服务器均部署于视联网中。监控管理服务器中部署有视联网监控管理系统,视联网监控接入服务器中存储有视联网监控设备的监控资源。Fig. 1 is a schematic diagram of an implementation environment shown by an embodiment of the present application. In this implementation environment, the Internet of Vision terminal communicates with the monitoring management server and the Internet of Vision monitoring access server respectively, and the Internet of Vision terminal, the monitoring management server and the Internet of Vision monitoring access server are all deployed in the Internet of Vision. The monitoring and management server is deployed with a video network monitoring and management system, and the video network monitoring access server stores the monitoring resources of the video network monitoring equipment.

本申请首先提供了一种资源调度方法,应用于图1中的监控管理服务器。图2是本申请一实施例示出的一种资源调度方法的流程图。参照图2,本申请的资源调度方法可以包括以下步骤:The present application first provides a resource scheduling method, which is applied to the monitoring and management server in FIG. 1 . Fig. 2 is a flowchart of a resource scheduling method according to an embodiment of the present application. Referring to Figure 2, the resource scheduling method of the present application may include the following steps:

步骤S11:接收视联网终端发送的资源请求包,所述视联网终端为所述监控管理服务器中已配置的所有视联网终端中的任意一个视联网终端。Step S11: Receive a resource request packet sent by an Internet-of-Vision terminal, where the Internet-of-Vision terminal is any one of all Internet-of-Vision terminals configured in the monitoring and management server.

在本实施例中,可以在视联网内部部署多个监控管理服务器。每一个监控管理服务器在入网以后,会在自身配置多个视联网终端。所有在监控管理服务器中已经配置的终端,均可以向该监控管理服务器发送资源请求包。资源请求包用于请求监控资源。In this embodiment, multiple monitoring and management servers can be deployed inside the Internet of Things. After each monitoring and management server is connected to the network, it will configure multiple video network terminals on itself. All terminals configured in the monitoring management server can send resource request packets to the monitoring management server. The resource request package is used to request monitoring resources.

步骤S12:基于视联网协议,对所述资源请求包进行解析,获得资源请求参数。Step S12: Based on the Internet of Vision protocol, analyze the resource request packet to obtain resource request parameters.

在本实施例中,监控管理服务器和视联网终端之间的通信交互均基于视联网协议进行。监控管理服务器在接收到资源请求包后,基于视联网协议对资源请求包进行解析,获得资源请求参数。资源请求参数可以包括:终端号码、监控管理服务器的入网号码、用户ID、当前请求分页数、资源数量等,具体可根据实际需求设置资源请求参数,本申请对此不作具体限制。In this embodiment, the communication and interaction between the monitoring management server and the Internet-of-Vision terminal are all performed based on the Internet-of-Vision protocol. After receiving the resource request packet, the monitoring and management server parses the resource request packet based on the Internet of Vision protocol to obtain resource request parameters. Resource request parameters may include: terminal number, network access number of the monitoring and management server, user ID, number of currently requested pages, resource quantity, etc. The resource request parameters can be set according to actual needs, and this application does not make specific restrictions on this.

其中,终端号码用以在整个视联网中唯一标识视联网终端;监控管理服务器的入网号码用以在整个视联网中唯一标识监控管理服务器;用户ID用于绑定多个监控设备(多个监控设备可任意添加和解除),监控管理服务器通过某一个用户ID即可获取到其下的任意监控设备中的监控资源;视联网终端在获取到监控资源后,将监控资源以列表的形式,分页展示在终端界面中,当用户通过终端界面查看到某一页监控资源列表后,可以向监控管理服务器请求下一页监控资源列表,以获取更多的监控资源;资源数量为视联网终端在每一页中展示的监控资源的数量。Among them, the terminal number is used to uniquely identify the video network terminal in the entire video network; the network access number of the monitoring management server is used to uniquely identify the monitoring management server in the entire video network; the user ID is used to bind multiple monitoring devices (multiple monitoring Devices can be added and removed arbitrarily), and the monitoring management server can obtain the monitoring resources of any monitoring device under it through a certain user ID; after obtaining the monitoring resources, the video network terminal will list the monitoring resources in the form of paging Displayed in the terminal interface, when the user views a certain page of monitoring resource list through the terminal interface, he can request the next page of monitoring resource list from the monitoring management server to obtain more monitoring resources; the number of resources is The number of monitoring resources displayed on a page.

步骤S13:根据所述资源请求参数,获得监控资源列表。Step S13: Obtain a list of monitored resources according to the resource request parameters.

在本实施例中,获得监控资源列表时所使用的参数主要是:用户ID。监控管理服务器根据该用户ID,到该用户ID绑定的多个监控设备中获取对应的监控资源In this embodiment, the parameters used when obtaining the monitoring resource list are mainly: user ID. According to the user ID, the monitoring management server obtains corresponding monitoring resources from multiple monitoring devices bound to the user ID

步骤S14:基于视联网协议,对所述监控资源列表进行封装,获得资源响应包。Step S14: Encapsulating the monitoring resource list based on the Internet of Vision protocol to obtain a resource response packet.

在本实施例中,监控管理服务器获取到监控资源列表后,基于视联网协议对监控资源列表进行封装,获得资源响应包。In this embodiment, after obtaining the monitoring resource list, the monitoring management server encapsulates the monitoring resource list based on the Internet of View protocol to obtain a resource response packet.

步骤S15:将所述资源响应包作为所述资源请求包的响应包发送给所述视联网终端。Step S15: sending the resource response packet as a response packet of the resource request packet to the Internet-of-Video terminal.

在本实施例中,监控管理服务器在获得资源响应包后,将资源响应包发送给视联网终端,以使得视联网终端解析资源响应包,获得监控资源列表,并展示在视联网终端界面中。In this embodiment, after obtaining the resource response packet, the monitoring management server sends the resource response packet to the Internet of Vision terminal, so that the Internet of Vision terminal parses the resource response packet, obtains a list of monitoring resources, and displays it on the interface of the Internet of Vision terminal.

示例地,以视联网中的监控管理服务器A为例,假设监控管理服务器A在自身完成了对视联网终端1-N的配置。当监控管理服务器A接收到视联网终端1发送的资源请求包后,按照视联网协议对该资源请求包进行解析,获得视联网终端1的终端号码、监控管理服务器的入网号码、用户ID、当前请求分页数、资源数量等,监控管理服务器A查看到该监控管理服务器的入网号码与自身入网时被分配得到的入网号码相同,确定视联网终端1是向自身请求监控资源,按照视联网终端1的终端号码,在预先存储的多个终端号码-用户ID列表中,查找到视联网终端1对应的用户ID,在该用户ID绑定的多个监控设备中获取到监控资源,根据当前请求分页数,确定用户已请求的分页数中的监控资源,在剩余的监控资源中获取到符合资源数量的监控资源,然后生成监控资源列表,再采用视联网协议对该监控资源列表进行封装,得到资源响应包,最后将该资源响应包通过视联网透传方式传输给视联网终端1,以响应视联网终端1发送的资源请求包,从而完成监控资源的调度。Exemplarily, taking the monitoring and management server A in the Internet of Vision as an example, it is assumed that the monitoring and management server A has completed the configuration of the terminals 1-N of the Internet of Vision by itself. When the monitoring and management server A receives the resource request packet sent by the Internet of Vision terminal 1, it analyzes the resource request packet according to the Internet of Vision protocol, and obtains the terminal number of the Internet of Vision terminal 1, the network access number of the monitoring and management server, user ID, current The number of pages requested, the number of resources, etc., the monitoring management server A checks that the network access number of the monitoring management server is the same as the network access number assigned when it is connected to the network, and determines that the video network terminal 1 is requesting monitoring resources from itself, according to the video network terminal 1 terminal number, in the pre-stored multiple terminal number-user ID list, find the user ID corresponding to the Internet of Vision terminal 1, and obtain monitoring resources from multiple monitoring devices bound to the user ID, according to the current request The number of pages, determine the monitoring resources in the number of pages requested by the user, obtain the monitoring resources that meet the number of resources from the remaining monitoring resources, and then generate a list of monitoring resources, and then use the Internet of Things protocol to encapsulate the list of monitoring resources , to obtain a resource response packet, and finally transmit the resource response packet to the Internet of Vision terminal 1 through the Internet of Vision transparent transmission method, so as to respond to the resource request packet sent by the Internet of Vision terminal 1, thereby completing the scheduling of monitoring resources.

在本申请实施例中,监控管理服务器部署于视联网中,只要是部署于视联网中的终端设备,即:视联网终端,监控管理服务器均可以将其配置在自身中,并在后续接收其发送的资源请求包。监控管理服务器在接收到视联网终端发送的资源请求包后,基于视联网协议,对资源请求包进行解析,获得资源请求参数,并根据资源请求参数获得监控资源列表,再按照视联网协议,对监控资源列表进行封装,获得资源响应包,最后将资源响应包作为资源请求包的响应包发送给视联网终端。在本实施例中,视联网中可以部署多个监控管理服务器,视联网终端可以配置在任意一个监控管理服务器中,因而可以向任意一个已配置的监控管理服务器请求监控资源,而不会受到专网/局域网的限制,相比于相关技术中视联网终端通过IP方式请求监控管理服务器中的监控资源时,视联网终端只能向自身所处的视频专网中已经部署的监控管理服务器请求监控资源,本申请的监控资源调度过程完全基于视联网方式,请求监控资源的方式更加灵活,既能充分发挥海量监控资源在实际业务中的价值,也能为用户查看监控资源提供巨大的便利,有效改善用户的使用体验。In the embodiment of this application, the monitoring and management server is deployed in the Internet of Vision, as long as it is a terminal device deployed in the Internet of Vision, that is, a terminal of the Internet of Vision, the monitoring and management server can configure it in itself, and receive its information later. The resource request packet sent. After receiving the resource request packet sent by the Internet of Vision terminal, the monitoring and management server analyzes the resource request packet based on the Internet of Vision protocol, obtains the resource request parameters, and obtains the list of monitoring resources according to the resource request parameters, and then according to the Internet of Vision protocol. The monitoring resource list is encapsulated to obtain a resource response packet, and finally the resource response packet is sent to the Internet of Vision terminal as a response packet of the resource request packet. In this embodiment, multiple monitoring and management servers can be deployed in the Internet of Views, and the Internet of Views terminal can be configured in any monitoring and management server, so it can request monitoring resources from any configured monitoring and management server without being subject to dedicated Network/LAN restrictions, compared to related technologies, when a video network terminal requests monitoring resources in the monitoring management server through IP, the video network terminal can only request monitoring resources from the monitoring management server deployed in the video private network where it is located , the monitoring resource scheduling process of this application is completely based on the Internet of View method, and the method of requesting monitoring resources is more flexible, which can not only give full play to the value of massive monitoring resources in actual business, but also provide great convenience for users to view monitoring resources, effectively improving User experience.

结合以上实施例,在一种实施方式中,在接收视联网终端发送的资源请求包前,监控管理服务器还需要在自身进行配置多个视联网终端。具体地,本申请的资源调度方法还可以包括:In combination with the above embodiments, in one implementation manner, before receiving the resource request packet sent by the Internet-of-Vision terminal, the monitoring and management server needs to configure multiple Internet-of-Vision terminals on itself. Specifically, the resource scheduling method of the present application may also include:

获得至少一个视联网终端的终端号码,对所述终端号码进行存储;Obtaining a terminal number of at least one Internet-of-Video terminal, and storing the terminal number;

针对每一个所述终端号码,分配用户ID,所述用户ID在视联网中绑定有至少一个监控设备;For each of the terminal numbers, a user ID is assigned, and the user ID is bound to at least one monitoring device in the Internet of Vision;

向每一个所述视联网终端发送监控管理服务器的入网号码,和为所述视联网终端分配的用户ID,以使所述视联网终端存储所述监控管理服务器的入网号码和所述用户ID,并在需要向所述监控管理服务器请求监控资源时,根据所述入网号码和所述用户ID生成所述资源请求包,所述监控管理服务器的入网号码用于唯一标识所述监控管理服务器;Sending the network access number of the monitoring and management server to each of the video networking terminals, and the user ID assigned to the video networking terminal, so that the video networking terminal stores the network access number and the user ID of the monitoring and management server, And when it is necessary to request monitoring resources from the monitoring management server, generate the resource request packet according to the network access number and the user ID, and the network access number of the monitoring management server is used to uniquely identify the monitoring management server;

相应地,对所述资源请求包进行解析,获得资源请求参数,包括:Correspondingly, the resource request packet is parsed to obtain resource request parameters, including:

对所述资源请求包进行解析,获得所述监控管理服务器的入网号码和所述用户ID;Analyzing the resource request packet to obtain the network access number of the monitoring and management server and the user ID;

相应地,根据所述资源请求参数,获得监控资源列表,包括:Correspondingly, according to the resource request parameters, obtain a monitoring resource list, including:

在所述监控管理服务器的入网号码和自身的入网号码相同时,根据所述用户ID获得所述监控资源列表。When the network access number of the monitoring management server is the same as its own network access number, the monitoring resource list is obtained according to the user ID.

在本实施例中,监控管理服务器可以在自身配置任意的视联网终端,并为配置成功的视联网终端提供视联网服务。具体配置过程为:监控管理服务器首先完成入网;在入网成功后,获得多个有效的视联网终端的终端号码,其中,获得方式可以是从第三方平台获得,也可以人工录入,本申请对此不作具体限制;然后获得多个用户ID,其中,获得方式可以是从监控接入服务器中获得;再将多个用户ID分配给多个视联网终端,使得每一个视联网终端对应一个用户ID,由于不同的用户ID下绑定的监控设备可以是不同的,因而,通过为视联网终端分配不同的用户ID,可以控制视联网终端获取的监控资源;在完成多个用户ID的分配后,向每一个视联网终端发送为其分配的用户ID,和监控管理服务器自身的入网号码;视联网终端接收到用户ID和监控管理服务器的入网号码后,返回一个响应,监控管理服务器在接收到该响应后,确定该视联网终端配置成功。该视联网终端配置成功后,在需要向该监控管理服务器请求监控资源时,可以基于该用户ID和监控管理服务器的入网号码生成资源请求包,发送给监控管理服务器,具体过程可参照前文所述,本申请对此不作具体限制。In this embodiment, the monitoring and management server can configure any Internet-of-Vision terminal on itself, and provide Internet-of-Vision services for successfully configured Internet-of-Vision terminals. The specific configuration process is as follows: the monitoring and management server first completes the network access; after the network access is successful, it obtains multiple valid terminal numbers of the Internet of View terminals, and the acquisition method can be obtained from a third-party platform or manually entered. Not specifically limited; then obtain a plurality of user IDs, wherein the acquisition method can be obtained from the monitoring access server; then assign a plurality of user IDs to a plurality of video network terminals, so that each video network terminal corresponds to a user ID, Since the monitoring devices bound under different user IDs can be different, therefore, by assigning different user IDs to the Internet-of-Vision terminals, the monitoring resources obtained by the Internet-of-Vision terminals can be controlled; after the allocation of multiple user IDs is completed, the Each video network terminal sends its assigned user ID and the network access number of the monitoring management server itself; after receiving the user ID and the network access number of the monitoring management server, the video network terminal returns a response, and the monitoring management server receives the response After that, it is determined that the Internet-of-Sight terminal is configured successfully. After the Internet-of-Vision terminal is successfully configured, when it is necessary to request monitoring resources from the monitoring management server, a resource request packet can be generated based on the user ID and the network access number of the monitoring management server and sent to the monitoring management server. The specific process can be referred to above. , the present application does not specifically limit this.

在本实施例中,由于视联网中可以部署多个监控管理服务器,每一个监控管理服务器中都可以配置多个视联网终端,导致同一个视联网终端可能在多个监控管理服务器中被配置,从而具有多个用户ID的现象。本申请的资源调度方法在实际实施时,采用配置覆盖原则,即:视联网终端在接收到一个监控管理服务器发送的用户ID和监控管理服务器的入网号码后,利用该用户ID和监控管理服务器的入网号码覆盖掉上一个监控管理服务器发送的用户ID和监控管理服务器的入网号码,从而只保存一个监控管理服务器发送的用户ID和监控管理服务器的入网号码。当然,视联网终端也可以不采用配置覆盖原则,对每一个监控管理服务器发送的用户ID和监控管理服务器的入网号码都进行保存,在后续存在监控资源获取请求时,可以从多个已配置的监控管理服务器中选择一个监控管理服务器,根据其发送的用户ID和入网号码生成资源请求包,进而获取监控资源。视联网终端具体采用何种方式存储用户ID和监控管理服务器的入网号码,可以根据实际需求设置,本申请对此不作具体限制。In this embodiment, since multiple monitoring and management servers can be deployed in the Internet of Views, multiple Internet of Viewing terminals can be configured in each monitoring and management server, so that the same Internet of Viewing terminal may be configured in multiple monitoring and management servers. Hence the phenomenon of having multiple user IDs. When the resource scheduling method of the present application is actually implemented, the configuration coverage principle is adopted, that is, after receiving the user ID and the network access number of the monitoring management server sent by the monitoring and management server, the video network terminal uses the user ID and the monitoring and management server's The network access number overwrites the user ID sent by the previous monitoring and management server and the network access number of the monitoring and management server, so that only the user ID and the network access number of the monitoring and management server sent by one monitoring and management server are saved. Certainly, the Internet-of-view terminal may also save the user ID sent by each monitoring and management server and the network access number of the monitoring and management server without adopting the principle of configuration coverage. A monitoring management server is selected among the monitoring management servers, and a resource request packet is generated according to the user ID and network access number sent by it, and then monitoring resources are obtained. The specific method used by the Internet-connected terminal to store the user ID and the network access number of the monitoring and management server can be set according to actual needs, and this application does not make specific restrictions on this.

结合以上实施例,在一种实施方式中,还可以对每一个视联网终端设置监控资源获取权限。具体地,本申请的资源调度方法还可以包括:With reference to the above embodiments, in an implementation manner, it is also possible to set monitoring resource acquisition permissions for each Internet-of-Vision terminal. Specifically, the resource scheduling method of the present application may also include:

为每一个所述终端号码对应的用户ID设置资源权限,所述资源权限为所述视联网终端在所述用户ID下请求监控资源的权限;Set resource permissions for each user ID corresponding to the terminal number, and the resource permissions are permissions for the Internet-of-Video terminal to request monitoring resources under the user ID;

相应地,根据所述用户ID获得所述监控资源列表,包括:Correspondingly, obtaining the monitoring resource list according to the user ID includes:

获得所述用户ID的资源权限;Obtain resource permissions for the user ID;

根据所述资源权限获得所述监控资源列表。The monitoring resource list is obtained according to the resource authority.

在本实施例中,由于每一个用户ID下绑定有多个监控设备,通过对用户ID下的监控设备进行控制,能进一步控制视联网终端获取的监控资源。示例地,当用户ID:YTY58被分配给视联网终端A时,可以在用户ID:YTY58下设置绑定的监控设备具体为区域A和区域B的监控设备,从而使得视联网终端A只能获取到区域A和区域B中的监控设备所采集的监控资源。In this embodiment, since each user ID is bound with multiple monitoring devices, by controlling the monitoring devices under the user ID, it is possible to further control the monitoring resources acquired by the Internet-of-Vision terminal. For example, when the user ID: YTY58 is assigned to the Internet-of-Vision terminal A, the bound monitoring devices can be set under the user ID: YTY58 to be the monitoring devices in area A and area B, so that the Internet-of-vision terminal A can only obtain To the monitoring resources collected by the monitoring devices in area A and area B.

在本实施例中,监控管理服务器可以在配置视联网终端的过程中,为每一个视联网终端设置资源权限,也可以在配置完成后,为每一个视联网终端设置资源权限。在设置资源权限后,可以根据资源权限对视联网终端的可获取的监控资源进行预存储,以便于视联网终端在下一次请求监控资源时,能及时将监控资源返回给视联网终端。In this embodiment, the monitoring and management server may set the resource authority for each Internet-of-Vision terminal during the process of configuring the Internet-of-Vision terminal, or may set the resource authority for each Internet-of-Vision terminal after the configuration is completed. After the resource permission is set, the available monitoring resources of the Internet of Vision terminal can be pre-stored according to the resource permission, so that the monitoring resource can be returned to the Internet of Vision terminal in time when the Internet of Vision terminal requests the monitoring resource next time.

在本实施例中,监控管理服务器中预存储的监控资源主要包括:监控名称、监控ID、组织机构、在线状态以及巡检故障等。视联网终端在下一次请求监控资源时,监控管理服务器可以将这类监控资源返回给视联网终端,以便于视联网终端选择目标监控资源,并到监控接入服务器获取目标监控资源,监控接入服务器主要用于存储与监控资源对应的监控视频流。In this embodiment, the monitoring resources pre-stored in the monitoring management server mainly include: monitoring name, monitoring ID, organizational structure, online status, and inspection faults. When the Internet of Vision terminal requests monitoring resources next time, the monitoring management server can return such monitoring resources to the Internet of Vision terminal, so that the Internet of Vision terminal can select the target monitoring resource, obtain the target monitoring resource from the monitoring access server, and monitor the access server. It is mainly used to store surveillance video streams corresponding to surveillance resources.

结合以上实施例,在一种实施方式中,还可以采取分页传输机制向视联网终端返回监控资源。具体地,所述资源请求参数包括:当前请求分页数、资源数量。In combination with the above embodiments, in an implementation manner, a paging transmission mechanism may also be adopted to return the monitoring resource to the Internet-of-Vision terminal. Specifically, the resource request parameters include: the number of currently requested pages and the number of resources.

因而,根据所述资源请求参数,获得监控资源列表,可以为:Therefore, according to the resource request parameters, the monitoring resource list can be obtained as follows:

根据所述当前请求分页数,确定已请求分页数及对应的已发送监控资源;Determine the number of requested pages and the corresponding sent monitoring resources according to the number of currently requested pages;

根据所述已发送监控资源确定未发送监控资源;determining the unsent monitoring resources according to the sent monitoring resources;

从未发送监控资源中获取符合所述资源数量的监控资源,作为所述当前请求分页数对应的监控资源列表。Obtain monitoring resources that match the number of resources from unsent monitoring resources as a list of monitoring resources corresponding to the number of currently requested pages.

在本实施例中,监控管理服务器可以分页传输的方式向视联网终端返回监控资源。视联网终端将监控资源以列表形式,分页展示在终端界面中,以供用户查看。当用户查看某一页监控资源列表后,如果需要继续查看下一页监控资源,可以对当前请求分页数和资源数量进行设置,视联网终端根据用户设置的值,将设置的值包含在资源请求包中,发送给监控管理服务器。In this embodiment, the monitoring and management server can return the monitoring resource to the Internet-of-Vision terminal in a paged transmission manner. The Internet-of-Sight terminal displays the monitoring resources in the form of a list and pages in the terminal interface for users to view. When the user views the list of monitoring resources on a certain page, if he needs to continue to view the monitoring resources on the next page, he can set the number of pages currently requested and the number of resources. In the request packet, it is sent to the monitoring and management server.

示例地,以用户在视联网终端A上查看监资源为例,若用户当前已经查看到第3页监控资源,想要请求第4页监控资源,则设置当前请求分页数为4,设置第4页展示的监控资源的数量,例如为10条,视联网终端A获取到用户输入的第4页、10条后,将该值封装到资源请求包中,将资源请求包发送给监控管理服务器;监控管理服务器解析得到用户想要请求第4页的监控资源,获取到第1-3页的监控资源,在预存储的视联网终端A可获取的监控资源中除去第1-3页的监控资源,在剩余的监控资源中获取10条监控资源,作为第4页展示的监控资源。For example, take the user viewing the monitoring resources on the video network terminal A as an example. If the user has already viewed the monitoring resources on the third page and wants to request the monitoring resources on the fourth page, set the number of currently requested pages to 4, and set the The number of monitoring resources displayed on page 4 is, for example, 10. After obtaining the 4th and 10 items entered by the user, the Internet-of-Sight terminal A encapsulates the value into a resource request packet, and sends the resource request packet to the monitoring management server ; The monitoring management server analyzes and obtains that the user wants to request the monitoring resources on page 4, obtains the monitoring resources on pages 1-3, and removes the monitoring resources on pages 1-3 from the pre-stored monitoring resources that can be obtained by the Internet-of-Vision terminal A Resources, obtain 10 monitoring resources from the remaining monitoring resources, as the monitoring resources displayed on page 4.

在本实施例中,按照分页方式展示监控资源,能及时响应用户的监控资源获取请求,同时为用户提供了多样化的监控资源请求方式,满足了用户的需求,改善了用户的使用体验。In this embodiment, monitoring resources are displayed in a page-by-page manner, which can respond to users' requests for obtaining monitoring resources in a timely manner. At the same time, it provides users with a variety of monitoring resource request methods, meets user needs, and improves user experience.

结合以上实施例,在一种实施方式中,基于视联网协议,对所述监控资源列表进行封装,获得资源响应包,可以包括:In combination with the above embodiments, in one implementation manner, based on the Internet of Vision protocol, the monitoring resource list is encapsulated to obtain a resource response packet, which may include:

基于视联网协议,对所述监控资源列表按照json字符串的方式进行封装,获得所述资源响应包;Based on the Internet of View protocol, the monitoring resource list is encapsulated in the form of a json character string to obtain the resource response packet;

相应地,将所述资源响应包作为所述资源请求包的响应包发送给所述视联网终端,包括:Correspondingly, sending the resource response packet as a response packet of the resource request packet to the Internet-of-Video terminal includes:

将所述资源响应包作为所述资源请求包的响应包透传给所述视联网终端;Transmitting the resource response packet as a response packet of the resource request packet to the Internet-of-Video terminal;

在透传失败时,再次将所述资源响应包透传给所述视联网终端,直至透传成功。When the transparent transmission fails, the resource response packet is transparently transmitted to the Internet-of-Video terminal again until the transparent transmission succeeds.

在本实施例中,监控管理服务器在获得监控资源(在本申请各个实施例中,如未特别说明,监控管理服务器中的监控资源均是以列表的形式存储的)后,基于视联网协议,按照json字符串的方式对监控资源进行封装,得到资源响应包,并通过视联网透传的方式将资源响应包透传给联网终端,且在透传失败时,再次透传,直到将资源响应包成功透传给视联网终端。In this embodiment, after the monitoring management server obtains monitoring resources (in each embodiment of the application, if not specified, the monitoring resources in the monitoring management server are all stored in the form of a list), based on the Internet of View protocol, Encapsulate the monitoring resource according to the json string, get the resource response package, and transparently transmit the resource response package to the networked terminal through the Internet of View transparent transmission method, and when the transparent transmission fails, transparently transmit it again until the resource response The packet is successfully transparently transmitted to the Internet of Vision terminal.

本申请还提供了一种资源调度方法,应用于图1中的视联网终端。图3是本申请一实施例示出的另一种资源调度方法的流程图。参照图3,本申请的资源调度方法可以包括:The present application also provides a resource scheduling method, which is applied to the Internet-of-Vision terminal in FIG. 1 . Fig. 3 is a flowchart of 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:

步骤S21:获得用户输入的资源请求参数;Step S21: Obtain resource request parameters input by the user;

步骤S22:根据所述资源请求参数确定目标监控管理服务器;Step S22: Determine the target monitoring and management server according to the resource request parameters;

步骤S23:基于视联网协议,对所述资源请求参数进行封装,获得资源请求包;Step S23: Encapsulating the resource request parameters based on the Internet of View protocol to obtain a resource request packet;

步骤S24:将所述资源请求包发送到所述目标监控管理服务器,所述目标监控管理服务器是部署于视联网中的至少一个监控管理服务器中的任意一个监控管理服务器;Step S24: Send the resource request packet to the target monitoring and management server, and the target monitoring and management server is any monitoring and management server among at least one monitoring and management server deployed in the Internet of Vision;

步骤S25:接收所述目标监控管理服务器返回的针对所述资源请求包的资源响应包。Step S25: Receive a resource response packet for the resource request packet returned by the target monitoring and management server.

在本申请实施例中,视联网终端主要用于展示监控资源,当然,也可以用于接收用户输入的资源请求参数。例如:用户可以在视联网终端上输入当前请求分页数、资源数量、监控管理服务器的入网号码(当自身存储了多个监控管理服务器的入网号码时,可以选择输入的监控管理服务器的入网号码)等。In the embodiment of the present application, the Internet-of-Vision terminal is mainly used to display monitoring resources, and of course, can also be used to receive resource request parameters input by users. For example: the user can input the number of currently requested pages, the number of resources, and the network access number of the monitoring management server on the Internet-of-view terminal (when the network access number of multiple monitoring management servers is stored by itself, the input number of the monitoring management server can be selected )Wait.

根据资源请求参数确定目标监控管理服务器,主要是指:根据监控管理服务器的入网号码确定目标监控管理服务器。在本实施例中,用户不必输入所有的资源请求参数,当视联网终端只存储了一个监控管理服务器的入网号码和分配的用户ID时,用户只需输入当前请求分页数、资源数量即可,视联网终端自动根据存储的监控管理服务器的入网号码、分配的用户ID、输入当前请求分页数、资源数量以及终端号码等,封装得到资源请求包;当视联网终端只存储多个监控管理服务器的入网号码和分配的用户ID时,用户只需输入目标监控管理服务器的入网号码、当前请求分页数、资源数量,视联网终端根据存储的目标监控管理服务器的入网号码、分配的用户ID、输入当前请求分页数、资源数量以及终端号码等,封装得到资源请求包,将该资源请求包发送给监控管理服务器,并接收返回的资源响应包。Determining the target monitoring and management server according to the resource request parameters mainly refers to: determining the target monitoring and management server according to the network access number of the monitoring and management server. In this embodiment, the user does not have to input all resource request parameters. When the Internet-of-Vision terminal only stores the network access number of a monitoring and management server and the assigned user ID, the user only needs to input the number of currently requested pages and the number of resources. , the video network terminal automatically encapsulates the resource request package according to the stored network access number of the monitoring management server, the assigned user ID, the number of pages currently requested, the number of resources, and the terminal number; when the video network terminal only stores multiple monitoring management For the network access number of the server and the assigned user ID, the user only needs to enter the network access number of the target monitoring and management server, the number of pages currently requested, and the number of resources, and the networked terminal will monitor and manage the server according to the stored network access number and assigned user ID. 1. Input the current request page number, resource quantity and terminal number, etc., encapsulate the resource request packet, send the resource request packet to the monitoring and management server, and receive the returned resource response packet.

结合以上实施例,在一种实施方式中,在接收所述监控管理服务器返回的针对所述资源请求包的资源响应包后,还可以执行以下步骤:In combination with the above embodiments, in one implementation manner, after receiving the resource response packet for the resource request packet returned by the monitoring and management server, the following steps may also be performed:

基于视联网协议,对所述资源响应包进行解析,获得监控资源列表;Analyzing the resource response packet based on the Internet of View protocol to obtain a list of monitoring resources;

显示所述监控资源列表;displaying the list of monitoring resources;

接收遥控终端发送的点播目标监控资源的请求,所述目标监控资源是用户在所述监控资源列表中确定的任意监控资源;receiving a request for on-demand target monitoring resources sent by the remote control terminal, where the target monitoring resources are any monitoring resources determined by the user in the monitoring resource list;

将所述请求发送到视联网监控接入服务器;Send the request to the Internet of View monitoring access server;

接收所述视联网监控接入服务器返回的目标监控资源;receiving the target monitoring resource returned by the Internet of View monitoring access server;

播放所述目标监控资源。Play 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 on the terminal interface for users to view.

在本实施例中,视联网终端还有配套设置的遥控终端。用户在通过遥控终端输入操作指令,例如:通过遥控终端在终端界面展示的监控资源列表中选择目标监控资源,遥控终端根据用户的操作生成点播目标监控资源的请求,发送给视联网终端,视联网终端将该请求发送给视联网监控接入服务器,视联网监控接入服务器存存储的海量的监控资源中获取到目标监控资源,将目标监控资源发送给视联网终端,视联网终端在终端界面中播放目标监控资源,以满足用户的观看需求。In this embodiment, the video network terminal also has a matching remote control terminal. The user inputs operation instructions through the remote control terminal, for example: select the target monitoring resource in the monitoring resource list displayed on the terminal interface through the remote control terminal, and the remote control terminal generates a request for on-demand target monitoring resource according to the user's operation, and sends it to the Internet of View terminal, and the Internet of View The terminal sends the request to the Internet of View monitoring access server, and the Internet of View monitoring access server obtains the target monitoring resources from the massive monitoring resources stored in the Internet of Viewing server, and sends the target monitoring resources to the Internet of Viewing terminal, and the Internet of Viewing terminal is displayed in the terminal interface Play target monitoring resources to meet the viewing needs of users.

图4是本申请一实施例示出的资源调度方法的原理图。在使用本申请的资源调度方法时,视联网监控管理平台(即:视联网监控管理系统)首先在自身完成对视联网终端的配置,为各个视联网终端绑定资源权限(设置资源权限的步骤具体可参照前文所述);在完成配置后,当视联网终端向视联网监控管理平台请求监控信息的时候,视联网监控管理平台按照视联网协议将获得的监控信息透传给视联网终端,视联网终端将监控信息显示在终端界面中,根据用户的选择确定待播放的监控,然后向视联网监控接入服务器发送视频流调度请求,视联网监控接入服务器响应该请求,向视联网终端返回待播放的监控的监控视频流。Fig. 4 is a schematic diagram of a resource scheduling method according to an embodiment of the present application. When using the resource scheduling method of the present application, the Internet-of-Vision monitoring and management platform (ie: the Internet-of-Vision monitoring and management system) first completes the configuration of the Internet-of-Vision terminals by itself, and binds resource permissions for each Internet-of-Vision terminal (the step of setting resource permissions For details, please refer to the previous description); after the configuration is completed, when the Internet of Vision terminal requests monitoring information from the Internet of Vision monitoring and management platform, the Internet of Vision monitoring and management platform will transparently transmit the obtained monitoring information to the Internet of Vision terminal according to the Internet of Vision protocol, The video network terminal displays the monitoring information on the terminal interface, determines the monitoring to be played according to the user's choice, and then sends a video stream scheduling request to the video network monitoring access server, and the video network monitoring access server responds to the request and sends a video stream to the video network terminal Returns the surveillance video stream to be played.

在上述过程中,视联网监控管理平台与视联网终端的交互使用的视联网协议包括:6101协议和6102协议。下面将结合图1对本申请的资源调度方法进行整体说明。In the above process, the Internet of Vision protocols used interactively between the Internet of Vision monitoring and management platform and the Internet of Vision terminals include: 6101 protocol and 6102 protocol. The resource scheduling method of the present application will be described as a whole below with reference to FIG. 1 .

在图4中,视联网监控管理系统(部署于图1中的监控管理服务器)在自身配置有视联网终端A、视联网终端B以及视联网终端C,可以通过视联网协议向各个视联网终端发送监控信息,视联网监控接入服务器分别与视联网监控管理系统和各个视联网终端通信连接,用于向视联网监控管理系统发送监控信息(例如:监控名称、监控ID、组织机构、在线状态以及巡检故障等信息),以及向各个视联网终端发送监控视频流。In Figure 4, the Internet of Vision monitoring and management system (the monitoring and management server deployed in Figure 1) is equipped with an Internet of Vision terminal A, an Internet of Vision terminal B, and an Internet of Vision terminal C, and can communicate with each of the Internet of Vision terminals through the Internet of Vision protocol. To send monitoring information, the Internet-of-Vision monitoring access server communicates with the Internet-of-Vision monitoring management system and each Internet-of-Vision terminal for sending monitoring information (for example: monitoring name, monitoring ID, organization, online status) to the Internet-of-Vision monitoring and management system and information such as inspection faults), and send monitoring video streams to each Internet-of-Vision terminal.

假设视联网终端A需要向视联网监控管理系统请求监控资源,首先向视联网监控管理系统发起当前是否可以请求监控资源的指令,视联网监控管理系统解析该指令后,可根据如下表1所示的协议生成透传指令序列,返回给视联网终端,以告知终端当前可以请求监控资源。Assuming that the Internet-of-Vision terminal A needs to request monitoring resources from the Internet-of-Vision monitoring and management system, it first sends an instruction to the Internet-of-Vision monitoring and management system whether it can currently request monitoring resources. The protocol generates a transparent transmission command sequence and returns it to the Internet of Vision terminal to inform the terminal that it can request monitoring resources at present.

Figure GDA0003853821690000121
Figure GDA0003853821690000121

表1Table 1

视联网终端收到该透传指令序列后,可根据如下表2所示的协议生成应答指令,返回给视联网监控管理系统,以告知视联网监控管理系统已准备好请求监控资源。After receiving the transparent transmission instruction sequence, the Internet of Vision terminal can generate a response command according to the protocol shown in Table 2 below, and return it to the Internet of Vision monitoring and management system to inform the Internet of Vision monitoring and management system that it is ready to request monitoring resources.

Figure GDA0003853821690000122
Figure GDA0003853821690000122

表2Table 2

之后,视联网终端可根据如下表3所示的协议生成请求监控资源列表的指令(指令中需包含:用户ID、当前请求页、资源数量等)。Afterwards, the Internet-of-Video terminal can generate an instruction requesting a monitoring resource list according to the protocol shown in Table 3 below (the instruction must include: user ID, current requested page, resource quantity, etc.).

Figure GDA0003853821690000123
Figure GDA0003853821690000123

表3table 3

Figure GDA0003853821690000124
Figure GDA0003853821690000124

Figure GDA0003853821690000131
Figure GDA0003853821690000131

表4Table 4

视联网监控管理系统接收到该指令后,获得监控资源,可根据如表4所示的协议生成下发监控资源列表的指令(指令中需包含:总包数、当前包序号、当前包长度、json格式的监控资源列表数据等),将监控资源下发给视联网终端。After receiving the instruction, the Internet-of-Vision monitoring and management system obtains the monitoring resources, and can generate an instruction for issuing a list of monitoring resources according to the protocol shown in Table 4 (the instruction must include: total number of packets, current packet number, current packet length, json format monitoring resource list data, etc.), and send the monitoring resources to the Internet of Things terminal.

视联网终端接收到监控资源后,根据如下表5所示的协议生成确认接收指令,告知视联网监控管理系统成功接收监控资源。After receiving the monitoring resource, the Internet-of-Vision terminal generates an acknowledgment instruction according to the protocol shown in Table 5 below, and informs the Internet-of-Vision monitoring and management system that the monitoring resource has been successfully received.

Figure GDA0003853821690000132
Figure GDA0003853821690000132

表5table 5

在上述过程中,视联网监控管理系统接收到视联网终端发送的应答指令后,建立与视联网终端之间的数据传输通道,之后,根据视联网终端发送的请求监控资源列表的指令向视联网终端下发监控资源,监控资源可以包括:监控状态(0表示离线,1表示在线)、监控来源(0表示视联网接入,1表示表示公安推送)、监控接入服务器号码、监控接入服务器上的监控通道号、监控ID、监控名称等。具体地:视联网监控管理系统根据协议可负载的数据长度(例如:当前可负载的数据长度为1024字节)切分要发送的监控资源;In the above process, after receiving the response instruction sent by the Internet of Vision terminal, the Internet of Vision monitoring and management system establishes a data transmission channel with the Internet of The terminal sends monitoring resources, and the monitoring resources can include: monitoring status (0 means offline, 1 means online), monitoring source (0 means video network access, 1 means public security push), monitoring access server number, monitoring access server The monitoring channel number, monitoring ID, monitoring name, etc. on the Specifically: according to the data length that can be loaded by the protocol (for example: the current data length that can be loaded is 1024 bytes), the monitoring and management system of the Internet of View divides the monitoring resources to be sent;

首先按50个数据包为单位发送第一组数据,发送完毕后等待视联网终端返回的包确认指令;收到包确认指令后,根据包确认指令判断是否存在需要重传的包,如果不存在,则继续下一组数据的发送,如果存在,则继续对需要重传的包进行发送,发送完毕后,进入新一轮等待包确认指令的过程;如果在500毫秒内未收到包确认指令,再重发两次当组数据中的最后一个数据包并每次等待500毫秒,如果三次等待超时则直接退出发送并向视联网终端返回发送失败错误的指令,重复上述过程,直到所有的数据发送完毕。First send the first set of data in units of 50 data packets, and wait for the packet confirmation instruction returned by the Internet-connected terminal after sending; after receiving the packet confirmation instruction, judge whether there is a packet that needs to be retransmitted according to the packet confirmation instruction, if not , then continue to send the next set of data. If it exists, continue to send the packet that needs to be retransmitted. After sending, enter a new round of waiting for the packet confirmation instruction; if the packet confirmation instruction is not received within 500 milliseconds , and then resend the last data packet in the group data twice and wait for 500 milliseconds each time. If the three times of waiting time out, it will directly exit the sending and return a sending failure error command to the Internet of Things terminal. Repeat the above process until all the data Sent.

同时,在上述过程中,视联网终端在接收到第一个数据包后,通过第一个数据包,可以获取到监控资源列表的数据总长度和总包数等;视联网终端之后接收到数据包中,第一个字节表示包序号,第二个字节表示当前包的有效数据,第二个字节后为有效数据。视联网终端按页展示监控资源,用户每一次查看新的一页时,会向视联网监控管理系统发送一次资源请求包,具体过程可参照前文所述,在此不作赘述。At the same time, in the above process, after receiving the first data packet, the Internet-based video terminal can obtain the total data length and the total number of packets of the monitoring resource list through the first data packet; after the Internet-based video terminal receives the data In the package, the first byte indicates the package number, the second byte indicates the valid data of the current package, and the valid data after the second byte. The Internet of Vision terminal displays monitoring resources page by page. Every time a user views a new page, a resource request packet will be sent to the Internet of Vision monitoring and management system. The specific process can be referred to above, and will not be repeated here.

视联网终端在展示监控资源列表后,用户可以通过遥控器向视联网终端发送点播监控资源的请求,具体地,遥控器可按如下表6所示的协议生成点播监控资源的请求。After the Internet-of-Vision terminal displays the list of monitoring resources, the user can send a request for on-demand monitoring resources to the Internet-of-Vision terminal through the remote control. Specifically, the remote control can generate a request for on-demand monitoring resources according to the protocol shown in Table 6 below.

Figure GDA0003853821690000141
Figure GDA0003853821690000141

表6Table 6

视联网终端在接收到点播监控资源的请求后,可按如下表7所示的协议生成点播监控资源的请求的响应。After receiving the request for on-demand monitoring resources, the video-networking 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 GDA0003853821690000142

Figure GDA0003853821690000151
Figure GDA0003853821690000151

表7Table 7

Figure GDA0003853821690000152
Figure GDA0003853821690000152

表8Table 8

用户在播放监控资源后,可以通过遥控器向视联网终端发送关闭视频请求,具体地,遥控器可按如表8所示的协议生成关闭视频请求。After playing the monitoring resource, the user can send a request to close the video to the Internet-of-Vision terminal through the remote control. Specifically, the remote control can generate a video close request according to the protocol shown in Table 8.

视联网终端接收到遥控器向发送关闭视频请求后,可以按如下表9所示的协议生成关闭视频请求的响应。After receiving the video off request sent by the remote controller, the Internet-of-TV terminal may generate a response to the video off request according to the protocol shown in Table 9 below.

Figure GDA0003853821690000153
Figure GDA0003853821690000153

表9Table 9

Figure GDA0003853821690000154
Figure GDA0003853821690000154

Figure GDA0003853821690000161
Figure GDA0003853821690000161

表10Table 10

视联网终端向视联网监控接入服务器请求监控视频流时,可以按如表10所示的协议生成监控视频流获取请求。When the Internet-of-Vision terminal requests a monitoring video stream from the Internet-of-Vision monitoring access server, it may generate a monitoring video stream acquisition request according to the protocol shown in Table 10.

视联网监控接入服务器接收到视联网终端发送的监控视频流获取请求时,可以按如下表11所示的协议生成监控视频流获取请求的响应。When the video network monitoring access server receives the monitoring video stream acquisition request sent by the video network terminal, it can generate a response to the monitoring video stream acquisition request according to the protocol shown in Table 11 below.

视联网终端如需结束向视联网监控接入服务器请求监控视频流,可以按如表12所示的协议生成结束监控视频流获取请求。If the Internet-of-Vision terminal needs to finish requesting the monitoring video stream from the Internet-of-Vision monitoring access server, it can generate a monitoring video stream acquisition request to end according to the protocol shown in Table 12.

视联网监控接入服务器接收到视联网终端发送的结束监控视频流获取请求后,可以按如下表13所示的协议生成结束监控视频流获取请求的响应。After receiving the end monitoring video stream acquisition request sent by the Internet of Vision terminal, the Internet of View monitoring access server may generate a response to the end monitoring video stream acquisition request according to the protocol shown in Table 13 below.

Figure GDA0003853821690000162
Figure GDA0003853821690000162

表11Table 11

Figure GDA0003853821690000163
Figure GDA0003853821690000163

Figure GDA0003853821690000171
Figure GDA0003853821690000171

表12Table 12

本申请还提供了一种监控管理服务器500,如图5所示。图5是本申请一实施例示出的一种监控管理服务器的的结构框图。参照图5,监控管理服务器500包括:The present application also provides a monitoring and management server 500, as shown in FIG. 5 . Fig. 5 is a structural block diagram of a monitoring and management server shown in an embodiment of the present application. Referring to Fig. 5, the monitoring management server 500 includes:

第一接收模块501,用于接收视联网终端发送的资源请求包,所述视联网终端为所述监控管理服务器中已配置的所有视联网终端中的任意一个视联网终端;The first receiving module 501 is configured to receive a resource request packet sent by an Internet-of-Vision terminal, where the Internet-of-Vision terminal is any one of all Internet-of-Vision terminals configured in the monitoring and management server;

第一解析模块502,用于基于视联网协议,对所述资源请求包进行解析,获得资源请求参数;The first parsing module 502 is configured to parse the resource request packet based on the Internet of Vision protocol to obtain resource request parameters;

第一获得模块503,用于根据所述资源请求参数,获得监控资源列表;The first obtaining module 503 is configured to obtain a monitoring resource list according to the resource request parameter;

第一封装模块504,用于基于视联网协议,对所述监控资源列表进行封The first encapsulation module 504 is configured to encapsulate the monitoring resource list based on the Internet of Vision protocol

Figure GDA0003853821690000172
Figure GDA0003853821690000172

表13Table 13

装,获得资源响应包;Install to obtain the resource response package;

第一发送模块505,用于将所述资源响应包作为所述资源请求包的响应包发送给所述视联网终端。The first sending module 505 is configured to send the resource response packet as a response packet of the resource request packet to the Internet of Vision terminal.

可选地,所述监控管理服务器500还包括:Optionally, the monitoring and management server 500 also includes:

存储模块,用于获得至少一个视联网终端的终端号码,对所述终端号码进行存储;A storage module, configured to obtain a terminal number of at least one Internet-of-Vision terminal, and store the terminal number;

分配模块,用于针对每一个所述终端号码,分配用户ID,所述用户ID在视联网中绑定有至少一个监控设备;An allocation module, configured to allocate a user ID for each of the terminal numbers, and the user ID is bound to at least one monitoring device in the Internet of Vision;

第二发送模块,用于向每一个所述视联网终端发送监控管理服务器的入网号码,和为所述视联网终端分配的用户ID,以使所述视联网终端存储所述监控管理服务器的入网号码和所述用户ID,并在需要向所述监控管理服务器请求监控资源时,根据所述入网号码和所述用户ID生成所述资源请求包,所述监控管理服务器的入网号码用于唯一标识所述监控管理服务器;The second sending module is used to send the network access number of the monitoring and management server to each of the video networking terminals, and the user ID allocated for the video networking terminal, so that the video networking terminal stores the network access of the monitoring and management server number and the user ID, and when it is necessary to request monitoring resources from the monitoring management server, generate the resource request packet according to the network access number and the user ID, and the network access number of the monitoring management server is used for unique identification The monitoring and management server;

所述第一解析模块502包括:The first parsing module 502 includes:

第一解析子模块,用于对所述资源请求包进行解析,获得所述监控管理服务器的入网号码和所述用户ID;The first parsing submodule is configured to parse the resource request packet to obtain the network access number of the monitoring and management server and the user ID;

所述第一获得模块503包括:The first obtaining module 503 includes:

第一获得子模块,用于在所述监控管理服务器的入网号码和自身的入网号码相同时,根据所述用户ID获得所述监控资源列表。The first obtaining sub-module is configured to obtain the monitoring resource list according to the user ID when the network access number of the monitoring management server is the same as its own network access number.

可选地,所述监控管理服务器500还包括:Optionally, the monitoring and management server 500 also includes:

设置模块,用于为每一个所述终端号码对应的用户ID设置资源权限,所述资源权限为所述视联网终端在所述用户ID下请求监控资源的权限;A setting module, configured to set a resource authority for each user ID corresponding to the terminal number, and the resource authority is the authority of the Internet-of-Vision terminal to request monitoring resources under the user ID;

所述第一获得子模块包括:The first obtaining submodule includes:

权限获取模块,用于获得所述用户ID的资源权限;a permission acquisition module, configured to obtain the resource permission of the user ID;

第一资源获取模块,用于根据所述资源权限获得所述监控资源列表。A first resource obtaining module, configured to obtain the monitored resource list according to the resource authority.

可选地,所述资源请求参数包括:当前请求分页数、资源数量;Optionally, the resource request parameters include: the number of currently requested pages and the number of resources;

所述第一获得模块503包括:The first obtaining module 503 includes:

第一确定模块,用于根据所述当前请求分页数,确定已请求分页数及对应的已发送监控资源;A first determining module, configured to determine the number of requested pages and the corresponding sent monitoring resources according to the number of currently requested pages;

第二确定模块,用于根据所述已发送监控资源确定未发送监控资源;A second determining module, configured to determine unsent monitoring resources according to the sent monitoring resources;

第二资源获取模块,用于从未发送监控资源中获取符合所述资源数量的监控资源,作为所述当前请求分页数对应的监控资源列表。The second resource acquisition module is configured to acquire monitoring resources that meet the number of resources from unsent monitoring resources as a list of monitoring resources corresponding to the number of currently requested pages.

可选地,所述第一封装模块504包括:Optionally, the first packaging module 504 includes:

第一封装子模块,用于基于视联网协议,对所述监控资源列表按照json字符串的方式进行封装,获得所述资源响应包;The first encapsulation submodule is used for encapsulating the monitoring resource list in the form of a json character string based on the Internet of Vision protocol to obtain the resource response packet;

所述第一发送模块505包括:The first sending module 505 includes:

第一发送子模块,用于将所述资源响应包作为所述资源请求包的响应包透传给所述视联网终端;以及,在透传失败时,再次将所述资源响应包透传给所述视联网终端,直至透传成功。The first sending submodule is configured to transparently transmit the resource response packet as a response packet of the resource request packet to the Internet-of-Video terminal; and, when the transparent transmission fails, transparently transmit the resource response packet again The said network terminal is viewed until the transparent transmission is successful.

本申请还提供了一种视联网终端600,如图6所示。图6是本申请一实施例示出的一种视联网终端的结构框图。参照图6,视联网终端600包括:The present application also provides a video network terminal 600, as shown in FIG. 6 . Fig. 6 is a structural block diagram of a video network terminal shown in an embodiment of the present application. Referring to Figure 6, the Internet of Things terminal 600 includes:

第二获得模块601,用于获得用户输入的资源请求参数;The second obtaining module 601 is configured to obtain resource request parameters input by the user;

第三确定模块602,用于根据所述资源请求参数确定目标监控管理服务器;A third determining module 602, configured to determine a target monitoring and management server according to the resource request parameter;

第二封装模块603,用于基于视联网协议,对所述资源请求参数进行封装,获得资源请求包;The second encapsulation module 603 is configured to encapsulate the resource request parameters based on the Internet of Vision protocol to obtain a resource request packet;

第三发送模块604,用于将所述资源请求包发送到所述目标监控管理服务器,所述目标监控管理服务器是部署于视联网中的至少一个监控管理服务器中的任意一个监控管理服务器;The third sending module 604 is configured to send the resource request packet to the target monitoring and management server, and the target monitoring and management server is any one of at least one monitoring and management server deployed in the Internet of Vision;

第二接收模块605,用于接收所述目标监控管理服务器返回的针对所述资源请求包的资源响应包。The second receiving module 605 is configured to receive a resource response packet for the resource request packet returned by the target monitoring and management server.

可选地,所述视联网终端600包括:Optionally, the Internet of Things terminal 600 includes:

第二解析模块,用于基于视联网协议,对所述资源响应包进行解析,获得监控资源列表;The second parsing module is configured to parse the resource response packet based on the Internet of View protocol to obtain a list of monitoring resources;

显示模块,用于显示所述监控资源列表;a display module, configured to display the list of monitoring resources;

第三接收模块,用于接收遥控终端发送的点播目标监控资源的请求,所述目标监控资源是用户在所述监控资源列表中确定的任意监控资源;The third receiving module is configured to receive a request for on-demand target monitoring resources sent by the remote control terminal, and the target monitoring resources are any monitoring resources determined by the user in the monitoring resource list;

第四发送模块,用于将所述请求发送到视联网监控接入服务器;The fourth sending module is used to send the request to the Internet of Vision monitoring access server;

第四接收模块,用于接收所述视联网监控接入服务器返回的目标监控资源;The fourth receiving module is used to receive the target monitoring resources returned by the Internet-of-Vision monitoring access server;

播放模块,用于播放所述目标监控资源。The playing module is used to play the target monitoring resource.

基于同一发明构思,本申请另一实施例提供一种电子设备700,如图7所示。图7是本申请一实施例示出的一种电子设备的示意图。该电子设备包括存储器702、处理器701及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现本申请上述任一实施例所述的方法中的步骤。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 includes a memory 702, a processor 701, and a computer program stored in the memory and operable on the processor. The processor implements the steps in the method described in any of the above embodiments of the present application when executed.

基于同一发明构思,本申请另一实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请上述任一实施例所述的方法中的步骤。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, and when the program is executed by a processor, the steps in the method described in any of the above-mentioned embodiments of the present application are implemented. .

本申请提供的视联网业务恢复方法应用于视联网中,下面将对视联网技术进行简单介绍:The Internet of Vision service recovery method provided by this application is applied to the Internet of Vision. The following will briefly introduce the Internet of Vision technology:

视联网是网络发展的重要里程碑,是一个实时网络,能够实现高清视频实时传输,将众多互联网应用推向高清视频化,高清面对面。The Internet of Vision is an important milestone in the development of the network. It is a real-time network that can realize real-time transmission of high-definition video, and push many Internet applications to high-definition video, high-definition face-to-face.

视联网采用实时高清视频交换技术,可以在一个网络平台上将所需的服务,如高清视频会议、视频监控、智能化监控分析、应急指挥、数字广播电视、延时电视、网络教学、现场直播、VOD点播、电视邮件、个性录制(PVR)、内网(自办)频道、智能化视频播控、信息发布等数十种视频、语音、图片、文字、通讯、数据等服务全部整合在一个系统平台,通过电视或电脑实现高清品质视频播放。The Internet of View adopts real-time high-definition video exchange technology, which can provide required services on one network platform, such as high-definition video conferencing, video surveillance, intelligent monitoring and analysis, emergency command, digital broadcast TV, time-lapse TV, online teaching, live broadcast , VOD on demand, TV mail, personalized recording (PVR), intranet (self-managed) channel, intelligent video broadcast control, information release and other dozens of video, voice, picture, text, communication, data and other services are all integrated in one System platform, realize high-definition quality video playback through TV or computer.

为使本领域技术人员更好地理解本发明实施例,以下对视联网进行介绍:In order to enable those skilled in the art to better understand the embodiments of the present invention, the Internet of Things is introduced as follows:

视联网所应用的部分技术如下所述:Some of the technologies applied in the Internet of Things are as follows:

网络技术(Network Technology)Network Technology

视联网的网络技术创新改良了传统以太网(Ethernet),以面对网络上潜在的巨大视频流量。不同于单纯的网络分组包交换(Packet Switching)或网络电路交换(CircuitSwitching),视联网技术采用Packet Switching满足Streaming需求。视联网技术具备分组交换的灵活、简单和低价,同时具备电路交换的品质和安全保证,实现了全网交换式虚拟电路,以及数据格式的无缝连接。The network technology innovation of the Internet of View has improved the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Different from pure network packet switching (Packet Switching) or network circuit switching (Circuit Switching), video networking technology uses Packet Switching to meet Streaming requirements. The Internet of Vision technology has the flexibility, simplicity and low price of packet switching, and at the same time has the quality and security guarantee of circuit switching, realizing the seamless connection of switched virtual circuits and data formats throughout the network.

交换技术(Switching Technology)Switching Technology

视联网采用以太网的异步和包交换两个优点,在全兼容的前提下消除了以太网缺陷,具备全网端到端无缝连接,直通用户终端,直接承载IP数据包。用户数据在全网范围内不需任何格式转换。视联网是以太网的更高级形态,是一个实时交换平台,能够实现目前互联网无法实现的全网大规模高清视频实时传输,将众多网络视频应用推向高清化、统一化。Video networking adopts the two advantages of Ethernet asynchronous and packet switching, eliminates the defects of Ethernet under the premise of full compatibility, has end-to-end seamless connection of the whole network, directly connects to user terminals, and directly carries IP data packets. User data does not require any format conversion within the entire network. Video networking is a more advanced form of Ethernet. It is a real-time switching platform, which can realize the real-time transmission of large-scale high-definition video in the whole network that cannot be realized by the Internet at present, and push many network video applications to high-definition and unification.

服务器技术(Server Technology)Server Technology

视联网和统一视频平台上的服务器技术不同于传统意义上的服务器,它的流媒体传输是建立在面向连接的基础上,其数据处理能力与流量、通讯时间无关,单个网络层就能够包含信令及数据传输。对于语音和视频业务来说,视联网和统一视频平台流媒体处理的复杂度比数据处理简单许多,效率比传统服务器大大提高了百倍以上。The server technology on the Internet of View and unified video platform is different from the server in the traditional sense. Its streaming media transmission is based on connection-oriented, and its data processing capability has nothing to do with traffic and communication time. A single network layer can contain information command and data transmission. For voice and video services, the complexity of video streaming and unified video platform streaming media processing is much simpler than data processing, and the efficiency is greatly improved by more than 100 times compared with traditional servers.

储存器技术(Storage Technology)Storage Technology

统一视频平台的超高速储存器技术为了适应超大容量和超大流量的媒体内容而采用了最先进的实时操作系统,将服务器指令中的节目信息映射到具体的硬盘空间,媒体内容不再经过服务器,瞬间直接送达到用户终端,用户等待一般时间小于0.2秒。最优化的扇区分布大大减少了硬盘磁头寻道的机械运动,资源消耗仅占同等级IP互联网的20%,但产生大于传统硬盘阵列3倍的并发流量,综合效率提升10倍以上。The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the super-large capacity and super-large-flow media content, and maps the program information in the server command to the specific hard disk space, and the media content no longer passes through the server. It is delivered directly to the user terminal in an instant, and the user generally waits for less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking. The resource consumption is only 20% of the IP Internet of the same level, but the concurrent traffic generated is 3 times larger than that of the traditional hard disk array, and the overall efficiency is increased by more than 10 times.

网络安全技术(Network Security Technology)Network Security Technology

视联网的结构性设计通过每次服务单独许可制、设备与用户数据完全隔离等方式从结构上彻底根除了困扰互联网的网络安全问题,一般不需要杀毒程序、防火墙,杜绝了黑客与病毒的攻击,为用户提供结构性的无忧安全网络。The structural design of the Internet of View completely eradicates the network security problems that plague the Internet through the individual licensing system for each service, complete isolation of equipment and user data, and generally does not require anti-virus programs and firewalls, preventing hackers and virus attacks , to provide users with a structured worry-free security network.

服务创新技术(Service Innovation Technology)Service Innovation Technology

统一视频平台将业务与传输融合在一起,不论是单个用户、私网用户还是一个网络的总合,都不过是一次自动连接。用户终端、机顶盒或PC直接连到统一视频平台,获得丰富多彩的各种形态的多媒体视频服务。统一视频平台采用“菜谱式”配表模式来替代传统的复杂应用编程,可以使用非常少的代码即可实现复杂的应用,实现“无限量”的新业务创新。The unified video platform integrates business and transmission together, whether it is a single user, a private network user or the sum of a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain rich and colorful multimedia video services in various forms. The unified video platform adopts the "recipe-style" table matching mode to replace the traditional complex application programming. It can realize complex applications with very little code and realize "unlimited" new business innovations.

视联网的组网如下所述:The networking of the Internet of View is as follows:

视联网是一种集中控制的网络结构,该网络可以是树型网、星型网、环状网等等类型,但在此基础上网络中需要有集中控制节点来控制整个网络。Vision networking is a network structure with centralized control. The network can be a tree network, star network, ring network, etc., but on this basis, a centralized control node is required in the network to control the entire network.

图8是本申请一实施例示出的一种视联网的组网示意图。如图8所示,视联网分为接入网和城域网两部分。Fig. 8 is a schematic diagram of networking of a video network according to an embodiment of the present application. As shown in Figure 8, the Internet of Things is divided into two parts: the access network and the metropolitan area network.

接入网部分的设备主要可以分为3类:节点服务器,接入交换机,终端(包括各种机顶盒、编码板、存储器等)。节点服务器与接入交换机相连,接入交换机可以与多个终端相连,并可以连接以太网。The equipment in the access network part can be mainly divided into three categories: node server, access switch, terminal (including various set-top boxes, encoding boards, storage, etc.). The node server is connected with the access switch, and the access switch can be connected with multiple terminals and can be connected with Ethernet.

其中,节点服务器是接入网中起集中控制功能的节点,可控制接入交换机和终端。节点服务器可直接与接入交换机相连,也可以直接与终端相连。Wherein, the node server is a node with centralized control function in the access network, which can control the access switches and terminals. The node server can be directly connected to the access switch, and can also be directly connected to the terminal.

类似的,城域网部分的设备也可以分为3类:城域服务器,节点交换机,节点服务器。城域服务器与节点交换机相连,节点交换机可以与多个节点服务器相连。Similarly, the devices in the MAN part can also be divided into three categories: MAN servers, node switches, and node servers. The metro server is connected to the node switch, and the node switch can be connected to multiple node servers.

其中,节点服务器即为接入网部分的节点服务器,即节点服务器既属于接入网部分,又属于城域网部分。Wherein, the node server is the node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.

城域服务器是城域网中起集中控制功能的节点,可控制节点交换机和节点服务器。城域服务器可直接连接节点交换机,也可直接连接节点服务器。The metropolitan area server is a node with a centralized control function in the metropolitan area network, which can control node switches and node servers. The metro server can be directly connected to the node switch, or directly connected to the node server.

由此可见,整个视联网络是一种分层集中控制的网络结构,而节点服务器和城域服务器下控制的网络可以是树型、星型、环状等各种结构。It can be seen that the entire Vision Network is a layered centralized control network structure, while the network controlled by the node server and the metro server can be in various structures such as tree, star, and ring.

形象地称,接入网部分可以组成统一视频平台(虚线圈中部分),多个统一视频平台可以组成视联网;每个统一视频平台可以通过城域以及广域视联网互联互通。Vividly speaking, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a video network; each unified video platform can be interconnected through the metropolitan area and the wide area video network.

视联网设备分类Classification of Internet of Things devices

1.1本发明实施例的视联网中的设备主要可以分为3类:服务器,交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。视联网整体上可以分为城域网(或者国家网、全球网等)和接入网。1.1 The devices in the Internet of View in the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet gateways), terminals (including various set-top boxes, encoding boards, memory, etc.). As a whole, the Internet of Things can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.

1.2其中接入网部分的设备主要可以分为3类:节点服务器,接入交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。1.2 The equipment in the access network can be mainly divided into three categories: node servers, access switches (including Ethernet gateways), terminals (including various set-top boxes, encoding boards, storage, etc.).

各接入网设备的具体硬件结构为:The specific hardware structure of each access network device is as follows:

节点服务器:Node server:

图9是本申请一实施例示出的一种节点服务器的硬件结构示意图。如图9所示,主要包括网络接口模块201、交换引擎模块202、CPU模块203、磁盘阵列模块204;FIG. 9 is a schematic diagram of a hardware structure of a node server shown in an embodiment of the present application. As shown in Figure 9, it mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;

其中,网络接口模块201,CPU模块203、磁盘阵列模块204进来的包均进入交换引擎模块202;交换引擎模块202对进来的包进行查地址表205的操作,从而获得包的导向信息;并根据包的导向信息把该包存入对应的包缓存器206的队列;如果包缓存器206的队列接近满,则丢弃;交换引擎模202轮询所有包缓存器队列,如果满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。磁盘阵列模块204主要实现对硬盘的控制,包括对硬盘的初始化、读写等操作;CPU模块203主要负责与接入交换机、终端(图中未示出)之间的协议处理,对地址表205(包括下行协议包地址表、上行协议包地址表、数据包地址表)的配置,以及,对磁盘阵列模块204的配置。Wherein, network interface module 201, the bag that CPU module 203, disk array module 204 come in all enters switching engine module 202; The guide information of packet stores this packet into the queue of corresponding packet buffer 206; If the queue of packet buffer 206 is close to full, then discards; Switching engine module 202 polls all packet buffer queues, and forwards if the following conditions are met: 1) The sending buffer of the port is not full; 2) The queue packet counter is greater than zero. Disk array module 204 mainly realizes the control to hard disk, comprises operations such as the initialization of hard disk, read and write; (including downlink protocol packet address table, uplink protocol packet address table, and data packet address table), and configuration of the disk array module 204 .

接入交换机:Access switch:

图10是本申请一实施例示出的一种接入交换机的硬件结构示意图。如图10所示,主要包括网络接口模块(下行网络接口模块301、上行网络接口模块302)、交换引擎模块303和CPU模块304;Fig. 10 is a schematic diagram of a hardware structure of an access switch shown in an embodiment of the present application. As shown in Figure 10, mainly comprise network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;

其中,下行网络接口模块301进来的包(上行数据)进入包检测模块305;包检测模块305检测包的目地地址(DA)、源地址(SA)、数据包类型及包长度是否符合要求,如果符合,则分配相应的流标识符(stream-id),并进入交换引擎模块303,否则丢弃;上行网络接口模块302进来的包(下行数据)进入交换引擎模块303;CPU模块304进来的数据包进入交换引擎模块303;交换引擎模块303对进来的包进行查地址表306的操作,从而获得包的导向信息;如果进入交换引擎模块303的包是下行网络接口往上行网络接口去的,则结合流标识符(stream-id)把该包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃;如果进入交换引擎模块303的包不是下行网络接口往上行网络接口去的,则根据包的导向信息,把该数据包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃。Wherein, the packet (upstream data) that the downstream network interface module 301 comes in enters the packet detection module 305; Whether the destination address (DA), source address (SA), data packet type and packet length of the packet detection module 305 detection packet meet the requirements, if Meet, then distribute corresponding flow identifier (stream-id), and enter switching engine module 303, otherwise discard; The packet (downstream data) that upstream network interface module 302 comes in enters switching engine module 303; The data packet that CPU module 304 comes in Enter switching engine module 303; Switching engine module 303 carries out the operation of looking into address table 306 to the bag that comes in, thereby obtains the guiding information of packet; If the bag that enters switching engine module 303 is that downlink network interface goes to uplink network interface, then combines Flow identifier (stream-id) stores this packet into the queue of corresponding packet cache 307; If the queue of this packet cache 307 is close to full, then discards; If the packet that enters switching engine module 303 is not downlink network interface, goes up If the data packet is sent to the network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the direction information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.

交换引擎模块303轮询所有包缓存器队列,在本发明实施例中分两种情形:Switching engine module 303 polls all packet buffer queues, divides two kinds of situations in the embodiment of the present invention:

如果该队列是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零;3)获得码率控制模块产生的令牌;If the queue goes from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port sending buffer is not full; 2) the queue packet counter is greater than zero; 3) the token generated by the code rate control module is obtained ;

如果该队列不是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。If the queue does not go from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the sending buffer of the port is not full; 2) the packet counter of the queue is greater than zero.

码率控制模块308是由CPU模块304来配置的,在可编程的间隔内对所有下行网络接口往上行网络接口去的包缓存器队列产生令牌,用以控制上行转发的码率。The code rate control module 308 is configured by the CPU module 304 to generate tokens for all packet buffer queues going from the downlink network interface to the uplink network interface within a programmable interval to control the uplink forwarding code rate.

CPU模块304主要负责与节点服务器之间的协议处理,对地址表306的配置,以及,对码率控制模块308的配置。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 :

图11是本申请一实施例示出的一种以太网协转网关的硬件结构示意图。如图11所示,主要包括网络接口模块(下行网络接口模块401、上行网络接口模块402)、交换引擎模块403、CPU模块404、包检测模块405、码率控制模块408、地址表406、包缓存器407和MAC添加模块409、MAC删除模块410。Fig. 11 is a schematic diagram of a hardware structure of an Ethernet protocol conversion gateway shown in an embodiment of the present application. As shown in Figure 11, it mainly includes network interface modules (downlink network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, code rate control module 408, address table 406, packet Buffer 407 and MAC addition module 409 , MAC deletion module 410 .

其中,下行网络接口模块401进来的数据包进入包检测模块405;包检测模块405检测数据包的以太网MAC DA、以太网MAC SA、以太网length or frame type、视联网目地地址DA、视联网源地址SA、视联网数据包类型及包长度是否符合要求,如果符合则分配相应的流标识符(stream-id);然后,由MAC删除模块410减去MAC DA、MAC SA、length or frame type(2byte),并进入相应的接收缓存,否则丢弃;Wherein, the data packet coming in from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects the Ethernet MAC DA, Ethernet MAC SA, Ethernet length or frame type, visual networking destination address DA, visual networking Source address SA, depending on whether the network data packet type and packet length meet the requirements, if so, assign the corresponding stream identifier (stream-id); then, subtract MAC DA, MAC SA, length or frame type by the MAC deletion module 410 (2byte), and enter the corresponding receiving buffer, otherwise discard;

下行网络接口模块401检测该端口的发送缓存,如果有包则根据包的视联网目地地址DA获知对应的终端的以太网MAC DA,添加终端的以太网MAC DA、以太网协转网关的MACSA、以太网length or frame type,并发送。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 visual network destination address DA of the packet, and the Ethernet MAC DA of the terminal, the MACSA of the Ethernet protocol conversion gateway, and the MACSA of the Ethernet protocol conversion gateway are added. Ethernet length or frame type, and send.

以太网协转网关中其他模块的功能与接入交换机类似。The functions of other modules in the Ethernet protocol conversion gateway are similar to those of the access switch.

终端:terminal:

主要包括网络接口模块、业务处理模块和CPU模块;例如,机顶盒主要包括网络接口模块、视音频编解码引擎模块、CPU模块;编码板主要包括网络接口模块、视音频编码引擎模块、CPU模块;存储器主要包括网络接口模块、CPU模块和磁盘阵列模块。It mainly includes a network interface module, a business processing module and a CPU module; for example, a set-top box mainly includes a network interface module, an video and audio codec engine module, and a CPU module; an encoding board mainly includes a network interface module, an video and audio encoding engine module, and a CPU module; It mainly includes network interface module, CPU module and disk array module.

1.3城域网部分的设备主要可以分为2类:节点服务器,节点交换机,城域服务器。其中,节点交换机主要包括网络接口模块、交换引擎模块和CPU模块;城域服务器主要包括网络接口模块、交换引擎模块和CPU模块构成。1.3 The equipment of the metropolitan area network can be mainly divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes a network interface module, a switching engine module and a CPU module; the metro server mainly includes a network interface module, a switching engine module and a CPU module.

2、视联网数据包定义2. Definition of Internet of Vision data package

2.1接入网数据包定义2.1 Definition of Access Network Packet

接入网的数据包主要包括以下几部分:目的地址(DA)、源地址(SA)、保留字节、payload(PDU)、CRC。The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.

如下表所示,接入网的数据包主要包括以下几部分:As shown in the table below, the data packets of the access network mainly include the following parts:

DADA SASA ReservedReserved PayloadPayload CRCCRC

其中:in:

目的地址(DA)由8个字节(byte)组成,第一个字节表示数据包的类型(例如各种协议包、组播数据包、单播数据包等),最多有256种可能,第二字节到第六字节为城域网地址,第七、第八字节为接入网地址;The destination address (DA) consists of 8 bytes (byte), the first byte indicates the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are up to 256 possibilities, The second byte to the sixth byte is the address of the metropolitan area network, and the seventh and eighth bytes are the address of the access network;

源地址(SA)也是由8个字节(byte)组成,定义与目的地址(DA)相同;The source address (SA) is also composed of 8 bytes (byte), and the definition is the same as that of the destination address (DA);

保留字节由2个字节组成;Reserved bytes consist of 2 bytes;

payload部分根据不同的数据报的类型有不同的长度,如果是各种协议包的话是64个字节,如果是单组播数据包话是32+1024=1056个字节,当然并不仅仅限于以上2种;The payload part has different lengths according to different datagram types. If it is a variety of protocol packets, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to Above 2 types;

CRC有4个字节组成,其计算方法遵循标准的以太网CRC算法。CRC consists of 4 bytes, and its calculation method follows the standard Ethernet CRC algorithm.

2.2城域网数据包定义2.2 MAN packet definition

城域网的拓扑是图型,两个设备之间可能有2种、甚至2种以上的连接,即节点交换机和节点服务器、节点交换机和节点交换机、节点交换机和节点服务器之间都可能超过2种连接。但是,城域网设备的城域网地址却是唯一的,为了精确描述城域网设备之间的连接关系,在本发明实施例中引入参数:标签,来唯一描述一个城域网设备。The topology of the metropolitan area network is a graph. There may be two or even more than two types of connections between two devices, that is, there may be more than 2 connections between node switches and node servers, node switches and node switches, and node switches and node servers. kind of connection. However, the MAN address of the MAN device is unique. In order to accurately describe the connection relationship between MAN devices, a parameter: label is introduced in the embodiment of the present invention to uniquely describe a MAN device.

本说明书中标签的定义和MPLS(Multi-Protocol Label Switch,多协议标签交换)的标签的定义类似,假设设备A和设备B之间有两个连接,那么数据包从设备A到设备B就有2个标签,数据包从设备B到设备A也有2个标签。标签分入标签、出标签,假设数据包进入设备A的标签(入标签)是0x0000,这个数据包离开设备A时的标签(出标签)可能就变成了0x0001。城域网的入网流程是集中控制下的入网过程,也就意味着城域网的地址分配、标签分配都是由城域服务器主导的,节点交换机、节点服务器都是被动的执行而已,这一点与MPLS的标签分配是不同的,MPLS的标签分配是交换机、服务器互相协商的结果。The definition of labels in this manual is similar to the definition of labels in MPLS (Multi-Protocol Label Switch, Multi-Protocol Label Switching). Assuming that there are two connections between device A and device B, then the data packets from device A to device B have 2 labels, the packet from device B to device A also has 2 labels. The label is divided into an incoming label and an outgoing label. Assuming that the label (incoming label) of the data packet entering device A is 0x0000, the label (outgoing label) of the data packet when it leaves device A may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, which means that the address allocation and label allocation of the metropolitan area network are all dominated by the metropolitan area server, and the node switches and node servers are all passively executed. Different from MPLS label allocation, MPLS label allocation is the result of mutual negotiation between switches and servers.

如下表所示,城域网的数据包主要包括以下几部分:As shown in the table below, the data packet of the MAN mainly includes the following parts:

DADA SASA ReservedReserved 标签Label PayloadPayload CRCCRC

即目的地址(DA)、源地址(SA)、保留字节(Reserved)、标签、payload(PDU)、CRC。其中,标签的格式可以参考如下定义:标签是32bit,其中高16bit保留,只用低16bit,它的位置是在数据包的保留字节和payload之间。That is, destination address (DA), source address (SA), reserved byte (Reserved), label, payload (PDU), and CRC. Among them, the format of the label can refer to the following definition: the label is 32bit, of which the high 16bit is reserved, and only the low 16bit is used, and its position is between the reserved byte of the data packet and the payload.

基于视联网的上述特性,提出了本发明实施例的核心构思之一,遵循视联网的协议,监控管理服务器在接收到视联网终端发送的资源请求包后,基于视联网协议,对资源请求包进行解析,获得资源请求参数,并根据资源请求参数获得监控资源列表,再按照视联网协议,对监控资源列表进行封装,获得资源响应包,最后将资源响应包作为资源请求包的响应包发送给视联网终端。Based on the above-mentioned characteristics of the Internet of Vision, one of the core ideas of the embodiments of the present invention is proposed. Following the protocol of the Internet of Vision, the monitoring and management server receives the resource request packet sent by the Internet of Vision terminal. Based on the Internet of Vision protocol, the resource request packet Perform analysis to obtain the resource request parameters, and obtain the monitoring resource list according to the resource request parameters, then encapsulate the monitoring resource list according to the Internet of View protocol, obtain the resource response package, and finally send the resource response package as the response package of the resource request package to Internet-based terminal.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Accordingly, embodiments of the 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 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, etc.) having computer-usable program code embodied therein.

本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or processor of other programmable data processing terminal equipment to produce a machine such that instructions executed by the computer or processor of other programmable data processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

以上对本发明所提供的一种资源调度方法、服务器、终端、电子设备及存储介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The resource scheduling method, server, terminal, electronic equipment, and storage medium provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, The contents of this description should not be construed as limiting 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 Video distribution server and video distribution system
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 Video distribution server and video distribution system
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
CN108881815B (en) Video data transmission method and device
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109167960B (en) Method and system for processing video stream data
CN110475102A (en) A kind of monitoring data processing method and system based on view networking
CN111431966B (en) Service request processing method and device, electronic equipment and storage medium
CN110381030B (en) Method and device for processing synchronization request
CN109660816B (en) Information processing method and device
CN110502259A (en) Server version upgrade method, video network system, electronic equipment and storage medium
CN110191315A (en) A monitoring and viewing method and device based on the Internet of Things
CN111147859A (en) Video processing method and device
CN110049341B (en) Video processing method and device
CN111193767B (en) Request data sending method, device and clustered server system
CN110049280B (en) Method and device for processing monitoring data
CN109769012B (en) Web server access method and device
CN110460469A (en) A system upgrade method, device and storage medium
CN110519549A (en) A kind of conference terminal list obtaining method and system
CN110213334A (en) A kind of transmission method and device of shared file
CN110166742A (en) Video distribution method and apparatus based on view networking
CN111131781B (en) Method and device for acquiring monitoring video data and readable storage medium
CN111147795B (en) Resource scheduling method, server, terminal, electronic device, and storage medium
CN108881148B (en) Data acquisition method and device
CN111212255A (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110417792A (en) Communication method, system, gateway device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China