Summary of the invention
The present invention provides the transmission method of a kind of message, equipment and system, with realize across public network access with
And public network equipment accesses the headend equipment of private network.
In order to achieve the above object, the present invention provides the transmission method of a kind of message, is applied to include being positioned at
The video management VM server of public network, the headend equipment being positioned at private network and network address translation device
Monitoring system in, described NAT device is for being converted to public affairs by the private net address NAT of described headend equipment
Net address, the method comprises the following steps:
Described VM server receives the user data package being packaged with logon message from described headend equipment
Agreement UDP controls message, and it is the warp that described headend equipment is corresponding that described UDP controls the source address of message
Crossing the public network address of NAT conversion, destination address is the address of described VM server;
Described VM server stores described public network address, the address of described VM server and described
The corresponding relation of headend equipment;
Described VM server is encapsulated into UDP business by needing the monitoring message being sent to described headend equipment
In message, described UDP service message is sent to described headend equipment, described UDP service message
Destination address is the described public network address through NAT conversion, and source address is the address of described VM server.
Described method also includes: described headend equipment will need to be sent to the monitoring report of described VM server
Literary composition is encapsulated in UDP service message, and this UDP service message is sent to described VM server,
The source address of this UDP service message is the private net address of described headend equipment, and destination address is described VM
The address of server;
Described VM server receives the UDP business report being packaged with monitoring message from described headend equipment
Literary composition, the source address of this UDP service message is the public network address through NAT conversion of described headend equipment,
Destination address is the address of described VM server.
Also including the Service Process Server being positioned at public network in described monitoring system, described method also includes:
If headend equipment and another headend equipment need to process business, then institute by described Service Process Server
State Service Process Server and receive the UDP service message from this headend equipment He another headend equipment;Should
The UDP service message of headend equipment is packaged with headend equipment and needs to be sent to the monitoring of another headend equipment
Message, and the source address of this UDP service message be this headend equipment corresponding through NAT conversion public affairs
Net address, destination address is the address of described Service Process Server;The UDP business of another headend equipment
Message is packaged with another headend equipment and needs to be sent to the monitoring message of headend equipment, and this UDP business
The source address of message is the public network address through NAT conversion that another headend equipment is corresponding, and destination address is
The address of described Service Process Server;
Described Service Process Server storage public network address corresponding to headend equipment, Service Process Server
Address and the corresponding relation of headend equipment, and store at public network address corresponding to another headend equipment, business
The address of reason server and the corresponding relation of another headend equipment;
Described Service Process Server will need to be sent to the prison of another headend equipment from this headend equipment
Control message is encapsulated in UDP service message, and this UDP service message is sent to another headend equipment,
The destination address of this UDP service message is the public network ground through NAT conversion that another headend equipment is corresponding
Location, source address is the address of described Service Process Server;And/or, described Service Process Server is in the future
It is encapsulated in UDP service message from the monitoring message needing to be sent to headend equipment of another headend equipment,
And this UDP service message is sent to headend equipment, the destination address of this UDP service message is front end
The public network address through NAT conversion that equipment is corresponding, source address is the address of described Service Process Server.
Described Service Process Server receives the UDP business report from this headend equipment He another headend equipment
Literary composition, the most also includes:
Know that headend equipment needs by described Business Processing with another headend equipment at described VM server
During server process business, the address of described Service Process Server is sent to this by described VM server
Headend equipment and another headend equipment;
This headend equipment is encapsulated into UDP service message by needing the monitoring message being sent to another headend equipment
In, and this UDP service message is sent to described Service Process Server, this UDP service message
Source address is the private net address of this headend equipment, and destination address is the address of described Service Process Server;
And, another headend equipment is encapsulated into UDP service message by needing the monitoring message being sent to this headend equipment
In, and this UDP service message is sent to described Service Process Server, this UDP service message
Source address is the private net address of another headend equipment, and destination address is the address of described Service Process Server.
Described Service Process Server is exchange of media MS server or data management DM server.
A kind of video management VM server, is applied to include being positioned at the described VM server of public network, position
In the headend equipment of private network and the monitoring system of network address translation device, described NAT device is used
In the private net address NAT of described headend equipment is converted to public network address, described VM server includes:
Receiver module, for receiving the user data package being packaged with logon message from described headend equipment
Agreement UDP controls message, and it is the warp that described headend equipment is corresponding that described UDP controls the source address of message
Crossing the public network address of NAT conversion, destination address is the address of described VM server;
Memory module, for storing described public network address, the address of described VM server and described
The corresponding relation of headend equipment;
Sending module, for needing the monitoring message being sent to described headend equipment to be encapsulated into UDP business
In message, described UDP service message is sent to described headend equipment, described UDP service message
Destination address is the described public network address through NAT conversion, and source address is the address of described VM server.
Described receiver module, is additionally operable to receive the UDP being packaged with monitoring message from described headend equipment
Service message, the source address of this UDP service message is the public affairs through NAT conversion of described headend equipment
Net address, destination address is the address of described VM server.
A kind of Service Process Server, is applied to include being positioned at the described Service Process Server of public network, position
In the headend equipment of private network and the monitoring system of network address translation device, described NAT device is used
In the private net address NAT of described headend equipment being converted to public network address, described Service Process Server bag
Include:
Receiver module, for needing to be serviced by described Business Processing when headend equipment and another headend equipment
When device processes business, receive the UDP service message from this headend equipment He another headend equipment;Before this
The UDP service message of end equipment is packaged with headend equipment and needs to be sent to the monitoring report of another headend equipment
Literary composition, and the source address of this UDP service message be this headend equipment corresponding through NAT conversion public network
Address, destination address is the address of described Service Process Server;The UDP business report of another headend equipment
Literary composition is packaged with another headend equipment and needs to be sent to the monitoring message of headend equipment, and this UDP business report
The source address of literary composition is the public network address through NAT conversion that another headend equipment is corresponding, and destination address is institute
State the address of Service Process Server;
Memory module, for storing public network address corresponding to headend equipment, the address of Service Process Server
With the corresponding relation of headend equipment, and store public network address corresponding to another headend equipment, Business Processing clothes
The address of business device and the corresponding relation of another headend equipment;
Sending module, for needing to be sent to the monitoring report of another headend equipment from this headend equipment
Literary composition is encapsulated in UDP service message, and this UDP service message is sent to another headend equipment, should
The destination address of UDP service message is the public network address through NAT conversion that another headend equipment is corresponding,
Source address is the address of described Service Process Server;And/or, the needs from another headend equipment are sent out
The monitoring message giving headend equipment is encapsulated in UDP service message, and is sent out by this UDP service message
Giving headend equipment, the destination address of this UDP service message is corresponding the turning through NAT of headend equipment
The public network address changed, source address is the address of described Service Process Server.
Described Service Process Server is exchange of media MS server or data management DM server.
A kind of monitoring system, including being positioned at the video management VM server of public network, being positioned at the front end of private network
Equipment and network address translation device, described NAT device is for by the private network ground of described headend equipment
Location NAT is converted to public network address,
Described headend equipment, controls for sending the UDP being packaged with logon message to described VM server
Message, described UDP controls the private net address that source address is described headend equipment of message, and destination address is
The address of described VM server;
Described VM server, for receiving the UDP being packaged with logon message from described headend equipment
Controlling message, it is corresponding the turning through NAT of described headend equipment that described UDP controls the source address of message
The public network address changed, destination address is the address of described VM server;Store described public network address, institute
State address and the corresponding relation of described headend equipment of VM server;And needs are sent to institute
The monitoring message stating headend equipment is encapsulated in UDP service message, is sent by described UDP service message
To described headend equipment, the destination address of described UDP service message is the described public affairs through NAT conversion
Net address, source address is the address of described VM server.
Described headend equipment, is additionally operable to the monitoring message being sent to described VM server to be needed to be encapsulated into
In UDP service message, and this UDP service message is sent to described VM server, this UDP industry
The private net address that source address is described headend equipment of business message, destination address is described VM server
Address;
Described VM server, is additionally operable to reception and monitors message from being packaged with of described headend equipment
UDP service message, the source address of this UDP service message is changing through NAT of described headend equipment
Public network address, destination address is the address of described VM server.
Described monitoring system also includes the Service Process Server being positioned at public network;Described VM server,
It is additionally operable to knowing that headend equipment and another headend equipment need by described Service Process Server process industry
During business, the address of described Service Process Server is sent to this headend equipment and another headend equipment;
The monitoring message being sent to another headend equipment will be needed to be encapsulated into UDP business report by this headend equipment
Wen Zhong, and this UDP service message is sent to described Service Process Server, this UDP service message
The private net address that source address is this headend equipment, destination address is the address of described Service Process Server;
The monitoring message being sent to this headend equipment will be needed to be encapsulated into UDP business report by another headend equipment
Wen Zhong, is sent to described Service Process Server by this UDP service message, this UDP service message
Source address is the private net address of another headend equipment, and destination address is the address of described Service Process Server.
Described Service Process Server is MS server or DM server;Described Business Processing service
Device, for receiving the UDP service message from this headend equipment He another headend equipment;This headend equipment
UDP service message in be packaged with headend equipment and need to be sent to the monitoring message of another headend equipment, and
The source address of this UDP service message is the public network address through NAT conversion that this headend equipment is corresponding,
Destination address is the address of described Service Process Server;The UDP service message of another headend equipment seals
Need to be sent to the monitoring message of headend equipment, and the source of this UDP service message equipped with another headend equipment
Address is the public network address through NAT conversion that another headend equipment is corresponding, and destination address is described business
The address of processing server;
Public network address, the address of Service Process Server that storage headend equipment is corresponding are right with headend equipment
Should be related to, and store public network address corresponding to another headend equipment, Service Process Server address with another
The corresponding relation of one headend equipment;
The monitoring message being sent to another headend equipment that needs from this headend equipment is encapsulated into UDP industry
In business message, and this UDP service message is sent to another headend equipment, this UDP service message
Destination address is the public network address through NAT conversion that another headend equipment is corresponding, and source address is described industry
The address of business processing server;And/or, by from another headend equipment need be sent to headend equipment
Monitoring message is encapsulated in UDP service message, and this UDP service message is sent to headend equipment,
The destination address of this UDP service message is the public network address through NAT conversion that headend equipment is corresponding,
Source address is the address of described Service Process Server.
Compared with prior art, the present invention at least has the advantage that by VM server and front end
Set up UDP (User Datagram Protocol, User Datagram Protocol) between equipment to connect, and
Set up UDP between MS server, DM server and headend equipment to be connected;Thus may utilize this UDP
Connect the message transmissions realizing VM server, MS server, DM server and headend equipment, and can
With realize across public network access and realize public network equipment access private network headend equipment.
Detailed description of the invention
The present invention proposes the transmission method of a kind of message, is applied in monitoring system, and this monitoring system includes
It is positioned at the monitoring device of public network and is positioned at the monitoring device of private network, with Fig. 1 for grid of reference model of the present invention
Figure, the monitoring device being positioned at public network includes: VM server, IPSAN, DM server, MS service
Device, VC etc.;The monitoring device being positioned at private network includes: gunlock, ECR, DC, video wall, EC etc.;
It should be noted that the monitoring device being positioned at private network is headend equipment (i.e. monitor terminal).
It should be noted that and also include NAT device in monitoring system, this NAT device is for setting front end
Standby private net address NAT is converted to public network address.
As in figure 2 it is shown, the transmission method of this message comprises the following steps:
Step 201, the UDP control message that VM server receives from headend equipment (is packaged with registration
The UDP message of message is referred to as UDP and controls message), this UDP controls to be packaged with logon message in message,
And UDP control message source address be headend equipment corresponding through NAT conversion public network address (after
It is public network IP address and public network port that continuous address is IP address and port, i.e. public network address), purpose
Address is the address of VM server.
Concrete, when headend equipment to VM server registration, headend equipment sends to VM server
UDP controls message, and this UDP controls to be packaged with logon message in message;VM server receives from front
The UDP of end equipment controls message, can realize the registration to headend equipment based on logon message therein;
Controlling message based on UDP, VM server can obtain the public network address that headend equipment is corresponding, based on wherein
Logon message, it is possible to obtain the information of headend equipment (such as the mark of headend equipment, registration IP etc.).
Assuming that headend equipment sets up UDP when being connected with VM server, fixed port number, as source port is
10000, destination interface is 10000.With Fig. 3 for application scenarios schematic diagram, private net terminal EC-1 is front end
Equipment, private network IP address is the equipment that 10.0.0.1, VM server is in public network, and IP address is 1.1.1.1.
On EC-1 to VM server during registration, first EC-1 sends UDP to VM server and controls
Message, it is 10.0.0.1 that this UDP controls the source IP address of message, and source port number is 10000;Purpose IP
Address is 1.1.1.1, and destination slogan is 10000.Afterwards, VM server can receive from EC-1
UDP control message, this UDP control message purpose IP address be 1.1.1.1, destination slogan is
10000;On network devices UDP is controlled the source IP address of message and after port carries out NAT conversion,
The UDP that VM server receives controls message, and source IP address is the 2.2.2.1 after NAT changes,
Source port is 234 after NAT changes.Therefore, the UDP sent for EC-1 controls message,
After arriving VM server, VM server can know the public network address that EC-1 is corresponding.
It should be noted that in above-mentioned UDP controls message, in addition it is also necessary to when encapsulation EC-1 registers
Logon message.Hereinafter the process that logon message is encapsulated into UDP control message is illustrated, to scheme
4 is application scenarios schematic diagram, when EC-1 needs to send logon message to VM server, and logon message
Content be former IP head and SIP;Former IP head and SIP are encapsulated into UDP and control in message, then this UDP
The content controlling message is new IP head, UDP, former IP head and SIP;Source IP address in this new IP head
For 10.0.0.1, source port number is 10000, and purpose IP address is 1.1.1.1, and destination slogan is 10000.
Further, in subsequent processes, headend equipment will need to be sent to the prison of VM server
Control message is encapsulated into UDP service message, and (the UDP message being packaged with monitoring message is referred to as UDP control report
Literary composition, monitoring message is except other all types of messages before logon message in monitoring system, such as business
Request message, service message, keep-alive message etc.) in, and this UDP service message is sent to VM clothes
Business device, the source address of this UDP service message is the private net address of headend equipment, and destination address is VM clothes
The address of business device;Afterwards, VM server receives the UDP being packaged with monitoring message from headend equipment
Service message, the source address of this UDP service message is the public network address through NAT conversion, destination
Location is the address of VM server.
Such as, all monitoring messages between EC-1 and VM server are required to be encapsulated into UDP business
In message, still with Fig. 4 for application scenarios schematic diagram, when EC-1 needs to send monitoring report to VM server
Wen Shi, the content of monitoring message is former IP head and SIP;Former IP head and SIP are encapsulated into UDP business
In message, then the content of this UDP service message is new IP head, UDP, former IP head and SIP.
The UDP service message that EC-1 is sent, the source IP address in this new IP head is 10.0.0.1,
Source port number is 10000, and purpose IP address is 1.1.1.1, and destination slogan is 10000.For VM
The UDP service message that server receives, the source IP address in this new IP head is public network address 2.2.2.1,
Source port is public network port 234.
Step 202, VM server storage public network address, address and headend equipment right of VM server
Should be related to.The address of this public network address and VM server is the UDP when this headend equipment sends message
Connecting, i.e. when this headend equipment sends message, the address of this public network address and VM server is respectively
The destination address of message and source address.
Concrete, message is controlled for the UDP received, VM server can control message by UDP
Source address and destination address obtain public network address and the address of VM server, and control report by UDP
In literary composition, the logon message of encapsulation obtains the information (such as mark, the registration IP etc. of headend equipment) of headend equipment,
Therefore public network address, the address of VM server and the corresponding relation of headend equipment can be stored.
Step 203, VM server is encapsulated into UDP industry by needing the monitoring message being sent to headend equipment
In business message, the destination address of this UDP service message is the public network address through NAT conversion, seedbed
Location is the address of VM server.
In the present invention, owing on VM server, record has address and the public affairs of headend equipment, VM server
The corresponding relation of net address, therefore VM server can actively initiate the communication with headend equipment.
Such as, the storage of VM server have EC-1 with 2.2.2.1,234,1.1.1.1,10000 corresponding pass
System, with Fig. 4 for application scenarios schematic diagram, when VM server needs that monitoring message is sent to EC-1,
Then monitoring message is encapsulated in UDP service message by VM server;Wherein, the content of monitoring message is
Former IP head and SIP are encapsulated in UDP service message by former IP head and SIP, VM server, then should
The content of UDP service message is new IP head, UDP, former IP head and SIP;Source IP in this new IP head
Address is 1.1.1.1, and source port number is 10000, and purpose IP address is 2.2.2.1, destination slogan is 234.
Step 204, the UDP service message being packaged with monitoring message is sent to front end and sets by VM server
Standby.Owing to purpose IP address and the port of UDP service message are public network IP address and port, and carry out
The private network IP ground of this public network IP address and port and headend equipment can be recorded on the network equipment of NAT conversion
Location and the corresponding relation of port, before therefore can being sent to the UDP service message being packaged with monitoring message
On end equipment.
In the present invention, if headend equipment (as a example by EC-A) with another headend equipment (with EC-B is
Example) between need by Service Process Server (as MS server, DM server etc. are positioned at public network side
Monitoring device) process business (can realize the access across public network, public network equipment access private network front end
The scenes such as equipment, the EC being positioned at private network as being positioned at the VC needs access of public network, the VC being positioned at public network need
The live stream wanting program request private network ECR, the VC being positioned at public network need to be conducted interviews ECR by WEB
Join), then know EC-A Yu EC-B to need by Service Process Server at VM server and process industry
During business, VM server needs the address of Service Process Server is sent to EC-A and EC-B.
Afterwards, EC-A will need the monitoring message being sent to EC-B to be encapsulated in UDP service message, and
This UDP service message is sent to Service Process Server, and the source address of this UDP service message is
The private net address of EC-A, destination address is the address of Service Process Server;Additionally, EC-B will need
The monitoring message being sent to EC-A is encapsulated in UDP service message, and is sent by this UDP service message
To Service Process Server, the source address of this UDP service message is the private net address of EC-B, destination
Location is the address of Service Process Server.
Further, Service Process Server can receive the UDP business from EC-A Yu EC-B
Message, is packaged with EC-A and needs to be sent to the monitoring message of EC-B in the UDP service message of EC-A,
And the source address of this UDP service message is the public network address through NAT conversion that EC-A is corresponding, purpose
Address is the address of Service Process Server;The UDP service message of EC-B is packaged with EC-B need to send out
Give the monitoring message of EC-A, and the source address of this UDP service message be EC-B corresponding through NAT
The public network address of conversion, destination address is the address of Service Process Server.
By above-mentioned processing procedure, Service Process Server can store corresponding for EC-A public network address, industry
The corresponding relation of address and the EC-A of business processing server, and can store corresponding for EC-B public network address,
The address of Service Process Server and the corresponding relation of EC-B;Corresponding for above-mentioned EC-A public network address, industry
The address of business processing server is that the UDP when EC-A sends message connects;Above-mentioned EC-B is corresponding
Public network address, the address of Service Process Server are that the UDP when EC-B sends message connects;?
With between Service Process Server and EC-A, and set up between Service Process Server and EC-B
UDP connects, the follow-up transmission that this UDP connection can be utilized to be monitored message.
Concrete, the monitoring message being sent to EC-B that needs from EC-A is sealed by Service Process Server
Install in UDP service message, and this UDP service message is sent to EC-B, this UDP business report
The destination address of literary composition is the public network address through NAT conversion that EC-B is corresponding, and source address is Business Processing
The address of server;And/or, Service Process Server will need to be sent to the prison of EC-A from EC-B
Control message is encapsulated in UDP service message, and this UDP service message is sent to EC-A, this UDP
The destination address of service message is the public network address through NAT conversion that EC-A is corresponding, and source address is industry
The address of business processing server.
In above-mentioned processing procedure, the process of EC-A, EC-B, Service Process Server etc. and step 201-
The process of step 204 is similar to, and does not repeats them here.
It should be noted that in the present invention, in order to realize said process, need EC-1, EC-A, EC-B,
Corresponding forwarding-table item is set up on VM server, Service Process Server.The forwarding-table item that EC-A sets up
In, destination address is the registering IP address of EC-B, exports and sets up with Service Process Server into EC-A
UDP connect;In the forwarding-table item that EC-B sets up, destination address is the registering IP address of EC-A,
The UDP that outlet is set up with Service Process Server for EC-B is connected;Based on above-mentioned implementation, EC-A
With the communication between EC-B all can carry out transfer by Service Process Server.
Follow-up as a example by EC-A, MS server, that EC-A is set up forwarding-table item, it is assumed that EC-A
The IP address that IP address is 3.3.3.1, EC-B be 10.0.0.1, Service Process Server (with MS take
Business device as a example by) IP address be 1.1.1.2, then forwarding-table item can be as shown in table 1.
Table 1
Purpose |
Purpose IP |
UDP connects |
EC-B |
10.0.0.1 |
1.1.1.2:10000&3.3.3.1:10000 |
MS |
1.1.1.2 |
1.1.1.2:10000&3.3.3.1:10000 |
Can be drawn by table 1, when sending monitoring message to EC-B, the UDP of its correspondence is connected as:
Source IP address is 3.3.3.1, and source port is 10000, and purpose IP address is 1.1.1.2, and destination interface is 10000.
The forwarding-table item that MS server is set up, it is assumed that the IP address of EC-A is 3.3.3.1, EC-B
The IP address that IP address is 10.0.0.1, MS server be 1.1.1.2;For the UDP from EC-A
Controlling message, after NAT changes, source IP address is converted to public network address 2.2.2.1 by 3.3.3.1,
Source port is converted to public network port 235 by 10000;Message, warp are controlled for the UDP from EC-B
Cross NAT conversion after, source IP address is converted to public network address 10.10.10.1 by 10.0.0.1, source port by
10000 are converted to public network port 230;Then forwarding-table item can be as shown in table 2.
Table 2
Purpose |
Purpose IP |
UDP connects |
EC-B |
10.0.0.1 |
10.10.10.1:230&1.1.1.2:10000 |
EC-A |
3.3.3.1 |
2.2.2.1:235&1.1.1.2:10000 |
Can be drawn by table 2, when MS server sends monitoring message to EC-B, its correspondence
UDP is connected as: source IP address is 1.1.1.2, and source port is 10000, and purpose IP address is 10.10.10.1,
Destination interface is 230.When MS server sends monitoring message to EC-A, the UDP of its correspondence is even
Connect for: source IP address is 1.1.1.2, and source port is 10000, and purpose IP address is 2.2.2.1, destination
Mouth is 235.
It is further detailed below in conjunction with application scenarios.
As it is shown in figure 5, be the application scenarios of MS server for Service Process Server, VC needs ECR
Live stream time, then transmit a request to VM server, afterwards, VM server is by MS server
IP address notifies to VC and ECR.VC and ECR is after receiving the IP address of MS server, respectively
Set up UDP with MS server to be connected, and set up relevant forwarding-table item.Afterwards, according to forwarding-table item,
Monitoring message, when carrying out exchanging visit and communicating, is the most first connected encapsulation by UDP and issues MS by VC with ECR
Server, then forwarded by MS server.
As shown in Figure 6, be the application scenarios of DM server for Service Process Server, for needs through
Cross storage service or the storage playback business of DM server, the most first allow each relevant headend equipment first with
DM server is set up UDP and is connected, and is connected to the enterprising industry of DM server by UDP the most again and is engaged in
Transfer, repeat the most in detail at this.
Based on the inventive concept as said method, the invention allows for a kind of video management VM clothes
Business device, is applied to include being positioned at the described VM server of public network, the headend equipment being positioned at private network and network
In the monitoring system of address conversion NAT device, described NAT device is for by the private network of described headend equipment
Address NAT is converted to public network address, as it is shown in fig. 7, described VM server includes:
Receiver module 11, for receiving the user data being packaged with logon message from described headend equipment
Datagram protocol UDP controls message, and it is that described headend equipment is corresponding that described UDP controls the source address of message
Through the public network address of NAT conversion, destination address is the address of described VM server;
Memory module 12, for storing described public network address, the address of described VM server, Yi Jisuo
State the corresponding relation of headend equipment;
Sending module 13, for needing the monitoring message being sent to described headend equipment to be encapsulated into UDP industry
In business message, described UDP service message is sent to described headend equipment, described UDP service message
Destination address be described through NAT conversion public network address, source address is the ground of described VM server
Location.
Described receiver module 11, is additionally operable to reception and monitors message from being packaged with of described headend equipment
UDP service message, the source address of this UDP service message is changing through NAT of described headend equipment
Public network address, destination address is the address of described VM server.
Based on the inventive concept as said method, the invention allows for a kind of Service Process Server,
It is applied to include being positioned at the described Service Process Server of public network, the headend equipment being positioned at private network and network ground
In the monitoring system of location conversion NAT device, described NAT device is for by the private network ground of described headend equipment
Location NAT is converted to public network address, and as shown in Figure 8, described Service Process Server includes:
Receiver module 21, for needing to be taken by described Business Processing when headend equipment and another headend equipment
When business device processes business, receive the UDP service message from this headend equipment He another headend equipment;Should
The UDP service message of headend equipment is packaged with headend equipment and needs to be sent to the monitoring of another headend equipment
Message, and the source address of this UDP service message be this headend equipment corresponding through NAT conversion public affairs
Net address, destination address is the address of described Service Process Server;The UDP business of another headend equipment
Message is packaged with another headend equipment and needs to be sent to the monitoring message of headend equipment, and this UDP business
The source address of message is the public network address through NAT conversion that another headend equipment is corresponding, and destination address is
The address of described Service Process Server;
Memory module 22, for storing public network address corresponding to headend equipment, the ground of Service Process Server
Location and the corresponding relation of headend equipment, and store public network address corresponding to another headend equipment, Business Processing
The address of server and the corresponding relation of another headend equipment;
Sending module 23, for needing to be sent to the monitoring of another headend equipment from this headend equipment
Message is encapsulated in UDP service message, and this UDP service message is sent to another headend equipment,
The destination address of this UDP service message is the public network ground through NAT conversion that another headend equipment is corresponding
Location, source address is the address of described Service Process Server;And/or, by the need from another headend equipment
The monitoring message of headend equipment to be sent to is encapsulated in UDP service message, and by this UDP business report
Literary composition is sent to headend equipment, the destination address of this UDP service message be headend equipment corresponding through NAT
The public network address of conversion, source address is the address of described Service Process Server.
In the present invention, described Service Process Server is exchange of media MS server or data management DM
Server.
Based on the inventive concept as said method, the invention allows for a kind of monitoring system, including
It is positioned at the video management VM server of public network, the headend equipment being positioned at private network and network address translation NAT
Equipment, described NAT device is used for the private net address NAT of described headend equipment is converted to public network address,
Wherein:
Described headend equipment, controls for sending the UDP being packaged with logon message to described VM server
Message, described UDP controls the private net address that source address is described headend equipment of message, and destination address is
The address of described VM server;
Described VM server, for receiving the UDP being packaged with logon message from described headend equipment
Controlling message, it is corresponding the turning through NAT of described headend equipment that described UDP controls the source address of message
The public network address changed, destination address is the address of described VM server;Store described public network address, institute
State address and the corresponding relation of described headend equipment of VM server;And needs are sent to institute
The monitoring message stating headend equipment is encapsulated in UDP service message, is sent by described UDP service message
To described headend equipment, the destination address of described UDP service message is the described public affairs through NAT conversion
Net address, source address is the address of described VM server.
In the present invention, described headend equipment, it is additionally operable to the monitoring by needing to be sent to described VM server
Message is encapsulated in UDP service message, and this UDP service message is sent to described VM server,
The source address of this UDP service message is the private net address of described headend equipment, and destination address is described VM
The address of server;
Described VM server, is additionally operable to reception and monitors message from being packaged with of described headend equipment
UDP service message, the source address of this UDP service message is changing through NAT of described headend equipment
Public network address, destination address is the address of described VM server.
In the present invention, described monitoring system also includes the Service Process Server being positioned at public network;
Described VM server, is additionally operable to knowing that headend equipment needs by described with another headend equipment
When Service Process Server processes business, the address of described Service Process Server is sent to this front end and sets
Standby and another headend equipment;
The monitoring message being sent to another headend equipment will be needed to be encapsulated into UDP business report by this headend equipment
Wen Zhong, and this UDP service message is sent to described Service Process Server, this UDP service message
The private net address that source address is this headend equipment, destination address is the address of described Service Process Server;
The monitoring message being sent to this headend equipment will be needed to be encapsulated into UDP business report by another headend equipment
Wen Zhong, is sent to described Service Process Server by this UDP service message, this UDP service message
Source address is the private net address of another headend equipment, and destination address is the address of described Service Process Server.
Described Service Process Server is MS server or DM server;Described Business Processing service
Device, for receiving the UDP service message from this headend equipment He another headend equipment;This headend equipment
UDP service message in be packaged with headend equipment and need to be sent to the monitoring message of another headend equipment, and
The source address of this UDP service message is the public network address through NAT conversion that this headend equipment is corresponding,
Destination address is the address of described Service Process Server;The UDP service message of another headend equipment seals
Need to be sent to the monitoring message of headend equipment, and the source of this UDP service message equipped with another headend equipment
Address is the public network address through NAT conversion that another headend equipment is corresponding, and destination address is described business
The address of processing server;
Public network address, the address of Service Process Server that storage headend equipment is corresponding are right with headend equipment
Should be related to, and store public network address corresponding to another headend equipment, Service Process Server address with another
The corresponding relation of one headend equipment;
The monitoring message being sent to another headend equipment that needs from this headend equipment is encapsulated into UDP industry
In business message, and this UDP service message is sent to another headend equipment, this UDP service message
Destination address is the public network address through NAT conversion that another headend equipment is corresponding, and source address is described industry
The address of business processing server;And/or, by from another headend equipment need be sent to headend equipment
Monitoring message is encapsulated in UDP service message, and this UDP service message is sent to headend equipment,
The destination address of this UDP service message is the public network address through NAT conversion that headend equipment is corresponding,
Source address is the address of described Service Process Server.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Bright can be realized by hardware, it is also possible to the mode of the general hardware platform adding necessity by software realizes.
Based on such understanding, technical scheme can embody with the form of software product, and this is soft
Part product can be stored in a non-volatile memory medium, and (can be CD-ROM, USB flash disk, movement be hard
Dish etc.) in, including some instructions with so that a computer equipment (can be personal computer, take
Business device, or the network equipment etc.) perform the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, in accompanying drawing
Module or flow process are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in the device in embodiment can describe according to embodiment
Carry out being distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than the one of the present embodiment
In individual or multiple device.The module of above-described embodiment can merge into a module, it is also possible to tears open further
It is divided into multiple submodule.
The invention described above sequence number, just to describing, does not represent the quality of embodiment.
The several specific embodiments being only the present invention disclosed above, but, the present invention is not limited to this,
The changes that any person skilled in the art can think of all should fall into protection scope of the present invention.