CN111600763A - Method, system and related equipment for updating network access configuration information in DHT network - Google Patents

Method, system and related equipment for updating network access configuration information in DHT network Download PDF

Info

Publication number
CN111600763A
CN111600763A CN202010494883.1A CN202010494883A CN111600763A CN 111600763 A CN111600763 A CN 111600763A CN 202010494883 A CN202010494883 A CN 202010494883A CN 111600763 A CN111600763 A CN 111600763A
Authority
CN
China
Prior art keywords
network access
nodes
access node
node list
available
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.)
Pending
Application number
CN202010494883.1A
Other languages
Chinese (zh)
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN202010494883.1A priority Critical patent/CN111600763A/en
Publication of CN111600763A publication Critical patent/CN111600763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • 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
    • 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/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method, a system and related equipment for updating network access configuration information in a DHT (distributed hash table) network, which are used for improving the network access efficiency of nodes in the DHT network. The method of the embodiment of the invention can comprise the following steps: setting an available network access node list, and periodically detecting the connection state of network access nodes in the available network access node list, wherein the network access node list stores a preset number of network access node information; if unavailable network access nodes exist, the unavailable network access nodes are removed, and information of other current available network access nodes is recorded in the network access node list so as to maintain the number of the network access nodes in the available network access node list as the preset number; and storing the list of the available network access nodes into a plurality of nodes in the DHT network.

Description

