CN107819829B - Method and system for accessing block chain, block chain node point equipment and user terminal - Google Patents

Method and system for accessing block chain, block chain node point equipment and user terminal Download PDF

Info

Publication number
CN107819829B
CN107819829B CN201710964911.XA CN201710964911A CN107819829B CN 107819829 B CN107819829 B CN 107819829B CN 201710964911 A CN201710964911 A CN 201710964911A CN 107819829 B CN107819829 B CN 107819829B
Authority
CN
China
Prior art keywords
blockchain
node device
user terminal
list
blockchain node
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.)
Expired - Fee Related
Application number
CN201710964911.XA
Other languages
Chinese (zh)
Other versions
CN107819829A (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.)
Shanghai Dianrong Information Technology Co ltd
Original Assignee
Shanghai Dianrong Information Technology 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 Shanghai Dianrong Information Technology Co ltd filed Critical Shanghai Dianrong Information Technology Co ltd
Priority to CN201710964911.XA priority Critical patent/CN107819829B/en
Publication of CN107819829A publication Critical patent/CN107819829A/en
Application granted granted Critical
Publication of CN107819829B publication Critical patent/CN107819829B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Abstract

The disclosure relates to a method, a system, a block link point device and a user terminal for accessing a block chain. The method includes receiving a request from a user terminal for access to a blockchain. The method also includes determining, by an intelligent contract running on the blockchain link node device, a node list including one or more preferred blockchain node device identifications, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in the blockchain. Further, the method includes sending the node list to the user terminal. The embodiment of the disclosure collects and shares the network quality data of the blockchain node devices through the intelligent contract, so that the user terminal can dynamically select the preferred blockchain node device with high network quality, thereby improving the network access quality of the blockchain.

Description

