Method and communication unit for communicating between communication apparatuses
First Claim
1. A method for communicating between communication apparatuses, the method comprising:
- sending, by a first communication apparatus, a first request for establishing a Peer to Peer (P2P) connection to a second communication apparatus through a server;
initiating, by the first communication apparatus or the second communication apparatus, a command for establishing a P2P connection with the other side;
establishing a P2P channel between the first communication apparatus and second communication apparatus based on the command for establishing a P2P channel;
transmitting data packets over the P2P channel;
wherein initiating the command comprisesdetermining, by the second communication apparatus, whether it is in a private network, after receiving the first request from the first communication apparatus,sending a second request for establishing a P2P connection to the first communication apparatus through the server if it is in the private network, otherwise, initiating the command for establishing P2P channel with the first communication apparatus; and
wherein determining whether the second communication apparatus is in the private network comprisessending, by the second communication apparatus, a message to the server,extracting, by the server, address information of the second communication apparatus in the message and returning the address information to the second communication apparatus, anddetermining, by the second communication apparatus, whether the received address information is the same as the address information of the second communication apparatus and determining that the second communication apparatus is in a private network if the received address information is not the same as the address information of the second communication apparatus.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method for communicating between communication apparatuses and a communication unit. The method includes: sending, by a first communication apparatus, a first request for establishing a Peer to Peer (P2P) connection to a second communication apparatus through a server; initiating, by the first communication apparatus or the second communication apparatus, a command for establishing a P2P connection with the other side; establishing directly a P2P channel between the first communication apparatus and second communication apparatus based on the command for establishing a P2P channel and transmitting data packets over the P2P channel. In the present invention, a P2P channel is directly established between the communication apparatuses to communicate, so data can be forwarded without a server. Thus, the load of the server may be reduced and information interaction rate of users may be improved.
2 Citations
12 Claims
-
1. A method for communicating between communication apparatuses, the method comprising:
-
sending, by a first communication apparatus, a first request for establishing a Peer to Peer (P2P) connection to a second communication apparatus through a server; initiating, by the first communication apparatus or the second communication apparatus, a command for establishing a P2P connection with the other side; establishing a P2P channel between the first communication apparatus and second communication apparatus based on the command for establishing a P2P channel; transmitting data packets over the P2P channel; wherein initiating the command comprises determining, by the second communication apparatus, whether it is in a private network, after receiving the first request from the first communication apparatus, sending a second request for establishing a P2P connection to the first communication apparatus through the server if it is in the private network, otherwise, initiating the command for establishing P2P channel with the first communication apparatus; and wherein determining whether the second communication apparatus is in the private network comprises sending, by the second communication apparatus, a message to the server, extracting, by the server, address information of the second communication apparatus in the message and returning the address information to the second communication apparatus, and determining, by the second communication apparatus, whether the received address information is the same as the address information of the second communication apparatus and determining that the second communication apparatus is in a private network if the received address information is not the same as the address information of the second communication apparatus. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A communication unit, located in a communication apparatus in a network, comprising:
-
a first interface, adapted to receive a data packet sent by an application of the communication apparatus to which the first interface belongs, and send a data packet from the network to the application of the communication apparatus to which the first interface belongs; an encoding and decoding module, adapted to encode data sent to the network through the first interface and decode data sent to the first interface; a second interface adapted to send encoded data to the network and send the data received from the network to the encoding and decoding module; a first communication module, connected between the first interface and the encoding and decoding module and adapted to control information and mode of communication between the communication apparatus to which the first communication module belongs and a server in the network; and a second communication module, connected between the first interface and the encoding and decoding module and adapted to control information and mode of communication between the communication apparatus and another communication apparatus connected with the communication apparatus over a P2P connection. - View Dependent Claims (11, 12)
-
Specification