Patent ID: 9432330
Filing Date: 2016-08-30
CPC Classification: H04L

Claim Text:
1. A data interaction method, comprising: sending simultaneously, by a client host, an address detection request for a User Datagram Protocol (UDP) channel and an address detection request for a Transmission Control Protocol (TCP) channel; and when both address detection for the UDP channel and address detection for the TCP channel fail, sending an address detection request for a Hypertext Transfer Protocol (HTTP) channel; when address detection for at least one channel succeeds, collecting, by the client host, two types of addresses corresponding to each channel in the at least one channel, wherein the two types of addresses comprise a mapping address allocated by a network address translation (NAT) host at an outermost layer of each channel and a relay address of a local relay device; obtaining, by the client host, host addresses of three types of channels of the client host which serves as a local client host, wherein the host addresses of the three types of channels comprise a host address of the UDP channel, a host address of the TCP channel, and a host address of the HTTP channel; and performing, by the client host, address exchange and address matching with a peer client host, comprising: and performing, by the client host, channel connectivity detection based on matched addresses, and selecting, by the client host, a channel with a highest priority from channels on which connectivity detection is successful for data interaction with the peer client host.