CN110062056A - Method for network address translation and device - Google Patents

Method for network address translation and device Download PDF

Info

Publication number
CN110062056A
CN110062056A CN201810054970.8A CN201810054970A CN110062056A CN 110062056 A CN110062056 A CN 110062056A CN 201810054970 A CN201810054970 A CN 201810054970A CN 110062056 A CN110062056 A CN 110062056A
Authority
CN
China
Prior art keywords
port
address
layer address
application layer
transport layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810054970.8A
Other languages
Chinese (zh)
Other versions
CN110062056B (en
Inventor
李丹
高明刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201810054970.8A priority Critical patent/CN110062056B/en
Publication of CN110062056A publication Critical patent/CN110062056A/en
Application granted granted Critical
Publication of CN110062056B publication Critical patent/CN110062056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of method for network address translation and devices, wherein, this method comprises: receiving the Session initiation Protocol SIP signaling that calling UE is initiated, wherein, the SIP signaling includes following information: application layer address/port information, transport Layer address/port information;Establish application layer address/port mapping relations;Convert the transport Layer address/port, and application layer address/the port is converted according to the mapping relations of the application layer address/port, solve the problems, such as that SIP-ALG solves NAT-T due to having increased network node newly in the related technology, equipment investment is larger, and introduce the problem that additional propagation time delay causes Realtime Capability of Communication energy poor, under the premise of not increasing network node, by establishing application layer address/port mapping relations, it realizes the conversion to application layer address/port address, improves user experience.

Description

Method for network address translation and device
Technical field
The present invention relates to the communications fields, in particular to a kind of method for network address translation and device.
Background technique
As voice-over-IP telephone (Voice Over Internet Protocol, referred to as VOIP) technology is in wireless access Maturation in technology, IP multimedia subsystem (IP Multimedia Subsystem, referred to as IMS) is as next-generation most heavy The service bearer network wanted is more and more important.Although backbone network is strided forward towards IPv6 always, IPv4 to IPv6's is also needed It will be for quite a long time.Since the address of IPv4 is in short supply, NAT has greatly expanded IPv4's as a kind of transitional technology Address.
In order to support the voice of 4G LTE, operator large area dispose LTE voice (Voice Over LTE, referred to as VoLTE).With the spread overwide areas of VoLTE (supporting SIP/IMS) terminal.The address IPv4 problem in short supply is also more and more important. Since IPv6 not yet carries out spread overwide areas.Network address translation (Network Address Translation, referred to as NAT) just as the interim solution of current generation.But this scheme has a problem, NAT will lead to from outer net The request of Internet to terminal is blocked, and has been only confined in transport layer for the conversion of IP address, for application The IP and Port of layer can not be converted.It is that NAT passes through (NAT Traversal, referred to as NAT-T) that this problem, which is thus referred to as, Problem, that is, NAT crossing problem.
Performance of the NAT-T problem in SIP/IMS can summarize are as follows:
In SIP/IMS application, user equipment (User Equipment, referred to as UE) is created using Session Initiation Protocol, Modify and terminate Multimedia session.IP and Port information is contained in SIP Header and Body.When sip message passes through After NAT device, NAT device only understands converting transmission control protocol/User Datagram Protocol (Transmission Control Protocol/User Datagram Protocol, referred to as TCP/UDP) transport layer IP and Port information, in sip message The IP/Port information of the inside is still constant.
Due to (Session the Description Protocol, referred to as SDP) of Session Description Protocol inside sip message The IP/Port information of c/m field is incorrect (because not converted).Then Media Stream just cannot be created correctly.Such as following figure stream Example process shown in journey illustrates NAT-T problem.
Fig. 1 is the schematic diagram that NAT-T problem call is established in the SIP/IMS of basis in the related technology, as shown in Figure 1, The address transport layer IP and Port is by network address translation (Network Address Translation, abbreviation when the first step It converted for NAT) equipment, but the c and m in SDP are not converted but, 11.22.11.11 the and 192.168.1.2 root in RTP It can not originally be mapped.Media Stream also can not just be established.
In order to solve the problems, such as NAT-T, the following solution is proposed in the industry, including:
Universal Plug-and-Play (universal plug and play, referred to as UPnP)
Simple Traversal Utilities for NAT (the UDP simple traversal of NAT, referred to as STUN)
Traversal Using Relays around NAT (being passed through using the NAT of relaying, referred to as TURN)
Session Initiation Protocol-Application Layer Gateway (answer by Session initiation Protocol- With layer gateway, referred to as SIP-ALG)
Three kinds of schemes as above are creation IP/Port mapping relations, and the mapping pass of this table is saved in NAT device System.
Interactive Connectivity Establishment (interactive mode connection facility, referred to as ICE)
This scheme is using the suitable IP/Port mapping relations of selection.
The typical prior art of lower surface analysis once representative two solutions NAT-T crossing problem:
1) UPnP technology, UPnP are for being automatically configured and being found port mapping.In having NAT environment, UPnP is to carry out IP/Port mapping between UE and NAT device to negotiate.As shown below, give in Fig. 1 example The negotiations process of UPnP before RTP Media Stream is established, Fig. 2 are the stream for solving the problems, such as NAT-T using UPnP technology in the related technology Cheng Tu, using process described in Fig. 2, one multicast address (such as 239.255.255.X) of agreement, belongs to this between UE and NAT device The data of UE can be transmitted on this multicast address, and UE need to only monitor the multicast address.
Ensure that external data packet can correctly reach calling UE with passing through NAT.
2) SIP-ALG technology, SIP-ALG technology are adopted by 3GPP for the scheme in VoLTE/IMS, we come Specifically have a look how he operates.Fig. 3 is to solve the problems, such as NAT-T using SIP-ALG and RTP-Proxy in the related technology Flow chart, as shown in figure 3, the biography of Session initiation Protocol (Session Initiation Protocol, referred to as SIP) signaling Defeated address conversion is completed in SIP-ALG, shows signaling actual transmissions paths traversed by adding Via field, and Source address/port c/m is always maintained at constant in signaling.
Existing program comparison gives the comparison of two kinds of mainstream technologys as shown in table 1.
Table 1
By comparison, it was found that the largest benefit of SIP-ALG is exactly to be not necessarily to it is not necessary to modify the router device of UE and support NAT Do any software upgrading in terminal side.But a disadvantage is that due to having increased network node newly, equipment investment is larger;And it to introduce additional Propagation time delay, Realtime Capability of Communication can be poor.
NAT-T is solved the problems, such as due to having increased network node newly for SIP-ALG in the related technology, equipment investment is larger, and Introduce the problem that additional propagation time delay causes Realtime Capability of Communication energy poor, not yet proposition solution.
Summary of the invention
The embodiment of the invention provides a kind of method for network address translation and devices, at least to solve SIP- in the related technology ALG solves the problems, such as NAT-T due to having increased network node newly, and equipment investment is larger, and introduces additional propagation time delay and cause The poor problem of Realtime Capability of Communication energy.
According to one embodiment of present invention, a kind of method for network address translation is provided, comprising:
Receive the Session initiation Protocol SIP signaling that calling UE is initiated, wherein the SIP signaling includes following information: application Layer address/port information, transport Layer address/port information;
Establish application layer address/port mapping relations;
Transport Layer address/the port is converted, and according to the mapping relations of the application layer address/port to the application It is converted layer address/port.
Optionally, the application layer address/port includes: the address/port of Session Initiation Protocol head, the ground of SDP c/m in SIP Location/port, the transport Layer address/port include User Data Protocol/transmission control protocol UDP/TCP transport layer address/ Port.
Optionally, the method also includes:
The SIP signaling is transmitted to called UE by IMS network, the SIP signaling is used to indicate the IMS network will The address of Session Initiation Protocol head and the address of the UDP/TCP transport layer compare, in the case where comparing result is inconsistent, really The address/port of UDP/TCP transport layer in the fixed SIP signaling is converted by NAT device.
Optionally, the method also includes:
Receive the request message for increase UDP/TCP transport Layer address/port mapping relations that the IMS network is sent;
Increase the mapping relations of the UDP/TCP transport Layer address/port according to the request message.
Optionally, the application layer address/port is turned according to the mapping relations of the application layer address/port After alternatively, the method also includes:
The data that the called UE returns are received by the IMS network;
The calling UE is forwarded the data to according to the mapping relations of the application layer address/port.
According to another embodiment of the invention, a kind of network address conversion device is additionally provided, comprising:
Receiving module, for receiving the Session initiation Protocol SIP signaling of calling UE initiation, wherein the SIP signaling includes Following information: application layer address/port information, transport Layer address/port information;
Module is established, for establishing application layer address/port mapping relations;
Conversion module, for converting the transport Layer address/port, and according to the mapping of the application layer address/port Relationship converts the application layer address/port.
Optionally, the application layer address/port includes: the address/port of Session Initiation Protocol head, the ground of SDP c/m in SIP Location/port, the transport Layer address/port include User Data Protocol/transmission control protocol UDP/TCP transport layer address/ Port.
Optionally, described device further include:
Forwarding module, for the SIP signaling to be transmitted to called UE by IMS network, the SIP signaling is used to indicate The IMS network compares the address of Session Initiation Protocol head and the address of the UDP/TCP transport layer, different in comparing result In the case where cause, determine that the address/port of the UDP/TCP transport layer in the SIP signaling is converted by NAT device.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program, In, described program executes method described in any of the above embodiments when running.
Through the invention, receive calling UE initiate Session initiation Protocol SIP signaling, wherein the SIP signaling include with Lower information: application layer address/port information, transport Layer address/port information;Establish the mapping of application layer address/port Relationship;Transport Layer address/the port is converted, and according to the mapping relations of the application layer address/port to the application layer Address/port is converted, and solves the problems, such as that SIP-ALG solves NAT-T due to having increased network node, equipment newly in the related technology It invests larger, and introduces additional propagation time delay and lead to the problem that Realtime Capability of Communication can be poor, do not increasing network node Under the premise of, by establishing application layer address/port mapping relations, realize the conversion to application layer address/port address, Improve user experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram that NAT-T problem call is established in SIP/IMS in the related technology;
Fig. 2 is the flow chart for solving the problems, such as NAT-T using UPnP technology in the related technology;
Fig. 3 is the flow chart for solving the problems, such as NAT-T using SIP-ALG and RTP-Proxy in the related technology;
Fig. 4 is the hardware block diagram of the mobile terminal of the method for network address translation of the embodiment of the present invention;
Fig. 5 is the flow chart of method for network address translation according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of IP/Port dynamic management according to an embodiment of the present invention;
Fig. 7 is the flow chart of network address conversion according to an embodiment of the present invention;
Fig. 8 is the schematic diagram of IP/Port management according to an embodiment of the present invention;
Fig. 9 is the block diagram of network address conversion device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 4 is the movement of the method for network address translation of the embodiment of the present invention The hardware block diagram of terminal, as shown in figure 4, mobile terminal 10 may include one or two (only showing one in figure) processing Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.), Memory 104 for storing data and the transmitting device 106 for communication function.Those of ordinary skill in the art can be with Understand, structure shown in Fig. 4 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.For example, mobile terminal 10 It may also include than shown in Fig. 4 more perhaps less component or with the configuration different from shown in Fig. 4.
Memory 104 can be used for storing the software program and module of application software, such as the data in the embodiment of the present invention Corresponding program instruction/the module of transmission method, processor 102 by the software program that is stored in memory 104 of operation and Module realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include high speed with Machine memory, may also include nonvolatile memory, as one or two magnetic storage devices, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network is including but not limited to mutual Networking, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to it is mutual Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, use In wirelessly being communicated with internet.
Based on above-mentioned mobile terminal, according to one embodiment of present invention, a kind of method for network address translation is provided, schemed 5 be the flow chart of method for network address translation according to an embodiment of the present invention, as shown in Figure 5, comprising:
Step S502 receives the Session initiation Protocol SIP signaling that calling UE is initiated, wherein the SIP signaling includes following Information: application layer address/port information, transport Layer address/port information;
Step S504 establishes application layer address/port mapping relations;
Step S506 converts the transport Layer address/port, and according to the mapping relations of the application layer address/port Application layer address/the port is converted.
Through the above steps, the Session initiation Protocol SIP signaling that calling UE is initiated is received, wherein the SIP signaling includes Following information: application layer address/port information, transport Layer address/port information;Application layer address/port is established to reflect Penetrate relationship;Transport Layer address/the port is converted, and according to the mapping relations of the application layer address/port to the application Layer address/port is converted, and solves the problems, such as that SIP-ALG solves NAT-T due to having increased network node newly in the related technology, if Standby investment is larger, and introduces the problem that additional propagation time delay causes Realtime Capability of Communication energy poor, is not increasing network section Under the premise of point, by establishing application layer address/port mapping relations, realizes and application layer address/port address is turned It changes, improves user experience.
Optionally, the application layer address/port includes: the address/port of Session Initiation Protocol head, the ground of SDP c/m in SIP Location/port, the transport Layer address/port include User Data Protocol/transmission control protocol UDP/TCP transport layer address/ Port.
Optionally, the method also includes: the SIP signaling is transmitted to called UE by IMS network, the SIP letter Order is used to indicate the IMS network and compares the address of Session Initiation Protocol head and the address of the UDP/TCP transport layer, right In the case where more inconsistent than result, determine that the address/port of the UDP/TCP transport layer in the SIP signaling is by NAT device Converted.
Optionally, the method also includes: receive increase UDP/TCP transport Layer address/port that the IMS network sends Mapping relations request message;It is closed according to the mapping that the request message increases the UDP/TCP transport Layer address/port System.
Optionally, the application layer address/port is turned according to the mapping relations of the application layer address/port After alternatively, the method also includes: the data that the called UE returns are received by the IMS network;According to the application layer The mapping relations of address/port forward the data to the calling UE.
The embodiment of the present invention can remove RTP-Proxy bring RTP transmission for the method for IP/Port dynamic management Time delay reduces the hardware investment of operator, is related to NAT terminal device (such as router/WiFi Hotspot (Wi-Fi hotspot) Deng) and IMS network in the corresponding scheme of SIP-ALG change, Fig. 6 is that IP/Port according to an embodiment of the present invention dynamic manages Schematic diagram, as shown in fig. 6, it is based on SIP-ALG, but RTP (Real-time Transport Protocol, real-time Transmission association View) scheme of the transmission without RTP Proxy (RTP agency), transmission performance can be greatly promoted, is specifically included:
A kind of NAT device is provided in the present embodiment, the request that this NAT device can receive SIP-ALG in IMS network adds Add the instruction of IP/Port mapping relations.And the IP/ for IP address/port numbers will be specified in SIP-ALG being added to NAT device In Port mapping table.The instruction of IP/Port mapping relations is deleted in the request that can receive SIP-ALG in IMS network.And it will IP address/port numbers are specified in SIP-ALG deletes specific entry in the IP/Port mapping table of NAT device.It can receive After TCP/UDP data packet, entire mapping table is inquired, and two-way translation, RTP data industry are carried out by IP/ port mapping table Business can be in the transmitted in both directions of NAT device.For the embodiment of the present invention to the enhancing function of SIP-ALG in IMS equipment, this equipment can be with It directly modifies for IP/ port information in SDP, and tells the port IP/ after modification to NAT device by instruction.
Fig. 7 is the flow chart of network address conversion according to an embodiment of the present invention, as shown in fig. 7, comprises:
Step S701 starts an IMS business, such as makes a call a VoLTE;
Step S702, UE send SIP signaling to NAT device;
Step S703, NAT device create IP/Port map listing, store UE IP address/SIP signaling sending port and Port (first record) after NAT device is converted after IP address and its conversion;
Step S704, the IP address and port modifications of the TCP/UDP transport layer of sip message are the value converted after NAT;
Step S705 starts to carry out the negotiation of SDP media parameter;
Step S706, NAT device and IMS network negotiate the subsequent IP address that carry out RTP business and the port Port;
Step S707 adds an IP/Port mapping relations in NAT device, stores IP address/sending and receiving end RTP of UE The transmission address RTP and the port Port after mouth and negotiation;
Step S708, phone are normally established, and voice flow is directly received by the Article 2 mapping relations that NAT device stores Hair;
Step S709, subscriber phone are hung up;
Step S710, the RTP after deleting the IP address/transmitting-receiving port RTP for storing UE in NAT device and negotiating transmit address With the port Port (Article 2 record).
Fig. 8 is the schematic diagram of IP/Port management according to an embodiment of the present invention, as shown in Figure 8, comprising:
Step1: calling UE initiate Session initiation Protocol SIP signaling (INVITE signaling) to called UE this INVITE message includes following address and port information:
Session Initiation Protocol Header:IP (UE1)/Port (SIP1)
Session Description Protocol SDP c/m:IP (UE1)/Port (realtime transmission protocol RTP 1) in SIP
User Data Protocol/transmission control protocol UDP/TCP transport layer: IP (UE 1)/Port (SIP1)
Step2: after NAT device has received INVITE message, address conversion of the NAT device UDP/TCP transport layer NAT device is stored in for IP (NAT)/Port (SIP2) and by following mapping relations.
SIP:
Contact:IP (UE1)/Port (SIP1)
SDP:
C:IP (UE1)
M:Port (RTP1)
TCP/UDP
Src:IP (NAT)/Port (SIP2), the field are Source, i.e. source address/port
Dst:IP (IMS)/Port (IMS), the field are Destination, i.e. destination address/port
Step3: after IMS network receives INVITE message, IMS network compare Session Initiation Protocol Header in address and The address of TCP/UDP transport layer, both discoveries are different, so IMS network knows that transmission encounters NAT conversion on the way, form RTP NAT IP/Port=IP (NAT)/Port (RTP2).An IP/Port mapping is newly added in IMS request NAT device, and being used for will Carry out the media session of RTP.It increases a NAT mapping relations entry newly, and this mapping relations entry is added to the mapping of NAT Relationship.
1/ port 1 of address 2/ port 2 of address
IP(UE1)/Port(SIP1) IP(NAT)/Port(SIP2)
IP(UE1)/Port(RTP1) IP(NAT)/Port(RTP2)
SIP:
Contact:IP (UE1)/Port (SIP1)
SDP:
C:IP (NAT)
M:Port (RTP2)
TCP/UDP
Src:IP (NAT)/Port (SIP2)
Dst:IP (IMS)/Port (IMS)
Step4:IMS network by c/m field in SDP be modified as IP (NAT)/Port (RTP2) ensure that in this way it is subsequent The data of RTP can carry out normal NAT-T and pass through.
Step5~7: phone establishment process normally completes.And the data packet of RTP is reflected according to what Step3~Step4 was stored Transformational relation .RTP data service is penetrated to be normally carried out.
Step8~9: user hangs up the telephone.After IMS network receives BYE message, IMS network notifies NAT device to delete In the IP/Port mapping relations that Step3~4 is added, processing terminate.
Embodiment 2
According to another embodiment of the invention, a kind of network address conversion device is additionally provided, Fig. 9 is according to the present invention The block diagram of the network address conversion device of embodiment, as shown in Figure 9, comprising:
Receiving module 92, for receiving the Session initiation Protocol SIP signaling of calling UE initiation, wherein the SIP signaling packet Include following information: application layer address/port information, transport Layer address/port information;
Module 94 is established, for establishing application layer address/port mapping relations;
Conversion module 96, for converting the transport Layer address/port, and reflecting according to the application layer address/port Relationship is penetrated to convert the application layer address/port.
Optionally, the application layer address/port includes: the address/port of Session Initiation Protocol head, the ground of SDP c/m in SIP Location/port, the transport Layer address/port include User Data Protocol/transmission control protocol UDP/TCP transport layer address/ Port.
Optionally, described device further include:
Forwarding module, for the SIP signaling to be transmitted to called UE by IMS network, the SIP signaling is used to indicate The IMS network compares the address of Session Initiation Protocol head and the address of the UDP/TCP transport layer, different in comparing result In the case where cause, determine that the address/port of the UDP/TCP transport layer in the SIP signaling is converted by NAT device.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S11 receives the Session initiation Protocol SIP signaling that calling UE is initiated, wherein the SIP signaling includes following information: being answered With layer address/port information, transport Layer address/port information;
S12 establishes application layer address/port mapping relations;
S13 converts the transport Layer address/port, and according to the mapping relations of the application layer address/port to described It is converted application layer address/port.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
Embodiment 4
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation Step in Shi Zhihang any of the above-described method.
Optionally, in the present embodiment, above procedure is for executing following steps:
S21 receives the Session initiation Protocol SIP signaling that calling UE is initiated, wherein the SIP signaling includes following information: being answered With layer address/port information, transport Layer address/port information;
S22 establishes application layer address/port mapping relations;
S23 converts the transport Layer address/port, and according to the mapping relations of the application layer address/port to described It is converted application layer address/port.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in two computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or the step of description, perhaps they are fabricated to each integrated circuit modules or by two of which module or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method for network address translation characterized by comprising
Receive the Session initiation Protocol SIP signaling that calling subscriber equipment UE is initiated, wherein the SIP signaling includes following information: Application layer address/port information, transport Layer address/port information;
Establish application layer address/port mapping relations;
Transport Layer address/the port is converted, and to the application layer according to the mapping relations of the application layer address/port It is converted location/port.
2. the method according to claim 1, wherein the application layer address/port includes: Session Initiation Protocol head Address/port, the address/port of Session Description Protocol SDP c/m in SIP, the transport Layer address/port includes user data Agreement/transmission control protocol UDP/TCP transport layer address/port.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The SIP signaling is transmitted to called UE by IP multimedia subsystem IMS network, the SIP signaling is used to indicate institute IMS network is stated to compare the address of Session Initiation Protocol head and the address of the UDP/TCP transport layer, it is inconsistent in comparing result In the case where, determine that the address/port of the UDP/TCP transport layer in the SIP signaling is by network address translation device Converted.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Receive the request message for increase UDP/TCP transport Layer address/port mapping relations that the IMS network is sent;
Increase the mapping relations of the UDP/TCP transport Layer address/port according to the request message.
5. method according to claim 1 to 4, which is characterized in that according to the application layer address/port Mapping relations the application layer address/port is converted after, the method also includes:
The data that the called UE returns are received by the IMS network;
The calling UE is forwarded the data to according to the mapping relations of the application layer address/port.
6. a kind of network address conversion device characterized by comprising
Receiving module, for receiving the Session initiation Protocol SIP signaling of calling subscriber equipment UE initiation, wherein the SIP signaling Including following information: application layer address/port information, transport Layer address/port information;
Module is established, for establishing application layer address/port mapping relations;
Conversion module, for converting the transport Layer address/port, and according to the mapping relations of the application layer address/port Application layer address/the port is converted.
7. device according to claim 6, which is characterized in that the application layer address/port includes: Session Initiation Protocol head Address/port, the address/port of Session Description Protocol SDP c/m in SIP, the transport Layer address/port includes user data Agreement/transmission control protocol UDP/TCP transport layer address/port.
8. device according to claim 7, which is characterized in that described device further include:
Forwarding module, for the SIP signaling to be transmitted to called UE, the SIP letter by IP multimedia subsystem IMS network Order is used to indicate the IMS network and compares the address of Session Initiation Protocol head and the address of the UDP/TCP transport layer, right In the case where more inconsistent than result, determine that the address/port of the UDP/TCP transport layer in the SIP signaling is by network It is converted that NAT device is converted in location.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 5.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 5 described in method.
CN201810054970.8A 2018-01-19 2018-01-19 Network address translation method and device Active CN110062056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810054970.8A CN110062056B (en) 2018-01-19 2018-01-19 Network address translation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810054970.8A CN110062056B (en) 2018-01-19 2018-01-19 Network address translation method and device

Publications (2)

Publication Number Publication Date
CN110062056A true CN110062056A (en) 2019-07-26
CN110062056B CN110062056B (en) 2021-11-02

Family

ID=67315686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810054970.8A Active CN110062056B (en) 2018-01-19 2018-01-19 Network address translation method and device

Country Status (1)

Country Link
CN (1) CN110062056B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835885A (en) * 2020-07-15 2020-10-27 杭州迪普科技股份有限公司 Network address translation method, device and equipment
CN114531417A (en) * 2020-10-30 2022-05-24 华为技术有限公司 Communication method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516409A (en) * 2003-08-26 2004-07-28 中兴通讯股份有限公司 Method for making medium stream pass through network address converter
CN1777194A (en) * 2005-12-16 2006-05-24 中国科学院计算技术研究所 Network address converting method for supporting multi-dialogue application-layer protocol under PAT mode
CN1937620A (en) * 2005-09-23 2007-03-28 华为技术有限公司 Media flow transmission address consulting method
CN101056271A (en) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 Method for penetrating the NAT and corresponding communication terminal and NAT device
US20100269172A1 (en) * 2002-09-20 2010-10-21 Fortinet, Inc. Firewall interface configuration to enable bi-directional voip traversal communications
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN102318323B (en) * 2011-07-30 2013-10-02 华为技术有限公司 NAT disposal method, equipment and system of call between private network and off-network clients
CN103561130A (en) * 2013-11-06 2014-02-05 北京神州绿盟信息安全科技股份有限公司 Network address translation device and method suitable for multiple application layer protocols

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100269172A1 (en) * 2002-09-20 2010-10-21 Fortinet, Inc. Firewall interface configuration to enable bi-directional voip traversal communications
CN1516409A (en) * 2003-08-26 2004-07-28 中兴通讯股份有限公司 Method for making medium stream pass through network address converter
CN1937620A (en) * 2005-09-23 2007-03-28 华为技术有限公司 Media flow transmission address consulting method
CN1777194A (en) * 2005-12-16 2006-05-24 中国科学院计算技术研究所 Network address converting method for supporting multi-dialogue application-layer protocol under PAT mode
CN101056271A (en) * 2007-06-06 2007-10-17 杭州华三通信技术有限公司 Method for penetrating the NAT and corresponding communication terminal and NAT device
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN102318323B (en) * 2011-07-30 2013-10-02 华为技术有限公司 NAT disposal method, equipment and system of call between private network and off-network clients
CN103561130A (en) * 2013-11-06 2014-02-05 北京神州绿盟信息安全科技股份有限公司 Network address translation device and method suitable for multiple application layer protocols

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835885A (en) * 2020-07-15 2020-10-27 杭州迪普科技股份有限公司 Network address translation method, device and equipment
CN111835885B (en) * 2020-07-15 2023-04-07 杭州迪普科技股份有限公司 Network address translation method, device and equipment
CN114531417A (en) * 2020-10-30 2022-05-24 华为技术有限公司 Communication method and device
CN114531417B (en) * 2020-10-30 2023-09-22 华为技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN110062056B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US8130766B2 (en) System and method for implementing multimedia calls across a private network boundary
US9137200B2 (en) Ice based NAT traversal
CN105376357B (en) A kind of antenna installation method and device of mobile device
EP2635002B1 (en) Cgn (carrier grade nat) entity based data transmission method, cgn entity, gateway and system
US7286520B2 (en) Mobile terminal equipment and packet communication method between terminals
WO2020248963A1 (en) Method and apparatus for establishing end-to-end network connection, and network system
CN102685268B (en) Fast private network traversal method based on ICE (Information and Content Exchange) protocol in VoIP (Voice over Internet Protocol)
EP2018756B1 (en) Address translation in a communication system
KR20080026628A (en) System, terminal, method, and computer program product or establishing a transport-level connection with a server located behind a network address translator and/or firewall
CN103688516B (en) There is provided the method for public accessibility and in relation to system and device
KR20110031428A (en) Techniques to manage communications between relay servers
CN102882865B (en) The method of multimedia agency service control is realized based on socks5 agency agreement
TWI565261B (en) Network address translation traversal system and method for real-time communications
JP5988407B1 (en) Communication path control device, communication path control system, communication path control method, and communication path control program
US20120177049A1 (en) Method and system for implementing network intercommunication
CN110121181A (en) Transmit method, base station, terminal device and the computer readable storage medium of QoS information
AU2012282824B2 (en) Communication system for establishing a real-time communication session
CN110062056A (en) Method for network address translation and device
CN104105222B (en) Establish communication
CN104518959B (en) A kind of method and device of communication between devices
JP2024517716A (en) Improved use of IP networks for routing cellular data packets - Patents.com
JP2024517717A (en) PFCP Session Load Balancer
CN112005533A (en) Method and apparatus for proxy multipath protocol connectivity
JP4912833B2 (en) Wireless communication system and mobile terminal
Lee et al. A survey of session initiation protocol in Wireless Mesh Network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant