CN104660651A - P2P connecting method, server, terminal and communication system - Google Patents

P2P connecting method, server, terminal and communication system Download PDF

Info

Publication number
CN104660651A
CN104660651A CN201310603242.5A CN201310603242A CN104660651A CN 104660651 A CN104660651 A CN 104660651A CN 201310603242 A CN201310603242 A CN 201310603242A CN 104660651 A CN104660651 A CN 104660651A
Authority
CN
China
Prior art keywords
terminal
server
location information
geographical location
selects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310603242.5A
Other languages
Chinese (zh)
Inventor
李茗
张海
赵瑞前
马宙
李卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310603242.5A priority Critical patent/CN104660651A/en
Publication of CN104660651A publication Critical patent/CN104660651A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Abstract

The invention relates to a P2P connecting method, a P2P connecting server, a P2P connecting terminal and a communication system, for enabling a server to relatively well select other user terminals for establishing P2P connection for a user terminal, thereby achieving the purpose of data resource sharing of user terminals, reducing the system cost, increasing the system utilization rate and increasing data transmission velocity. The P2P connecting method comprises the following steps: receiving a message transmitted from a first terminal for requesting a server to select terminals for establishing P2P connection for the first terminal through the server; selecting a second terminal for the first terminal according to locally received and recoded geographical location information of the first terminal, and geographical location information of other terminals, and notifying the first terminal of the selected information of the second terminal.

Description

A kind of P2P method of attachment, server, terminal and a kind of communication system
Technical field
The present invention relates to the communications field, particularly relate to a kind of P2P method of attachment, a kind of P2P connection server, a kind of P2P connection terminal and a kind of communication system.
Background technology
Along with the develop rapidly of the Internet and user are for the continuous increase of multimedia messages demand, especially when number of users increases gradually, the service mode of traditional user side/server (Client/Server, C/S) pattern can not meet user terminal gradually for obtaining the demand of media information.
As shown in Figure 1, the system architecture of traditional C/S mode controls (Internet ProtocolControl by Internet protocol, IPC) website, server and user terminal three part composition, wherein each user terminal all sets up independent communication port with server, user terminal by server from IPC station for acquiring data resource.Therefore when the quantity of user terminal sharply increases, the video total amount of user terminal program request increases thereupon, and the user of viewing video is more, and on network, the data of redundancy are more, and therefore the load of server also can sharply increase.The available resources of server, as: central processing unit (Central Processing Unit, CPU), internal memory, particularly bandwidth resources, become the bottleneck of system.When the service ability of server reaches in limited time, can not provide service for the user newly added, the scale of system is also restricted.
The appearance of end-to-end (Peer to Peer, P2P) technology optimizes the service mode of traditional C/S model.The important feature of P2P changes the present state centered by large website in the Internet, returns to " decentralization ", and power is given back user.P2P technology allows to set up P2P between user terminal and connects, and the user terminal setting up P2P connection so just can be communicated with each other, and reaches the object of exchange message, resource-sharing.But based in the stream media transmission system framework of P2P pattern, the information interchange between user terminal is not directly carried out, and needs the server being positioned at center and coordinates.
As shown in Figure 2, based in the stream media transmission system framework of P2P pattern, user terminal is except can by streaming media server from the data of IPC station for acquiring Streaming Media, P2P can also be set up with other user terminals to be connected, and then carry out the upload and download of data, to reach the object of information exchange between user terminal, data resource sharing with other user terminals; Each user terminal not only serves as user side but also serve as server, also for other user terminal provides data resource while enjoying the data resource that other user terminals provide.Current server only serves as booster action in based on the stream media transmission system framework of P2P pattern, server is other user terminals that user terminal selecting connects for setting up P2P, but server for user terminal selecting for set up P2P connect other user terminals time, this selection is carried out at random, there is no certain rule, user terminal can not be chosen optimal for setting up other user terminals that P2P connects, system availability is reduced.
In sum, stream media transmission system at present based on P2P pattern does not fundamentally solve Problems existing in the service mode of traditional C/S mode, server for user terminal selecting for set up P2P connect other user terminals time, this selection is carried out at random, can not for this user terminal selecting be to optimal other user terminals for setting up P2P connection, make to carry out information exchange well between user terminal, sharing of data resource, and then the data of redundancy on network are increased, the load of server increases, system cost is high, utilance is low.
Summary of the invention
The invention provides a kind of P2P method of attachment, a kind of P2P connection server, a kind of P2P connection terminal and a kind of communication system, for realizing server better for user terminal selecting is for setting up other user terminals of P2P connection, to reach the object of data resource sharing between user terminal, reduce system cost, improve system availability, improve message transmission rate.
The embodiment of the present invention provides a kind of P2P method of attachment, and the method comprises:
The request server that server receives first terminal transmission is the message that this first terminal selects to set up the terminal that P2P connects;
Server is according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
By said method, first terminal can be just that the second terminal that it is selected is set up P2P and is connected with server, makes to carry out data resource sharing between first terminal and the second terminal, reduces system cost, improve system availability, improve message transmission rate.
Preferably, server is according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, comprising:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end.
Such server can be just the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, when there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Like this, such server can be just the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, the method also comprises:
Server receives and records the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
Such server can be just the second terminal that this first terminal selects P2P connection according to the information of other information of the geographical location information of first terminal, this first terminal and other-end.
Preferably, server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of this first terminal and other-end, comprising:
The geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
When first terminal is mobile terminal, server selects the second terminal of immobile terminal type from described multiple second terminal; When first terminal is the terminal of immobile terminal type, server selects the second terminal of immobile terminal type from described multiple second terminal; Or,
The second terminal that server selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal; Or,
Server is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
Such server is the second terminal that this first terminal selects P2P connection according to the information of the information of first terminal and other-end.
The embodiment of the present invention provides a kind of P2P method of attachment, and the method comprises:
It is the message that this first terminal selects to set up the terminal that P2P connects that first terminal sends request server to server;
First terminal reception server notifies, and according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, wherein, the second terminal is that server is determined according to the geographical location information of first terminal and the second terminal.
By said method, first terminal can be just that the second terminal that it is selected is set up P2P and is connected with server, makes to carry out data resource sharing between first terminal and the second terminal, reduces system cost, improve system availability, improve message transmission rate.
Preferably, the geographical position of the second terminal and the geographical position of this first terminal are in same administrative region.
Such server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, the geographical position of the second terminal is positioned at the adjacent administrative region of administrative region belonging to this first terminal.
Such server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, the method also comprises:
First terminal reports the playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting to server.
Such server can be just the second terminal that this first terminal selects P2P connection according to the information of other information of the geographical location information of first terminal, this first terminal and other-end.
The embodiment of the present invention provides a kind of P2P connection server, and this server comprises:
Receive request unit, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects;
Requesting processing, for according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
Preferably, requesting processing according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Requesting processing according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end.
Such requesting processing can be just the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, when there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, requesting processing according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Such requesting processing can be just the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, receive request unit also for:
Receive and record the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
Such requesting processing can be just the second terminal that this first terminal selects P2P connection according to the information of other information of the geographical location information of first terminal, this first terminal and other-end.
Preferably, requesting processing according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
The geographical position of requesting processing according to first terminal and the geographical position of other-end, determine multiple second terminal;
When first terminal is mobile terminal, requesting processing selects the second terminal of immobile terminal type from multiple second terminal; When first terminal is the terminal of immobile terminal type, requesting processing selects the second terminal of immobile terminal type from multiple second terminal; Or,
The second terminal that requesting processing selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal; Or,
Requesting processing is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
Such requesting processing is the second terminal that this first terminal selects P2P connection according to the information of the geographical location information of first terminal, other information of this first terminal and other-end.
The embodiment of the present invention provides a kind of P2P to connect terminal, and this terminal comprises:
Sending request unit, is the message that affiliated first terminal selects to set up the terminal that P2P connects for sending request server to server;
Connect unit, notify for reception server, and according to described notice determine that this server selects for setting up with affiliated first terminal the second terminal that P2P is connected, wherein, the second terminal is that server is determined according to the geographical location information of first terminal and the second terminal.
Preferably, the geographical position of the second terminal and the geographical position of this first terminal are in same administrative region.
Such server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, the geographical position of the second terminal is positioned at the adjacent administrative region of administrative region belonging to this first terminal.
Such server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, send request unit also for:
The playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting is reported to server.
Such server can be just the second terminal that this first terminal selects P2P connection according to the information of other information of the geographical location information of first terminal, this first terminal and other-end.
The embodiment of the present invention provides a kind of communication system, and this system comprises: server and end side, and wherein, end side comprises multiple terminals of first terminal and the second terminal;
First terminal, be the message of terminal that this first terminal is selected to set up P2P and connected for sending request server to server, and reception server notice, according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, and set up P2P with this second terminal and be connected, wherein, described second terminal is that server is determined to the geographical location information of server side according to described first terminal and described second terminal to report;
Server, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects, and according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
Preferably, server according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end.
Such server can be just the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, when there is no the geographical position of geographical position and described first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, for this first terminal selects the second terminal of the adjacent administrative region, administrative region being positioned at first terminal place from other-end.
Such server is the second terminal that this first terminal selects P2P connection according to the geographical location information of the geographical location information of first terminal and other-end.
Preferably, first terminal and/or the second terminal are also for reporting the playing progress rate information of Media Stream of the terminal type information of this first terminal and/or the second terminal, operator's informaiton and/or current broadcasting to server;
Server and/or the second terminal are also for receiving and recording the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports and/or the second terminal, operator's informaiton and/or current broadcasting.
Such server can be just the second terminal that this first terminal selects P2P connection according to the information of other information of the geographical location information of first terminal, this first terminal and other-end.
Accompanying drawing explanation
Fig. 1 is the system architecture schematic diagram of C/S model in prior art;
Fig. 2 is the stream media transmission system configuration diagram based on P2P pattern in prior art;
A kind of P2P method of attachment schematic flow sheet that Fig. 3 provides at server side for the embodiment of the present invention;
A kind of P2P method of attachment schematic flow sheet that Fig. 4 provides in end side for the embodiment of the present invention;
A kind of P2P method of attachment schematic flow sheet that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of P2P connection server that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of P2P connection terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
The invention provides a kind of P2P method of attachment, a kind of P2P connection server, a kind of P2P connection terminal and a kind of communication system, for realizing server better for user terminal selecting is for setting up other user terminals of P2P connection, to reach the object of data resource sharing between user terminal, reduce system cost, improve system availability, improve message transmission rate.
As shown in Figure 3, at server side, embodiments provide a kind of P2P method of attachment, the method comprises:
The request server that S31, server receive first terminal transmission is the message that this first terminal selects to set up the terminal that P2P connects;
S32, server are according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
Preferably, in step s 32 server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end be that this first terminal selects the method for the second terminal to comprise:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end;
When there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Wherein the geographical position of first terminal and the geographical position of the second terminal are in same administrative region, or in adjacent administrative region, relative to the distance between the geographical position of first terminal and the geographical position of other-end, distance between the geographical position of first terminal and the geographical position of the second terminal is closer, and the speed ratio transmitting data between such terminal is very fast.
Preferably, the method also comprises:
Server receives and records the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting;
Now, server is that this first terminal selects the method for the second terminal to comprise following three kinds according to the geographical location information of the geographical location information of this first terminal and other-end in step s 32:
Method one: when server receives and records the terminal type information of this first terminal that first terminal reports, the geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
The terminal type of first terminal comprises: mobile terminal, PC PC, television set top box, video player or TV;
When first terminal is mobile terminal, server selects the second terminal of immobile terminal type from described multiple second terminal; When first terminal is the terminal of immobile terminal type, server selects the second terminal of immobile terminal type from described multiple second terminal;
Method two: when server receives and records the operator's informaiton of this first terminal that first terminal reports, the geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
The second terminal that server selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal.
Method three: when server receives and records the playing progress rate information of the Media Stream of the current broadcasting of this first terminal that first terminal reports, the geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
Server is selected and the same Media Stream of the current broadcasting of first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of first terminal exists the second terminal of difference.
Preferably, when the playing progress rate of Media Stream and the playing progress rate of this same Media Stream of the current broadcasting of this first terminal that there is the current broadcasting of multiple second terminal exist difference, server is the second terminal that this first terminal selects the difference between the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of this first terminal maximum.
The geographical location information of described other-end is that server local reception is also recorded in step s 32, all terminals all need the geographical location information of each self terminal and other information (comprising: the playing progress rate information of the Media Stream of terminal type information, operator's informaiton and/or current broadcasting) to report server in the present invention, and server carries out local reception and record.
As shown in Figure 4, in end side, embodiments provide a kind of P2P method of attachment, the method comprises:
It is the message that this first terminal selects to set up the terminal that P2P connects that S41, first terminal send request server to server
S42, first terminal reception server notify, and according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, wherein, described second terminal is that server is determined according to the geographical location information of described first terminal and described second terminal.
Preferably, in step S42, the geographical position of the second terminal and the geographical position of this first terminal are in same administrative region; When not having the geographical position in geographical position and this first terminal in other-end when the second terminal of same administrative region, the geographical position of the second terminal and the geographical position of this first terminal are in adjacent administrative region.
Wherein the geographical position of first terminal and the geographical position of the second terminal are in same administrative region, or in adjacent administrative region, relative to the distance between the geographical position of first terminal and the geographical position of other-end, distance between the geographical position of first terminal and the geographical position of the second terminal is closer, and the speed ratio transmitting data between such terminal is very fast.
Preferably, the method also comprises:
First terminal reports the playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting to server;
Now in step S42, what first terminal was determined according to the notice received has following three kinds of situations for setting up with this first terminal the second terminal that P2P is connected:
Situation one: the terminal type of first terminal comprises: mobile terminal, PC PC, television set top box, video player or TV;
When first terminal is mobile terminal, the second terminal is the second terminal of immobile terminal type in multiple second terminal;
When first terminal is the terminal of immobile terminal type, the second terminal is also the second terminal of immobile terminal type in multiple second terminal.
Situation two: when the geographical position of server according to first terminal and the geographical position of other-end, when determining multiple second terminal, the operator's informaiton of the second terminal is identical with the operator's informaiton of this first terminal.
Situation three: when the geographical position of server according to first terminal and the geographical position of other-end, when determining multiple second terminal, second terminal and the same Media Stream of the current broadcasting of this first terminal, and there is difference in the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of this first terminal.
Preferably, when the playing progress rate of Media Stream and the playing progress rate of this same Media Stream of the current broadcasting of this first terminal that there is the current broadcasting of multiple second terminal exist difference, the difference between the playing progress rate of the Media Stream of the current broadcasting of the second terminal and the playing progress rate of this same Media Stream of the current broadcasting of this first terminal is maximum.
Below in conjunction with instantiation, a kind of P2P method of attachment that the embodiment of the present invention provides is described, concrete steps as shown in Figure 5:
It is the message that this first terminal selects to set up the terminal that P2P connects that S51, first terminal send request server to server;
The request server that S52, server receive first terminal transmission is the message that this first terminal selects to set up the terminal that P2P connects;
S53, server are according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal;
S54, first terminal reception server notify, and according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, wherein, described second terminal is that server is determined according to the geographical location information of described first terminal and described second terminal.
Preferably, in step S53 server according to local reception and record the geographical location information of this first terminal and the geographical location information of other-end be that this first terminal selects the method for the second terminal to comprise:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end;
When there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Preferably, the method also comprises:
First terminal reports the playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting to server;
Server receives and records the playing progress rate information of Media Stream of the terminal type information of the first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
Now, in step S53 server according to local reception and record the geographical location information of this first terminal and the geographical location information of other-end be that this first terminal selects the method for the second terminal to comprise following three kinds:
Method one: when server receives and records the terminal type information of this first terminal that first terminal reports, the geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
The terminal type of first terminal comprises: mobile terminal, PC PC, television set top box, video player or TV;
When first terminal is mobile terminal, server selects the second terminal of immobile terminal type from described multiple second terminal; When first terminal is the terminal of immobile terminal type, server selects the second terminal of immobile terminal type from described multiple second terminal.
Method two: when server receives and records the operator's informaiton of this terminal of terminal to report, according to the geographical position of first terminal and the geographical position of other-end, determine multiple second terminal;
The second terminal that server selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal.
Method three: when server receives and records the playing progress rate information of the Media Stream of the current broadcasting of this terminal of terminal to report, according to the geographical position of first terminal and the geographical position of other-end, determine multiple second terminal;
Server is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
Preferably, when the playing progress rate of Media Stream and the playing progress rate of this same Media Stream of the current broadcasting of this first terminal that there is the current broadcasting of multiple second terminal exist difference, server is the second terminal that this first terminal selects the difference between the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of this first terminal maximum.
Being used for of being determined by above-mentioned three kinds of methods is set up the second terminal notification that P2P is connected to this first terminal by server with this first terminal.
Described in step S53, the geographical location information of other-end is that server local reception is also recorded, all terminals all need the geographical location information of each self terminal and other information (comprising: the playing progress rate information of the Media Stream of terminal type information, operator's informaiton and/or current broadcasting) to report server in the present invention, and server carries out local reception and record.
As shown in Figure 6, the embodiment of the present invention provides a kind of P2P connection server, and this server comprises:
Receive request unit 61, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects;
Requesting processing 62, for according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
Preferably, requesting processing 62 according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Requesting processing 62 according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end.
Preferably, when there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, requesting processing 62 according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Preferably, receive request unit 61 also for:
Receive and record the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
Preferably, requesting processing 62 according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
The geographical position of requesting processing 62 according to first terminal and the geographical position of other-end, determine multiple second terminal;
When first terminal is mobile terminal, requesting processing 62 selects the second terminal of immobile terminal type from multiple second terminal; When first terminal is the terminal of immobile terminal type, requesting processing 62 selects the second terminal of immobile terminal type from multiple second terminal; Or,
The second terminal that requesting processing 62 selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal; Or,
Requesting processing 62 is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
Concrete, receive request unit 61 to be realized by the transport module with transmission-receiving function, requesting processing 62 can by the transport module with transmission-receiving function, and the entity such as processor realizes, the transport module wherein with transmission-receiving function can be the equipment such as special chip and antenna, and the present invention is not limited to the entity realizing these modules.
As shown in Figure 7, the embodiment of the present invention provides a kind of P2P to connect terminal, and this terminal comprises:
Sending request unit 71, is the message that affiliated first terminal selects to set up the terminal that P2P connects for sending request server to server;
Connect unit 72, notify for reception server, and according to described notice determine that this server selects for setting up with affiliated first terminal the second terminal that P2P is connected, wherein, the second terminal is that server is determined according to the geographical location information of first terminal and described second terminal.
Preferably, the geographical position of the second terminal and the geographical position of this first terminal are in same administrative region.
Preferably, the geographical position of the second terminal is positioned at the adjacent administrative region of administrative region belonging to this first terminal.
Preferably, send request unit 71 also for:
The playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting is reported to server.
Concrete, send request unit 71 to be realized by the transport module with transmission-receiving function, connecting unit 72 can by the transport module with transmission-receiving function, and the entity such as processor realizes, the transport module wherein with transmission-receiving function can be the equipment such as special chip and antenna, and the present invention is not limited to the entity realizing these modules.
The embodiment of the present invention also provides a kind of communication system, and this system comprises: server and end side, and wherein, end side comprises multiple terminals of first terminal and the second terminal;
First terminal, be the message of terminal that this first terminal is selected to set up P2P and connected for sending request server to server, and reception server notice, according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, and set up P2P with this second terminal and be connected, wherein, described second terminal is that server is determined to the geographical location information of server side according to described first terminal and described second terminal to report;
Server, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects, and according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
Preferably, server according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with first terminal from other-end.
Preferably, when there is no the geographical position in geographical position and first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at first terminal place for this first terminal.
Preferably, first terminal and/or the second terminal are also for reporting the playing progress rate information of Media Stream of the terminal type information of this first terminal and/or the second terminal, operator's informaiton and/or current broadcasting to server;
Server is also for receiving and recording the playing progress rate information of Media Stream of the terminal type information of this first terminal of first terminal and/or the second terminal to report and/or the second terminal, operator's informaiton and/or current broadcasting.
Those skilled in the art should understand, embodiments of the invention can be provided as method, device or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (device) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (22)

1. a P2P method of attachment, is characterized in that, the method comprises:
The request server that server receives first terminal transmission is the message that this first terminal selects to set up the terminal that P2P connects;
Server is according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
2. the method for claim 1, is characterized in that, server is according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, comprising:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with described first terminal from described other-end.
3. method as claimed in claim 2, it is characterized in that, when there is no the geographical position of geographical position and described first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from described other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at described first terminal place for this first terminal.
4. the method for claim 1, is characterized in that, the method also comprises:
Server receives and records the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
5. method as claimed in claim 4, is characterized in that, server, comprising for this first terminal selects the second terminal according to the geographical location information of this first terminal and the geographical location information of other-end:
The geographical position of server according to first terminal and the geographical position of other-end, determine multiple second terminal;
When described first terminal is mobile terminal, server selects the second terminal of immobile terminal type from described multiple second terminal; When described first terminal is the terminal of immobile terminal type, server selects the second terminal of immobile terminal type from described multiple second terminal; Or,
The second terminal that server selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal; Or,
Server is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
6. a P2P method of attachment, is characterized in that, the method comprises:
It is the message that this first terminal selects to set up the terminal that P2P connects that first terminal sends request server to server;
First terminal reception server notifies, and according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, wherein, described second terminal is that server is determined according to the geographical location information of described first terminal and described second terminal.
7. method as claimed in claim 6, it is characterized in that, the described geographical position of the second terminal and the geographical position of this first terminal are in same administrative region.
8. method as claimed in claim 7, it is characterized in that, the geographical position of described second terminal is positioned at the adjacent administrative region of administrative region belonging to this first terminal.
9. method as claimed in claim 8, it is characterized in that, the method also comprises:
First terminal reports the playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting to server.
10. a P2P connection server, is characterized in that, this server comprises:
Receive request unit, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects;
Requesting processing, for according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
11. servers as claimed in claim 10, it is characterized in that, described request processing unit according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Described request processing unit according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with described first terminal from described other-end.
12. servers as claimed in claim 11, it is characterized in that, when there is no the geographical position of geographical position and described first terminal in other-end when the second terminal of same administrative region, described request processing unit according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from described other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at described first terminal place for this first terminal.
13. servers as claimed in claim 10, is characterized in that, described reception request unit also for:
Receive and record the playing progress rate information of Media Stream of the terminal type information of this first terminal that first terminal reports, operator's informaiton and/or current broadcasting.
14. servers as claimed in claim 13, it is characterized in that, described request processing unit according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
The geographical position of described request processing unit according to first terminal and the geographical position of other-end, determine multiple second terminal;
When first terminal is mobile terminal, described request processing unit selects the second terminal of immobile terminal type from multiple second terminal; When first terminal is the terminal of immobile terminal type, described request processing unit selects the second terminal of immobile terminal type from multiple second terminal; Or,
The second terminal that described request processing unit selects operator's informaiton identical with the operator's informaiton of this first terminal from described multiple second terminal; Or,
Described request processing unit is selected and the same Media Stream of the current broadcasting of described first terminal from described multiple second terminal, and the playing progress rate of the playing progress rate of the Media Stream of current broadcasting and this same Media Stream of the current broadcasting of described first terminal exists the second terminal of difference.
15. 1 kinds of P2P connect terminal, and it is characterized in that, this terminal comprises:
Sending request unit, is the message that affiliated first terminal selects to set up the terminal that P2P connects for sending request server to server;
Connect unit, notify for reception server, and according to described notice determine that this server selects for setting up with affiliated first terminal the second terminal that P2P is connected, wherein, described second terminal is that server is determined according to the geographical location information of described first terminal and described second terminal.
16. terminals as claimed in claim 15, it is characterized in that, the described geographical position of the second terminal and the geographical position of this first terminal are in same administrative region.
17. terminals as claimed in claim 16, is characterized in that, the geographical position of described second terminal is positioned at the adjacent administrative region of administrative region belonging to this first terminal.
18. terminals as claimed in claim 17, is characterized in that, described in send request unit also for:
The playing progress rate information of Media Stream of the terminal type information of this first terminal, operator's informaiton and/or current broadcasting is reported to server.
19. 1 kinds of communication systems, is characterized in that, this system comprises: server and end side, and wherein, end side comprises multiple terminals of first terminal and the second terminal;
First terminal, be the message of terminal that this first terminal is selected to set up P2P and connected for sending request server to server, and reception server notice, according to described notice determine that this server selects for setting up with first terminal the second terminal that P2P is connected, and set up P2P with this second terminal and be connected, wherein, described second terminal is that server is determined to the geographical location information of server side according to described first terminal and described second terminal to report;
Server, the request server sent for receiving first terminal is the message that this first terminal selects to set up the terminal that P2P connects, and according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal, and by this first terminal of message notice of the second selected terminal.
20. systems as claimed in claim 19, is characterized in that, server according to local reception and the geographical location information of this first terminal of record and the geographical location information of other-end select the second terminal for this first terminal time, specifically for:
Server according to local reception and the geographical location information of first terminal of record and the geographical location information of other-end, is selected to be positioned at the second terminal of same administrative region with described first terminal from described other-end.
21. systems as claimed in claim 20, it is characterized in that, when there is no the geographical position of geographical position and described first terminal in other-end when the second terminal of same administrative region, server according to local reception and record the geographical location information of first terminal and the geographical location information of other-end, from described other-end, select the second terminal of the adjacent administrative region of the administrative region being positioned at described first terminal place for this first terminal.
22. systems as claimed in claim 21, is characterized in that,
First terminal and/or the second terminal are also for reporting the playing progress rate information of Media Stream of the terminal type information of this first terminal and/or the second terminal, operator's informaiton and/or current broadcasting to server;
Server is also for receiving and recording the playing progress rate information of Media Stream of the terminal type information of this first terminal of first terminal and/or the second terminal to report and/or the second terminal, operator's informaiton and/or current broadcasting.
CN201310603242.5A 2013-11-25 2013-11-25 P2P connecting method, server, terminal and communication system Pending CN104660651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310603242.5A CN104660651A (en) 2013-11-25 2013-11-25 P2P connecting method, server, terminal and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310603242.5A CN104660651A (en) 2013-11-25 2013-11-25 P2P connecting method, server, terminal and communication system

Publications (1)

Publication Number Publication Date
CN104660651A true CN104660651A (en) 2015-05-27

Family

ID=53251349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310603242.5A Pending CN104660651A (en) 2013-11-25 2013-11-25 P2P connecting method, server, terminal and communication system

Country Status (1)

Country Link
CN (1) CN104660651A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991658A (en) * 2016-06-24 2016-10-05 湖南汇博电子技术有限公司 Terminal interaction method and server
CN107820103A (en) * 2017-10-16 2018-03-20 西安万像电子科技有限公司 The connection method of image transceiver, control device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN101621548A (en) * 2009-08-10 2010-01-06 中兴通讯股份有限公司 Method and system for realizing terminal resource sharing based on peer connection system
US20110258313A1 (en) * 2010-04-15 2011-10-20 Qualcomm Incorporated Network-assisted peer discovery
CN102724223A (en) * 2011-03-30 2012-10-10 中国电信股份有限公司 Method, server and system for node scheduling of P2P mobile streaming media
CN103023928A (en) * 2013-01-11 2013-04-03 乐视网信息技术(北京)股份有限公司 P2P (peer-to-peer) node matching system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN101621548A (en) * 2009-08-10 2010-01-06 中兴通讯股份有限公司 Method and system for realizing terminal resource sharing based on peer connection system
US20110258313A1 (en) * 2010-04-15 2011-10-20 Qualcomm Incorporated Network-assisted peer discovery
CN102724223A (en) * 2011-03-30 2012-10-10 中国电信股份有限公司 Method, server and system for node scheduling of P2P mobile streaming media
CN103023928A (en) * 2013-01-11 2013-04-03 乐视网信息技术(北京)股份有限公司 P2P (peer-to-peer) node matching system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991658A (en) * 2016-06-24 2016-10-05 湖南汇博电子技术有限公司 Terminal interaction method and server
CN107820103A (en) * 2017-10-16 2018-03-20 西安万像电子科技有限公司 The connection method of image transceiver, control device and system

Similar Documents

Publication Publication Date Title
US11445039B2 (en) Method and apparatus for providing edge computing services
US7941123B2 (en) Method and system for downloading data to mobile terminals and for implementing data sharing between mobile terminals
CN102035839B (en) Method, system and equipment for providing stream media service
CN103813213B (en) Real-time video sharing platform and method based on mobile cloud computing
CN102694831B (en) Mobile terminal streaming compensation data method and system, content distributing network
CN108347463B (en) Terminal file uploading method
CN103024081B (en) Be applicable to the terminal scheduling method of the point-to-point communication of effective guarantee communication system
CN105025391A (en) Video playing method and apparatus
CN108521591A (en) A kind of throwing screen method, apparatus and system
CN103581245A (en) Content delivery method and system of content delivery network
US20100115031A1 (en) System and Method For Enabling P2P Applications in a Wireless Mobile Network
CN102868707A (en) Method and system for downloading and transcoding file
US10931763B2 (en) Systems and methods for opaque object delivery in a communication network
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN105743958A (en) Terminal-to-terminal communication method and device
CN103547339A (en) File uploading method, client side and server side
CN104010228A (en) Apparatus and method for level-based self-adjusting peer-to-peer media streaming
CN102571409B (en) Service request management system and method for realizing service across-terminal application
CN104967642B (en) Content distribution method and device
CN102571942A (en) Method and device for pushing resource information and providing service in P2P (peer-to-peer) network
CN112422300B (en) Cloud network private line management method based on block chain, UPF and block chain platform
CN104660651A (en) P2P connecting method, server, terminal and communication system
CN104660656A (en) P2P connecting method, server, terminal and communication system
CN109302456A (en) A kind of document transmission method and device based on aerial downloading OTA technology
CN107465654B (en) System for distributing and safely searching and killing contents among service subnets of broadcast station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527