Method and system for accessing block chain, block chain node point equipment and user terminal
Technical Field
Embodiments of the present disclosure relate generally to the field of information technology, and more particularly, to a method, a system, a block link point device, and a user terminal for accessing a block chain.
Copyright declaration
The disclosure of this patent document contains material which is subject to copyright protection. The copyright is owned by the copyright owner. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the patent and trademark office official records and records.
Background
Blockchains are a decentralized storage and computation technique that generates persistent, non-modifiable records by overlaying encrypted data blocks in chronological order, and stores the records in individual blockchain link point devices of the blockchain, so that distributed data storage is performed in a decentralized manner. Each data block contains system data over a period of time and a data fingerprint is generated for verifying the validity of its information and linking the next data block. Thus, blockchain has technical advantages in terms of data tamper resistance, transparency, and decentralization, and blockchain technology has been applied to many industries and fields.
An intelligent contract refers to a set of commitments defined in digital form, including protocols on which contract participants can execute such commitments, and may be a computer program that performs a specific function in a blockchain node device. The smart contracts may record transactions and share transaction data such that data stored at any node in the blockchain will be shared to all nodes in the blockchain so that other nodes can obtain the data content. In this way, data sharing and transparency in the blockchain can be effectively ensured. In addition, since the data stored in the blockchain cannot be tampered, the blockchain can also be guaranteed in terms of data tamper resistance. Since the blockchain belongs to the peer-to-peer network, when data in the blockchain needs to be obtained, a user can access any node in the blockchain to obtain transaction data.
Disclosure of Invention
Embodiments of the present disclosure propose a method, device, and system for accessing a block chain. According to the embodiment of the disclosure, the network quality data of the block link point device is collected and shared through the intelligent contract, so that the user terminal can dynamically select the block link point device with high network quality to be accessed, and the network service quality of the block chain is improved.
According to a first aspect of the present disclosure, a method for accessing a blockchain is provided. The method comprises the following steps: receiving a request for access to a blockchain from a user terminal; determining, by an intelligent contract running on a blockchain link node device, a node list comprising one or more preferred blockchain node device identifications, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in a blockchain; and transmitting the node list to the user terminal.
According to a second aspect of the present disclosure, there is provided a method for blockchain node device. The block link point device includes a processor and a memory coupled to the processor and storing instructions. The instructions, when executed by a processor, cause a block link point device to perform the following acts: receiving a request for access to a blockchain from a user terminal; determining, by an intelligent contract running on a blockchain link node device, a node list comprising one or more preferred blockchain node device identifications, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in a blockchain; and transmitting the node list to the user terminal.
According to a third aspect of the present disclosure, there is provided a method for accessing a blockchain, the method comprising: sending, at a user terminal, a request to a block-link point device for access to a block chain; receiving from a blockchain node device a node list comprising one or more preferred blockchain node device identifications, an intelligent contract running on the blockchain node device capable of synchronizing network quality data of the blockchain node device in the blockchain; the preferred blockchain node device is accessed based on the list of nodes to obtain blockchain traffic data.
According to a fourth aspect of the present disclosure, a user terminal is provided. The user terminal device includes: a processor and a memory coupled to the processor and storing instructions. The instructions, when executed by the processor, cause the user terminal to perform the following acts: sending, at a user terminal, a request to a block-link point device for access to a block chain; receiving from a blockchain node device a node list comprising one or more preferred blockchain node device identifications, an intelligent contract running on the blockchain node device capable of synchronizing network quality data of the blockchain node device in the blockchain; the preferred blockchain node device is accessed based on the list of nodes to obtain blockchain traffic data.
According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided. The computer readable storage medium has computer readable program instructions stored thereon. These computer-executable instructions, when executed in a device, cause the device to perform methods or processes described in accordance with embodiments of the present disclosure.
According to a sixth aspect of the present disclosure, a system for accessing a blockchain is provided. The system includes a user terminal described according to embodiments of the present disclosure and a block-link point device described by embodiments of the present disclosure.
Drawings
The features, advantages and other aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description in conjunction with the accompanying drawings, in which several embodiments of the present disclosure are shown by way of illustration and not limitation, wherein:
FIG. 1 illustrates a schematic diagram of an architecture of a computer system, according to an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of a process for accessing a blockchain in accordance with an embodiment of the present disclosure;
FIG. 3 illustrates a flow diagram of a method for accessing a blockchain in accordance with an embodiment of the present disclosure;
FIG. 4 illustrates a flow diagram of another method for accessing a blockchain in accordance with an embodiment of the present disclosure;
figure 5 illustrates a flow chart of a method for determining a blockchain node device to be accessed; and
FIG. 6 illustrates a schematic block diagram of a device that may be used to implement embodiments of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems according to various embodiments of the present disclosure. It should be noted that each block in the flowchart or block diagrams may represent a module, a segment, or a portion of code, which may comprise one or more executable instructions for implementing the logical function specified in the respective embodiment. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As used herein, the terms "include," "include," and similar terms are to be construed as open-ended terms, i.e., "including/including but not limited to," meaning that additional content can be included as well. In the present disclosure, the term "based on" is "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment".
It should be understood that these exemplary embodiments are given solely for the purpose of enabling those skilled in the art to better understand and thereby implement the embodiments of the present disclosure, and are not intended to limit the scope of the invention in any way.
Conventionally, when data in a blockchain needs to be obtained, a user can access any blockchain node device in the blockchain to obtain service data. However, due to the inconsistent network quality of each block-link point device in the block chain, it may result in slow access to some block chain node devices (e.g., some block-link point devices are very slow due to excessive access) or even no access at all (e.g., some block-link point devices are down due to hardware failure). Furthermore, users can only obtain a limited number of accessible blockchain node devices (e.g., nodes in a public chain), and the network topology of the blockchain itself is also changing dynamically. Therefore, a user generally selects a blockchain node device to access randomly or in a polling manner, and a higher-quality blockchain access service cannot be obtained. Therefore, the prior art lacks reliable data as a reference for how to select a blockchain link point device to be accessed from a blockchain, so that a user cannot acquire a blockchain access service with high network quality.
Embodiments of the present disclosure propose a method, device, and system for accessing a block chain. Embodiments of the present disclosure enable a user terminal to dynamically select access to high quality blockchain node devices by collecting and sharing network quality data of blockchain link node devices via smart contracts and maintaining a node list including preferred and/or non-preferred blockchain node devices via smart contracts. Therefore, according to the embodiment of the disclosure, a user can dynamically select a high-quality blockchain node device in real time, so that the network service quality of a blockchain can be improved, and the user experience is improved.
It should be understood that the embodiments of the present disclosure may be applied to various application scenarios related to the blockchain, such as a supply chain financial scenario, a bank payment scenario, an academic exchange scenario, an internet of things scenario, an online music sharing scenario, a shared bicycle scenario, a stock trading scenario, a real estate trading scenario, and the like, and the application scenarios of the blockchain are not limited by the embodiments of the present disclosure. Some example implementations of embodiments of the present disclosure are described below with reference to fig. 1-6.
Fig. 1 illustrates a schematic diagram of an architecture of a computer system 100, according to an embodiment of the present disclosure. As shown in fig. 1, computer system 100 includes user terminal 110 and blockchain 120, where user terminal 110 can read data from blockchain 120 or store data to blockchain 120 as needed. As shown in fig. 1, the blockchain 120 is composed of a plurality of blockchain node devices (also referred to as "blockchain nodes"), such as blockchain node devices 130, 140, 150, 160, 170, 180, and 190, on which intelligent contracts are respectively run, and the intelligent contracts can be used for recording services and sharing service data. For example, the text of an electronic contract may be stored in one blockchain node device in the blockchain, and then the text of the electronic contract will be synchronized to every other blockchain node device in the blockchain. Due to the decentralization and transparency of the blockchain, the original and authentic text of the electronic contract can be obtained from the blockchain when needed.
User terminal 110 may communicate with one or more nodes in blockchain 120, and blockchain link point devices 130, 140, 150, 160, 170, 180, and 190 in blockchain 120 may also communicate with each other. Communications between the various devices in computer system 100 may be based on any wired and/or wireless network, including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a Virtual Private Network (VPN), a wireless communication network, and so forth.
Each of user terminal 110, zone chain node devices 130, 140, 150, 160, 170, 180, and 190 may be an electronic device, such as a stationary device (such as a server or desktop computer), a mobile device (such as a smartphone, tablet, laptop, etc.). Those skilled in the art will appreciate that while some user terminals and block-linked dot devices are shown in the architecture of computer system 100 in fig. 1, computer system 100 may include more or fewer user terminals and block-linked dot devices.
In accordance with embodiments of the present disclosure, the intelligent contracts run on the block- chain node devices 130, 140, 150, 160, 170, 180, and 190 include access quality data of the block-chain node devices, and thus the intelligent contracts are also referred to as "access quality control intelligent contracts". The intelligent contracts enable the collection and synchronization of network quality data for blockchain node devices, enabling a user terminal to dynamically select access to high quality blockchain node devices. The intelligent contract provides an Application Program Interface (API) for a user to query network quality data of each blockchain link point device, and in this way, the network service quality of the blockchain can be improved.
It should be appreciated that due to the peering of the blockchain, the smart contracts on the blockchain link point devices 130, 140, 150, 160, 170, 180, and 190 have essentially the same data and perform the same functions. Therefore, although some actions or operations may be performed by the block link node device as an execution main body in some places, the actions or operations may be performed by the same block link node device, or may be performed by different block link node devices in combination or separately, and the scope of the present application is not limited by the block link node device execution main body.
Fig. 2 illustrates a schematic diagram of a process 200 for accessing a blockchain in accordance with an embodiment of the present disclosure. At 202, user terminal 110 obtains a local list of accessible block-link point devices through a local configuration file or through offline configuration. The local list may be an initially configured or newly updated list of block-link point devices. For example, one blockchain node device (such as blockchain node device 130) may be selected randomly or sequentially from the local list.
At 204, the user terminal 110 sends a request for access to the block chain to the block-link point device 130, e.g. the user terminal 110 sends a query request to the default selected block-link point device 130 for querying an intelligent contract (which includes access quality data for each block-link point device) running on the block-link point device 130. Optionally, at 206, the blockchain node device 130 may determine a node list of accessible blockchain node devices for the user terminal 110 based at least on a geographic location and/or access time of the user terminal 110, where the geographic location and access time may be obtained from the user terminal 110 or may be determined by the blockchain node device 130 according to an Internet Protocol (IP) address of the user terminal 110 and a current local time. For example, assuming that the user terminal is in huangpu district of shanghai city and the access time is 3 points, the smart contract may be queried to select one or more block-linked point devices suitable for access by the user terminal of shanghai city during the 2:00-4:00 pm time period, or an optimal block-linked node device (e.g., block-linked point device 140) for the user terminal 110 may be directly determined, wherein the block-linked point device stores historically collected access quality data for each block-linked point device. At 208, the blockchain node device 130 sends a list of nodes to the user terminal 110, where the list of nodes may include the identity of one or more preferred blockchain node devices and one or more non-preferred blockchain node devices, or may also include only the identity of the optimal blockchain node device. In the case where the node list includes only the identity of the optimal blockchain node device, the blockchain linked point device to be visited may be automatically determined by the blockchain linked point device 130 for the user terminal 110.
Optionally, at 210, user terminal 110 may determine a block-linked-point device to access based on the node list, details of an example embodiment of determining a block-linked-point device to access are further described below with reference to fig. 5; alternatively, the block-link point device to be accessed may also be manually selected by the user from the node list. It should be appreciated that when only the identity of one optimal block-chain node device is included in the node list, the user terminal 110 need not perform the act of determining the block-chain node device to access, but rather accesses the optimal block-chain node device directly. After determining to access the blockchain node device 140 based on the node list, the user terminal 110 accesses the blockchain node device 140 at 212, and the user terminal 110 obtains blockchain traffic data from the blockchain node device 140 at 214.
To enable real-time updating of network quality data of the blockchain node device, at 216, the user terminal 110 may submit to the blockchain node device 140 a set of parameters associated with visiting the blockchain node device 140, wherein the set of parameters includes an IP address of the blockchain node device 140, an access delay or status of visiting the blockchain node device 140, a geographical location of the user terminal, and an access time. Optionally, since the user terminal 110 queries the blockchain node device 130 to obtain the list of nodes (i.e., the user terminal 110 also has access to the blockchain node device 130), the user terminal may also submit the set of network quality parameters associated with accessing the blockchain node device 130 to the blockchain node device 130. In fact, due to the peering of the blockchain network, the user terminal may submit a set of network quality parameters for a blockchain point device to any blockchain point device. At 218, the blockchain node device 140, after obtaining the set of parameters, may update the list of nodes accessible to the blockchain node device based at least on the set of parameters, e.g., may update in real time or may batch update periodically. Next, at 220, network quality data for the updated blockchain link point devices is synchronized in the blockchain 120, e.g., the updated node list may be synchronized. In some embodiments, when user terminal 120 subsequently sends another request to access a blockchain node device to blockchain node device 130 or 140, blockchain node device 130 or 140 may send an updated list of nodes to user terminal 120.
In some embodiments, the block-linked point devices may be scored and ranked based on access latency or status in the set of parameters from the user terminal, e.g., 3 points may be counted if the user terminal normally accesses the block-linked point device, 2 points may be counted for access latency over 30 seconds, 1 point may be counted for access time-out, and 0 points may be counted for access failure or failure to connect. An average score may then be calculated based on the total accumulated number of visits and the score for each time, and the average score may be used as a visit quality indicator score for the block-linked point devices, where the sorted key value may be a combined key value for the visit zone and/or time period. That is, there may be different block link point device network quality ranking lists for different time periods of the same region or different regions of the same time period. Embodiments of the present disclosure determine the block-link point device to be visited according to the area where the user terminal is located and/or the period of time of the visit, and thus may provide a more accurate and more targeted node list.
In the reference example process 200 of fig. 2, the block-link point device 130 is the initially accessible block-chain node device of the user terminal 110, but it is not the block-link point device that is optimal for the network access quality of the user terminal 110. Instead, it is determined that the blockchain node device 140 is a preferred blockchain node device for high network quality of the user terminal 110 based on the geographical location and access time of the user terminal 110. Therefore, the user terminal 110 obtains the block chain service data from the block chain node device 140, thereby improving the efficiency and user experience of the user terminal accessing the block chain node device. Alternatively, unlike the example process of fig. 2, block-linked point device 130 or other block-linked point devices may also be determined to be the block-linked point device for optimal network access quality for user terminal 110.
Fig. 3 illustrates a flow diagram of a method 300 for accessing a blockchain in accordance with an embodiment of the present disclosure. It should be understood that method 300 may be performed, for example, by any one or more of the block-link point devices described above with reference to fig. 1.
At 302, block chain node device 130 receives a request from user terminal 110 for access to a block chain. At 304, a node list comprising one or more preferred blockchain node device identifications is determined by an intelligent contract running on the blockchain link node device 130, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in the blockchain. At 306, block-link node device 130 sends a list of nodes to user terminal 110. Optionally, the node list may include the identity of one or more preferred blockchain node devices and one or more non-preferred blockchain node devices, or may also include only the identity of the optimal blockchain node device.
Fig. 4 illustrates a flow diagram of another method 400 for accessing a blockchain in accordance with an embodiment of the present disclosure. It should be appreciated that method 400 may be performed, for example, by user terminal 110 described above with reference to fig. 1.
At 402, a request for access to a block chain is sent at user terminal 110 to block chain node device 130. At 404, the user terminal 110 receives a node list including one or more preferred blockchain node device identifications from the blockchain node device 130, wherein the intelligent contract running on the blockchain node device 120 is capable of synchronizing network quality data of the blockchain node devices in the blockchain. At 406, the user terminal accesses a preferred blockchain node device (e.g., blockchain node device 120 or 130) based on the list of nodes to obtain blockchain traffic data. Optionally, the node list may include the identity of one or more preferred blockchain node devices and one or more non-preferred blockchain node devices, or may also include only the identity of the optimal blockchain node device.
Fig. 5 illustrates a flow chart of a method 500 for determining a blockchain node device to be accessed. It is to be understood that method 500 may be performed, for example, by user terminal 110 described above with reference to fig. 1, and further that method 500 may be a sub-action of act 210 in the process described above with reference to fig. 2.
At 502, user terminal 110 obtains a node list including identifications of one or more preferred blockchain node devices and one or more non-preferred blockchain node devices, user terminal 110 having a local list of blockchain link node devices it initially has access to. It should be appreciated that the local list may be dynamically updated with newly added accessible blockchain node devices. After receiving the identities of the one or more preferred blockchain node devices and the one or more non-preferred blockchain node devices, it is determined whether the preferred blockchain node devices are included in the local list, 504, and if so, one of the preferred blockchain node devices is selected for access (e.g., randomly selected) to obtain blockchain traffic data, 506.
If the local list does not include any preferred blockchain node devices, then all preferred blockchain node devices in the node list are attempted to be connected one by one and a determination is made at 508 as to whether a successful connection to a preferred blockchain node device, and if so, at 510, the successfully linked preferred blockchain node device is selected for access to obtain blockchain traffic data.
If all preferred blockchain node devices in the node list have failed to connect successfully, then at 512, a determination is made as to whether the local list includes non-preferred blockchain node devices. If so, at 514, all non-preferred blockchain node devices are removed from the local list and one blockchain node device is randomly selected from the remaining blockchain node devices for access. If the local list also does not include any non-preferred blockchain node devices, then at 516 a blockchain node device is randomly selected from the local list for access to obtain blockchain traffic data. It follows that the selected block-linked node device to be visited may or may not be in the received node list.
It should be understood that a device according to embodiments of the present disclosure may be implemented in a variety of ways. For example, in certain embodiments, the device may be implemented in hardware, software, or a combination of software and hardware. Wherein the hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory for execution by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the methods and systems described above may be implemented using computer executable instructions and/or embodied in processor control code, such code being provided, for example, on a magnetic disk, an optical disk carrier medium, a programmable memory such as a read-only memory, or a data carrier such as an optical or electronic signal carrier. The devices and apparatuses of the embodiments of the present disclosure may be implemented not only by hardware circuits such as a very large scale integrated circuit or a gate array, a semiconductor such as a logic chip, a transistor, or the like, or a programmable hardware device such as a field programmable gate array, a programmable logic device, or the like, but also by software executed by various types of processors, for example, and by a combination of the above hardware circuits and software.
FIG. 6 illustrates a schematic block diagram of a device 600 that may be used to implement embodiments of the present disclosure. It should be understood that device 600 may be implemented as a user terminal or any of the block-node point devices described in fig. 1. As shown in fig. 6, device 600 includes a Central Processing Unit (CPU)601 (e.g., a processor) that can perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM)602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various communication networks.
Various methods described above, such as method 300 or 400, may be performed by the processing unit 601. For example, in some embodiments, methods 300 and 400 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When loaded into RAM 603 and executed by CPU 601, the computer programs may perform one or more of the acts or steps of methods 300 and 400 described above.
The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure. The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present disclosure by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
It should be noted that although several modules or sub-modules of the device are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
The above description is only an alternative embodiment of the present disclosure and is not intended to limit the embodiments of the present disclosure, and various modifications and changes may be made to the embodiments of the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present disclosure should be included in the scope of protection of the embodiments of the present disclosure.
While embodiments of the present disclosure have been described with reference to several particular embodiments, it should be understood that embodiments of the present disclosure are not limited to the particular embodiments disclosed. The embodiments of the disclosure are intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims (22)

1. A method for accessing a blockchain, comprising:
receiving a request for access to a blockchain from a user terminal;
determining, by an intelligent contract running on a blockchain link node device, a node list comprising one or more preferred blockchain node device identifications, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in the blockchain;
sending the node list to the user terminal; and
dynamically selecting a preferred blockchain node device based on the local list at the user terminal and the node list, thereby accessing the preferred blockchain node device for blockchain traffic data.
2. The method of claim 1, further comprising:
receiving a request for blockchain traffic data from the user terminal in response to the blockchain node device being determined to be a preferred blockchain node device; and
and sending the block chain service data to the user terminal by the intelligent contract.
3. The method of claim 2, wherein determining a node list comprising one or more preferred blockchain node device identifications from an intelligent contract running on a blockchain node device comprises:
determining the list of nodes based at least in part on a geographic location and/or an access time of the user terminal.
4. The method of claim 3, further comprising:
receiving, from the user terminal, a set of network quality parameters associated with the block-node device;
updating the node list based on the set of network quality parameters to generate an updated node list; and
synchronizing, by the intelligent agent, the list of updated nodes in the blockchain.
5. The method of claim 4, wherein the set of network quality parameters includes an Internet Protocol (IP) address of the blockchain node device, an access latency or status of accessing the blockchain node device, the geographic location, and the access time.
6. The method of claim 4, further comprising:
sending, by the smart contract, the updated node list to another user terminal in response to receiving another request for access to a blockchain from the other user terminal.
7. The method of claim 1, wherein the node list further comprises an identification of one or more non-preferred blockchain node devices, or only an identification of an optimal blockchain node device.
8. A block link point apparatus comprising:
a processor;
a memory coupled to the processor and storing instructions that, when executed by the processor, cause the blockchain node device to perform the acts of:
receiving a request for access to a blockchain from a user terminal;
determining, by an intelligent contract running on the blockchain node device, a node list comprising one or more preferred blockchain node device identifications, wherein the intelligent contract is capable of synchronizing network quality data of blockchain node devices in the blockchain;
sending the node list to the user terminal; and
dynamically selecting a preferred blockchain node device based on the local list at the user terminal and the node list, thereby accessing the preferred blockchain node device for blockchain traffic data.
9. The block link point apparatus of claim 8, the acts further comprising:
receiving a request for blockchain traffic data from the user terminal in response to the blockchain node device being determined to be a preferred blockchain node device; and
and sending the block chain service data to the user terminal by the intelligent contract.
10. The block-link point device of claim 9, wherein determining a node list comprising one or more preferred block-link node device identifications from an intelligent contract running on the block-link point device comprises:
determining the list of nodes based at least in part on a geographic location and/or an access time of the user terminal.
11. The block link point apparatus of claim 10, the acts further comprising:
receiving, from the user terminal, a set of network quality parameters associated with the block-node device;
updating the node list based on the set of network quality parameters to generate an updated node list; and
synchronizing, by the intelligent agent, the list of updated nodes in the blockchain.
12. The blockchain node device of claim 11, wherein the set of network quality parameters includes an Internet Protocol (IP) address of the blockchain node device, an access latency or status of accessing the blockchain node device, the geographic location, and the access time.
13. The block link point apparatus of claim 11, the acts further comprising:
sending, by the smart contract, the updated node list to another user terminal in response to receiving another request for access to a blockchain from the other user terminal.
14. The block-link node device of claim 8, wherein the node list further comprises an identification of one or more non-preferred block-link node devices, or only an identification of an optimal block-link node device.
15. A method for accessing a blockchain, comprising:
sending, at a user terminal, a request to a block-link point device for access to a block chain;
receiving from the blockchain node device a node list comprising one or more preferred blockchain node device identifications on which intelligent contracts running enable synchronization of blockchain node device network quality data in the blockchain;
dynamically selecting a preferred blockchain node device based on the local list at the user terminal and the node list, thereby accessing the preferred blockchain node device for blockchain traffic data.
16. The method of claim 15, wherein the list of nodes is determined based at least on a geographic location and/or a time of access of the user terminal, and the method further comprises:
after obtaining the blockchain traffic data from the preferred blockchain node device, submitting to the preferred blockchain node device a set of network quality parameters associated with accessing the preferred blockchain node device, wherein the set of network quality parameters includes an Internet Protocol (IP) address of the preferred blockchain node device, an access delay or status of accessing the preferred blockchain node device, the geographic location, and the access time.
17. The method of claim 15, wherein the node list further comprises an identification of one or more non-preferred blockchain node devices.
18. A user terminal, comprising:
a processor;
a memory coupled to the processor and storing instructions that, when executed by the processor, cause the user terminal to:
sending, at the user terminal, a request to a block-link point device for access to a block chain;
receiving from the blockchain node device a node list comprising one or more preferred blockchain node device identifications on which intelligent contracts running enable synchronization of blockchain node device network quality data in the blockchain;
dynamically selecting a preferred blockchain node device based on the local list at the user terminal and the node list, thereby accessing the preferred blockchain node device for blockchain traffic data.
19. The user terminal of claim 18, wherein the list of nodes is determined based at least on a geographic location and/or a time of access of the user terminal, and the actions further comprise:
after obtaining the blockchain traffic data from the preferred blockchain node device, submitting to the preferred blockchain node device a set of network quality parameters associated with accessing the preferred blockchain node device, wherein the set of network quality parameters includes an Internet Protocol (IP) address of the preferred blockchain node device, an access delay or status of accessing the preferred blockchain node device, the geographic location, and the access time.
20. The user terminal of claim 18, wherein the node list further comprises an identification of one or more non-preferred blockchain node devices.
21. A computer-readable storage medium having computer-executable instructions stored thereon that, when run in a device, cause the device to perform the method of any of claims 1-7 or 15-17.
22. A system for accessing a block chain, comprising at least a block chain node device according to any of claims 8-14 and a user terminal according to any of claims 18-20.
CN201710964911.XA 2017-10-17 2017-10-17 Method and system for accessing block chain, block chain node point equipment and user terminal Expired - Fee Related CN107819829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710964911.XA CN107819829B (en) 2017-10-17 2017-10-17 Method and system for accessing block chain, block chain node point equipment and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710964911.XA CN107819829B (en) 2017-10-17 2017-10-17 Method and system for accessing block chain, block chain node point equipment and user terminal

