CN102984697B - IP communication method, equipment and system based on mobile terminals - Google Patents
IP communication method, equipment and system based on mobile terminals Download PDFInfo
- Publication number
- CN102984697B CN102984697B CN201210514980.8A CN201210514980A CN102984697B CN 102984697 B CN102984697 B CN 102984697B CN 201210514980 A CN201210514980 A CN 201210514980A CN 102984697 B CN102984697 B CN 102984697B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- address information
- idle port
- server
- nat
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 261
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000003993 interaction Effects 0.000 claims abstract description 54
- 238000013507 mapping Methods 0.000 claims abstract description 46
- 230000004044 response Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 14
- 230000005540 biological transmission Effects 0.000 claims description 13
- 230000011664 signaling Effects 0.000 claims description 9
- 238000013519 translation Methods 0.000 claims description 5
- 238000007599 discharging Methods 0.000 claims 4
- 230000000694 effects Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides an IP (Internet Protocol) communication method, equipment and a system based on mobile terminals, wherein the method comprises the following steps: after an NAT (Network Address Translator) traversal server inquires through a source mobile terminal to obtain an idle port identity, the idle port identity and an IP address of the NAT traversal server are used as communication address information which is used for communication interaction with a target mobile terminal through an IP channel to be transmitted to the target mobile terminal through a mobile exchange network; the target mobile terminal transmits a communication registration message to an idle port which corresponds to the idle port identity, so that the NAT traversal server stores a mapping relation among source mobile terminal public network address information, the communication address information and target mobile terminal public network address information, and the target mobile terminal finishes the communication interaction between the source mobile terminal and the target mobile terminal by the idle port according to the mapping relation, so that the mobile terminals in different private networks can use the NAT traversal server to execute the communication interaction through the IP channel, which is conducive to propelling IP services.
Description
Technical field
The embodiment of the present invention relates to communication technical field, particularly relates to a kind of IP communication means based on mobile terminal, equipment and system.
Background technology
Along with popularizing of mobile Internet, most of mobile terminal is made to be provided with the ability of accessing Internet.Due to exhausting of public network IP address, therefore, mobile terminal is according to the private network IP address distributed by operator, by network address translation (the Network Address Translation corresponding to self, NAT) equipment access is in the Internet, thus causes mobile terminal not have the whole network addressability.Therefore, when mobile terminal A and B is in different private networks, due to the public network IP address of the other side cannot be obtained, cause between A and B and cannot carry out communication interaction by IP mode, such as: by multi-medium datas such as IP tunnel transferring voice, audio frequency, videos, there is certain limitation.
Summary of the invention
For the above-mentioned defect of prior art, the embodiment of the present invention provides a kind of IP communication means based on mobile terminal, equipment and system.
One aspect of the present invention provides a kind of IP communication means based on mobile terminal, comprising:
Network address translation NAT passes through server and receives interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information;
Judge to know that self has idle port if described NAT passes through server, the interface querying response comprising idle port mark is then returned to described source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address described idle port mark and the local described NAT prestored being passed through server to make described source mobile terminal by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net;
Described NAT passes through server and receives from described idle port that described destination mobile terminal sends according to described communications address information, comprise the communication registration message of destination mobile terminal public network address information, and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
The present invention provides a kind of IP communication means based on mobile terminal on the other hand, comprising:
Source mobile terminal passes through the IP address of server according to the NAT prestored, and passes through server send the interface querying request message comprising source mobile terminal public network address information to described NAT;
If described source mobile terminal receives described NAT and passes through the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then described idle port mark and described NAT being passed through server by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net, to pass through to described NAT according to described communications address information to make described destination mobile terminal and server identifies corresponding idle port send with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
Another aspect of the invention provides a kind of IP communication means based on mobile terminal, comprising:
Destination mobile terminal reception source mobile terminal is sent by mobile switch net, for being carried out the communications address information of communication interaction by IP tunnel with described destination mobile terminal, described communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, described communications address information is that described source mobile terminal passes through server IP address according to the described NAT prestored is passed through server to described NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that described NAT passes through that server returns comprise the interface querying response of idle port mark after generate,
Described destination mobile terminal to pass through to described NAT according to described communications address information and server identifies corresponding idle port sends with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
Further aspect of the present invention provides a kind of NAT to pass through server, comprising:
First receiver module, for receiving interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information;
First processing module, if know that self has idle port for judging, the interface querying response comprising idle port mark is then returned to described source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address described idle port mark and the local described NAT prestored being passed through server to make described source mobile terminal by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net;
Second processing module, for receiving communication registration message that described destination mobile terminal sends according to described communications address information, that comprise destination mobile terminal public network address information from described idle port, and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three;
Communication module, for the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port being replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus described idle port is adopted to complete described communication interaction.
The present invention provides a kind of mobile terminal on the other hand, comprising:
Enquiry module, for passing through the IP address of server according to the NAT prestored, passes through server to described NAT and sends the interface querying request message comprising source mobile terminal public network address information;
3rd processing module, if pass through for receiving described NAT the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then described idle port mark and described NAT being passed through server by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net, to pass through to described NAT according to described communications address information to make described destination mobile terminal and server identifies corresponding idle port send with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
Another aspect of the invention provides a kind of mobile terminal, comprising:
Second receiver module, for receiving, source mobile terminal sent by mobile switch net, for being carried out the communications address information of communication interaction by IP tunnel with destination mobile terminal, described communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, described communications address information is that described source mobile terminal passes through server IP address according to the described NAT prestored is passed through server to described NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that described NAT passes through that server returns comprise the interface querying response of idle port mark after generate,
Sending module, server identifies corresponding idle port send for passing through to described NAT according to described communications address information the communication registration message comprising destination mobile terminal public network address information with described idle port, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
Further aspect of the present invention provides a kind of IP communication system based on mobile terminal, comprise: source mobile terminal, destination mobile terminal, and above-mentioned NAT passes through server, wherein, the mobile terminal that described source mobile terminal provides on the other hand for the invention described above, the mobile terminal that described destination mobile terminal provides for the another aspect of the invention described above.
The IP communication means based on mobile terminal that the embodiment of the present invention provides, equipment and system, by source mobile terminal to NAT pass through server carry out inquiry obtain idle port mark after, the IP address that idle port mark and NAT are passed through server is as carrying out the communications address information of communication interaction with destination mobile terminal by IP tunnel and sending to destination mobile terminal by mobile switch net, destination mobile terminal sends communication registration message according to identifying corresponding idle port with idle port, thus NAT passes through server preservation source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three, to adopt idle port to complete communication interaction between source mobile terminal and destination mobile terminal according to mapping relations, thus achieve the mobile terminal be under different private network and NAT can be utilized to pass through server carry out communication interaction by IP tunnel, be conducive to advancing IP operation.
Accompanying drawing explanation
Fig. 1 is the flow chart of the IP communication means embodiment that the present invention is based on mobile terminal;
Fig. 2 is the flow chart of another embodiment of IP communication means that the present invention is based on mobile terminal;
Fig. 3 is the flow chart of the another embodiment of IP communication means that the present invention is based on mobile terminal;
Fig. 4 is the structural representation that NAT of the present invention passes through a server embodiment;
Fig. 5 is the structural representation of a mobile terminal of the present invention embodiment;
Fig. 6 is the structural representation of another embodiment of mobile terminal of the present invention;
Fig. 7 is the structural representation of the unified embodiment of IP communication system that the present invention is based on mobile terminal.
Embodiment
Fig. 1 is the flow chart of the IP communication means embodiment that the present invention is based on mobile terminal, and as shown in Figure 1, the method comprises:
Step 100, network address translation NAT passes through server and receives interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information;
When being under different private network two mobile terminals and carrying out IP communication, the NAT that first source mobile terminal prestores according to self passes through the IP address of server, pass through server by the NAT gateway corresponding with the private network at self place to corresponding NAT and send the interface querying request message comprising source mobile terminal public network address information, be specially: NAT gateway receives source mobile terminal and adopts pre-assigned private net address information and private network IP address and port numbers to pass through the interface querying request message of server transmission to NAT, NAT gateway is according to prestore, the private net address information MAP of source mobile terminal is public network address information and public network IP address and port numbers by the address information table comprising private network IP address and port numbers and public network IP address and port numbers corresponding relation, then NAT gateway adopts the public network address information of source mobile terminal to pass through server transmit port inquiry request message to NAT, thus NAT passes through server receives that source mobile terminal sent by NAT gateway, comprise the interface querying request message of source mobile terminal public network address information.It should be noted that, source mobile terminal can pass through the IP address of server according to practical application multiple NAT that needs to prestore, and one of them NAT of Stochastic choice passes through server carries out idle port inquiry, if inquiry knows that this NAT passes through server without idle port, then select next NAT to pass through server and carry out repetitive operation, until find idle port.
Step 101, judge to know that self has idle port if described NAT passes through server, the interface querying response comprising idle port mark is then returned to described source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address described idle port mark and the local described NAT prestored being passed through server to make described source mobile terminal by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net;
After NAT passes through server receiving port inquiry request message, inquire about self and whether also there is idle port, know that self still has idle port if judge, then returned the interface querying response comprising idle port mark to source mobile terminal by NAT gateway according to source mobile terminal public network address information, thus source mobile terminal passes through to NAT interface querying response that server returns carries out parsings and obtain idle port and identify, then idle port mark will be changed and the communications address information of communication interaction to be carried out as with destination mobile terminal in IP address that the NAT that self stores passes through server by IP tunnel, and this communications address information is sent to destination mobile terminal by mobile switch net.It should be noted that, source mobile terminal sends to the mode of destination mobile terminal a lot of by mobile switch net, such as can be sent by trusted channels such as voice signaling channel, short message signaling channels.
Step 102, described NAT passes through server and receives from described idle port that described destination mobile terminal sends according to described communications address information, comprise the communication registration message of destination mobile terminal public network address information, and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
Destination mobile terminal receives after namely communications address information that source mobile terminal sends obtain the IP address and idle port mark that NAT passes through server by mobile switch net, first pass through and server identifies corresponding idle port send with idle port the communication registration message comprising destination mobile terminal public network address information by the NAT gateway corresponding with the private network at self place to passing through NAT corresponding to the IP address of server with NAT according to communications address information, be specially: the idle port that NAT gateway receiving target mobile terminal adopts pre-assigned private net address information and private network IP address and port numbers to pass through server to NAT sends communication registration message, NAT gateway is according to prestore, the private net address information MAP of destination mobile terminal is public network address information and public network IP address and port numbers by the address information table comprising private network IP address and port numbers and public network IP address and port numbers corresponding relation, then the idle port that NAT gateway adopts the public network address information of destination mobile terminal to pass through on server to NAT sends communication registration message, thus NAT passes through, and server sent from idle port receiving target mobile terminal by NAT gateway, comprise the communication registration message of destination mobile terminal public network address information.
Then NAT passes through server according to interface querying request message and communication registration message stores source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three, to adopt idle port to complete the communication interaction carried out between source mobile terminal and destination mobile terminal according to these mapping relations, be specially: to receive from idle port that source mobile terminal sent by the NAT gateway corresponding with the private network at self place when NAT passes through server, after comprising the communication message of source mobile terminal public network address information, then according to mapping relations, source mobile terminal public network address information is replaced with communications address information, and according to destination mobile terminal public network address information, this communication message is sent to the NAT gateway corresponding with the private network at destination mobile terminal place, and then obtain the destination mobile terminal private net address information corresponding with destination mobile terminal public network address information by this NAT gateway according to address information table, and this communication message is sent to destination mobile terminal, to receive from idle port that destination mobile terminal sent by the NAT gateway corresponding with the private network at self place when NAT passes through server, after comprising the communication message of destination mobile terminal public network address information, then according to mapping relations, destination mobile terminal public network address information is replaced with communications address information, and according to source mobile terminal public network address information, this communication message is sent to the NAT gateway corresponding with the private network at mobile terminal place, source, and then obtain the source mobile terminal private net address information corresponding with source mobile terminal public network address information by this NAT gateway according to address information table, and this communication message is sent to source mobile terminal.
The IP communication means based on mobile terminal that the present embodiment provides, equipment and system, by source mobile terminal to NAT pass through server carry out inquiry obtain idle port mark after, the IP address that idle port mark and NAT are passed through server is as carrying out the communications address information of communication interaction with destination mobile terminal by IP tunnel and sending to destination mobile terminal by mobile switch net, destination mobile terminal sends communication registration message according to identifying corresponding idle port with idle port, thus NAT passes through server preservation source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three, to adopt idle port to complete communication interaction between source mobile terminal and destination mobile terminal according to mapping relations, thus achieve the mobile terminal be under different private network and NAT can be utilized to pass through server carry out communication interaction by IP tunnel, be conducive to advancing IP operation.
Further, the idle port adopting NAT to pass through server at source mobile terminal and destination mobile terminal carries out in the process of communication interaction, if NAT passes through server does not receive source mobile terminal or destination mobile terminal transmission in Preset Time communication message from idle port, then think that communication interaction terminates, discharge this idle port, and to source mobile terminal and destination mobile terminal transmit port release message, thus resource is fully used, avoid the waste caused by long-time ineffective occupation.
Fig. 2 is the flow chart of another embodiment of IP communication means that the present invention is based on mobile terminal, and as shown in Figure 2, the method comprises:
Step 200, source mobile terminal passes through the IP address of server according to the NAT prestored, and passes through server send the interface querying request message comprising source mobile terminal public network address information to described NAT;
Step 201, if described source mobile terminal receives described NAT and passes through the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then described idle port mark and described NAT being passed through server by IP tunnel, and described communications address information is sent to described destination mobile terminal by mobile switch net, to pass through to described NAT according to described communications address information to make described destination mobile terminal and server identifies corresponding idle port send with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
The concrete handling process based on each step in the IP communication means of mobile terminal that the present embodiment provides, can see the embodiment of the method shown in above-mentioned Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 3 is the flow chart of the another embodiment of IP communication means that the present invention is based on mobile terminal, and as shown in Figure 3, the method comprises:
Step 300, destination mobile terminal reception source mobile terminal is sent by mobile switch net, for being carried out the communications address information of communication interaction by IP tunnel with described destination mobile terminal, described communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, described communications address information is that described source mobile terminal passes through server IP address according to the described NAT prestored is passed through server to described NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that described NAT passes through that server returns comprise the interface querying response of idle port mark after generate,
Step 301, described destination mobile terminal to pass through to described NAT according to described communications address information and server identifies corresponding idle port sends with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction.
The concrete handling process based on each step in the IP communication means of mobile terminal that the present embodiment provides, can see the embodiment of the method shown in above-mentioned Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Further, destination mobile terminal receive that source mobile terminal is sent by mobile switch net, for after being carried out the communications address information of communication interaction by IP tunnel with destination mobile terminal, whether destination mobile terminal is legal according to the user profile checking source mobile terminal prestored, to determine whether to carry out communication interaction with source mobile terminal.It should be noted that, the method that destination mobile terminal is verified mobile terminal according to the user profile prestored is a lot, such as white list technology or black list techniques, thus ensure that the communication security between source mobile terminal and destination mobile terminal.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Fig. 4 is the structural representation that NAT of the present invention passes through a server embodiment, as shown in Figure 4, this NAT passes through server and comprises: the first receiver module 11, first processing module 12, second processing module 13 and communication module 14, wherein, the first receiver module 11 is for receiving interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information; If for judging, the first processing module 12 knows that self has idle port, the interface querying response comprising idle port mark is then returned to source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in IP address idle port mark and the local NAT prestored being passed through server to make source mobile terminal by IP tunnel, and communications address information is sent to destination mobile terminal by mobile switch net; Second processing module 13 for send from idle port receiving target mobile terminal according to communications address information, the communication registration message that comprises destination mobile terminal public network address information, and preserve source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three; Communication module 14 replaces with communications address information for the source address information of the communication message according to mapping relations, source mobile terminal or destination mobile terminal being sent to idle port, and send to destination mobile terminal or source mobile terminal, thus idle port is adopted to complete communication interaction.
Further, second processing module 13, if also for not receiving the communication message of source mobile terminal or destination mobile terminal transmission from idle port in Preset Time, then releasing idling port, and to source mobile terminal and destination mobile terminal transmit port release message.
The NAT that the present embodiment provides passes through function and the handling process of each module in server, can see the embodiment of the method shown in above-mentioned Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 5 is the structural representation of a mobile terminal of the present invention embodiment, as shown in Figure 5, this mobile terminal comprises: enquiry module 21 and the 3rd processing module 22, wherein, enquiry module 21, for passing through the IP address of server according to the NAT prestored, passes through server to NAT and sends the interface querying request message comprising source mobile terminal public network address information; if the 3rd processing module 22 passes through for receiving NAT the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then idle port mark and NAT being passed through server by IP tunnel, and communications address information is sent to destination mobile terminal by mobile switch net, to pass through to NAT according to communications address information to make destination mobile terminal and server identifies corresponding idle port send with idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for NAT and preserve source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three, communications address information is replaced with the source address information of the communication message according to mapping relations, source mobile terminal or destination mobile terminal being sent to idle port, and send to destination mobile terminal or source mobile terminal, thus adopt idle port to complete communication interaction.
The function of each module and handling process in the mobile terminal that the present embodiment provides, can see the embodiment of the method shown in above-mentioned Fig. 2, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 6 is the structural representation of another embodiment of mobile terminal of the present invention, as shown in Figure 6, this mobile terminal comprises: the second receiver module 31 and sending module 32, wherein, for receiving, source mobile terminal sent by mobile switch net second receiver module 31, for being carried out the communications address information of communication interaction by IP tunnel with destination mobile terminal, communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, communications address information is that source mobile terminal passes through server IP address according to the NAT prestored is passed through server to NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that NAT passes through that server returns comprise the interface querying response of idle port mark after generate, sending module 32 server identifies corresponding idle port sends for passing through to NAT according to communications address information the communication registration message comprising destination mobile terminal public network address information with idle port, pass through server for NAT and preserve source mobile terminal public network address information, mapping relations between communications address information and destination mobile terminal public network address information three, communications address information is replaced with the source address information of the communication message according to mapping relations, source mobile terminal or destination mobile terminal being sent to idle port, and send to destination mobile terminal or source mobile terminal, thus adopt idle port to complete communication interaction.
The function of each module and handling process in the mobile terminal that the present embodiment provides, can see the embodiment of the method shown in above-mentioned Fig. 3, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 7 is the structural representation of the unified embodiment of IP communication system that the present invention is based on mobile terminal, as shown in Figure 7, this system comprises: source mobile terminal 1, destination mobile terminal 2, and NAT passes through server 3, wherein, source mobile terminal 1 can adopt the present invention's mobile terminal provided embodiment illustrated in fig. 5, and destination mobile terminal 2 can adopt the present invention's mobile terminal provided embodiment illustrated in fig. 6, and NAT passes through server 3 and the NAT provided in the embodiment of the present invention can be adopted to pass through server.
The function based on each module in the IP communication system of mobile terminal that the present embodiment provides and handling process, can see above-mentioned shown embodiment of the method, and it realizes principle and technique effect is similar, repeats no more herein.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (8)
1., based on an IP communication means for mobile terminal, it is characterized in that, comprising:
Network address translation NAT passes through server and receives interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information;
Judge to know that self has idle port if described NAT passes through server, the interface querying response comprising idle port mark is then returned to described source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address described idle port mark and the local described NAT prestored being passed through server to make described source mobile terminal by IP tunnel, and described communications address information is sent to described destination mobile terminal by short message signaling channel;
Described NAT passes through server and receives from described idle port that described destination mobile terminal sends according to described communications address information, comprise the communication registration message of destination mobile terminal public network address information, and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction, if described NAT passes through server does not receive described source mobile terminal or the transmission of described destination mobile terminal in Preset Time communication message from described idle port, then discharge described idle port, and to described source mobile terminal and described destination mobile terminal transmit port release message.
2., based on an IP communication means for mobile terminal, it is characterized in that, comprising:
Source mobile terminal passes through the IP address of server according to the NAT prestored, and passes through server send the interface querying request message comprising source mobile terminal public network address information to described NAT;
If described source mobile terminal receives described NAT and passes through the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then described idle port mark and described NAT being passed through server by IP tunnel, and described communications address information is sent to described destination mobile terminal by short message signaling channel, to pass through to described NAT according to described communications address information to make described destination mobile terminal and server identifies corresponding idle port send with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction, if described source mobile terminal or described destination mobile terminal do not send communication message to described idle port in Preset Time, described source mobile terminal then receives the port release message that described NAT passes through server transmission, wherein, described port release message is the communication message that described NAT passes through that server does not receive described source mobile terminal or the transmission of described destination mobile terminal in Preset Time from described idle port, and send after discharging described idle port.
3., based on an IP communication means for mobile terminal, it is characterized in that, comprising:
Destination mobile terminal reception source mobile terminal is sent by short message signaling channel, for being carried out the communications address information of communication interaction by IP tunnel with described destination mobile terminal, described communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, described communications address information is that described source mobile terminal passes through server IP address according to the described NAT prestored is passed through server to described NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that described NAT passes through that server returns comprise the interface querying response of idle port mark after generate,
Described destination mobile terminal to pass through to described NAT according to described communications address information and server identifies corresponding idle port sends with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction, if described source mobile terminal or described destination mobile terminal do not send communication message to described idle port in Preset Time, described destination mobile terminal then receives the port release message that described NAT passes through server transmission, wherein, described port release message is the communication message that described NAT passes through that server does not receive described source mobile terminal or the transmission of described destination mobile terminal in Preset Time from described idle port, and send after discharging described idle port.
4. the IP communication means based on mobile terminal according to claim 3, it is characterized in that, described destination mobile terminal receive that source mobile terminal is sent by short message signaling channel, for after being carried out the communications address information of communication interaction by IP tunnel with described destination mobile terminal, described method also comprises:
According to the user profile prestored, described destination mobile terminal verifies that whether described source mobile terminal is legal, to determine whether to carry out described communication interaction with described source mobile terminal.
5. NAT passes through a server, it is characterized in that, comprising:
First receiver module, for receiving interface querying request message that source mobile terminal sends, that comprise source mobile terminal public network address information;
First processing module, if know that self has idle port for judging, the interface querying response comprising idle port mark is then returned to described source mobile terminal, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address described idle port mark and the local described NAT prestored being passed through server to make described source mobile terminal by IP tunnel, and described communications address information is sent to described destination mobile terminal by short message signaling channel;
Second processing module, for receiving communication registration message that described destination mobile terminal sends according to described communications address information, that comprise destination mobile terminal public network address information from described idle port, and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three;
Communication module, for the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port being replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus described idle port is adopted to complete described communication interaction;
Described second processing module, if also for not receiving the communication message of described source mobile terminal or the transmission of described destination mobile terminal in Preset Time from described idle port, then discharge described idle port, and to described source mobile terminal and described destination mobile terminal transmit port release message.
6. a mobile terminal, is characterized in that, comprising:
Enquiry module, for passing through the IP address of server according to the NAT prestored, passes through server to described NAT and sends the interface querying request message comprising source mobile terminal public network address information;
3rd processing module, if pass through for receiving described NAT the interface querying response comprising idle port mark that server returns, the communications address information of communication interaction to be carried out as with destination mobile terminal in the IP address then described idle port mark and described NAT being passed through server by IP tunnel, and described communications address information is sent to described destination mobile terminal by short message signaling channel, to pass through to described NAT according to described communications address information to make described destination mobile terminal and server identifies corresponding idle port send with described idle port the communication registration message comprising destination mobile terminal public network address information, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction, if described source mobile terminal or described destination mobile terminal do not send communication message to described idle port in Preset Time, described source mobile terminal then receives the port release message that described NAT passes through server transmission, wherein, described port release message is the communication message that described NAT passes through that server does not receive described source mobile terminal or the transmission of described destination mobile terminal in Preset Time from described idle port, and send after discharging described idle port.
7. a mobile terminal, is characterized in that, comprising:
Second receiver module, for receiving, source mobile terminal sent by short message signaling channel, for being carried out the communications address information of communication interaction by IP tunnel with destination mobile terminal, described communications address information comprises: NAT passes through IP address and the idle port mark of server, wherein, described communications address information is that described source mobile terminal passes through server IP address according to the described NAT prestored is passed through server to described NAT and sent the interface querying request message comprising source mobile terminal public network address information, and receive that described NAT passes through that server returns comprise the interface querying response of idle port mark after generate,
Sending module, server identifies corresponding idle port send for passing through to described NAT according to described communications address information the communication registration message comprising destination mobile terminal public network address information with described idle port, pass through server for described NAT and preserve described source mobile terminal public network address information, mapping relations between described communications address information and described destination mobile terminal public network address information three, the source address information that described source mobile terminal or described destination mobile terminal are sent to the communication message of described idle port is replaced with described communications address information according to described mapping relations, and send to described destination mobile terminal or described source mobile terminal, thus adopt described idle port to complete described communication interaction, if described source mobile terminal or described destination mobile terminal do not send communication message to described idle port in Preset Time, described destination mobile terminal then receives the port release message that described NAT passes through server transmission, wherein, described port release message is the communication message that described NAT passes through that server does not receive described source mobile terminal or the transmission of described destination mobile terminal in Preset Time from described idle port, and send after discharging described idle port.
8. the IP communication system based on mobile terminal, it is characterized in that, comprise: source mobile terminal, destination mobile terminal, and NAT as claimed in claim 5 passes through server, wherein, described source mobile terminal is mobile terminal as claimed in claim 6, and described destination mobile terminal is mobile terminal as claimed in claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210514980.8A CN102984697B (en) | 2012-12-04 | 2012-12-04 | IP communication method, equipment and system based on mobile terminals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210514980.8A CN102984697B (en) | 2012-12-04 | 2012-12-04 | IP communication method, equipment and system based on mobile terminals |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102984697A CN102984697A (en) | 2013-03-20 |
CN102984697B true CN102984697B (en) | 2015-07-08 |
Family
ID=47858343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210514980.8A Active CN102984697B (en) | 2012-12-04 | 2012-12-04 | IP communication method, equipment and system based on mobile terminals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102984697B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888511A (en) * | 2014-02-20 | 2014-06-25 | 北京哈工大计算机网络与信息安全技术研究中心 | Remote access control method based on dynamic proxy |
CN110445883A (en) * | 2018-05-03 | 2019-11-12 | 海信集团有限公司 | A kind of communication means and device of Internet of Things |
CN110602655B (en) * | 2019-08-26 | 2021-11-05 | 深圳市丰润达科技有限公司 | Short message-based equipment communication address modification method and device and readable storage medium |
CN113055353B (en) * | 2019-12-28 | 2023-04-25 | 中移(成都)信息通信科技有限公司 | Data transmission method, device, equipment and computer readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1074138A1 (en) * | 1998-04-23 | 2001-02-07 | Lucent Technologies Remote Access Business Unit | System and method for network address translation as an external service in the access server of a service provider |
CN1677949A (en) * | 2004-03-31 | 2005-10-05 | 华为技术有限公司 | Method for realizing communication between equipments in network |
CN102055816A (en) * | 2010-12-28 | 2011-05-11 | 华为技术有限公司 | Communication method, business server, intermediate equipment, terminal and communication system |
-
2012
- 2012-12-04 CN CN201210514980.8A patent/CN102984697B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1074138A1 (en) * | 1998-04-23 | 2001-02-07 | Lucent Technologies Remote Access Business Unit | System and method for network address translation as an external service in the access server of a service provider |
CN1677949A (en) * | 2004-03-31 | 2005-10-05 | 华为技术有限公司 | Method for realizing communication between equipments in network |
CN102055816A (en) * | 2010-12-28 | 2011-05-11 | 华为技术有限公司 | Communication method, business server, intermediate equipment, terminal and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN102984697A (en) | 2013-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8559448B2 (en) | Method and apparatus for communication of data packets between local networks | |
CN109981803B (en) | Service request processing method and device | |
CN102845123B (en) | Virtual private cloud connection method and tunnel proxy server | |
US9882866B2 (en) | Address allocating method, apparatus, and system | |
US10158998B2 (en) | Network path probing using available network connections | |
CN102790813B (en) | Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network | |
US9031074B2 (en) | Method and apparatus for packet call setup | |
CN103414798B (en) | The communication means of address transition Network Based, equipment and system | |
CN102790812B (en) | IP (internet protocol) address source tracing method, equipment and system based on mobile terminal | |
CN102802227B (en) | Based on the data processing method of base station direct connection framework, equipment and system | |
CN102984696B (en) | Based on the IP communication means of mobile terminal, equipment and system | |
CN105306612A (en) | Method for acquiring identifier of terminal in network and management network element | |
CN102984697B (en) | IP communication method, equipment and system based on mobile terminals | |
CN101902506A (en) | SIP call-based traversal network address translation method and system | |
CN105245629A (en) | DHCP-based host communication method and device | |
CN103581361A (en) | Domain name resolution proxy method, device and system | |
CN104427004A (en) | ARP message management method based on network equipment | |
RU2016113280A (en) | CONNECTING BASE STATIONS THROUGH AN EXTERNAL NETWORK | |
CN103167483B (en) | A kind of data forwarding method based on tunnel, equipment and system | |
CN104488240A (en) | Session management method, address management method and relevant device | |
CN110351772B (en) | Mapping between wireless links and virtual local area networks | |
CN102045260A (en) | Message transmission method in mobile IPv6 and UTM (unified threat management) equipment | |
WO2023072291A1 (en) | Multi-hop relay connection establishment method, apparatus, and device, and medium | |
CN103227822A (en) | Method for establishing P2P communication connection and equipment | |
CN111315037B (en) | Communication link establishing method and device, computer equipment and storage medium |
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 |