CN105162881A - P2P optimal transmission method based on multi-mode terminal - Google Patents

P2P optimal transmission method based on multi-mode terminal Download PDF

Info

Publication number
CN105162881A
CN105162881A CN201510619665.5A CN201510619665A CN105162881A CN 105162881 A CN105162881 A CN 105162881A CN 201510619665 A CN201510619665 A CN 201510619665A CN 105162881 A CN105162881 A CN 105162881A
Authority
CN
China
Prior art keywords
node
interface
resource
routing
multimode terminal
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
Application number
CN201510619665.5A
Other languages
Chinese (zh)
Other versions
CN105162881B (en
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.)
China Railway Engineering Equipment Group Co Ltd CREG
Original Assignee
China Railway Engineering Equipment Group Co Ltd CREG
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 China Railway Engineering Equipment Group Co Ltd CREG filed Critical China Railway Engineering Equipment Group Co Ltd CREG
Priority to CN201510619665.5A priority Critical patent/CN105162881B/en
Publication of CN105162881A publication Critical patent/CN105162881A/en
Application granted granted Critical
Publication of CN105162881B publication Critical patent/CN105162881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections

Abstract

The invention discloses a P2P optional transmission method based on a multi-mode terminal. The method comprises the following steps that: nodes are added into a P2P network, and a node information module and a routing strategy maintenance module are arranged in a system in which the P2P network is located; the node information module periodically maintains an interface state of each node and a resource situation; the routing strategy maintenance module dynamically maintains a routing table and strategy routing according to the current situation of each interface of the nodes; one node requests resources based on a P2P protocol; the request node retrieves node information tables of correlated nodes through the node information module, and locates a resource node; the request node initiates a connection request to the resource node, and the node information module judges an interface state of the resource node; and the routing strategy maintenance module establishes strategy routing for a selected interface, and the request node establishes connection with the interface of the resource node to start data transmission. According to the multi-interface characteristic of the multi-mode terminal, the P2P protocol is optimized, and the download efficiency and upload efficiency are increased.

Description

A kind of P2P optimized transmission method based on multimode terminal
Technical field
The present invention relates to the technical field of P2P transmission, be specifically related to a kind of P2P optimized transmission method based on multimode terminal.
Background technology
In the P2P agreement of standard, each node both as server, again as Client.Therefore, when a node is while downloaded resources, also can hold as the server of resource.The P2P protocol frame of standard merely provides the support to single interface termination, namely when a node is by while its certain interface downloaded resources, if need resource uploading, then still uses the interface of downloaded resources.At present, multi-interface terminal is day by day universal, and a usual communication terminal is configured with the interfaces such as WIFI, 3G, LTE, if can make full use of the advantage of multiplex roles, then significantly can improve quality and the efficiency of terminal communication.
Existing P2P agreement can support transfer of data and the download of access terminals well, but multimode terminal is day by day universal at present, makes full use of the online experience that multiplex roles advantage significantly will promote user.But the P2P protocol frame of standard only proposes the implementation single interface being carried out to transfer of data, multimode terminal is made not play the technical advantage of its multiplex roles.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of P2P optimized transmission method based on multimode terminal, in conjunction with the development trend of current multimode terminal and the transmission mode of P2P, the feature making full use of multiplex roles plays its advantage in P2P resource sharing process, realizes single interface single task.
In order to achieve the above object, technical scheme of the present invention is: a kind of P2P optimized transmission method based on multimode terminal, and its step is as follows:
Step one: node adds in P2P network, arranges nodal information module and routing policy maintenance module in the system at P2P network place;
Step 2: the Interface status that nodal information module periodically safeguards each node and the resource situation contained; Routing policy maintenance module, according to the situation of node each interface current, carries out Dynamic Maintenance to routing table and policybased routing;
Step 3: node carries out request resource based on P2P agreement;
Step 4: requesting node passes through the informational table of nodes of nodal information module retrieves associated nodes, locating resource node;
Step 5: requesting node initiates connection request to resource node, nodal information module judges the Interface status of resource node, and decision-making by which interface of multimode terminal is undertaken uploading or downloading;
Step 6: routing policy maintenance module is the interface Establishment strategy route selected, and the interface of requesting node and resource node connects, starts transfer of data.
Described nodal information module comprises nodal information maintenance unit and local information maintenance unit; Each node can deposit informational table of nodes in this locality, in the middle of record the using state of node corresponding to each resource of being associated and each interface of node; Local information maintenance unit is used for maintenance local node being carried out to informational table of nodes, the using state namely detecting each interface of own node and each resource now contained; Nodal information maintenance unit is used for safeguarding the informational table of nodes of associated nodes.
Described routing policy maintenance module can detect the state that multimode terminal has several interface, judges each interface, sets up routing table, policybased routing for each interface; Routing policy maintenance module comprises routing policy maintenance unit, and routing policy maintenance unit is used for the foundation of routing table and the dynamic generation of policybased routing, thus realizes the maintenance of information of route.
Described routing policy maintenance unit judges that multimode terminal is current has how many interfaces to be in state of activation, for each interface sets up routing table, adds a default route in the routing table, dynamically for interface sets up a policybased routing; Routing policy maintenance module makes each interface go respective routing table to inquire about by policybased routing, realizes multiplex roles and carries out data communication simultaneously.
The described resource node having a request resource is by interacting message notice request node, requesting node records the nodal information of resource node by nodal information maintenance module, comprise node ID, node IP address, port numbers, in the message that resource node is notified to requesting node by interacting message, add field information.
Described field information is all available IP addresses, and namely the multimode terminal of Current resource node is configured with several address, just adds several address.
The implementation method of described interpolation field information is: each node ID sets up an IP chained list, and node ID has several IP address, just finally adds an IP chained list node at chained list.
The present invention is configured with multiple network standard interface due to multimode terminal, each interface can configuration of IP address, according to the feature of multimode terminal multiplex roles, optimizing P2P agreement, making multimode terminal user when carrying out P2P communication, an interface is used for downloading, other interface is used for uploading, and namely next interface every is while downloaded resources, if there are other usable interfaces, then allow it do the interface of resource uploading, vice versa; Can ensure that each interface does not need cross processing to download and the affairs uploaded, only need to be responsible for downloading or uploading single task, unlike being responsible for both simultaneously, then can well improve the efficiency downloaded and upload.
Accompanying drawing explanation
Fig. 1 is flow chart of the present invention.
Fig. 2 is the exemplary plot of transmission method of the present invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention will be described in detail.It should be noted that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Embodiment 1
Based on a P2P optimized transmission method for multimode terminal, its step is as follows:
Step one: node adds in P2P network, arranges nodal information module and routing policy maintenance module in the system at P2P network place.
Nodal information module is carried in the system at P2P network place automatically, for automatically safeguarding the information of each node.Nodal information module is that the basis based on existing P2P agreement is expanded.Nodal information module comprises nodal information maintenance unit and local information maintenance unit.Each node can deposit informational table of nodes in this locality, in the middle of record the using state of node corresponding to each resource of being associated and each interface of node.Local information maintenance unit is used for maintenance, the using state namely detecting each interface of own node and each resource now contained of local node being carried out to informational table of nodes.Nodal information maintenance unit is used for safeguarding the informational table of nodes of associated nodes.The first node having certain resource can notify the Section Point should preserving this resource, and the Section Point in nodal information module reads the informational table of nodes of first node, can record the information of the total interface of first node.Nodal information maintenance unit can judge the service condition of each interface of first node, in the middle of which interface is idle, which interface using, selects suitable interface to set up data cube computation, thus as the Main Basis of analysis decision.Owing to recording the Interface status of first node in the informational table of nodes of Section Point, first nodal information maintenance unit navigates to node ID, at the interface chained list corresponding to node ID, just can judge each Interface status, still idle in namely using.Each resource can have multiple node to deposit, so the node that nodal information maintenance unit preferentially finds available free interface carries out data communication, if the interface of all nodes is all the state in using, nodal information maintenance unit selects the interface of an arbitrary node to carry out communicating.
Routing policy maintenance module is carried in the system at P2P network place automatically, for carrying out route maintenance to each interface, supports that multiplex roles carries out data communication simultaneously.Routing policy maintenance module can detect the state that multimode terminal has several interface, judges each interface, namely whether is in networking state, then for each interface Establishment strategy route.Routing policy maintenance module comprises routing policy maintenance unit, for the foundation of routing table and the dynamic generation of policybased routing, thus realizes the maintenance of information of route.
Step 2: the Interface status that nodal information module periodically safeguards each node and the resource situation contained; Routing policy maintenance module, according to the situation of node each interface current, carries out Dynamic Maintenance to routing table and policybased routing.
In P2P transmission, can be connected to each other between node, the using state that local information maintenance unit periodically detects each interface of own node and each resource now contained, nodal information maintenance unit periodically detects the informational table of nodes of associated nodes, carries out interface message maintenance to the node be associated.In the P2P agreement of standard, periodic interacting message can be carried out between each node, the Interface status of node by the message in extension standards P2P agreement, can be filled in the interaction message of P2P standard, because the P2P protocol message of standard provides scaling option by this programme.
Routing policy maintenance module is that each interface sets up routing table, each interface is made to go respective routing table to inquire about by policybased routing, then add a default route in the routing table, namely packet is received and dispatched by this interface, carries out data communication to realize multiplex roles simultaneously.First routing policy maintenance unit judges that multimode terminal is current has how many interfaces to be in state of activation, then sets up routing table for each interface.Routing policy maintenance unit is safeguarded according to the Interface status of terminal, when judging that certain interface is in state of activation, sets up a policybased routing dynamically for it.
Step 3: node carries out request resource based on P2P agreement.
The P2P agreement of standard is each node meeting configuration node ID, and resource ID can be set for each resource, and the node ID of its correspondence can be calculated according to resource ID, but this node ID just may not deposit corresponding resource, but himself deposit the actual node ID depositing this resource, in time having this resource of node request, just first go node ID request resource above-mentioned theory being deposited resource, the actual node ID depositing this resource can be returned to resource requestor by this node.
Because multimode terminal is configured with multiple network standard interface, each interface can configuration of IP address, according to the feature of multimode terminal multiplex roles, optimizes P2P agreement.Particularly: have the resource node of request resource by interacting message notice request node, requesting node records the nodal information of resource node by nodal information maintenance module, comprises node ID, node IP address, port numbers.It should be noted that, in the P2P agreement of standard, even if resource node is multimode terminal, the information of the just individual interface of resource node that requesting node is preserved.In order to make full use of the advantage of the multiple network interface of multimode terminal, extra some field informations of interpolation in the message that need be notified to requesting node by interacting message at resource node.Field information is all available IP addresses, and namely the multimode terminal of Current resource node is configured with several address, just adds several address.Due to the corresponding node ID of a node, resource node can safeguard an informational table of nodes, this table is expanded, add field, indicate that this node ID has several interface, what the IP address of each interface is, thus the informational table of nodes safeguarded in extended requests node, makes its support node ID can a multiple IP address of correspondence.During specific implementation, can set up an IP chained list for each node ID, namely this node ID has several IP address, just finally adds an IP chained list node at chained list.
Step 4: requesting node passes through the informational table of nodes of nodal information module retrieves associated nodes, locating resource node.
Internodal communication interaction is all reference standard P2P protocol specification, when requestor is to resource node request resource, because resource node itself deposits the actual node ID having this resource, and usually have multiple node all to deposit this resource, so judge the interface using state of each node successively, if there is interface to be in idle condition, with regard to direct, this node ID is returned to resource requestor, the sequencing herein just can deposited according to informational table of nodes interior joint carries out traveling through.
Step 5: requesting node initiates connection request to resource node, nodal information module judges the Interface status of resource node, and decision-making by which interface of multimode terminal is undertaken uploading or downloading.
Nodal information maintenance unit periodically detects the state of each interface of resource node, and namely which interface is in downloaded resources, and which interface at resource uploading, and notifies the state of each interface of resource node to requesting node; By depositing the node of this resource in theory according to informational table of nodes, navigating to the actual node depositing this resource, then judging the Interface status of this node, carry out uploading or downloading to select the interface left unused.
In like manner, when the 3rd node is initiatively to requesting node request resource, requesting node just can come to be that the 3rd node returns corresponding information according to each Interface status of resource node.Requesting node can fill in each interface message of resource node in the message, specifically which interface is current uses, which interface is current is in idle state, when the 3rd node receives the message that requesting node sends, namely the Interface status that resource node is current is confirmed, certain interface of resource node just can be selected to establish a communications link, thus carry out resource transfer.
Step 6: routing policy maintenance module is the interface Establishment strategy route selected, and the interface of requesting node and resource node connects, starts transfer of data.
Each node can carry out the foundation of policybased routing according to the interface quantity of this locality and state, such as node A has two interfaces, be respectively interface 1 and interface 2, and be all connection status, now just be respectively two interfaces set up a policybased routing and set up a routing table, the packet that in policybased routing, regulation inquires about this policybased routing all removes query routing in the routing table of specifying, the packet that in corresponding routing table, regulation inquires about this routing table all transmits from the interface of specifying, and just can ensure that multiple interface communicates simultaneously by above mechanism.In addition, requesting node directly connects with some interfaces of resource node, and concrete data communication just describes can realize according to above-mentioned scheme.
Embodiment 2
A kind of P2P optimized transmission method based on multimode terminal, as shown in Figure 2, several node in P2P network, i.e. node A, Node B, node C, node D, node E ... each node can deposit informational table of nodes in this locality, in the middle of record the using state of node corresponding to each resource and each interface of node.Such as, in the informational table of nodes of Node B, the using state of the interface of node A, node D and node E is had and the resource name that has.The informational table of nodes of local information maintenance unit to self in nodal information module is safeguarded, nodal information maintenance unit carries out informational table of nodes maintenance to the node be associated.Node A is multimode terminal, and it has resource " discriminating Huan to pass ", and node A can periodically be noticed to the Node B of preserving this resource by the P2P interacting message of standard.In the P2P interacting message of standard, add Interface Information field, mark the state that each interface of its node A is current, such as whether be in the IP address of state of activation, each interface.
Node C adds P2P network by the P2P agreement of standard, and wish downloaded resources " discriminating Huan to pass ", the code requirement following standard P 2P agreement initiates resource request to Node B, and Node B leaves local informational table of nodes in by checking.The using state of each interface of node A, node D, node E etc. is provided with in the informational table of nodes of Node B.Resource ID is had, the node that the ID value that Node B navigates to all resources of node A by resource ID in the informational table of nodes of Node B is corresponding with each resource in the resource request that node C initiates.Find that node A current interface 1 is downloading certain class resource, interface 2 is idle state, so by the IP address of the node ID of node A, interface 2 with send to node C to slogan, node C and node A establishes a communications link, node A transmits resource from interface 2 to node C, and node C starts downloaded resources " discriminating Huan to pass ".
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (7)

1. based on a P2P optimized transmission method for multimode terminal, it is characterized in that, its step is as follows:
Step one: node adds in P2P network, arranges nodal information module and routing policy maintenance module in the system at P2P network place;
Step 2: the Interface status that nodal information module periodically safeguards each node and the resource situation contained; Routing policy maintenance module, according to the situation of node each interface current, carries out Dynamic Maintenance to routing table and policybased routing;
Step 3: node carries out request resource based on P2P agreement;
Step 4: requesting node passes through the informational table of nodes of nodal information module retrieves associated nodes, locating resource node;
Step 5: requesting node initiates connection request to resource node, nodal information module judges the Interface status of resource node, and decision-making by which interface of multimode terminal is undertaken uploading or downloading;
Step 6: routing policy maintenance module is the interface Establishment strategy route selected, and the interface of requesting node and resource node connects, starts transfer of data.
2. the P2P optimized transmission method based on multimode terminal according to claim 1, is characterized in that, described nodal information module comprises nodal information maintenance unit and local information maintenance unit; Each node can deposit informational table of nodes in this locality, in the middle of record the using state of node corresponding to each resource of being associated and each interface of node; Local information maintenance unit is used for maintenance local node being carried out to informational table of nodes, the using state namely detecting each interface of own node and each resource now contained; Nodal information maintenance unit is used for safeguarding the informational table of nodes of associated nodes.
3. the P2P optimized transmission method based on multimode terminal according to claim 1, it is characterized in that, described routing policy maintenance module can detect the state that multimode terminal has several interface, judges each interface, sets up routing table, policybased routing for each interface; Routing policy maintenance module comprises routing policy maintenance unit, and routing policy maintenance unit is used for the foundation of routing table and the dynamic generation of policybased routing, thus realizes the maintenance of information of route.
4. the P2P optimized transmission method based on multimode terminal according to claim 3, it is characterized in that, described routing policy maintenance unit judges that multimode terminal is current has how many interfaces to be in state of activation, for each interface sets up routing table, add a default route in the routing table, dynamically for interface sets up a policybased routing; Routing policy maintenance module makes each interface go respective routing table to inquire about by policybased routing, realizes multiplex roles and carries out data communication simultaneously.
5. the P2P optimized transmission method based on multimode terminal according to claim 1, it is characterized in that, the described resource node having a request resource is by interacting message notice request node, requesting node records the nodal information of resource node by nodal information maintenance module, comprise node ID, node IP address, port numbers, in the message that resource node is notified to requesting node by interacting message, add field information.
6. the P2P optimized transmission method based on multimode terminal according to claim 5, is characterized in that, described field information is all available IP addresses, and namely the multimode terminal of Current resource node is configured with several address, just adds several address.
7. the P2P optimized transmission method based on multimode terminal according to claim 5, it is characterized in that, the implementation method of described interpolation field information is: each node ID sets up an IP chained list, and node ID has several IP address, just finally adds an IP chained list node at chained list.
CN201510619665.5A 2015-09-25 2015-09-25 A kind of P2P optimized transmission methods based on multimode terminal Active CN105162881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510619665.5A CN105162881B (en) 2015-09-25 2015-09-25 A kind of P2P optimized transmission methods based on multimode terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510619665.5A CN105162881B (en) 2015-09-25 2015-09-25 A kind of P2P optimized transmission methods based on multimode terminal

