CN100536425C - Network address translation system and method for supporting mobile IP operation in private network - Google Patents
Network address translation system and method for supporting mobile IP operation in private network Download PDFInfo
- Publication number
- CN100536425C CN100536425C CNB2004100350800A CN200410035080A CN100536425C CN 100536425 C CN100536425 C CN 100536425C CN B2004100350800 A CNB2004100350800 A CN B2004100350800A CN 200410035080 A CN200410035080 A CN 200410035080A CN 100536425 C CN100536425 C CN 100536425C
- Authority
- CN
- China
- Prior art keywords
- address
- content
- address field
- registration
- field
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
技术领域 technical field
本发明是关于网路位址转换的技术领域,尤指一种用以支持行动IP(Mobile IP)运行于私有网路的网路位址转换系统及其方法。The present invention relates to the technical field of network address translation, in particular to a network address translation system and method for supporting mobile IP (Mobile IP) running on a private network.
背景技术 Background technique
在网际网路(Internet)中,网路协定(Internet Protocol,IP)位址被用来代表一台机器,而网路中封包的传送也利用IP位址来代表其传送的来源及目的。目前在网际网路中广泛使用的是IP技术中的版本四(IPv4),其特点为使用32位元长度的位址。然而由于网路上机器数量的快速成长,及受限于位址长度,所以可用的公有IP(public IP)位址有渐渐不足的趋势。In the Internet (Internet), the Internet Protocol (IP) address is used to represent a machine, and the transmission of packets in the network also uses the IP address to represent the source and destination of its transmission. Currently widely used in the Internet is version four (IPv4) of IP technology, which is characterized by the use of addresses with a length of 32 bits. However, due to the rapid growth of the number of machines on the network and the limitation of address length, the available public IP (public IP) addresses tend to be gradually insufficient.
为了解决此位址不足的问题,便有网路位址转换(Network AddressTranslation,NAT)装置的引入,其可减缓IP位址消耗的速率并可让短少IP位址的区域继续运行。然而随著NAT装置的引入,IP失去透明性(Transparency)的问题也随之而来,例如,NAT装置将导致行动IP(Mobile IP)协定无法正常运作,参照图1所示以Mobile IP协定运作于使用NAT装置14私有网路102的示意图,当一行动节点(MN)11由其本地网路101移动至一外地的私有网路102时,该行动节点11将由该私有网路102的动态主机配置协定(Dynamic Host Configuration Protocol,DHCP)伺服器13取得一暂时位址(Care of Address,CoA)(192.168.0.1),依据Mobile IP协定,该移动至外地的行动节点11在取得暂时位址后,会向其本地网路101的本地代理器(HA)12注册,如图所示,其所发出的注册封包15的标头来源(source)及目的(destination)分别为该暂时位址(192.168.0.1)及该本地代理器12的位址(120.105.1.1),而注册封包15的内容即包含有关此行动节点11目前所在的暂时位址(192.163.0.1)。此注册封包15经由该NAT装置14的处理而将标头的来源由该暂时位址(192.168.0.1)转换为NAT装置14的公有IP位址(140.113.1.1),继而将注册封包15递送至该本地代理器12。本地代理器12在收到此注册封包15后,解开其内容而得知该行动节点11目前处在该暂时位址(192.168.0.1),并回复一标头的来源(source)及目的(destination)分别为该本地代理器12的位址(120.105.1.1)及该NAT装置14的公有IP位址(140.113.1.1)的注册回应封包16,经由该NAT装置14将目的由公有IP位址(140.113.1.1)转为该暂时位址(192.168.0.1),而可正确地将注册回应封包16递送给该行动节点11,完成注册程序。之后,本地代理器12依注册所知该行动节点11的暂时位址(192.168.0.1)作为目的位址而传送资料封包17给该行动节点11,然由于该目的位址(暂时位址192.168.0.1)为一私有位址,而无法由本地网路101正确地递送到私有网路102,故而造成Mobile IP协定无法运行。In order to solve the problem of insufficient addresses, there is the introduction of Network Address Translation (NAT) devices, which can slow down the rate of IP address consumption and allow areas that lack IP addresses to continue to operate. However, with the introduction of NAT devices, the problem of IP loss of transparency (Transparency) also follows. For example, NAT devices will cause the mobile IP (Mobile IP) protocol to fail to operate normally. Refer to Figure 1 to operate with the Mobile IP protocol In the schematic diagram of the
为解决上述使用NAT装置14而导致Mobile IP协定无法正常运作的问题,一种直接的方式便是当本地代理器12在收到并解开注册封包15后,进一步判断其内容所含的行动节点11所在位址(暂时位址)是否与注册封包的来源位址相同,如果不同,表示此注册封包15已经过NAT转换,因此,在注册回应而完成注册后,本地代理器12依原注册封包15的来源位址作为目的位址而传送封包给该行动节点11,而非为由注册封包的内容所知该行动节点11的暂时位址,如此可将资料封包17正确地递送至该NAT装置14,以经过位址转换而进一步送至该行动节点11。然而,前述解决方案的前提是NAT装置14需将不同的行动装置11的暂时位址转换为不同的公有位址,如此NAT装置14才可区别出资料封包所要送达的行动装置11,此将造成未能节省任何公有位址的结果。In order to solve the problem that the above-mentioned use of the
发明内容 Contents of the invention
本发明的主要目的在于提供一种用以支持行动IP运行于私有网路的网路位址转换系统及其方法,其无需使用任何表格及接口号码,即可使行动IP运行于私有网路,且能与现有的网路位址转换技术相容。The main purpose of the present invention is to provide a network address translation system and method for supporting mobile IP running on a private network, which can make mobile IP running on a private network without using any tables and interface numbers, And it can be compatible with the existing network address translation technology.
依据本发明的一特色,提出一种用以支持行动IP运行于私有网路的方法,其中,一行动节点由其本地网路移动至一外地的私有网路,且该行动节点由该私有网路取得一暂时位址,该私有网路具有一NAT装置,于该方法中,该行动节点向其本地网路的本地代理器发出一注册封包,该注册封包的标头来源位址栏位及目的位址栏位分别为该暂时位址及该本地代理器的位址,且该注册封包具有一交换位址选用栏位;该NAT装置将该注册封包的来源位址栏位的内容与该交换位址栏位的内容交接,再依据NAT转换的规则,将来源位址栏位的内容转换为该NAT装置的公有位址,以将该注册封包传送至该本地代理器;该本地代理器在收到该注册封包后,回复一标头的来源位址栏位及目的位址栏位内容分别为该本地代理器的位址及该NAT装置的公有位址的注册回应封包,此注册回应封包具有一交换位址选用栏位,其内容包含该暂时位址;该NAT装置将该注册回应封包的目的位址栏位的内容与交换位址栏位的内容交换,以将此注册回应封包传送至行动节点。According to a feature of the present invention, a method for supporting mobile IP running on a private network is proposed, wherein a mobile node moves from its local network to a private network in a foreign country, and the mobile node is transferred from the private network The private network has a NAT device. In this method, the mobile node sends a registration packet to the local agent of its local network. The source address field of the header of the registration packet and The destination address field is respectively the address of the temporary address and the home agent, and the registration packet has an exchange address selection field; the NAT device combines the contents of the source address field of the registration packet with the The content of the exchange address field is handed over, and then according to the rules of NAT conversion, the content of the source address field is converted into the public address of the NAT device, so as to transmit the registration packet to the local agent; the local agent After receiving the registration packet, the contents of the source address field and the destination address field of a header are respectively the address of the local agent and the public address of the NAT device in the registration response packet, the registration response The packet has an exchange address selection field, and its content includes the temporary address; the NAT device exchanges the content of the destination address field of the registration response packet with the content of the exchange address field, so that the registration response packet Teleport to action node.
依据本发明的另一特色,提出一种用以支持行动IP运行于私有网路的系统,其包括:一本地代理器、至少一行动节点、及一NAT装置。该本地代理器设置于一本地网路中。该行动节点可由该本地网路移动至一外地的私有网路,且由该私有网路取得一暂时位址,该行动节点向该本地代理器发出一注册封包,该注册封包的标头来源位址栏位及目的位址栏位分别为该暂时位址及该本地代理器的位址,该注册封包具有一交换位址选用栏位。该NAT装置设置于该私有网路,其将该注册封包的来源位址栏位的内容与该交换位址栏位的内容交换,再依据NAT转换的规则,将来源位址栏位的内容转换为该NAT装置的公有位址,以将该注册封包传送至该本地代理器;或将一注册回应封包的目的位址栏位的内容与交换位址栏位的内容交换,以将该注册回应封包传送至该行动节点;该本地代理器于收到该注册封包后,回复该注册回应封包,该注册回应封包的标头来源位址栏位及目的位址栏位的内容分别为该本地代理器的位址及该NAT装置的公有位址,该注册回应封包具有交换位址选用栏位,其内容包含该暂时位址。According to another characteristic of the present invention, a system for supporting mobile IP running on a private network is proposed, which includes: a local agent, at least one mobile node, and a NAT device. The local agent is set in a local network. The mobile node can move from the local network to a foreign private network, and obtain a temporary address from the private network. The mobile node sends a registration packet to the local agent, and the header source bit of the registration packet is The address field and the destination address field are respectively the temporary address and the address of the home agent, and the registration packet has an exchange address selection field. The NAT device is installed on the private network, and it exchanges the content of the source address field of the registration packet with the content of the exchange address field, and then converts the content of the source address field according to the rules of NAT conversion For the public address of the NAT device, to send the registration packet to the home agent; or to exchange the content of the destination address field of a registration response packet with the content of the exchange address field, so that the registration response The packet is sent to the mobile node; after receiving the registration packet, the home agent replies to the registration response packet, and the contents of the header source address field and destination address field of the registration response packet are the home agent The address of the device and the public address of the NAT device, the registration response packet has an exchange address selection field, and its content includes the temporary address.
附图说明 Description of drawings
图1为公知以Mobile IP协定运作于使用NAT装置的私有网路的示意图。FIG. 1 is a schematic diagram of a known Mobile IP protocol operating on a private network using a NAT device.
图2显示一标准的封包标头的内容。Figure 2 shows the contents of a standard packet header.
图3为本发明用以支持行动IP运行于私有网路的NAT系统的架构图,其说明注册的过程。FIG. 3 is a structural diagram of the NAT system used to support mobile IP running on a private network according to the present invention, which illustrates the registration process.
图4为本发明的用以支持行动IP运行于私有网路的NAT系统的架构图,其说明传送资料封包的过程。FIG. 4 is a structural diagram of a NAT system for supporting mobile IP running on a private network according to the present invention, which illustrates the process of transmitting data packets.
具体实施方式 Detailed ways
为能更了解本发明的技术内容,特举较佳具体实施例说明如下。In order to better understand the technical content of the present invention, preferred specific embodiments are given as follows.
本发明的用以支持行动IP运行于私有网路的网路位址转换系统及其方法是将既有IP标头(Header)的选择性栏位新定义一交换位址选用栏位(Swap addtess option field),而提供一位址交换功能,据以实现支持MobileIP运行于私有网路的目的。The NAT system and method thereof for supporting mobile IP running on a private network of the present invention are to newly define an optional field of an existing IP header (Header)-exchange address optional field (Swap addtess) option field), and provide an address exchange function, so as to realize the purpose of supporting MobileIP to run on the private network.
图2显示一标准的封包标头的内容,其中,在来源位址(Source address)栏位21及目的位址(Destinatioil address)栏位22之后可接续有选用(Option)栏位23,在RFC 791中定义了数种选用栏位23的用途,例如,类型(Type)栏位232为0×07时,选用栏位23用来记录封包经过的路由器,类型栏位232为0×44时,选用栏位23用来记录时间,类型栏位232为0×83或0×89时,选用栏位23用来指定封包经过的路由器,本发明是将一选用栏位23定义为一交换位址选用栏位,当栏位23中的类型栏位232被设定为本发明的交换位址选用栏位(例如Type=0×2a),则栏位23中的交换位址栏位231即记录本发明的NAT系统所使用的交换位址。而此交换位址栏位231的初始位址为0.0.0.0,以供本发明的系统及方法所使用。Fig. 2 shows the content of a standard packet header, wherein, after the source address (Source address)
图3为说明本发明的用以支持行动IP运行于私有网路的NAT系统及其方法的系统架构图,当一行动节点(MN)11由其本地网路101移动至一外地的私有网路102时,该行动节点11将由该私有网路20的动态主机配置协定伺服器13取得一暂时位址(CoA)(192.168.0.1),依据Mobile IP协定,该移动至外地的行动节点11在取得暂时位址后,会向其本地网路10的本地代理器(HA)12注册,如图所示,其所发出的注册封包15的标头来源(source)及目的(destination)分别为该暂时位址(192.168.0.1)及该本地代理器12位栏(120.105.1.1),而注册封包15的内容即包含有关此行动节点11目前所在的暂时位址(192.168.0.1),且注册封包15包含交换位址栏位,其交换位址值设为0.0.0.0.0。此注册封包15经由该NAT装置14的处理,其中,NAT装置14侦测此注册封包15带有交换位址栏位,则将来源位址栏位的内容(暂时位址(192.163.0.1))与交换位址栏位的内容(位址0.0.0.0)交换,使得交换位址栏位的内容为暂时位址(192.168.0.1),而来源位址栏位的内容为位址0.0.0.0。该NAT装置14再依据NAT转换的规则,将来源位址(位址0.0.0.0)转换为该NAT装置14的公有IP位址(140.113.1.1)。而将此注册封包15传送至本地网路101的本地代理器12。FIG. 3 is a system architecture diagram illustrating the NAT system and method thereof for supporting mobile IP operation in a private network of the present invention. When a mobile node (MN) 11 moves from its
本地代理器12在收到此注册封包15后,解开其资料内容而得知该行动节点11目前处在该暂时位址(192.168.0.1)。本地代理器12回复一标头来源(source)及目的(destination)分别为该本地代理器12的位址(120.105.1.1)及该NAT装置14的公有IP位址(140.113.1.1)的注册回应封包16,此注册回应封包16亦包含交换位址栏位,并依据注册所知行动节点11的暂时位址(192.163.0.1),而将此暂时位址(192.168.0.1)填入注册回应封包16的交换位址栏位,此注册回应封包16经由该NAT装置14的处理,其中,NAT装置14侦测此注册回应封包16带有交换位址栏位,而将目的位址栏位的内容(NAT装置14的公有位址140.113.1.1)与交换位址栏位的内容(暂时位址192.168.0.1)交换,使得目的位址栏位的内容为暂时位址(192.168.0.1),而交换位址栏位的内容为NAT的公有位址(140.113.1.1)。故能将此注册回应封包16传送至行动节点11,以完成注册。After receiving the
在注册完成后,如移动至外地的私有网路102的行动节点11欲传送资料封包给本地代理器12,如图4所示,资料封包17的来源位址栏位为暂时位址(192.168.0.1)、目的位址栏位为本地代理器12的位址(120.105.1.1),资料封包17并不包含交换位址栏位,而NAT装置14依一般的NAT转换,将资料封包17的来源位址(暂时位址(192.163.0.1))转换为NAT装置14的公有IP位址(140.113.1.1),而将资料封包17递送至该本地代理器12。After the registration is completed, if the
如该本地代理器12欲传送资料封包给该移动至外地的私有网路102的行动节点11,如图4所示,资料封包17的来源位址栏位为本地代理器12的位址(120.105.1.1),目的位址栏位为NAT装置14的公有IP位址(140.113.1.1),资料封包将加上交换位址栏位,且依据先前注册的资讯,得知行动节点11的暂时位址(192.163.0.1),而将此暂时位址(192.168.0.1)填入资料封包17的交换位址栏位。If this
此资料封包先递送至该NAT装置14,NAT装置14侦测此资料封包17带有交换位址栏位,而将目的位址栏位的内容(NAT的公有位址140.113.1.1)与交换位址栏位的内容(暂时位址192.168.0.1)交换,使得目的位址栏位的内容为暂时位址(192.168.0.1),而交换IP位址栏位的内容为NAT装置14的公有位址140.113.1.1。而可将此资料封包17正确地传送至行动节点11。This data packet is delivered to the
由以上说明可知,本发明由利用既有封包标头的一选用栏位指定为一交换位址选用栏位,而可提供一位址交换功能来保存移动至外地的私有网路的行动节点的暂时位址,其与现有的NAT转换相容,且无需使用任何表格及接口号码,即可实现支持行动IP运行于私有网路的目的。As can be seen from the above description, the present invention is designated as an exchange address selection field by utilizing an optional field of the existing packet header, and an address exchange function can be provided to preserve the mobile node's address of the private network that moves to the field. Temporary address, which is compatible with the existing NAT conversion, and does not need to use any tables and interface numbers, it can realize the purpose of supporting mobile IP to run on the private network.
上述实施例仅为了方便说明而举例而已,本发明所主张的权利范围自应以申请专利范围所述为准,而非仅限于上述实施例。The above-mentioned embodiments are only examples for convenience of description, and the scope of rights claimed by the present invention should be based on the scope of the patent application, rather than limited to the above-mentioned embodiments.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100350800A CN100536425C (en) | 2004-04-23 | 2004-04-23 | Network address translation system and method for supporting mobile IP operation in private network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100350800A CN100536425C (en) | 2004-04-23 | 2004-04-23 | Network address translation system and method for supporting mobile IP operation in private network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1691638A CN1691638A (en) | 2005-11-02 |
| CN100536425C true CN100536425C (en) | 2009-09-02 |
Family
ID=35346773
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100350800A Expired - Fee Related CN100536425C (en) | 2004-04-23 | 2004-04-23 | Network address translation system and method for supporting mobile IP operation in private network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100536425C (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101193130B (en) * | 2006-11-21 | 2010-05-12 | 中兴通讯股份有限公司 | Method for penetrating NAT in mobile IPv6 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1386339A (en) * | 2000-08-05 | 2002-12-18 | 三星电子株式会社 | Packet transmission method for mobile internet |
| US6636498B1 (en) * | 1999-01-08 | 2003-10-21 | Cisco Technology, Inc. | Mobile IP mobile router |
| CN1468474A (en) * | 2001-12-28 | 2004-01-14 | ƽ | Methods and apparatus for implementing nat traversal in mobile ip |
-
2004
- 2004-04-23 CN CNB2004100350800A patent/CN100536425C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6636498B1 (en) * | 1999-01-08 | 2003-10-21 | Cisco Technology, Inc. | Mobile IP mobile router |
| CN1386339A (en) * | 2000-08-05 | 2002-12-18 | 三星电子株式会社 | Packet transmission method for mobile internet |
| CN1468474A (en) * | 2001-12-28 | 2004-01-14 | ƽ | Methods and apparatus for implementing nat traversal in mobile ip |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1691638A (en) | 2005-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6862274B1 (en) | Method and system capable of providing mobility support for IPv4/IPv6 inter-networking | |
| US7657642B2 (en) | IP network node and middleware for establishing connectivity to both the IPv4 and IPv6 networks | |
| CN100469038C (en) | ISATAP router and method for tunneling packets | |
| CN100433674C (en) | Internetwork protocol and method for setting main machine address and selecting source address | |
| JP3556885B2 (en) | Method for use at the packet endpoint | |
| US7486670B2 (en) | Method for packet communication and computer program stored on computer readable medium | |
| AU2004244296B2 (en) | Arrangement for traversing an IPv4 network by IPv6 mobile nodes | |
| JP4505168B2 (en) | Packet network interfacing | |
| US7639686B2 (en) | Access network clusterhead for providing local mobility management of a roaming IPv4 node | |
| US20110082941A1 (en) | Method of providing direct communication in internet protocol network | |
| JP2008079304A (en) | Automatic tunneling method and system using NAT | |
| JP4118909B2 (en) | IPv4-IPv6 conversion system and method using dual stack conversion mechanism | |
| US8194683B2 (en) | Teredo connectivity between clients behind symmetric NATs | |
| US20120177049A1 (en) | Method and system for implementing network intercommunication | |
| TWI239173B (en) | NAT system supporting mobile IP in private networks and its method | |
| CN1875573B (en) | Method, node and server for providing tunnel service capable of data communication between different types of networks | |
| JP2006087039A (en) | Mobile IP communication terminal apparatus and mobile IP communication method | |
| JP2006050626A (en) | Network address conversion method and apparatus | |
| US20060193320A1 (en) | Data transmission method having improved network address translation method in home gateway and a system thereof | |
| CN100413289C (en) | The Method of Realizing IPv6 High Performance Interconnection Based on P2P on IPv4 | |
| CN100459566C (en) | Method for implementing tunnel relay in network for carrying out conversion of network address | |
| CN102523312B (en) | Method for optimal tunnel selection in 4over6 scene | |
| CN100505686C (en) | Method for realizing communication between mobile IPv6 node and IPv4 communication partner | |
| US7693091B2 (en) | Teredo connectivity between clients behind symmetric NATs | |
| CN100479457C (en) | Implementation method for transferring data in virtual private network |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090902 |