Method, system and related equipment for updating network access configuration information in DHT network
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, a system, and a related device for updating network access configuration information in a DHT network.
Background
In a Distributed Hash Table (DHT) decentralized network, nodes are scattered everywhere, and there is no centralized management, so that the online duration and the service quality of a single node cannot be guaranteed. When a new client wants to access the DHT network, the new client needs to communicate with at least one node in the current network to complete the network access process.
In the current network access scheme, a fixed group of nodes is pre-designated for network access, and the nodes are generally not automatically updated after being designated (unless manually updated by a person). When the service quality of a given network access node is deteriorated (node drop or connection timeout), the network access performance of the client terminal may be deteriorated or network access failure may be caused.
In view of the above, there is a need to provide a solution for improving the network access efficiency of client clients in decentralized DHT networks.
Disclosure of Invention
The embodiment of the invention provides a method, a system and related equipment for updating network access configuration information in a DHT (distributed hash table) network, which are used for improving the network access efficiency of nodes in the DHT network.
A first aspect of an embodiment of the present invention provides a method for updating network access configuration information in a DHT network, where the method includes:
setting an available network access node list, and periodically detecting the connection state of network access nodes in the available network access node list, wherein the network access node list stores a preset number of network access node information;
if unavailable network access nodes exist, the unavailable network access nodes are removed, and information of other current available network access nodes is recorded in the network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than the preset number;
and storing the list of the available network access nodes into a plurality of nodes in the DHT network.
Optionally, as a possible implementation manner, in the embodiment of the present invention, the storing the list of available network access nodes into the plurality of nodes in the DHT network may include:
storing the list of available network entry nodes at a plurality of nodes in a key-value key value pair format in the DHT network.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the storing the list of available network access nodes in a format of key-value pairs at a plurality of nodes includes:
setting a plurality of key-value key value pairs with sequentially increasing key value numbers, wherein the value contents in the key value pairs store the available network access node list;
and sequentially storing the plurality of key value pairs in different nodes.
Optionally, as a possible implementation manner, the method for updating network access configuration information in a DHT network in the embodiment of the present invention may further include:
and periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating the available network access node list stored in the node currently accessed to the DHT network.
Optionally, as a possible implementation manner, in the embodiment of the present invention, the updating the available network access node list stored in the node currently accessing the DHT network may include:
and controlling the nodes currently accessed to the DHT network to randomly distribute updating time in a preset time period, and updating the available network access node list according to the distributed updating time.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the periodically detecting the connection state of the network access node in the available network access node list may include:
and periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list so as to determine the connection state of the network access nodes.
Optionally, as a possible implementation manner, the method for updating network access configuration information in a DHT network in the embodiment of the present invention may further include:
and when detecting that the number of the network access nodes in the available network access node list is smaller than the preset number, randomly selecting nodes from the current bs routing table or the current network access node routing table for supplementation until the number of the network access nodes in the available network access node list is the preset number.
A second aspect of the present invention provides a system for updating network access configuration information in a DHT network, where the system includes:
the processing unit is used for setting an available network access node list and periodically detecting the connection state of network access nodes in the available network access node list, wherein the available network access node list stores a preset number of network access node information;
the maintenance unit is used for eliminating unavailable network access nodes if the unavailable network access nodes exist, and recording information of other current available network access nodes to the network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than the preset number;
and the unloading unit is used for storing the available network access node list into a plurality of nodes in the DHT network.
Optionally, as a possible implementation manner, the unloading unit in the embodiment of the present invention may include:
and the unloading module is used for storing the available network access node list in a plurality of nodes in a key-value key value pair format.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the unloading module includes:
the setting unit is used for setting a plurality of key-value key value pairs with sequentially increasing key value numbers, and the value contents in the key value pairs store the available network access node list;
and the storage unit is used for sequentially storing the plurality of key value pairs in different nodes.
Optionally, as a possible implementation manner, the network access configuration information updating system in the DHT network in the embodiment of the present invention may further include:
and the detection unit is used for periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating the available network access node list stored in the node currently accessed to the DHT network.
Optionally, as a possible implementation manner, the detection unit in the embodiment of the present invention may further include:
and the control module is used for controlling the nodes currently accessed to the DHT network to randomly distribute the updating time in a preset time period and updating the available network access node list according to the distributed updating time.
Optionally, as a possible implementation manner, the processing unit in the embodiment of the present invention may further include:
and the detection module is used for periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list so as to determine the connection state of the network access nodes.
Optionally, as a possible implementation manner, the network access configuration information updating system in the DHT network in the embodiment of the present invention may further include:
and the selecting module randomly selects nodes from the current bs routing table or the current access node routing table for supplementation when detecting that the number of the access nodes in the available access node list is smaller than the preset number, until the number of the access nodes in the available access node list is the preset number.
A third aspect of embodiments of the present invention provides a computer apparatus, which includes a processor, and the processor is configured to implement the steps in any one of the possible implementation manners of the first aspect and the first aspect when executing a computer program stored in a memory.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in any one of the possible implementations of the first aspect and the first aspect.
In the embodiment of the invention, the network access configuration information updating system in the DHT network can set an available network access node list, periodically detect the connection state of the network access nodes in the available network access node list, if unavailable network access nodes exist, reject the unavailable network access nodes, select new network access nodes from the nodes currently accessed to the DHT network, and record the information of the new network access nodes to the available network access node list so as to maintain the number of the network access nodes in the available network access node list as the preset number. And then, storing the list of the available network access nodes into a plurality of nodes in the DHT network so that the nodes in the DHT network can inquire the network access nodes. Compared with the prior art, the method and the device can automatically update the available network access node list in the DHT network, eliminate the invalid network access nodes, effectively avoid network access failure caused by the fact that the nodes are accessed into the invalid network access nodes in the network access stage, and improve the network access efficiency of the DHT network.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a method for updating network access configuration information in a DHT network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an embodiment of a method for updating network access configuration information in a DHT network according to the present invention;
fig. 3 is a schematic diagram of a specific embodiment of a network access configuration information updating system in a DHT network according to an embodiment of the present invention;
FIG. 4 is a diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a system and related equipment for updating network access configuration information in a DHT (distributed hash table) network, which are used for improving the network access efficiency of nodes in the DHT network.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the existing network access scheme of the DHT network, a fixed group of nodes is pre-designated for network access, and the nodes are not automatically updated after the designation (unless manually updated by a person). When the quality of service of a given network-accessing node deteriorates (the node drops or needs to be connected for a timeout), it may cause the network-accessing performance of a new client to deteriorate or network-accessing failure to occur.
In view of this, in order to avoid a network access failure caused by accessing an invalid network access node in a node network access stage, and improve network access efficiency, in an embodiment of the present invention, an available network access node list may be set, and IP addresses of a preset number of network access nodes are stored in the available network access node list, and the available network access node list is periodically maintained and provided for a new node with latest network access configuration information, so as to improve network access efficiency of nodes in the DHT network.
For convenience of understanding, a specific flow in the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for updating network entry configuration information in a DHT network according to the embodiment of the present invention may include:
s101, setting an available network access node list, and detecting the connection state of network access nodes in the available network access node list;
in order to avoid network access failure caused by access to an invalid network access node in a new client network access stage and improve network access efficiency, the network access configuration information updating system in the DHT network in the embodiment of the present invention may set an available network access node list, store a preset number of IP addresses of network access nodes in the available network access node list, and periodically detect a connection state of the network access nodes in the available network access node list.
Preferably, the list of available network access nodes may be provided in a bs program, and the bs program may be installed in a server or may be installed in a node of the DHT network. The bs program is a bootstrap program, and is an auxiliary program for facilitating fast network access of nodes in the DHT network, and before nodes join the DHT network, the nodes all need to access the bs program, so that the nodes join the DHT network. Optionally, as a possible implementation manner, in the embodiment of the present invention, ping detection is periodically performed on the network access node according to the IP address in the available network access node list, so as to determine the connection state of the network access node in the network access node list. The program for testing the network connection amount is used for determining whether the local host can successfully exchange (send and receive) data packets with another host, and then whether the TCP/IP parameters are correctly set, whether the operation is normal, whether the network is smooth and the like can be inferred according to the returned information.
It should be understood that the above ping detection of the connection status of the network access node is merely an example, and other detection manners, such as heartbeat detection, detection of periodically sending a response packet, and the like, may also be used in practical applications, and the connection status detection manner of the network access node is not limited herein.
S102, if unavailable network access nodes exist, the unavailable network access nodes are removed, and information of other current available network access nodes is recorded in a network access node list;
and when the unavailable network access node is detected, eliminating the unavailable network access node, selecting a new network access node from the nodes currently accessed to the DHT network, and recording the IP address of the new network access node to an available network access node list so as to maintain the number of the network access nodes in the available network access node list to be not less than the initial preset number. Specifically, the newly added available network access node may be randomly selected from nodes currently accessing to the DHT network, or may set a screening condition, and the available network access node is screened from nodes currently accessing to the DHT network based on the screening condition, which is not limited herein.
Preferably, as a possible implementation manner, when it is detected that the number of the network access nodes in the available network access node list is smaller than the preset number, the nodes may be randomly selected from the current bs routing table or the current network access node routing table for supplementation until the number of the network access nodes in the available network access node list is the preset number.
The bs routing table is node information (for example, an IP address) stored in a server or a node where the bs program is located and communicating with the bs program.
S103, storing the list of the available network access nodes into a plurality of nodes in the DHT network.
In practical application, a node that has accessed the DHT network may have abnormal connection and needs to be replaced for network access, and in order to improve the network access efficiency of the node of the DHT network, in the embodiment of the present invention, all or part of information in the information of the network-accessible node in the list of available network-accessible nodes may be stored in the local route of the node that has accessed the DHT network, which is not limited specifically here.
Specifically, after the available network access node list is set and maintained, the network access configuration information updating system in the DHT network can dispersedly store the available network access node list in a plurality of nodes in the DHT network, so as to be used for querying and storing other nodes in the DHT network, and meanwhile, the dispersive storage can avoid data congestion, thereby improving the efficiency of data transmission.
Optionally, as a possible implementation manner, in the DHT network in the embodiment of the present invention, the list of available network entry nodes is stored in a plurality of nodes in a key-value key value pair format. Specifically, a batch of sequentially encoded keys may be fixedly used, the number of the sequentially encoded keys is N (for example, keys 1, key2, … key209, key300, and 300 keys), and the corresponding values of each key have the same content and are all the information of the available access nodes in the current available access node list, so as to form a batch of key-value key value pair information, and the key-value pair information is dispersedly stored in a plurality of nodes in the DHT network. For example, node 1 holds key1-value, node 2 holds key2-value, and … node N holds key N-value. Specifically, N nodes may be randomly selected from the nodes currently accessed to the DHT network to store the key-value key value pair information, or a screening condition may be set, and the N nodes are screened from the nodes currently accessed to the DHT network based on the screening condition to store the key-value key value pair information, which is not limited herein.
In the embodiment of the invention, the network access configuration information updating system in the DHT network can set an available network access node list, periodically detect the connection state of the network access nodes in the available network access node list, if unavailable network access nodes exist, reject the unavailable network access nodes, select new network access nodes from the nodes currently accessed to the DHT network, and record the IP addresses of the new network access nodes to the available network access node list so as to maintain the number of the network access nodes in the available network access node list as the preset number. And then, storing the list of the available network access nodes into a plurality of nodes in the DHT network so that the nodes in the DHT network can inquire the network access nodes. Compared with the prior art, the method and the device can automatically update the available network access node list in the DHT network, eliminate the invalid network access nodes, effectively avoid network access failure caused by the fact that the nodes are accessed into the invalid network access nodes in the network access stage, and improve the network access efficiency of the DHT network.
The network access configuration information updating system in the DHT network can periodically detect whether a new network access node exists in the available network access node list, and if so, the available network access node list stored in the node currently accessed to the DHT network is updated.
In practical applications, when a new node in the available network access node list is changed, the available network access node list in the DHT network needs to be updated in time. For this purpose, the change of the available network access node list needs to be periodically detected.
Optionally, as a possible implementation manner, on the basis of the embodiment shown in fig. 1, after storing the list of available network access nodes at a plurality of nodes in a key-value pair format in the DHT network, the network access configuration information updating system in the DHT network may periodically detect whether the digest value of the value content in the key-value pair changes, and if so, update the list of available network access nodes stored in the node currently accessing the DHT network. Specifically, a plurality of key-value key value pairs with sequentially increasing key value numbers may be set, and the value content in the key value pairs stores an available network access node list; the plurality of key-value pairs are stored in different nodes in sequence.
Specifically, the network access configuration information updating system in the DHT network may calculate an md5 digest value M1 of the IP address of the available network access node list stored in the server or the node where the bs program is located, compare the M1 with an md5 digest value M2 of the IP address of the available network access node list stored in other nodes in the DHT network, and if the M1 and the md5 digest values M2 are not consistent, update the available network access node list stored in the node currently accessing the DHT network.
Optionally, as a possible implementation manner, on the basis of the foregoing embodiment, in a process of updating an available network access node list stored in a node currently accessing the DHT network, in order to avoid data congestion caused by simultaneous data update of multiple nodes, the network access configuration information updating system in the DHT network may control the node currently accessing the DHT network to randomly allocate update time within a preset time period, and update the available network access node list according to the allocated update time.
For convenience of understanding, the network access configuration information updating method in the DHT network according to the embodiment of the present invention will be described below with reference to specific application embodiments. Referring to fig. 2, an embodiment of an application of a method for updating network access configuration information in a DHT network according to an embodiment of the present invention may include:
step S1: the bs periodically checks the survival condition of the nodes in the network access configuration node list. bs sets a list of currently available network access nodes, the length of the list is M, and periodically (for example, every 12 hours) checks the survival condition of the nodes in the network access configuration node list. For example, after the maintenance period is reached, an ip in a node list is selected at random time within 0-60 s, a corresponding ping command is generated, whether a returned result meets a preset condition or not is detected, if the returned result meets the preset condition, the network is unobstructed, the node corresponding to the ip is available, and otherwise, the node corresponding to the ip is unavailable.
Step S2: and judging whether a node with connection failure exists or not. If all the nodes ping successfully, waiting for the next detection time to come, and ping again; and if the nodes with unavailable ping exist, the nodes are unavailable, the node information is deleted from the network access node list, and the next step is carried out.
Step S3: and updating the network access node list in the configuration file. When the length of the current available network access node list is smaller than M, randomly selecting an available node from the current bs routing table or the current network access node routing table for supplementation (ip deduplication) until the length of the current available network access node is M or not smaller than M.
Step S4: put kv program interval T periodically checks whether value changes. A batch of the same keys is fixedly used, the number of the same keys is N (such as keys 1-key 300, 300 keys), and the corresponding value of the same keys is list information of currently available network access nodes, so that a batch of keys is formed: value information in which the value of key is fixed. And comparing the MD5 of the value content every T hours, if the MD5 value of the value content is unchanged, considering that the current network access node information is unchanged, waiting for the next period T, rechecking the MD5 of the value, if the MD5 value is changed, considering that new network access node information needs to be updated, and entering the next step.
Step S5: and selecting N available nodes from the bs or the nodes, and putting kv in the N nodes, wherein the key value in each round of put is unchanged, and the value is the latest. The latest key: value (KV) value, the new kv will overwrite the old kv, leaving only one value available in the DHT network.
Step S6: and the client side acquires the value corresponding to the key at random time. After the client accesses the network, updating the latest network access node information in the DHT network at a random time point within the time of T2, wherein the updating mode is as follows: after reaching the random time point, randomly getting value information of any one of N keys in a get mode
Step S7: and judging whether value is changed. When the client side obtains the value corresponding to the key at random time, the network access node information in the value is different from the network access node information stored by the client side, and the updating is carried out; if the two are the same, skipping and waiting for the next updating check.
And after the client acquires the latest network access node information, storing the latest network access node information. a. After the network is accessed, if abnormal connection occurs, switching to the newly acquired node for re-accessing the network, and reducing waiting and retry time; b. and after the client is restarted, the latest nodes which are obtained latest are preferentially used for network access operation. Therefore, the network access efficiency of the client side is improved.
Referring to fig. 3, an embodiment of the present invention further provides a system for updating network entry configuration information in a DHT network, which may include:
a processing unit 301, configured to set an available network access node list, and periodically detect a connection state of network access nodes in the available network access node list, where a preset number of pieces of network access node information are stored in the available network access node list;
a maintenance unit 302, configured to, if there is an unavailable access node, reject the unavailable access node, and record information of other current available access nodes to the access node list, so as to maintain that the number of access nodes in the available access node list is not less than a preset number;
a dump unit 303, configured to store the list of available network access nodes into multiple nodes in the DHT network.
In the embodiment of the invention, the network access configuration information updating system in the DHT network can set an available network access node list, periodically detect the connection state of the network access nodes in the available network access node list, if unavailable network access nodes exist, reject the unavailable network access nodes, select new network access nodes from the nodes currently accessed to the DHT network, and record the IP addresses of the new network access nodes to the available network access node list so as to maintain the number of the network access nodes in the available network access node list as the preset number. And then, storing the list of the available network access nodes into a plurality of nodes in the DHT network so that the nodes in the DHT network can inquire the network access nodes. Compared with the prior art, the method and the device can automatically update the available network access node list in the DHT network, eliminate the invalid network access nodes, effectively avoid network access failure caused by the fact that the nodes are accessed into the invalid network access nodes in the network access stage, and improve the network access efficiency of the DHT network.
Optionally, as a possible implementation manner, the unloading unit in the embodiment of the present invention may include:
and the unloading module is used for storing the available network access node list in a plurality of nodes in a key-value key value pair format in the DHT network.
Optionally, as a possible implementation manner, the network access configuration information updating system in the DHT network in the embodiment of the present invention may further include:
and the detection unit is used for periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating the available network access node list stored in the node currently accessed to the DHT network.
Optionally, as a possible implementation manner, the detection unit in the embodiment of the present invention may further include:
and the control module is used for controlling the nodes currently accessed to the DHT network to randomly distribute the updating time in a preset time period and updating the available network access node list according to the distributed updating time.
Optionally, as a possible implementation manner, the processing unit in the embodiment of the present invention may further include:
and the detection module is used for periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list so as to determine the connection state of the network access nodes.
Optionally, as a possible implementation manner, the network access configuration information updating system in the DHT network in the embodiment of the present invention may further include:
and the selection module randomly selects nodes from the current bs routing table or the current access node routing table for supplementation when detecting that the number of the access nodes in the available access node list is smaller than the preset number until the number of the access nodes in the available access node list is the preset number.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above description of the network access configuration information updating system in the DHT network in the embodiment of the present invention from the perspective of the modular functional entity, please refer to fig. 4, and the following description describes the computer apparatus in the embodiment of the present invention from the perspective of hardware processing:
the computer device 1 may include a memory 11, a processor 12 and an input output bus 13. The processor 11, when executing the computer program, implements the steps in the above-described network access configuration information updating method embodiment in the DHT network shown in fig. 1, for example, steps 101 to 103 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of each module or unit in the above-described device embodiments.
In some embodiments of the present invention, the processor is specifically configured to implement the following steps:
setting an available network access node list, periodically detecting the connection state of network access nodes in the available network access node list, and storing a preset number of network access node information in the available network access node list;
if unavailable network access nodes exist, the unavailable network access nodes are removed, and information of other current available network access nodes is recorded in a network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than a preset number;
a list of available network entry nodes is stored in a plurality of nodes in the DHT network.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
a list of available network entry nodes is stored at a plurality of nodes in a key-value pair format in the DHT network.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating an available network access node list stored in the node currently accessed to the DHT network.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and controlling the nodes currently accessed to the DHT network to randomly distribute updating time in a preset time period, and updating the available network access node list according to the distributed updating time.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list to determine the connection state of the network access nodes.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and when the number of the network access nodes in the available network access node list is detected to be smaller than the preset number, randomly selecting the nodes from the current bs routing table or the current network access node routing table for supplementation until the number of the network access nodes in the available network access node list is the preset number.
In this embodiment, the Computer apparatus 1 may be a PC (Personal Computer), a smart phone, a tablet Computer, a palm Computer, a portable Computer, an intelligent router, an ore machine, and a network storage device terminal device.
The computer apparatus 1 may be a node constituting a DHT network.
The computer device 1 may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the computer device 1, for example a hard disk of the computer device 1. The memory 11 may also be an external storage device of the computer apparatus 1 in other embodiments, such as a plug-in hard disk provided on the computer apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the computer apparatus 1. The memory 11 may be used not only to store application software installed in the computer apparatus 1 and various types of data, such as codes of the computer program 01, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing the computer program 01.
The input/output bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
Further, the computer apparatus may further include a wired or wireless network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the computer apparatus 1 and other electronic devices.
Optionally, the computer device 1 may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally, the user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the computer device 1 and for displaying a visualized user interface.
Fig. 4 shows only the computer arrangement 1 with the components 11-14 and the computer program 01, it being understood by a person skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the computer arrangement 1, but may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
setting an available network access node list, periodically detecting the connection state of network access nodes in the available network access node list, and storing a preset number of network access node information in the available network access node list;
if unavailable network access nodes exist, the unavailable network access nodes are removed, and information of other current available network access nodes is recorded in a network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than a preset number;
a list of available network entry nodes is stored in a plurality of nodes in the DHT network.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
a list of available network entry nodes is stored at the plurality of nodes in a key-value key value pair format.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating an available network access node list stored in the node currently accessed to the DHT network.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and controlling the nodes currently accessed to the DHT network to randomly distribute updating time in a preset time period, and updating the available network access node list according to the distributed updating time.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list to determine the connection state of the network access nodes.
Optionally, as a possible implementation manner, the processor may be further configured to implement the following steps:
and when the number of the network access nodes in the available network access node list is detected to be smaller than the preset number, randomly selecting the nodes from the current bs routing table or the current network access node routing table for supplementation until the number of the network access nodes in the available network access node list is the preset number.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for updating network access configuration information in a DHT network is characterized by comprising the following steps:
setting an available network access node list, and periodically detecting the connection state of network access nodes in the available network access node list, wherein the network access node list stores a preset number of network access node information;
if unavailable network access nodes exist, the unavailable network access nodes are removed from the network access node list, and information of other current available network access nodes is recorded in the network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than the preset number;
and storing the list of the available network access nodes into a plurality of nodes in the DHT network.
2. The method of claim 1, wherein said storing the list of available network entry nodes in a plurality of nodes in the DHT network comprises:
storing the list of available network entry nodes at a plurality of nodes in a key-value key value pair format.
3. The method of claim 2, wherein storing the list of available network entry nodes at a plurality of nodes in a key-value pair format comprises:
setting a plurality of key-value key value pairs with sequentially increasing key value numbers, wherein the value contents in the key value pairs store the available network access node list;
and sequentially storing the plurality of key value pairs in different nodes.
4. The method as recited in claim 3, further comprising:
and periodically detecting whether the digest value of the value content in the key value pair changes, and if so, updating the available network access node list stored in the node currently accessed to the DHT network.
5. The method of claim 3, wherein said updating said list of available network entry nodes maintained in nodes currently accessing the DHT network comprises:
and controlling the nodes currently accessed to the DHT network to randomly distribute updating time in a preset time period, and updating the available network access node list according to the distributed updating time.
6. The method according to any of claims 1 to 5, wherein said periodically detecting the connection status of the network access nodes in the list of available network access nodes comprises:
and periodically performing ping detection on the network access nodes according to the IP addresses in the available network access node list so as to determine the connection state of the network access nodes.
7. The method of any of claims 1 to 5, further comprising:
and when detecting that the number of the network access nodes in the available network access node list is smaller than the preset number, randomly selecting nodes from the current bs routing table or the current network access node routing table for supplementation until the number of the network access nodes in the available network access node list is the preset number.
8. A network access configuration information updating system in a DHT network, comprising:
the processing unit is used for setting an available network access node list and periodically detecting the connection state of network access nodes in the available network access node list, wherein the available network access node list stores a preset number of network access node information;
the maintenance unit is used for eliminating unavailable network access nodes if the unavailable network access nodes exist, and recording information of other current available network access nodes to the network access node list so as to maintain that the number of the network access nodes in the available network access node list is not less than the preset number;
and the unloading unit is used for storing the available network access node list into a plurality of nodes in the DHT network.
9. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the steps of the method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method according to any one of claims 1 to 7.
CN202010494883.1A 2020-06-03 2020-06-03 Method, system and related equipment for updating network access configuration information in DHT network Pending CN111600763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010494883.1A CN111600763A (en) 2020-06-03 2020-06-03 Method, system and related equipment for updating network access configuration information in DHT network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010494883.1A CN111600763A (en) 2020-06-03 2020-06-03 Method, system and related equipment for updating network access configuration information in DHT network

Publications (1)

Publication Number Publication Date
CN111600763A true CN111600763A (en) 2020-08-28

Family

ID=72192413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010494883.1A Pending CN111600763A (en) 2020-06-03 2020-06-03 Method, system and related equipment for updating network access configuration information in DHT network

Country Status (1)

Country Link
CN (1) CN111600763A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064992A (en) * 2009-11-13 2011-05-18 中兴通讯股份有限公司 Relay node, and relay node distributed network and networking method thereof
US20120185595A1 (en) * 2011-01-17 2012-07-19 Alcatel-Lucent Usa Inc. Traffic Localization Mechanism For Distributed Hash Table Based Peer-To-Peer Networks
CN103747484A (en) * 2014-01-28 2014-04-23 大唐移动通信设备有限公司 RIM (radio access network information management) flow system information processing method and service node equipment
CN105682245A (en) * 2014-11-20 2016-06-15 中兴通讯股份有限公司 Network resource configuration method, device and system and network communication method
CN107135108A (en) * 2017-05-25 2017-09-05 深圳市伊特利网络科技有限公司 The update method and system of network connection list
CN110022222A (en) * 2018-01-10 2019-07-16 中兴通讯股份有限公司 A kind of management method, network node, management node and the system of DHT network
CN110149407A (en) * 2019-05-24 2019-08-20 深圳市网心科技有限公司 Method for network access and device, computer installation and storage medium
CN110417883A (en) * 2019-07-23 2019-11-05 杭州云象网络技术有限公司 A kind of design method of the point to point network structure applied to block chain
CN111064798A (en) * 2019-12-25 2020-04-24 深圳市网心科技有限公司 Node network access method, device, client node and storage medium
CN111131484A (en) * 2019-12-30 2020-05-08 深圳市网心科技有限公司 Node mounting method, device, network node and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064992A (en) * 2009-11-13 2011-05-18 中兴通讯股份有限公司 Relay node, and relay node distributed network and networking method thereof
US20120185595A1 (en) * 2011-01-17 2012-07-19 Alcatel-Lucent Usa Inc. Traffic Localization Mechanism For Distributed Hash Table Based Peer-To-Peer Networks
CN103747484A (en) * 2014-01-28 2014-04-23 大唐移动通信设备有限公司 RIM (radio access network information management) flow system information processing method and service node equipment
CN105682245A (en) * 2014-11-20 2016-06-15 中兴通讯股份有限公司 Network resource configuration method, device and system and network communication method
CN107135108A (en) * 2017-05-25 2017-09-05 深圳市伊特利网络科技有限公司 The update method and system of network connection list
CN110022222A (en) * 2018-01-10 2019-07-16 中兴通讯股份有限公司 A kind of management method, network node, management node and the system of DHT network
CN110149407A (en) * 2019-05-24 2019-08-20 深圳市网心科技有限公司 Method for network access and device, computer installation and storage medium
CN110417883A (en) * 2019-07-23 2019-11-05 杭州云象网络技术有限公司 A kind of design method of the point to point network structure applied to block chain
CN111064798A (en) * 2019-12-25 2020-04-24 深圳市网心科技有限公司 Node network access method, device, client node and storage medium
CN111131484A (en) * 2019-12-30 2020-05-08 深圳市网心科技有限公司 Node mounting method, device, network node and storage medium