Publications (2)

Publication Number Publication Date
CN105162881A true CN105162881A (en) 2015-12-16
CN105162881B CN105162881B (en) 2018-09-21

Family

ID=54803633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510619665.5A Active CN105162881B (en) 2015-09-25 2015-09-25 A kind of P2P optimized transmission methods based on multimode terminal

Country Status (1)

Country Link
CN (1) CN105162881B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network
CN1946026A (en) * 2006-10-20 2007-04-11 清华大学 Active obtaining method for internet data based on mobile storage device
US20090028163A1 (en) * 2007-07-23 2009-01-29 Mitel Networks Corporation Distributed network management
CN201294533Y (en) * 2008-11-20 2009-08-19 武汉钢铁(集团)公司 Intelligent multifunctional safety gateway
CN101938508A (en) * 2009-07-01 2011-01-05 中国电信股份有限公司 Method and system for shortening time delay in peer-to-peer network streaming media live broadcast system
CN102088399A (en) * 2009-12-08 2011-06-08 华为技术有限公司 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network
CN1946026A (en) * 2006-10-20 2007-04-11 清华大学 Active obtaining method for internet data based on mobile storage device
US20090028163A1 (en) * 2007-07-23 2009-01-29 Mitel Networks Corporation Distributed network management
CN201294533Y (en) * 2008-11-20 2009-08-19 武汉钢铁(集团)公司 Intelligent multifunctional safety gateway
CN101938508A (en) * 2009-07-01 2011-01-05 中国电信股份有限公司 Method and system for shortening time delay in peer-to-peer network streaming media live broadcast system
CN102088399A (en) * 2009-12-08 2011-06-08 华为技术有限公司 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system

Also Published As

Publication number Publication date
CN105162881B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN102893556B (en) Method, system and equipment for source peer-to-peer Diameter based on capacity load Sharing
AU2013351670B2 (en) Business scheduling method and apparatus and convergence device
CN101039309B (en) Link sharing service apparatus and communication method thereof
US9042375B2 (en) Client routing in a peer-to-peer overlay network
CN102571856B (en) Method, device and system for selecting transition node
CN102469015B (en) Realize method and device, the system of relay selection
CN105024844A (en) Method, server and system for computing cross-domain routing
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
CN110495155B (en) Method for recommending a communication stack
US7519024B2 (en) Resource selection in a communication network
CN101764833A (en) Resource node information notification method and network entity device
WO2008145610A2 (en) Method, system and server for domain selection in communication system
US8472343B2 (en) Method and apparatus for use in a network
CN115499859A (en) NWDAF-based method for managing and deciding computing resources
CN103368847A (en) Broadband convergence communication method and router
WO2019034591A1 (en) Stream control system for use in a network
CN105450760A (en) P2P-based adaptive resource downloading method
JP5894981B2 (en) Accessing a network of nodes distributed across a communication architecture using a topology server with multiple criteria selection
CN105162881A (en) P2P optimal transmission method based on multi-mode terminal
CN102447724B (en) Method, server and system for controlling peer-to-peer (P2P) download
JP2007281549A (en) Management device, management method, and local area network
CN107872475A (en) Node screening technique, client and the login service device of P2P networks
CN103026690A (en) Confidential or protected access to a network of nodes distributed over a communication architecture with the aid of a topology server
CN101854310A (en) P2P controlling unit and method for achieving the same
JP2010113710A (en) Method of transmitting data between peers with network selection according to at least one criterion, and associated management device and communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant