Patent ID: 7706370

Claim:
A method of implementing traversal of multimedia protocols through a Network Address Translation (NAT) device, wherein the NAT device establishes a mapping relationship between an address of a terminal in a private network and an address of a terminal in a public network, and enables the terminal in the private network to access the public network with a common address, so as to implement interaction of media streams between the terminal in the private network and the terminal in the public network, in which the common address is an address of the private network for accessing the public network, the method comprising: the terminal in the private network acquiring the address of the terminal in the public network for sending media streams; the terminal in the private network sending a redirect packet, in which a destination address of the redirect packet is the address of the terminal in the public network for sending media streams; the NAT device replacing a source address in the redirect packet with the common address and sending the replaced redirect packet to the terminal of the public network, and establishing a mapping relationship between the source address in the redirect packet before the replacement and the common address in the redirect packet after the replacement; the terminal in the public network sending the media stream, in which destination address of the media stream is the common address, the NAT device replacing the destination address in the media stream with the address of the terminal in the private network in accordance with the mapping relationship; the terminal in the private network sending redirect packets periodically to refresh a timeout time for the mapping relationship; wherein acquiring the address of the terminal in the public network includes the terminal in the private network sending a request message to the terminal in the public network to acquire the address of the terminal in the public network for sending media streams; wherein sending the request message includes the terminal of the private network sending the request message when the media stream sent from the terminal of the public network is not received within a reset time period after a ‘Open Media Channel’ signaling from the terminal of the public network has been received; and wherein the reset time period is shorter than the time for which the terminal of the private network will disconnect automatically when there is no code stream received.