Publications (2)

Publication Number Publication Date
CN107819829A CN107819829A (en) 2018-03-20
CN107819829B true CN107819829B (en) 2020-07-07

Family

ID=61607336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710964911.XA Expired - Fee Related CN107819829B (en) 2017-10-17 2017-10-17 Method and system for accessing block chain, block chain node point equipment and user terminal

Country Status (1)

Country Link
CN (1) CN107819829B (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102310803B1 (en) * 2018-04-16 2021-10-13 비씨 디벨롭먼트 랩스 게엠베하 Trustless Stateless Incentivized Remote Node Network with Minimum Validation Client
CN108615189A (en) * 2018-04-24 2018-10-02 北京罗格数据科技有限公司 A method of based on the processing of block chain data collaborative
CN108615180A (en) * 2018-04-25 2018-10-02 众安信息技术服务有限公司 Information processing method, device and readable storage medium storing program for executing for vehicle transaction
CN110417567B (en) * 2018-04-27 2021-12-14 华为技术有限公司 Configuration method and device of Internet of things equipment
CN108848156B (en) * 2018-06-08 2021-06-29 中国联合网络通信集团有限公司 Access gateway processing method, device and storage medium
CN108961643A (en) * 2018-06-12 2018-12-07 深圳市中电数通智慧安全科技股份有限公司 A kind of parameter management method based on block chain, device and terminal device
CN108810157A (en) * 2018-06-20 2018-11-13 泰链(厦门)科技有限公司 The connection method of block chain network, medium, apparatus and system
CN108848184B (en) 2018-06-29 2020-08-28 北京金山安全软件有限公司 Block link point synchronization method and device based on trust mechanism
CN108833610B (en) * 2018-07-19 2021-08-31 网宿科技股份有限公司 Information updating method, device and system
CN109067863B (en) * 2018-07-25 2021-03-05 上海点融信息科技有限责任公司 Method, apparatus and storage medium for managing node identification of blockchain node
CN109325370A (en) * 2018-08-09 2019-02-12 上海常仁信息科技有限公司 A kind of block chain access robot node device
US11038950B2 (en) * 2018-08-14 2021-06-15 Microsoft Technology Licensing, Llc Blockchain digital twin for transactions on behalf of limited capability devices
CN109243548A (en) * 2018-08-22 2019-01-18 广东工业大学 A kind of medical data platform based on block chain technology
WO2020042926A1 (en) * 2018-08-28 2020-03-05 白杰 Blockchain public chain maintenance method, device, node and blockchain public chain
CN109493211A (en) * 2018-09-27 2019-03-19 深圳壹账通智能科技有限公司 Credit date storage method, device, equipment and storage medium based on block chain
CN109492053B (en) * 2018-11-08 2023-07-18 北京百度网讯科技有限公司 Method and device for accessing data
TWI683590B (en) * 2018-11-28 2020-01-21 財團法人資訊工業策進會 Control method and control system for internet of things device
CN111356102B (en) * 2018-12-21 2022-07-19 西安佰才邦网络技术有限公司 Method and equipment for purchasing service based on block chain
CN111355754B (en) * 2018-12-21 2023-06-27 西安佰才邦网络技术有限公司 Block chain-based business purchasing method and equipment
CN110046036A (en) * 2018-12-25 2019-07-23 阿里巴巴集团控股有限公司 A kind of operation requests distribution method, device and equipment
CN110011972B (en) * 2019-03-05 2023-03-31 未鲲(上海)科技服务有限公司 Block chain-based dynamic password request and response method and device
CN110798509B (en) * 2019-07-15 2021-09-17 腾讯科技(深圳)有限公司 Block data synchronization method, device, medium and electronic equipment
CN111683134A (en) * 2020-06-04 2020-09-18 勇鸿(重庆)信息科技有限公司 Distributed Internet of vehicles data transmission system and method based on block chain technology
CN112055077B (en) * 2020-09-02 2023-04-18 杭州复杂美科技有限公司 Block link access method, device and storage medium
CN112688996A (en) * 2020-12-16 2021-04-20 宁波云麟信息科技有限公司 Electronic certificate storage data storage method based on block chain and electronic equipment
CN112565448A (en) * 2020-12-16 2021-03-26 宁波云麟信息科技有限公司 Block chain-based electronic evidence storage node selection method and electronic equipment
CN112291117B (en) * 2020-12-24 2021-04-20 江苏荣泽信息科技股份有限公司 Block chain network construction system based on customized OS
CN113596134B (en) * 2021-07-23 2022-09-02 中国联合网络通信集团有限公司 Block chain-based network quality evaluation method, node and block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106251216A (en) * 2016-07-18 2016-12-21 恒宝股份有限公司 A kind of method and system for alleviating node storage pressure
CN106411774A (en) * 2016-09-06 2017-02-15 联动优势科技有限公司 Method and device for controlling transaction data volume
CN106598490A (en) * 2016-11-25 2017-04-26 深圳前海微众银行股份有限公司 Access method for block chain data and block chain management system
CN107079059A (en) * 2016-12-21 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain storage method and device and node equipment
CN107105041A (en) * 2017-04-27 2017-08-29 电子科技大学 One medical big data management system and framework based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106251216A (en) * 2016-07-18 2016-12-21 恒宝股份有限公司 A kind of method and system for alleviating node storage pressure
CN106411774A (en) * 2016-09-06 2017-02-15 联动优势科技有限公司 Method and device for controlling transaction data volume
CN106598490A (en) * 2016-11-25 2017-04-26 深圳前海微众银行股份有限公司 Access method for block chain data and block chain management system
CN107079059A (en) * 2016-12-21 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain storage method and device and node equipment
CN107105041A (en) * 2017-04-27 2017-08-29 电子科技大学 One medical big data management system and framework based on block chain

Also Published As

Publication number Publication date
CN107819829A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN107819829B (en) Method and system for accessing block chain, block chain node point equipment and user terminal
JP7325506B2 (en) Business processing method, device, electronic device and computer program based on blockchain system
US10015243B2 (en) Optimized content distribution based on metrics derived from the end user
CN111291060B (en) Method, device and computer readable medium for managing blockchain nodes
CN112714192B (en) Data synchronization method and device, computer readable medium and electronic equipment
CN110535970B (en) Evidence storing and processing method, device, equipment and medium of judicial chain
CN110708188A (en) Method and device for creating network slice based on SLA
CN112235420B (en) Data synchronization method, system and related equipment based on block chain
US20120054265A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
CN111107130A (en) Carrier class telecommunications block chain
US10425475B2 (en) Distributed data management
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
CN109951508B (en) Zookeeper-based request coordination method and device, computer equipment and storage medium
CN112351088A (en) CDN cache method, device, computer equipment and storage medium
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN110601978A (en) Flow distribution control method and device
CN110598058A (en) Evidence storing and processing method, device, equipment and medium of judicial chain
CN116806038A (en) Decentralizing computer data sharing method and device
CN112152879A (en) Network quality determination method and device, electronic equipment and readable storage medium
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
CN115396494A (en) Real-time monitoring method and system based on stream computing
CN112948733B (en) Interface maintenance method, device, computing equipment and medium
CN112417052B (en) Data synchronization method, device, equipment and storage medium in block chain network
US20170318439A1 (en) Message delivery reliability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1250554

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200707

Termination date: 20211017