Movatterモバイル変換


[0]ホーム

URL:


CN103595957B - A kind of method and apparatus for adjusting monitor terminal work pattern of network interface - Google Patents

A kind of method and apparatus for adjusting monitor terminal work pattern of network interface
Download PDF

Info

Publication number
CN103595957B
CN103595957BCN201310541216.4ACN201310541216ACN103595957BCN 103595957 BCN103595957 BCN 103595957BCN 201310541216 ACN201310541216 ACN 201310541216ACN 103595957 BCN103595957 BCN 103595957B
Authority
CN
China
Prior art keywords
network interface
monitor terminal
rate
speed
video data
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
CN201310541216.4A
Other languages
Chinese (zh)
Other versions
CN103595957A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201310541216.4ApriorityCriticalpatent/CN103595957B/en
Publication of CN103595957ApublicationCriticalpatent/CN103595957A/en
Application grantedgrantedCritical
Publication of CN103595957BpublicationCriticalpatent/CN103595957B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明提供一种调整监控终端网络接口工作模式的方法,该监控终端用于视频图像编码,该方法包括:A、监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商;B、根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率。本发明方案简单易行,成本低,能解决众多情况下因流量突发导致的网络丢包问题。

The present invention provides a method for adjusting the working mode of the monitoring terminal network interface. The monitoring terminal is used for video image encoding. It is set to self-negotiation; B. Adjust the rate of the monitoring terminal network interface according to the rate at which the monitoring terminal network interface sends video data. The solution of the invention is simple, easy to implement and low in cost, and can solve the problem of network packet loss caused by traffic burst in many cases.

Description

Translated fromChinese
一种调整监控终端网络接口工作模式的方法和装置A method and device for adjusting the working mode of a monitoring terminal network interface

技术领域technical field

本发明涉及视频监控技术领域,尤其涉及一种调整监控终端网络接口工作模式的方法和装置。The invention relates to the technical field of video monitoring, in particular to a method and a device for adjusting the working mode of a network interface of a monitoring terminal.

背景技术Background technique

在IP视频监控的传输网络中,对网络设备的传输要求与传统的要求有较大区别,主要是因为其所承载的IP视频监控数据包有着自身的特点。众所周知,IP视频数据包分为I帧、P帧,有时还包括B帧。对于承担视频数据传输的网络设备来说,流量负载最大的情况就是多路视频流的I帧数据同时蜂拥而来。此时,几路I帧数据的叠加有可能会瞬间超过该网络设备出端口速率,这样将导致视频数据包的丢失,给用户的实际体验就是图像卡顿不流畅。请参图1,两个视频编码器发送的I帧数据同时到达了接入层交换机,如果该两路数据需要的发送速率超过该接入层交换机出端口的速率,则接入层交换机将丢掉一些数据包。In the IP video surveillance transmission network, the transmission requirements for network equipment are quite different from the traditional requirements, mainly because the IP video surveillance data packets carried by them have their own characteristics. As we all know, IP video data packets are divided into I frames, P frames, and sometimes B frames. For the network equipment responsible for video data transmission, the situation with the largest traffic load is that the I-frame data of multiple video streams rush in at the same time. At this time, the superimposition of several I-frame data may instantly exceed the output port rate of the network device, which will cause the loss of video data packets, and the actual experience for the user is that the image is not smooth. Please refer to Figure 1. The I-frame data sent by the two video encoders arrive at the access layer switch at the same time. If the required sending rate of the two channels of data exceeds the output port rate of the access layer switch, the access layer switch will discard some packets.

针对上述问题,目前的几种解决方案如下:In view of the above problems, several current solutions are as follows:

解决方案一:在接入交换机连接监控终端的端口上启用流控功能,当交换机拥塞时能及时通知监控终端降低发包速率。Solution 1: Enable the flow control function on the port where the access switch is connected to the monitoring terminal. When the switch is congested, it can promptly notify the monitoring terminal to reduce the packet sending rate.

解决方案二:在接入交换机上加大缓存,在交换机拥塞时把IP视频报文缓存下来而不是粗暴的丢弃。Solution 2: Increase the cache on the access switch, and cache the IP video packets instead of discarding them roughly when the switch is congested.

