CN116418651A - Communication method and device of network node, electronic equipment and readable storage medium - Google Patents

Communication method and device of network node, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116418651A
CN116418651A CN202310687603.2A CN202310687603A CN116418651A CN 116418651 A CN116418651 A CN 116418651A CN 202310687603 A CN202310687603 A CN 202310687603A CN 116418651 A CN116418651 A CN 116418651A
Authority
CN
China
Prior art keywords
network node
node
network
basic information
hierarchical
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
CN202310687603.2A
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.)
Beijing Big Data Advanced Technology Research Institute
Original Assignee
Beijing Big Data Advanced Technology Research Institute
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 Beijing Big Data Advanced Technology Research Institute filed Critical Beijing Big Data Advanced Technology Research Institute
Priority to CN202310687603.2A priority Critical patent/CN116418651A/en
Publication of CN116418651A publication Critical patent/CN116418651A/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/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • 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/14Network analysis or design

Landscapes

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

Abstract

The application discloses a communication method, a device, electronic equipment and a readable storage medium of a network node, which relate to the technical field of network communication and comprise the following steps: acquiring a networking instruction; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node, so that service interaction between the network nodes is realized, the network node can be flexibly networked, the service scene variety of the applicable network node is multiple, and the problem of poor applicability in the prior art is solved.

Description

