Patent ID: 7783768
Filing Date: 2010-08-24
Classification: H04L

Abstract:
1. A method for establishing a peer-to-peer connection between a local user terminal and a peer user terminal, comprising: predicting one port or a group of ports to be used in a peer-to-peer communication connection, according to a port changing regularity of symmetric network address translation (NAT) of the peer user terminal; attempting to establish a peer-to-peer communication connection with the peer user terminal, via the one port or the group of ports predicted until the corresponding peer-to-peer communication connection is established; and wherein, the processing of attempting to establish the peer-to-peer communication connection specifically comprises executing a hole punching for n rounds by the peer user terminal, wherein a circular hole punching from N to N+U is executed in the first round, and circular hole punching from N+U×(m−2) to N+U×m, or from N+U×(m−1) to N+U×m, is executed in the mth round until the connection is established, wherein N is a current port number, U is a preset value, and n and m are integers respectively greater than one.