Similar Documents

Publication Publication Date Title
JP5625998B2 (en) Information processing system
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
US7225356B2 (en) System for managing operational failure occurrences in processing devices
CN107077497B (en) Compound partition function
CN109618174B (en) Live broadcast data transmission method, device, system and storage medium
CN101018227A (en) Data management device, storage medium having data management program, protocol switching device and method
US20130223424A1 (en) Management methods and related electronic devices and machine-readable storage mediums using the same
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN111556125B (en) Access request distribution method, load balancing equipment and electronic equipment
CN111556135A (en) Request scheduling method, system and device and electronic equipment
CN110347648B (en) File deployment method and device, computer device and storage medium
CN111142799A (en) Distributed storage method and device, network node and storage medium
CN110855784A (en) Proxy server node selection method, electronic device, system and medium
CN110572321A (en) Data transmission method and device, storage medium and electronic equipment
CN110554905A (en) Starting method and device of container
CN114398397A (en) Data processing method, device, storage medium and system
CN111193804B (en) Distributed storage method and device, network node and storage medium
CN108366102A (en) A kind of service discovery method, device and electronic equipment based on Consul
CN109479214B (en) Load balancing method and related device
CN111338607A (en) Method and device for selecting service data for testing and electronic equipment
CN111600763A (en) Method, system and related equipment for updating network access configuration information in DHT network
CN110955460A (en) Service process starting method and device, electronic equipment and storage medium
CN111147186B (en) Data transmission method and device, computer equipment and storage medium
CN110071868B (en) Link aggregation method, device and network equipment
CN114584454A (en) Server information processing method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828