解决方案三:优化监控终端所发出的I帧和P帧等,使I帧变小。Solution 3: optimize the I frame and P frame sent by the monitoring terminal to make the I frame smaller.

解决方案一需要事先在接入交换机端口上配置好流控功能,并且该流控功能只能在接入交换机的接入端口上启用。但在一些实际应用场景中,接入交换机或者监控终端可能不支持流控技术,这样就无法使用该方案。Solution 1 needs to configure the flow control function on the access switch port in advance, and the flow control function can only be enabled on the access port of the access switch. However, in some actual application scenarios, access switches or monitoring terminals may not support flow control technology, so this solution cannot be used.

解决方案二所采用的在交换机上加大缓存的方法从技术上考虑是个不错的选择,但是这又将增加视频监控网络的成本。一般处于核心层的交换机才会有大缓存,而处于接入层的交换机一般缓存都比较小,甚至没有。The method of enlarging the cache on the switch adopted by Solution 2 is a good choice technically, but this will increase the cost of the video surveillance network. Generally, switches at the core layer have large caches, while switches at the access layer generally have relatively small caches, or even no caches.

解决方案三所采用的优化监控终端所发出的I帧和P帧,看起来是个不花钱不费力的好办法。但是,实际上此方法最不可取。因为该方案对图像质量、视频流畅性都有冲击,一般是不予考虑的。The optimization of the I-frame and P-frame sent by the monitoring terminal used in solution three seems to be a good way to save money and effort. However, in practice this method is the least desirable. Because this solution has an impact on image quality and video fluency, it is generally not considered.

发明内容Contents of the invention

有鉴于此,本发明提供一种调整监控终端网络接口工作模式的方法,该监控终端用于视频图像编码,该方法包括:A、监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商;B、根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率。In view of this, the present invention provides a method for adjusting the working mode of the monitoring terminal network interface, the monitoring terminal is used for video image encoding, the method includes: A. After the monitoring terminal is powered on and started, the duplex mode of itself is set to self-negotiation , the network interface rate is set to self-negotiation; B. Adjust the rate of the monitoring terminal network interface according to the rate at which the monitoring terminal network interface sends video data.

优选地,根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率具体为:如果发送视频数据的速率小于等于预设阈值,则将该监控终端网络接口的速率调整为10M,如果所述发送视频数据的速率大于该预设阈值,则将该监控终端网络接口的速率调整为100M。Preferably, adjusting the rate of the monitoring terminal network interface according to the rate at which the monitoring terminal network interface sends video data is specifically: if the rate of sending video data is less than or equal to a preset threshold, then adjusting the rate of the monitoring terminal network interface to 10M , if the rate of sending video data is greater than the preset threshold, adjust the rate of the network interface of the monitoring terminal to 100M.

优选地,根据承载发送的视频数据的传输层协议将监控终端的双工模式调整为自协商或半双工。Preferably, the duplex mode of the monitoring terminal is adjusted to auto-negotiation or half-duplex according to the transport layer protocol carrying the sent video data.

优选地,管理监控终端的监控服务器根据获知的视频数据发送速率通知监控终端调整网络接口工作速率;或者监控终端直接根据自身获知的视频数据发送速率调整其网络接口速率。Preferably, the monitoring server managing the monitoring terminal notifies the monitoring terminal to adjust the working rate of the network interface according to the known video data transmission rate; or the monitoring terminal directly adjusts the network interface rate according to the video data transmission rate known by itself.

优选地,管理监控终端的监控服务器根据获知的承载视频数据的传输层协议通知监控终端调整双工模式;或者监控终端直接根据自身获知的承载视频数据的传输层协议调整双工模式。Preferably, the monitoring server managing the monitoring terminal notifies the monitoring terminal to adjust the duplex mode according to the known transport layer protocol for carrying video data; or the monitoring terminal directly adjusts the duplex mode according to the known transport layer protocol for carrying video data.

