CN101741753A - Data transmission method, system and device - Google Patents
Data transmission method, system and device Download PDFInfo
- Publication number
- CN101741753A CN101741753A CN200810173694A CN200810173694A CN101741753A CN 101741753 A CN101741753 A CN 101741753A CN 200810173694 A CN200810173694 A CN 200810173694A CN 200810173694 A CN200810173694 A CN 200810173694A CN 101741753 A CN101741753 A CN 101741753A
- Authority
- CN
- China
- Prior art keywords
- keyword
- peer node
- content
- client
- correspondence
- 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.)
- Granted
Links
Images
Abstract
The embodiment of the invention discloses a data transmission method, a data transmission system and a data transmission device. The method comprises the following steps: a session update message which comprises a first keyword and a second keyword from a first client is received by a first peer node, and the corresponding content of the second keyword is sent to the first client by the first peer node through a corresponding transmission channel of the first keyword. In the embodiment of the invention, the corresponding content of the second keyword is sent to the client by the peer node through a corresponding transmission channel of the first keyword, thereby saving network resources and improving service ability of a system.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method, system and equipment of transfer of data.
Background technology
P2P (peer-to-peer, point-to-point) is each side's pattern of client/server each other in a kind of communication network.In the P2P system, two or more PC (Personal Computer, PC) or miscellaneous equipment, direct communication or cooperation on network, the shared each other resources such as disposal ability, memory space and data that comprise.
As shown in Figure 1, P2P network for a kind of common Peer-Client (node-client) structure, all Peer (node) form the P2P network, Client (client) hangs under the Peer, need search target on the P2P network by the Peer node, carry out alternately with other node or client.
In the P2P system of existing Peer-Client framework, Client asks resource or when service of a certain business, all be unique index value key (keyword) according to this resource or service, carry out Signalling exchange and session negotiation with Peer, thereby be based upon session connection and transmission channel between Peer and Client, obtain institute's requested resource or service by transmission channel.When Client requested resource or service provide when finishing, can remove session connection and transmission channel.When key request resource of every use or service, Client needs to carry out session negotiation again with Peer, rebulids transmission channel.
In realizing process of the present invention, the inventor finds to exist in the prior art following shortcoming:
In the prior art, repeat between Client and Peer to set up session connection and transmission channel, wasted the service ability of Internet resources and system for each key of same business.
Summary of the invention
The embodiment of the invention provides a kind of method, system and equipment of transfer of data, has saved Internet resources and has improved the service ability of system.
The embodiment of the invention provides a kind of method of transfer of data, may further comprise the steps:
First peer node receives from the first client-side session updating message, carries first keyword and second keyword in the described session updates message;
Described first peer node provides the content of the described second keyword correspondence to described first client by the transmission channel of the described first keyword correspondence.
The embodiment of the invention provides a kind of system of transfer of data, comprises peer node and client, wherein:
Described peer node, be used for receiving from described client-side session updating message, carry first keyword and second keyword in the described session updates message, the content of the described second keyword correspondence is provided to described client by the transmission channel of the described first keyword correspondence;
Described client is used for sending the session updates message of carrying first keyword and second keyword to described peer node, receives the content from the second keyword correspondence of described peer node.
The embodiment of the invention provides a kind of peer node, comprising:
Receiving element is used to receive session updates message, carries first keyword and second keyword in the described session updates message;
Transmission unit is used for providing to the transmit leg of described session updates message by the transmission channel of the described first keyword correspondence content of the described second keyword correspondence.
In the embodiments of the invention, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of P2P network in the prior art;
Fig. 2 is the method flow diagram of a kind of transfer of data in the embodiment of the invention;
Fig. 3 is the method flow diagram of a kind of transfer of data in the embodiment of the invention;
Fig. 4 is the method flow diagram of a kind of transfer of data in the embodiment of the invention;
Fig. 5 is the method flow diagram of a kind of transfer of data in the embodiment of the invention;
Fig. 6 is a kind of data transmission system structure chart in the embodiment of the invention;
Fig. 7 is a kind of peer node structure chart in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of method of transfer of data, as shown in Figure 2, may further comprise the steps:
Wherein, if described first peer node does not have the content of the described second keyword correspondence, the transmission channel of then described first peer node by the described first keyword correspondence also comprised before described first client provides the content of the described second keyword correspondence:
Described first peer node is obtained the content of the described second keyword correspondence from second peer node of content that the described second keyword correspondence can be provided.
Wherein, when the peer node of described second peer node content corresponding with described first keyword is provided not simultaneously, the content that described first peer node is obtained the described second keyword correspondence from described second peer node comprises:
Described first peer node is set up the corresponding transmission channel of described second keyword with described second peer node;
Described first peer node receives the content of described second peer node by the described second keyword correspondence of the transmission channel transmission of the described second keyword correspondence.
Wherein, when the peer node of described second peer node content corresponding with described first keyword is provided was identical, the content that described first peer node is obtained the described second keyword correspondence from described second peer node comprised:
Described first peer node sends described session updates message to described second peer node, comprises described first keyword and described second keyword in the described session updates message;
Described first peer node receives the content of described second peer node by the described second keyword correspondence of the transmission channel transmission of the described first keyword correspondence.
Wherein, when described second peer node did not have the content of the described second keyword correspondence, described first peer node was obtained before the content of the described second keyword correspondence from described second peer node, also comprises:
Described second peer node is obtained the content of the described second keyword correspondence from second client, and described second client is used to provide the content of the described second keyword correspondence.
Wherein, when the client of described second client content corresponding with described first keyword is provided not simultaneously, the content that described second peer node is obtained the described second keyword correspondence from described second client comprises:
Described second peer node is set up the corresponding transmission channel of described second keyword with described second client;
Described second peer node receives the content of described second client by the described second keyword correspondence of the transmission channel transmission of the described second keyword correspondence.
Wherein, when the client of described second client content corresponding with described first keyword is provided was identical, the content that described second peer node is obtained the described second keyword correspondence from described second client comprised:
Described first peer node sends described session updates message to described second peer node, comprises described first keyword and described second keyword in the described session updates message;
Described second peer node receives the content of described second client by the described second keyword correspondence of the transmission channel transmission of the described first keyword correspondence.
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
The embodiment of the invention provides a kind of method of transfer of data, be applied in the scene as shown in Figure 1, Peer 3 provides the content of OldKey correspondence to Client 3 by the transmission channel of OldKey correspondence, the fresh content that Client3 need finish to obtain the content of Oldkey correspondence and obtain the Newkey correspondence, Peer 3 has the content of Client 3 new requests, as shown in Figure 3, may further comprise the steps:
Step 301, Client 3 sends session updates message (Session Update) to Peer 3, carries first keyword (OldKey) in the message, second keyword (NewKey), and other session parameters that need upgrade;
Step 302, Peer 3 is that Client 3 creates the NewKey list item in Peer 3 transaction tables (conversational list), and the outbound port parameter of the OldKey list item of Client 3 in the transaction table (conversational list) duplicated to NewKey, reuse session connection and the transmission channel of Peer 3 and 3 OldKey of Client.
Step 303, session connection and the transmission channel of Peer 3 by OldKey provides the NewKey correspondence for Client 3 content.
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
The embodiment of the invention provides a kind of method of transfer of data, be applied in the scene as shown in Figure 1, Peer 5 provides the content of OldKey correspondence to Client 3 by Peer 3, Client 3 needs end are obtained the content of Oldkey correspondence and are obtained the fresh content of Newkey correspondence, Peer 5 has the content of Client 3 new requests, as shown in Figure 4, may further comprise the steps:
Step 401, Client 3 sends session updates message (Session Update) to Peer 3, carries OldKey in the message, NewKey, and other session parameters that need upgrade;
Step 402, Peer 3 is that Client 3 creates the NewKey list item in Peer 3 transaction tables (conversational list), and the outbound port parameter of the OldKey list item of Client 3 in the transaction table (conversational list) duplicated to NewKey, reuse session connection and the transmission channel of Peer 3 and 3 OldKey of Client.
Step 403, Peer 3 finds the Peer 5 of the content that the NewKey correspondence can be provided from the P2P overlay network, and the peer node that the content of OldKey correspondence is provided also is Peer 5, and sends the session updates message to Peer 5.
Step 404, Peer 3 and Peer 5 reuse OldKey session connection and transmission channel.
Then Peer 3 sends session updates message to Peer 5, carries OldKey in the message, NewKey and other session parameters that need upgrade; Peer 5 reuses according to self service scenario and the OldKey session connection and the transmission channel of 3 foundation of Peer, promptly be that Peer 3 creates the NewKey list item in Peer 5 transaction tables (conversational list), and the outbound port parameter of the OldKey list item of Peer 3 in the transaction table (conversational list) duplicated to NewKey, reuse 3 OldKey session connections of Peer 5 and Peer and transmission channel.
Step 405, Peer 5 offers Client 3 by Peer 3 again to the content that Peer 3 provides the NewKey correspondence.
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
The embodiment of the invention provides a kind of method of transfer of data, as shown in Figure 5, be applied in the scene as shown in Figure 1, Client 5 provides the content of OldKey correspondence to Client 3 by Peer 5 and Peer 3, Client 3 needs end are obtained the content of Oldkey correspondence and are obtained the fresh content of Newkey correspondence, Client 5 has the content of Client 3 new requests, may further comprise the steps:
Step 501, Client 3 sends session updates message (Session Update) to Peer 3, carries OldKey in the message, NewKey, and other session parameters that need upgrade;
Step 502, Peer 3 is that Client 3 creates the NewKey list item in transaction table (conversational list), and the outbound port parameter of the OldKey list item of Client 3 in Peer 3 transaction tables (conversational list) duplicated to NewKey, reuse 3 OldKey session connections of Peer 3 and Client and transmission channel.
Step 503, Peer 3 finds the Peer 5 of the content that the NewKey correspondence can be provided from the P2P overlay network, and the peer node that the content of OldKey correspondence is provided also is Peer 5, and sends the session updates message to Peer 5.
Step 504, Peer 3 and Peer 5 reuse OldKey session connection and transmission channel.
Step 505, Peer 5 finds the Client 5 of the content that the NewKey correspondence can be provided, and the client that the content of OldKey correspondence is provided also is Client 5, and sends session updates message to Client 5.
Step 506, Peer 5 and Client 5 reuse OldKey session connection and transmission channel.
Step 507, Client 5 provides the content of NewKey correspondence to Peer 5, offers Peer 3 by Peer 5 again, offers Client 3 by Peer 3 at last.
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
The embodiment of the invention provides a kind of system of transfer of data, as shown in Figure 6, comprises peer node 601 and client 602, wherein:
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
The embodiment of the invention provides a kind of peer node, as shown in Figure 7, comprising:
Receiving element 701 is used to receive session updates message, carries first keyword and second keyword in the described session updates message;
Wherein, described peer node also comprises:
Acquiring unit 703 is used for when described peer node does not have the content of the described second keyword correspondence, from the peer node of content that the described second keyword correspondence is provided or the content that client is obtained the described second keyword correspondence;
Then described transmission unit 702 specifically is used for transmission channel by the described first keyword correspondence provides content from the second keyword correspondence that described acquiring unit 703 obtains to described session updates message sender.
Wherein, when the peer node of the peer node of the described content that the second keyword correspondence is provided or the client content corresponding or client with described first keyword is provided not simultaneously, described acquiring unit 703 specifically is used for setting up the corresponding transmission channel of described second keyword with the described peer node of the corresponding content of second keyword or the client of providing; Receive the content of the described second keyword correspondence that the peer node of the described content that the second keyword correspondence is provided or the client transmission channel by the described second keyword correspondence sends.
Wherein, when the peer node of the peer node of the described content that the second keyword correspondence is provided or the client content corresponding with described first keyword is provided or client are identical, described acquiring unit 703 specifically is used for sending described session updates message to the described peer node or the client of the content of the second keyword correspondence of providing, and comprises described first keyword and described second keyword in the described session updates message; Receive the content of the described second keyword correspondence that the peer node of the described content that the second keyword correspondence is provided or the client transmission channel by the described first keyword correspondence sends.
In the embodiments of the invention, provide in the process of same business for client in peer node, the transmission channel of peer node by using the first keyword correspondence provides the content of the second keyword correspondence to client, saved Internet resources and improved the service ability of system.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform, based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. the method for a transfer of data is characterized in that, may further comprise the steps:
First peer node receives from the first client-side session updating message, carries first keyword and second keyword in the described session updates message;
Described first peer node provides the content of the described second keyword correspondence to described first client by the transmission channel of the described first keyword correspondence.
2. the method for claim 1, it is characterized in that, when described first peer node does not have the content of the described second keyword correspondence, the transmission channel of described first peer node by the described first keyword correspondence also comprised before described first client provides the content of the described second keyword correspondence:
Described first peer node is obtained the content of the described second keyword correspondence from second peer node of content that the described second keyword correspondence is provided.
3. method as claimed in claim 2, it is characterized in that, when the peer node of described second peer node content corresponding with described first keyword is provided not simultaneously, the content that described first peer node is obtained the described second keyword correspondence from described second peer node comprises:
Described first peer node is set up the corresponding transmission channel of described second keyword with described second peer node;
Described first peer node receives the content of described second peer node by the described second keyword correspondence of the transmission channel transmission of the described second keyword correspondence.
4. method as claimed in claim 2, it is characterized in that, when the peer node of described second peer node content corresponding with described first keyword is provided was identical, the content that described first peer node is obtained the described second keyword correspondence from described second peer node comprised:
Described first peer node sends described session updates message to described second peer node, carries described first keyword and described second keyword in the described session updates message;
Described first peer node receives the content of described second peer node by the described second keyword correspondence of the transmission channel transmission of the described first keyword correspondence.
5. method as claimed in claim 2, it is characterized in that, when described second peer node does not have the content of the described second keyword correspondence, described first peer node is obtained before the content of the described second keyword correspondence from second peer node of content that the described second keyword correspondence is provided, also comprises:
Described second peer node is obtained the content of the described second keyword correspondence from second client, and described second client is used to provide the content of the described second keyword correspondence.
6. method as claimed in claim 5, it is characterized in that, when the client of described second client content corresponding with described first keyword is provided not simultaneously, the content that described second peer node is obtained the described second keyword correspondence from described second client comprises:
Described second peer node is set up the corresponding transmission channel of described second keyword with described second client;
Described second peer node receives the content of described second client by the described second keyword correspondence of the transmission channel transmission of the described second keyword correspondence.
7. method as claimed in claim 5, it is characterized in that, when the client of described second client content corresponding with described first keyword is provided was identical, the content that described second peer node is obtained the described second keyword correspondence from described second client comprised:
Described second peer node sends described session updates message to described second client, carries described first keyword and described second keyword in the described session updates message;
Described second peer node receives the content of described second client by the described second keyword correspondence of the transmission channel transmission of the described first keyword correspondence.
8. the system of a transfer of data is characterized in that, comprises peer node and client, wherein:
Described peer node, be used for receiving from described client-side session updating message, carry first keyword and second keyword in the described session updates message, the content of the described second keyword correspondence is provided to described client by the transmission channel of the described first keyword correspondence;
Described client is used for sending the session updates message of carrying described first keyword and second keyword to described peer node, receives the content from the second keyword correspondence of described peer node.
9. a peer node is characterized in that, comprising:
Receiving element is used to receive session updates message, carries first keyword and second keyword in the described session updates message;
Transmission unit is used for providing to the transmit leg of described session updates message by the transmission channel of the described first keyword correspondence content of the described second keyword correspondence.
10. as peer node as described in the claim 9, it is characterized in that described peer node also comprises:
Acquiring unit is used for when described peer node does not have the content of the described second keyword correspondence, from the peer node of content that the described second keyword correspondence is provided or the content that client is obtained the described second keyword correspondence;
Then described transmission unit specifically is used for transmission channel by the described first keyword correspondence provides content from the second keyword correspondence that described acquiring unit obtains to described session updates message sender.
11. as peer node as described in the claim 10, it is characterized in that, when the peer node of the peer node of the described content that the second keyword correspondence is provided or the client content corresponding or client with described first keyword is provided not simultaneously, described acquiring unit specifically is used for setting up the corresponding transmission channel of described second keyword with the described peer node of the corresponding content of second keyword or the client of providing; Receive the content of the described second keyword correspondence that the peer node of the described content that the second keyword correspondence is provided or the client transmission channel by the described second keyword correspondence sends.
12. as peer node as described in the claim 10, it is characterized in that, when the peer node of the peer node of the described content that the second keyword correspondence is provided or the client content corresponding with described first keyword is provided or client are identical, described acquiring unit specifically is used for sending described session updates message to the described peer node or the client of the content of the second keyword correspondence of providing, and carries described first keyword and described second keyword in the described session updates message; Receive the content of the described second keyword correspondence that the peer node of the described content that the second keyword correspondence is provided or the client transmission channel by the described first keyword correspondence sends.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101736943A CN101741753B (en) | 2008-11-07 | 2008-11-07 | Data transmission method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101736943A CN101741753B (en) | 2008-11-07 | 2008-11-07 | Data transmission method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101741753A true CN101741753A (en) | 2010-06-16 |
CN101741753B CN101741753B (en) | 2012-07-04 |
Family
ID=42464657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101736943A Active CN101741753B (en) | 2008-11-07 | 2008-11-07 | Data transmission method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101741753B (en) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254742C (en) * | 2002-04-28 | 2006-05-03 | 方国俊 | Far-end control method in Internet |
-
2008
- 2008-11-07 CN CN2008101736943A patent/CN101741753B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101741753B (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100621092B1 (en) | Method and apparatus for sharing application using P2P | |
CN103780679B (en) | Long delay remote invocation method based on http protocol | |
CN104067686A (en) | Systems and methods for establishing a wi-fi display (wfd) session | |
JP2010518759A5 (en) | ||
US7898993B2 (en) | Efficiency and resiliency enhancements for transition states in ad hoc networks | |
WO2023000940A1 (en) | Data processing method and apparatus, and network element device, storage medium and program product | |
CN104541569A (en) | Method and apparatus for generating P2P group for Wi-Fi direct service | |
CN104243281A (en) | Voice communication method based on mobile Internet | |
CN105531979A (en) | Messaging api over http protocol to establish context for data exchange | |
CN105812505A (en) | Method and device for renewing lease of IP address of terminal equipment | |
WO2023000936A1 (en) | Data processing method, function device and readable storage medium | |
US9894117B2 (en) | File transfers for virtual conferences | |
CN110417876A (en) | Node server and main control device in session method, distributed system | |
US9473430B2 (en) | Method and system for group number-based microblog aggregation | |
CN102420696A (en) | Dynamic networking method, command center node and system | |
CN101465826A (en) | Network session service system and method | |
US20140201262A1 (en) | User device, communication server and control method thereof | |
CN101741753B (en) | Data transmission method, system and device | |
US20160100021A1 (en) | Information processing device, destination information updating method, and record medium | |
CN102656942A (en) | Method for address translator traversal in 3GPP networks | |
CN101562722A (en) | Meeting initiating method and system thereof | |
CN112559134B (en) | Distributed WebSocket cluster construction method, device, system and storage medium | |
CN110611702B (en) | Block chain file rapid transmission method, equipment, system and storage medium | |
RU2522995C2 (en) | Method and apparatus for creating peer-to-peer group in peer-to-peer application and method of using peer-to-peer group | |
CN111726427B (en) | Information processing method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |