CN100525314C - Video-recording file transmitting method in multistage video frequency monitoring system - Google Patents
Video-recording file transmitting method in multistage video frequency monitoring system Download PDFInfo
- Publication number
- CN100525314C CN100525314C CNB200610124624XA CN200610124624A CN100525314C CN 100525314 C CN100525314 C CN 100525314C CN B200610124624X A CNB200610124624X A CN B200610124624XA CN 200610124624 A CN200610124624 A CN 200610124624A CN 100525314 C CN100525314 C CN 100525314C
- Authority
- CN
- China
- Prior art keywords
- storage server
- client
- video
- original
- target storage
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012544 monitoring process Methods 0.000 title claims description 45
- 230000005540 biological transmission Effects 0.000 claims abstract description 71
- 238000012546 transfer Methods 0.000 claims abstract description 28
- 230000003828 downregulation Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 239000000725 suspension Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
一种多级视频监控系统中的录像文件传输方法,原始存储服务器上存储的录像文件传输到目标存储服务器包括步骤:在原始存储服务器和目标存储服务器上设置传输模块;在与原始存储服务器或目标存储服务器同级的客户端上设置控制模块;建立客户端与原始存储服务器、目标存储服务器之间的网络连接;原始存储服务器、目标存储服务器向客户端提供传输服务许可;客户端分别与原始存储服务器、目标存储服务器建立传输服务连接,取得待传输文件信息;客户端通过控制模块将传输服务许可和待传输文件信息传递给原始存储服务器;在控制模块控制下,原始存储服务器和目标存储服务器之间建立传输服务连接,待传输文件由原始存储服务器传输到目标存储服务器。
A video file transmission method in a multi-level video surveillance system, the transmission of video files stored on an original storage server to a target storage server includes the steps of: setting a transmission module on the original storage server and the target storage server; Set up the control module on the client at the same level as the storage server; establish the network connection between the client and the original storage server and the target storage server; the original storage server and the target storage server provide the transmission service license to the client; The server and the target storage server establish a transmission service connection to obtain the file information to be transmitted; the client sends the transmission service license and the file information to be transmitted to the original storage server through the control module; under the control of the control module, the connection between the original storage server and the target storage server The transfer service connection is established between them, and the files to be transferred are transferred from the original storage server to the target storage server.
Description
技术领域 technical field
本发明属于视频监控技术领域,特别是多级视频监控系统中的录像文件传输方法。The invention belongs to the technical field of video monitoring, in particular to a video file transmission method in a multi-stage video monitoring system.
背景技术 Background technique
视频监控系统在经历以模拟录像机为代表的模拟监控时代,以硬盘录像机为代表的数字监控时代,以视频服务器为代表的远程监控时代后,正进入联网监控时代。After experiencing the era of analog surveillance represented by analog video recorders, the era of digital surveillance represented by hard disk video recorders, and the era of remote surveillance represented by video servers, the video surveillance system is entering the era of networked surveillance.
在联网监控时代,所有的监控设备均被要求通过网络连接起来,以便实现互联、互通和互控,提供网络监控信息资源共享服务。在联网监控系统中,会形成不同的层次的监控中心,如以城市治安视频监控报警联网系统为例,会形成派出所监控中心、分局监控中心、市局监控中心、省厅监控中心等;如以银行视频监控报警联网系统为例,也会形成县支行监控中心,市支行监控中心、省支行监控中心等。In the era of network monitoring, all monitoring devices are required to be connected through the network in order to achieve interconnection, intercommunication and mutual control, and provide network monitoring information resource sharing services. In the network monitoring system, different levels of monitoring centers will be formed. For example, taking the urban public security video monitoring and alarm network system as an example, there will be police station monitoring centers, sub-bureau monitoring centers, municipal bureau monitoring centers, and provincial department monitoring centers. Taking the bank video monitoring and alarm network system as an example, it will also form a county branch monitoring center, a city branch monitoring center, a provincial branch monitoring center, etc.
在这些视频监控系统中,每个监控中心均会配有存储服务器和客户端。存储服务器主要用来存储视频文件:存储服务器的存储容量根据实际的情况进行配置,存储来自前端监控点的录像资料。客户端主要用来浏览存储服务器中的录像文件和前端监控点的实时图像,也可兼做系统管理和设置工作,例如实现PTZ控制、报警、分组切换、GIS和录像文件的传输控制。在网络监控信息资源的共享要求下,存储服务器需要接受其它级监控中心存储服务器的录像资料,同时被要求向其它级监控中心的存储服务器提供录像资料。录像文件传输并存储后在相应客户端被浏览。In these video surveillance systems, each monitoring center will be equipped with storage servers and clients. The storage server is mainly used to store video files: the storage capacity of the storage server is configured according to the actual situation, and the video data from the front-end monitoring point is stored. The client is mainly used to browse the video files in the storage server and the real-time images of the front-end monitoring points. It can also be used for system management and setting, such as PTZ control, alarm, group switching, GIS and video file transmission control. Under the sharing requirements of network monitoring information resources, the storage server needs to accept the video data of the storage servers of other monitoring centers, and is required to provide video data to the storage servers of other monitoring centers. After the video file is transmitted and stored, it can be browsed on the corresponding client.
在实际应用中,需要通过客户端把本级监控中心存储服务器的录像资料发送到上级监控中心的存储服务器中,如派出所监控中心存储服务器上的录像资料发送到分局监控中心的存储服务器,县支行监控中心存储服务器上的录像资料发送到市支行监控中心的存储服务器等,这个过程被称为录像资料的上传。同时也需要将下级监控中心存储服务器上的录像资料提取到本级监控中心的存储服务器,如在市局监控中心提取分局监控中心上存储服务器的录像资料,省支行监控中心提出县支行监控中心存储服务器上的录像资料,这个过程被称为录像资料的下调。无论上传或下调,传输录像文件的原理实质相同。目前传输视频文件所用方法的原理是:待传输的录像文件所在原始存储服务器、预备传输到的目标存储服务器,这两者之间直接建立网络联系进行传输,若传输控制权处于原始存储服务器的级别就是上传,若传输控制权处于目标存储服务器的级别就是下调。这种方法的缺点在于,需要在存储服务器所在位置进行现场操作,并且由于缺乏有效的控制机制,安全性低,失误率高,遇到存储空间不够、传输带宽不够等情况不能做出及时有效的反应,不能满足全局实时监控的安全防范要求。目前关键的技术问题在于,如何便捷高效地实现多级视频监控系统中的录像文件传输。In practical applications, it is necessary to send the video data of the storage server of the monitoring center at the same level to the storage server of the superior monitoring center through the client. The video data on the storage server of the monitoring center is sent to the storage server of the municipal sub-branch monitoring center, etc., and this process is called uploading of video data. At the same time, it is also necessary to extract the video data on the storage server of the lower-level monitoring center to the storage server of the same-level monitoring center. The video data on the server, this process is called the downregulation of the video data. Regardless of uploading or downloading, the principle of transferring video files is essentially the same. The principle of the method currently used to transfer video files is: the original storage server where the video file to be transferred is located, and the target storage server to be transferred to, and a network connection is directly established between the two for transfer. If the transfer control is at the level of the original storage server It is uploading, and if the transfer control is at the level of the target storage server, it is downgrading. The disadvantage of this method is that it needs to be operated on site at the location of the storage server, and due to the lack of an effective control mechanism, the security is low and the error rate is high. response, which cannot meet the security requirements of global real-time monitoring. The key technical problem at present is how to conveniently and efficiently realize video file transmission in a multi-level video surveillance system.
发明内容 Contents of the invention
本发明目的在于针对各级监控中心存储服务器之间的录像资料传输提供一种方法。The purpose of the present invention is to provide a method for video data transmission between storage servers of monitoring centers at all levels.
为实现上述目的,本发明将原始存储服务器上存储的录像文件传输到目标存储服务器包括下述步骤:在原始存储服务器和目标存储服务器上设置传输模块,并挂入存储服务器的操作系统;在与原始存储服务器或目标存储服务器同级的客户端上设置控制模块,并挂入客户端的操作系统;客户端通过控制模块建立客户端分别与原始存储服务器、目标存储服务器之间的网络连接;经过网络连接,原始存储服务器、目标存储服务器分别通过传输模块向客户端提供传输服务许可;客户端分别与原始存储服务器、目标存储服务器建立传输服务连接,通过传输服务连接在原始存储服务器选择待传输文件,并从目标存储服务器取得待传输文件存储路径;客户端通过控制模块将目标存储服务器的传输服务许可和待传输文件存储路径传递给原始存储服务器;在控制模块控制下,原始存储服务器和目标存储服务器之间建立传输服务连接,待传输文件由原始存储服务器传输到目标存储服务器。In order to achieve the above object, the present invention transmits the video files stored on the original storage server to the target storage server and includes the following steps: setting the transmission module on the original storage server and the target storage server, and inserting the operating system of the storage server; Set up a control module on the client at the same level as the original storage server or the target storage server, and hang it into the operating system of the client; the client establishes a network connection between the client and the original storage server and the target storage server through the control module; connection, the original storage server and the target storage server respectively provide the transmission service license to the client through the transmission module; the client respectively establishes a transmission service connection with the original storage server and the target storage server, selects the file to be transmitted on the original storage server through the transmission service connection, And obtain the storage path of the file to be transmitted from the target storage server; the client passes the transmission service permission of the target storage server and the storage path of the file to be transmitted to the original storage server through the control module; under the control of the control module, the original storage server and the target storage server A transfer service connection is established between them, and the files to be transferred are transferred from the original storage server to the target storage server.
而且,所述客户端分别与原始存储服务器、目标存储服务器之间的网络连接,是基于Socket协议的TCP/IP连接。Moreover, the network connections between the client and the original storage server and the target storage server are TCP/IP connections based on the Socket protocol.
而且,所述传输服务连接是FTP连接,所述传输服务许可的内容包括FTP连接的用户名和密码。Moreover, the transmission service connection is an FTP connection, and the content permitted by the transmission service includes a username and password for the FTP connection.
而且,在待传输文件由原始存储服务器传输到目标存储服务器的过程中,客户端实时监测传输过程中的各种状况,定时监测原始存储服务器和目标存储服务器的网络状况,若原始存储服务器和目标存储服务器中任一的剩余网络带宽不能满足要求,通知原始存储服务器和目标存储服务器暂停传输过程,直到剩余网络带宽满足要求后继续传输。Moreover, during the process of transferring files to be transferred from the original storage server to the target storage server, the client monitors various conditions in the transmission process in real time, and regularly monitors the network status of the original storage server and the target storage server. If the remaining network bandwidth of any of the storage servers cannot meet the requirements, the original storage server and the target storage server are notified to suspend the transmission process until the remaining network bandwidth meets the requirements and continue the transmission.
本发明利用多级视频监控系统中的客户端控制系统中各级监控中心间的录像文件传递,能够安全高效的进行远程控制,能够应对各种硬件和网络条件,能够加强多级视频监控系统的功用。The present invention utilizes the video file transmission between the monitoring centers at all levels in the client control system in the multi-level video monitoring system, can perform remote control safely and efficiently, can cope with various hardware and network conditions, and can strengthen the performance of the multi-level video monitoring system. function.
附图说明 Description of drawings
图1是本发明原理示意图。Fig. 1 is a schematic diagram of the principle of the present invention.
图2是本发明上传实施例中客户端的流程图。Fig. 2 is a flow chart of the client in the uploading embodiment of the present invention.
图3是本发明上传实施例中本级存储服务器的流程图。Fig. 3 is a flow chart of the current storage server in the uploading embodiment of the present invention.
图4是本发明上传实施例中上级存储服务器的流程图。Fig. 4 is a flow chart of the upper-level storage server in the uploading embodiment of the present invention.
图5是本发明下调实施例中客户端的流程图。Fig. 5 is a flow chart of the client in the down-regulation embodiment of the present invention.
图6是本发明下调实施例中本级存储服务器的流程图。Fig. 6 is a flow chart of the storage server at the current level in the downscaling embodiment of the present invention.
图7是本发明下调实施例中下级存储服务器的流程图。FIG. 7 is a flowchart of a lower-level storage server in a downscaling embodiment of the present invention.
具体实施方式 Detailed ways
参见附图,本发明所述多级视频监控系统包括不同级别监控中心,每级监控中心设有存储服务器和客户端,存储服务器存储着来自监控点的录像文件,客户端可以浏览存储服务器中的录像文件。本发明将原始存储服务器上存储的录像文件传输到目标存储服务器包括下述步骤:在原始存储服务器和目标存储服务器上设置传输模块,并挂入存储服务器的操作系统;在与原始存储服务器或目标存储服务器同级的客户端上设置控制模块,并挂入客户端的操作系统;客户端通过控制模块建立客户端分别与原始存储服务器、目标存储服务器之间的网络端口连接;经网络端口连接,原始存储服务器、目标存储服务器分别通过传输模块向客户端提供传输服务许可;客户端分别与原始存储服务器、目标存储服务器建立传输服务连接,通过传输服务连接在原始存储服务器选择待传输文件,并从目标存储服务器取得待传输文件存储路径;客户端通过控制模块将目标存储服务器的传输服务许可和待传输文件存储路径传递给原始存储服务器;在控制模块控制下,原始存储服务器和目标存储服务器之间建立传输服务连接,待传输文件由原始存储服务器传输到目标存储服务器。在与原始存储服务器同级的客户端上设置控制模块,然后由该客户端控制传输的,即为上传;在与目标存储服务器同级的客户端上设置控制模块,然后由该客户端控制传输的,即为上传。参见说明书附图中图1,一级监控中心内包括存储服务器A、客户端C,二级监控中心内包括存储服务器B、客户端D,实箭头表示上载过程中的数据传输,虚箭头表示下调过程中的数据传输。Referring to the accompanying drawings, the multi-level video monitoring system of the present invention includes different levels of monitoring centers, each level of monitoring center is provided with a storage server and a client, the storage server stores the video files from the monitoring point, and the client can browse the video files in the storage server. video files. The present invention transmits the video file stored on the original storage server to the target storage server and includes the following steps: setting a transmission module on the original storage server and the target storage server, and inserting into the operating system of the storage server; Set up the control module on the client at the same level as the storage server, and hang it into the operating system of the client; the client establishes the network port connection between the client and the original storage server and the target storage server respectively through the control module; The storage server and the target storage server respectively provide the transfer service license to the client through the transfer module; the client respectively establishes a transfer service connection with the original storage server and the target storage server, selects the file to be transferred on the original storage server through the transfer service connection, and downloads the file from the target The storage server obtains the storage path of the file to be transferred; the client passes the transmission service permission of the target storage server and the storage path of the file to be transferred to the original storage server through the control module; under the control of the control module, the original storage server and the target storage server establish The transfer service is connected, and the files to be transferred are transferred from the original storage server to the target storage server. If the control module is set on the client at the same level as the original storage server, and then the client controls the transmission, it is uploading; the control module is set on the client at the same level as the target storage server, and then the client controls the transmission is uploaded. Refer to Figure 1 in the accompanying drawings, the primary monitoring center includes storage server A and client C, and the secondary monitoring center includes storage server B and client D. Solid arrows indicate data transmission during uploading, and dashed arrows indicate down-regulation Data transfer in process.
具体实施时,多级视频监控系统中的传输方向是根据具体需要和控制位置而定的,即每个存储服务器都可能是原始存储服务器或目标存储服务器,每个客户端都可能用来控制传输。因此为了满足在多级视频监控系统任意两级监控中心以上载或下调方式传输的需要,本发明在实施时首先在多级视频监控系统中的各级存储服务器和客户端上均设置相应的支持软件模块,以便可持续、可重复、可调控地进行传输。In the specific implementation, the transmission direction in the multi-level video surveillance system is determined according to the specific needs and the control position, that is, each storage server may be the original storage server or the target storage server, and each client may be used to control the transmission . Therefore, in order to meet the needs of uploading or downloading transmission in any two-level monitoring center of the multi-level video monitoring system, the present invention firstly sets corresponding support on all levels of storage servers and clients in the multi-level video monitoring system during implementation. Software modules for sustainable, repeatable, and controllable delivery.
现代操作系统一般都提供一个抽象的文件系统接口模型,后续开发者可以挂入自己开发的特定的文件系统。本发明所谓模块,即是基于目前计算机软件技术,运用模块化编程思想提供用于传输支持的特定文件系统。本发明在存储服务器中设置传输模块,支持访问控制、带宽计算、文件传输。同时在客户端上配置一个控制模块,实行整个传输过程的控制。本发明将录像资料的数据称为录像文件,实际上根据具体的监控内容和存放格式,也可能有视频文件、声频文件、报警信号等。所谓目标存储服务器并非一定是原始存储服务器的邻级存储服务器,而可以是多级视频监控系统中其它任何监控中心的存储服务器,即是说,任意两个存储服务器之间均可传输录像文件。而且由于视频监控系统中的级别往往是人们根据管辖权限规律来划分,因此事实上本发明适用于各种监控系统而不限于系统具体构成。Modern operating systems generally provide an abstract file system interface model, and subsequent developers can mount specific file systems developed by themselves. The so-called module of the present invention refers to a specific file system for transmission support based on the current computer software technology and using the idea of modular programming. The invention sets a transmission module in the storage server to support access control, bandwidth calculation and file transmission. At the same time, a control module is configured on the client to control the entire transmission process. In the present invention, the data of video data is called video file. In fact, according to the specific monitoring content and storage format, there may also be video files, audio files, alarm signals, etc. The so-called target storage server is not necessarily the adjacent storage server of the original storage server, but can be the storage server of any other monitoring center in the multi-level video surveillance system, that is to say, video files can be transmitted between any two storage servers. And because the levels in the video monitoring system are often divided by people according to the rules of jurisdiction, in fact the present invention is applicable to various monitoring systems and is not limited to the specific configuration of the system.
为了适应多级视频监控系统中可能出现的不同底层通信软件和具体操作系统,所述客户端与原始存储服务器、目标存储服务器之间的网络连接,是基于Socket协议的TCP/IP(传输控制/网际协议)连接。Socket是建立在传输层协议上的一种套接字规范,定义两台计算机间进行通信的规范(也是一种编程规范),屏蔽了底层通信软件和具体操作系统的差异。Socket令任何两台安装了TCP协议软件和实现了套接字规范的计算机之间都可以通信。In order to adapt to different underlying communication software and specific operating systems that may occur in the multi-level video surveillance system, the network connection between the client and the original storage server and the target storage server is TCP/IP (Transmission Control/IP) based on the Socket protocol. Internet Protocol) connection. Socket is a socket specification based on the transport layer protocol, which defines the specification for communication between two computers (also a programming specification), and shields the differences between the underlying communication software and the specific operating system. Socket enables communication between any two computers that have installed TCP protocol software and implemented the socket specification.
为了方便的实现文件传输,所述原始存储服务器和目标存储服务器之间的传输服务连接是FTP连接,本发明中传输服务许可的内容包括FTP连接的用户名和密码。FTP协议即文件传输协议,它是一个标准协议,FTP协议也是应用TCP/IP协议的应用协议标准,它是在计算机和网络之间交换文件的最简单的方法。如果网络带宽不足,传输无法正常进行,因此需要事先确定本级存储服务器和目标存储服务器分别的网络带宽,才能保障顺利传输。In order to realize file transfer conveniently, the transfer service connection between the original storage server and the target storage server is an FTP connection, and the content of the transfer service permission in the present invention includes the user name and password of the FTP connection. The FTP protocol is the file transfer protocol. It is a standard protocol. The FTP protocol is also an application protocol standard using the TCP/IP protocol. It is the easiest way to exchange files between computers and networks. If the network bandwidth is insufficient, the transmission cannot be carried out normally. Therefore, it is necessary to determine the respective network bandwidths of the current storage server and the target storage server in advance to ensure smooth transmission.
值得注意的是,本发明客户端与原始存储服务器、目标存储服务器之间首先建立的TCP/IP连接是网络端口与端口之间的连接,即传输层连接。因此待传输文件信息的传递也需要通过客户端与原始存储服务器、目标存储服务器另外建立应用层连接来获得,例如目标存储服务器接受待传输录像文件的文件路径(本发明称为待传输文件存储路径)、原始存储服务器中待传输录像文件的文件夹路径。这种应用层连接需求同样可以采用FTP连接实现,由于使用FTP需要得到用户名和密码,客户端获取待传输文件信息在取得本级存储服务器、目标存储服务器的FTP用户名和密码并建立FTP连接之后。传递文件路径和文件名采用FTP这类的应用层连接这样处理器来比较简单。FTP连接也可以不用用户名和密码,采用匿名访问方式,本发明实施例为了安全设定必须要用户名和密码。It should be noted that the first TCP/IP connection established between the client and the original storage server and the target storage server in the present invention is a network port-to-port connection, that is, a transport layer connection. Therefore, the transfer of the file information to be transmitted also needs to be obtained by establishing an application layer connection between the client and the original storage server and the target storage server. ), the folder path of the video files to be transferred in the original storage server. This kind of application layer connection requirement can also be realized by FTP connection. Since the user name and password are required to use FTP, the client obtains the file information to be transferred after obtaining the FTP user name and password of the current storage server and the target storage server and establishing an FTP connection. It is relatively simple to pass the file path and file name to the processor using an application layer connection such as FTP. FTP connection also can not use user name and password, adopts anonymous access mode, and the embodiment of the present invention must need user name and password for safe setting.
为了防止传输出错,在待传输文件由原始存储服务器传输到目标存储服务器的过程中,客户端需要实时监测传输过程中的各种状况,定时监测原始存储服务器和目标存储服务器的网络状况,若原始存储服务器和目标存储服务器中任一的剩余网络带宽不能满足要求,通知原始存储服务器和目标存储服务器暂停传输过程,直到剩余网络带宽满足要求后继续传输。监测传输过程中的各种状况包括启动、传输、暂停、完成、出错等,出错则可以重传。在实施例中,实时检测通过一系列具体步骤实现,本发明为简便起见总结为实时检测步骤。In order to prevent transmission errors, during the process of transferring files to be transferred from the original storage server to the target storage server, the client needs to monitor various conditions during the transmission process in real time, and regularly monitor the network status of the original storage server and the target storage server. If the remaining network bandwidth of any one of the storage server and the target storage server cannot meet the requirements, the original storage server and the target storage server are notified to suspend the transmission process, and continue the transmission until the remaining network bandwidth meets the requirements. Monitor various conditions during the transmission process, including start, transmission, pause, completion, error, etc. If an error occurs, it can be retransmitted. In the embodiment, the real-time detection is realized through a series of specific steps, and the present invention is summarized as the real-time detection steps for the sake of simplicity.
由于具体传输实施时分为上传和下调两种情况,本发明提供上传和下调两种实施例,分别描述客户端、原始存储服务器、目标存储服务器的工作流程,以便进行实施。注意工作流程描述中出现的上级存储服务器、本级存储服务器、下级存储服务器、本机等概念都是相对于运行具体流程的主体而言。实现工作流程的软件即是所述传输模块和控制模块。值得注意的是,由于多级视频监控系统中某个存储服务器往往既作为原始存储服务器用来提供视频文件,也作为取得视频文件的目标存储服务器,并且这两种职能所需的处理过程类似,因此多级视频监控系统中的存储服务器采用相同的控制模块即可。Since the implementation of specific transmission is divided into two cases of uploading and downsizing, the present invention provides two embodiments of uploading and downsizing, respectively describing the workflow of the client, the original storage server, and the target storage server for implementation. Note that the concepts of upper-level storage server, lower-level storage server, lower-level storage server, and local machine appearing in the workflow description are all relative to the subject running the specific process. The software for realizing the workflow is the transmission module and the control module. It is worth noting that a storage server in a multi-level video surveillance system is often used as both the original storage server to provide video files and the target storage server to obtain video files, and the processing procedures required for these two functions are similar. Therefore, the storage servers in the multi-level video surveillance system can use the same control module.
以下分上传和下调两种实施例进行具体说明以便实施:The following is divided into two embodiments of uploading and downregulation for specific description so as to implement:
(1)上传,采用与原始存储服务器同级的客户端进行控制。(1) Uploading is controlled by a client at the same level as the original storage server.
客户端的工作流程Client Workflow
111)客户端首先需要和上级存储服务器(即上传实施例的目标存储服务器)通过Socket建立TCP/IP连接,获取上级存储服务器当前的FTP服务(FileTransfer Protocol)的用户名和密码。111) The client first needs to establish a TCP/IP connection with the upper-level storage server (ie, the target storage server of the upload embodiment) through Socket, and obtain the user name and password of the current FTP service (FileTransfer Protocol) of the upper-level storage server.
112)获取上级存储服务器目前网络资源的使用情况;112) Obtain the current usage of network resources of the upper-level storage server;
本发明加入了根据网络资源情况判断剩余带宽是否满足要求的步骤112a),如剩余带宽大于传输一路录像文件的带宽,说明上级存储服务器能够接受下级存储服务器传输过来的录像文件,即满足要求,则客户端和上级存储服务器建立FTP联系,搜索到接受上传录像文件的文件路径,并将此文件夹列表回送到客户端;如果不能满足,跳转到步骤118)结束上传。The present invention adds the
113)客户端和本级存储服务器(与客户端同级的存储服务器,即上传实施例的原始存储服务器)通过Socket建立TCP/IP联系,获取本级存储服务器当前的FTP服务的用户名和密码。113) The client and the storage server at the same level (the storage server at the same level as the client, i.e. the original storage server in the uploading embodiment) establish a TCP/IP connection through Socket to obtain the username and password of the current FTP service of the storage server at the current level.
114)获取本级存储服务器目前网络带宽的网络资源的使用情况,114) Obtain the usage situation of the network resources of the current network bandwidth of the storage server at this level,
本发明加入了根据网络资源情况判断剩余带宽是否满足要求的步骤114a,如剩余带宽大于传输一路录像文件的带宽,说明本级存储服务器能够向上级存储服务器上传录像文件;如果剩余带宽不能满足要求,跳转到步骤118)结束上传。The present invention adds the
115)客户端和本级存储服务器建立FTP连接,按地点、时间、设备型号或通道号搜索到需要上传录像文件的文件夹路径,并选择需要上传的录像文件。115) The client end establishes an FTP connection with the storage server of this level, searches for the folder path of the video file to be uploaded according to the location, time, device model or channel number, and selects the video file to be uploaded.
116)客户端将上级存储服务器的FTP的用户名和密码,连同选中的录像文件的文件夹和文件名,以及上级存储服务器接收录像文件的文件夹存储路径,一起发送给本级存储服务器。116) The client sends the user name and password of the FTP of the upper-level storage server to the current-level storage server together with the folder and file name of the selected video file, and the storage path of the folder where the upper-level storage server receives the video file.
117)客户端控制本级存储服务器和上级存储服务器建立FTP连接,启动文件传送,117) The client controls the storage server at the current level to establish an FTP connection with the storage server at the upper level, and starts file transfer,
本发明加入了实施监控步骤117a),实时监测传输过程中的各种状况,如启动、传输、暂停、完成、出错等,定时监测本级存储服务器和上级存储服务器的网络状况,只要本级存储服务器和上级存储服务器中的任意一个的剩余网络带宽不能满足要求,通知本级存储服务器和上级存储服务器暂停上传过程,直到剩余网络带宽满足要求,在不超时的情况下,继续监测本级存储服务器和上级存储服务器的网络状况,直到满足带宽则传输文件,直到完成传输;超时则进入步骤118)结束上传。The present invention adds
118)完成本次录像文件的上传,获取并记录有关上传的过程的相关参数,如结果、时间、状况等,关闭所有FTP连接。118) Complete the uploading of this video file, obtain and record relevant parameters of the uploading process, such as result, time, status, etc., and close all FTP connections.
本级存储服务器的流程The process of the storage server at this level
121)本级存储服务器和客户端通过Socket建立TCP/IP连接,将本级存储服务器当前的FTP服务的用户名和密码发送给客户端;121) The current level storage server and the client establish a TCP/IP connection through Socket, and send the user name and password of the current FTP service of the current level storage server to the client;
122)获取目前网络资源的使用情况,发送给客户端;122) Obtain the usage status of the current network resource and send it to the client;
123)本级存储服务器和客户端建立FTP连接,并按客户端提出的地点、时间、设备型号或通道号等查询要求,搜索到需要上传录像文件的文件夹路径,选择需要上传的录像文件信息到客户端;123) The storage server at this level establishes an FTP connection with the client, and searches for the folder path where the video file needs to be uploaded according to the location, time, device model or channel number proposed by the client, and selects the video file information to be uploaded to the client;
124)从客户端获取上级存储服务器的FTP的用户名和密码,以及上级存储服务器接收录像文件的文件夹;124) obtain the user name and the password of the FTP of the upper-level storage server from the client, and the folder where the upper-level storage server receives the video files;
125)在客户端控制下,和上级存储服务器建立FTP连接,进行文件传送,直到传输过程结束。125) Under the control of the client, establish an FTP connection with the upper-level storage server, and perform file transfer until the end of the transfer process.
本发明加入了实施监控步骤125a),实时监测传输过程中的各种状况,如启动、传输、暂停、完成、出错等,以及将本级存储服务器的剩余的网络带宽发送给客户端,并且响应客户端的要求暂停传送请求重新发送网络带宽,响应客户端的要求结束传送请求跳转到步骤126)结束上传。The present invention adds implementation monitoring step 125a), real-time monitoring of various conditions in the transmission process, such as startup, transmission, suspension, completion, error, etc., and sends the remaining network bandwidth of the storage server at this level to the client, and responds The request of the client suspends the transmission request and resends the network bandwidth, and the end of the transmission request in response to the client's request jumps to step 126) to end the upload.
126)结束本次录像文件的上传,关闭FTP连接。126) End the uploading of this video file, and close the FTP connection.
上级存储服务器的流程Process of upper-level storage server
131)和客户端通过Socket建立TCP/IP联系,获取本机当前的FTP服务的用户名和密码;131) Establish a TCP/IP connection with the client through Socket to obtain the user name and password of the current FTP service of this machine;
132)获取目前本机(即上传实施例的目标存储服务器)网络资源的使用情况,发送给客户端;132) Obtain the usage of the network resources of the current local machine (that is, the target storage server of the upload embodiment), and send it to the client;
133)和客户端建立FTP联系,搜索到接受上传录像文件的文件路径,并将此文件夹列表回送到客户端,并将本机当前的FTP服务的用户名和密码发送给客户端;133) establish FTP connection with client, search to accept the file path of uploading video file, and this folder list is sent back to client, and the username and password of the current FTP service of this machine are sent to client;
134)在客户端的控制下和下级存储服务器(即上传实施例的原始存储服务器)建立FTP连接,接受传送文件,直到完成接收。134) Under the control of the client, establish an FTP connection with the lower-level storage server (ie, the original storage server in the uploading embodiment), and accept and transmit the file until the receiving is completed.
本发明加入了实施监控步骤134a),实时监测传输过程中的各种状况,如启动、传输、暂停、完成、出错等,以及将本机的剩余的网络带宽发送给客户端,并且响应客户端的要求暂停接受请求暂停接收并重新发送网络带宽,响应客户端的要求结束接受请求跳转到步骤135)结束接受录像文件。The present invention adds
135)结束本次录像文件上传过程,关闭FTP连接。135) End the uploading process of this video file, and close the FTP connection.
(2)下调,采用与目标存储服务器同级的客户端进行控制。(2) For down-regulation, the client at the same level as the target storage server is used for control.
客户端流程client process
211)客户端和下级存储服务器(即下调实施例的原始存储服务器)通过Socket建立TCP/IP连接,获取下级存储服务器的FTP服务的用户名和密码;211) The client and the lower-level storage server (i.e. the original storage server in the down-regulated embodiment) establish a TCP/IP connection through Socket, and obtain the user name and password of the FTP service of the lower-level storage server;
212)客户端获取下级存储服务器的网络资源状况,212) The client obtains the network resource status of the lower-level storage server,
本发明加入了根据网络资源情况判断剩余带宽是否满足要求的步骤212a),如剩余带宽大于传输一路录像文件的带宽,说明下级存储服务器满足要求,能够传输录像文件,则继续下调控制工作;如果不能满足,说明剩余带宽不能满足要求,跳转到步骤218)结束下调。The present invention has added the step 212a) of judging whether the remaining bandwidth satisfies the requirements according to the network resource situation, if the remaining bandwidth is greater than the bandwidth for transmitting one-way video files, it means that the lower-level storage server meets the requirements and can transmit the video files, then continue to lower the control work; if not Satisfied, indicating that the remaining bandwidth cannot meet the requirements, jump to step 218) to end the downward adjustment.
213)和本级存储服务器(即下调实施例的目标存储服务器)通过Socket建立TCP/IP连接,获取本级存储服务器的FTP服务的用户名和密码;213) establish a TCP/IP connection with the storage server of the current level (i.e. the target storage server of the down-regulation embodiment) through Socket, and obtain the user name and password of the FTP service of the storage server of the current level;
214)获取本级存储服务器的网络资源的状况,214) Obtain the status of the network resources of the storage server at this level,
本发明加入了根据网络资源情况判断剩余带宽是否满足要求的步骤214a),如剩余带宽大于传输一路录像文件的带宽,说明本级存储服务器能够接受下级存储服务器传输的录像文件,满足继续下调过程的要求;不能满足,说明剩余带宽不能满足要求,跳转到步骤218)结束下调。The present invention adds the step 214a) of judging whether the remaining bandwidth meets the requirements according to the network resource situation. If the remaining bandwidth is greater than the bandwidth for transmitting a video file, it means that the storage server at this level can accept the video file transmitted by the storage server at the lower level, and satisfies the requirements for continuing the downward adjustment process. Requirement; cannot be met, indicating that the remaining bandwidth cannot meet the requirement, and jump to step 218) to end the downward adjustment.
215)客户端和下级存储服务器建立FTP连接,按客户端的要求,如地点、时间、设备型号或通道号查询需要上级存储服务器下调的录像文件夹路径,并选中所需下调的录像文件,发送给客户端;215) The client and the lower-level storage server establish an FTP connection, and query the video folder path that needs to be lowered by the upper-level storage server according to the requirements of the client, such as location, time, device model or channel number, and select the video file that needs to be lowered, and send it to client;
216)和本级存储服务器建立FTP连接,获取下调录像文件存放的文件夹,即下调录像文件夹的存储路径;216) Set up an FTP connection with the storage server of this level to obtain the folder where the down-recorded video file is stored, that is, the storage path of the down-down video folder;
217)客户端通知本级存储服务器和下级存储服务器建立FTP连接,进行文件传输,217) The client notifies the storage server at the current level and the storage server at the lower level to establish an FTP connection for file transfer,
本发明加入了实施监控步骤217a),实时监测传输过程中的各种状况,如启动、传输、暂停、完成、出错等,定时监测本级存储服务器和下级存储服务器的网络状况,只要本级存储服务器和下级存储服务器中的任意一个的剩余网络带宽不能满足要求,通知本级存储服务器和下级存储服务器暂停上传过程,直到剩余网络带宽满足要求,在不超时的情况下,继续监测本级存储服务器和下级存储服务器的网络状况,满足带宽则传输文件,直到完成传输;超时则进入步骤218)结束下调The present invention adds
218)完成本次录像文件的下调,获取并记录有关下调过程的相关参数,如结果、时间、状况等,关闭所有连接。218) Complete the down-regulation of the video file, obtain and record relevant parameters related to the down-regulation process, such as result, time, status, etc., and close all connections.
本级存储服务器的流程The process of the storage server at this level
221)和客户端通过Socket建立TCP/IP连接,发送本级存储服务器的FTP服务的用户名和密码给客户端;221) establish a TCP/IP connection with the client through Socket, and send the user name and password of the FTP service of the storage server at this level to the client;
222)获取本级存储服务器的网络资源的状况,发送给客户端;222) Obtain the status of the network resources of the storage server at the current level, and send it to the client;
223)和客户端建立FTP连接,查询下调录像文件存放的文件夹路径并发送给客户端;223) establish an FTP connection with the client, query the folder path where the recorded video file is stored and send it to the client;
224)从客户端获取相关命令,和上级存储服务器建立FTP连接,进行文件传送;224) Obtain relevant commands from the client, establish an FTP connection with the upper-level storage server, and perform file transfer;
本发明加入了实施监控步骤224a),实时监测传输过程中的各种状况,如启The present invention has added implementation monitoring step 224a), real-time monitoring various situations in the transmission process, such as start-up
动、传输、暂停、完成、出错等,并且响应客户端的要求暂停接收请求重新发送网络带宽,响应客户端的要求结束接收请求跳转到步骤225)结束接受录像文件。Start, transmit, pause, complete, make mistakes, etc., and respond to the client's request to suspend the receiving request to resend the network bandwidth, and respond to the client's request to end the receiving request and jump to step 225) to end accepting the video file.
225)结束本次录像文件下调过程,关闭FTP连接。225) End the downward adjustment process of the video file, and close the FTP connection.
下级存储服务器的流程Flow of lower-level storage server
231)和客户端通过Socket建立TCP/IP连接,将FTP服务的用户名和密码,发送给客户端;231) establish a TCP/IP connection with the client through the Socket, and send the user name and password of the FTP service to the client;
232)获取目前本机(即下调实施例的原始存储服务器)的网络资源状况,发送给客户端;232) Obtain the network resource status of the current local machine (ie, the original storage server in the down-regulated embodiment), and send it to the client;
233)和客户端建立FTP连接,按客户端的要求,如地点、时间、设备型号或通道号查询需要上级存储服务器下调的录像文件夹路径,并选中所需的录像文件,发送给客户端;233) establish an FTP connection with the client, according to the requirements of the client, such as location, time, device model or channel number, query the video folder path that needs to be lowered by the superior storage server, and select the required video file, and send it to the client;
234)从客户端获取相关命令,和上级存储服务器建立FTP连接启动文件传输;234) Obtain relevant commands from the client, and establish an FTP connection with the upper-level storage server to start file transfer;
本发明加入了实施监控步骤234a),实时监测传输过程中的各种状况,如启动、传输、暂停、完成、出错等,并且响应客户端的要求暂停发送请求暂停下调过程并重新发送本机网络带宽状况,响应客户端的要求结束发送请求跳转到步骤235)结束发送录像文件。The present invention adds implementation monitoring step 234a), monitors various conditions in the transmission process in real time, such as startup, transmission, suspension, completion, error, etc., and responds to the request of the client to suspend the sending request, suspend the down-regulation process and resend the local network bandwidth Situation, in response to the request of the client end sending the request and jumping to step 235) to end sending the video file.
235)结束本次录像文件下调过程,关闭FTP连接。235) End the downward adjustment process of the video file, and close the FTP connection.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610124624XA CN100525314C (en) | 2006-09-27 | 2006-09-27 | Video-recording file transmitting method in multistage video frequency monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200610124624XA CN100525314C (en) | 2006-09-27 | 2006-09-27 | Video-recording file transmitting method in multistage video frequency monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1933490A CN1933490A (en) | 2007-03-21 |
CN100525314C true CN100525314C (en) | 2009-08-05 |
Family
ID=37879106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200610124624XA Expired - Fee Related CN100525314C (en) | 2006-09-27 | 2006-09-27 | Video-recording file transmitting method in multistage video frequency monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100525314C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873481A (en) * | 2010-03-01 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | Method and system for playing back videos in video monitoring system and network monitoring client side |
CN104184987A (en) * | 2014-02-24 | 2014-12-03 | 无锡天脉聚源传媒科技有限公司 | Data returning method and system |
CN110933351A (en) * | 2019-11-21 | 2020-03-27 | 徐州云创电子科技有限公司 | Multistage storage type video recorder |
CN118842795B (en) * | 2024-09-23 | 2025-01-07 | 西北工业大学 | Distribution and transmission method, system and equipment for digital twin data of aircraft |
-
2006
- 2006-09-27 CN CNB200610124624XA patent/CN100525314C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1933490A (en) | 2007-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100125735A1 (en) | Method and System for Establishing a User-Friendly Data Transfer Service Application Executing Within a Heterogeneous Distributed Service Application Execution Environment | |
CN105100708B (en) | Request processing method and device | |
CN102594862A (en) | Digital content management | |
US20070005768A1 (en) | Method and system for providing streaming service in home network | |
US20100036950A1 (en) | Method and apparatus for providing home contents | |
WO2008016694A2 (en) | Improved distribution of content on a network | |
US20210160294A1 (en) | Methods, devices, and systems for live video streaming from a remote location based on a received request utilizing keep alive messages | |
KR102059384B1 (en) | System for managing cloud streaming server, method of managing cloud streaming server and apparatus for the same | |
WO2002093846A1 (en) | Method of transferring a divided file | |
EP3059945A1 (en) | Method and system for video surveillance content adaptation, and central server and device | |
CN102333127A (en) | Resource downloading method, device and system | |
US20060271934A1 (en) | Computer-readable recording medium recording a service control program, and service control device and method | |
CN111654526B (en) | Load balancing method and system for streaming media server | |
CN104270604A (en) | Method, system and device for obtaining real-time video data of IPC | |
WO2017088575A1 (en) | Encryption mechanism-based ipc service implementation method and system | |
CN100525314C (en) | Video-recording file transmitting method in multistage video frequency monitoring system | |
CN116996915A (en) | Sensing function activation method, device, equipment and storage medium | |
KR20020061288A (en) | Network Digital Video Control Server System | |
CN114125845B (en) | Intelligent equipment automatic networking method and device based on Internet of things | |
TW201427450A (en) | Method and system for controlling flow of content delivery network and peer to peer network | |
CN106657116B (en) | A method and device for remotely enabling streaming data transmission | |
CN117955980B (en) | Multi-cluster nano-tube method, platform, equipment and storage medium | |
CN115955358B (en) | Data stream transmission system based on point-to-point communication | |
CN109831467B (en) | Data transmission method, equipment and system | |
KR100823730B1 (en) | P2P based streaming service providing method and apparatus, streaming service system using same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090805 Termination date: 20140927 |
|
EXPY | Termination of patent right or utility model |