Communication method and device of network node, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of network communication, and particularly relates to a communication method and device of a network node, electronic equipment and a readable storage medium.
Background
In order to achieve service interaction between a plurality of network nodes, a communication method of the network nodes is required.
In the prior art, network nodes are networked according to a given network hierarchy architecture to achieve service interaction between the network nodes.
In implementing the present application, the inventors found that at least the following problems exist in the prior art: in order to realize service interaction between network nodes, network nodes are networked according to a given network hierarchy architecture, so that the variety of service scenes of the applicable network nodes is small, and the applicability is poor.
Disclosure of Invention
The application aims to provide a communication method, a device, electronic equipment and a readable storage medium of a network node, which at least solve the problem of poor applicability caused by less kinds of applicable service scenes of the network node because the network nodes are networked according to a given network hierarchy in order to realize service interaction among the network nodes in the prior art.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a communication method of a network node, applied to a network node in a node cluster, where the method includes:
acquiring a networking instruction;
generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node;
acquiring basic information of a lower network node of the network node and basic information of a root node in the node cluster, thereby completing networking; the basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
In a second aspect, an embodiment of the present application further provides a communication device of a network node, applied to a network node in a node cluster, where the device includes:
the first acquisition module is used for acquiring networking instructions;
The generation module is used for generating a hierarchy identifier of the network node and a lower list corresponding to the hierarchy identifier according to the networking instruction, wherein the lower list and the hierarchy identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node;
the second acquisition module is used for acquiring basic information of a lower network node of the network node and basic information of a root node in the node cluster so as to complete networking; the basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
In a third aspect, embodiments of the present application further provide an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application also provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method according to the first aspect.
In the embodiment of the application, the networking instruction is acquired; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node so as to realize service interaction among the network nodes, flexible networking can be carried out according to service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is more, the applicability is improved, and the problems that in the prior art, the network nodes are networked according to a given network hierarchy architecture, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor are solved.
Drawings
Fig. 1 is a step flowchart of a communication method of a network node provided in an embodiment of the present application;
fig. 2 is a flowchart of specific steps of a communication method of a network node according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a network hierarchy provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an access procedure of a target network node according to an embodiment of the present application;
fig. 5 is a schematic diagram of an uploading process of a health status of a network node according to an embodiment of the present application;
fig. 6 is a schematic diagram of a processing procedure of a health status exception of a network node according to an embodiment of the present application;
fig. 7 is a block diagram of a communication device of a network node according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
It should be noted that, the digital object is a data entity that encapsulates data, information, services, etc. in the physical or virtual world; the digital object includes portions of a digital object identification, digital object state information, digital object metadata, a digital object entity, and the like. The digital object identifier (DOI (digital object unique identifier, digital object unique identifier), which is used as the identifier of the digital object, is equivalent to the identity card of a person and has uniqueness, and the characteristic ensures the accurate extraction of the digital object in a network environment and effectively avoids repetition; the digital object state information is stored in a digital network node system and comprises information such as the current position, access entrance, access mode and the like of the digital object, and is used for positioning and accessing the digital object; digital object metadata is descriptive information of a digital object for retrieval and discovery of the digital object; a digital object entity is data contained by a digital object and may be any sequence of bits or a collection of sequences of bits.
The digital networking is to set up bridges among information islands in a digital mode, so that people, things and things can be connected in a multi-dimensional mode in a digital mode, and digital resources can be circulated and shared in an accessible mode; the communication method of the network node can be realized, and a plurality of network nodes in the node cluster of the digital networking are networked to form the network of the digital networking.
The following describes in detail, with reference to the accompanying drawings, a specific embodiment and an application scenario thereof, a communication method of a network node provided by the embodiment of the present application.
Fig. 1 is a flowchart of steps of a communication method of a network node, where the method is applied to a network node in a node cluster, and as shown in fig. 1, the method may include:
step 101, acquiring a networking instruction.
In the embodiment of the application, the networking instruction is acquired to generate the hierarchical identifier of the network node and the lower list corresponding to the hierarchical identifier according to the networking instruction.
It should be noted that, the network node may be a server cluster or a server, which corresponds to a member organization in a service organization architecture, for example, the service organization architecture is a medical organization, and the provincial hospital in provincial a is a member organization of the medical organization, which corresponds to a network node a; for another example, a market-level hospital in B is a member of a medical structure, corresponding to a network node B.
Step 102, generating a hierarchy identification of the network node and a lower list corresponding to the hierarchy identification according to the networking instruction.
The lower list and the hierarchical identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node.
In the embodiment of the application, according to the networking instruction, a hierarchy identifier of a network node and a lower-level list corresponding to the hierarchy identifier are generated, and the lower-level list and the hierarchy identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired, so that conditions required by networking are realized.
It should be noted that, in the embodiment of the present application, network nodes are networked in a tree structure manner, and the hierarchy identifier characterizes a hierarchy where the network nodes are located, for example, the hierarchy identifier 1001 represents a hierarchy identifier of a root node; 1001.12 the hierarchical identifier of the lower network node of the root node, i.e. the hierarchical identifier of the primary child node; 1001.12.01 the hierarchical identifier of the lower network node of the primary child node, namely the hierarchical identifier … … of the secondary child node, and so on, after all the network nodes generate the hierarchical identifiers, the network hierarchical architecture of the tree structure is formed.
The number of levels of the network hierarchy in the embodiments of the present application may be one, two, three, four, five, six, etc., without limitation.
There may be multiple hierarchical identities in the lower list of network nodes, representing that the network node has multiple lower network nodes, e.g. the lower list of network nodes includes a hierarchical identity 1001.11 and a hierarchical identity 1001.12, i.e. the network node has two lower network nodes, a network node with hierarchical identity 1001.11 and a network node with hierarchical identity 1001.12, respectively.
The request sending end may be a terminal that needs to obtain data on a server of the target network node, where the request sending end and the network node are in the same network.
Specifically, in some embodiments, by deploying a node system on a network node, a hierarchical identity of the network node and a lower list corresponding to the hierarchical identity are configured by using an administrator account of the node system.
Step 103, obtaining basic information of a subordinate network node of the network node and basic information of a root node in the node cluster, thereby completing networking.
The basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
In the embodiment of the application, the basic information of the lower network node of the network node and the basic information of the root node in the node cluster are acquired, wherein the basic information of the lower network node is used for the network node to access the lower network node, and the basic information of the root node is used for the network node to access the root node, so that the condition required by networking is realized, and further networking is completed.
It should be noted that, in the network hierarchy of the tree structure formed by networking the root node, the uppermost network node, that is, the root node has the lower network node but does not have the upper network node. In the network hierarchy of the tree structure, the lowest level network node is called a leaf node, that is, the leaf node has an upper level network node but does not have a lower level network node, so after the network node is obtained, in the case that the network node is a leaf node, a hierarchy identifier of the network node is generated according to the network node, that is, the leaf node does not have a lower level list.
The basic information of the network node may include a server address, a service port, and public key information of the server (i.e., an account password for accessing the server) of the network node.
In the prior art, digital object architecture (DOA, digital Object Architecture) of digital networking includes an identification resolution system (node system), a digital object Repository (Repository), and a digital object Registry (Registry). If the digital object system architecture is known as the neural network of the Internet, the node system is the neuron of the neural network, and the digital object passes through the registration capability of the node system, so that the state information of the digital object can be stored in the whole digital network in a distributed manner; the digital object warehouse provides access management and persistence service for digital object entities; the digital object registry is responsible for the management of digital object metadata. The Handle system is a system of a digital object system architecture, and the Handle system is used for networking network nodes according to a network hierarchy architecture with five layers, so that the variety of service scenes of the applicable network nodes is small, and the applicability is poor.
In summary, in the embodiment of the present application, the networking instruction is obtained; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node so as to realize service interaction among the network nodes, flexible networking can be carried out according to service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is more, the applicability is improved, and the problems that in the prior art, the network nodes are networked according to a given network hierarchy architecture, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor are solved.
Fig. 2 is a flowchart of specific steps of a communication method of a network node, where the method is applied to a network node in a node cluster, as shown in fig. 2, and the method may include:
step 201, obtaining a networking instruction.
The implementation of this step is similar to the implementation of step 101, and will not be described here again.
Step 202, generating a hierarchy identification of the network node and a lower list corresponding to the hierarchy identification according to the networking instruction.
Wherein the lower list and the hierarchy identification are used for obtaining the access request of the request sending end to the target network node, determining the target network node; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node.
The implementation of this step is similar to the implementation of step 102 described above, and will not be described here again.
Optionally, in some embodiments, after step 202, the method further comprises the following steps (step 215, step 216):
step 215, obtaining basic information of a subordinate network node of the network node in the case that the network node is a root node.
In the embodiment of the application, the basic information of the lower network node of the network node is acquired under the condition that the network node is the root node, so that networking is completed.
And step 216, acquiring the basic information of the root node in the case that the network node is a leaf node.
In the embodiment of the application, the basic information of the root node is acquired under the condition that the network node is a leaf node, so that networking is completed.
The networking of the root node and the networking of the leaf nodes may be achieved by performing steps 215 to 216.
Step 203, obtaining basic information of a subordinate network node of the network node and basic information of a root node in the node cluster, thereby completing networking.
The basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
The implementation of this step is similar to the implementation of step 103, and will not be described here again.
Optionally, in some embodiments, after step 203, the method further comprises the following steps (step 204, step 205, step 206):
step 204, responding to an access request of a request sending end, and acquiring an access identifier in the access request.
In the embodiment of the application, the access identifier in the access request is acquired by responding to the access request of the request sending end, so that the target network node in the network nodes of the node cluster is determined according to the access identifier.
Optionally, in some embodiments, the network node is the network node closest to the request issuing end.
In the embodiment of the application, because the network node is the network node closest to the request sending end, the access request sent by the request sending end can be sent to the network node through the shortest network path, and further, the data corresponding to the access request on the server of the target network node is acquired through the network node.
Step 205, determining a target network node in the network nodes of the node cluster according to the access identifier.
In the embodiment of the application, the target network node in the network nodes of the node cluster is determined according to the access identifier, so that the server of the target network node is accessed according to the basic information of the target network node, the data of the storage space corresponding to the access identifier on the server of the target network node is further obtained, and the data is sent to the request sending terminal.
Optionally, in some embodiments, the access identity comprises a hierarchical identity of the target network node; step 205 includes the following sub-steps (sub-step 2051, sub-step 2052, sub-step 2053):
and step 2051, accessing the root node according to the basic information of the root node and forwarding the access request to the root node when the hierarchical identification of the network node is not matched with the hierarchical identification of the target network node.
In the embodiment of the application, under the condition that the hierarchical identification of the network node is not matched with the hierarchical identification of the target network node, the root node is accessed according to the basic information of the root node, and the access request is forwarded to the root node, so that the root node judges whether the hierarchical identification matched with the hierarchical identification of the target network node exists in a lower list of the root node according to the hierarchical identification of the target network node in the access request, and under the condition that the basic information of the first network node corresponding to the hierarchical identification matched with the hierarchical identification of the target network node exists in the lower list of the root node, the basic information of the first network node is sent to the network node.
It should be noted that the access identifier includes a hierarchy identifier of the target network node and an identifier of a storage space of a server of the target network node, for example, the access identifier is 1001.13.01/0001, where the hierarchy identifier of the target network node is 1001.13.01, and the identifier of the storage space of the server of the target network node is 0001.
The hierarchical identity of the network node is not matched with the hierarchical identity of the target network node, i.e. the hierarchical identity of the network node is not identical to the hierarchical identity of the target network node, and the hierarchical identity of the network node is also not identical to the prefix portion of the hierarchical identity of the target network node, e.g. the hierarchical identity of the network node is 1001.11, the hierarchical identity of the target network node is 1001.13.01, and the hierarchical identity of the target network node is not matched with the hierarchical identity of the target network node because the hierarchical identity of the network node is not identical to the hierarchical identity of the target network node, and the prefix portion of the hierarchical identity of the target network node is "1001.13" is not identical to "1001.11".
Optionally, in some embodiments, the network node is taken as the target network node in case the hierarchical identity of the network node is the same as the hierarchical identity of the target network node; in case the hierarchical identity of the network node matches the hierarchical identity of the target network node, i.e. in case the hierarchical identity of the network node is not identical to the hierarchical identity of the target network node, but the hierarchical identity of the network node is identical to the prefix part of the hierarchical identity of the target network node, the network node whose hierarchical identity is identical to or matches the hierarchical identity of the target network node is found from the lower list of network nodes, so that the network node whose hierarchical identity is identical to the hierarchical identity of the target network node is taken as the target network node.
Sub-step 2052, when obtaining basic information of a first network node corresponding to a hierarchical identifier matched with the hierarchical identifier of the target network node in the lower list of the root node, accessing the first network node according to the basic information of the first network node, and forwarding the access request to the first network node;
in the embodiment of the application, under the condition that the basic information of the first network node corresponding to the hierarchical identifier matched with the hierarchical identifier of the target network node is acquired in the lower list of the root node, the first network node is accessed according to the basic information of the first network node, and the access request is forwarded to the first network node, so that the first network node judges whether the lower list of the first network node has the same hierarchical identifier as the hierarchical identifier of the target network node according to the hierarchical identifier of the target network node in the access request, and under the condition that the lower list of the first network node has the basic information of the second network node corresponding to the hierarchical identifier identical to the hierarchical identifier of the target network node, the basic information of the second network node is sent to the network node.
It should be noted that, the hierarchy identifier of the first network node is matched with the hierarchy identifier of the target network node, that is, the hierarchy identifier of the first network node is different from the hierarchy identifier of the target network node, but the hierarchy identifier of the first network node is identical to the prefix portion of the hierarchy identifier of the target network node, for example, the hierarchy identifier of the first network node is 1001.13, the hierarchy identifier of the target network node is 1001.13.01, and since the hierarchy identifier of the first network node is different from the hierarchy identifier of the target network node, but the prefix portion "1001.13" of the hierarchy identifier of the target network node is identical to the hierarchy identifier "1001.13" of the first network node, the hierarchy identifier of the first network node is matched with the hierarchy identifier of the target network node.
Sub-step 2053, when obtaining the basic information of a second network node corresponding to the same hierarchical identifier as the hierarchical identifier of the target network node in the lower list of the first network node, using the second network node as the target network node.
In the embodiment of the application, under the condition that the basic information of the second network node corresponding to the same hierarchical identifier as the hierarchical identifier of the target network node is acquired from the lower list of the first network node, the second network node is taken as the target network node, so that the target network node in the network nodes of the node cluster is determined.
Optionally, in some embodiments, in a case where the basic information of the second network node corresponding to the hierarchical identifier matched with the hierarchical identifier of the target network node is obtained in the lower list of the first network node, the second network node is accessed according to the basic information of the second network node, and the access request is forwarded to the second network node, so that the second network node determines, according to the hierarchical identifier of the target network node in the access request, whether there is the same hierarchical identifier as the hierarchical identifier of the target network node in the lower list of the second network node, and in a case where the basic information of the third network node corresponding to the hierarchical identifier of the target network node is present in the lower list of the second network node, the step of determining the target network node is similar to the foregoing, and the method is not repeated herein, that is, regardless of which layer of the network hierarchy structure the target network node is found.
For the purposes of performing sub-steps 2051 through 2053, referring to fig. 4, in a hierarchical network architecture having four layers, a lower level network node of network node a is network node B, network node C, and network node D, a lower level network node of network node B is network node E, network node F, and network node G, a lower level network node of network node F is network node I, a lower level network node of network node D is network node H, network node a is a root node, and network nodes E, I, G, C, and H are leaf nodes.
The hierarchy of network node a is 1001, the hierarchy of network node B is 1001.11, the hierarchy of network node C is 1001.12, the hierarchy of network node D is 1001.13, the hierarchy of network node E is 1001.11.01, the hierarchy of network node F is 1001.11.02, the hierarchy of network node G is 1001.11.03, the hierarchy of network node H is 1001.13.01, and the hierarchy of network node I is 1001.11.02.a1; the hierarchy identifications in the lower list of network node a include the hierarchy identification 1001.11 of network node B, the hierarchy identification 1001.12 of network node C, the hierarchy identification 1001.13 of network node D; the hierarchy identities in the lower list of network node B include the hierarchy identity 1001.11.01 of network node E, the hierarchy identity 1001.11.02 of network node F, the hierarchy identity 1001.11.03 of network node G; the hierarchy identification in the lower list of network node F comprises the hierarchy identification 1001.11.02.a1 of network node I; the hierarchical identifications in the lower list of network node D include the hierarchical identification 1001.13.01 of network node H.
The request sending terminal sends the access request to a network node E closest to a network path of the request sending terminal, and the network node E obtains an access identifier 1001.13.01/0001 in the access request in response to the access request of the request sending terminal; because the hierarchical identifier 1001.11.01 of the network node E is not matched with the access identifier 1001.13.01/0001, the network node E accesses the network node a (i.e., the root node) according to the basic information of the root node, and forwards the access request to the network node a; because the hierarchical identifier 1001.13 of the network node D in the lower list of the network node a is matched with the access identifier 1001.13.01/0001, the network node a sends the basic information of the network node D to the network node E, and the network node E accesses the network node D according to the basic information of the network node D and forwards the access request to the network node D; since the hierarchical identifier 1001.13.01 of the network node H in the lower list of the network node D is the same as the hierarchical identifier 1001.13.01 of the access identifier 1001.13.01/0001, the network node H is taken as the target network node; and then, the basic information of the network node H is sent to the network node E, the network node E accesses a server of the network node H according to the basic information of the network node H, acquires data of a storage space corresponding to the access identifier on the server of the network node H, and sends the data to a request sending end.
It is possible to determine a target network node among the network nodes of the node cluster by sub-steps 2051 to 2053 in order to achieve access of the target network node.
Step 206, accessing the server of the target network node according to the basic information of the target network node, obtaining the data of the storage space corresponding to the access identifier on the server of the target network node, and sending the data to the request sending terminal.
In the embodiment of the application, according to the basic information of the target network node, the server of the target network node is accessed, the data of the storage space corresponding to the access identifier on the server of the target network node is obtained, and the data is sent to the request sending end so as to finish the access of the target network node.
The access of the target network node may be achieved by performing steps 204 to 206, such that the request issuing side obtains the data of the target network node.
Optionally, in some embodiments, after step 203, the method further comprises the following steps (step 207, step 208):
step 207, obtaining the health status of the network node.
In the embodiment of the application, the health state of the network node is obtained so as to monitor the health state of the network node in real time, and the network node is further processed under the condition that the health state of the network node is abnormal.
Optionally, in some embodiments, after step 207, the method further comprises the step of (step 209):
step 209, uploading the health status of the lower network node acquired by the network node and the health status of other network nodes uploaded by the lower network node to the upper network node of the network node when the network node has the upper network node and the lower network node.
It should be noted that, the health status of the lower network node and the health status of other network nodes uploaded by the lower network node are obtained by the network node and uploaded to the upper network node of the network node, that is, the network node uploads the health status of all sub-nodes below the network node to the upper network node of the network node, where the sub-nodes are network nodes below the tree structure of the network node; the root node has the health status of all network nodes in the node cluster.
For example, referring to fig. 5, in the network hierarchy architecture with four layers, the lower level network nodes of the network node a are the network node B, the network node C, and the network node D, the lower level network nodes of the network node B are the network node E, the network node F, and the network node G, the lower level network nodes of the network node F are the network node I, the lower level network nodes of the network node D are the network node H, the network node a is the root node, and the network node E, the network node I, the network node G, the network node C, and the network node H are the leaf nodes; the sub-nodes of the network node A are a network node B, a network node C, a network node D, a network node E, a network node F, a network node G, a network node H and a network node I, the sub-nodes of the network node B are a network node E, a network node F, a network node G and a network node I, and the sub-nodes of the network node D are a network node H.
The network node I can upload the health status of the network node I to the network node F; the network node F uploads the health status of the network node F and the health status of the network node I to the network node B; the network node E uploads the health status of the network node E to the network node B; the network node G uploads the health status of the network node G to the network node B; the network node B uploads the health status of the network node B, the health status of the network node E, the health status of the network node F, the health status of the network node G and the health status of the network node I to the network node A; the network node C uploads the health state of the network node C to the network node A; the network node H uploads the health status of the network node H to the network node D; the network node D uploads the health status of the network node D and the health status of the network node H to the network node a.
In the embodiment of the application, under the condition that the network node is provided with the upper network node and the lower network node, the health state of the lower network node and the health states of other network nodes uploaded by the lower network node acquired by the network node are uploaded to the upper network node of the network node, so that the upper network node can acquire the health states of all the child nodes of the upper network node in real time.
Step 208, uploading the health status of the network node to a superior network node of the network node.
In the embodiment of the application, the health state of the network node is uploaded to the upper-level network node of the network node, so that the upper-level network node can acquire the health state of the network node in real time.
By executing steps 207 to 208, the upper network node knows the health status of the network node in real time, so as to further process the network node in case that the health status of the network node is abnormal.
Optionally, in some embodiments, after step 203, the method further comprises the step of (step 209):
step 209, uploading the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node acquired by the network node to the upper network node of the network node when the network node has the upper network node and the lower network node.
It should be noted that, the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node are obtained by the network node and uploaded to the upper network node of the network node, that is, the network node uploads the basic information of all sub-nodes below the network node to the upper network node of the network node; the root node has basic information of all network nodes in the node cluster.
For example, referring to fig. 3, in the network hierarchy architecture with four levels, the lower level network nodes of the network node a are the network node B, the network node C, and the network node D, the lower level network nodes of the network node B are the network node E, the network node F, and the network node G, the lower level network nodes of the network node F are the network node I, the lower level network nodes of the network node D are the network node H, the network node a is the root node, and the network node E, the network node I, the network node G, the network node C, and the network node H are the leaf nodes; the sub-nodes of the network node A are a network node B, a network node C, a network node D, a network node E, a network node F, a network node G, a network node H and a network node I, the sub-nodes of the network node B are a network node E, a network node F, a network node G and a network node I, and the sub-nodes of the network node D are a network node H.
The network node F uploads the basic information of the network node I to the network node B; the network node B uploads the basic information of the network node E, the basic information of the network node F, the basic information of the network node G and the basic information of the network node I to the network node A; the network node D uploads the basic information of the network node H to the network node a.
In the embodiment of the application, under the condition that the network node is provided with an upper network node and a lower network node, the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node acquired by the network node are uploaded to the upper network node of the network node, so that the upper network node can be provided with the basic information of all the sub-nodes of the upper network node.
Optionally, in some embodiments, after step 209, the method further comprises the following steps (step 210, step 211):
step 210, deleting the hierarchical identifier of the lower network node in the lower list of the network node if the first health status of the lower network node of the network node is abnormal.
In the embodiment of the application, under the condition that the first health state of the lower network node of the network node is abnormal, the hierarchical identifier of the lower network node in the lower list of the network node is deleted, so that the lower network node with the abnormal health state is not accessed, and other network nodes in the node cluster are not influenced by the lower network node with the abnormal health state.
It should be noted that, in the case that the server of the lower network node fails (e.g., is down), the first health state of the lower network node is abnormal.
Step 211, adding the first level identifier in the lower list of the lower network node of the network node to the lower list of the network node.
In the embodiment of the application, the first hierarchical identifier in the lower-level list of the network node is added into the lower-level list of the network node, so that the network node corresponding to the first hierarchical identifier in the lower-level list of the lower-level network node can be normally accessed, and the network node corresponding to the first hierarchical identifier in the lower-level list of the lower-level network node is not affected by the lower-level network node with abnormal health state.
For example, referring to fig. 6, in the network hierarchy architecture with four hierarchical layers, the lower level network nodes of the network node a are the network node B, the network node C, and the network node D, the lower level network nodes of the network node B are the network node E, the network node F, and the network node G, the lower level network nodes of the network node F are the network node I, the lower level network nodes of the network node D are the network node H, the network node a is the root node, and the network node E, the network node I, the network node G, the network node C, and the network node H are the leaf nodes.
The hierarchy of network node a is 1001, the hierarchy of network node B is 1001.11, the hierarchy of network node C is 1001.12, the hierarchy of network node D is 1001.13, the hierarchy of network node E is 1001.11.01, the hierarchy of network node F is 1001.11.02, the hierarchy of network node G is 1001.11.03, the hierarchy of network node H is 1001.13.01, and the hierarchy of network node I is 1001.11.02.a1; the hierarchy identifications in the lower list of network node a include the hierarchy identification 1001.11 of network node B, the hierarchy identification 1001.12 of network node C, the hierarchy identification 1001.13 of network node D; the hierarchy identities in the lower list of network node B include the hierarchy identity 1001.11.01 of network node E, the hierarchy identity 1001.11.02 of network node F, the hierarchy identity 1001.11.03 of network node G; the hierarchy identification in the lower list of network node F comprises the hierarchy identification 1001.11.02.a1 of network node I; the hierarchical identifications in the lower list of network node D include the hierarchical identification 1001.13.01 of network node H.
In the case that the first health status of the network node B is abnormal, when the network hierarchy is shown on the left of the arrow in fig. 6, deleting the hierarchy identifier 1001.11 of the network node B in the lower list of the network node a; the hierarchical identity 1001.11.01 of network node E, the hierarchical identity 1001.11.02 of network node F, and the hierarchical identity 1001.11.03 of network node G in the lower list of network node B are then added to the lower list of network node a, where the network hierarchical architecture is shown to the right of the arrow in fig. 6.
By executing steps 210 to 211, it may be achieved that the lower network node with the abnormal health state is not accessed, and the network node corresponding to the first level identifier in the lower list of the lower network node may be normally accessed, so that it is ensured that other network nodes in the node cluster are not affected by the lower network node with the abnormal health state.
Optionally, in some embodiments, after step 211, the method further comprises the following steps (step 212, step 213, step 214):
step 212, obtaining a second health status of a subordinate network node of the network node.
In the embodiment of the application, the second health state of the lower-level network node of the network node is obtained, so that the lower-level network node of the network node is further processed according to the second health state.
Step 213, deleting the first level identifier in the lower list of the network node when the second health status is normal.
In the embodiment of the present application, the first hierarchical identifier in the lower-level list of the network node is deleted under the condition that the second health status is normal, so as to restore the network hierarchical architecture of the lower-level network node of the network node.
It should be noted that, in the case that the server of the lower network node of the network node is operating normally, the second health state of the lower network node of the network node is normal.
Step 214, adding the hierarchical identifier of the lower level network node of the network node to the lower level list of the network node.
In the embodiment of the application, the hierarchical identification of the lower-level network node of the network node is added into the lower-level list of the network node, so that the network hierarchical architecture of the lower-level network node of the network node is restored.
By executing steps 212 to 214, it is possible to restore the network hierarchy of the lower network node of the network node in case that the server of the lower network node of the network node resumes normal operation.
In summary, in the embodiment of the present application, the networking instruction is obtained; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node so as to realize service interaction among the network nodes, flexible networking can be carried out according to service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is more, the applicability is improved, and the problems that in the prior art, the network nodes are networked according to a given network hierarchy architecture, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor are solved.
Fig. 7 is a block diagram of a communication device of a network node according to an embodiment of the present application, as shown in fig. 7, the device 300 includes:
a first obtaining module 301, configured to obtain a networking instruction;
a generating module 302, configured to generate, according to the networking instruction, a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier, where the lower list and the hierarchical identifier are used to determine, when an access request of a request sending end to a target network node is obtained, the target network node; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node;
a second obtaining module 303, configured to obtain basic information of a lower network node of the network node and basic information of a root node in the node cluster, thereby completing networking; the basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
Optionally, the apparatus 300 further comprises:
the third acquisition module is used for responding to an access request of a request sending end and acquiring an access identifier in the access request;
A determining module, configured to determine a target network node in the network nodes of the node cluster according to the access identifier;
the access module is used for accessing the server of the target network node according to the basic information of the target network node, acquiring the data of the storage space corresponding to the access identifier on the server of the target network node, and sending the data to the request sending end.
Optionally, the access identity comprises a hierarchical identity of the target network node; the determining module specifically comprises:
a first access sub-module, configured to access the root node according to the basic information of the root node and forward the access request to the root node when the level identifier of the network node is not matched with the level identifier of the target network node;
a second access sub-module, configured to access the first network node according to the basic information of the first network node and forward the access request to the first network node when the basic information of the first network node corresponding to the hierarchical identifier matched with the hierarchical identifier of the target network node is acquired in the lower list of the root node;
A determining submodule, configured to take the second network node as the target network node when obtaining basic information of the second network node corresponding to the same hierarchical identifier as the hierarchical identifier of the target network node in the lower list of the first network node.
Optionally, the apparatus 300 further comprises:
a fourth obtaining module, configured to obtain a health status of the network node;
and the first uploading module is used for uploading the health state of the network node to an upper network node of the network node.
Optionally, the apparatus 300 further comprises:
and the second uploading module is used for uploading the health state of the lower network node and the health state of other network nodes uploaded by the lower network node acquired by the network node to the upper network node of the network node under the condition that the network node is provided with the upper network node and the lower network node.
Optionally, the apparatus 300 further comprises:
and the third uploading module is used for uploading the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node to the upper network node of the network node when the network node is provided with the upper network node and the lower network node.
Optionally, the apparatus 300 further comprises:
a first state processing module, configured to delete a hierarchical identifier of a lower network node in a lower list of the network node when a first health state of the lower network node of the network node is abnormal;
and the joining module is used for joining the first level identifier in the lower-level list of the lower-level network node of the network node into the lower-level list of the network node.
Optionally, the apparatus 300 further comprises:
a fifth obtaining module, configured to obtain a second health state of a lower network node of the network node;
a second state processing module, configured to delete a first level identifier in a lower list of the network node when the second health state is normal;
and the third state processing module is used for adding the hierarchical identification of the lower-level network node of the network node into the lower-level list of the network node.
Optionally, the apparatus 300 further comprises:
a sixth obtaining module, configured to obtain basic information of a lower network node of the network node when the network node is a root node;
and a seventh acquisition module, configured to acquire the basic information of the root node when the network node is a leaf node.
Optionally, the network node is the network node closest to the request sending end.
The communication device of the network node in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The communication device of the network node in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The communication device of the network node provided in the embodiment of the present application can implement each process implemented by the communication device of the network node in the method embodiment of fig. 1, and in order to avoid repetition, a description is omitted here.
According to the embodiment of the application, service interaction between network nodes can be realized, flexible networking can be performed according to the service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is multiple, the applicability is improved, and the problem that in the prior art, the network nodes are networked according to a given network hierarchy structure for realizing the service interaction between the network nodes, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor is solved.
Optionally, the embodiment of the present application further provides an electronic device, including a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction when executed by the processor implements each process of the communication method embodiment of the network node, and the process can achieve the same technical effect, and in order to avoid repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 410 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the processor 410 is configured to obtain a networking instruction;
generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes;
Acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node; the root node's basic information is used for the network node to access the root node.
In the embodiment of the application, the networking instruction is acquired; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node so as to realize service interaction among the network nodes, flexible networking can be carried out according to service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is more, the applicability is improved, and the problems that in the prior art, the network nodes are networked according to a given network hierarchy architecture, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor are solved.
Optionally, the processor 410 is further configured to, in response to an access request from a request sending end, obtain an access identifier in the access request; determining a target network node in the network nodes of the node cluster according to the access identifier; according to the basic information of the target network node, accessing a server of the target network node, acquiring data of a storage space corresponding to the access identifier on the server of the target network node, and sending the data to the request sending terminal.
Optionally, the access identity comprises a hierarchical identity of the target network node; the processor 410 is further configured to access the root node according to the basic information of the root node and forward the access request to the root node, if the level identifier of the network node does not match the level identifier of the target network node; accessing the first network node according to the basic information of the first network node under the condition that the basic information of the first network node corresponding to the hierarchical identification matched with the hierarchical identification of the target network node is acquired in the lower list of the root node, and forwarding the access request to the first network node; and taking the second network node as the target network node under the condition that the basic information of the second network node corresponding to the same hierarchical identification as the hierarchical identification of the target network node is acquired from the lower list of the first network node.
Optionally, the processor 410 is further configured to obtain a health status of the network node; and uploading the health status of the network node to a superior network node of the network node.
Optionally, the processor 410 is further configured to upload, if the network node has an upper network node and a lower network node, the health status of the lower network node acquired by the network node and the health status of other network nodes uploaded by the lower network node to the upper network node of the network node.
Optionally, the processor 410 is further configured to upload, in a case where the network node has an upper network node and a lower network node, the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node acquired by the network node to the upper network node of the network node.
Optionally, the processor 410 is further configured to delete the hierarchical identifier of the lower network node in the lower list of the network node if the first health status of the lower network node of the network node is abnormal; and adding the first-level identification in the lower-level list of the lower-level network node of the network node into the lower-level list of the network node.
Optionally, the processor 410 is further configured to obtain a second health status of a lower network node of the network node; deleting a first level identifier in a lower list of the network node under the condition that the second health state is normal; and adding the hierarchical identification of the lower network nodes of the network nodes into the lower list of the network nodes.
Optionally, the processor 410 is further configured to obtain, if the network node is a root node, basic information of a lower network node of the network node; and under the condition that the network node is a leaf node, acquiring the basic information of the root node.
Optionally, the network node is the network node closest to the request sending end.
In the embodiment of the application, the networking instruction is acquired; generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining the target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list of hierarchical identifications of lower network nodes including network nodes; acquiring basic information of a lower network node of a network node and basic information of a root node in a node cluster, thereby completing networking; the basic information of the lower network node is used for the network node to access the lower network node, the basic information of the root node is used for the network node to access the root node so as to realize service interaction among the network nodes, flexible networking can be carried out according to service scenes of the network nodes, the variety of the service scenes of the applicable network nodes is more, the applicability is improved, and the problems that in the prior art, the network nodes are networked according to a given network hierarchy architecture, the variety of the service scenes of the applicable network nodes is less, and the applicability is poor are solved.
It should be appreciated that in embodiments of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, with the graphics processor 4041 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes at least one of a touch panel 4071 and other input devices 4072. The touch panel 4071 is also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 409 may include volatile memory or nonvolatile memory, or the memory 409 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 409 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 410 may include one or more processing units; optionally, the processor 410 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the communication method embodiment of the network node, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, implement each process of the communication method embodiment of the network node, and achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (13)

1. A communication method of a network node, applied to a network node in a node cluster, the method comprising:
acquiring a networking instruction;
generating a hierarchical identifier of the network node and a lower list corresponding to the hierarchical identifier according to the networking instruction, wherein the lower list and the hierarchical identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node;
acquiring basic information of a lower network node of the network node and basic information of a root node in the node cluster, thereby completing networking; the basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
2. The method according to claim 1, wherein after the obtaining the basic information of the network node's subordinate network node and the basic information of the root node, the method further comprises:
responding to an access request of a request sending end, and acquiring an access identifier in the access request;
Determining a target network node in the network nodes of the node cluster according to the access identifier;
according to the basic information of the target network node, accessing a server of the target network node, acquiring data of a storage space corresponding to the access identifier on the server of the target network node, and sending the data to the request sending terminal.
3. The method according to claim 2, wherein the access identity comprises a hierarchical identity of the target network node; the determining, according to the access identifier, a target network node in the network nodes of the node cluster includes:
accessing the root node according to the basic information of the root node and forwarding the access request to the root node under the condition that the hierarchical identification of the network node is not matched with the hierarchical identification of the target network node;
accessing the first network node according to the basic information of the first network node under the condition that the basic information of the first network node corresponding to the hierarchical identification matched with the hierarchical identification of the target network node is acquired in the lower list of the root node, and forwarding the access request to the first network node;
And taking the second network node as the target network node under the condition that the basic information of the second network node corresponding to the same hierarchical identification as the hierarchical identification of the target network node is acquired from the lower list of the first network node.
4. The method according to claim 1, wherein after the obtaining the basic information of the network node's subordinate network node and the basic information of the root node, the method further comprises:
acquiring the health status of the network node;
and uploading the health status of the network node to a superior network node of the network node.
5. The method according to claim 4, wherein after said obtaining the health status of the network node, the method further comprises:
and uploading the health state of the lower network node acquired by the network node and the health states of other network nodes uploaded by the lower network node to the upper network node of the network node under the condition that the network node is provided with the upper network node and the lower network node.
6. The method according to claim 1, wherein after the obtaining the basic information of the network node's subordinate network node and the basic information of the root node, the method further comprises:
And uploading the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node acquired by the network node to the upper network node of the network node under the condition that the network node is provided with the upper network node and the lower network node.
7. The method according to claim 6, wherein in the case that the network node has an upper network node and a lower network node, the method further comprises, after uploading the basic information of the lower network node and the basic information of other network nodes uploaded by the lower network node acquired by the network node to the upper network node of the network node:
deleting the hierarchical identifier of the lower network node in the lower list of the network node under the condition that the first health state of the lower network node of the network node is abnormal;
and adding the first-level identification in the lower-level list of the lower-level network node of the network node into the lower-level list of the network node.
8. The method of claim 7, wherein after said adding a first hierarchical identity in a lower list of lower network nodes of said network node to said lower list of network nodes, said method further comprises:
Acquiring a second health state of a subordinate network node of the network node;
deleting a first level identifier in a lower list of the network node under the condition that the second health state is normal;
and adding the hierarchical identification of the lower network nodes of the network nodes into the lower list of the network nodes.
9. The method of claim 1, wherein after the generating the hierarchy identification of the network node and the lower list corresponding to the hierarchy identification according to the networking instruction, the method further comprises:
under the condition that the network node is a root node, acquiring basic information of a lower network node of the network node;
and under the condition that the network node is a leaf node, acquiring the basic information of the root node.
10. The method according to claim 2, wherein the network node is the network node closest to the request issuing end.
11. A communication device of a network node, applied to a network node in a node cluster, the device comprising:
the first acquisition module is used for acquiring networking instructions;
the generation module is used for generating a hierarchy identifier of the network node and a lower list corresponding to the hierarchy identifier according to the networking instruction, wherein the lower list and the hierarchy identifier are used for determining a target network node when an access request of a request sending end to the target network node is acquired; the lower list is a list comprising hierarchical identifications of lower network nodes of the network node;
The second acquisition module is used for acquiring basic information of a lower network node of the network node and basic information of a root node in the node cluster so as to complete networking; the basic information of the subordinate network node is used for the network node to access the subordinate network node; the basic information of the root node is used for the network node to access the root node.
12. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the communication method of a network node according to any of claims 1 to 10.
13. A readable storage medium, characterized in that it has stored thereon a program or instructions which, when executed by a processor, implement the steps of the communication method of a network node according to any of claims 1 to 10.
CN202310687603.2A 2023-06-12 2023-06-12 Communication method and device of network node, electronic equipment and readable storage medium Pending CN116418651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310687603.2A CN116418651A (en) 2023-06-12 2023-06-12 Communication method and device of network node, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310687603.2A CN116418651A (en) 2023-06-12 2023-06-12 Communication method and device of network node, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116418651A true CN116418651A (en) 2023-07-11

Family

ID=87049616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310687603.2A Pending CN116418651A (en) 2023-06-12 2023-06-12 Communication method and device of network node, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116418651A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409516A (en) * 2001-09-28 2003-04-09 深圳市中兴通讯股份有限公司上海第二研究所 Dynamic networking method for monitoring system
WO2008128460A1 (en) * 2007-04-20 2008-10-30 Huawei Technologies Co., Ltd. A dual-mode relay station and network access method, mode conversion method and control site thereof
CN102056184A (en) * 2009-10-30 2011-05-11 中兴通讯股份有限公司 Radio remote unit link self-adaption method and device
CN102420696A (en) * 2011-08-17 2012-04-18 大唐移动通信设备有限公司 Dynamic networking method, command center node and system
CN103476053A (en) * 2013-09-11 2013-12-25 四川九洲电器集团有限责任公司 Failure equipment intelligent log-out method based on ZigBee network
CN103874291A (en) * 2014-03-04 2014-06-18 北京世壮物联科技有限公司 Power line carrier-based intelligent networking control system and method
CN104539315A (en) * 2014-12-02 2015-04-22 上海电器科学研究院 Rapid networking method for power line carrier communication
CN104980303A (en) * 2015-06-15 2015-10-14 北京邮电大学 Node failure repair method in multi-level tree network
CN107948339A (en) * 2016-10-12 2018-04-20 阿里巴巴集团控股有限公司 A kind of network addressing method, equipment and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409516A (en) * 2001-09-28 2003-04-09 深圳市中兴通讯股份有限公司上海第二研究所 Dynamic networking method for monitoring system
WO2008128460A1 (en) * 2007-04-20 2008-10-30 Huawei Technologies Co., Ltd. A dual-mode relay station and network access method, mode conversion method and control site thereof
CN102056184A (en) * 2009-10-30 2011-05-11 中兴通讯股份有限公司 Radio remote unit link self-adaption method and device
CN102420696A (en) * 2011-08-17 2012-04-18 大唐移动通信设备有限公司 Dynamic networking method, command center node and system
CN103476053A (en) * 2013-09-11 2013-12-25 四川九洲电器集团有限责任公司 Failure equipment intelligent log-out method based on ZigBee network
CN103874291A (en) * 2014-03-04 2014-06-18 北京世壮物联科技有限公司 Power line carrier-based intelligent networking control system and method
CN104539315A (en) * 2014-12-02 2015-04-22 上海电器科学研究院 Rapid networking method for power line carrier communication
CN104980303A (en) * 2015-06-15 2015-10-14 北京邮电大学 Node failure repair method in multi-level tree network
CN107948339A (en) * 2016-10-12 2018-04-20 阿里巴巴集团控股有限公司 A kind of network addressing method, equipment and device

Similar Documents

Publication Publication Date Title
CN110226166B (en) Apparatus and method for providing virtual devices
JP2005346543A (en) Method of inheriting community, community management apparatus, and community management program
CN108664914B (en) Face retrieval method, device and server
CN112000541A (en) Buried point data reporting method and device, computer equipment and storage medium
CN107729765B (en) Multimedia data management method and device, storage medium and electronic equipment
CN114694226B (en) Face recognition method, system and storage medium
CN113940037B (en) Resource subscription method, device, computer equipment and storage medium
CN110197075A (en) Resource access method, calculates equipment and storage medium at device
CN111917824B (en) Internet of things equipment configuration method and device, computer equipment and storage medium
CN113014623A (en) Method and device for processing real-time streaming data of embedded point, computer equipment and storage medium
WO2022057525A1 (en) Method and device for data retrieval, electronic device, and storage medium
US20140172965A1 (en) Unified social graph
CN108696418B (en) Privacy protection method and device in social network
CN103023704A (en) Method and system for accessing virtual network service equipment
CN116578984A (en) Risk management and control method, system, equipment and medium for business data
CN116418651A (en) Communication method and device of network node, electronic equipment and readable storage medium
CN107992489A (en) A kind of data processing method and server
EP3616092A1 (en) Media sharing based on identified physical objects
CN110457600B (en) Method, device, storage medium and computer equipment for searching target group
CN113890753A (en) Digital identity management method, device, system, computer equipment and storage medium
CN116431863B (en) Digital object generation method and device, electronic equipment and readable storage medium
CN115811550B (en) Attack information presentation method, device, platform and storage medium
CN107305610B (en) Access path processing method and device, and automaton identification method, device and system
CN112560112B (en) Block chain based information shielding method, device, equipment and readable storage medium
CN108989245A (en) User data storage method and device

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

Application publication date: 20230711

RJ01 Rejection of invention patent application after publication