摘要 |
The embodiments of the present invention provide a method, device and system for allocating an internet protocol (IP) address of an external network in the network address translation (NAT) pass-through, which belong to the communications field. The method includes: receiving a request message for establishing a NAT mapping item corresponding to a connection from a client, wherein the request message includes an appointed external network IP address, and the external network IP address is the same as an external network IP address in an established NAT mapping item corresponding to any connection in the same application; while establishing the NAT mapping item according to the received request message, allocating, according to the appointed external network IP address in the request message, the IP address which is the same as the appointed external network IP address as the external network IP address of the NAT mapping item to be established. The embodiments of the present invention also provide a NAT device and system. With the method, the capability of the NAT pass-through protocol to adapt to existing applications is enhanced significantly and the performance of the NAT device is enhanced. |