[go: up one dir, main page]

CN103618801A - Method, device and system for sharing P2P (Peer-to-Peer) resources - Google Patents

Method, device and system for sharing P2P (Peer-to-Peer) resources Download PDF

Info

Publication number
CN103618801A
CN103618801A CN201310664771.6A CN201310664771A CN103618801A CN 103618801 A CN103618801 A CN 103618801A CN 201310664771 A CN201310664771 A CN 201310664771A CN 103618801 A CN103618801 A CN 103618801A
Authority
CN
China
Prior art keywords
address
resource
node
super node
edge
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
CN201310664771.6A
Other languages
Chinese (zh)
Other versions
CN103618801B (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310664771.6A priority Critical patent/CN103618801B/en
Publication of CN103618801A publication Critical patent/CN103618801A/en
Application granted granted Critical
Publication of CN103618801B publication Critical patent/CN103618801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开一种P2P资源共享的方法、设备及系统。涉及通信领域,通过引入边缘超级节点,实现P2P文件共享。本发明实施例提供的方法包括:第一边缘超级节点确定本地信息中不包含第一资源ID,第一边缘超级节点接收第二边缘超级节点发送的查询响应报文,该查询响应报文中包含目的地址,源地址,以及Payload,源地址为存储第一资源的第二节点的地址,且源地址经过IPV4/IPV6互通网关翻译后,与第一边缘超级节点网络域类型相同,Payload中包含第二节点ID,第一资源的文件key,以及第一资源的实际IP地址;对第一查询响应报文进行解析,将Payload中的实际IP地址替换成源地址并转发至请求查询的第一节点。

Figure 201310664771

The invention discloses a P2P resource sharing method, equipment and system. Involved in the field of communication, P2P file sharing is realized by introducing edge super nodes. The method provided by the embodiment of the present invention includes: the first edge super node determines that the local information does not contain the first resource ID, the first edge super node receives the query response message sent by the second edge super node, and the query response message contains Destination address, source address, and Payload. The source address is the address of the second node that stores the first resource, and the source address is translated by the IPV4/IPV6 interworking gateway. It is the same as the network domain type of the first edge super node. The Payload contains the first Two node IDs, the file key of the first resource, and the actual IP address of the first resource; parse the first query response message, replace the actual IP address in the Payload with the source address and forward it to the first node requesting the query .

Figure 201310664771

Description

A kind of method of P2P resource-sharing, equipment and system
Technical field
The present invention relates to the communications field, relate in particular to a kind of P2P resource share method, equipment and system.
Background technology
Point-to-point (peer-to-peer is called for short P2P), technology claimed again reciprocity internet technique, and in P2P network, any computer both can be used as server end, can be used as again client, and the relation between node and node is equality.Each user can be directly connected to other users' computer, and the exchange of the style of writing part of going forward side by side, does not browse and download and do not need to be connected on server.In whole process, message is by the forwarding of node, and propagate in the path in P2P network.Because eliminated intermediate link, P2P technology make the communication on network become more easily, more direct.P2P has changed the present situation of Internet centered by large website, makes it return to decentralization, and power is given back to user.And in performance, because load balancing is at each node, so network efficiency is higher; In function, each node importance is identical, and it is identical to the damaged condition of whole system that individual node lost efficacy, the situation of service paralysis while seldom there is important node fault.
IPv6(Internet Protocol Version 6) be the IP next generation protocol of IPv4, IPv6 technology expands to 128 by 32 bit address in IPv4, can fully meet the demand of following miscellaneous service to IP address, and simplify packet header, strengthen security performance.Yet the deployment of IPv6 technology is implemented not accomplish in one move, the scene that IPv6 and IPv4 coexist will last very long, so two interworking technologies between netting are very important to seamlessly transitting of IPv6 for realizing IPv4.
In P2P network, routing table comprises static ip address, routing table is by global node number and IP address close-coupled, routing inquiry, object location and message forward transmission control protocol (the Transmission Control Protocol that needs to set up between node bottom, be called for short TCP) connect, this requires distant-end node to have permanent IP address, to guarantee carrying out smoothly of P2P route, location.If far-end IP address changes, cannot set up and be connected and communicate by letter normally with distant-end node, cause destination to arrive, thereby affect validity and the accuracy of P2P route and object resource location.
And under the scene of IPv4 and IPv6 network interworking agreement, when using address translation, there is non-mapping one by one in the address translation of IPv6 and IPv4, or the situation of dynamic mapping, cause identical IPv6 address in different time may be translated into different IPv4 addresses, the IP address of opposite end may change and cause route unreachable like this.
Summary of the invention
The embodiment of the present invention provides a kind of method, equipment and system of P2P resource-sharing, realizes the P2P resource sharing under IPv6 and IPv4 mixed networking.
To achieve these goals, the technical scheme that the embodiment of the present invention adopts is,
First aspect, provides a kind of P2P resource share method, comprising:
The first edge super node receives the first inquiry request that the first super node forwards, wherein, and the first resource ID that described the first inquiry request comprises first node requesting query;
The local information that described the first edge super node is inquired about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
If determining in the local information of described the first edge super node, described the first edge super node do not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains,
Described the first edge super node receives the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Described the first edge super node is resolved described the first inquiry response message, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
Described the first edge super node to described first node, is connected described the first inquiry response message repeating so that described first node is set up P2P according to described the first inquiry response message with described Section Point, and carries out sharing of described first resource.
Second aspect, provides the first edge super node, comprising:
The first receiver module, the first inquiry request forwarding for receiving the first super node, wherein, the first resource ID that described the first inquiry request comprises first node requesting query;
Enquiry module, for the local information of inquiring about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
The first sending module, if determine that for described enquiry module the local information of described the first edge super node does not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains,
The second receiver module, the the first inquiry response message sending for receiving described the second edge super node, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Parsing module, for described the first inquiry response message is resolved, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
The second sending module, for by described the first inquiry response message repeating to described first node so that described first node is set up P2P according to described the first inquiry response message with described Section Point, be connected, and carry out the shared of described first resource.
The third aspect, a kind of system is provided, comprise: the first edge super node, the second edge super node, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, and described the second edge super node is in IPV6 network domains; Or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains;
Wherein, described the first edge super node is used for,
Receive the first inquiry request that the first super node forwards, wherein, the first resource ID that described the first inquiry request comprises first node requesting query;
The local information of inquiring about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
If do not comprise described first resource ID in the local information of definite described the first edge super node, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge;
Receive the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Described the first inquiry response message is resolved, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
Described the first inquiry response message repeating, to described first node, is connected so that described first node is set up P2P according to described the first inquiry response message with described Section Point, and carries out sharing of described first resource.
Therefore, the embodiment of the present invention provides a kind of P2P resource share method, equipment and system, the first edge super node receives the first inquiry request that the first super node forwards, wherein, and the first resource ID that described the first inquiry request comprises first node requesting query, the local information that described the first edge super node is inquired about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID, if determining in the local information of described the first edge super node, described the first edge super node do not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains, described the first edge super node receives the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource, described the first edge super node is resolved described the first inquiry response message, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message, described the first edge super node to described first node, is connected described the first inquiry response message repeating so that described first node is set up P2P according to described the first inquiry response message with described Section Point, and carries out sharing of described first resource.So, by introducing edge super node, realize the P2P resource sharing under IPv6 and IPv4 mixed networking.Overcome in prior art under IPv6 and IPv4 mixed networking, easily caused when the address translation of IPv6 and IPv4 is non-shines upon one by one or the defect of the P2P resource sharing failure that causes during dynamic mapping.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 provides the system diagram of a kind of IPv6 and IPv4 mixed networking for the embodiment of the present invention;
The flow chart of a kind of P2P resource share method that Fig. 2 provides for the embodiment of the present invention;
The apparatus structure schematic diagram of a kind of the first edge super node that Fig. 3 provides for the embodiment of the present invention;
The apparatus structure schematic diagram of another kind the first edge super node that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
To facilitate understanding of the present embodiment of the invention, first at this, introduce the several terms that can introduce in embodiment of the present invention description;
Resource (Piece): be file resource, be stored in each ordinary node with piecemeal Piece form.
Resource ID: be the identifier of resource.
Node ID: be node identifier, the unique indications of the overall situation that each node has.
Ordinary node: common P2P node, can be used for storage resources and send resource query request, can preserve the information such as Resource Block and adjacent node (comprising the Resource Block indications that adjacent node comprises), each network domains has a plurality of ordinary nodes.
Super node: safeguard downstream ordinary node information, for resource retrieval, do not do file storage, each network domains can have a plurality of super nodes.
Edge super node: the novel joint of introducing under existing IPv4 and the IPv6 network architecture for the embodiment of the present invention, each network domains can comprise an edge super node, also can comprise a plurality of edges super node, specifically can dispose according to the actual conditions of network domains, edge super node is only disposed at the edge of network domains, does not do file resource storage, and edge super node can move polytype agreement simultaneously, for example, can move IPv6 and IPv4 agreement simultaneously.Edge super node and at least one super node are direct-connected, and this super node expands the address information of this edge super node to other super nodes.
IPv4/IPv6 Interworking gateway, for connecting the edge super node of IPv4 network domains and IPv6 network domains, safeguards the corresponding relation of IPv4 network domains and IPv6 network domains address, the IP address between IPv4 network domains and IPv6 network domains can be translated.
Edge super node controller: direct-connected with all edges super node logic in a wide area, can register and manage by edge super node, strengthen network manageability, when network size is larger, more, the edge super node fault of network egress while enabling the super node in new edge, edge super node controller provides addressing between edge super node and the new edge super node function of register and issue a notice etc., does not do file resource and stores.
Should be understood that the embodiment of the present invention can be applied to the P2P resource-sharing in various mixed networking, the embodiment of the present invention does not limit this.
Be only exemplary, the method for the embodiment of the present invention describes with the P2P resource-sharing being applied under IPv6 and IPv4 mixed networking scene, but this does not form any restriction to the embodiment of the present invention.Referring to Fig. 1, for a kind of IPv6 of embodiment of the present invention setting and the system diagram of IPv4 mixed networking, this system comprises IPV4 network domains and IPV6 network domains, wherein, comprises node 20 in IPV4 network domains, super node 40,50, edge super node 30, comprises node 80 in IPV4 network domains, super node 70, edge super node 60, edge super node 30 is connected by IPv4/IPv6 Interworking gateway 90 with edge super node 60.
On the one hand, the embodiment of the present invention provides a kind of P2P resource share method, it should be noted that, referring to Fig. 1, the invention process example assumes node 20 is first node, and super node 40 is the first super node, edge super node 30 is the first edge super node, node 80 is Section Point, and super node 70 is the second super node, and edge super node 60 is the second edge super node.
Referring to Fig. 2, can comprise the following steps:
Within 201: the first, edge super node receives the first inquiry request that the first super node forwards, wherein, and the first resource ID that described the first inquiry request comprises first node requesting query;
Wherein, first node, when the P2P of registration login first network, generates ID the registration of the unique first node of universe.First node during as new node, is at least known a node in P2P network, and first node can obtain the more specific location information of node from P2P application.First node can be notified other nodes that are associated with first node (for example node in Fig. 1 50) after adding network, upgrades the question blank of other nodes.
Wherein, the first edge super node can human configuration when initial, and (Distributed Hash Table is called for short DHT hash table and calculates to carry out distributed hashtable to be communicated with IPv4 and IPv6 territory.
Suppose that first node need to be from other nodes sharing first resources, first node sends the first inquiry request to the node adjacent with first node, and this inquiry request comprises first resource ID;
The adjacent node of first node is inquired about the local information of this adjacent node, the local information of this adjacent node can comprise the resource ID information of the resource of this adjacent node storage, and the resource ID of the resource that can obtain of this adjacent node and corresponding address information, if adjacent node is determined the locating information buffer memory that local information comprises first resource, node (Node Identifier for example, be called for short NID), the IP address of first resource, so just returns to the data source of the locating information of first resource; If the local information of adjacent node does not have the locating information of first resource, this adjacent node can be forwarded to this inquiry request the first super node so.
When the first super node is received this first inquiry request, can preferentially check the local information of the first super node, the local information of the first super node can comprise the resource ID of the first super node record, and corresponding node ID and the IP address of each resource ID, for example, the local information of the first super node can exist with the form of routing table, if comprise the address information that first resource ID and first resource are corresponding (comprising node ID and IP address that this first resource is corresponding) in the local information of the first super node, the first super node can return to first node the address information of this first resource, if do not comprise first resource ID and address information corresponding to first resource in the local information of the first super node, the first super node can be transmitted to other super nodes by the first inquiry request and inquires about, when if all super nodes all cannot find the positional information of first resource, the first inquiry request is transmitted to the first edge super node.
202: the local information that described the first edge super node is inquired about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
When the first edge super node is received this first inquiry request, can preferentially check the local information of the first edge super node, the local information of the first edge super node can comprise the resource ID of the first edge super node record, and corresponding node ID and the IP address of each resource ID; For example, the local information of the first edge super node can exist with the form of routing table, if comprise the address information that first resource ID and first resource are corresponding (comprising node ID and IP address that this first resource is corresponding) in the local information of the first edge super node, the first edge super node can send first node to step by step to the address information of first resource.
203: if described the first edge super node is determined in the local information of described the first edge super node, do not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains,
If do not comprise first resource ID and address information corresponding to first resource in the local information of the first edge super node, if there is other edge super nodes in current network territory, the first edge super node can be transmitted to the first inquiry request other edge super nodes and inquires about, when if all edges super node all cannot find the positional information of first resource, the first edge super node is transmitted to the second edge super node in other network domains by the first inquiry request.
When in IPV6 network domains, the second edge super node receives the first inquiry request that the first edge super node of IPV6 network domains sends, can be in self storage and territory super node search until find or complete the whole network and search.If find, the second edge super node sends to the first edge super node by the first inquiry response message.If do not find, other edge super nodes, are transmitted to the first inquiry request the super joint in other edges if present.If until inquire about complete network, all do not find the positional information of first resource, return to first resource and do not exist.
204, described the first edge super node receives the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Wherein, IPV4/IPV6 Interworking gateway can be safeguarded the corresponding relation between IPV4 and IPV6, the first inquiry response message is when through IPV4/IPV6 Interworking gateway, IPV4/IPV6 Interworking gateway can be translated source address wherein, makes the source address after translation identical with described the first edge super node network domains type of living in.For example, in the present embodiment, the IP address of the Section Point of storage first resource is IPV6 address, the second edge super node adds the first inquiry response message using the IP address of the Section Point of IPV6 form as source address, IPV4/IPV6 Interworking gateway is by the IP address of the Section Point of the IP address translation IPV4 form of the Section Point of IPV6 form, and the IP address of the Section Point of the IPV4 form after translating adds the first inquiry response message as source address.
205, described the first edge super node is resolved described the first inquiry response message, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
For example, after the first edge super node is resolved described the first inquiry response message, obtain the destination address in described the first inquiry response message, source address, and Payload, described destination address is the address of described first node, described source address is Section Point address after the translation of IPV4/IPV6 Interworking gateway, and after resolving, the first edge super node obtains the Section Point ID comprising in Payload, the file key of first resource, and the real ip address of first resource; In order to make first node, can identify the IP address of first resource, so, the first edge super node is resolved the real ip address that obtains first resource, judge that whether this real ip address is identical with the IP address class type in current network territory, as excessively different, illustrate that first node can not identify this real ip address, because source address is the Section Point address after the translation of IPV4/IPV6 Interworking gateway, can be identified by first node, so the first edge super node is replaced this real ip address by source address.
206, described the first edge super node by described the first inquiry response message repeating to described first node, so that described first node is set up P2P according to described the first inquiry response message with described Section Point, be connected, and carry out sharing of described first resource.
First node obtains after the first inquiry response message, according to the Section Point ID in Payload in described the first inquiry response message, the file key of first resource, and the IP address of first resource (after translation) can set up P2P with Section Point and be connected, and setting up the first resource of sharing Section Point after P2P connects, so, translation through IPV4/IPV6 Interworking gateway to IP address, and first judgement and the replacement of edge super node to the IP address in the Payload after resolving, the IP address that first node is received can be identified, guarantee that P2P is successfully established.
Further, for the validity that improves the efficiency of inquiry and guarantee address translation, described method also comprises:
Described the first edge super node is stored to file address information by the real ip address of described first resource ID and described first resource, wherein, described file address packets of information is inquired about the resource ID of gained and the real ip address corresponding with described resource ID containing described the first edge super node at every turn.
The first edge super node is by the file address information of the each inquiry of storage, after being queried before a certain resource, when again inquiring about this resource, real IP address that can this resource of quick obtaining, because the IPV4 that IPV4/IPV6 Interworking gateway is safeguarded and the mapping of the address between IPV6 are to being dynamic corresponding relation, so, the real IP address of this resource is in IP address that in the same time can not corresponding different translation, so, the translation IP address of inquiry between the first edge super node can not directly return to requesting node, but, real IP address corresponding to this resource is constant, so, the first edge super node can be according to the translation IP address of the real IP address request IPV4/IPV6 Interworking gateway current time of this resource, specifically can embody by following process.
The first edge super node receives the second inquiry request that described the first super node forwards, wherein, the Secondary resource ID that described the second inquiry request comprises the 3rd node requesting query, described the 3rd node is any one node in described the first super node place, edge network domains.
The first edge super node is inquired about described file address information according to described Secondary resource ID, if determine in the information of described file address and comprise described Secondary resource ID, to described IPV4/IPV6 Interworking gateway, send real ip address corresponding to described Secondary resource ID, so that the real ip address that described IPV4/IPV6 Interworking gateway is described Secondary resource ID provides translating address.
Wherein, if there is the translation IP address of the real ip address that Secondary resource ID is corresponding in IPV4/IPV6 Interworking gateway current time, can directly to the first edge super node, return to this translation IP address, if current time IPV4/IPV6 Interworking gateway does not exist the translation IP address of the real ip address that Secondary resource ID is corresponding, IPV4/IPV6 Interworking gateway can be that the real ip address that this Secondary resource ID is corresponding distributes translation IP address immediately.
The first edge super node receives the translating address of the real ip address of the described Secondary resource that described IPV4/IPV6 Interworking gateway sends;
The first edge super node by the second inquiry response message repeating to described the 3rd node, so that setting up P2P according to described the second inquiry response message with the node at described Secondary resource ID place, described the 3rd node is connected, and carry out sharing of described Secondary resource, wherein, in described the second inquiry response message, comprise destination address, source address, and Payload, described destination address is described the 3rd address of node, described source address is the translating address of the real ip address of described Secondary resource, the node ID that comprises described Secondary resource place in described Payload, the file key of described Secondary resource, and the translating address of the real ip address of described Secondary resource.
Therefore the embodiment of the present invention provides a kind of P2P resource share method, the first edge super node receives the first inquiry request that the first super node forwards, wherein, and the first resource ID that described the first inquiry request comprises first node requesting query, the local information that described the first edge super node is inquired about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID, if determining in the local information of described the first edge super node, described the first edge super node do not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains, described the first edge super node receives the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource, described the first edge super node is resolved described the first inquiry response message, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message, described the first edge super node to described first node, is connected described the first inquiry response message repeating so that described first node is set up P2P according to described the first inquiry response message with described Section Point, and carries out sharing of described first resource.So, by introducing edge super node, realize the P2P resource sharing under IPv6 and IPv4 mixed networking.Overcome in prior art under IPv6 and IPv4 mixed networking, easily caused the non-mapping relations one by one of address translation of IPv6 and IPv4 or the defect of the P2P resource sharing failure that dynamic mapping causes.
On the one hand, the embodiment of the present invention provides a kind of the first edge super node 30, referring to Fig. 3, comprising:
The first receiver module 301, the first inquiry request forwarding for receiving the first super node, wherein, the first resource ID that described the first inquiry request comprises first node requesting query;
Enquiry module 302, for the local information of inquiring about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
The first sending module 303, if determine that for described enquiry module the local information of described the first edge super node does not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains,
The second receiver module 304, the the first inquiry response message sending for receiving described the second edge super node, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Parsing module 305, for described the first inquiry response message is resolved, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
The second sending module 306, for by described the first inquiry response message repeating to described first node so that described first node is set up P2P according to described the first inquiry response message with described Section Point, be connected, and carry out the shared of described first resource.
Further, referring to Fig. 4, the first edge super node 30 also comprises:
Memory module 307, for the real ip address of described first resource ID and described first resource is stored to file address information, wherein, described file address packets of information is inquired about the resource ID of gained and the real ip address corresponding with described resource ID containing described the first edge super node at every turn.
Further,
The first receiver module 301 also for, receive the second inquiry request that described the first super node forwards, wherein, the Secondary resource ID that described the second inquiry request comprises the 3rd node requesting query, described the 3rd node is any one node in described the first super node place, edge network domains;
Described enquiry module 302 also for, according to described Secondary resource ID, inquire about described file address information;
Described the first sending module 303 also for, if determining, described enquiry module in the information of described file address, comprises described Secondary resource ID, to described IPV4/IPV6 Interworking gateway, send real ip address corresponding to described Secondary resource ID, so that the real ip address that described IPV4/IPV6 Interworking gateway is described Secondary resource ID provides translating address;
Described the second receiver module 304 also for, receive the translating address of the real ip address of the described Secondary resource that described IPV4/IPV6 Interworking gateway sends;
Described the second sending module 306 also for, by the second inquiry response message repeating to described the 3rd node, so that setting up P2P according to described the second inquiry response message with the node at described Secondary resource ID place, described the 3rd node is connected, and carry out sharing of described Secondary resource, wherein, in described the second inquiry response message, comprise destination address, source address, and Payload, described destination address is described the 3rd address of node, described source address is the translating address of the real ip address of described Secondary resource, the node ID that comprises described Secondary resource place in described Payload, the file key of described Secondary resource, and the translating address of the real ip address of described Secondary resource.
Therefore the embodiment of the present invention provides a kind of the first edge super node, receive the first inquiry request that the first super node forwards, wherein, the first resource ID that described the first inquiry request comprises first node requesting query, the local information that described the first edge super node is inquired about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID, if determining in the local information of described the first edge super node, described the first edge super node do not comprise described first resource ID, described the first inquiry request is forwarded to the second edge super node, so that described the second edge super node is searched described first resource in the network domains at described the second super node place, edge, wherein, described the first edge super node is connected by IPV4/IPV6 Interworking gateway with described the second edge super node, described the first edge super node is in IPV4 network domains, described the second edge super node is in IPV6 network domains, or described the first edge super node is in IPV6 network domains, described the second edge super node is in IPV4 network domains, described the first edge super node receives the first inquiry response message that described the second edge super node sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource, described the first edge super node is resolved described the first inquiry response message, if determine, the type of real ip address described in described Payload is different from the IP address class type of the residing network domains of described the first edge super node, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message, described the first edge super node to described first node, is connected described the first inquiry response message repeating so that described first node is set up P2P according to described the first inquiry response message with described Section Point, and carries out sharing of described first resource.So, by introducing edge super node, realize the P2P resource sharing under IPv6 and IPv4 mixed networking.Overcome in prior art under IPv6 and IPv4 mixed networking, easily caused the non-mapping relations one by one of address translation of IPv6 and IPv4 or the defect of the P2P resource sharing failure that dynamic mapping causes.
On the one hand, the embodiment of the present invention provides a kind of system, referring to Fig. 1, this system comprises: the first edge super node 30, the second edge super node 60, described the first edge super node 30 is connected by IPV4/IPV6 Interworking gateway 90 with described the second edge super node 60
Need to illustrate, described the first edge super node 30 is in IPV4 network domains, and described the second edge super node 60 is in IPV6 network domains; Or described the first edge super node 30 is in IPV6 network domains, described the second edge super node 60 is in IPV4 network domains; The embodiment of the present invention does not limit this, and Fig. 1 is only the exemplary illustration carrying out with a kind of situation.
Wherein, described the first edge super node 30 for,
Receive the first inquiry request that the first super node 40 forwards, wherein, the first resource ID that described the first inquiry request comprises first node 20 requesting queries;
The local information of inquiring about described the first edge super node according to described first resource ID, wherein, the local information of described the first edge super node 30 comprises the resource ID that described the first edge super node can obtain, and corresponding node ID and the IP address of each resource ID;
If do not comprise described first resource ID in the local information of definite described the first edge super node 30, described the first inquiry request is forwarded to the second edge super node 60, so that described the second edge super node 60 is searched described first resource in the network domains at described the second edge super node 60 places;
Receive the first inquiry response message that described the second edge super node 60 sends, wherein, in described the first inquiry response message, comprise destination address, source address, and Payload, described destination address is the address of described first node, described source address is the address of the Section Point 80 of the described first resource of storage, and described source address is after described IPV4/IPV6 Interworking gateway translation, identical with described the first edge super node 30 network domains type of living in, in described Payload, comprise described Section Point ID, the file key of described first resource, and the real ip address of described first resource,
Described the first inquiry response message is resolved, if determine, the type of real ip address described in described Payload is different from the IP address class type of described the first edge super node 30 residing network domains, the described real ip address in described Payload is replaced to the source address in described the first inquiry response message;
Described the first inquiry response message repeating, to described first node 20, is connected so that described first node 20 is set up P2P according to described the first inquiry response message with described Section Point 80, and carries out sharing of described first resource.
Further, described the first edge super node 30 also for: the real ip address of described first resource ID and described first resource is stored to file address information, wherein, described file address packets of information is inquired about the resource ID of gained and the real ip address corresponding with described resource ID containing described the first edge super node at every turn.
Further, described the first edge super node 30 also for:
Receive the second inquiry request that described the first super node 40 forwards, wherein, the Secondary resource ID that described the second inquiry request comprises the 3rd node requesting query, described the 3rd node is any one node in described the first super node place, edge network domains;
According to described Secondary resource ID, inquire about described file address information;
If determine in the information of described file address and comprise described Secondary resource ID, to described IPV4/IPV6 Interworking gateway, send real ip address corresponding to described Secondary resource ID, so that the real ip address that described IPV4/IPV6 Interworking gateway is described Secondary resource ID provides translating address;
Receive the translating address of the real ip address of the described Secondary resource that described IPV4/IPV6 Interworking gateway sends;
By the second inquiry response message repeating to described the 3rd node, so that setting up P2P according to described the second inquiry response message with the node at described Secondary resource ID place, described the 3rd node is connected, and carry out sharing of described Secondary resource, wherein, in described the second inquiry response message, comprise destination address, source address, and Payload, described destination address is described the 3rd address of node, described source address is the translating address of the real ip address of described Secondary resource, the node ID that comprises described Secondary resource place in described Payload, the file key of described Secondary resource, and the translating address of the real ip address of described Secondary resource.
Further, described system also comprises: edge super node controller, described edge super node controller is connected with the edge super node logic in described system, for new edge super node is registered and managed, provide issuing of addressing between the described edge edge super node that super node controller is managed and notice.
Therefore the system that the embodiment of the present invention provides, by introducing edge super node, realizes the P2P resource sharing under IPv6 and IPv4 mixed networking.Overcome in prior art under IPv6 and IPv4 mixed networking, easily caused the non-mapping relations one by one of address translation of IPv6 and IPv4 or the defect of the P2P resource sharing failure that dynamic mapping causes.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1.一种P2P资源共享方法,其特征在于,该方法包括:1. A P2P resource sharing method, characterized in that the method comprises: 第一边缘超级节点接收第一超级节点转发的第一查询请求,其中,所述第一查询请求包含第一节点请求查询的第一资源ID;The first edge super node receives a first query request forwarded by the first super node, wherein the first query request includes a first resource ID that the first node requests to query; 所述第一边缘超级节点根据所述第一资源ID查询所述第一边缘超级节点的本地信息,其中,所述第一边缘超级节点的本地信息包含所述第一边缘超级节点能够获取的资源ID,以及每个资源ID对应的节点ID和IP地址;The first edge super node queries the local information of the first edge super node according to the first resource ID, wherein the local information of the first edge super node includes resources that the first edge super node can obtain ID, and the node ID and IP address corresponding to each resource ID; 若所述第一边缘超级节点确定所述第一边缘超级节点的本地信息中不包含所述第一资源ID,则将所述第一查询请求转发至第二边缘超级节点,以使得所述第二边缘超级节点在所述第二边缘超级节点所在的网络域中查找所述第一资源,其中,所述第一边缘超级节点和所述第二边缘超级节点通过IPV4/IPV6互通网关连接,所述第一边缘超级节点处于IPV4网络域,所述第二边缘超级节点处于IPV6网络域;或者,所述第一边缘超级节点处于IPV6网络域,所述第二边缘超级节点处于IPV4网络域;If the first edge super node determines that the local information of the first edge super node does not contain the first resource ID, then forward the first query request to the second edge super node, so that the first edge super node Two edge super nodes search for the first resource in the network domain where the second edge super node is located, wherein the first edge super node and the second edge super node are connected through an IPV4/IPV6 interworking gateway, so The first edge super node is in the IPV4 network domain, and the second edge super node is in the IPV6 network domain; or, the first edge super node is in the IPV6 network domain, and the second edge super node is in the IPV4 network domain; 所述第一边缘超级节点接收所述第二边缘超级节点发送的第一查询响应报文,其中,所述第一查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第一节点的地址,所述源地址为存储所述第一资源的第二节点的地址,且所述源地址经过所述IPV4/IPV6互通网关翻译后,与所述第一边缘超级节点所处网络域类型相同,所述Payload中包含所述第二节点ID,所述第一资源的文件key,以及所述第一资源的实际IP地址;The first edge super node receives the first query response message sent by the second edge super node, wherein the first query response message includes a destination address, a source address, and a Payload, and the destination address is The address of the first node, the source address is the address of the second node storing the first resource, and after the source address is translated by the IPV4/IPV6 interworking gateway, it is the same as the first edge super node The network domain types are the same, and the Payload includes the second node ID, the file key of the first resource, and the actual IP address of the first resource; 所述第一边缘超级节点对所述第一查询响应报文进行解析,若确定所述Payload中所述实际IP地址的类型与所述第一边缘超级节点所处的网络域的IP地址类型不同,则将所述Payload中的所述实际IP地址替换成所述第一查询响应报文中的源地址;The first edge supernode parses the first query response message, and if it is determined that the type of the actual IP address in the Payload is different from the IP address type of the network domain where the first edge supernode is located , then replace the actual IP address in the Payload with the source address in the first query response message; 所述第一边缘超级节点将所述第一查询响应报文转发至所述第一节点,以使得所述第一节点根据所述第一查询响应报文与所述第二节点建立P2P连接,并进行所述第一资源的共享。The first edge super node forwards the first query response message to the first node, so that the first node establishes a P2P connection with the second node according to the first query response message, And share the first resource. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 所述第一边缘超级节点将所述第一资源ID与所述第一资源的实际IP地址存储至文件地址信息,其中,所述文件地址信息包含所述第一边缘超级节点每次查询所得的资源ID以及与所述资源ID对应的实际IP地址。The first edge supernode stores the first resource ID and the actual IP address of the first resource in file address information, wherein the file address information includes the information obtained by the first edge supernode each query Resource ID and the actual IP address corresponding to the resource ID. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 所述第一边缘超级节点接收所述第一超级节点转发的第二查询请求,其中,所述第二查询请求包含第三节点请求查询的第二资源ID,所述第三节点为所述第一边缘超级节点所在网络域中任意一个节点;The first edge super node receives a second query request forwarded by the first super node, wherein the second query request includes a second resource ID requested by a third node, and the third node is the Any node in the network domain where the edge super node is located; 所述第一边缘超级节点根据所述第二资源ID查询所述文件地址信息,若确定所述文件地址信息中包含所述第二资源ID,则向所述IPV4/IPV6互通网关发送所述第二资源ID对应的实际IP地址,以使得所述IPV4/IPV6互通网关为所述第二资源ID的实际IP地址提供翻译地址;The first edge supernode queries the file address information according to the second resource ID, and if it is determined that the file address information includes the second resource ID, sends the first resource ID to the IPV4/IPV6 interworking gateway. The actual IP address corresponding to the second resource ID, so that the IPV4/IPV6 interworking gateway provides a translation address for the actual IP address of the second resource ID; 所述第一边缘超级节点接收所述IPV4/IPV6互通网关发送的所述第二资源的实际IP地址的翻译地址;The first edge super node receives the translation address of the actual IP address of the second resource sent by the IPV4/IPV6 interworking gateway; 所述第一边缘超级节点将第二查询响应报文转发至所述第三节点,以使得所述第三节点根据所述第二查询响应报文与所述第二资源ID所在的节点建立P2P连接,并进行所述第二资源的共享,其中,所述第二查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第三节点的地址,所述源地址为所述第二资源的实际IP地址的翻译地址,所述Payload中包含所述第二资源所在的节点ID,所述第二资源的文件key,以及所述第二资源的实际IP地址的翻译地址。The first edge super node forwards the second query response message to the third node, so that the third node establishes P2P with the node where the second resource ID is located according to the second query response message. connection, and share the second resource, wherein the second query response message includes a destination address, a source address, and a Payload, the destination address is the address of the third node, and the source address is the translation address of the actual IP address of the second resource, and the Payload includes the node ID where the second resource is located, the file key of the second resource, and the translation of the actual IP address of the second resource address. 4.一种第一边缘超级节点,其特征在于,包括:4. A first edge super node, characterized in that it comprises: 第一接收模块,用于接收第一超级节点转发的第一查询请求,其中,所述第一查询请求包含第一节点请求查询的第一资源ID;The first receiving module is configured to receive a first query request forwarded by the first supernode, wherein the first query request includes a first resource ID that the first node requests to query; 查询模块,用于根据所述第一资源ID查询所述第一边缘超级节点的本地信息,其中,所述第一边缘超级节点的本地信息包含所述第一边缘超级节点能够获取的资源ID,以及每个资源ID对应的节点ID和IP地址;A query module, configured to query the local information of the first edge super node according to the first resource ID, wherein the local information of the first edge super node includes resource IDs that can be obtained by the first edge super node, And the node ID and IP address corresponding to each resource ID; 第一发送模块,用于若所述查询模块确定所述第一边缘超级节点的本地信息中不包含所述第一资源ID,则将所述第一查询请求转发至第二边缘超级节点,以使得所述第二边缘超级节点在所述第二边缘超级节点所在的网络域中查找所述第一资源,其中,所述第一边缘超级节点和所述第二边缘超级节点通过IPV4/IPV6互通网关连接,所述第一边缘超级节点处于IPV4网络域,所述第二边缘超级节点处于IPV6网络域;或者,所述第一边缘超级节点处于IPV6网络域,所述第二边缘超级节点处于IPV4网络域;A first sending module, configured to forward the first query request to a second edge super node if the query module determines that the local information of the first edge super node does not contain the first resource ID, to causing the second edge supernode to search for the first resource in the network domain where the second edge supernode is located, wherein the first edge supernode and the second edge supernode communicate through IPV4/IPV6 Gateway connection, the first edge super node is in the IPV4 network domain, and the second edge super node is in the IPV6 network domain; or, the first edge super node is in the IPV6 network domain, and the second edge super node is in the IPV4 network domain network domain; 第二接收模块,用于接收所述第二边缘超级节点发送的第一查询响应报文,其中,所述第一查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第一节点的地址,所述源地址为存储所述第一资源的第二节点的地址,且所述源地址经过所述IPV4/IPV6互通网关翻译后,与所述第一边缘超级节点所处网络域类型相同,所述Payload中包含所述第二节点ID,所述第一资源的文件key,以及所述第一资源的实际IP地址;The second receiving module is configured to receive the first query response message sent by the second edge super node, wherein the first query response message includes a destination address, a source address, and a Payload, and the destination address is The address of the first node, the source address is the address of the second node storing the first resource, and after the source address is translated by the IPV4/IPV6 interworking gateway, it is the same as the first edge super node The network domain types are the same, and the Payload includes the second node ID, the file key of the first resource, and the actual IP address of the first resource; 解析模块,用于对所述第一查询响应报文进行解析,若确定所述Payload中所述实际IP地址的类型与所述第一边缘超级节点所处的网络域的IP地址类型不同,则将所述Payload中的所述实际IP地址替换成所述第一查询响应报文中的源地址;A parsing module, configured to parse the first query response message, if it is determined that the type of the actual IP address in the Payload is different from the IP address type of the network domain where the first edge super node is located, then replacing the actual IP address in the Payload with the source address in the first query response message; 第二发送模块,用于将所述第一查询响应报文转发至所述第一节点,以使得所述第一节点根据所述第一查询响应报文与所述第二节点建立P2P连接,并进行所述第一资源的共享。a second sending module, configured to forward the first query response message to the first node, so that the first node establishes a P2P connection with the second node according to the first query response message, And share the first resource. 5.根据权利要求4所述的第一边缘超级节点,其特征在于,所述第一边缘超级节点还包括:存储模块,用于将所述第一资源ID与所述第一资源的实际IP地址存储至文件地址信息,其中,所述文件地址信息包含所述第一边缘超级节点每次查询所得的资源ID以及与所述资源ID对应的实际IP地址。5. The first edge super node according to claim 4, characterized in that, the first edge super node further comprises: a storage module for combining the first resource ID with the actual IP of the first resource The address is stored in the file address information, wherein the file address information includes the resource ID obtained from each query of the first edge supernode and the actual IP address corresponding to the resource ID. 6.根据权利要求5所述的第一边缘超级节点,其特征在于,6. The first edge super node according to claim 5, characterized in that, 第一接收模块还用于,接收所述第一超级节点转发的第二查询请求,其中,所述第二查询请求包含第三节点请求查询的第二资源ID,所述第三节点为所述第一边缘超级节点所在网络域中任意一个节点;The first receiving module is further configured to receive a second query request forwarded by the first supernode, wherein the second query request includes a second resource ID that a third node requests to query, and the third node is the Any node in the network domain where the first edge super node is located; 所述查询模块还用于,根据所述第二资源ID查询所述文件地址信息;The query module is further configured to query the file address information according to the second resource ID; 所述第一发送模块还用于,若所述查询模块确定所述文件地址信息中包含所述第二资源ID,则向所述IPV4/IPV6互通网关发送所述第二资源ID对应的实际IP地址,以使得所述IPV4/IPV6互通网关为所述第二资源ID的实际IP地址提供翻译地址;The first sending module is further configured to, if the query module determines that the file address information includes the second resource ID, send the actual IP address corresponding to the second resource ID to the IPV4/IPV6 interworking gateway. address, so that the IPV4/IPV6 interworking gateway provides a translation address for the actual IP address of the second resource ID; 所述第二接收模块还用于,接收所述IPV4/IPV6互通网关发送的所述第二资源的实际IP地址的翻译地址;The second receiving module is further configured to receive the translation address of the actual IP address of the second resource sent by the IPV4/IPV6 interworking gateway; 所述第二发送模块还用于,将第二查询响应报文转发至所述第三节点,以使得所述第三节点根据所述第二查询响应报文与所述第二资源ID所在的节点建立P2P连接,并进行所述第二资源的共享,其中,所述第二查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第三节点的地址,所述源地址为所述第二资源的实际IP地址的翻译地址,所述Payload中包含所述第二资源所在的节点ID,所述第二资源的文件key,以及所述第二资源的实际IP地址的翻译地址。The second sending module is further configured to forward the second query response message to the third node, so that the third node according to the second query response message and the second resource ID A node establishes a P2P connection and shares the second resource, wherein the second query response message includes a destination address, a source address, and a Payload, the destination address is the address of the third node, and the The source address is the translation address of the actual IP address of the second resource, and the Payload includes the node ID where the second resource is located, the file key of the second resource, and the actual IP of the second resource The translated address of the address. 7.一种系统,其特征在于,包括:第一边缘超级节点,第二边缘超级节点,所述第一边缘超级节点和所述第二边缘超级节点通过IPV4/IPV6互通网关连接,所述第一边缘超级节点处于IPV4网络域,所述第二边缘超级节点处于IPV6网络域;或者,所述第一边缘超级节点处于IPV6网络域,所述第二边缘超级节点处于IPV4网络域;7. A system, characterized in that it includes: a first edge super node, a second edge super node, the first edge super node and the second edge super node are connected through an IPV4/IPV6 interworking gateway, and the first edge super node An edge super node is in the IPV4 network domain, and the second edge super node is in the IPV6 network domain; or, the first edge super node is in the IPV6 network domain, and the second edge super node is in the IPV4 network domain; 其中,所述第一边缘超级节点用于,Wherein, the first edge super node is used for, 接收第一超级节点转发的第一查询请求,其中,所述第一查询请求包含第一节点请求查询的第一资源ID;receiving a first query request forwarded by the first supernode, wherein the first query request includes a first resource ID that the first node requests to query; 根据所述第一资源ID查询所述第一边缘超级节点的本地信息,其中,所述第一边缘超级节点的本地信息包含所述第一边缘超级节点能够获取的资源ID,以及每个资源ID对应的节点ID和IP地址;Query the local information of the first edge super node according to the first resource ID, wherein the local information of the first edge super node includes the resource ID that the first edge super node can obtain, and each resource ID Corresponding node ID and IP address; 若确定所述第一边缘超级节点的本地信息中不包含所述第一资源ID,则将所述第一查询请求转发至第二边缘超级节点,以使得所述第二边缘超级节点在所述第二边缘超级节点所在的网络域中查找所述第一资源;If it is determined that the local information of the first edge super node does not contain the first resource ID, the first query request is forwarded to the second edge super node, so that the second edge super node is in the Searching for the first resource in the network domain where the second edge super node is located; 接收所述第二边缘超级节点发送的第一查询响应报文,其中,所述第一查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第一节点的地址,所述源地址为存储所述第一资源的第二节点的地址,且所述源地址经过所述IPV4/IPV6互通网关翻译后,与所述第一边缘超级节点所处网络域类型相同,所述Payload中包含所述第二节点ID,所述第一资源的文件key,以及所述第一资源的实际IP地址;receiving a first query response message sent by the second edge super node, wherein the first query response message includes a destination address, a source address, and a Payload, and the destination address is the address of the first node , the source address is the address of the second node storing the first resource, and after the source address is translated by the IPV4/IPV6 interworking gateway, it is the same type of network domain as the first edge super node, The Payload includes the second node ID, the file key of the first resource, and the actual IP address of the first resource; 对所述第一查询响应报文进行解析,若确定所述Payload中所述实际IP地址的类型与所述第一边缘超级节点所处的网络域的IP地址类型不同,则将所述Payload中的所述实际IP地址替换成所述第一查询响应报文中的源地址;Analyzing the first query response message, if it is determined that the type of the actual IP address in the Payload is different from the IP address type of the network domain where the first edge super node is located, then the Replace the actual IP address of the source address in the first query response message; 将所述第一查询响应报文转发至所述第一节点,以使得所述第一节点根据所述第一查询响应报文与所述第二节点建立P2P连接,并进行所述第一资源的共享。Forwarding the first query response message to the first node, so that the first node establishes a P2P connection with the second node according to the first query response message, and performs the first resource of sharing. 8.根据权利要求7所述的系统,其特征在于,所述第一边缘超级节点还用于:将所述第一资源ID与所述第一资源的实际IP地址存储至文件地址信息,其中,所述文件地址信息包含所述第一边缘超级节点每次查询所得的资源ID以及与所述资源ID对应的实际IP地址。8. The system according to claim 7, wherein the first edge super node is further configured to: store the first resource ID and the actual IP address of the first resource in file address information, wherein , the file address information includes the resource ID obtained by the first edge supernode each query and the actual IP address corresponding to the resource ID. 9.根据权利要求8所述的系统,其特征在于,所述第一边缘超级节点还用于:9. The system according to claim 8, wherein the first edge super node is also used for: 接收所述第一超级节点转发的第二查询请求,其中,所述第二查询请求包含第三节点请求查询的第二资源ID,所述第三节点为所述第一边缘超级节点所在网络域中任意一个节点;receiving a second query request forwarded by the first supernode, wherein the second query request includes a second resource ID requested by a third node, and the third node is the network domain where the first edge supernode is located any node in 根据所述第二资源ID查询所述文件地址信息;Querying the file address information according to the second resource ID; 若确定所述文件地址信息中包含所述第二资源ID,则向所述IPV4/IPV6互通网关发送所述第二资源ID对应的实际IP地址,以使得所述IPV4/IPV6互通网关为所述第二资源ID的实际IP地址提供翻译地址;If it is determined that the file address information includes the second resource ID, send the actual IP address corresponding to the second resource ID to the IPV4/IPV6 interworking gateway, so that the IPV4/IPV6 interworking gateway is the The actual IP address of the second resource ID provides the translated address; 接收所述IPV4/IPV6互通网关发送的所述第二资源的实际IP地址的翻译地址;receiving the translation address of the actual IP address of the second resource sent by the IPV4/IPV6 interworking gateway; 将第二查询响应报文转发至所述第三节点,以使得所述第三节点根据所述第二查询响应报文与所述第二资源ID所在的节点建立P2P连接,并进行所述第二资源的共享,其中,所述第二查询响应报文中包含目的地址,源地址,以及Payload,所述目的地址为所述第三节点的地址,所述源地址为所述第二资源的实际IP地址的翻译地址,所述Payload中包含所述第二资源所在的节点ID,所述第二资源的文件key,以及所述第二资源的实际IP地址的翻译地址。Forwarding the second query response message to the third node, so that the third node establishes a P2P connection with the node where the second resource ID is located according to the second query response message, and performs the second query response message. Sharing of two resources, wherein, the second query response message includes a destination address, a source address, and a Payload, the destination address is the address of the third node, and the source address is the address of the second resource The translation address of the actual IP address, the Payload includes the node ID where the second resource is located, the file key of the second resource, and the translation address of the actual IP address of the second resource. 10.根据权利要求7-9任一项所述的系统,其特征在于,所述系统还包括:边缘超级节点控制器,所述边缘超级节点控制器与所述系统中的边缘超级节点逻辑连接,用于对新的边缘超级节点进行注册及管理,提供所述边缘超级节点控制器所管理的边缘超级节点之间的寻址及通知的下发。10. The system according to any one of claims 7-9, further comprising: an edge super node controller, which is logically connected to the edge super nodes in the system , for registering and managing new edge supernodes, and providing addressing and delivery of notifications among edge supernodes managed by the edge supernode controller.
CN201310664771.6A 2013-12-09 2013-12-09 Method, equipment and the system of a kind of P2P resource-sharing Active CN103618801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310664771.6A CN103618801B (en) 2013-12-09 2013-12-09 Method, equipment and the system of a kind of P2P resource-sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310664771.6A CN103618801B (en) 2013-12-09 2013-12-09 Method, equipment and the system of a kind of P2P resource-sharing

Publications (2)

Publication Number Publication Date
CN103618801A true CN103618801A (en) 2014-03-05
CN103618801B CN103618801B (en) 2017-01-04

Family

ID=50169505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310664771.6A Active CN103618801B (en) 2013-12-09 2013-12-09 Method, equipment and the system of a kind of P2P resource-sharing

Country Status (1)

Country Link
CN (1) CN103618801B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Handover method and system between IPV4 network and IPV6 network
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN106231739A (en) * 2016-10-10 2016-12-14 北京北极风科技有限公司 The illumination control method of a kind of complex scene and device
CN106899639A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods of data resource, index server and communication system
CN106899640A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods and communication system of data resource
CN110768887A (en) * 2019-09-20 2020-02-07 杭州海兴电力科技股份有限公司 IPv 6-based power gateway system and power data uploading/issuing method
CN111327651A (en) * 2018-12-14 2020-06-23 华为技术有限公司 Resource downloading method, device, edge node and storage medium
US20220272145A1 (en) * 2021-02-20 2022-08-25 Wangsu Science & Technology Co., Ltd. Method for requesting resources and terminal
WO2023024382A1 (en) * 2021-08-26 2023-03-02 北京鸿合爱学教育科技有限公司 Network sharing method and apparatus, and electronic device and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848802A (en) * 2005-11-25 2006-10-18 清华大学 Method for realizing IPv6 high performance interconnection based on P2P on IPv4
CN101610285A (en) * 2009-06-15 2009-12-23 北京邮电大学 P2P communication method in the coexistence network of IPv4 and IPv6
CN102025777A (en) * 2010-11-24 2011-04-20 华中科技大学 Method for sharing peer-to-peer (P2P) resources under condition of internet protocol version 4/version 6 (IPv4/v6) hybrid networking
CN102065112A (en) * 2009-11-18 2011-05-18 中国移动通信集团公司 Peer-to-peer (P2P) network system and method and related device for establishing the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848802A (en) * 2005-11-25 2006-10-18 清华大学 Method for realizing IPv6 high performance interconnection based on P2P on IPv4
CN101610285A (en) * 2009-06-15 2009-12-23 北京邮电大学 P2P communication method in the coexistence network of IPv4 and IPv6
CN102065112A (en) * 2009-11-18 2011-05-18 中国移动通信集团公司 Peer-to-peer (P2P) network system and method and related device for establishing the same
CN102025777A (en) * 2010-11-24 2011-04-20 华中科技大学 Method for sharing peer-to-peer (P2P) resources under condition of internet protocol version 4/version 6 (IPv4/v6) hybrid networking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吕晓鹏: ""P2P技术在IPv4/IPv6混合网中应用的关键问题研究"", 《中国博士学位论文全文数据库 信息科技辑》 *
赵锐 等: ""IPv4/IPv6混合组网下P2P文件共享系统的设计与实现"", 《中国海洋大学学报(自然科学版)》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Handover method and system between IPV4 network and IPV6 network
CN103987098B (en) * 2014-04-28 2017-12-01 广州杰赛科技股份有限公司 IPV4 networks and the internetwork switching methods of IPV6 and system
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN106899639A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods of data resource, index server and communication system
CN106899640A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The acquisition methods and communication system of data resource
CN106231739A (en) * 2016-10-10 2016-12-14 北京北极风科技有限公司 The illumination control method of a kind of complex scene and device
CN111327651A (en) * 2018-12-14 2020-06-23 华为技术有限公司 Resource downloading method, device, edge node and storage medium
CN110768887A (en) * 2019-09-20 2020-02-07 杭州海兴电力科技股份有限公司 IPv 6-based power gateway system and power data uploading/issuing method
US20220272145A1 (en) * 2021-02-20 2022-08-25 Wangsu Science & Technology Co., Ltd. Method for requesting resources and terminal
US11785075B2 (en) * 2021-02-20 2023-10-10 Wangsu Science & Technology Co., Ltd. Method for requesting resources and terminal
WO2023024382A1 (en) * 2021-08-26 2023-03-02 北京鸿合爱学教育科技有限公司 Network sharing method and apparatus, and electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN103618801B (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
US8457014B2 (en) Method for configuring control tunnel and direct tunnel in IPv4 network-based IPv6 service providing system
CN101529809B (en) Distributed storage of routing information in a link state protocol controlled network
CN102035900B (en) NAT (network address translation) traversal method, system and relay server by relay mode
CN102893556A (en) Methods, systems, and computer readable media for source peer capacity-based diameter load sharing
CN115242882B (en) A method and device for accessing k8s container environment based on transport layer routing
TW200924462A (en) System and method for connection of hosts behind NATs
CN104427010A (en) NAT (network address translation) method and device applied to DVPN (dynamic virtual private network)
EP2901630A2 (en) Method operating in a fixed access network and ues
CN109076082A (en) Anonymous identities in identity-oriented networks and protocols
CN109218467A (en) A kind of method for network address translation and chip
US9401864B2 (en) Express header for packets with hierarchically structured variable-length identifiers
CN105681249B (en) A network access method and network conversion device
US20130117308A1 (en) Apparatus, Method and System for Node Discovering
Jung et al. IDNet: beyond all‐IP network
US10536368B2 (en) Network-aware routing in information centric networking
CN108924052A (en) Message forwarding method, aggregation gateway, access gateway and system
CN101572729B (en) A method for processing virtual private network node information and related equipment and system
US11196666B2 (en) Receiver directed anonymization of identifier flows in identity enabled networks
CN102271144A (en) P2P (point to point) overlay network, data resource operating method and new node adding method
CN102404227B (en) Hierarchical routing system crossing internal network
CN101557336A (en) Method for establishing network tunnel, data processing method and relevant equipment
JP5054666B2 (en) VPN connection device, packet control method, and program
KR20220073422A (en) Method and Apparatus for Defining Path of a Packet in Information-Centric Networking for Data Producer Mobility
CN105099928A (en) Dual-stack router and method for realizing bandwidth sharing

Legal Events

Date Code Title Description
PB01 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