CN1750651A - A multimedia monitoring system - Google Patents
A multimedia monitoring system Download PDFInfo
- Publication number
- CN1750651A CN1750651A CN 200510117402 CN200510117402A CN1750651A CN 1750651 A CN1750651 A CN 1750651A CN 200510117402 CN200510117402 CN 200510117402 CN 200510117402 A CN200510117402 A CN 200510117402A CN 1750651 A CN1750651 A CN 1750651A
- Authority
- CN
- China
- Prior art keywords
- client
- server
- information
- domain
- registration
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种基于图像视频监控的多媒体监控系统。The invention relates to a multimedia monitoring system based on image and video monitoring.
技术背景technical background
随着多媒体技术的发展,多媒体监控系统越来越多地被用在安全作业、治安防范、静态监控等领域,并发挥着重大的作用。目前,在大多数单位和地方已经实现了通过传输视频或音频来进行实时监控的系统,譬如在一些安装了相应监控系统的写字楼,或者一些具有很好安全管理系统的生活小区,甚至是一些私人住宅内等。With the development of multimedia technology, multimedia monitoring system is more and more used in the fields of safety operation, public security prevention, static monitoring and so on, and plays an important role. At present, real-time monitoring systems through the transmission of video or audio have been implemented in most units and places, such as in some office buildings with corresponding monitoring systems installed, or some living quarters with good safety management systems, or even some private Inside the house, etc.
目前的监控系统主要分为模拟监控和数字监控。模拟监控由于采用的是模拟信号,具有线路独占性,占用带宽高,是点到点技术,传输距离近,可管理性差,图像质量差,没有智能性,应用场合小,范围窄,局域性强等缺点,因此正逐渐被数字监控所取代。The current monitoring system is mainly divided into analog monitoring and digital monitoring. Because analog monitoring uses analog signals, it has line exclusiveness, high bandwidth occupation, point-to-point technology, short transmission distance, poor manageability, poor image quality, no intelligence, small application occasions, narrow range, and locality Strong and other disadvantages, so it is gradually being replaced by digital monitoring.
数字监控的特点是:采用数字编码,大大降低占用带宽,图象质量高,存储占用空间减小,监控信息可以通过网络发送,实时性强,使用方便。The characteristics of digital monitoring are: the use of digital coding, greatly reducing the occupied bandwidth, high image quality, reduced storage space, monitoring information can be sent through the network, strong real-time performance, and easy to use.
目前的数字监控系统大都采用视频编码卡加PC的方式,采用C/S(客户机和服务器)结构或B/S(浏览器和服务器)结构,可以监控的点少,大都只限于局域网,扩展性差,管理性差,由于采用编码卡,成本高,应用场合有限等。如图1所示。Most of the current digital monitoring systems use video encoding card plus PC, using C/S (client and server) structure or B/S (browser and server) structure. Poor performance, poor management, due to the use of encoding cards, high cost, limited application occasions, etc. As shown in Figure 1.
在中国专利申请CN00101634所公开的方案中,远程的监控终端可以借助其所使用的浏览器通过网络来取得监控区域的监控信息和报警信息,并在监控终端上进行显示,如图2所示。In the solution disclosed in Chinese patent application CN00101634, the remote monitoring terminal can obtain the monitoring information and alarm information of the monitoring area through the network through the browser used by it, and display it on the monitoring terminal, as shown in FIG. 2 .
中国专利申请CN02129616.2公开了一种基于以太网的示警式多媒体自动监控系统,其通过一个管理中心来对接收模组中的网络摄像头进行管理,监控终端用户借助电脑、移动电话等在任何一个地方,通过互联网去访问管理中心服务器的IP地址来访问该web服务器,向该服务器发出请求信息并接收所请求的多媒体信息,并将该多媒体信息,如图像、声音、运动画面等显示在显示器上,亦即实现不限定距离的远端监控,如图3所示。Chinese patent application CN02129616.2 discloses a warning type multimedia automatic monitoring system based on Ethernet, which manages the network cameras in the receiving module through a management center, and the monitoring terminal users use computers, mobile phones, etc. in any In other places, access the web server through the Internet to access the IP address of the management center server, send request information to the server and receive the requested multimedia information, and display the multimedia information, such as images, sounds, motion pictures, etc. on the monitor , that is to realize remote monitoring with unlimited distance, as shown in Figure 3.
但是目前的网络监控系统存在如下的问题:However, the current network monitoring system has the following problems:
第一个问题是,监控的点比较少,大都只限于局域网,扩展性差,管理性差,只能在小范围内部署,不能大范围、大量用户同时使用以及不能解决大量终端管理的问题。The first problem is that there are relatively few monitoring points, and most of them are limited to the local area network. The scalability and management are poor. It can only be deployed in a small area, and cannot be used in a large area, a large number of users at the same time, and cannot solve the problem of managing a large number of terminals.
第二个问题是,目前的监控系统,主要是针对特定的应用而开发,不具有通用性,因此其不存在对用户的分组,以及权限的管理,内容的保密等问题;而作为一个通用的,大面积使用的,可以商业运行的监控系统平台,需要对不同的用户提供不同的服务;同样也要对用户的私密性加以考虑,即每个用户只能监控自己对应的被监控点,而不能对其他的被监控点进行监控。The second problem is that the current monitoring system is mainly developed for specific applications and is not universal, so it does not have issues such as grouping users, management of rights, and confidentiality of content; as a general , a monitoring system platform that can be used on a large scale and can be operated commercially needs to provide different services to different users; the privacy of users must also be considered, that is, each user can only monitor their own corresponding monitored points, and Other monitored points cannot be monitored.
第三个问题是,现有的监控系统,被监控端只能固定在某一地点,不能经常或实时移动,主要原因是其地址不能动态改变,或没有支持移动性的功能,但随着网络的发展,监控的应用领域不断扩大,要求监控系统具有很大的灵活性,如被监控和监控点不断的改变,甚至都在实时的移动中。The third problem is that in the existing monitoring system, the monitored terminal can only be fixed in a certain place and cannot be moved frequently or in real time. The main reason is that its address cannot be changed dynamically, or there is no function to support mobility. With the continuous development of the development and the continuous expansion of the application field of monitoring, the monitoring system is required to have great flexibility, such as the monitored and monitored points are constantly changing, even moving in real time.
第四个问题是,监控点的摄像头不能与管理的服务器之间形成有效的互动,监控点的摄像头只能被动地被寻找,本身不能向外界传递自己的一些资料。The fourth problem is that the cameras at the monitoring points cannot form an effective interaction with the management server. The cameras at the monitoring points can only be passively searched, and cannot transmit some of their own information to the outside world.
第五个问题是,目前的监控系统都不能实现跨网关功能,监控点的摄像头必须具有一个公网的IP地址,如果具有的是一个内网IP地址时,则外界的用户便访问不到它。The fifth problem is that the current monitoring system cannot realize the cross-gateway function. The camera at the monitoring point must have a public network IP address. If it has an internal network IP address, external users will not be able to access it. .
第六个问题是,整个系统不能方便地进行升级。The sixth problem is that the whole system cannot be easily upgraded.
发明内容Contents of the invention
本发明的目的是:针对现有技术的不足,提供一种结构合理、功能性强、可扩展性强的多媒体监控系统。The purpose of the present invention is to provide a multimedia monitoring system with reasonable structure, strong functionality and strong expandability for the deficiencies of the prior art.
为了解决上述技术问题,本发明所采取的技术方案是:一种多媒体监控系统,其包括客户端、注册服务器、定位服务器以及代理服务器,其中:In order to solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a multimedia monitoring system, which includes a client, a registration server, a positioning server and a proxy server, wherein:
所述客户端设置于多个域内,其包括被监控终端及监控终端,其中被监控终端是用来采集其监控区域内的图像,监控终端是用来对被监控终端发来的图像进行显示以供用户监控,所述每个客户端均具有其帐户信息;所述定位服务器设置于因特网内,其接收并存储客户端发出的帐户信息和地址信息;The client is set in multiple domains, including a monitored terminal and a monitoring terminal, wherein the monitored terminal is used to collect images in its monitored area, and the monitoring terminal is used to display the images sent by the monitored terminal to For user monitoring, each client has its account information; the positioning server is set in the Internet, which receives and stores the account information and address information sent by the client;
所述注册服务器设置于因特网内,用于根据定位服务器进行客户端的注册、登录和认证过程;The registration server is set in the Internet, and is used to register, log in and authenticate the client according to the positioning server;
所述代理服务器设置于因特网内,其接收客户端发出的请求,从而根据请求内容和注册服务器、定位服务器提供的地址信息,实现客户端之间以及客户端与注册服务器和定位服务器之间的通讯。The proxy server is set in the Internet, and it receives the request sent by the client, so as to realize the communication between the clients and between the client and the registration server and the location server according to the request content and the address information provided by the registration server and the location server .
优选的,所述代理服务器可以接收来自各个域的客户端的请求,所述定位服务器内存储所有域的客户端的帐户信息和地址信息,所述代理服务器接收到客户端发出的呼叫其它客户端请求后,将根据请求中包含的其它客户端的帐户信息,从所述定位服务器中查询相应的地址信息,从而转发该呼叫请求至被呼叫的客户端。Preferably, the proxy server can receive requests from clients in various domains, the location server stores account information and address information of clients in all domains, and the proxy server receives requests from clients to call other clients , according to the account information of other clients included in the request, query the corresponding address information from the positioning server, so as to forward the call request to the called client.
优选的,所述各个域内可以均设置有代理服务器、注册服务器和定位服务器,每个域的代理服务器接收本域内客户端的请求和其它域的代理服务器转发的信息;每个域的定位服务器内存储本域内的客户端的帐户信息和地址信息;每个域的注册服务器根据本域内的定位服务器对本域内的客户端进行注册、登录和认证过程;所述代理服务器接收到某一客户端呼叫另一客户端的呼叫请求后,将根据请求中包含的被呼叫客户端的帐户信息,从所述定位服务器中查询被呼叫客户端是否为属于本域,如果是,则获得其地址信息,从而转发该呼叫请求至被呼叫的客户端;如果不是则将该呼叫请求转发到其它域的代理服务器。Preferably, a proxy server, a registration server and a location server may be set in each of the domains, and the proxy server of each domain receives the request of the client in this domain and the information forwarded by the proxy servers of other domains; the location server of each domain stores The account information and address information of the client in the domain; the registration server of each domain registers, logs in and authenticates the client in the domain according to the location server in the domain; the proxy server receives a client calling another client After the call request from the terminal, according to the account information of the called client included in the request, it will inquire whether the called client belongs to the local domain from the positioning server, and if so, obtain its address information, thereby forwarding the call request to The called client; if not, forward the call request to a proxy server in another domain.
进一步的,所述定位服务器还可以用于存储客户端的系统信息,所述客户端利用账户信息基于因特网通过代理服务器向注册服务器发出注册、登录认证请求,所述注册服务器查询定位服务器,从而根据所存储的帐户信息对其进行认证,并在认证通过后更新客户端当前的地址信息、帐户信息和系统信息。Further, the positioning server can also be used to store the system information of the client, the client uses the account information to send a registration and login authentication request to the registration server through the proxy server based on the Internet, and the registration server queries the positioning server, so as to The stored account information authenticates it, and updates the current address information, account information and system information of the client after the authentication is passed.
进一步的,所述代理服务器还可以用于进行客户端分组和权限管理,所述定位服务器内存储有客户端分组和权限管理信息,所述代理服务器接收客户端发出的请求后,将先根据客户端帐户信息自所述定位服务器中查询客户端的分组和权限管理信息,从而判断该客户端的分组状况以及权限范围。Further, the proxy server can also be used for client grouping and authority management. The location server stores client grouping and authority management information. After receiving the request from the client, the proxy server will first The terminal account information queries the grouping and authority management information of the client from the positioning server, so as to determine the grouping status and authority scope of the client.
进一步的,还可以包括重定向服务器,其设置于因特网内,用于确定所有域的代理服务器的位置信息,并向所述客户端发出重定向消息。Further, a redirection server may also be included, which is set in the Internet and is used to determine the location information of proxy servers in all domains, and send a redirection message to the client.
进一步的,还可以包括数据库,其设置于因特网内,用于存储各个域的客户端的帐户信息,并提供给所述重定向服务器查询。Further, a database may also be included, which is set in the Internet and used to store account information of clients in various domains and provide it to the redirection server for query.
优选的,所述被监控终端可以包括摄像模块、图像处理模块、控制单元、存储模块和网络接口,所述被监控终端的账户信息被储存入存储模块内,所述控制单元内设置有客户端应用程序,用于实现被监控终端自动向注册服务器发出注册和登录认证请求,并定时发送其地址信息至所述定位服务器。Preferably, the monitored terminal may include a camera module, an image processing module, a control unit, a storage module and a network interface, the account information of the monitored terminal is stored in the storage module, and the control unit is provided with a client The application program is used to realize that the monitored terminal automatically sends a registration and login authentication request to the registration server, and sends its address information to the positioning server at regular intervals.
进一步的,还可以包括媒体服务器,用于接收来自被监控终端的媒体流和数据,并存储,同时提供监控终端对已保存的信息的查询。Further, a media server may also be included, which is used to receive and store the media stream and data from the monitored terminal, and at the same time provide the monitoring terminal with the query of the stored information.
进一步的,还可以还包括跨网关服务器,用于实现位于网关内的客户端进行跨越网关的数据通信。Further, a cross-gateway server may also be included, which is used to realize the data communication across the gateway by the client located in the gateway.
优选的,所述被监控终端可以为网络摄像头。Preferably, the monitored terminal may be a network camera.
进一步的,所述帐户信息可以包括帐户名和密码,且所述帐户名采用用户名@域名的结构,所述地址信息包括IP地址和端口。Further, the account information may include an account name and a password, and the account name adopts a structure of username@domain name, and the address information includes an IP address and a port.
本发明相对现有技术的优点是:由于采用上述技术方案,本发明由于采用域的概念,通过域对客户端进行有效管理,并通过注册和定位服务器进行客户端的帐户信息、地址信息的管理和更新,从而保证代理服务器可以顺利路由域内和域间的客户端之间的信令和消息,因此相对现有技术,本发明所提供的系统客户端移动性强、使用便利灵活、系统扩展性好,监控领域易扩大。更进一步的,本发明通过跨网关服务器实现了客户端的跨网关通讯,从而打破了网络环境对系统应用的局限性。Compared with the prior art, the present invention has the following advantages: due to the adoption of the above technical scheme, the present invention effectively manages the client through the domain due to the adoption of the domain concept, and manages and manages the account information and address information of the client through the registration and location server. update, so as to ensure that the proxy server can smoothly route the signaling and messages between intra-domain and inter-domain clients. Therefore, compared with the prior art, the system client provided by the present invention has strong mobility, convenient and flexible use, and good system scalability , The monitoring field is easy to expand. Furthermore, the present invention realizes the cross-gateway communication of the client through the cross-gateway server, thereby breaking the limitation of the network environment on the system application.
附图说明Description of drawings
附图1为第一种现有技术的监控系统结构简图;Accompanying
附图2为第二种现有技术的监控系统结构框图;Accompanying
附图3为第三种现有技术的监控系统结构框图;Accompanying drawing 3 is the structural block diagram of the monitoring system of the third prior art;
附图4为本发明多媒体监控系统的实施例一的系统原理框图;Accompanying drawing 4 is the system block diagram of embodiment one of multimedia monitoring system of the present invention;
附图5为本发明多媒体监控系统的实施例二的系统原理框图;Accompanying drawing 5 is the system principle block diagram of embodiment two of multimedia monitoring system of the present invention;
附图6为本发明多媒体监控系统的实施例三的系统原理框图;Accompanying drawing 6 is the system principle block diagram of embodiment three of the multimedia monitoring system of the present invention;
附图7为本发明多媒体监控系统的实施例四的系统原理框图;Accompanying drawing 7 is the system block diagram of embodiment four of multimedia monitoring system of the present invention;
附图8为实施例四中跨网关处理过程的原理框图。Figure 8 is a functional block diagram of the cross-gateway processing process in Embodiment 4.
具体实施方式Detailed ways
下面将结合说明书附图及具体实施例对本发明作进一步详细说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
实施例一Embodiment one
参考附图4,本实施例给出的多媒体监控系统由设置于因特网内的代理服务器、注册服务器和定位服务器,以及设置于多个域内的客户端构成。Referring to Figure 4, the multimedia monitoring system provided in this embodiment is composed of a proxy server, a registration server and a location server set in the Internet, and clients set in multiple domains.
所述客户端包括监控终端和被监控终端。所述被监控终端是用来采集其监控区域内的图像,所述监控终端是用来对被监控终端发来的图像进行显示以供用户监控。所述每个客户端均具有其帐户信息,该帐户信息可以是用户预先向运营商申请的,也可以是客户端系统默认的。The client includes a monitoring terminal and a monitored terminal. The monitored terminal is used to collect images in its monitored area, and the monitored terminal is used to display the images sent by the monitored terminal for user monitoring. Each client has its account information, which can be applied by the user to the operator in advance, or defaulted by the client system.
所述监控终端可以是用户所能使用的任何一台可以接入因特网的电脑或手持设备,比如手机或掌上电脑等,换句话说就是,用户可以将任何一台接入因特网的电脑或手持设备作为监控终端来对自己所需要监控的区域进行监控。The monitoring terminal can be any computer or handheld device that can be used by the user to access the Internet, such as a mobile phone or a handheld computer. In other words, the user can connect any computer or handheld device that is connected to the Internet to As a monitoring terminal to monitor the area you need to monitor.
所述被监控终端是可以接入因特网的摄像装置,如网络摄像头(IPCamera),所述摄像装置移动的设置在用户需要监控的任何地方,只要该摄像装置能够通过网络接口上网,用户就可以通过监控终端对摄像装置所监控的区域进行监控。作为一种应用实例,所述网络摄像头可以包括摄像模块、图像处理模块、控制单元、存储模块和网络接口,其账户信息被储存入存储模块内,所述控制单元内设置有客户端应用程序,用于实现被监控终端自动向注册服务器发出注册和登录认证请求,并定时发送其地址信息至所述定位服务器。另外,用作监控终端的电脑中也可以设置同样的客户端应用程序。The monitored terminal is a camera device that can access the Internet, such as a network camera (IPCamera), and the camera device is moved anywhere that the user needs to monitor. As long as the camera device can access the Internet through a network interface, the user can pass The monitoring terminal monitors the area monitored by the camera device. As an application example, the network camera may include a camera module, an image processing module, a control unit, a storage module and a network interface, the account information of which is stored in the storage module, and the control unit is provided with a client application program, It is used to realize that the monitored terminal automatically sends a registration and login authentication request to the registration server, and regularly sends its address information to the positioning server. In addition, the same client application program can also be installed in the computer used as the monitoring terminal.
所述定位服务器设置于因特网内,其内部设置有用于存储所有域中客户端的帐户信息和地址信息的数据库,并可供代理服务器和定位服务器查询。The positioning server is set in the Internet, and a database for storing account information and address information of clients in all domains is set inside it, and can be queried by the proxy server and the positioning server.
所述注册服务器设置于因特网内,用于根据定位服务器进行客户端的注册、登录和认证过程。The registration server is set in the Internet, and is used for registering, logging in and authenticating the client according to the positioning server.
另外,所述定位服务器还用于存储客户端的系统信息。In addition, the positioning server is also used to store system information of the client.
所述客户端利用账户信息基于因特网通过代理服务器向注册服务器发出注册、登录认证请求,所述注册查询所述定位服务器,从而根据所存储的帐户信息对客户端进行认证,并在认证通过后更新客户端当前的地址信息、帐户信息和系统信息。The client uses the account information to send a registration and login authentication request to the registration server through the proxy server based on the Internet, and the registration queries the positioning server, thereby authenticating the client according to the stored account information, and updating after the authentication is passed. The client's current address information, account information, and system information.
所述代理服务器设置于因特网内,用于接收来自各个域的客户端的请求,所述代理服务器接收到客户端发出的呼叫其它客户端请求后,将根据请求中包含的其它客户端的帐户信息,从所述定位服务器中查询相应的地址信息,从而转发该呼叫请求至被呼叫的客户端。The proxy server is set in the Internet to receive requests from clients in various domains. After the proxy server receives the request from the client to call other clients, it will, according to the account information of other clients included in the request, from the The positioning server queries the corresponding address information, so as to forward the call request to the called client.
并且,所述代理服务器还用于进行客户端分组和权限管理,所述定位服务器内存储有客户端分组和权限管理信息,所述代理服务器接收客户端发出的请求后,将先根据客户端帐户信息自所述定位服务器中查询客户端的分组和权限管理信息,从而判断该客户端的分组状况以及权限范围。In addition, the proxy server is also used for client grouping and authority management. The positioning server stores client grouping and authority management information. After receiving the request from the client, the proxy server will first The information queries the grouping and authority management information of the client from the positioning server, so as to determine the grouping status and authority range of the client.
为了清楚的说明本实施例的系统结构原理以及工作流程,下面将根据应用实例详细说明。In order to clearly illustrate the system structure principle and work flow of this embodiment, the following will describe in detail according to application examples.
首先假定本实施例中包括两个域,如图4所示,其中域A的域名为tom.com,域B的域名为jimmy.net。当然,实际实施时,域的数量可以根据需要扩充。First, it is assumed that this embodiment includes two domains, as shown in FIG. 4 , where the domain name of domain A is tom.com, and the domain name of domain B is jimmy.net. Of course, in actual implementation, the number of domains can be expanded as required.
第一步,客户端的账户申请。The first step is the client's account application.
如果某一客户端在本监控系统中还没有合法账户信息,则用户需要在使用前向本监控系统的运营商申请一个合法的帐户。该帐户申请的过程可以是直接向运营商申请后,将帐户信息植入到客户端内,如摄像装置的存储模块中。If a certain client does not have legal account information in this monitoring system, the user needs to apply for a legal account to the operator of this monitoring system before using it. The process of applying for the account may be to directly apply to the operator, and then implant the account information into the client, such as the storage module of the camera device.
当客户端申请到合法帐户后,所述定位服务器将存储该客户端的帐户信息。After the client has applied for a legal account, the location server will store the account information of the client.
所述的帐户信息包括帐户名和密码,所述帐户名可以采用用户名@域名的结构,从而在帐户申请阶段即为客户端分配了合法的域。另外,管理员可以在所述定位服务器上将客户端分组,如按照域名将同一个域内的客户端分为一个组,或者按照监控终端和被监控终端的形式分组,又或者可按照其它方式,将不同域内的客户端分为一个组。从而通过配置组的属性来对相应组的用户的权限、所能享受的服务类型质量等进行管理。当然,客户端亦可在登录因特网后,对其权限等属性进行一定范围内的修改、更新。The account information includes an account name and a password, and the account name may adopt a structure of user name@domain name, so that a legal domain is assigned to the client at the account application stage. In addition, the administrator can group the clients on the positioning server, such as dividing the clients in the same domain into a group according to the domain name, or grouping the monitoring terminal and the monitored terminal, or in other ways, Group clients in different domains into a group. In this way, by configuring the attributes of the group, the authority of the user in the corresponding group, the type of service that can be enjoyed, and the quality of the service can be managed. Of course, the client can also modify and update its permissions and other attributes within a certain range after logging in to the Internet.
比如,摄像装置A被植入的账户名为张三@tom.com,密码为111111;监控终端B的账户名为李四@jimmy.net,其密码为000000。For example, the account name of the implanted camera device A is Zhangsan@tom.com, and the password is 111111; the account name of the monitoring terminal B is Lisi@jimmy.net, and its password is 000000.
第二步,客户端登录。In the second step, the client logs in.
当用户将摄像装置A张三@tom.com通过其网络接口接入因特网时,摄像装置A内的控制单元将会调用客户端应用程序并控制摄像装置自动向代理服务器发送登录请求,所述代理服务器则转发该登录请求给注册服务器。When the user connects the camera device A to the Internet through its network interface, the control unit in the camera device A will call the client application program and control the camera device to automatically send a login request to the proxy server, and the proxy The server forwards the login request to the registration server.
具体来讲,即摄像装置A的控制单元根据客户端应用程序将存储模块内的账户名和密码取出,并首先将帐户名通过代理服务器转发到所述注册服务器,注册服务器收到帐户名后,相应产生一个随机码,并保存和返回该随机码;摄像装置A收到该随机码后,将其帐户名、密码以及该随机码通过一种预先约定好的加密算法(如MD5算法),进行加密计算得到加密数据,然后将该加密数据通过代理服务器转发给注册服务器。所述注册服务器再取出其内部存储的摄像装置A的帐户名和密码,也采用同样的加密算法,对该帐户名、密码以及随机码进行加密计算获得加密数据,然后将其自己计算所得的加密数据与摄像装置A发来的加密数据进行比较,当二者完全一致时,即认证通过,摄像装置A登录成功。Specifically, the control unit of the camera device A takes out the account name and password in the storage module according to the client application program, and first forwards the account name to the registration server through the proxy server. After the registration server receives the account name, it correspondingly Generate a random code, save and return the random code; camera device A encrypts its account name, password and the random code through a pre-agreed encryption algorithm (such as MD5 algorithm) after receiving the random code The encrypted data is calculated, and then the encrypted data is forwarded to the registration server through the proxy server. The registration server takes out the account name and password of the camera device A stored in it, and uses the same encryption algorithm to encrypt and calculate the account name, password and random code to obtain encrypted data, and then encrypts the encrypted data obtained by itself. Compared with the encrypted data sent by the camera device A, when the two are completely consistent, the authentication is passed, and the camera device A login is successful.
相似的,用户可以通过账户名李四@jimmy.net和密码将任何一台接入因特网的电脑或手持设备作为监控终端B通过代理服务器向注册位服务器登录。Similarly, the user can use the account name 李四@jimmy.net and the password to use any computer or handheld device connected to the Internet as the monitoring terminal B to log in to the registration server through the proxy server.
第三步,客户端注册。The third step is client registration.
登录成功之后,在客户端程序的支持下,摄像装置A可以将自身的系统信息通过代理服务器向注册服务器进行注册。After the login is successful, with the support of the client program, the camera device A can register its own system information with the registration server through the proxy server.
所述摄像装置A的系统信息包括其地址信息、温度、湿度、昵称等,当然此时摄像装置A会同时安装温度、湿度传感器。所述的地址信息可以为IP地址和端口。The system information of the camera device A includes its address information, temperature, humidity, nickname, etc. Of course, the camera device A will be equipped with temperature and humidity sensors at the same time. The address information may be IP address and port.
如果所述摄像装置是第一次通过代理服务器向注册服务器注册其自身系统信息,那么注册服务器将储存所有摄像装置A的系统信息至所述定位服务器。如果所述摄像装置不是第一次向注册服务器注册,那么注册服务器将仅仅将定位服务器中将与上次注册信息不同的部分作更新,尤其是将摄像装置A的地址信息刷新为当前地址。在一个特定实施例中,所述注册请求与登录请求一起发送给注册服务器。在另外一个特定的实施例中,所述摄像装置会在客户端程序的支持下定时的向注册服务器注册。If the camera device registers its own system information with the registration server through the proxy server for the first time, the registration server will store all the system information of the camera device A to the positioning server. If the imaging device is not registered with the registration server for the first time, the registration server will only update the part of the location server that will be different from the last registration information, especially update the address information of the imaging device A to the current address. In a particular embodiment, said registration request is sent to the registration server together with a login request. In another specific embodiment, the camera will regularly register with the registration server under the support of the client program.
本发明提供的摄像装置的此种设置,使摄像装置无论被移动到哪里,只要它可以被连接到因特网,其都会主动向注册服务器注册其系统信息,尤其是地址信息,以使监控终端可以通过定位服务器找到它。The setting of the camera device provided by the present invention enables the camera device to actively register its system information, especially address information, with the registration server no matter where the camera device is moved, as long as it can be connected to the Internet, so that the monitoring terminal can pass The location server finds it.
相似的,所述监控终端B在登录后,监控终端A亦会向注册服务器注册其系统信息,尤其是地址信息。监控终端的此种设计也使用户不仅限于使用固定的监控设备,而可以任意选择设备作为监控终端。Similarly, after the monitoring terminal B logs in, the monitoring terminal A will also register its system information, especially address information, with the registration server. This design of the monitoring terminal also enables users not only to use fixed monitoring equipment, but also to choose any equipment as the monitoring terminal.
第四步,监控终端对被监控终端(即摄像装置)进行监控。In the fourth step, the monitoring terminal monitors the monitored terminal (that is, the camera device).
如果监控终端B李四@jimmy.net需要对摄像装置A张三@tom.com进行监控,首先,监控终端B向代理服务器发出对摄像装置A的呼叫请求。If the monitoring terminal B 李四@jimmy.net needs to monitor the camera device A 张三@tom.com, first, the monitoring terminal B sends a call request to the camera device A to the proxy server.
该呼叫请求数据包中包括被请求摄像装置A的帐户名、监控终端B李四@jimmy.net自己的账户名及地址信息,还可以包括呼叫内容、数据类型等其它信息。The call request data packet includes the account name of the requested camera A, the account name and address information of the monitoring terminal B 李四@jimmy.net itself, and may also include other information such as call content and data type.
作为一种实施方式,所述代理服务器接收到该呼叫请求后,首先根据其中的摄像装置A的帐户名到定位服务器进行地址查询,获得摄像装置A的IP地址和端口,然后将该呼叫请求根据查询到的IP地址和端口转发到摄像装置A上。As an implementation, after the proxy server receives the call request, it first conducts an address query to the location server according to the account name of the camera device A to obtain the IP address and port of the camera device A, and then the call request according to The queried IP address and port are forwarded to camera device A.
作为另一种具体实施方式,所述代理服务器接收到该呼叫请求后,首先根据其中的监控终端B和摄像装置A的帐户名,在定位服务器中查询它们的分组和权限管理信息,从而代理服务器判断它们是否具有互相通信的权限。当代理服务器判断监控终端B无权访问摄像装置A时,代理服务器将返回一个拒绝访问的信息给监控终端B。反之,则代理服务器自所述定位服务器查询获得的摄像装置A的地址信息,然后继续前面所述的转发呼叫请求的操作。As another specific implementation manner, after the proxy server receives the call request, firstly, according to the account names of the monitoring terminal B and the camera device A, it inquires their grouping and rights management information in the positioning server, so that the proxy server Determine whether they have permission to communicate with each other. When the proxy server determines that the monitoring terminal B has no right to access the camera device A, the proxy server will return a message of denial of access to the monitoring terminal B. On the contrary, the proxy server inquires the obtained address information of the camera device A from the positioning server, and then continues the above-mentioned operation of forwarding the call request.
由于本实施例中帐户名采用用户名@域名的结构,因此代理服务器可以先根据域名查询,再根据用户名查询,从而加快查询速度。Since the account name in this embodiment adopts the structure of username@domain name, the proxy server can query according to the domain name first, and then query according to the username, thereby speeding up the query.
所述摄像装置A接到呼叫请求后,可以以通过代理服务器的方式,或直接的方式,向监控终端B返回同意信息,此时摄像装置A和监控终端B已经知道彼此最新的地址信息。接下来,摄像装置A便可以将所监控区域内的多媒体数据按照呼叫请求,传输至监控终端B供用户监控。需要注意的是,上述摄像装置的响应请求或传输图像动作,均是摄像装置在其控制单元根据客户端应用程序的控制下所做出的。After the camera device A receives the call request, it can return the consent information to the monitoring terminal B through a proxy server or directly. At this time, the camera device A and the monitoring terminal B already know each other's latest address information. Next, the camera device A can transmit the multimedia data in the monitored area to the monitoring terminal B according to the call request for the user to monitor. It should be noted that, the response request or image transmission action of the above-mentioned camera device is all performed by the camera device under the control of its control unit according to the client application program.
本实施例通过域的设置,可以很方便的实现系统的扩展。如果新增加一个域,则只需要将该域的域名记录在定位服务器中。如果域内新增加一个客户端,也只需要将客户端的帐户信息和地址信息记录到定位服务器中。这样代理服务器就可以很方便的联系到系统内任意一个域内的客户端,从而帮助客户端实现域内和域外的数据通讯。In this embodiment, the expansion of the system can be realized conveniently through the setting of domains. If a new domain is added, only the domain name of the domain needs to be recorded in the location server. If a new client is added in the domain, it is only necessary to record the account information and address information of the client to the location server. In this way, the proxy server can easily contact the client in any domain in the system, thereby helping the client to realize data communication between the domain and the domain.
实施例二Embodiment two
参考附图5,与实施例一不同的是,在本实施例中,各个域均具有自己的代理服务器、注册服务器和定位服务器。从而,每个域的代理服务器接收本域内客户端的请求和其它域的代理服务器转发的信息,每个域的定位服务器内存储本域内的客户端的帐户信息和地址信息,每个域的注册服务器根据本域内的定位服务器对本域内的客户端进行注册、登录和认证过程。某一个域的客户端只向其域内的代理服务器、注册服务器和定位服务器进行登录、认证和注册的操作,其具体的登录、认证和注册的操作过程与实施例一相似,因此不再赘述。Referring to FIG. 5 , the difference from
某一个域内的监控终端对被监控终端(即本实施例中的摄像装置)发出的呼叫请求首先被发送到其所在域内的代理服务器。该代理服务器接收到该呼叫请求后,先根据该呼叫请求中包含的监控终端和被监控终端的帐户名到定位服务器查询,从而判断监控终端的分组和权限状况,并在监控终端无权呼叫被监控终端时,返回拒绝呼叫信息。而在具有呼叫权限时,转发呼叫请求。由于本实施例中监控终端和被监控终端的帐户名均采用用户名@域名的结构,因此代理服务器分析摄像装置的帐户名,获得摄像装置的域名,从而判断该摄像装置是否为属于本域,如果是,则获得其地址信息,从而转发该呼叫请求至被监控终端;如果不是则将该呼叫请求转发到其它域的代理服务器。The call request sent by the monitoring terminal in a certain domain to the monitored terminal (ie, the camera device in this embodiment) is first sent to the proxy server in the domain where it is located. After the proxy server receives the call request, it first inquires to the location server according to the account names of the monitoring terminal and the monitored terminal contained in the call request, thereby judging the grouping and authority status of the monitoring terminal, and inquiring if the monitoring terminal has no right to call the monitored terminal. When monitoring the terminal, return the message of rejecting the call. And when having the call authority, the call request is forwarded. Since the account names of the monitoring terminal and the monitored terminal in this embodiment all adopt the structure of user name@domain name, the proxy server analyzes the account name of the camera device to obtain the domain name of the camera device, thereby judging whether the camera device belongs to the domain, If yes, then obtain its address information, so as to forward the call request to the monitored terminal; if not, forward the call request to the proxy server in other domains.
如此就建立了不同域内的监控终端和被监控终端的通讯通道,从而使它们可以互相通讯。监控终端与摄像装置建立通讯后,其后续的步骤与实施例一所述相同,此处不再赘述。In this way, the communication channel between the monitoring terminal and the monitored terminal in different domains is established, so that they can communicate with each other. After the monitoring terminal establishes communication with the camera device, the subsequent steps are the same as those described in
本实施例如果新增加域,只需要新添加该域的代理服务器、注册服务器和定位服务器,同时将其域名以及代理服务器的地址信息告知其它域,即可轻松实现系统扩展。If a new domain is added in this embodiment, it is only necessary to add a proxy server, a registration server, and a location server of the domain, and at the same time inform other domains of its domain name and address information of the proxy server, so that system expansion can be easily realized.
实施例三Embodiment Three
分析实施例二可知,实施例二相对实施例一,由于在各个域内均设置代理服务器、注册服务器和定位服务器,因此不仅减轻了代理服务器、注册服务器和定位服务器的工作负荷,而且更利于系统的扩容。但是,当客户端自身的客户端应用程序内预先设置有默认的代理服务器时,客户端在登录时,将向这个默认的代理服务器发出登录请求,而此时,客户端不一定属于该代理服务器所处的域。实施例二处理这种情况时,将会将此登录请求转发到其它代理服务器上,直至查询到该客户端所属的域的代理服务器为止。如此,则由于客户端并不知道自己发送请求的代理服务器不是自己所属域的代理服务器,因此每次登录,甚至以后的每次发出请求都会向这个默认的代理服务器发送,这样就造成了默认的代理服务器工作负荷大,系统内部管理混乱的局面。As can be seen from the analysis of
基于上述原因,参考图6,本实施例中增加重定向服务器,其设置于因特网内,用于确定所有域内的代理服务器位置信息,并向所述客户端发出重定向消息。Based on the above reasons, with reference to FIG. 6, a redirection server is added in the present embodiment, which is set in the Internet for determining the location information of proxy servers in all domains, and sending a redirection message to the client.
具体而言,是客户端首次向其默认的代理服务器发出登录请求时,所述代理服务器根据客户端的帐户名中包含的域名,获知该客户端并非属于自己管理的域,因此将此登录请求转发到所述重定向服务器。这时,所述重定向服务器将向所有域的定位服务器查询,以确定该客户端所属域,并将此域的代理服务器的位置信息(可包括IP地址和端口),以重定向消息的形式直接或通过默认的代理服务器发送到客户端。收到此重定向消息后,客户端会将重定向后的代理服务器取代其默认的代理服务器,从而在其以后的操作流程中,只与重定向后的代理服务器进行通讯。Specifically, when the client sends a login request to its default proxy server for the first time, the proxy server knows that the client does not belong to the domain it manages according to the domain name contained in the account name of the client, so it forwards the login request to the redirect server. At this time, the redirection server will query the location servers of all domains to determine the domain to which the client belongs, and send the location information (which may include IP address and port) of the proxy server of this domain in the form of a redirection message Sent to the client directly or through the default proxy server. After receiving this redirection message, the client will replace its default proxy server with the redirected proxy server, so that it will only communicate with the redirected proxy server in its subsequent operations.
实施例四Embodiment four
参考图7,本实施例与前面三个实施例所不同的是,在系统中增加了跨网关服务器、数据库以及媒体服务器。其中,Referring to FIG. 7 , the difference between this embodiment and the previous three embodiments is that a cross-gateway server, a database, and a media server are added to the system. in,
所述数据库设置于因特网内,用于存储各个域的客户端的帐户信息,并提供给所述重定向服务器查询以及定位服务器下载。The database is set in the Internet for storing account information of clients in various domains and providing it to the redirection server for query and location server for download.
所述媒体服务器设置于因特网内,用于接收来自被监控终端的媒体流和数据,并存储,同时提供监控终端对已保存的信息的查询。The media server is set in the Internet and is used to receive and store the media stream and data from the monitored terminal, and at the same time provide the monitoring terminal with the query of the stored information.
所述跨网关服务器设置于因特网内,用于实现位于网关内的客户端进行跨越网关的数据通信。The cross-gateway server is set in the Internet, and is used to realize the data communication across the gateway for the clients located in the gateway.
因此本实施例相对前面三个实施例,其功能性更强、网络数据交互更通畅、且结构配置更合理。Therefore, compared with the previous three embodiments, this embodiment has stronger functionality, smoother network data interaction, and more reasonable structural configuration.
本实施例中,客户端向注册服务器登录、认证、注册以及代理服务器权限管理、转发请求等过程与前面实施例相似,这里不再赘述。下面将详细描述本实施例的与前面实施例的不同之处。In this embodiment, the processes of the client logging in to the registration server, authentication, registration, proxy server authority management, and request forwarding are similar to those in the previous embodiment, and will not be repeated here. Differences of this embodiment from the previous embodiments will be described in detail below.
由于本实施例的系统内增设了数据库,这样,当客户端向运营商申请帐户时,其帐户信息将被记录在数据库中。各个域内的定位服务器将从数据库中下载更新后的本域的客户端帐户信息。而重定向服务器在进行重定向时,亦可直接向数据库查询某个客户端所属的域。如此,则一方面增加了系统数据的冗余性,保证数据不丢失,另一方面也加速重定向服务器的工作效率。Since the database is added in the system of this embodiment, when the client applies for an account with the operator, its account information will be recorded in the database. The location server in each domain will download the updated client account information of the domain from the database. When the redirection server performs redirection, it can also directly query the database for the domain to which a certain client belongs. In this way, on the one hand, the redundancy of system data is increased to ensure that data is not lost, and on the other hand, the work efficiency of the redirection server is also accelerated.
由于本实施例的系统内增设了媒体数据库,则客户端(尤其是摄像装置)的媒体流或数据等,可以通过发送到所述媒体服务器进行保存,已认证的用户也可以通过访问媒体服务器来获取已保存的信息。Due to the addition of a media database in the system of this embodiment, the media stream or data of the client (especially the camera) can be stored by sending to the media server, and the authenticated user can also access the media server. Get saved information.
如图7中所示,监控终端C通过网关登录因特网,这样由于本实施例的系统内增设了跨网关服务器,就解决了监控系统内客户端跨网关通讯的问题。As shown in FIG. 7, the monitoring terminal C logs into the Internet through the gateway. In this way, the cross-gateway server is added in the system of this embodiment, which solves the problem of cross-gateway communication of the client in the monitoring system.
作为一种具体实施方式,本实施例中,参考图8(需要说明的是,为简便起见,图8中省去了代理服务器等其它服务器,但摄像装置和监控终端均是通过代理服务器与跨网关服务器通信的),所述跨网关服务器具体工作流程为:As a specific implementation, in this embodiment, refer to Fig. 8 (it should be noted that, for the sake of simplicity, other servers such as proxy server are omitted in Fig. Gateway server communication), the specific workflow of the cross-gateway server is:
1、跨网关服务器初始化流程:1. Cross-gateway server initialization process:
所述跨网关服务器启动后,将初始化设置于其内部的映射表,具体为:如果跨网关服务器内部没有映射表,则跨网关服务器将建立一张映射表,该映射表由若干条记录构成,且每一条记录是一个或两个多元组,该多元组的具体内容将在下文中描述。如果跨网关服务器内部已经存在该映射表,则清空映射表的内容,以获得最新的映射关系。After the cross-gateway server is started, it will initialize the mapping table inside it, specifically: if there is no mapping table inside the cross-gateway server, the cross-gateway server will establish a mapping table, which is composed of several records. And each record is one or two tuples, and the specific content of the tuples will be described below. If the mapping table already exists inside the cross-gateway server, clear the contents of the mapping table to obtain the latest mapping relationship.
当跨网关服务器完成映射表的设置和初始化步骤后,将打开监听端口port0,进入监听状态。这样就可以等待进行帮助网络摄像装置跨网关通信了。When the cross-gateway server completes the setting and initialization steps of the mapping table, it will open the listening port port0 and enter the listening state. In this way, it is possible to wait for the help network camera device to communicate across the gateway.
2、客户端(包括摄像装置和监控终端)网络状态检测流程:2. Client (including camera and monitoring terminal) network status detection process:
客户端登录网络后,首先向所述跨网关服务器的一个端口(如x端口)发送一个检测请求。After the client logs in to the network, it first sends a detection request to a port (such as port x) of the cross-gateway server.
跨网关服务器接收该检测请求后,通过其接收检测请求的端口(即x端口)以及另一个端口(如y端口)分别向客户端回复消息,并且在消息中包含x端口接收请求的源地址,当该客户端处于公网中时,所述源地址为其接入公网的IP地址和网络通信接口分配的端口号;当其处于私网中时,所述源地址为其所在的网关分配的公网IP地址和端口号。After the cross-gateway server receives the detection request, it will reply a message to the client through the port receiving the detection request (ie port x) and another port (such as port y) respectively, and include the source address of the request received by the port x in the message, When the client is in the public network, the source address is the IP address and the port number assigned by the network communication interface for its access to the public network; when it is in the private network, the source address is assigned by the gateway where it is located public IP address and port number.
所述客户端接收到跨网关服务器回复的消息后,可以将消息内的源地址与自己实际发送请求的地址比较,如果二者一致,说明该客户端直接连入公网。如果地址不一致,说明客户端通过网关连入公网。After the client receives the message replied by the cross-gateway server, it can compare the source address in the message with the address it actually sends the request to. If the two are consistent, it means that the client is directly connected to the public network. If the addresses are inconsistent, it means that the client connects to the public network through the gateway.
客户端可以将此网络状态检测结果存储在本地,亦可告知代理服务器。客户端通过代理服务器向外界发出请求时,代理服务器根据客户端的网络状态检测结果,判断该请求是否需要转发到所述跨网关服务器上。The client can store the network status detection result locally, or inform the proxy server. When the client sends a request to the outside world through the proxy server, the proxy server judges whether the request needs to be forwarded to the cross-gateway server according to the network status detection result of the client.
3、客户端跨网关通信流程:3. Client cross-gateway communication process:
当客户端处于私网中时,客户端通过代理服务器将向所述跨网关服务器的监听端口port0发送连接请求(TCP/IP协议)或者分配请求(UDP协议)。网关进行网络地址转换,从而为客户端分配一个端口port1。When the client is in the private network, the client will send a connection request (TCP/IP protocol) or a distribution request (UDP protocol) to the listening port port0 of the cross-gateway server through the proxy server. The gateway performs network address translation, thereby assigning a port port1 to the client.
跨网关服务器监听到该请求后,检测与网关之间的协议类型。当所检测的协议类型为UDP时,该消息为分配请求,跨网关服务器分配端口,并将UDP作为协议类型值,并与网关和跨网关服务器的端口映射关系一起写入所述映射表中。After the cross-gateway server monitors the request, it detects the protocol type with the gateway. When the detected protocol type is UDP, the message is an allocation request, and the cross-gateway server allocates ports, and UDP is used as the protocol type value, and is written into the mapping table together with the port mapping relationship between the gateway and the cross-gateway server.
假设我们设置其中一客户端(如监控终端)的内网IP地址为10.0.1.16,其通过端口5500连接网关。网关的公网IP地址为202.1.1.1,它进行网络地址转换时为网络摄像装置分配的端口port1的端口号为2222。从而有映射关系:Suppose we set the intranet IP address of one of the clients (such as a monitoring terminal) to 10.0.1.16, which connects to the gateway through
10.0.1.16:5500→202.1.1.1:2222。10.0.1.16:5500 → 202.1.1.1:2222.
所述跨网关服务器根据监听端口port0所获得的请求,分配另一个端口port1-1,并在映射表内记录网关端口port1与跨网关服务器端口port1-1的映射关系,具体为:记录网关端口port1的IP地址和端口号、跨网关服务器的端口port1-1所在的IP地址和端口号。本实施例中我们可以设置监听端口port0的IP地址及端口号为202.0.10.168:4000。设置端口port1-1的IP地址及端口号为202.0.10.169:5000。因此,映射表内记录的映射关系为:The cross-gateway server allocates another port port1-1 according to the request obtained by monitoring the port port0, and records the mapping relationship between the gateway port port1 and the cross-gateway server port port1-1 in the mapping table, specifically: record the gateway port port1 The IP address and port number of the server, the IP address and port number of the port port1-1 of the cross-gateway server. In this embodiment, we can set the IP address and port number of the listening port port0 to 202.0.10.168:4000. Set the IP address and port number of port port1-1 to 202.0.10.169:5000. Therefore, the mapping relationship of records in the mapping table is:
202.1.1.1:2222→202.0.10.169:5000。202.1.1.1:2222→202.0.10.169:5000.
另外,跨网关服务器还在映射表内记录该请求的协议类型。In addition, the cross-gateway server also records the protocol type of the request in the mapping table.
然后,跨网关服务器再通过端口port0发送一个答复给网关,从而通过网关转发到所述客户端(监控终端)。Then, the cross-gateway server sends a reply to the gateway through the port port0, thereby forwarding to the client (monitoring terminal) through the gateway.
一旦跨网关服务器在映射表内记录下网络摄像装置的地址映射关系,其它客户端(如为摄像装置,且它不论是位于公网,还是位于网关下的私网)只要获知了跨网关服务器上的端口port1-1的IP地址和端口号,就可以向该客户端(监控终端)发送通信数据了。Once the cross-gateway server records the address mapping relationship of the network camera device in the mapping table, other clients (such as a camera device, and whether it is located in the public network or a private network under the gateway) only need to know the address mapping relationship of the network camera device on the cross-gateway server. The IP address and port number of the port port1-1 can send communication data to the client (monitoring terminal).
所述跨网关服务器的端口port1-1上收到来自其它客户端通信数据后,跨网关服务器将根据其映射表内所记录的映射关系,将消息通过端口port0转发到所述网关,从而通过网关转发到所述客户端(监控终端)上。同理,亦可转发来自所述客户端的通信数据。After the port port1-1 of the cross-gateway server receives communication data from other clients, the cross-gateway server will forward the message to the gateway through port port0 according to the mapping relationship recorded in its mapping table, thereby passing the gateway Forward to the client (monitoring terminal). Similarly, the communication data from the client may also be forwarded.
如此则完成了私网下客户端进行基于UDP协议的跨网关通信的数据交互过程。In this way, the data interaction process of the client under the private network for cross-gateway communication based on the UDP protocol is completed.
当所述跨网关服务器所检测的协议类型为TCP/IP时,该消息为连接请求。跨网关服务器的监听端口port0收到来自网关后的客户端(如监控终端)的连接请求后,将分配一个通信端口port1-0,从而通过通信端口port1-0返回一个答复给所述客户端,并保持该端口与网关的通信状态。When the protocol type detected by the cross-gateway server is TCP/IP, the message is a connection request. After the monitoring port port0 of the cross-gateway server receives the connection request from the client behind the gateway (such as a monitoring terminal), it will allocate a communication port port1-0, thereby returning a reply to the client through the communication port port1-0. And maintain the communication state between the port and the gateway.
所述客户端收到此答复后,将再向所述跨网关服务器的端口port1-0发送一个分配请求,这时跨网关服务器再开辟另一个监听端口port0-1。当监听端口port0-1收到来自其它客户端(如摄像装置)的连接请求时,将关闭监听端口port0-1,而分配另一个端口port1-1,用于与所述其它客户端进行通信。然后跨网关服务器在映射表内记录端口port1-1的IP地址及端口号、所述客户端(监控终端)的IP地址和端口号、所述通信端口port1-0的IP地址及端口号、所述网关端口port1的IP地址和端口号、以及网关与跨网关服务器通信的协议类型和其它客户端(摄像装置)与跨网关服务器通信的协议类型。After the client receives this reply, it will send another allocation request to the port port1-0 of the cross-gateway server, and at this time, the cross-gateway server will open another listening port port0-1. When the listening port port0-1 receives a connection request from other clients (such as a camera), it will close the listening port port0-1, and allocate another port port1-1 for communicating with the other clients. Then cross-gateway server records the IP address and port number of port port1-1, the IP address and port number of the client (monitoring terminal), the IP address and port number of the communication port port1-0 in the mapping table, all Describe the IP address and port number of the gateway port port1, the protocol type of communication between the gateway and the cross-gateway server, and the protocol type of communication between other clients (camera devices) and the cross-gateway server.
本实施例中,可以设置监控终端的内网IP地址为10.0.1.16,其通过端口5500连接网关。网关的公网IP地址为202.1.1.1,它进行网络地址转换时为监控终端分配的端口port1的端口号为2222。从而有映射关系:In this embodiment, the intranet IP address of the monitoring terminal can be set to 10.0.1.16, which is connected to the gateway through
10.0.1.16:5500→202.1.1.1:2222。10.0.1.16:5500 → 202.1.1.1:2222.
并且设置监听端口port0的IP地址及端口号为202.0.10.168:4000。设置通信端口port1-0的IP地址和端口号为:202.0.10.168:4001。设置端口port0-1的IP地址及端口号为202.0.10.169:5001。设置端口port1-1的IP地址及端口号为202.0.10.169:5000。另外,还设置摄像装置的IP地址和端口号为:202.10.1.111:4000。因此,映射表内一条记录所包含的两个五元组分别为:And set the IP address and port number of the listening port port0 to 202.0.10.168:4000. Set the IP address and port number of the communication port port1-0 as: 202.0.10.168:4001. Set the IP address and port number of port port0-1 to 202.0.10.169:5001. Set the IP address and port number of port port1-1 to 202.0.10.169:5000. In addition, the IP address and port number of the camera device are also set as: 202.10.1.111:4000. Therefore, the two quintuples contained in a record in the mapping table are:
202.1.1.1:2222,202.0.10.168:4001,TCP;202.1.1.1:2222, 202.0.10.168:4001, TCP;
202.0.10.169:5000,202.10.1.111:4000,TCP。202.0.10.169:5000, 202.10.1.111:4000, TCP.
因此,当所述的摄像装置向端口port0-1发送消息时,所述跨网关服务器可以根据映射表内的映射关系,将该消息通过端口port1-0发送到网关的port1端口,从而转发到监控终端。同样,监控终端也发送通信数据至所述跨网关服务器,以此转发到摄像装置上。Therefore, when the camera device sends a message to the port port0-1, the cross-gateway server can send the message to the port1 port of the gateway through the port port1-0 according to the mapping relationship in the mapping table, thereby forwarding to the monitoring terminal. Similarly, the monitoring terminal also sends the communication data to the cross-gateway server, so as to forward it to the camera device.
如此则完成了系统内客户端的进行基于TCP/IP协议的跨网关通信的数据交互过程。In this way, the data interaction process of the client in the system for cross-gateway communication based on the TCP/IP protocol is completed.
由上述可知,本发明采用域的概念,通过域对用户进行权限管理及分组等,使用代理服务器及注册和定位服务器来对域用户进行管理,通过代理服务器来路由不同域的用户之间的信令和消息的传递,通过跨网关服务器来实现客户端跨网关通讯,通过扩展代理服务器和注册和定位服务器等,可以对系统的容量进行扩展。另外,本发明的系统中客户端可实现移动监控和被监控,使用更方便。而且本发明的系统架构采用分布式结构,方便扩展,便于大面积使用,为商业运营提供了有效的、安全可靠的运营平台。As can be seen from the above, the present invention adopts the concept of domains, performs authority management and grouping on users through domains, uses proxy servers and registration and location servers to manage domain users, and routes messages between users in different domains through proxy servers. For the transfer of orders and messages, the cross-gateway communication of the client is realized through the cross-gateway server, and the capacity of the system can be expanded by expanding the proxy server and the registration and positioning server. In addition, the client terminal in the system of the present invention can realize mobile monitoring and being monitored, and is more convenient to use. Moreover, the system framework of the present invention adopts a distributed structure, which is convenient for expansion and large-area use, and provides an effective, safe and reliable operation platform for commercial operations.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101174020A CN100370832C (en) | 2005-10-31 | 2005-10-31 | A multimedia monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101174020A CN100370832C (en) | 2005-10-31 | 2005-10-31 | A multimedia monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1750651A true CN1750651A (en) | 2006-03-22 |
CN100370832C CN100370832C (en) | 2008-02-20 |
Family
ID=36605876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101174020A Expired - Fee Related CN100370832C (en) | 2005-10-31 | 2005-10-31 | A multimedia monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100370832C (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101365119A (en) * | 2008-09-25 | 2009-02-11 | 北京中星微电子有限公司 | Video recording balance equalizing method used for network video monitoring system |
CN101494769B (en) * | 2008-01-21 | 2011-05-04 | 苏州科达科技有限公司 | Control device and method for providing unification locating service in video monitoring system |
CN102123059A (en) * | 2011-03-17 | 2011-07-13 | 广州杰赛科技股份有限公司 | Hybrid fiber coaxial network monitoring proxy service system and proxy service method |
CN102215378A (en) * | 2010-04-12 | 2011-10-12 | 江苏联优信息科技有限公司 | Multimedia sensing network system capable of realizing dynamic networking |
CN101365118B (en) * | 2008-09-25 | 2012-09-26 | 北京中星微电子有限公司 | Video monitoring system based on computer network |
CN104243913A (en) * | 2014-08-22 | 2014-12-24 | 江苏鸿信系统集成有限公司 | Method for increasing speed of wireless communication connection between mobile phone terminal and webcam |
CN104253849A (en) * | 2013-12-20 | 2014-12-31 | 上海通富立信息科技有限公司 | Method and system for remotely accessing web camera |
CN104270600A (en) * | 2014-08-22 | 2015-01-07 | 江苏鸿信系统集成有限公司 | Method for increasing transmission speed between mobile phone terminal and network camera in public network |
CN104270601A (en) * | 2014-08-22 | 2015-01-07 | 江苏鸿信系统集成有限公司 | Method for enhancing video transmission stability between mobile phone terminal and network camera |
CN104394170A (en) * | 2014-12-11 | 2015-03-04 | 大唐微电子技术有限公司 | Security account using method, safety device, server and system |
CN104683736A (en) * | 2013-11-27 | 2015-06-03 | 中国电信股份有限公司 | Method and system for acquiring network video |
CN109407528A (en) * | 2018-09-19 | 2019-03-01 | 北京小米移动软件有限公司 | Safety access method, device, server and storage medium |
CN103957387B (en) * | 2014-05-09 | 2019-11-22 | 江苏万友消防安全远程监控系统有限公司 | A kind of security protection channel sundries detection method and detection system |
CN111131528A (en) * | 2018-10-31 | 2020-05-08 | 杭州海康威视系统技术有限公司 | Equipment network domain determining method, server and terminal |
CN112148245A (en) * | 2020-11-26 | 2020-12-29 | 深圳乐播科技有限公司 | Method and device for monitoring, adjusting and projecting screen, computer equipment, readable storage medium and monitoring, adjusting and projecting screen interaction system |
WO2021052442A1 (en) * | 2019-09-19 | 2021-03-25 | 阿里巴巴集团控股有限公司 | Obtaining method, configuration method, edge computing cluster, and apparatuses |
CN112579984A (en) * | 2019-09-30 | 2021-03-30 | 广州艾美网络科技有限公司 | Multimedia information authentication method, system, computer device and storage medium |
CN112671843A (en) * | 2020-12-08 | 2021-04-16 | 车智互联(北京)科技有限公司 | Data request method, system and computing device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7020082B2 (en) * | 2000-05-05 | 2006-03-28 | Nomadix, Inc. | Network usage monitoring device and associated method |
KR100442170B1 (en) * | 2001-10-05 | 2004-07-30 | (주)아이디스 | Remote Control and Management System |
CN1481088A (en) * | 2002-09-04 | 2004-03-10 | 北京中星微电子有限公司 | Warning typed multimedia automatic monitored control system based on ethernet |
-
2005
- 2005-10-31 CN CNB2005101174020A patent/CN100370832C/en not_active Expired - Fee Related
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101494769B (en) * | 2008-01-21 | 2011-05-04 | 苏州科达科技有限公司 | Control device and method for providing unification locating service in video monitoring system |
CN101365119A (en) * | 2008-09-25 | 2009-02-11 | 北京中星微电子有限公司 | Video recording balance equalizing method used for network video monitoring system |
CN101365118B (en) * | 2008-09-25 | 2012-09-26 | 北京中星微电子有限公司 | Video monitoring system based on computer network |
CN101365119B (en) * | 2008-09-25 | 2013-02-13 | 北京中星微电子有限公司 | Video recording balance equalizing method used for network video monitoring system |
CN102215378A (en) * | 2010-04-12 | 2011-10-12 | 江苏联优信息科技有限公司 | Multimedia sensing network system capable of realizing dynamic networking |
CN102215378B (en) * | 2010-04-12 | 2016-03-09 | 江苏联优信息科技有限公司 | A kind of multimedia sensing network system of dynamic group net |
CN102123059A (en) * | 2011-03-17 | 2011-07-13 | 广州杰赛科技股份有限公司 | Hybrid fiber coaxial network monitoring proxy service system and proxy service method |
CN102123059B (en) * | 2011-03-17 | 2014-04-16 | 广州杰赛科技股份有限公司 | Hybrid fiber coaxial network monitoring proxy service system and proxy service method |
CN104683736A (en) * | 2013-11-27 | 2015-06-03 | 中国电信股份有限公司 | Method and system for acquiring network video |
CN104683736B (en) * | 2013-11-27 | 2018-06-05 | 中国电信股份有限公司 | For obtaining the method and system of Internet video |
CN104253849A (en) * | 2013-12-20 | 2014-12-31 | 上海通富立信息科技有限公司 | Method and system for remotely accessing web camera |
CN103957387B (en) * | 2014-05-09 | 2019-11-22 | 江苏万友消防安全远程监控系统有限公司 | A kind of security protection channel sundries detection method and detection system |
CN104243913A (en) * | 2014-08-22 | 2014-12-24 | 江苏鸿信系统集成有限公司 | Method for increasing speed of wireless communication connection between mobile phone terminal and webcam |
CN104270600B (en) * | 2014-08-22 | 2017-12-19 | 江苏鸿信系统集成有限公司 | A kind of method of transmission speed between IP Camera improved in mobile phone terminal and public network |
CN104270601A (en) * | 2014-08-22 | 2015-01-07 | 江苏鸿信系统集成有限公司 | Method for enhancing video transmission stability between mobile phone terminal and network camera |
CN104270600A (en) * | 2014-08-22 | 2015-01-07 | 江苏鸿信系统集成有限公司 | Method for increasing transmission speed between mobile phone terminal and network camera in public network |
CN104394170A (en) * | 2014-12-11 | 2015-03-04 | 大唐微电子技术有限公司 | Security account using method, safety device, server and system |
CN109407528A (en) * | 2018-09-19 | 2019-03-01 | 北京小米移动软件有限公司 | Safety access method, device, server and storage medium |
CN111131528A (en) * | 2018-10-31 | 2020-05-08 | 杭州海康威视系统技术有限公司 | Equipment network domain determining method, server and terminal |
CN111131528B (en) * | 2018-10-31 | 2022-07-05 | 杭州海康威视系统技术有限公司 | Equipment network domain determining method, server and terminal |
WO2021052442A1 (en) * | 2019-09-19 | 2021-03-25 | 阿里巴巴集团控股有限公司 | Obtaining method, configuration method, edge computing cluster, and apparatuses |
CN112579984A (en) * | 2019-09-30 | 2021-03-30 | 广州艾美网络科技有限公司 | Multimedia information authentication method, system, computer device and storage medium |
CN112579984B (en) * | 2019-09-30 | 2024-03-15 | 广州艾美网络科技有限公司 | Multimedia information authentication method, system, computer device and storage medium |
CN112148245B (en) * | 2020-11-26 | 2021-03-02 | 深圳乐播科技有限公司 | Method and device for monitoring, adjusting and projecting screen, computer equipment, readable storage medium and monitoring, adjusting and projecting screen interaction system |
CN112148245A (en) * | 2020-11-26 | 2020-12-29 | 深圳乐播科技有限公司 | Method and device for monitoring, adjusting and projecting screen, computer equipment, readable storage medium and monitoring, adjusting and projecting screen interaction system |
CN112671843A (en) * | 2020-12-08 | 2021-04-16 | 车智互联(北京)科技有限公司 | Data request method, system and computing device |
Also Published As
Publication number | Publication date |
---|---|
CN100370832C (en) | 2008-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1750651A (en) | A multimedia monitoring system | |
CN100340084C (en) | A method for implementing equipment group and intercommunication between grouped equipments | |
CN1276368C (en) | Access limitation controlling device and method | |
US6691227B1 (en) | Location-independent packet routing and secure access in a short-range wireless networking environment | |
CN1659843A (en) | Internetworking method for realizing content delivery network, corresponding network and interface components | |
CN1210924C (en) | System and method for using an IP address as a wireless unit identifier | |
CN1213567C (en) | Concentrated network equipment managing method | |
CN1241368C (en) | Virtual private network | |
CN1770718A (en) | Method and system for establishing bidirectional tunnel | |
CN1494010A (en) | Network Systems | |
CN1701562A (en) | System, method, and computer program product for centralized management of an InfiniBand distributed system area network | |
CN1855884A (en) | Load balancing server and system | |
WO2017177767A1 (en) | Service access, and control method and apparatus therefor | |
AU2001288394A1 (en) | Location-independent packet routing and secure access in a short-range wireless networking environment | |
CN101035270A (en) | Peer-to-peer video monitoring method based on the Internet | |
CN1849787A (en) | Provision of services by reserving resources in a communication network with resource management | |
CN1801711A (en) | Multicast group member identification method and apparatus | |
CN1878118A (en) | System for realizing data communication and its method | |
CN1728684A (en) | packet transfer device | |
CN1926535A (en) | Network management | |
CN1866863A (en) | Vicinage finding method and system for network apparatus | |
CN1846406A (en) | Provides address information for reaching wireless terminals | |
CN1856163A (en) | Communication system with dialog board controller and its command transmitting method | |
JP2008113384A (en) | Communication system | |
CN1300968C (en) | System for connecting a user node via a proxy to a server and method thereof |
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 | ||
ASS | Succession or assignment of patent right |
Owner name: SHANXI ZHONGTIANXIN TECHNOLOGY CO., LTD. Free format text: FORMER OWNER: BEIJING VIMICRO ELECTRONICS CO., LTD. Effective date: 20121211 |
|
C41 | Transfer of patent application or patent right or utility model | ||
COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 100083 HAIDIAN, BEIJING TO: 030032 TAIYUAN, SHAANXI PROVINCE |
|
TR01 | Transfer of patent right |
Effective date of registration: 20121211 Address after: 105, room 3, building 6, Kaiyuan street, Taiyuan economic and Technological Development Zone, Shanxi 030032, China Patentee after: SHANXI ZHONGTIANXIN SCIENCE AND TECHNOLOGY CO.,LTD. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor Patentee before: VIMICRO Corp. |
|
DD01 | Delivery of document by public notice | ||
DD01 | Delivery of document by public notice |
Addressee: SHANXI ZHONGTIANXIN SCIENCE AND TECHNOLOGY CO.,LTD. Person in charge of patents Document name: payment instructions |
|
DD01 | Delivery of document by public notice | ||
DD01 | Delivery of document by public notice |
Addressee: SHANXI ZHONGTIANXIN SCIENCE AND TECHNOLOGY CO.,LTD. Person in charge of patents Document name: Notice of Termination of Patent Rights |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080220 |