A kind of NAT of seeing through realizes the method for real-time multi-media bidirectional communication
Technical field: the present invention is applicable to IP (the Internet Protocol Internet protocol) communications field, is specifically related to realize the real time bidirectional method for communicating by the multimedia telecom equipment of NAT.
Background technology: the note of relative words, IP: Internet protocol, NAT: network address translation, with reference to RFC 1631, TCP:(Transmission Control Protocol, transmission control protocol), UDP:(UserDatagram Protocol User Datagram Protoco (UDP), VoIP:(Voice over Internet Protocol) IP network voice technology, the agreement about VoIP of Zhi Dinging H.323:ITU, current use is VoIP communication protocol widely.SIP:(Session Initiation Protocol) conversation initialized protocol, MGCP:(MGCP) MGCP, RTCP:(Real-Time Transport Control Protocol) RTCP Real-time Transport Control Protocol, RTP:(Real-Time Transport protocol) RTP, SS: soft switchcall server.
Existing technical merit: the source is sent out equipment and is sent call request at the NAT network to the called equipment at different networks: after multimedia telecom equipment in the NAT and the foundation of the multimedia telecom equipment call signaling channel outside the NAT, two equipment promptly begin to carry out the negotiation of media stream, and this negotiations process realizes by the address exchange, and because the IP address of the multimedia telecom equipment in NAT is a private net address, when exchanging in the address like this, it tells that the media stream channel address of the multimedia telecom equipment that NAT is outer is not right, just cause the multimedia equipment of public network one end can receive the multimedia streaming data bag that the multimedia equipment in the NAT is sent, and the multimedia telecom equipment in the NAT can not receive the multi-medium data bag, as Fig. 2.Do not carrying out on the NAT under the situation of port mapping formula or map addresses, the outer multimedia telecom equipment of NAT can not be set up IP with the multimedia telecom equipment in the NAT and communicate by letter, promptly can not carry out the link setup of TCP, make communication signaling can't pass to called equipment, caller equipment can't be obtained with called equipment and write to each other, cause called equipment can't receive the communication signaling of caller equipment, also just can't carry out real-time multimedia communication.
At present, many manufacturers of multimedia telecom equipment development ability and experience that have are arranged (as developing and produce based on MGCP, SIP, the VoIP multimedia telecom equipment of communication protocols such as H323), they have developed the multimedia telecom equipment product of oneself, but, also just can't expand multimedia communication service in the NAT network environment because each multimedia telecom equipment can't be realized normal two-way communication between existing each NAT network.
Summary of the invention: the technical issues that need to address of the present invention: can't normally to carry out normal multi-media bidirectional communication problem in order solving under NAT, to need to seek the method that switching system comes transfer communication signaling and multi-medium data bag.Wherein key technology be exactly how to send out with the source, target device sets up signalling path and carries out Signalling exchange, and how to transmit and the broadcasting multimedia data bag, and the source of obtaining is sent out, the address and the port numbers of the up-to-date multi-medium data bag of target device according to rule.
Technical scheme of the present invention is: a kind of NAT of seeing through realizes the method for real-time multi-media bidirectional communication, it is characterized in that: utilize soft switchcall server SS to come the realization source to send out with two communication equipments of target and carry out real-time multi-media bidirectional communication through NAT.
A.1, multimedia telecom equipment this method further may further comprise the steps: a) method of the multimedia telecom equipment of communication signaling in the NAT outcall NAT:, after network is connected, set up IP tunnel with SS, and regularly send relevant channel parameters, keep the survival of this passage.Regularly send out packet as mode to SS with UDP.Thereby SS just can set up a two-way IP tunnel by the multimedia telecom equipment transmission packet in NAT according to the source IP address of receiving the IP bag and port numbers.A.2, after SS receives calling, through decision, from the IP tunnel of having set up, the target device in NAT sends the call request notification package.A.3, the multimedia telecom equipment in the NAT, receive call request after, initiatively set up the IP link (connecting) of signaling communication as TCP to SS.A.4, SS after obtaining the signaling IP tunnel of called multimedia telecom equipment, call signaling is transmitted to called multimedia telecom equipment, thereby realizes the called of NAT signaling.B) multi-medium data wrap in method that NAT go up to realize transparent transmission b.1, all communication signalings transmit through SS; B.2, SS revises signaling, and notice calling and called multimedia telecom equipment issues SS with multi-medium data, carried out the renewal (as duplicating) of multimedia bag and transmitted (or broadcasting) by SS; B.3, SS from receive the multi-medium data bag obtain the source and send out IP address and port numbers, with destination address, thereby realize the transparent transmission of NAT multi-medium data bag as other direction communication.Wherein, described multimedia default channel address be the source send out and target device between Signalling exchange the time consult to finish, SS will change this signaling, the multimedia channel address all be changed into the channel address of SS appointment.By above-mentioned a (realizing the transparent transmission of NAT multi-medium data bag) and b (realizing the called of NAT signaling) and prior art (caller of NAT signaling) thus the two-way communication of the communication equipment under the NAT of realization.
Beneficial effect of the present invention: 1) improved the range of application of multimedia communication service, and supported H323, SIP, the various multimedia telecom equipments of MGCP, MegacoH248.2) multi-media bidirectional communication between the multimedia equipment under the multiple Internet access of the realization environment.3) make full use of the existing Internet resources of user, protected customer investment.4) provide the business of user's request fast, the unified pattern of activating the service reduces professional operating cost.5) it is simple that the present invention has enforcement, can realize management and control to each multimedia equipment.The multimedia telecom equipment and the NAT that have realized (private network IP address) in the NAT carry out two-way communication by soft switchcall server SS between (public network IP address) multimedia telecom equipment outward.And two multimedia telecom equipments of (private network IP address) carry out two-way communication by soft switchcall server SS in different NAT.
Description of drawings:
Fig. 1 forms schematic diagram for system of the present invention
Fig. 2 sends out the called schematic diagram of the NAT signaling of equipment calling target device for realization of the present invention source
Fig. 3 sends out the transparent transmission schematic diagram of equipment and single target equipment private network realization NAT multi-medium data bag for single source of the present invention
Fig. 4 sends out the transparent transmission schematic diagram of equipment and 2 target device private network realization NAT multi-medium data bags for single source of the present invention
Among the figure: 1-sends out device A in the source, 2-SS public network, 3-target device B, 4-target device C, 5-NAT.
Embodiment: the source is sent out user equipment and is applicable to various Internet access waies among the present invention, can be NAT5, dialing and other mode.Fig. 1, Fig. 2 and Fig. 3 show a kind of typical networking, comprise in this networking that the source sends out device A 1, target device B3, target device C4 and SS public network 2, realize the process of multi-media bidirectional communication under the NAT5.
Below in conjunction with the called process of describing whole NAT signaling in detail shown in Figure 2: at first, the source send out device A 1 and target device B3 when network is connected and SS public network 2 set up IP tunnel, and the authentication word (ID) that device A 1 and target device B3 are sent out in the source sent to SS public network 2, SS public network 2 is preserved channel informations (comprising IP address and port numbers) and user's ID.Send out device A 1 when the source and call out toward SS public network 2, SS public network 2 finds called target device B3 by the rule of setting, if target device B3 is in the NAT, SS public network 2 is just sent out the source signaling that device A 1 sends and preserved.SS public network 2 extracts the IP tunnel of target device B3 in IP tunnel of storing and facility information, SS public network 2 sends call request message by the IP tunnel that finds to target device B3.This moment, target device B3 can receive call request, and target device B3 will initiatively set up signalling path to SS public network 2 if accept this request.SS public network 2 will be sent out the call signaling of device A 1 according to this signalling path to target device B3 forwarding source at this moment.
Below in conjunction with the transparent transmission process of describing NAT multi-medium data bag in detail shown in Figure 3: at first, SS public network 2 is when receiving communication signaling, detect in the signaling packet and whether contain the multimedia channel address, if have, then this channel address is changed to the address of SS public network 2, again signaling is transmitted to target device.Guarantee that each equipment all transmitted the real-time multimedia bag by SS public network 2.When SS public network 2 is sent out the multimedia bag of device A 1 in the source of receiving, preserve the source of current multimedia bag and send out IP address and port numbers, and IP address and port numbers are sent out in the source of the up-to-date multimedia bag of the target device B3 that extracts.This multimedia bag is transmitted to target device B3 by IP address and the port numbers that extracts.SS public network 2 is preserved the source of current multimedia bag and is sent out IP address and port numbers when receiving the multimedia bag of target device B3, and IP address and port numbers are sent out in the source that the up-to-date multimedia bag of device A 1 is sent out in the source that extracts.And this multimedia bag sent out device A 1 by the IP address and the port numbers source of being transmitted to that extract.
The transparent transmission of NAT multi-medium data bag also is applicable in the real-time multimedia meeting simultaneously.Also can utilize this mode to realize the transparent transmission of the multi-medium data bag of broadcasting between a plurality of equipment.This mode is also within claim protection range of the present invention.As shown in Figure 3.