Control method, server, and program
The distributed ledger system ensures secure and reliable management of peer information in P2P networks by verifying and storing peer connections with signatures, addressing tampering and reliability issues.
Patent Information
- Application Number
- JP2021542753
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-08-29
- Filing Date
- 2020-08-17
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-08-17
AI Technical Summary
Existing P2P networks face issues with tamper resistance and reliability of peer information, leading to potential DoS attacks and malfunctions due to inappropriate rewriting or malicious connections.
A control method utilizing a distributed ledger system to verify and store peer information with signatures, ensuring its integrity and reliability, allowing peers to connect with trusted and suitable peers.
The method effectively manages and secures peer information, preventing unauthorized manipulation and reducing processing loads on peers, while maintaining network reliability and availability.
Smart Images

Figure 0007556866000005 
Figure 0007556866000013 
Figure 0007556866000002
Abstract
Description
[Technical field]
[0001] The present invention relates to a control method, a server, and a program. [Background technology]
[0002] Peers participating in a peer-to-peer (P2P) network establish peer connections based on peer information obtained from a server or other peers (Non-Patent Document 1). [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Bitcoin Developer Guide, [Retrieved July 1, 2020], Internet URL: https: / / btcinformation.org / en / developer-guide#block-prototypes Summary of the Invention [Problem to be solved by the invention]
[0004] However, there are conventional problems with respect to the resistance to tampering or the reliability of peer information.
[0005] Therefore, an object of the present invention is to provide a control method for appropriately managing peer information. [Means for solving the problem]
[0006] A control method according to one embodiment of the present invention is a control method executed by one of a plurality of servers in a P2P management system having the plurality of servers each holding a distributed ledger, the control method receiving transaction data including peer information used to connect a first peer to other peers among a plurality of peers constituting the P2P system and a signature assigned to the peer information by the first peer, verifying the received transaction data using the signature included in the received transaction data, and if the verification is successful, storing the transaction data in the distributed ledger.
[0007] These comprehensive or specific aspects may be realized as a system, an apparatus, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized as any combination of a system, an apparatus, an integrated circuit, a computer program, and a recording medium. Effect of the Invention
[0008] According to the control method of the present invention, peer information can be appropriately managed. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic diagram showing an overall configuration of a system according to the first embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating a functional configuration of a peer according to the first embodiment. [Diagram 3] FIG. 3 is a block diagram showing a functional configuration of the proxy server in the first embodiment. [Figure 4] FIG. 4 is a block diagram illustrating a functional configuration of the ledger server according to the first embodiment. [Diagram 5] FIG. 5 is an explanatory diagram illustrating an example of transaction data according to the first embodiment. [Figure 6] FIG. 6 is a flow diagram showing a process executed by a peer to write peer information of the own device in the first embodiment. [Figure 7] FIG. 7 is a flow diagram showing a process executed when a peer in the first embodiment acquires peer information of another device and participates in the P2P system. [Figure 8] FIG. 8 is a flow diagram showing a process executed by the proxy server for writing and acquiring peer information in the first embodiment. [Figure 9] FIG. 9 is a flow diagram showing a process executed by the ledger server for writing and reading peer information in the first embodiment. [Figure 10] FIG. 10 is a sequence diagram showing the processing executed by the system when registering and updating peer information in the first embodiment. [Figure 11] FIG. 11 is a sequence diagram showing a process executed by the system when connecting to a new peer in the first embodiment. [Figure 12] FIG. 12 is a schematic diagram showing an overall configuration of a system according to the second embodiment. [Figure 13] FIG. 13 is a block diagram showing the functions of a peer according to the second embodiment. [Figure 14] FIG. 14 is a schematic diagram showing an overall configuration of a system according to the third embodiment. [Figure 15] FIG. 15 is a block diagram showing the functions of a peer according to the third embodiment. [Figure 16] FIG. 16 is an explanatory diagram showing the data structure of a blockchain. [Figure 17] FIG. 17 is an explanatory diagram showing the data structure of the transaction data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] (Findings on which the present invention is based) The present inventors have found that the following problems arise with the technology relating to peer-to-peer (P2P) networks described in the "Background Art" section.
[0011] In a P2P network, methods for obtaining information on other peers participating in the network include a method in which each peer inquires of a server that manages information on all peers participating in the P2P network (hybrid type), or a method in which connected peers exchange information with each other (pure type). In either method, peers participating in a P2P network establish peer connections based on peer information obtained from the server or other peers (Non-Patent Document 1).
[0012] However, in a hybrid P2P network, the information on the centralized peer management server may be inappropriately rewritten, either intentionally or accidentally, which may lead to a problem that peers participating in the P2P network may be induced to launch DoS attacks or the P2P network itself may be brought to a halt.
[0013] On the other hand, in a pure P2P network, a new peer trying to join the network must somehow know the first peer to connect to. If the new peer connects to a malicious peer, it may lead to problems such as DoS attacks as mentioned above or being forced to join a malicious P2P network.
[0014] Thus, conventionally, there are problems regarding the resistance to tampering or the reliability of peer information.
[0015] Therefore, an object of the present invention is to provide a control method for enabling a server to appropriately manage peer information used in a P2P system.
[0016] In order to solve such problems, a control method according to one embodiment of the present invention is a control method executed by one of multiple servers in a P2P management system having multiple servers each holding a distributed ledger, the control method receiving transaction data including peer information used to connect a first peer to other peers among multiple peers constituting the P2P system and a signature assigned to the peer information by the first peer, verifying the received transaction data using the signature included in the received transaction data, and if the verification is successful, storing the transaction data in the distributed ledger.
[0017] According to the above aspect, the server stores and manages transaction data including peer information in a distributed ledger. The peer information stored in the distributed ledger is managed to prevent tampering based on the property that tampering is substantially difficult. Thus, the server can appropriately manage the peer information.
[0018] For example, the received transaction data may be transaction data that was generated when the peer information held by the first peer was updated, and that includes the updated peer information.
[0019] According to the above aspect, the server receives transaction data including updated peer information, stores it in the distributed ledger, and manages it. Therefore, the transaction data stored in the distributed ledger is maintained in a state including the latest peer information. Therefore, the server can appropriately manage the latest peer information.
[0020] For example, when a request to obtain the peer information is received, the peer information may be read from the transaction data stored in the distributed ledger, and the read peer information may be transmitted to the requester of the obtainment request.
[0021] According to the above aspect, the server transmits the peer information stored in an appropriate state in response to a request to acquire the peer information. In this way, the server can appropriately manage the peer information by appropriately providing the peer information.
[0022] For example, when transmitting the peer information that has been read, one or more pieces of peer information may be transmitted that are read by referring to the distributed ledger and that contain parameters that fall within a predetermined range indicating that the peer is suitable for connection.
[0023] According to the above aspect, since the server transmits the peer information indicating a peer suitable for connection, a peer that has received the peer information can select and connect to a peer suitable for connection by connecting to the peer indicated in the peer information transmitted from the server. Thus, the server can appropriately manage the peer information by providing the peer information of a peer suitable for connection.
[0024] For example, when transmitting the read peer information, a peer suitable for connection may be determined based on the read peer information by referring to the distributed ledger, and the peer information of the determined peer may be transmitted.
[0025] According to the above aspect, the server transmits peer information indicating a peer determined by the server as a suitable peer for connection, and a peer that receives the peer information can connect to the suitable peer by connecting to the peer indicated in the peer information transmitted from the server. Thus, the server can appropriately manage the peer information and control the P2P network by determining and providing the peer information of a suitable peer for connection.
[0026] For example, when storing the transaction data in the distributed ledger, the transaction data may be shared among the multiple servers, and the transaction data may be stored in the distributed ledger if the legitimacy of the transaction data is agreed upon by executing a predetermined consensus algorithm.
[0027] According to the above aspect, the server stores the transaction data in the distributed ledger after confirming that the validity of the transaction data to be stored in the distributed ledger has been agreed upon among the multiple servers. Thus, the server can more appropriately manage peer information using the distributed ledgers of the multiple servers.
[0028] For example, the peer information may include at least one of an identification information of the first peer, an Internet Protocol (IP) address of the first peer, a port number used by the first peer to communicate with the other peers, an identification information of a peer to which the first peer is currently connected, a duration of the first peer's participation in the P2P system, a duration of the connection between the first peer and a peer to which the first peer is currently connected, a public key of the first peer, and a maximum number of connections allowed by the first peer.
[0029] According to the above aspect, the server can appropriately manage the peer information and control the P2P network in more detail by using peer identification information, IP address, port number, connection destination identification information, participation duration, connection duration, public key, or maximum allowable number of connections as peer information.
[0030] For example, the P2P management system may be connected to the P2P system via a proxy server, the first peer may transmit the peer information and the signature to the proxy server, the proxy server may generate proxy transaction data, which is transaction data including the peer information and the signature transmitted by the first peer, and transmit the proxy transaction data to the first server, and when receiving the transaction data, the proxy transaction data transmitted by the proxy server may be received as the transaction data.
[0031] According to the above aspect, the server uses a distributed ledger to manage transaction data including peer information transmitted from a peer via a proxy server. In this case, the peer only needs to transmit the peer information and a signature to the proxy server, and does not need to implement and execute processes related to the distributed ledger, such as a process for generating transaction data. This has the effect of reducing the processing load on the peer and reducing power consumption. In this way, the server can appropriately manage the peer information without implementing processes related to the distributed ledger in the peer.
[0032] For example, the P2P management system may be connected to the P2P system.
[0033] According to the above aspect, the server manages transaction data including peer information transmitted from peers using a distributed ledger. Therefore, since there is no need for other devices to be interposed between the peers and the server, the server can effectively manage the P2P system in a configuration that eliminates single points of failure (in other words, a configuration without a single point of failure). Therefore, the server can appropriately manage peer information with a configuration that has a relatively high level of availability.
[0034] Furthermore, a control method according to one embodiment of the present invention is a control method for a proxy server interposed between a P2P management system having a plurality of servers each holding a distributed ledger and the P2P system, which receives peer information used to connect a first peer among a plurality of peers constituting the P2P system to other peers and a signature assigned to the peer information by the first peer, generates transaction data including the received peer information and the signature, and transmits the transaction data to a plurality of servers constituting the P2P management system.
[0035] According to the above aspect, the proxy server generates transaction data including peer information transmitted from the peer and stores the transaction data in the server's distributed ledger. In this case, the peer only needs to transmit the peer information and the signature to the proxy server, and does not need to implement and execute processes related to the distributed ledger, such as a process for generating transaction data. This has the effect of reducing the processing load on the peer and reducing power consumption. In this way, the proxy server can appropriately manage the peer information by the server, without implementing processes related to the distributed ledger in the peer.
[0036] In addition, a server according to one embodiment of the present invention is one of the servers in a P2P management system having a plurality of servers each holding a distributed ledger, and is equipped with a ledger control unit and a memory unit that stores the distributed ledger, wherein the ledger control unit receives transaction data including peer information used to connect a first peer to other peers among a plurality of peers constituting the P2P system and a signature assigned to the peer information by the first peer, verifies the received transaction data using the signature included in the received transaction data, and if the verification is successful, stores the transaction data in the distributed ledger.
[0037] According to the above aspect, the server achieves the same effects as the above control method.
[0038] Moreover, a program according to one aspect of the present invention is a program for causing a computer to execute the above control method.
[0039] According to the above aspect, the program provides the same effects as the above control method.
[0040] These comprehensive or specific aspects may be realized as a system, an apparatus, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized as any combination of a system, an apparatus, an integrated circuit, a computer program, or a recording medium.
[0041] Hereinafter, the embodiment will be specifically described with reference to the drawings.
[0042] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, component arrangement and connection forms, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, components that are not described in an independent claim showing a top concept are described as optional components.
[0043] (Embodiment 1) In this embodiment, a P2P management system that appropriately manages peer information and a control method thereof will be described.
[0044] Here, we will explain, with reference to the drawings, an example of peers that record the information they hold for P2P connections in a distributed ledger, and then connect with each other by referring to the distributed ledger.
[0045] (1.1 Overall system configuration) FIG. 1 is a diagram showing the overall configuration of a system 1 according to the present embodiment.
[0046] As shown in FIG. 1, the system 1 includes peers 100A, 100B, and 100C, a proxy server 200, and ledger servers 300A, 300B, and 300C, which are connected via a network N.
[0047] The peers 100A, 100B, and 100C are computers that constitute the P2P system 10. The number of peers that constitute the P2P system 10 is not limited to three, and may be one or more.
[0048] The ledger servers 300A, 300B, and 300C are server devices (also simply referred to as servers) that make up the P2P management system 30. The number of peers that make up the P2P management system 30 is not limited to three, and may be any number greater than or equal to one.
[0049] The peer 100A is one of the P2P peers constituting the P2P system 10. The peer 100A is communicatively connected to the other peers 100B and 100C constituting the P2P system 10 via a network N. The peer 100A performs some of the predetermined functions provided by the P2P system 10 by transmitting and receiving information between peers through communication. The predetermined functions include, for example, a function for distributing and holding a large number of electronic files by multiple peers and providing the files to a requester, or a function for distributing and executing a large-scale computational process by multiple peers and providing the results to a requester, but are not limited to these.
[0050] The peer 100A holds peer information (described later) used to connect the peers constituting the P2P system 10, and registers the peer information in the P2P management system 30 via the proxy server 200. The peer 100A also acquires the peer information registered in the P2P management system 30 via the proxy server 200, and uses the acquired peer information to connect to unconnected peers.
[0051] The peers 100B and 100C each have the same functions as the peer 100A, and operate independently of the peer 100A. The operation of the peers 100A, 100B, and 100C allows the P2P system 10 to fulfill a predetermined function.
[0052] The proxy server 200 is a server that registers peer information in a distributed ledger held by the P2P management system 30 on behalf of the peers 100A and the like, and also reads out peer information from the distributed ledger.
[0053] The ledger server 300A is one of the P2P peers that make up the P2P management system 30. The ledger server 300A is a server that manages peer information of peers in the P2P system 10 using a distributed ledger. The ledger server 300A is communicatively connected to the other ledger servers 300B and 300C that make up the P2P management system 30 via a network N.
[0054] The ledger server 300A is connected to peers 100A, etc. via the proxy server 200, and stores transaction data including peer information received from peers 100A, etc. in the distributed ledger. It also reads peer information from the transaction data stored in the distributed ledger and provides it to peers 100A, etc. via the proxy server 200.
[0055] Ledger servers 300B and 300C each have the same functions as ledger server 300A, and operate independently of ledger server 300A. Ledger servers 300A, 300B, and 300C operate to allow P2P management system 30 to fulfill its function of managing P2P system 10.
[0056] The peers 100A etc., the proxy server 200, and the ledger server 300A etc. will be described in detail below.
[0057] (1.2 Configuration of Peer 100A) 2 is a block diagram showing the functional configuration of the peer 100A according to the present embodiment. The peers 100B and 100C also have the same configuration as the peer 100A.
[0058] 2, the peer 100A includes a write request unit 101, an obtain request unit 102, a determination unit 103, a communication unit 104, and an execution unit 105. Each functional unit included in the peer 100A can be realized by a processor (e.g., a CPU (Central Processing Unit)) included in the peer 100A executing a predetermined program using a memory.
[0059] The write request unit 101 is a functional unit that requests that the peer information of the own device, that is, the peer 100A, be written to the distributed ledger. The write request unit 101 creates peer information that is information for P2P connection between the own device, that is, the peer 100A, and other peers included in the P2P system 10. The write request unit 101 also generates write request data for the created peer information, affixes a signature to the data, and transmits it to the proxy server 200 to request writing to the distributed ledger. Specific examples of peer information will be explained in detail later.
[0060] The acquisition request unit 102 is a functional unit that makes a request to acquire peer information from the distributed ledger. The acquisition request unit 102 generates and transmits to the proxy server 200 acquisition request data (also simply referred to as an acquisition request) for acquiring the peer information recorded in the distributed ledger. The acquisition request unit 102 then acquires the peer information transmitted by the ledger server 300A or the like in response to the acquisition request data via the proxy server 200. The acquisition request unit 102 also performs a detection process for detecting tampering with the peer information acquired in this manner. Tampering is detected using a signature added to the written peer information.
[0061] The determination unit 103 is a functional unit that determines a peer with which the own device will establish a P2P connection. The determination of the peer may be performed using the peer information acquired by the acquisition request unit 102.
[0062] The communication unit 104 is a communication interface device connected to the network N. The communication unit 104 communicates with the proxy server 200 and the other peers 100B and 100C via the network N.
[0063] The execution unit 105 is a functional unit that performs some of the predetermined functions provided by the P2P system 10 by executing a predetermined program.
[0064] (1.3 Configuration of the proxy server 200) FIG. 3 is a block diagram showing the functional configuration of the proxy server 200 in this embodiment.
[0065] 3, the proxy server 200 includes a request proxy unit 201, a ledger processing unit 202, and a communication unit 203. Each functional unit included in the proxy server 200 can be realized by a processor (e.g., a CPU) included in the proxy server 200 executing a predetermined program using a memory.
[0066] The request proxy unit 201 is a functional unit that writes or reads data to the distributed ledger of the ledger server 300A, etc., on behalf of the peer 100A, etc. Specifically, when the request proxy unit 201 receives a request from the peer 100A, etc., it controls the ledger processing unit 202 based on the received request. For example, when the request proxy unit 201 receives write request data for peer information, it instructs the ledger processing unit 202 to generate transaction data. Also, when the request proxy unit 201 receives request data for peer information, it instructs the ledger processing unit 202 to read the peer information by referring to the distributed ledger.
[0067] The ledger processing unit 202 is a functional unit that writes or reads data to the distributed ledger owned by the ledger server 300A etc. Specifically, under the control of the request proxy unit 201, the ledger processing unit 202 generates transaction data including write request data received from the peer 100A and transmits it to the ledger server 300A etc. Also, under the control of the request proxy unit 201, the ledger processing unit 202 generates read request data for reading peer information from the distributed ledger based on the obtain request data received from the peer 100A and transmits it to the ledger server 300A etc. When a response to the read request data is received from the ledger server 300A etc., the ledger processing unit 202 transmits the response to the peer 100A.
[0068] In addition, when transmitting transaction data to the ledger server 300A, etc., the ledger processing unit 202 may be responsible for part of the processing such as executing a consensus algorithm or mining.
[0069] The communication unit 203 is a communication interface device connected to the network N. The communication unit 203 communicates with the peers 100A and the like and the ledger server 300A and the like via the network N.
[0070] (1.4 Configuration of Ledger Server 300A) 4 is a block diagram showing the functional configuration of ledger server 300A in this embodiment. Note that ledger servers 300B and 300C also have the same configuration as ledger server 300A.
[0071] 4, the ledger server 300A includes a ledger control unit 301, a communication unit 302, and a storage unit 303. Each functional unit included in the ledger server 300A can be realized by a processor (e.g., a CPU) included in the ledger server 300A executing a predetermined program using a memory.
[0072] The ledger control unit 301 is a functional unit that controls the distributed ledger 305. Specifically, the ledger control unit 301 writes transaction data to the distributed ledger 305 stored in the memory unit 303, or reads transaction data stored in the distributed ledger 305.
[0073] Specifically, the ledger control unit 301 receives transaction data including peer information used to connect a first peer (e.g., peer 100A) to another peer (e.g., peer 100B) among the multiple peers constituting the P2P system 10, and a signature attached to the peer information by the first peer. The ledger control unit 301 verifies the received transaction data using the signature included in the received transaction data. If the verification is successful, the ledger control unit 301 stores the transaction data in the distributed ledger 305. The transaction data was sent by the proxy server 200.
[0074] The transaction data received by the ledger control unit 301 may be transaction data that is generated when the peer information held by the first peer is updated and includes the updated peer information.
[0075] Furthermore, when the ledger control unit 301 receives read request data for peer information (also simply referred to as a read request), it reads the peer information from the transaction data stored in the distributed ledger 305, and transmits the read peer information to the requester of the read request data. When transmitting the read peer information, the ledger control unit 301 may transmit one or more pieces of peer information read by referring to the distributed ledger 305, the parameters included in the peer information being within a predetermined range indicating that the peer is suitable for connection. When transmitting the read peer information, the ledger control unit 301 may determine a peer suitable for connection based on the peer information read by referring to the distributed ledger 305, and transmit the peer information of the determined peer.
[0076] The distributed ledger 305 may be in any format, for example a blockchain. This will be described as an example, but other types of distributed ledgers (for example, IOTA or hashgraph) may also be used.
[0077] In addition, the distributed ledger may or may not execute a consensus algorithm (e.g., Practical Byzantine Fault Tolerance (PBFT), Proof of Work (PoW), or Proof of Stake (PoS)) to agree on the validity of transaction data when storing new transaction data. Hyperledger fabric is an example of a distributed ledger technology that does not execute a consensus algorithm.
[0078] The communication unit 302 is a communication interface device connected to the network N. The communication unit 302 communicates with the proxy server 200 and the other ledger servers 300B and 300C via the network N.
[0079] The memory unit 303 is a storage device that stores the distributed ledger 305. Transaction data is written to the memory unit 303 by the ledger control unit 301, and transaction data is also read out by the ledger control unit 301.
[0080] FIG. 5 is an explanatory diagram showing an example of transaction data 50 in this embodiment.
[0081] As shown in FIG. 5, transaction data 50 includes peer information 51 and a signature 52 .
[0082] The peer information 51 is information about a P2P connection between one peer (eg, peer 100A) included in the P2P system 10 and another peer (eg, peer 100B or 100C).
[0083] The peer information 51 includes, for example, at least one of the following: the peer's identification information, the peer's Internet Protocol (IP) address, the port number the peer uses to communicate with other peers, the identification information of the peer to which the peer is currently connected, the duration of the peer's participation in the P2P system 10, the duration of the connection with the peer to which the peer is currently connected, the peer's public key, and the maximum number of connections allowed for the peer.
[0084] The signature 52 is a digital signature that is added to the peer information 51 by the peer that generated the peer information 51 .
[0085] In this embodiment, the transaction data 50 is generated by the proxy server 200. The proxy server 200 generates transaction data 50 including the peer information and signature of one peer received from the one peer, and transmits the transaction data 50 to the ledger server 300A or the like, so that the transaction data 50 is stored in the ledger server 300A. The stored transaction data 50 is stored and managed so as not to be tampered with, based on the characteristic that information recorded in the distributed ledger 305 is difficult to tamper with.
[0086] The processes executed by the peers 100A and the like, the proxy server 200, and the ledger server 300A and the like configured as above will be described below.
[0087] 6 is a flow diagram showing a process executed by the peer 100A to write peer information of the peer 100A in this embodiment. The process shown in FIG. 6 is started, for example, when the peer 100A joins the P2P system 10.
[0088] In step S101, the write request unit 101 acquires peer information about its own peer 100A.
[0089] In step S102, the write request unit 101 generates and attaches a signature to the peer information acquired in step S101 using the private key of its own device.
[0090] In step S103, the write request unit 101 generates write request data by adding the signature generated in step S102 to the peer information acquired in step S101, and transmits the write request data to the proxy server 200. The peer information and the signature included in the transmitted write request data are included in the transaction data by the proxy server 200, and are managed by the ledger server 300A etc. to prevent tampering.
[0091] In step S104, the write request unit 101 determines whether the peer information of the own device has been updated since the previous acquisition of the peer information of the own device up to the present time. If it is determined that the peer information of the own device has been updated (Yes in step S104), the process proceeds to step S105, and if not (No in step S104), the process proceeds to step S104. That is, the write request unit 101 waits in step S104 until the peer information is updated. Note that the peer information is updated, for example, when the IP address of the peer 100A or the port number used by the peer 100A to communicate with other peers is updated.
[0092] In step S105, the write request unit 101 acquires peer information about the peer 100A, which is its own device.
[0093] In step S106, the write request unit 101 generates a signature for the peer information acquired in step S105.
[0094] In step S107, the write request unit 101 generates write request data by adding the signature generated in step S106 to the peer information acquired in step S105, and transmits the generated write request data to the proxy server 200. The peer information and signature included in the transmitted write request data are included in the transaction data by the proxy server 200, as in the case of step S103, and are managed by the ledger server 300A etc. to prevent tampering. After completing the process of step S107, the process proceeds to step S104.
[0095] Through the series of processes shown in FIG. 6, when the peer 100A joins the P2P system 10, it stores its own peer information in the ledger server 300A, etc., and whenever the peer information of its own device is updated, it stores the updated peer information of its own device in the ledger server 300A, etc.
[0096] 7 is a flow diagram showing the process executed when a peer in this embodiment acquires peer information of another device and participates in the P2P system. As an example, the process will be described in which, when peer 100B joins the P2P system 10, it acquires peer information of another device, peer 100A, and connects to peer 100A to join the P2P system 10.
[0097] In step S121, the acquisition request unit 102 generates acquisition request data and transmits it to the proxy server 200. Here, the acquisition request data is a request to acquire peer information of one or more peers that can be connected to the peer 100B among the peers participating in the P2P system 10.
[0098] In step S122, the acquisition request unit 102 acquires peer information of other devices. The acquired peer information is the peer information of one or more peers that is read and transmitted from the distributed ledger 305 by the ledger server 300A upon receiving the acquisition request data transmitted in step S121 via the proxy server 200. It is assumed that the one or more peers include the peer 100A.
[0099] In step S123, the determining unit 103 determines a peer to which the peer 100B will connect (also referred to as a destination peer) based on the peer information of one or more peers acquired in step S122 by the acquisition request unit 102. Here, it is assumed that the peer 100A is determined as the destination peer.
[0100] For example, the determination unit 103 may determine, based on the peer information of one or more peers, a peer whose physical distance from the own device is closer than a predetermined distance or whose physical distance from the own device is outside a predetermined range, as a connection destination peer. Also, for example, the determination unit 103 may determine, based on the peer information of one or more peers, a peer whose number of connected peers is greater than a predetermined distance or whose number of connected peers is within a predetermined range, as a connection destination peer. Also, for example, the determination unit 103 may determine, based on the peer information of one or more peers, a peer whose duration of participation in the P2P system 10 is longer than a predetermined distance or whose duration of participation in the P2P system 10 is within a predetermined range, as a connection destination peer.
[0101] In step S124, the determination unit 103 executes a connection process for connecting to the destination peer determined in step S123, thereby connecting to the destination peer.
[0102] In step S125, the execution unit 105 executes a predetermined program to thereby realize some of the predetermined functions provided by the P2P system 10.
[0103] Through the series of processes shown in FIG. 7, the peer 100B can connect to the peer 100A and participate in the P2P system 10.
[0104] FIG. 8 is a flow diagram showing the process executed by the proxy server 200 for writing and acquiring peer information in this embodiment.
[0105] In step S201, the request proxy unit 201 judges whether or not request data has been received from the peer 100A. If it is judged that request data has been received from the peer 100A (Yes in step S201), the process proceeds to step S202, and if not (No in step S201), step S201 is executed again. In other words, the request proxy unit 201 waits in step S201 until it receives request data.
[0106] In step S202, the request proxy unit 201 judges whether the type of the request data received in step S201 is write request data or obtain request data. If it is judged that the type of the request data is write request data ("write" in step S202), the process proceeds to step S203, and if it is judged that the type of the request data is obtain request data ("obtain" in step S202), the process proceeds to step S211.
[0107] In step S203, the ledger processing unit 202 generates transaction data including the peer information and the signature included in the write request data received in step S201.
[0108] In step S204, the ledger processing unit 202 transmits the transaction data generated in step S203 to the ledger server 300A, etc. After completing the process in step S204, the process proceeds to step S201.
[0109] In step S211, the ledger processing unit 202 generates read request data for reading peer information from the distributed ledger.
[0110] In step S212, the ledger processing unit 202 transmits the read request data generated in step S211 to the ledger server 300A, etc. After completing the process of step S212, the process proceeds to step S201.
[0111] Through the series of processes shown in FIG. 8, the proxy server 200, acting as a proxy for the peer 100A, writes peer information or obtains peer information in response to the write request data or obtain request data received from the peer 100A, respectively.
[0112] FIG. 9 is a flow diagram showing a process executed by the ledger server 300A for writing and reading peer information in this embodiment.
[0113] In step S301, ledger control unit 301 determines whether transaction data or read request data has been received from proxy server 200. If it is determined that transaction data has been received ("Transaction Data" in step S301), the process proceeds to step S302, and if read request data has been received ("Read Request Data" in step S301), the process proceeds to step S311. Ledger control unit 301 remains in a standby state in step S301 until transaction data or read request data is received.
[0114] In step S302, the ledger control unit 301 verifies the transaction data received in step S301.
[0115] In step S303, the ledger control unit 301 determines whether or not the verification in step S302 was successful. If it is determined that the verification was successful (Yes in step S303), the process proceeds to step S304, and if not (No in step S303), the process proceeds to step S301.
[0116] In step S304, the ledger control unit 301 stores the transaction data received in step S301 in the distributed ledger stored in the storage unit 303. When storing the transaction data in the distributed ledger, a consensus algorithm may be executed to agree on the validity of the transaction data. After completing the processing of step S304, proceed to step S301.
[0117] In step S311, the ledger control unit 301 refers to the distributed ledger stored in the storage unit 303, and reads peer information from the transaction data stored in the distributed ledger.
[0118] In step S312, the ledger control unit 301 transmits the peer information read in step S312 to the proxy server 200. When transmitting the peer information, only peer information that satisfies a predetermined condition indicating that the peer is suitable for connection may be transmitted from among the peer information read by referring to the distributed ledger. Specifically, the ledger control unit 301 may provide only peer information indicating a peer whose physical distance from the requesting peer 100A is closer than a predetermined distance, or whose physical distance from the peer 100A is outside a predetermined range, from among the one or more peers indicated in the read peer information. Also, for example, the ledger control unit 301 may provide only information indicating a peer whose number of connected peers is greater than a predetermined distance, or whose number of connected peers is within a predetermined range, from among the one or more peers. Also, for example, the ledger control unit 301 may provide only peer information indicating a peer whose duration of participation in the P2P system 10 is longer than a predetermined distance, or whose duration of participation in the P2P system 10 is within a predetermined range, from among the one or more peers.
[0119] After the process of step S312 is completed, the process proceeds to step S301.
[0120] Through the series of processes shown in FIG. 9, the ledger server 300A can appropriately store and manage peer information in the distributed ledger, and can read it in response to a read request.
[0121] Next, a description will be given of the operation of the system 1. Specifically, a description will be given of the process executed by the system when registering and updating peer information, and the process executed by the system when connecting to a new peer.
[0122] (1.5 Sequence of registering and updating peer information) Fig. 10 is a sequence diagram showing the processing executed by the system 1 when registering and updating peer information in this embodiment. Specifically, Fig. 10 shows the processing executed by the system 1, that is, the peer 100A, the proxy server 200, the ledger server 300A, etc., when registering and updating peer information. Note that the same processing as in the already-described flow chart is given the same reference numeral as in the already-described flow chart, and detailed description may be omitted.
[0123] The peer 100A generates write request data in which a signature is added to the peer information of the peer 100A itself, that is, the peer 100A, and transmits the write request data to the proxy server 200 (steps S101 to S103).
[0124] When the proxy server 200 receives the write request data from the peer 100A, it generates a transaction including the peer information and signature included in the received write request data, and transmits the transaction to the ledger server 300A, etc. (steps S203, S204). The destination to which the transaction data is transmitted may be any of the ledger servers 300A, etc., and the case where the transaction data is transmitted to the ledger server 300A will be described as an example here.
[0125] The ledger server 300A receives the transaction data and stores the received transaction in the distributed ledger 305. When storing the transaction in the distributed ledger 305, the ledger server 300A executes a consensus algorithm with other ledger servers. As a result, a block including the peer information to which the signature is attached is stored in the distributed ledger 305. The peer information stored in the distributed ledger 305 is then managed in a state in which it is substantially difficult to tamper with and can be safely referenced.
[0126] The peer 100A determines whether its own device, that is, the peer information of the peer 100A, has been updated, and if so, generates write request data similar to that described above and transmits it to the proxy server 200 (steps S104 to S107).
[0127] As described above, the proxy server 200 generates a transaction including the peer information and the signature included in the received write request data, and transmits the transaction to the ledger server 300A, etc. (steps S203, S204).
[0128] The ledger server 300A stores the received transaction in the distributed ledger 305, as described above.
[0129] Thereafter, the peer 100A repeatedly executes the processes from step S104 onwards every time it determines that the peer information has been updated.
[0130] (1.6 Peer connection sequence) Fig. 11 is a sequence diagram showing the process executed by the system 1 when connecting to a new peer in this embodiment. Specifically, Fig. 11 shows the process executed by the peer 100A, the peer 100B, the proxy server 200, the ledger server 300A, etc.
[0131] The peer 100B transmits peer information acquisition request data to the proxy server 200 (step S121).
[0132] The proxy server 200 receives the acquisition request data and transmits read request data for the peer information to the ledger server 300A, etc. The destination of the read request data may be any of the ledger servers 300A, etc., and the following description will be given taking as an example a case where the read request data is transmitted to the ledger server 300A.
[0133] The ledger server 300A receives the read request data, refers to the transaction data stored in the distributed ledger 305, reads the peer information included in the transaction data, and transmits the read peer information to the proxy server 200 (steps S312, S313). After obtaining the peer information, the proxy server 200 transmits the obtained peer information to the peer 100B.
[0134] The peer 100B receives the peer information transmitted by the proxy server 200, and determines a peer to connect to based on the peers indicated in the received peer information. Here, an example is described in which the peer 100B determines the peer 100A as the connection destination. The peer 100B then establishes a P2P connection with the peer 100A (steps S122 to S124).
[0135] Thereafter, the peer 100B executes a predetermined program and performs the functions provided by the P2P system 10 together with the peer 100A (step S125).
[0136] In the above description, the peer 100B executes the process of determining a peer to connect to, but the ledger server 300A may execute the process. In this case, the ledger server 300A may execute the process by a smart contract. This has the advantage that the ledger server 300A reads peer information from the distributed ledger 305 and determines a peer to connect to based on the read peer information, without the involvement of any other person or device.
[0137] Moreover, this process may be performed by the proxy server 200. In this way, since the peer 100B does not need to execute this process, there is an advantage that the processing load on the peer 100B can be reduced and power consumption can be reduced.
[0138] (1.7 Advantages of the First Embodiment) In this embodiment, the peer 100A etc. can determine a peer to which to connect in P2P based on the peer information stored in the distributed ledger 305. The peer information is difficult to tamper with because it is stored in the distributed ledger 305. Therefore, according to the system 1 of this embodiment, it is possible to safely manage and provide the peer information required for P2P connection by preventing attacks through unauthorized manipulation of the peer information.
[0139] (Embodiment 2) In this embodiment, a system for appropriately managing peer information will be described, which is different from system 1 in embodiment 1. System 1A in this embodiment includes a P2P system and a P2P management system like system 1 in embodiment 1, but differs in that it does not include a proxy server.
[0140] That is, in the system 1A of this embodiment, the P2P management system is directly connected to the P2P system (in other words, not via a proxy server).
[0141] (2.1 Overall system configuration) FIG. 12 is a schematic diagram showing the overall configuration of a system 1A in this embodiment.
[0142] 12, the system 1A includes a P2P system 10A and a P2P management system 30. The P2P system 10A includes peers 100E, 100F, and 100G. Note that the number of peers constituting the P2P system 10A is not limited to three, and may be any number greater than or equal to one.
[0143] The peer 100E is one of the P2P peers constituting the P2P system 10A, similar to the peer 100A in the first embodiment. The peer 100E further has a function of registering peer information in a distributed ledger held by the P2P management system 30, and also has a function of reading peer information from the distributed ledger. In other words, the peer 100E has a function of writing peer information to the distributed ledger or reading peer information from the distributed ledger directly without going through a proxy server.
[0144] The P2P management system 30 is similar to the P2P management system 30 in the first embodiment.
[0145] (2.2 Configuration of Peer 100E) 13 is a block diagram showing the functions of the peer 100E in this embodiment. The peers 100F and 100G also have the same configuration as the peer 100E.
[0146] 13, peer 100E includes write request unit 101A, obtain request unit 102A, determination unit 103, communication unit 104, and execution unit 105. Each functional unit included in peer 100E can be realized by a processor (e.g., a CPU) included in peer 100E executing a predetermined program using a memory.
[0147] The write request unit 101A is a functional unit that requests that the peer information of the own device, that is, the peer 100E, be written to the distributed ledger 305. The write request unit 101A creates peer information that is information for P2P connection between the own device, that is, the peer 100E, and other peers included in the P2P system 10A. The write request unit 101A generates transaction data by attaching a signature to the created peer information, and transmits the transaction data to the ledger server 300A, etc. The transmitted transaction data is stored in the distributed ledger 305 of the ledger server 300A, etc.
[0148] The acquisition request unit 102A is a functional unit that makes a request to acquire peer information from the distributed ledger 305. The acquisition request unit 102A generates and transmits to the ledger server 300A acquisition request data for acquiring the peer information recorded in the distributed ledger 305. Then, the acquisition request unit 102A acquires the peer information transmitted by the ledger server 300A in response to the acquisition request data.
[0149] The determination unit 103, communication unit 104, and execution unit 105 are the same as those in the first embodiment.
[0150] (2.3 Effects of the Second Embodiment) With this configuration, the peers 100E etc. can write peer information to the distributed ledger directly, or read peer information from the distributed ledger, without going through a proxy server. Since there is no need for other devices to be between the peers 100E etc. and the ledger server, the ledger server can effectively manage the P2P system with a configuration that eliminates single points of failure (in other words, a configuration without a single point of failure). Therefore, the server can appropriately manage peer information with a configuration that has relatively high availability.
[0151] (Embodiment 3) In this embodiment, a system for appropriately managing peer information will be described that is different from the system 1 or 1A in the embodiment 1 or 2. The system 1B in this embodiment includes the P2P system and the P2P management system in the system 1A in the embodiment 2. The P2P system also functions as a P2P management system that manages peer information used in the P2P management system as another P2P system.
[0152] (3.1 Overall system configuration) FIG. 14 is a schematic diagram showing the overall configuration of a system 1B in this embodiment.
[0153] 14, system 1B includes systems 40A and 40B. System 40A is P2P system A and also P2P management system B that manages peer information used in P2P system D (i.e., system 40B). System 40B is P2P system D and also P2P management system C that manages peer information used in P2P system A (i.e., system 40A).
[0154] In other words, system 40A and system 40B are each a P2P system, and at the same time, are also P2P management systems that manage each other's P2P management information.
[0155] System 40A includes peers 400A, 400B, and 400C. The number of peers constituting system 40A is not limited to three and may be one or more. System 40B includes peers 400E, 400F, and 400G. The number of peers constituting system 40B is not limited to three and may be one or more.
[0156] The peer 400A is one of the P2P peers constituting the system 40A, which is a P2P system, similar to the peer 100E in the embodiment 2. The peer 400A further has a function of registering peer information in a distributed ledger held by the system 40B, and also has a function of reading peer information from the distributed ledger.
[0157] The peers 400B and 400C each have the same functions as the peer 400A, but operate independently of the peer 400A.
[0158] The peer 400E is one of the P2P peers constituting the system 40B, which is a P2P system, like the peer 100E in the second embodiment. The peer 400E further has a function of registering peer information in the distributed ledger held by the system 40A, and also has a function of reading peer information from the distributed ledger.
[0159] The peers 400F and 400G each have the same functions as the peer 400E, but operate independently of the peer 400E.
[0160] (3.2 Configuration of Pier 400A) 15 is a block diagram showing the functions of the peer 400A in this embodiment. Note that the peers 400B and 400C, as well as the peers 400E, 400F and 400G, have the same configuration as the peer 400A.
[0161] 15, the peer 400A includes a write request unit 101A, an acquisition request unit 102A, a determination unit 103, a communication unit 104, an execution unit 105, a ledger control unit 107, and a storage unit 108. Each functional unit included in the peer 400A can be realized by a processor (e.g., a CPU) included in the peer 400A executing a predetermined program using a memory.
[0162] The write request unit 101A, the acquisition request unit 102A, the determination unit 103, the communication unit 104, and the execution unit 105 are the same as those in the peer 100E in the second embodiment.
[0163] Moreover, the ledger control unit 107 and the storage unit 108 are respectively the same as the ledger control unit 301 and the storage unit 303 included in the ledger server 300A in the embodiment 1. The storage unit 108 stores a distributed ledger 109 similar to the distributed ledger 305 in the embodiment 1.
[0164] By having the above-mentioned functional units, the peer 400A functions as one of the peers constituting the P2P system A, and also functions as one of the peers constituting the P2P management system B. The same applies to the peers 400B and 400C.
[0165] Furthermore, the peers 400E, 400F, and 400G have a configuration similar to that of the peer 400A, and therefore function as one of the peers constituting the P2P system D and as one of the peers constituting the P2P management system C.
[0166] As a result, system 40A and system 40B each function as a P2P system, and also function as a P2P management system that manages each other's P2P management information.
[0167] (3.3 Advantages of the Third Embodiment) With this configuration, system 40A including peers 400A etc. and system 40B including peers 400E etc. can function as separate P2P systems while appropriately managing peer information between them and supporting the reliability of the peer information.
[0168] (supplement) The blockchain in each of the above embodiments will now be described in a supplementary manner.
[0169] FIG. 16 is an explanatory diagram showing the data structure of a blockchain.
[0170] A blockchain is a set of blocks, which are units of recording, connected in a chain. Each block contains multiple transaction data and the hash value of the immediately preceding block. Specifically, block B2 contains the hash value of the previous block B1. A hash value calculated from the multiple transaction data contained in block B2 and the hash value of block B1 is included in block B3 as the hash value of block B2. In this way, by connecting blocks in a chain while including the contents of the previous block as a hash value, tampering with the recorded transaction data is effectively prevented.
[0171] If past transaction data is changed, the hash value of the block will be different from the value before the change, and in order to make the altered block appear correct, all blocks after it would have to be recreated, which is practically very difficult. This property is used to ensure that the blockchain is tamper-resistant.
[0172] FIG. 17 is an explanatory diagram showing the data structure of the transaction data.
[0173] 17 includes a transaction body P1 and a digital signature P2. The transaction body P1 is the main data included in the transaction data. The digital signature P2 is generated by signing the hash value of the transaction body P1 with the signature key of the creator of the transaction data, more specifically, by encrypting it with the private key of the creator.
[0174] The transaction data has the digital signature P2, making it virtually impossible to tamper with. This prevents tampering with the transaction body.
[0175] (Other variations) Although the present invention has been described based on the above-mentioned embodiments, it is needless to say that the present invention is not limited to the above-mentioned embodiments. The following cases are also included in the present invention.
[0176] (1) In the above-mentioned first embodiment, the peers 100A, etc. and the proxy server 200 are described as separate devices, but the peers 100A, etc. and the proxy server 200 may be the same device. An example of the above-mentioned configuration in which the peers 100A, etc. and the proxy server 200 are the same device is the configuration of the second embodiment.
[0177] (2) In the above embodiment 1, the peers 100A etc. and the ledger server 300A etc. are described separately, but the peer 100A itself may be the ledger server 300A. Also, a distributed ledger different from the distributed ledger used by the ledger server 300A may be used. Also, the systems may mutually store each other's peer information. An example of a configuration in which the systems mutually store each other's peer information is the configuration of embodiment 3.
[0178] (3) In the above first embodiment, the proxy server 200 is described as a single proxy server 200, but it may be made up of a plurality of devices.
[0179] (4) In the above embodiment 1, the ledger server's peer information read process is a simple read process from a storage device, but any read process may be executed using a smart contract or the like. For example, the determination unit 103 included in the peer 100A may be included in the ledger server 300A, and in that case, the acquired peer information may be used directly to determine the connection destination peer of the P2P peer. In this case, the determination unit 103 is also stored in the distributed ledger, which has the advantage of enabling more secure P2P peer information reference.
[0180] (5) The range of other peer information to be acquired when connecting peers may be the information of all peers participating in the P2P system, or may be an arbitrary range. When acquiring an arbitrary range, a condition may be set, such as acquiring information in order of the time that the peers have been connected to the P2P system. In addition, when reconnecting, for example, to acquire the latest information of known peers, the peers from which the peer information is to be acquired may be specified.
[0181] (6) Each device in the above embodiments is specifically a computer system composed of a microprocessor, a ROM, a RAM, a hard disk unit, a display unit, a keyboard, a mouse, etc. A computer program is recorded in the RAM or the hard disk unit. Each device achieves its function by the microprocessor operating in accordance with the computer program. Here, the computer program is composed of a combination of multiple instruction codes that indicate commands for a computer to achieve a specified function.
[0182] (7) In each of the above embodiments, some or all of the constituent elements may be configured from a single system LSI (Large Scale Integration). The system LSI is a super multi-function LSI manufactured by integrating multiple components on a single chip, and specifically, is a computer system including a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The system LSI achieves its functions by the microprocessor operating in accordance with the computer program.
[0183] Furthermore, each of the components constituting each of the above devices may be individually implemented as a single chip, or some or all of them may be included in a single chip.
[0184] In addition, although we refer to it as a system LSI here, it may also be called an IC, LSI, super LSI, or ultra LSI depending on the degree of integration. Also, the method of integration is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. It is also possible to use an FPGA (Field Programmable Gate Array) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of the circuit cells inside the LSI.
[0185] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it is possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.
[0186] (8) Some or all of the components constituting each of the above devices may be composed of an IC card or a standalone module that is detachable from each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may include the above-mentioned ultra-multifunction LSI. The microprocessor operates according to a computer program, causing the IC card or the module to achieve its functions. The IC card or the module may be tamper-resistant.
[0187] (9) The present invention may be the methods described above. It may also be a computer program for implementing these methods by a computer, or a digital signal comprising the computer program.
[0188] The present invention may also be the computer program or the digital signal recorded on a computer-readable recording medium, such as a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), a semiconductor memory, etc. Also, the present invention may be the digital signal recorded on such a recording medium.
[0189] Furthermore, the present invention may be such that the computer program or the digital signal is transmitted via an electric communication line, a wireless or wired communication line, a network such as the Internet, data broadcasting, or the like.
[0190] The present invention may also be a computer system having a microprocessor and a memory, the memory storing the above-mentioned computer program, and the microprocessor operating in accordance with the computer program.
[0191] In addition, the program or the digital signal may be implemented by another independent computer system by recording it on the recording medium and transferring it, or by transferring the program or the digital signal via the network, etc.
[0192] (10) The above-described embodiments and modifications may be combined with each other.
[0193] (11) If a connected peer is unable to communicate, the fact that communication is impossible may be written to the distributed ledger. In this case, writing to the distributed ledger may be done only if a certain number of peers or more determine that communication is impossible.
[0194] In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or processor reading and executing a software program recorded on a recording medium such as a hard disk or semiconductor memory. Here, the software for realizing the server etc. of each of the above embodiments is a program such as the following.
[0195] In other words, this program is a control method executed by one of multiple servers in a P2P management system having a computer and each server holding a distributed ledger, the program causing a computer to execute the control method to receive transaction data including peer information used to connect a first peer to other peers among multiple peers constituting the P2P system and a signature assigned to the peer information by the first peer, verify the received transaction data using the signature included in the received transaction data, and, if the verification is successful, store the transaction data in the distributed ledger.
[0196] In addition, this program causes a computer to execute a control method for a proxy server interposed between a P2P management system having a plurality of servers that hold a distributed ledger and the P2P system, the control method receiving peer information used to connect a first peer to other peers among a plurality of peers that make up the P2P system and a signature assigned to the peer information by the first peer, generating transaction data including the received peer information and the signature, and transmitting the transaction data to a plurality of servers that make up the P2P management system.
[0197] Although the control method according to one or more aspects has been described based on the embodiment, the present invention is not limited to this embodiment. As long as it does not deviate from the spirit of the present invention, various modifications conceived by a person skilled in the art to this embodiment and forms constructed by combining components in different embodiments may also be included within the scope of one or more aspects. [Industrial Applicability]
[0198] The system for managing and sharing peer information (P2P connection information) of a P2P system according to the present invention has a mechanism for safely managing and sharing peer information of a P2P system, and is useful as a peer management system for any P2P system. [Explanation of symbols]
[0199] 1, 1A, 1B, 40A, 40B Systems 10. 10A P2P system 30 P2P Management System 50 Transaction Data 51 Peer Information 52 Signatures 100A, 100B, 100C, 100E, 100F, 100G, 400A, 400B, 400C, 400E, 400F, 400G peers 101, 101A Write request section 102, 102A Acquisition request section 103 Decision Section 104, 203, 302 Communications Department 105 Executive Department 108, 303 Storage section 109, 305 Distributed Ledgers 200 Proxy Server 201 Request Agent Department 202 Ledger Processing Unit 300A, 300B, 300C Ledger Server 301, 107 Ledger control unit B1, B2, B3 Blocks N Network P1 Transaction Body P2 electronic signature
Claims
1. A control method executed by one of a plurality of servers in a P2P management system having a distributed ledger, the method comprising: receiving transaction data including peer information used to connect a first peer to another peer among a plurality of peers constituting a P2P system and a signature added to the peer information by the first peer; verifying the received transaction data using the signature included in the received transaction data; If the verification is successful, storing the transaction data in the distributed ledger. Control methods.
2. The received transaction data is transaction data that was generated when the peer information held by the first peer was updated, and includes the updated peer information. The control method according to claim 1 .
3. Furthermore, when a read request for the peer information is received, the peer information is read from the transaction data stored in the distributed ledger, and the read peer information is transmitted to a requester of the read request. The control method according to claim 1 or 2.
4. When transmitting the read peer information, Transmitting one or more pieces of peer information, among the peer information read by referring to the distributed ledger, in which parameters included in the peer information are within a predetermined range indicating that the peer is suitable for connection. The control method according to claim 3.
5. When transmitting the read peer information, Based on the peer information read by referring to the distributed ledger, a peer suitable for connection is determined, and the peer information of the determined peer is transmitted.
5. The control method according to claim 3 or 4.
6. When storing the transaction data in the distributed ledger, The transaction data is shared among the multiple servers, and when the validity of the transaction data is agreed upon by executing a predetermined consensus algorithm, the transaction data is stored in the distributed ledger. The control method according to any one of claims 1 to 5.
7. The peer information includes at least one of identification information of the first peer, an Internet Protocol (IP) address of the first peer, a port number used by the first peer to communicate with the other peers, identification information of a peer to which the first peer is currently connected, a duration of the first peer's participation in the P2P system, a duration of the connection between the first peer and a peer to which the first peer is currently connected, a public key of the first peer, and a maximum allowable number of connections of the first peer. The control method according to any one of claims 1 to 6.
8. the P2P management system is connected to the P2P system via a proxy server; The first peer sends the peer information and the signature to the proxy server; the proxy server generates proxy transaction data, which is transaction data including the peer information and the signature transmitted by the first peer, and transmits the proxy transaction data to the one server; When receiving the transaction data, The proxy server receives the proxy transaction data as the transaction data. The control method according to any one of claims 1 to 7.
9. The P2P management system is connected to the P2P system. The control method according to any one of claims 1 to 7.
10. A method for controlling a proxy server interposed between a P2P management system having a plurality of servers each holding a distributed ledger and the P2P system, comprising: receiving peer information used for connecting a first peer to other peers among a plurality of peers constituting the P2P system, and a signature added to the peer information by the first peer; Generate transaction data including the received peer information and the signature, and transmit the generated transaction data to a plurality of servers constituting the P2P management system. Control methods.
11. In a P2P management system having a plurality of servers each holding a distributed ledger, one of the plurality of servers, A ledger control unit and a storage unit that stores the distributed ledger, The ledger control unit includes: receiving transaction data including peer information used to connect a first peer to another peer among a plurality of peers constituting a P2P system and a signature added to the peer information by the first peer; verifying the received transaction data using the signature included in the received transaction data; If the verification is successful, storing the transaction data in the distributed ledger. server.
12. A program for causing a computer to execute the control method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Connection Mechanism for Energy-Efficient Peer-to-Peer Networks
US20150334181A1
Distributed privately subspaced blockchain data structures with secure access restriction management
US20180349621A1
System and method for managing trust using distributed ledgers in a connected vehicle network
US20190259274A1
Core network access provider
WO2018162687A1
Computer-implemented system and method
WO2018163031A1
