






技术领域technical field
发明涉及通信领域,特别是涉及巡检控制方法、装置及可读存储介质。The invention relates to the communication field, in particular to a patrol inspection control method, device and readable storage medium.
背景技术Background technique
基于视联网的监控系统可以对接入到协转服务器的监控设备进行控制,从而实现视联网终端从监控设备获取视频流并进行显示。具体的,监控系统向视联网终端发送调流指令,以指示视联网终端获取哪个协转服务器的哪个监控设备的视频流。视联网终端向协转服务器发送调流指令,从而使视联网终端可以从协转服务器获取到某个监控设备的视频流。The monitoring system based on the Internet of Vision can control the monitoring equipment connected to the co-translation server, so that the Internet of Vision terminals can obtain and display video streams from the monitoring equipment. Specifically, the monitoring system sends a stream adjustment instruction to the Internet-of-Vision terminal to instruct the Internet-of-Vision terminal to obtain the video stream of which monitoring device of which co-transfer server. The Internet of Vision terminal sends a stream adjustment command to the co-translation server, so that the Internet of Vision terminal can obtain the video stream of a monitoring device from the co-translation server.
目前,为了提高监控系统通过协转服务器获取视频流的效率,监控系统需要向协转服务器发送巡检指令,以指示协转服务器对与该协转服务器连接的各监控设备进行巡检,判断哪些监控设备是正常工作的设备,哪些监控设备是非正常工作的设备。At present, in order to improve the efficiency of the monitoring system in obtaining video streams through the co-translation server, the monitoring system needs to send inspection commands to the co-translation server to instruct the co-translation server to perform inspections on the monitoring devices connected to the co-translation server and determine which The monitoring equipment is the equipment that works normally, and which monitoring equipment is the equipment that is not working normally.
然而,由于协转服务器在收到巡检指令时,立即执行巡检业务,而此时协转服务器有可能并不适合执行巡检任务。However, since the co-conversion server immediately executes the patrol inspection service when receiving the patrol inspection instruction, the co-conversion server may not be suitable for performing the patrol inspection task at this time.
发明内容Contents of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种巡检控制方法、装置及可读存储介质。In view of the above problems, embodiments of the present invention are proposed to provide a patrol control method, device, and readable storage medium that overcome the above problems or at least partially solve the above problems.
为了解决上述问题,本发明实施例公开了一种巡检控制方法,执行于协转服务器,包括:In order to solve the above problems, the embodiment of the present invention discloses a patrol control method, which is executed on the co-transfer server, including:
接收监控服务发送的巡检业务请求,其中,所述巡检业务请求为所述监控服务接收的监控客户端发送的请求;receiving the inspection service request sent by the monitoring service, wherein the inspection service request is a request sent by the monitoring client received by the monitoring service;
响应于所述巡检业务请求,根据均衡策略,判断是否需要对目标监控设备执行巡检业务,其中,所述目标监控设备包括与所述协转服务器通信连接的各监控设备或部分监控设备;In response to the inspection service request, according to the balancing strategy, it is judged whether the inspection service needs to be performed on the target monitoring device, wherein the target monitoring device includes each monitoring device or a part of the monitoring device that is communicatively connected to the co-transfer server;
若不需要对所述目标监控设备执行巡检业务,则禁止对所述目标监控设备执行巡检业务;If it is not necessary to perform the inspection service on the target monitoring device, prohibiting the execution of the inspection service on the target monitoring device;
若需要对目标监控设备执行巡检业务,则开始对所述目标监控设备执行巡检业务。If the inspection service needs to be performed on the target monitoring device, the inspection service is started to be performed on the target monitoring device.
本发明实施例还公开了一种巡检控制装置,设置于协转服务器,包括:The embodiment of the present invention also discloses a patrol inspection control device, which is set on the co-rotation server, including:
接收模块,用于接收监控服务发送的巡检业务请求,其中,所述巡检业务请求为所述监控服务接收的监控客户端发送的请求;The receiving module is configured to receive the inspection service request sent by the monitoring service, wherein the inspection service request is a request sent by the monitoring client received by the monitoring service;
判断模块,用于响应于所述巡检业务请求,根据均衡策略,判断是否需要对目标监控设备执行巡检业务,其中,所述目标监控设备包括与所述协转服务器通信连接的各监控设备或部分监控设备;A judging module, configured to, in response to the inspection service request, judge whether it is necessary to execute the inspection service on the target monitoring device according to the balancing strategy, wherein the target monitoring device includes each monitoring device that is communicatively connected to the co-conversion server or part of the monitoring equipment;
禁止模块,用于若不需要对所述目标监控设备执行巡检业务,则禁止对所述目标监控设备执行巡检业务;A prohibition module, configured to prohibit the execution of the inspection service on the target monitoring device if it is not necessary to perform the inspection service on the target monitoring device;
执行模块,用于若需要对目标监控设备执行巡检业务,则开始对所述目标监控设备执行巡检业务。The execution module is configured to start executing the inspection service on the target monitoring device if the inspection service needs to be executed on the target monitoring device.
本发明实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上述所述的巡检控制方法的步骤。The embodiment of the present invention also discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned inspection control method are realized.
本发明实施例还公开了一种巡检控制装置,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述所述的巡检控制方法的步骤。The embodiment of the present invention also discloses a patrol control device, which includes a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, The steps of the aforementioned inspection control method are realized.
本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:
本发明实施中,通过根据均衡策略,判断是否需要对目标监控设备执行巡检业务,在不需要对目标监控设备执行巡检业务,则禁止对目标监控设备执行巡检业务,若需要对目标监控设备执行巡检业务,才开始对目标监控设备执行巡检业务,可以避免在不必对目标监控设备执行巡检业务的情况下,仍旧对目标监控设备执行巡检的情况发生,从而对协转服务器造成额外的负担,加重协转服务器的负载的问题,因此本发明实施例可实现在适合协转服务器执行巡检业务时,协转服务器才执行巡检业务,从而可以在一定程度上降低协转服务器的负载。。In the implementation of the present invention, according to the balance strategy, it is judged whether the inspection service needs to be performed on the target monitoring equipment. The inspection service of the target monitoring device can be performed only after the equipment performs the inspection service, which can avoid the situation that the inspection service is still performed on the target monitoring device without performing the inspection service on the target monitoring device, so that the co-transfer server Causes additional burden and aggravates the problem of the load of the co-translation server. Therefore, the embodiment of the present invention can realize that the co-translation server only performs the patrol inspection service when it is suitable for the co-translation server to perform the patrol service, thereby reducing the co-translation service to a certain extent. Server load. .
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1是本发明实施例提供的一种巡检控制方法的步骤流程图;FIG. 1 is a flow chart of steps of a method of patrolling control provided by an embodiment of the present invention;
图2为本发明实施例提供的一种巡检控制方法的系统架构图;FIG. 2 is a system architecture diagram of a patrol control method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种巡检控制装置的结构示意图;FIG. 3 is a schematic structural diagram of a patrol control device provided by an embodiment of the present invention;
图4是本发明的一种视联网的组网示意图;Fig. 4 is a schematic diagram of networking of the present invention;
图5是本发明的一种节点服务器的硬件结构示意图;Fig. 5 is a schematic diagram of the hardware structure of a node server of the present invention;
图6是本发明的一种接入交换机的硬件结构示意图;Fig. 6 is a schematic diagram of the hardware structure of an access switch of the present invention;
图7是本发明的一种以太网协转网关的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an Ethernet protocol conversion gateway according to the present invention.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
应当理解,此处所描述的具体实施例仅用以解释本发明,仅仅是本发明一部分实施例,而不是全部的实施例,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, only a part of the embodiments of the present invention, not all the embodiments, and are not intended to limit the present invention.
参照图1,图1是本发明实施例提供的一种巡检控制方法的步骤流程图,该方法执行于协转服务器,该方法包括如下步骤:Referring to Fig. 1, Fig. 1 is a flow chart of the steps of a patrol control method provided by an embodiment of the present invention, the method is executed on the co-transfer server, and the method includes the following steps:
步骤101、接收监控服务发送的巡检业务请求,其中,巡检业务请求为监控服务接收的监控客户端发送的请求。Step 101: Receive the inspection service request sent by the monitoring service, wherein the inspection service request is a request sent by the monitoring client received by the monitoring service.
需要说明的是,视联网的监控管理平台分为前端服务和后端服务,前端服务又名叫唐古拉,负责整体监控目录的展现、监控视频的调取、视联网监控统一管理平台各种配置。后端服务,负责整个视联网中的所有接入的监控设备的统一管理,以及国标(GB/T28181)平台监控系统的对接服务。监控客户端为监控管理平台的前端服务,监控服务(Mserver)为前端服务的其中一个后端服务。It should be noted that the monitoring and management platform of the Internet of Things is divided into front-end services and back-end services. The front-end service is also called Tanggula, which is responsible for the display of the overall monitoring directory, the retrieval of surveillance videos, and various configurations of the unified management platform of the Internet of Things. The back-end service is responsible for the unified management of all connected monitoring devices in the entire video network, as well as the docking service of the national standard (GB/T28181) platform monitoring system. The monitoring client is the front-end service of the monitoring management platform, and the monitoring service (Mserver) is one of the back-end services of the front-end service.
协转服务器又名监控接入服务器,负责将互联网的监控设备(也可以描述为监控资源)和/或第三方国标下级平台的监控设备接入到视联网中,可实现视联网中浏览和控制互联网上的监控设备。The co-transfer server, also known as the monitoring access server, is responsible for connecting the monitoring equipment of the Internet (which can also be described as monitoring resources) and/or the monitoring equipment of the third-party national standard lower-level platform to the Internet of Vision, which can realize browsing and control in the Internet of Vision Surveillance devices on the Internet.
具体的,参照图2,图2为本发明实施例提供的一种巡检控制方法的系统架构图。监控客户端可以接收用户执行的操作指令,从而响应于操作指令向监控服务发送巡检业务请求,监控服务接收到巡检业务请求后,将巡检业务请求发送给协转服务器,相应的,协转服务器接收监控服务发送的巡检业务请求。其中,监控服务可以与监控客户端部署于同一台设备上,也可以部署在不同的设备上。Specifically, refer to FIG. 2 , which is a system architecture diagram of a patrolling control method provided by an embodiment of the present invention. The monitoring client can receive the operation instruction executed by the user, and then send the inspection service request to the monitoring service in response to the operation instruction. After receiving the inspection service request, the monitoring service sends the inspection service request to the co-transfer server. The transfer server receives the inspection service request sent by the monitoring service. Wherein, the monitoring service may be deployed on the same device as the monitoring client, or may be deployed on different devices.
为具体为唐古拉向MServer发送巡检任务,Mserver收到唐古拉发送的巡检任务,直接向协转服务器发送巡检信令。协转服务器收到巡检信令开始针对本服务器挂载的监控设备进行主动巡检。In order to specifically send inspection tasks to MServer for Tanggula, Mserver receives inspection tasks sent by Tanggula and directly sends inspection signaling to the co-transfer server. After receiving the inspection signal, the co-transfer server starts to actively inspect the monitoring equipment mounted on the server.
步骤102、响应于巡检业务请求,根据均衡策略,判断是否需要对目标监控设备执行巡检业务,其中,目标监控设备包括与协转服务器通信连接的各监控设备或部分监控设备。Step 102 : In response to the inspection service request, judge whether to perform the inspection service on the target monitoring device according to the balance strategy, wherein the target monitoring device includes each monitoring device or some monitoring devices that are communicatively connected to the co-translation server.
协转服务器响应于巡检业务请求,并根据均衡策略,判断是否需要对目标监控设备执行巡检业务。其中,目标监控设备可以包括与协转服务器通信连接的各监控设备(即协转服务器下挂载的所有监控设备),或者,目标监控设备包括协转服务器下挂载的部分监控设备。The co-conversion server responds to the inspection service request, and judges whether the inspection service needs to be performed on the target monitoring device according to the balancing strategy. Wherein, the target monitoring device may include various monitoring devices connected in communication with the co-translation server (that is, all monitoring devices mounted under the co-translation server), or the target monitoring device includes some monitoring devices mounted under the co-translation server.
例如,如果协转服务器在之前对各监控设备执行巡检时,确定各监控设备都处于白名单中,也即各监控设备都处于可用状态的情况下,目标监控设备可用包括各监控设备。如果协转服务器在之前对各监控设备执行巡检时,确定其中的部分监控设备多次处于不可用状态,则将这些监控设备列入黑名单中,则之后协转服务器再次接收到巡检指令后,可以不对列入黑名单的监控设备执行巡检业务,也即目标监控设备只包括除处于黑名单中的监控设备之外的部分监控设备。For example, if the co-transfer server determines that each monitoring device is in the whitelist when performing an inspection on each monitoring device before, that is, when each monitoring device is in an available state, the target monitoring device can include each monitoring device. If the co-transfer server determines that some of the monitoring devices are unavailable for many times when performing inspections on the monitoring devices before, these monitoring devices will be blacklisted, and then the co-transfer server will receive the inspection command again Finally, the inspection service may not be performed on the monitoring equipment included in the blacklist, that is, the target monitoring equipment only includes some monitoring equipment except the monitoring equipment in the blacklist.
或者,例如,协转服务器下挂载的各监控设备例如包括第三方监控系统1的5个监控设备,第三方监控系统2的10个监控设备。如果第三方监控系统1处于离线状态或者协转服务器正在获取第三方监控系统1的监控资源、且第三方监控系统2处于在线状态且不处于黑名单中,则目标监控设备包括第三方监控系统2的10个监控设备。第三方监控系统的监控资源即指通过第三方监控系统接入协转服务器的监控设备的编码信息或者目录信息。由于在第三方监控系统的监控设备的编码信息或者目录信息发生变更的情况下,如果采用之前的编码信息或目录信息调取第三方监控系统的监控设备的视频流,可能存在调流失败或者调取不到视频流的问题,因此,协转服务器需要重新获取第三方监控系统的监控设备的编码信息和目录信息,在重新获取第三方监控系统的监控设备的编码信息和目录信息时,可以不用对第三方监控系统的监控设备进行巡检,从而可以减轻协转服务器的负担。Or, for example, the monitoring devices mounted under the co-conversion server include, for example, 5 monitoring devices of the third-
步骤103、若不需要对目标监控设备执行巡检业务,则禁止对目标监控设备执行巡检业务。
步骤104、若需要对目标监控设备执行巡检业务,则开始对目标监控设备执行巡检业务。
现有技术中,由于协转服务器在收到巡检指令时,立即执行巡检业务,而此时协转服务器有可能并不适合执行巡检任务,例如,协转服务正在执行其他业务,例如在执行调流业务,在执行调流任务的同时执行巡检任务,则会加重协转服务器的负载。也即此种情况下并不适合执行巡检业务。In the prior art, since the co-transfer server immediately executes the patrol service when receiving the patrol command, the co-transfer server may not be suitable for performing the patrol task at this time, for example, the co-transfer service is performing other services, such as When performing traffic adjustment business, performing inspection tasks while performing traffic adjustment tasks will increase the load on the co-transfer server. That is to say, in this case, it is not suitable to perform the inspection service.
本实施例通过根据均衡策略,判断是否需要对目标监控设备执行巡检业务,在不需要对目标监控设备执行巡检业务,则禁止对目标监控设备执行巡检业务,若需要对目标监控设备执行巡检业务,才开始对目标监控设备执行巡检业务,可以避免在不必对目标监控设备执行巡检业务的情况下,仍旧对目标监控设备执行巡检的情况发生,从而对协转服务器造成额外的负担,加重协转服务器的负载的问题,因此本发明实施例可实现在适合协转服务器执行巡检业务时,协转服务器才执行巡检业务,从而可以在一定程度上降低协转服务器的负载。。In this embodiment, according to the balance strategy, it is judged whether the inspection service needs to be performed on the target monitoring device. It is possible to avoid the situation of performing inspection on the target monitoring device without having to perform the inspection service on the target monitoring device, thus causing additional damage to the co-transfer server. Therefore, the embodiment of the present invention can realize that the coordinated conversion server only performs the patrol inspection service when it is suitable for the coordinated conversion server to perform the patrol service, thereby reducing the load of the coordinated conversion server to a certain extent. load. .
可选的,均衡策略可以包括但不限于协转服务器的负载大小是否大于或等于预设阈值、与协转服务器通信连接的监控系统是否在线、以及协转服务器是否处于获取监控系统的资源的状态。Optionally, the balance strategy may include but not limited to whether the load of the co-translation server is greater than or equal to a preset threshold, whether the monitoring system connected to the co-translation server is online, and whether the co-translation server is in the state of obtaining the resources of the monitoring system .
其中的监控系统即指第三方国标下级平台的监控系统。The monitoring system refers to the monitoring system of the lower-level platform of the third-party national standard.
可选的,还可以包括如下步骤:Optionally, the following steps may also be included:
在对目标监控设备执行巡检业务的过程中,根据均衡策略,判断是否需要暂停对目标监控设备执行巡检业务。In the process of executing the inspection service on the target monitoring device, it is determined whether to suspend the inspection service on the target monitoring device according to the balancing strategy.
其中,根据均衡策略,判断是否需要暂停对目标监控设备执行巡检业务可以包括如下情况:Among them, according to the balance strategy, judging whether to suspend the execution of the inspection service on the target monitoring device may include the following situations:
若协转服务器的负载大小大于或等于预设阈值,则需要暂停对目标监控设备执行巡检业务;或者,If the load of the co-transfer server is greater than or equal to the preset threshold, it is necessary to suspend the inspection of the target monitoring device; or,
若与协转服务器通信连接的监控系统离线,则需要暂停对目标监控设备执行巡检业务,其中,目标监控设备包括与离线状态的监控系统连接的监控设备;或者,If the monitoring system connected to the co-transfer server is offline, it is necessary to suspend the inspection service on the target monitoring device, wherein the target monitoring device includes the monitoring device connected to the offline monitoring system; or,
若协转服务器处于获取与协转服务器通信连接的监控系统的监控资源的状态,则需要暂停对目标监控设备执行巡检业务。If the co-translation server is in the state of acquiring the monitoring resources of the monitoring system communicated with the co-translation server, it is necessary to suspend the execution of the inspection service on the target monitoring device.
需要说明的是,例如,在与协转服务器通信连接的监控系统离线的情况下,暂停对目标监控设备执行巡检业务,此时的目标监控设备为与离线的监控系统通信连接的监控设备。It should be noted that, for example, when the monitoring system communicatively connected to the co-translation server is offline, the execution of the inspection service on the target monitoring device is suspended, and the target monitoring device at this time is the monitoring device communicatively connected to the offline monitoring system.
可选的,还包括:Optionally, also include:
在暂停对目标监控设备执行巡检业务的情况下,根据均衡策略,判断是否需要继续对目标监控设备执行巡检业务。In the case of suspending the execution of the inspection service on the target monitoring device, according to the balancing strategy, it is judged whether it is necessary to continue to perform the inspection service on the target monitoring device.
结合上述举例说明,在与协转服务器通信连接的监控系统离线的情况下,暂停对目标监控设备执行巡检业务,此时的目标监控设备为与离线的监控系统通信连接的监控设备。如果后续该监控系统重新上线,且此时的协转服务器的负载大小小于预设阈值、以及协转服务器未处于获取与该监控系统的监控资源的状态,则可以继续对与该监控系统通信连接的监控设备执行巡检业务。In conjunction with the above examples, when the monitoring system connected to the co-transfer server is offline, the patrol inspection service for the target monitoring device is suspended. At this time, the target monitoring device is the monitoring device connected to the offline monitoring system. If the monitoring system goes online again later, and the load of the co-transfer server is less than the preset threshold at this time, and the co-transfer server is not in the state of obtaining the monitoring resources of the monitoring system, the communication connection with the monitoring system can be continued The monitoring equipment performs the inspection service.
或者例如,在协转服务器获取与协转服务器通信连接的监控系统的监控资源完成的情况下,如果此时协转服务器的负载大小小于预设阈值、且该监控系统处于在线状态,则可以继续对该监控系统通信连接的监控设备执行巡检业务。Or for example, when the co-translation server acquires the monitoring resources of the monitoring system connected to the co-translation server, if the load of the co-translation server is less than the preset threshold and the monitoring system is online, you can continue Execute the inspection service on the monitoring equipment connected by communication with the monitoring system.
可选的,步骤102、根据均衡策略,判断是否需要对目标监控设备执行巡检业务可以包括如下步骤:Optionally, step 102, according to the balancing strategy, judging whether to perform inspection service on the target monitoring device may include the following steps:
若协转服务器的负载大小大于或等于预设阈值、与协转服务器通信连接的监控系统离线、以及协转服务器处于获取监控系统的资源的状态中的至少一种情况发生,则不需要对目标监控设备执行巡检业务。If at least one of the situations in which the load of the co-translation server is greater than or equal to the preset threshold, the monitoring system connected to the co-translation server is offline, and the co-translation server is in the state of obtaining the resources of the monitoring system occurs, there is no need to update the target The monitoring equipment performs the inspection service.
也即只要有上述任何一种情况发生,则不需要对目标监控设备执行巡检业务,从而可以减轻协转服务器的负载。That is, as long as any of the above situations occurs, there is no need to perform inspection services on the target monitoring device, thereby reducing the load of the co-transfer server.
可选的,还可以包括:Optionally, can also include:
如图2所示,向监控客户端发送协转服务器的巡检状态信息,以使监控客户端显示巡检状态信息,其中,巡检状态信息包括巡检进行中、巡检暂停、巡检停止。通过协转服务器将巡检状态信息发送给监控客户端,从而可以保证监控客户端和协转服务器对于巡检状态的认知保持一致,从而可以避免例如在协转服务器的巡检状态为停止的情况下,由于监控客户端显示的巡检状态为巡检进行中时,用户点击停止巡检按钮,导致监控客户端向协转服务器发送无效的指令,或者例如在协转服务器的巡检状态为进行中的情况下,监控客户端显示的巡检状态为巡检停止时,用户点击开始巡检按钮,导致监控客户端向协转服务器发送无效的巡检业务请求。As shown in Figure 2, the inspection status information of the co-transfer server is sent to the monitoring client, so that the monitoring client displays the inspection status information, wherein the inspection status information includes inspection in progress, inspection pause, and inspection stop . The patrolling status information is sent to the monitoring client through the coordinating server, so as to ensure that the monitoring client and the coordinating server have the same awareness of the patrolling status, thus avoiding, for example, that the coordinating server’s patrolling status is stopped In some cases, when the inspection status displayed by the monitoring client is inspection in progress, the user clicks the stop inspection button, causing the monitoring client to send an invalid command to the co-transfer server, or for example, when the co-transfer server’s inspection status is In the case of ongoing inspection, when the inspection status displayed by the monitoring client is inspection stop, the user clicks the button to start inspection, which causes the monitoring client to send an invalid inspection service request to the co-transfer server.
需要说明的是,在协转服务器巡检停止后,协转服务器可以每间隔预设时间对目标监控设备执行巡检业务,不需要监控客户端重新向协转服务器发送巡检业务请求。It should be noted that after the co-transfer server stops the inspection, the co-transfer server can perform the inspection service on the target monitoring device at preset intervals, and there is no need for the monitoring client to resend the inspection service request to the co-transfer server.
参照图3,图3为本发明实施例提供的一种巡检控制装置的结构示意图,该装置300可以设置于协转服务器,该装置300包括:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a patrol control device provided by an embodiment of the present invention. The
接收模块310,用于接收监控服务发送的巡检业务请求,其中,所述巡检业务请求为所述监控服务接收的监控客户端发送的请求;The receiving
第一判断模块320,用于响应于所述巡检业务请求,根据均衡策略,判断是否需要对目标监控设备执行巡检业务,其中,所述目标监控设备包括与所述协转服务器通信连接的各监控设备或部分监控设备;The
禁止模块330,用于若不需要对所述目标监控设备执行巡检业务,则禁止对所述目标监控设备执行巡检业务;The
执行模块340,用于若需要对目标监控设备执行巡检业务,则开始对所述目标监控设备执行巡检业务。The executing
本实施例提供的巡检控制装置,通过根据均衡策略,判断是否需要对目标监控设备执行巡检业务,在不需要对目标监控设备执行巡检业务,则禁止对目标监控设备执行巡检业务,若需要对目标监控设备执行巡检业务,才开始对目标监控设备执行巡检业务,可以避免在不必对目标监控设备执行巡检业务的情况下,仍旧对目标监控设备执行巡检的情况发生,从而对协转服务器造成额外的负担,加重协转服务器的负载的问题,因此本发明实施例可实现在适合协转服务器执行巡检业务时,协转服务器才执行巡检业务,从而可以在一定程度上降低协转服务器的负载。The inspection control device provided in this embodiment judges whether the inspection service needs to be performed on the target monitoring device according to the balance strategy, and prohibits the execution of the inspection service on the target monitoring device if it is not necessary to perform the inspection service on the target monitoring device. If it is necessary to perform inspection services on the target monitoring equipment, the inspection service on the target monitoring equipment can be started, which can avoid the situation that the inspection service is still performed on the target monitoring equipment when there is no need to perform inspection services on the target monitoring equipment. As a result, an additional burden is imposed on the co-translation server, and the problem of the load on the co-translation server is aggravated. Therefore, the embodiment of the present invention can realize that the co-conversion server only performs the patrol inspection service when it is suitable for the co-translation server to perform the patrol service, so that the co-conversion server can execute the patrol service in a certain Minimize the load on the co-rotation server.
可选的,所述均衡策略包括所述协转服务器的负载大小是否大于或等于预设阈值、与所述协转服务器通信连接的监控系统是否在线、以及所述协转服务器是否处于获取所述监控系统的监控资源的状态中的至少一个。Optionally, the balancing strategy includes whether the load of the co-translation server is greater than or equal to a preset threshold, whether the monitoring system connected to the co-translation server is online, and whether the co-translation server is acquiring the At least one of the states of the monitoring resources of the monitoring system is monitored.
可选的,还可以包括:Optionally, can also include:
第二判断模块,用于在对所述目标监控设备执行巡检业务的过程中,根据所述均衡策略,判断是否需要暂停对所述目标监控设备执行巡检业务。The second judging module is configured to judge whether it is necessary to suspend the execution of the inspection service on the target monitoring device according to the balancing strategy during the process of executing the inspection service on the target monitoring device.
可选的,判断模块320,还用于在暂停对所述目标监控设备执行巡检业务的情况下,根据所述均衡策略,判断是否需要继续对所述目标监控设备执行巡检业务。Optionally, the judging
可选的,所述判断模块320,具体用于若所述协转服务器的负载大小大于或等于所述预设阈值、与所述协转服务器通信连接的监控系统离线、以及所述协转服务器处于获取所述监控系统的资源的状态中的至少一种情况发生,则不需要对所述目标监控设备执行巡检业务。Optionally, the judging
可选的,第二判断模块,具体用于若所述协转服务器的负载大小大于或等于所述预设阈值,则需要暂停对所述目标监控设备执行巡检业务;或者,Optionally, the second judging module is specifically configured to suspend the execution of the inspection service on the target monitoring device if the load of the co-transfer server is greater than or equal to the preset threshold; or,
若与所述协转服务器通信连接的监控系统离线,则需要暂停对所述目标监控设备执行巡检业务,其中,所述目标监控设备包括与离线状态的监控系统连接的监控设备;或者,If the monitoring system communicated with the co-transfer server is offline, it is necessary to suspend the execution of the inspection service on the target monitoring device, wherein the target monitoring device includes a monitoring device connected to the monitoring system in an offline state; or,
若所述协转服务器处于获取与所述协转服务器通信连接的监控系统的监控资源的状态,则需要暂停对所述目标监控设备执行巡检业务。If the co-conversion server is in the state of acquiring the monitoring resources of the monitoring system that is communicatively connected to the co-conversion server, it is necessary to suspend the execution of the inspection service on the target monitoring device.
可选的,还包括:Optionally, also include:
发送模块,用于向所述监控客户端发送所述协转服务器的巡检状态信息,以使所述监控客户端显示所述巡检状态信息,其中,所述巡检状态信息包括巡检进行中、巡检暂停、巡检停止。A sending module, configured to send the patrolling status information of the co-transfer server to the monitoring client, so that the monitoring client displays the patrolling status information, wherein the patrolling status information includes patrolling status information Middle, inspection pause, inspection stop.
另外,本发明实施例还提供一种巡检控制装置,该巡检控制装置包括处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述实施例的巡检控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, an embodiment of the present invention also provides a patrol control device, which includes a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the Each process of the patrolling control method embodiment of the above embodiment can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述的巡检控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,的计算机可读存储介质,可以为只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the inspection control method can be realized, and the same To avoid repetition, the technical effects will not be repeated here. Wherein, the computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
对于产品实施例而言,由于其应用了上述装置实施例的技术方案,所以描述地比较简单,相关指出参见装置实施例的部分说明即可。As for the product embodiment, since it applies the technical solution of the above-mentioned device embodiment, the description is relatively simple, and relevant points can be referred to part of the description of the device embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。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.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Having described preferred embodiments of embodiments of the present invention, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising the element.
以上对本发明所提供的一种巡检控制方法和一种巡检控制装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The inspection control method and inspection control device 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 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 content of this specification does not It should be understood as a limitation of the present invention.
为使本领域技术人员更好地理解本发明实施例,以下对视联网进行介绍: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 across 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 Things 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.
如图6所示,视联网分为接入网和城域网两部分。As shown in Figure 6, the Internet of Things is divided into two parts: the access network and the metropolitan area network.
接入网部分的设备主要可以分为3类:节点服务器,接入交换机,终端(包括各种机顶盒、编码板、存储器等)。节点服务器与接入交换机相连,接入交换机可以与多个终端相连,并可以连接以太网。The equipment in the access network can be mainly divided into three categories: node servers, access switches, and terminals (including various set-top boxes, encoding boards, memory, 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:
如图5所示,主要包括网络接口模块501、交换引擎模块502、CPU模块503、磁盘阵列模块504;As shown in Figure 5, it mainly includes a
其中,网络接口模块501,CPU模块503、磁盘阵列模块504进来的包均进入交换引擎模块502;交换引擎模块502对进来的包进行查地址表505的操作,从而获得包的导向信息;并根据包的导向信息把该包存入对应的包缓存器506的队列;如果包缓存器506的队列接近满,则丢弃;交换引擎模502轮询所有包缓存器队列,如果满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。磁盘阵列模块504主要实现对硬盘的控制,包括对硬盘的初始化、读写等操作;CPU模块503主要负责与接入交换机、终端(图中未示出)之间的协议处理,对地址表505(包括下行协议包地址表、上行协议包地址表、数据包地址表)的配置,以及,对磁盘阵列模块504的配置。Wherein,
接入交换机:Access switch:
如图6所示,主要包括网络接口模块(下行网络接口模块601、上行网络接口模块602)、交换引擎模块603和CPU模块604;As shown in Figure 6, mainly include network interface module (downlink
其中,下行网络接口模块601进来的包(上行数据)进入包检测模块605;包检测模块605检测包的目地地址(DA)、源地址(SA)、数据包类型及包长度是否符合要求,如果符合,则分配相应的流标识符(stream-id),并进入交换引擎模块603,否则丢弃;上行网络接口模块602进来的包(下行数据)进入交换引擎模块603;CPU模块604进来的数据包进入交换引擎模块603;交换引擎模块603对进来的包进行查地址表606的操作,从而获得包的导向信息;如果进入交换引擎模块603的包是下行网络接口往上行网络接口去的,则结合流标识符(stream-id)把该包存入对应的包缓存器607的队列;如果该包缓存器607的队列接近满,则丢弃;如果进入交换引擎模块603的包不是下行网络接口往上行网络接口去的,则根据包的导向信息,把该数据包存入对应的包缓存器607的队列;如果该包缓存器607的队列接近满,则丢弃。Wherein, the packet (upstream data) that the downstream network interface module 601 comes in enters the packet detection module 605; Whether the destination address (DA), source address (SA), data packet type and packet length of the packet detection module 605 detection packet meet the requirements, if Meet, then distribute corresponding stream identifier (stream-id), and enter switching engine module 603, otherwise discard; The packet (downstream data) that upstream network interface module 602 comes in enters switching engine module 603; The data packet that CPU module 604 comes in Enter the switching engine module 603; the switching engine module 603 carries out the operation of checking the address table 606 to the incoming packet, thereby obtains the guiding information of the packet; if the packet entering the switching engine module 603 goes from the downstream network interface to the upstream network interface, then in combination Flow identifier (stream-id) stores this packet into the queue of corresponding packet cache 607; If the queue of this packet cache 607 is close to full, then discards; If the packet that enters switching engine module 603 is not downlink network interface, goes up If the packet is sent to the network interface, the data packet is stored in the queue of the corresponding packet buffer 607 according to the direction information of the packet; if the queue of the packet buffer 607 is nearly full, it is discarded.
交换引擎模块603轮询所有包缓存器队列,在本发明实施例中分两种情形:
如果该队列是下行网络接口往上行网络接口去的,则满足以下条件进行转发: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.
码率控制模块606是由CPU模块604来配置的,在可编程的间隔内对所有下行网络接口往上行网络接口去的包缓存器队列产生令牌,用以控制上行转发的码率。The code
CPU模块604主要负责与节点服务器之间的协议处理,对地址表606的配置,以及,对码率控制模块606的配置。The
以太网协转网关:Ethernet protocol conversion gateway:
如图7所示,主要包括网络接口模块(下行网络接口模块701、上行网络接口模块702)、交换引擎模块703、CPU模块704、包检测模块705、码率控制模块708、地址表706、包缓存器707和MAC添加模块709、MAC删除模块710。As shown in Figure 7, it mainly includes a network interface module (downlink
其中,下行网络接口模块701进来的数据包进入包检测模块705;包检测模块705检测数据包的以太网MAC DA、以太网MAC SA、以太网length or frame type、视联网目地地址DA、视联网源地址SA、视联网数据包类型及包长度是否符合要求,如果符合则分配相应的流标识符(stream-id);然后,由MAC删除模块710减去MAC DA、MAC SA、length or frame type(2byte),并进入相应的接收缓存,否则丢弃;Wherein, the data packet that the downlink
下行网络接口模块701检测该端口的发送缓存,如果有包则根据包的视联网目地地址DA获知对应的终端的以太网MAC DA,添加终端的以太网MAC DA、以太网协转网关的MACSA、以太网length or frame type,并发送。The downlink
以太网协转网关中其他模块的功能与接入交换机类似。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 packets
2.1接入网数据包定义2.1 Definition of access network data 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:
DA SA Reserved Payload CRCDA SA Reserved Payload CRC
其中: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:
DA SA Reserved标签Payload CRCDA SA Reserved Tag Payload CRC
即目的地址(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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911304185.4ACN111193904B (en) | 2019-12-17 | 2019-12-17 | Inspection control method and device and readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911304185.4ACN111193904B (en) | 2019-12-17 | 2019-12-17 | Inspection control method and device and readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN111193904A CN111193904A (en) | 2020-05-22 |
| CN111193904Btrue CN111193904B (en) | 2022-12-13 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911304185.4AActiveCN111193904B (en) | 2019-12-17 | 2019-12-17 | Inspection control method and device and readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN111193904B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113727092B (en)* | 2021-07-30 | 2024-04-16 | 深圳力维智联技术有限公司 | Video monitoring quality inspection method and device based on decision tree |
| CN117033144B (en)* | 2023-10-09 | 2024-01-19 | 武汉吧哒科技股份有限公司 | Remote inspection method, equipment and medium for server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101316280A (en)* | 2008-06-13 | 2008-12-03 | 南京邮电大学 | Feedback-based intelligent monitoring method for grid resources |
| CN101594539A (en)* | 2009-06-24 | 2009-12-02 | 中兴通讯股份有限公司 | Realize method, decoder and the supervisory control system of decoder synchronous polling |
| CN102307224A (en)* | 2011-05-17 | 2012-01-04 | 华为软件技术有限公司 | Method and device for realizing service isolation in cloud computing system, and cloud server |
| CN102892103A (en)* | 2011-07-22 | 2013-01-23 | 联发科技股份有限公司 | Wireless communication device and polling response management method |
| CN103439952A (en)* | 2013-08-30 | 2013-12-11 | 苏州庚商教育智能科技有限公司 | Experimental equipment state monitoring system |
| CN205375602U (en)* | 2016-01-19 | 2016-07-06 | 青岛昕恒特电控自动化有限公司 | Equipment inspection system |
| WO2018112722A1 (en)* | 2016-12-20 | 2018-06-28 | 深圳中兴力维技术有限公司 | Video inspection method and system thereof |
| CN109309603A (en)* | 2018-11-02 | 2019-02-05 | 华青融天(北京)软件股份有限公司 | A kind of dynamic load balanced sharing method and device |
| CN109698953A (en)* | 2018-11-28 | 2019-04-30 | 视联动力信息技术股份有限公司 | A kind of condition detection method and system regarding networking monitoring equipment |
| CN109729310A (en)* | 2018-11-26 | 2019-05-07 | 视联动力信息技术股份有限公司 | Method and apparatus derived from a kind of monitoring inspection data |
| CN110191361A (en)* | 2019-04-26 | 2019-08-30 | 视联动力信息技术股份有限公司 | A kind of method for inspecting and device of streaming media server |
| CN110300283A (en)* | 2019-06-26 | 2019-10-01 | 视联动力信息技术股份有限公司 | A kind of monitoring inspection control method and device based on view networking |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101316280A (en)* | 2008-06-13 | 2008-12-03 | 南京邮电大学 | Feedback-based intelligent monitoring method for grid resources |
| CN101594539A (en)* | 2009-06-24 | 2009-12-02 | 中兴通讯股份有限公司 | Realize method, decoder and the supervisory control system of decoder synchronous polling |
| WO2010148841A1 (en)* | 2009-06-24 | 2010-12-29 | 中兴通讯股份有限公司 | Decoder polling processing method, decoder and monitoring system |
| CN102307224A (en)* | 2011-05-17 | 2012-01-04 | 华为软件技术有限公司 | Method and device for realizing service isolation in cloud computing system, and cloud server |
| CN102892103A (en)* | 2011-07-22 | 2013-01-23 | 联发科技股份有限公司 | Wireless communication device and polling response management method |
| CN103439952A (en)* | 2013-08-30 | 2013-12-11 | 苏州庚商教育智能科技有限公司 | Experimental equipment state monitoring system |
| CN205375602U (en)* | 2016-01-19 | 2016-07-06 | 青岛昕恒特电控自动化有限公司 | Equipment inspection system |
| WO2018112722A1 (en)* | 2016-12-20 | 2018-06-28 | 深圳中兴力维技术有限公司 | Video inspection method and system thereof |
| CN109309603A (en)* | 2018-11-02 | 2019-02-05 | 华青融天(北京)软件股份有限公司 | A kind of dynamic load balanced sharing method and device |
| CN109729310A (en)* | 2018-11-26 | 2019-05-07 | 视联动力信息技术股份有限公司 | Method and apparatus derived from a kind of monitoring inspection data |
| CN109698953A (en)* | 2018-11-28 | 2019-04-30 | 视联动力信息技术股份有限公司 | A kind of condition detection method and system regarding networking monitoring equipment |
| CN110191361A (en)* | 2019-04-26 | 2019-08-30 | 视联动力信息技术股份有限公司 | A kind of method for inspecting and device of streaming media server |
| CN110300283A (en)* | 2019-06-26 | 2019-10-01 | 视联动力信息技术股份有限公司 | A kind of monitoring inspection control method and device based on view networking |
| Title |
|---|
| 基于多源信息融合的变电站智能运维监控平台研究;徐强;《现代建筑电气》;20190330(第03期);全文* |
| Publication number | Publication date |
|---|---|
| CN111193904A (en) | 2020-05-22 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110855610B (en) | A data packet processing method, device and storage medium | |
| CN111447393B (en) | Conference maintenance method, device and readable storage medium | |
| CN110768910A (en) | Data transmission method and device | |
| CN110224988B (en) | Image data processing method, system and device and storage medium | |
| CN111193904B (en) | Inspection control method and device and readable storage medium | |
| CN111835717B (en) | Monitoring code stream acquisition method, device and readable storage medium | |
| CN111478880B (en) | A method and device for data processing | |
| CN111212263B (en) | Method and device for filtering monitoring resource data | |
| CN111182258B (en) | Data transmission method and device for network conference | |
| CN110474956B (en) | Method, device, electronic device, and readable storage medium for video network device sealing | |
| CN111131840B (en) | Method and device for switching network of video service system | |
| CN110417792B (en) | Communication method, system, gateway device and storage medium | |
| CN110336710B (en) | A terminal testing method, system and device and storage medium | |
| CN109889516B (en) | Method and device for establishing session channel | |
| CN110445806A (en) | A kind of method, apparatus of calling Internet terminal and association turn server | |
| CN110099307A (en) | A kind of joint connecting method, view networking and computer readable storage medium | |
| CN110198384A (en) | A kind of means of communication and transfer server based on view networking | |
| CN110166363A (en) | A kind of multicast link monitoring method and device | |
| CN110475128A (en) | A kind of video transcoding method, device, electronic equipment and storage medium | |
| CN111478940B (en) | Data processing method and device | |
| CN111355916B (en) | Method, device, device and storage medium for establishing video networking communication connection | |
| CN109474848B (en) | Video processing method and device based on video network, electronic equipment and medium | |
| CN110445701B (en) | A business object processing method, device and storage medium | |
| CN110166443B (en) | Data transmission method, device, system, network device and storage medium | |
| CN110225079B (en) | Equipment control method and device and readable storage medium |
| 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 | 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 | |
| CP03 | Change of name, title or address |