基于同样的构思,本发明还提供一种调整监控终端网络接口工作模式的装置,该装置应用于监控终端,该监控终端用于对采集的视频图像进行编码,该装置包括:工作模式初始化单元,用于监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商;速率调整单元,用于根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率。Based on the same idea, the present invention also provides a device for adjusting the working mode of the network interface of the monitoring terminal, the device is applied to the monitoring terminal, and the monitoring terminal is used to encode the collected video images, the device includes: a working mode initialization unit, After the monitoring terminal is powered on and started, its duplex mode is set to self-negotiation, and the network interface rate is set to self-negotiation; the rate adjustment unit is used to adjust the monitoring terminal according to the rate at which the monitoring terminal network interface sends video data The speed of the network interface.

优选地,该速率调整单元根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率具体为:如果发送视频数据的速率小于等于预设阈值,则将该监控终端网络接口的速率调整为10M,如果所述发送视频数据的速率大于该预设阈值,则将该监控终端网络接口的速率调整为100M。Preferably, the rate adjustment unit adjusts the rate of the monitoring terminal network interface according to the rate at which the monitoring terminal network interface sends video data: if the rate of sending video data is less than or equal to a preset threshold, then the rate of the monitoring terminal network interface The rate is adjusted to 10M, and if the rate of sending video data is greater than the preset threshold, the rate of the network interface of the monitoring terminal is adjusted to 100M.

优选地,该装置还包括双工模式调整单元,该双工模式调整单元用于根据承载发送的视频数据的传输层协议将监控终端的双工模式调整为自协商或半双工。Preferably, the device further includes a duplex mode adjustment unit, configured to adjust the duplex mode of the monitoring terminal to auto-negotiation or half-duplex according to the transport layer protocol of the video data sent by the bearer.

优选地,管理监控终端的监控服务器根据获知的视频数据发送速率通知监控终端调整网络接口工作速率,速率调整单元根据该调整通知执行速率的调整;或者速率调整单元直接根据监控终端自身获知的视频数据发送速率调整其网络接口速率。Preferably, the monitoring server that manages the monitoring terminal notifies the monitoring terminal to adjust the network interface operating rate according to the known video data transmission rate, and the rate adjustment unit executes the adjustment of the rate according to the adjustment notification; The send rate adjusts its network interface rate.

优选地,管理监控终端的监控服务器根据获知的承载视频数据的传输层协议通知监控终端调整双工模式,双工模式调整单元根据该调整通知执行双工模式的调整;或者双工模式调整单元直接根据监控终端自身获知的承载视频数据的传输层协议调整双工模式。Preferably, the monitoring server that manages the monitoring terminal notifies the monitoring terminal to adjust the duplex mode according to the known transport layer protocol for carrying video data, and the duplex mode adjustment unit executes the adjustment of the duplex mode according to the adjustment notification; or the duplex mode adjustment unit directly The duplex mode is adjusted according to the transport layer protocol for carrying video data known by the monitoring terminal itself.

相较于现有技术,本发明方案简单易行,成本低,能解决众多情况下因流量突发导致的网络丢包问题。Compared with the prior art, the solution of the present invention is simple and easy to implement, has low cost, and can solve the problem of network packet loss caused by traffic burst in many cases.

附图说明Description of drawings

图1是视频流量突发示例图。Figure 1 is an example diagram of a video traffic burst.

图2是本发明示例对应的网络结构图。FIG. 2 is a network structure diagram corresponding to an example of the present invention.

图3是本发明装置逻辑结构图。Fig. 3 is a logical structure diagram of the device of the present invention.

具体实施方式detailed description

网络接口的工作模式包括速率和双工两方面,可以分为10M半双工、10M全双工、100M半双工、100M全双工和自协商5种。一般情况下都是将工作模式设置在自协商模式下。The working mode of the network interface includes two aspects of speed and duplex, which can be divided into 5 types: 10M half-duplex, 10M full-duplex, 100M half-duplex, 100M full-duplex and auto-negotiation. Generally, the working mode is set to the auto-negotiation mode.

本发明方案通过对监控终端网络接口工作模式的自适应调整来使得接入交换机的出接口不再发生拥塞的状况,从而不再丢包。该方案简单易行,是解决一些实际场景中视频丢包问题的理想方法。The scheme of the present invention makes the outbound interface of the access switch no longer congested through the self-adaptive adjustment of the working mode of the network interface of the monitoring terminal, so that packet loss no longer occurs. This solution is simple and easy to implement, and it is an ideal method to solve the problem of video packet loss in some actual scenarios.

目前业界的监控终端有两种管理模式,即独立运行模式和服务器集中管理模式。以下分别对两种模式下如何实施本方案进行说明。At present, there are two management modes for monitoring terminals in the industry, that is, independent operation mode and server centralized management mode. How to implement this solution in the two modes will be described below.

实施例一Embodiment one

服务器集中管理模式Server centralized management mode

监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商。后续根据实际情况进行调整。After the monitoring terminal is powered on, its duplex mode is set to auto-negotiation, and the network interface rate is set to auto-negotiation. Follow-up adjustments will be made according to the actual situation.

监控服务器获取监控终端的相关信息,该信息主要包括发送视频数据的速率和承载视频数据的协议类型。监控终端上电后向监控服务器进行注册,注册过程中会告知监控服务器自身支持的码流数量和每条码流的速率(以秒为单位的平均速率)以及承载每条码流的协议。监控服务器将这些信息保存在本地。后续客户端向监控服务器点播监控终端某一路实况流时,监控服务器根据本地保存的信息获知该路实况流所能达到的速率以及承载该实况流的协议。通常,实况流都是由UDP协议所承载的。监控服务器根据后续监控终端即将发送的实况流的速率以及承载协议判断是否需要调整监控终端网络接口的工作模式,如果需要就发送调整指令,通知监控终端调整其网络接口的工作模式。工作模式中的接口速率调整的判断依据是:如果监控终端发送视频数据的速率小于等于预设阈值,则将该监控终端网络接口的速率设置为10M,如果所述发送视频数据的速率大于该预设阈值,则将该监控终端网络接口的速率设置为100M。这里监控终端发送视频数据的速率即为监控服务器本地保存的该路实况流所对应的速率。预设阈值可以是8M或者9M等小于10M的值,本发明对此不作限定。工作模式中的双工调整的判断依据是:如果是UDP协议承载视频数据,则将双工模式设置为半双工,如果是TCP协议承载视频数据的,则将双工模式设置为自协商。需要说明的是,如果始终将监控终端的双工模式设置自协商也是可以的,即不对初始化后的双工模式进行调整,因为自协商既适用于TCP的情况,也适用于UDP的情况。监控终端收到监控服务器的工作模式调整指示后执行相应的调整。The monitoring server obtains relevant information of the monitoring terminal, and the information mainly includes the rate of sending video data and the protocol type of the carrying video data. After the monitoring terminal is powered on, it registers with the monitoring server. During the registration process, the monitoring server will be notified of the number of code streams it supports, the rate of each code stream (average rate in seconds), and the protocol that carries each code stream. The monitoring server saves this information locally. When the subsequent client requests a certain live stream of the monitoring terminal to the monitoring server, the monitoring server learns the rate that the live stream can achieve and the protocol for carrying the live stream according to the information stored locally. Usually, live streaming is carried by the UDP protocol. The monitoring server judges whether it is necessary to adjust the working mode of the network interface of the monitoring terminal according to the rate of the live stream to be sent by the subsequent monitoring terminal and the bearer protocol, and if necessary, sends an adjustment command to notify the monitoring terminal to adjust the working mode of its network interface. The basis for judging the interface rate adjustment in the working mode is: if the rate at which the monitoring terminal sends video data is less than or equal to the preset threshold, then the rate of the network interface of the monitoring terminal is set to 10M; if the rate at which the video data is sent is greater than the preset threshold If the threshold is set, the speed of the network interface of the monitoring terminal is set to 100M. Here, the rate at which the monitoring terminal sends video data is the rate corresponding to the live stream stored locally by the monitoring server. The preset threshold may be a value smaller than 10M such as 8M or 9M, which is not limited in the present invention. The basis for judging the duplex adjustment in the working mode is: if the video data is carried by the UDP protocol, the duplex mode is set to half-duplex, and if the video data is carried by the TCP protocol, the duplex mode is set to auto-negotiation. It should be noted that it is also possible to always set the duplex mode of the monitoring terminal to auto-negotiation, that is, not to adjust the duplex mode after initialization, because auto-negotiation is applicable to both TCP and UDP. The monitoring terminal performs corresponding adjustments after receiving the working mode adjustment instruction from the monitoring server.

如果有若干个客户端同时向监控服务器点播了同一个监控终端不同路的实况码流时,监控服务器在确定该监控终端的视频数据发送速率时需要将这些不同路的实况码流速率相加。比如客户端1点播了监控终端1通道1的实况流,同时客户端2点播了监控终端1通道2的实况流。监控服务器收到客户端1和客户端2的点播信令后,通过查询本地这两个通道所支持的码流速率,比如说这两个通道支持码流速率均为2M,则监控服务器确认该监控终端接下来发送视频数据的接口速率为4M。监控服务器将确认的发送速率和预设阈值进行比较来决定是否通知监控终端进行工作模式的调整。如果当前监控终端网络接口的速率为自协商得到的100M,预设阈值假设为8M,则监控服务器通知监控终端将网络接口的速率强制调整为10M。If several clients order live code streams from different channels of the same monitoring terminal to the monitoring server at the same time, the monitoring server needs to add the live code stream rates of these different channels when determining the video data transmission rate of the monitoring terminal. For example, client 1 orders the live stream of channel 1 of monitoring terminal 1, and client 2 orders the live stream of channel 2 of monitoring terminal 1 at the same time. After receiving the on-demand signaling from client 1 and client 2, the monitoring server queries the stream rates supported by the two local channels. For example, the stream rates supported by these two channels are both 2M, then the monitoring server confirms The monitoring terminal then sends video data at an interface rate of 4M. The monitoring server compares the sending rate of the confirmation with the preset threshold to determine whether to notify the monitoring terminal to adjust the working mode. If the current rate of the network interface of the monitoring terminal is 100M obtained through self-negotiation, and the preset threshold is assumed to be 8M, the monitoring server notifies the monitoring terminal to forcibly adjust the rate of the network interface to 10M.

监控服务器根据实况点播的动态情况确定监控终端网络接口发送视频流的速率,将该速率和预设阈值进行比较从而动态的判断是否调整监控终端网络接口的速率。The monitoring server determines the rate at which the network interface of the monitoring terminal sends video streams according to the dynamic situation of live on-demand, and compares the rate with a preset threshold to dynamically determine whether to adjust the rate at the network interface of the monitoring terminal.

与监控终端相连的接入交换机,其端口的双工和速率都是自协商的,所以监控终端的上述调整方式并不会对视频流的传输带来其他影响。The duplex and rate of the port of the access switch connected to the monitoring terminal are all self-negotiated, so the above-mentioned adjustment method of the monitoring terminal will not have other impacts on the transmission of the video stream.

实施例二Embodiment two

独立运行模式的监控终端Monitoring terminal in stand-alone mode

独立运行模式的监控终端不受监控服务器控制,所以不依赖于监控服务器自主的进行工作模式的设置。监控终端当前网络接口对外发送的数据流大小以及数据报文承载协议是TCP还是UDP等信息,视频终端设备自身是知道的。监控终端根据自身知道的这些信息来调整自身网络接口的工作模式。The monitoring terminal in the independent operation mode is not controlled by the monitoring server, so it does not rely on the monitoring server to independently set the working mode. The video terminal device itself knows information such as the size of the data stream sent externally by the current network interface of the monitoring terminal and whether the data packet bearer protocol is TCP or UDP. The monitoring terminal adjusts the working mode of its own network interface according to the information it knows.

监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商。后续根据实际情况进行调整。After the monitoring terminal is powered on, its duplex mode is set to auto-negotiation, and the network interface rate is set to auto-negotiation. Follow-up adjustments will be made according to the actual situation.

如果监控终端发送视频数据的速率小于等于预设阈值,则将该监控终端网络接口的速率设置为10M,如果所述发送视频数据的速率大于该预设阈值,则将该监控终端网络接口的速率设置为100M。If the rate at which the monitoring terminal sends video data is less than or equal to the preset threshold, the rate of the network interface of the monitoring terminal is set to 10M; if the rate of sending video data is greater than the preset threshold, the rate of the network interface of the monitoring terminal is set to 10M. Set to 100M.

至于双工模式可以保持初始化时的自协商模式不变,或者可以根据承载监控终端发送的视频数据的传输层协议将监控终端的双工模式设置为自协商或者半双工。如果是UDP协议承载视频数据,则将双工模式设置为半双工,如果是TCP协议承载视频数据的,则将双工模式设置为自协商。As for the duplex mode, the auto-negotiation mode during initialization can be kept unchanged, or the duplex mode of the monitoring terminal can be set to auto-negotiation or half-duplex according to the transport layer protocol carrying the video data sent by the monitoring terminal. If the video data is carried by the UDP protocol, set the duplex mode to half-duplex, and if the video data is carried by the TCP protocol, set the duplex mode to auto-negotiation.

以下通过一个例子来说明本发明的有益效果。参考图2,一台无管理的8端口百兆普通交换机,其中7个端口下行都连接有网络摄像机,另外1个端口上行连接其他交换机或路由器。如果客户端同时点播这7台网络摄像机的视频图像,就会存在视频数据是从7个百兆端口进来,从一个百兆端口出去,即使每路摄像机的视频数据流为2Mbps,但是在客户端上来看,实时视频图像还是会有卡顿风险。主要原因是:7路网络摄像机的I帧数据在某一时刻同时蜂拥而来,虽然每路网络摄像机的速率为2Mbps(该速率是平均速率),但是在某一小段时间戳(几毫秒的时间内)突发的码流会达到二十多兆,7路这样的突发视频码流在某一时刻迭加到一起,就会超过接入交换机出接口100M的速率,从而导致丢包。采用本发明方案后,由于每路网络摄像机发出去的码流速率为2Mbps,通过服务器集中管理模式或者监控终端独立运行模式下对速率的调整,让每个网络摄像机的网络接口速率都工作在10Mbps,这样一来即使存在码流突发,也不会超过接口速率10Mbps。故交换机在连接7路网络摄像机的情况下,出端口任何时候都不会超过百兆的速率。The beneficial effects of the present invention are illustrated below through an example. Referring to Figure 2, an unmanaged 8-port 100M ordinary switch, of which 7 ports are connected to IP cameras in the downlink, and the other 1 port is connected to other switches or routers in the uplink. If the client requests the video images of these 7 network cameras at the same time, there will be video data coming in from 7 100M ports and going out from 1 100M port, even though the video data stream of each camera is 2Mbps, but in the From the above point of view, the real-time video image still has the risk of freezing. The main reason is: the I-frame data of the 7-way network cameras floods in at the same time at a certain moment, although the rate of each network camera is 2Mbps (this rate is the average rate), but in a certain small time stamp (a few milliseconds) ) The burst code stream will reach more than 20 Mbits, and 7 such burst video streams will be superimposed at a certain moment, which will exceed the 100M rate of the outgoing interface of the access switch, resulting in packet loss. After adopting the scheme of the present invention, since the bit stream rate sent by each network camera is 2Mbps, the network interface rate of each network camera is allowed to work at 10Mbps through the adjustment of the rate in the centralized management mode of the server or the independent operation mode of the monitoring terminal , so that even if there is a stream burst, the interface rate will not exceed 10Mbps. Therefore, when the switch is connected to a 7-way network camera, the output port will not exceed the rate of 100M at any time.

虽然本发明方案比较简单,但却突破常规思维,业界常规做法是终端设备接入交换机协商时不考虑实际承载数据流量大小以及业务类型,总是协商出两端都支持的能力最大集,即监控终端的百兆端口和交换机的百兆端口相连的时候,总是使监控终端和交换机的网络端口都工作在百兆的情况下。本发明方案则根据实际网络接口所承载的数据流量大小,以及业务类型,巧妙的降低网络接口速率和工作模式,遵循够用原则,利用网络接口速率和工作模式来控制具有视频报文突发特征的突发流,来达到提高终端设备接入密度的目的,本方案简洁高效方便。Although the solution of the present invention is relatively simple, it breaks through the conventional thinking. The conventional practice in the industry is that the maximum set of capabilities supported by both ends is always negotiated, that is, the monitoring When the 100M port of the terminal is connected to the 100M port of the switch, always make the monitoring terminal and the network port of the switch work at 100M. According to the size of the data traffic carried by the actual network interface and the type of business, the solution of the present invention subtly reduces the network interface rate and working mode, follows the principle of sufficient use, and utilizes the network interface rate and working mode to control the video packet burst feature. To achieve the purpose of increasing the access density of terminal equipment, this solution is simple, efficient and convenient.

基于同样的构思,本发明还提供了一种调整监控终端网络接口工作模式的装置,请参图3。该装置应用于监控终端,该监控终端用于对采集的视频图像进行编码,该装置包括:工作模式初始化单元31。该单元31用于监控终端上电启动后将自身的双工模式设置为自协商,网络接口速率被设置为自协商;速率调整单元32,该单元32用于根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率;双工模式调整单元33,该双工模式调整单元33用于根据承载发送的视频数据的传输层协议将监控终端的双工模式调整为自协商或半双工。当然双工模式调整单元33并不是必须的模块,正如前文所述,双工模式一直保持初始化时的自协商模式也是没有问题。Based on the same idea, the present invention also provides a device for adjusting the working mode of the network interface of the monitoring terminal, please refer to FIG. 3 . The device is applied to a monitoring terminal, and the monitoring terminal is used for encoding collected video images, and the device includes: a working mode initialization unit 31 . This unit 31 is used to set the duplex mode of itself to self-negotiation after the monitoring terminal is powered on and started, and the network interface rate is set to self-negotiation; the rate adjustment unit 32, this unit 32 is used to send video according to the network interface of the monitoring terminal The rate of data adjusts the rate of this monitoring terminal network interface; Duplex mode adjustment unit 33, this duplex mode adjustment unit 33 is used to adjust the duplex mode of the monitoring terminal to self-negotiation or according to the transport layer protocol of the video data sent by the bearer half duplex. Of course, the duplex mode adjustment unit 33 is not an essential module. As mentioned above, there is no problem in keeping the duplex mode in the self-negotiation mode during initialization.

该速率调整单元32根据所述监控终端网络接口发送视频数据的速率调整该监控终端网络接口的速率具体为:如果发送视频数据的速率小于等于预设阈值,则将该监控终端网络接口的速率调整为10M,如果所述发送视频数据的速率大于该预设阈值,则将该监控终端网络接口的速率调整为100M。The rate adjustment unit 32 adjusts the rate of the monitoring terminal network interface according to the rate at which the monitoring terminal network interface sends video data, specifically: if the rate of sending video data is less than or equal to a preset threshold, then adjust the rate of the monitoring terminal network interface is 10M, if the rate of sending video data is greater than the preset threshold, adjust the rate of the network interface of the monitoring terminal to 100M.

速率调整单元32可以根据监控服务器发送的速率调整通知来执行速率的调整;或者还可以直接根据监控终端自身获知的视频数据发送速率调整其网络接口速率。The rate adjustment unit 32 can adjust the rate according to the rate adjustment notification sent by the monitoring server; or can directly adjust the network interface rate according to the video data transmission rate learned by the monitoring terminal itself.

同样地,双工模式调整单元33可以根据监控服务器发送的双工模式调整通知来执行双工模式的调整;或者还可以根据监控终端自身获知的承载视频数据的传输层协议调整双工模式。Similarly, the duplex mode adjustment unit 33 can adjust the duplex mode according to the duplex mode adjustment notification sent by the monitoring server; or can also adjust the duplex mode according to the transport layer protocol for carrying video data known by the monitoring terminal itself.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (8)

CN201310541216.4A2013-11-042013-11-04A kind of method and apparatus for adjusting monitor terminal work pattern of network interfaceActiveCN103595957B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310541216.4ACN103595957B (en)2013-11-042013-11-04A kind of method and apparatus for adjusting monitor terminal work pattern of network interface

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310541216.4ACN103595957B (en)2013-11-042013-11-04A kind of method and apparatus for adjusting monitor terminal work pattern of network interface

Publications (2)

Publication NumberPublication Date
CN103595957A CN103595957A (en)2014-02-19
CN103595957Btrue CN103595957B (en)2018-01-05

Family

ID=50085923

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310541216.4AActiveCN103595957B (en)2013-11-042013-11-04A kind of method and apparatus for adjusting monitor terminal work pattern of network interface

Country Status (1)

CountryLink
CN (1)CN103595957B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104954282A (en)*2015-05-082015-09-30南车株洲电力机车研究所有限公司Enhanced port adaptive method and system
CN106712899B (en)*2016-11-252020-10-16浙江宇视科技有限公司Port rate adjusting method and device
CN106533802B (en)*2016-12-202019-08-02浙江宇视科技有限公司Network mode of operation switching method and device
DE102018208515A1 (en)*2018-05-292019-12-05Siemens Aktiengesellschaft Method for setting up imaging sensors, computer program product for setting up imaging sensors, sensor device system and installation
CN109769324B (en)*2019-03-282020-12-11深圳爱克莱特科技股份有限公司LED lamp remote control device, LED lamp control card and LED lamp control method
CN111404845A (en)*2020-03-122020-07-10深圳市吉祥腾达科技有限公司Method and device for testing network port rate negotiation function

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101163148A (en)*2006-10-132008-04-16杭州华三通信技术有限公司Ethernet transmission method of supporting non-standard velocity and corresponding device and access equipment
CN101197831A (en)*2007-12-142008-06-11中兴通讯股份有限公司Self-negotiation method for implementing high speed communication equipment velocity
CN101478487A (en)*2009-02-092009-07-08中兴通讯股份有限公司Control method and apparatus for Ethernet exchange device working rate
CN102684980A (en)*2011-03-142012-09-19深圳市恒扬科技有限公司Method for configuring data of network shunt port, system and network shunt

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4537177B2 (en)*2004-11-042010-09-01富士通株式会社 Transmission system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101163148A (en)*2006-10-132008-04-16杭州华三通信技术有限公司Ethernet transmission method of supporting non-standard velocity and corresponding device and access equipment
CN101197831A (en)*2007-12-142008-06-11中兴通讯股份有限公司Self-negotiation method for implementing high speed communication equipment velocity
CN101478487A (en)*2009-02-092009-07-08中兴通讯股份有限公司Control method and apparatus for Ethernet exchange device working rate
CN102684980A (en)*2011-03-142012-09-19深圳市恒扬科技有限公司Method for configuring data of network shunt port, system and network shunt

Also Published As

Publication numberPublication date
CN103595957A (en)2014-02-19

Similar Documents

PublicationPublication DateTitle
US11190570B2 (en)Video encoding using starve mode
CN103595957B (en)A kind of method and apparatus for adjusting monitor terminal work pattern of network interface
KR101455017B1 (en)Link layer reservation of switch queue capacity
EP3042301B1 (en)System and method for real-time traffic delivery
CN106712899B (en)Port rate adjusting method and device
CN117376088A (en) Network anomaly root cause locating method, device and system, computer storage media
CN106789385B (en)Video stream sending method, sending device and network camera
CN102984507B (en)Network association control in a kind of video monitoring system and be concurrently in charge of device
US10440531B2 (en)Service delivery in a communication network
CN103986914B (en)Code rate self-adaption method based on number of client sides in wireless video monitoring system
US11381508B2 (en)System and method for accelerating or decelerating a data transport network protocol based on real time transport network congestion conditions
CN105245826A (en) Method and device for controlling surveillance video stream transmission
CN101106526A (en) A message processing method
CN106254267A (en)A kind of data forwarding paths method of adjustment and gateway device
CN103780429B (en)A kind of method and apparatus for adjusting exchange interface operating rate
US20240080275A1 (en)Method and apparatus for quality of service assurance for webrtc sessions in 5g networks
WO2012011301A1 (en)Video recording system, video recording device, management device and communication traffic control method
Wu et al.Adaptive source-FEC coding for energy-efficient surveillance video over wireless networks
US8837453B2 (en)Methods and apparatus for transmitting data based on interframe dependencies
CN105991468A (en)Diameter congestion response processing method and device
JP7544276B2 (en) Concentrator, congestion control method, and congestion control program
CN111541897A (en)Data transmission method and device
WO2022198464A1 (en)Data transmission method, related device, and communication system
WO2024094277A1 (en)Controlling the sending of at least one picture over a communication network
CN119676455A (en) Ship-to-shore video transmission system and method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp