CN113726647A - Identification analysis method and device - Google Patents

Identification analysis method and device Download PDF

Info

Publication number
CN113726647A
CN113726647A CN202111006592.4A CN202111006592A CN113726647A CN 113726647 A CN113726647 A CN 113726647A CN 202111006592 A CN202111006592 A CN 202111006592A CN 113726647 A CN113726647 A CN 113726647A
Authority
CN
China
Prior art keywords
node
abnormal
enterprise
target
routing table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111006592.4A
Other languages
Chinese (zh)
Other versions
CN113726647B (en
Inventor
李希金
李红五
安岗
周晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111006592.4A priority Critical patent/CN113726647B/en
Publication of CN113726647A publication Critical patent/CN113726647A/en
Application granted granted Critical
Publication of CN113726647B publication Critical patent/CN113726647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results

Landscapes

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

Abstract

The invention provides an identification analysis method and device, wherein the method comprises the following steps: periodically detecting whether each enterprise node is abnormal or not, and updating a pre-stored routing table according to an abnormal detection result; receiving an identification analysis request which is sent by a recursion node and carries a target identification code; judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table; if yes, sending a preset data packet for indicating that the target enterprise node is abnormal to the recursion node, so that the recursion node returns preset prompt information to the query terminal. The method and the device can solve the problems that in the related art, when the enterprise node fails to provide the identification analysis service, the recursive node resource is easily exhausted and the service is interrupted due to the lack of detection and response processing measures for the condition.

Description

Identification analysis method and device
Technical Field
The invention relates to the field of industrial internet, in particular to an identification analysis method and device.
Background
The industrial internet identification analysis system has more related nodes, the nodes are in a relation of ring-to-ring buckling, and when one link breaks down and exits abnormally, the whole information chain can not provide identification analysis service continuously. The most common problem is that when an enterprise node fails to provide an identifier resolution service, because the whole identifier resolution system lacks detection and handling measures for the situation, after acquiring the address of the enterprise node to which the identifier belongs from the secondary node, the recursive node still sends an identifier resolution request to the recursive node and waits for the resolution result, but cannot receive the response of the enterprise node at this time, the recursive node can only restart the resolution request after timeout, link resources cannot be released in the process, which is similar to a denial of service attack in DNS service, and when a large number of resolution requests for abnormal nodes occur, all resources of the recursive node are exhausted, so that the normal service cannot be provided, and large-area service interruption is caused.
Disclosure of Invention
The present invention provides an identifier parsing method and apparatus, which are used to solve the problems that when an enterprise node fails and cannot provide an identifier parsing service, recursive node resources are easily exhausted and service is interrupted due to lack of detection and handling measures for the situation in the related art.
In a first aspect, the present invention provides an identifier parsing method, applied to a secondary node, where the method includes:
periodically detecting whether each enterprise node is abnormal or not, and updating a pre-stored routing table according to an abnormal detection result;
receiving an identification analysis request which is sent by a recursion node and carries a target identification code;
judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
if yes, sending a preset data packet for indicating that the target enterprise node is abnormal to the recursion node, so that the recursion node returns preset prompt information to the query terminal.
Preferably, the routing table includes node identifiers and node states corresponding to the enterprise nodes, and the periodically detecting whether the enterprise nodes are abnormal and updating the pre-stored routing table according to the abnormal detection result specifically includes:
sending an empty request packet to an enterprise node corresponding to each node identifier in the routing table at intervals of a preset time interval, and starting a preset first timer;
within the timing time of the first timer, if an empty response packet which is sent by a certain enterprise node and corresponds to the empty request packet is received, determining that the certain enterprise node is not abnormal, otherwise, determining that the certain enterprise node is abnormal;
and marking the node state of the enterprise node which is determined to be abnormal in the routing table as normal, otherwise, marking the node state as abnormal.
Preferably, while periodically detecting whether each enterprise node is abnormal and updating the pre-stored routing table according to the abnormal detection result, the method further includes:
setting a second timer for each enterprise node, wherein the timing time of the second timer is less than the preset time interval;
and respectively starting the corresponding second timer for each enterprise node, marking the node state of the corresponding enterprise node in the routing table as abnormal if an empty query packet sent by the corresponding enterprise node is not received within the timing time of the second timer, and resetting the second timer to restart timing after the timing of the second timer is finished if the node state of the corresponding enterprise node in the routing table is abnormal.
Preferably, the determining, according to the routing table, whether the target enterprise node corresponding to the target identification code is abnormal specifically includes:
acquiring a target enterprise node corresponding to the target identification code;
judging whether the node state corresponding to the target enterprise node in the routing table is marked as abnormal or not;
if so, judging that the target enterprise node is abnormal, otherwise, judging that the target enterprise node is not abnormal.
Preferably, if the target enterprise node corresponding to the target identification code is non-abnormal, the method further includes:
acquiring an enterprise analysis address corresponding to the target enterprise node;
and sending the enterprise analysis address to the recursive node so that the recursive node sends a product analysis request to the target enterprise node corresponding to the enterprise analysis address, and the recursive node returns the product analysis information to the query terminal after receiving the product analysis information sent by the target enterprise node based on the product analysis request.
In a second aspect, the present invention provides an identifier resolution method, applied to a recursive node, where the method includes:
receiving an identification analysis request which is sent by an inquiry terminal and carries a target identification code;
sending the identification analysis request to a secondary node so that the secondary node judges whether the target enterprise node corresponding to the target identification code is abnormal or not according to a pre-stored routing table;
receiving a preset data packet sent by the secondary node when the target enterprise node is judged to be abnormal, wherein the preset data packet is used for indicating that the target enterprise node is abnormal;
and returning preset prompt information to the inquiry terminal according to the preset data packet.
Preferably, the method further comprises:
receiving an enterprise analysis address sent by the secondary node when the target enterprise node is judged to be non-abnormal;
sending a product analysis request to the target enterprise node corresponding to the enterprise analysis address;
and receiving product analysis information sent by the target enterprise node based on the product analysis request, and returning the product analysis information to the inquiry terminal.
In a third aspect, the present invention provides an identifier resolution apparatus, which is disposed at a secondary node, and includes:
the anomaly detection module is used for periodically detecting whether each enterprise node is abnormal or not and updating a prestored routing table according to an anomaly detection result;
the request receiving module is used for receiving an identification analysis request which is sent by the recursion node and carries a target identification code;
the abnormity judgment module is connected with the abnormity detection module and the request receiving module and is used for judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
and the first sending module is used for sending a preset data packet for indicating the abnormity of the target enterprise node to the recursion node when the judgment result of the abnormity judgment module is yes, so that the recursion node returns preset prompt information to the query terminal.
In a fourth aspect, the present invention provides an identifier resolution apparatus, disposed at a recursive node, the apparatus including:
the first receiving module is used for receiving an identification analysis request which is sent by the query terminal and carries a target identification code;
the request sending module is connected with the first receiving module and used for sending the identification analysis request to a secondary node so that the secondary node can judge whether the target enterprise node corresponding to the target identification code is abnormal or not according to a pre-stored routing table;
the second receiving module is connected with the request sending module and used for receiving a preset data packet sent by the secondary node when the target enterprise node is judged to be abnormal, and the preset data packet is used for indicating that the target enterprise node is abnormal;
and the information returning module is connected with the second receiving module and used for returning preset prompt information to the inquiry terminal according to the preset data packet.
In a fifth aspect, the present invention provides an identifier resolution apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the identifier resolution method according to the first aspect or the second aspect.
The invention provides an identification analysis method and a device, wherein a secondary node periodically detects whether each enterprise node is abnormal or not, and updates a prestored routing table according to an abnormal detection result, when the secondary node receives an identification analysis request which is sent by a recursion node and carries a target identification code, firstly, whether a target enterprise node corresponding to the target identification code is abnormal or not is judged according to the routing table, and when the judgment result is abnormal, an enterprise analysis address corresponding to the target enterprise node is not returned to the secondary node, but a preset data packet for indicating the abnormality of the target enterprise node is sent to the secondary node, so that the recursion node directly returns preset prompt information to a query terminal after receiving the preset data packet to prompt a user that the analysis cannot be carried out currently, the protection of the recursion node is realized, and the problem that when the enterprise node fails to provide identification analysis service in the related technology is solved, due to the lack of detection and handling measures for the situation, the problems of resource exhaustion and service interruption of the recursive nodes are easily caused.
Drawings
FIG. 1: a flow chart of an identifier resolution method according to embodiment 1 of the present invention;
FIG. 2: a flow chart of an identifier resolution method in embodiment 2 of the present invention;
FIG. 3: is a schematic structural diagram of an identifier resolution apparatus in embodiment 3 of the present invention;
FIG. 4: is a schematic structural diagram of an identifier resolution apparatus in embodiment 4 of the present invention;
FIG. 5: a schematic structural diagram of an identifier resolution apparatus in embodiment 5 of the present invention is shown.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following detailed description will be made with reference to the accompanying drawings.
It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention and are not limiting of the invention.
It is to be understood that the embodiments and features of the embodiments can be combined with each other without conflict.
It is to be understood that, for the convenience of description, only parts related to the present invention are shown in the drawings of the present invention, and parts not related to the present invention are not shown in the drawings.
It should be understood that each unit and module related in the embodiments of the present invention may correspond to only one physical structure, may also be composed of multiple physical structures, or multiple units and modules may also be integrated into one physical structure.
It will be understood that, without conflict, the functions, steps, etc. noted in the flowchart and block diagrams of the present invention may occur in an order different from that noted in the figures.
It is to be understood that the flowchart and block diagrams of the present invention illustrate the architecture, functionality, and operation of possible implementations of systems, apparatus, devices and methods according to various embodiments of the present invention. Each block in the flowchart or block diagrams may represent a unit, module, segment, code, which comprises executable instructions for implementing the specified function(s). Furthermore, each block or combination of blocks in the block diagrams and flowchart illustrations can be implemented by a hardware-based system that performs the specified functions or by a combination of hardware and computer instructions.
It is to be understood that the units and modules involved in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware, for example, the units and modules may be located in a processor.
Summary of the application
The industrial internet identification resolution system is an important component of an industrial internet network system, is a neural center for supporting interconnection and intercommunication of the industrial internet, and has the function similar to a domain name resolution system (DNS) in the field of the internet. The identification analysis system is one of core infrastructures for safe operation of the global industrial internet, and by endowing each object with a digital identification, cross-region, cross-industry and cross-enterprise information query and sharing are realized by means of the industrial internet identification analysis system.
The core of the industrial internet identification analysis system comprises identification codes, an identification analysis system and an identification data service. Wherein:
1. identification coding: machine, article "ID card".
2. An identification analysis system: the unique positioning and information query of the machine and the article are carried out by utilizing the identification, which is the premise and the basis for realizing the accurate butt joint of a global supply chain system and an enterprise production system, the full life cycle management of products and the intelligent service.
3. Identification data service: the industrial identification data management and the data sharing and sharing among enterprises, industries, regions and countries can be carried out by means of the identification coding resources and the identification analysis system.
The identifier resolution technology refers to a process of mapping an object identifier to information required by an actual information service, such as an address, an article, a spatial location, and the like. For example, by resolving the identity of an item, the address of the server storing its associated information can be obtained. The identification analysis is a technical process of 'information conversion' capable of accurately and efficiently acquiring information corresponding to the object identification in a complex network environment.
The industrial internet identification analysis system stores the tracing and positioning information of each stage in a database of each enterprise to form a distributed data storage mode; the information is inquired through the identification analysis system, so that the authenticity and authority of the information are effectively improved. Based on an industrial internet identification analysis system, an anti-tampering and credible identification 'ID card' is given to an article, on one hand, data of the product dispersed in each business system from different stages of raw materials, design, production, quality detection, package storage, logistics transportation, marketing channels and the like can be connected, and data interconnection and intercommunication of the whole supply chain are realized. On the other hand, the identification analysis service can be used for tracing the information of each link of the product from the direction of a consumer and inquiring the information of the data source.
The traditional industrial internet identification analysis system comprises a top level node, a second level node and an enterprise node from top to bottom. The top level node is used as the top level identification service node of the country, is in butt joint communication with international nodes and various second-level industry nodes in China, provides national identification analysis service, identification record, identification authentication and other management capabilities, and is a core resource and facility of an identification analysis system; the secondary node provides identification code registration and identification analysis service for industries or regions, and completes related identification service management, identification application docking and the like. Its main functions include: the management of coding rules and technical standards realizes the functions of data management, identifier registration, identifier analysis and infrastructure guarantee, provides the applications including supply chain management, full life management, product tracing and the like, and carries out standardized agreement on operation management monitoring interfaces, network communication interfaces, data transmission formats and the like between top-level nodes and enterprise nodes through interface specifications. The enterprise node can register the identification for the enterprise entity and the virtual asset by accessing the identification analysis system, and performs unique positioning and information query on the resource according to the identification.
The recursive node directly provides service for individual users, the users send the identification analysis request to the recursive node, the recursive node inquires the attributive secondary node and initiates the identification analysis request to the recursive node, the address of the corresponding enterprise node is fed back to the recursive node after the secondary node is analyzed, the recursive node initiates the identification analysis request to the enterprise node, and the recursive node returns the analysis result returned by the enterprise node to the users after receiving the analysis result.
However, when an enterprise node fails to provide an identifier resolution service, because the entire identifier resolution system lacks detection and handling measures for the situation, after the recursive node obtains the address of the enterprise node to which the identifier belongs from the secondary node, it still sends an identifier resolution request to the recursive node and waits for the identifier to give a resolution result, and at this time, it is inevitable that a response of the enterprise node cannot be received.
In view of the above technical problems, the present application provides an identifier parsing method, which employs a detection mechanism for abnormal enterprise nodes, periodically detects whether each enterprise node is abnormal by a secondary node, updates a pre-stored routing table according to the abnormal detection result, when the secondary node receives the identification resolution request which is sent by the recursion node and carries the target identification code, firstly, judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table, if the enterprise address is abnormal, the enterprise resolved address corresponding to the target enterprise node is not returned to the secondary node, but rather sends a default packet to the secondary node indicating that the target enterprise node is anomalous, because the recursive node receives the preset data packet instead of the enterprise analysis address, the secondary node cannot always send an identification analysis request to the abnormal enterprise node, and further the occurrence of the crash condition of the recursive node can be avoided. After receiving the preset data packet, the recursive node directly returns preset prompt information to the query terminal to prompt the user that the data packet cannot be analyzed currently, so that the user experience is improved.
Having described the general principles of the present application, various non-limiting embodiments of the present application will now be described with reference to the accompanying drawings.
Example 1:
the embodiment provides an identifier resolution method, which is applied to a secondary node, and as shown in fig. 1, the method includes:
step S102: and periodically detecting whether each enterprise node is abnormal or not, and updating a pre-stored routing table according to an abnormal detection result.
In this embodiment, an unexpected exit or a failure of an enterprise node may cause that the enterprise node cannot receive an identifier resolution request sent by a recursive node, and since the system cannot predict which enterprise node may accidentally exit or fail at a certain time, in order to timely find or sense the unexpected exit or the failure of the enterprise node, a secondary node performs periodic anomaly detection on all enterprise nodes connected to the secondary node.
Optionally, periodically detecting whether each enterprise node is abnormal, and updating a pre-stored routing table according to an abnormal detection result, which may specifically include:
sending an empty request packet to an enterprise node corresponding to each node identifier in a routing table at intervals of a preset time interval, and starting a preset first timer;
within the timing time of the first timer, if an empty response packet which is sent by a certain enterprise node and corresponds to the empty request packet is received, determining that the certain enterprise node is abnormal, otherwise, determining that the certain enterprise node is abnormal;
and marking the node state of the enterprise node which is determined to be abnormal in the routing table as normal, otherwise, marking the node state as abnormal.
In this embodiment, the preset time interval may be set as needed, for example, the time interval may be 3 minutes, 5 minutes, and the like, the routing table further preferably includes an IP address and a port number of each enterprise node, and the secondary node initiates polling to the enterprise nodes in the routing table according to the IP address and the port number, that is, sends an empty request packet to each enterprise node, and then waits for a response from the enterprise node. Meanwhile, the secondary node sets a timer to time the response of the enterprise node, the time for timing can be set to 30 seconds, if the enterprise node does not respond within 30 seconds, namely the secondary node does not receive the empty response packet of the enterprise node, the enterprise node is judged to be abnormal, otherwise, the enterprise node is not abnormal. It should be noted that, in order to save resources, the exception detection uses an empty request packet and an empty response packet, the packet bodies of the empty request packet and the empty response packet are empty, and the packet header format may include: a message sequence number, a message type, an originating node, etc., where the message type is used to indicate whether the packet is a request packet, a response packet, or a query packet.
Optionally, while periodically detecting whether each enterprise node is abnormal and updating the pre-stored routing table according to the abnormal detection result, the method may further include:
setting a second timer for each enterprise node, wherein the timing time of the second timer is less than the preset time interval;
and respectively starting a corresponding second timer for each enterprise node, marking the node state of the corresponding enterprise node in the routing table as abnormal if an empty query packet sent by the corresponding enterprise node is not received within the timing time of the second timer, and resetting the second timer to restart timing after the timing of the second timer is finished.
In this embodiment, in order to increase the speed of discovering an abnormal enterprise node, and in consideration of system efficiency and resource occupation (waiting for response), bidirectional detection is performed between the secondary node and the enterprise node, so that when a problem occurs in the detection mechanism of any one of the two nodes, the other node can compensate the problem. Specifically, the enterprise node also sends an empty query packet to the secondary node periodically without waiting for a response of the secondary node, the secondary node sets a timer for each enterprise node, the timing time is less than the period setting time for the secondary node to initiate polling, after the timing is finished, if the secondary node still does not receive the empty query packet of the corresponding enterprise node, the routing table is updated, the node state of the enterprise node is marked as abnormal, and if the empty query packet of the enterprise node is received before the timing is finished, the timing is restarted.
In this embodiment, the secondary node sets a timer for each enterprise node, which is similar to heartbeat detection, and the enterprise node is considered to be abnormal if no empty query packet is sent after the timing of the enterprise node is ended. And for the enterprise node marked as abnormal, once receiving the empty query packet sent by the enterprise node, the secondary node immediately updates the routing table and marks the node state as normal. Meanwhile, for the enterprise node marked as abnormal, the secondary node still periodically sends an empty request packet to the enterprise node, and if the enterprise node responds within the timing time, the secondary node immediately updates the routing table and marks the node state as normal.
Step S104: receiving an identification analysis request which is sent by a recursion node and carries a target identification code;
step S106: judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
step S108: if so, sending a preset data packet for indicating the abnormality of the target enterprise node to the recursion node so that the recursion node returns preset prompt information to the query terminal.
In this embodiment, a user scans a two-dimensional code (or any other form such as a bar code) on an industrial product through a terminal to obtain a target identification code of the product, then initiates an identification analysis request to a recursive node for identification analysis of the industrial internet, after receiving the identification analysis request, the recursive node sends the identification analysis request to a secondary node, and the secondary node obtains a target enterprise node corresponding to the target identification code and judges whether the node state of the target enterprise node corresponding to a routing table is marked as abnormal; if yes, judging that the target enterprise node is abnormal. When the target enterprise node is abnormal, the secondary node sends a preset data packet to the recursion node, the body of the preset data packet can be empty, for example, the preset data packet can be an empty response packet, so as to indicate that the target enterprise node is abnormal, and when the recursion node receives the preset data packet, preset prompt information, such as 'current cannot be analyzed', is returned to the query terminal.
In this embodiment, if the target enterprise node corresponding to the target identification code is non-abnormal, the secondary node obtains an enterprise resolution address corresponding to the target enterprise node, and the routing table preferably further includes enterprise resolution addresses of the enterprise nodes. And the secondary node sends the acquired enterprise analysis address to the recursive node so that the recursive node sends a product analysis request to a target enterprise node corresponding to the enterprise analysis address, and the recursive node returns product analysis information to the query terminal after receiving the product analysis information sent by the target enterprise node based on the product analysis request.
In a specific embodiment, the identifier resolution method may include the following steps:
(1) the secondary node sets a routing table, which contains all enterprise node information accessed to the secondary node, including enterprise ID, enterprise URL, IP address and port number, and each enterprise node is additionally provided with a 'node state' field for marking whether the enterprise node is normal currently;
(2) the secondary node periodically (every 3 minutes) initiates polling to the enterprise nodes in the routing table, sends an empty request packet and then waits for the response of the enterprise nodes;
(3) setting a timer for the secondary node to time the response of the enterprise node, and if the enterprise node does not respond within 30 seconds, judging that the enterprise node is abnormal;
(4) the second-level node updates the routing table and marks the state of the enterprise node which does not send the null response packet on time as abnormal;
(5) synchronously, the enterprise node also sends an empty query packet to the secondary node periodically, and quitting without waiting for the response of the secondary node after the sending is finished;
(6) the secondary node sets a timer for each enterprise node, and after the timing is finished, the empty query packet of the enterprise node is not received, the routing table is updated, and the state of the enterprise node is marked as abnormal; if receiving the empty query packet of the enterprise node before timing is finished, restarting timing;
(7) for the enterprise node marked as abnormal state, once receiving the empty query packet sent by the enterprise node, the secondary node immediately updates the routing table and marks the state of the enterprise node as normal;
(8) for the enterprise node marked as the abnormal state, the secondary node still periodically sends an empty request packet to the enterprise node, if the enterprise node responds within 30 seconds, the secondary node immediately updates the routing table and marks the state of the routing table as normal;
(9) when the recursion node initiates an identification analysis request to the secondary node, the secondary node analyzes the corresponding enterprise ID, firstly, a routing table is searched, the current state of the enterprise node is inquired, and if the node state is normal, the secondary node normally returns the enterprise analysis address, namely the enterprise URL to the recursion node;
(10) if the node state is abnormal, the secondary node generates an empty response packet and returns the empty response packet to the recursion node;
(11) and the recursive node receives the response packet, checks and finds that the response packet is empty, and returns a prompt of 'current cannot be analyzed' to the query terminal.
By the method, the phenomenon that the analysis system rejects service due to the resource exhaustion of the recursion nodes can be avoided, and the normal operation of the analysis system is effectively guaranteed.
The method for analyzing the identifier provided by the embodiment of the invention comprises the steps that a secondary node periodically detects whether each enterprise node is abnormal or not, a prestored routing table is updated according to an abnormal detection result, when the secondary node receives an identifier analysis request which is sent by a recursion node and carries a target identification code, whether a target enterprise node corresponding to the target identification code is abnormal or not is judged according to the routing table, and when the judgment result is abnormal, an enterprise analysis address corresponding to the target enterprise node is not returned to the secondary node, but a preset data packet for indicating the abnormality of the target enterprise node is sent to the secondary node, so that the recursion node directly returns preset prompt information to a query terminal after receiving the preset data packet to prompt a user that the user cannot analyze the data currently, the protection of the recursion node is realized, and the problem that when the enterprise node fails to provide an identifier analysis service in the related technology is solved, due to the lack of detection and handling measures for the situation, the problems of resource exhaustion and service interruption of the recursive nodes are easily caused.
Example 2:
as shown in fig. 2, this embodiment provides an identifier resolution method applied to a recursive node, where the method includes:
step S202: receiving an identification analysis request which is sent by an inquiry terminal and carries a target identification code;
step S204: sending an identification analysis request to the secondary node so that the secondary node judges whether the target enterprise node corresponding to the target identification code is abnormal or not according to a pre-stored routing table;
step S206: receiving a preset data packet sent by a secondary node when the target enterprise node is judged to be abnormal, wherein the preset data packet is used for indicating that the target enterprise node is abnormal;
step S208: and returning preset prompt information to the query terminal according to the preset data packet.
Optionally, the method may further comprise:
receiving an enterprise analysis address sent by a secondary node when judging that a target enterprise node is not abnormal;
sending a product analysis request to a target enterprise node corresponding to the enterprise analysis address;
and receiving product analysis information sent by the target enterprise node based on the product analysis request, and returning the product analysis information to the inquiry terminal.
Example 3:
as shown in fig. 3, the present embodiment provides an identifier resolution apparatus disposed at a secondary node, the apparatus including:
the anomaly detection module 12 is used for periodically detecting whether each enterprise node is abnormal or not and updating a pre-stored routing table according to an anomaly detection result;
a request receiving module 14, configured to receive an identifier resolution request with a target identifier sent by a recursive node;
the abnormity judgment module 16 is connected with the abnormity detection module 12 and the request receiving module 14 and is used for judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
and the first sending module 18 is configured to send a preset data packet for indicating that the target enterprise node is abnormal to the recursive node when the judgment result of the abnormality judgment module 16 is yes, so that the recursive node returns preset prompt information to the query terminal.
Optionally, the routing table includes node identifiers and node states corresponding to the enterprise nodes;
optionally, the anomaly detection module 12 specifically includes:
the system comprises an empty request packet sending unit, a routing table and a first timer, wherein the empty request packet sending unit is used for sending an empty request packet to enterprise nodes corresponding to each node identifier in the routing table at intervals of preset time and starting the preset first timer;
the empty response packet receiving unit is used for determining that a certain enterprise node is abnormal if an empty response packet which is sent by the certain enterprise node and corresponds to the empty request packet is received within the timing time of the first timer, and otherwise, determining that the certain enterprise node is abnormal;
and the first state updating unit is used for marking the node state of the enterprise node which is determined to be abnormal in the routing table as normal, otherwise, marking the node state as abnormal.
Optionally, the method may further include:
the second timing module is used for setting a second timer for each enterprise node, and the timing time of the second timer is less than the preset time interval;
and the empty query packet receiving module is used for respectively starting a corresponding second timer for each enterprise node, marking the node state of the corresponding enterprise node in the routing table as abnormal if the empty query packet sent by the corresponding enterprise node is not received within the timing time of the second timer, and resetting the second timer to restart timing after the timing of the second timer is finished if the empty query packet sent by the corresponding enterprise node is not received.
Optionally, the abnormality determining module 16 may specifically include:
the enterprise node acquisition unit is used for acquiring a target enterprise node corresponding to the target identification code;
and the state judgment unit is used for judging whether the node state corresponding to the target enterprise node in the routing table is marked as abnormal or not, if so, judging that the target enterprise node is abnormal, otherwise, judging that the target enterprise node is not abnormal.
Optionally, the method may further include:
the analysis address acquisition module is used for acquiring an enterprise analysis address corresponding to the target enterprise node;
and the analysis address sending module is used for sending the enterprise analysis address to the recursion node so that the recursion node sends a product analysis request to a target enterprise node corresponding to the enterprise analysis address, and the recursion node returns product analysis information to the query terminal after receiving the product analysis information sent by the target enterprise node based on the product analysis request.
Example 4:
as shown in fig. 4, the present embodiment provides an identifier resolution apparatus disposed at a recursive node, the apparatus including:
a first receiving module 32, configured to receive an identifier resolution request with a target identifier sent by a query terminal;
the request sending module 34 is connected to the first receiving module 32, and is configured to send an identifier parsing request to the secondary node, so that the secondary node determines whether the target enterprise node corresponding to the target identifier is abnormal according to a pre-stored routing table;
a second receiving module 36, connected to the request sending module 34, configured to receive a preset data packet sent by the secondary node when the target enterprise node is determined to be abnormal, where the preset data packet is used to indicate that the target enterprise node is abnormal;
and the information returning module 38 is connected to the second receiving module 36, and is configured to return a preset prompt message to the query terminal according to the preset data packet.
Optionally, the method may further include:
the analysis address receiving module is used for receiving an enterprise analysis address sent by the secondary node when the target enterprise node is judged to be non-abnormal;
the analysis request sending module is used for sending a product analysis request to a target enterprise node corresponding to the enterprise analysis address;
and the analysis information receiving module is used for receiving the product analysis information sent by the target enterprise node based on the product analysis request and returning the product analysis information to the inquiry terminal.
Example 5:
referring to fig. 5, the present embodiment provides an identifier resolution apparatus, which includes a memory 21 and a processor 22, where the memory 21 stores a computer program, and the processor 22 is configured to run the computer program to execute the identifier resolution method in embodiment 1 or embodiment 2.
The memory 21 is connected to the processor 22, the memory 21 may be a flash memory, a read-only memory or other memories, and the processor 22 may be a central processing unit or a single chip microcomputer.
Embodiments 2 to 5 provide an identifier parsing method and apparatus, in which a secondary node periodically detects whether each enterprise node is abnormal, and updates a pre-stored routing table according to an abnormality detection result, when the secondary node receives an identifier parsing request carrying a target identification code and sent by a recursive node, first determining whether a target enterprise node corresponding to the target identification code is abnormal according to the routing table, and when the determination result is abnormal, sending a preset data packet for indicating the abnormality of the target enterprise node to the secondary node instead of returning an enterprise parsing address corresponding to the target enterprise node to the secondary node, so that the recursive node directly returns preset prompt information to a query terminal after receiving the preset data packet to prompt a user that the user cannot parse currently, thereby protecting the recursive node, and solving a problem that when an enterprise node fails to provide an identifier parsing service in a related technology, due to the lack of detection and handling measures for the situation, the problems of resource exhaustion and service interruption of the recursive nodes are easily caused.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. An identification analysis method is applied to a secondary node, and comprises the following steps:
periodically detecting whether each enterprise node is abnormal or not, and updating a pre-stored routing table according to an abnormal detection result;
receiving an identification analysis request which is sent by a recursion node and carries a target identification code;
judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
if yes, sending a preset data packet for indicating that the target enterprise node is abnormal to the recursion node, so that the recursion node returns preset prompt information to the query terminal.
2. The identifier resolution method according to claim 1, wherein the routing table includes node identifiers and node states corresponding to enterprise nodes, and the periodically detecting whether enterprise nodes are abnormal and updating the pre-stored routing table according to the abnormal detection result specifically includes:
sending an empty request packet to an enterprise node corresponding to each node identifier in the routing table at intervals of a preset time interval, and starting a preset first timer;
within the timing time of the first timer, if an empty response packet which is sent by a certain enterprise node and corresponds to the empty request packet is received, determining that the certain enterprise node is not abnormal, otherwise, determining that the certain enterprise node is abnormal;
and marking the node state of the enterprise node which is determined to be abnormal in the routing table as normal, otherwise, marking the node state as abnormal.
3. The identifier resolution method according to claim 2, wherein while periodically detecting whether each enterprise node is abnormal and updating the pre-stored routing table according to the abnormal detection result, the method further comprises:
setting a second timer for each enterprise node, wherein the timing time of the second timer is less than the preset time interval;
and respectively starting the corresponding second timer for each enterprise node, marking the node state of the corresponding enterprise node in the routing table as abnormal if an empty query packet sent by the corresponding enterprise node is not received within the timing time of the second timer, and resetting the second timer to restart timing after the timing of the second timer is finished if the node state of the corresponding enterprise node in the routing table is abnormal.
4. The identifier resolution method according to claim 2, wherein the determining, according to the routing table, whether the target enterprise node corresponding to the target identifier code is abnormal specifically includes:
acquiring a target enterprise node corresponding to the target identification code;
judging whether the node state corresponding to the target enterprise node in the routing table is marked as abnormal or not;
if so, judging that the target enterprise node is abnormal, otherwise, judging that the target enterprise node is not abnormal.
5. The identity resolution method according to claim 1, wherein if the target enterprise node corresponding to the target identification code is not abnormal, the method further comprises:
acquiring an enterprise analysis address corresponding to the target enterprise node;
and sending the enterprise analysis address to the recursive node so that the recursive node sends a product analysis request to the target enterprise node corresponding to the enterprise analysis address, and the recursive node returns the product analysis information to the query terminal after receiving the product analysis information sent by the target enterprise node based on the product analysis request.
6. An identity resolution method, applied to a recursive node, the method comprising:
receiving an identification analysis request which is sent by an inquiry terminal and carries a target identification code;
sending the identification analysis request to a secondary node so that the secondary node judges whether the target enterprise node corresponding to the target identification code is abnormal or not according to a pre-stored routing table;
receiving a preset data packet sent by the secondary node when the target enterprise node is judged to be abnormal, wherein the preset data packet is used for indicating that the target enterprise node is abnormal;
and returning preset prompt information to the inquiry terminal according to the preset data packet.
7. The identity resolution method of claim 6, further comprising:
receiving an enterprise analysis address sent by the secondary node when the target enterprise node is judged to be non-abnormal;
sending a product analysis request to the target enterprise node corresponding to the enterprise analysis address;
and receiving product analysis information sent by the target enterprise node based on the product analysis request, and returning the product analysis information to the inquiry terminal.
8. The utility model provides an identification resolving device which characterized in that sets up in the second grade node, the device includes:
the anomaly detection module is used for periodically detecting whether each enterprise node is abnormal or not and updating a prestored routing table according to an anomaly detection result;
the request receiving module is used for receiving an identification analysis request which is sent by the recursion node and carries a target identification code;
the abnormity judgment module is connected with the abnormity detection module and the request receiving module and is used for judging whether the target enterprise node corresponding to the target identification code is abnormal or not according to the routing table;
and the first sending module is used for sending a preset data packet for indicating the abnormity of the target enterprise node to the recursion node when the judgment result of the abnormity judgment module is yes, so that the recursion node returns preset prompt information to the query terminal.
9. An identifier resolution apparatus, provided in a recursive node, the apparatus comprising:
the first receiving module is used for receiving an identification analysis request which is sent by the query terminal and carries a target identification code;
the request sending module is connected with the first receiving module and used for sending the identification analysis request to a secondary node so that the secondary node can judge whether the target enterprise node corresponding to the target identification code is abnormal or not according to a pre-stored routing table;
the second receiving module is connected with the request sending module and used for receiving a preset data packet sent by the secondary node when the target enterprise node is judged to be abnormal, and the preset data packet is used for indicating that the target enterprise node is abnormal;
and the information returning module is connected with the second receiving module and used for returning preset prompt information to the inquiry terminal according to the preset data packet.
10. An identity resolution apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is arranged to run the computer program to implement the identity resolution method of any one of claims 1 to 5, or to implement the identity resolution method of claim 6 or 7.
CN202111006592.4A 2021-08-30 2021-08-30 Identification analysis method and device Active CN113726647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111006592.4A CN113726647B (en) 2021-08-30 2021-08-30 Identification analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111006592.4A CN113726647B (en) 2021-08-30 2021-08-30 Identification analysis method and device

Publications (2)

Publication Number Publication Date
CN113726647A true CN113726647A (en) 2021-11-30
CN113726647B CN113726647B (en) 2022-07-29

Family

ID=78679273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111006592.4A Active CN113726647B (en) 2021-08-30 2021-08-30 Identification analysis method and device

Country Status (1)

Country Link
CN (1) CN113726647B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489085A (en) * 2023-03-28 2023-07-25 网根科技(青岛)有限公司 Analytical route security monitoring method and system based on Handle

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223494A1 (en) * 2006-03-21 2007-09-27 Nokia Corporation Method for the resolution of addresses in a communication system
CN108933689A (en) * 2017-05-25 2018-12-04 中兴通讯股份有限公司 A kind of data collection system and method
CN111291043A (en) * 2020-01-09 2020-06-16 中国信息通信研究院 Identification value query method, identification resolution server and storage medium
CN112085417A (en) * 2020-09-24 2020-12-15 北京工业大学 Industrial Internet identification distribution and data management method based on block chain
CN112261035A (en) * 2020-10-20 2021-01-22 中国联合网络通信集团有限公司 Information management method based on block chain, prevention and control center node and rework platform
CN112416908A (en) * 2020-12-04 2021-02-26 重庆忽米网络科技有限公司 Method and system for analyzing prefix sublibrary storage data based on Handle identification
CN112417843A (en) * 2020-10-20 2021-02-26 湖南中广汇智信息技术有限公司 IDcode identification analysis system and implementation method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223494A1 (en) * 2006-03-21 2007-09-27 Nokia Corporation Method for the resolution of addresses in a communication system
CN108933689A (en) * 2017-05-25 2018-12-04 中兴通讯股份有限公司 A kind of data collection system and method
CN111291043A (en) * 2020-01-09 2020-06-16 中国信息通信研究院 Identification value query method, identification resolution server and storage medium
CN112085417A (en) * 2020-09-24 2020-12-15 北京工业大学 Industrial Internet identification distribution and data management method based on block chain
CN112261035A (en) * 2020-10-20 2021-01-22 中国联合网络通信集团有限公司 Information management method based on block chain, prevention and control center node and rework platform
CN112417843A (en) * 2020-10-20 2021-02-26 湖南中广汇智信息技术有限公司 IDcode identification analysis system and implementation method thereof
CN112416908A (en) * 2020-12-04 2021-02-26 重庆忽米网络科技有限公司 Method and system for analyzing prefix sublibrary storage data based on Handle identification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489085A (en) * 2023-03-28 2023-07-25 网根科技(青岛)有限公司 Analytical route security monitoring method and system based on Handle
CN116489085B (en) * 2023-03-28 2023-10-27 网根科技(青岛)有限公司 Analytical route security monitoring method and system based on Handle

Also Published As

Publication number Publication date
CN113726647B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN106502874B (en) A kind of call chain tracking
CN109922160B (en) Terminal secure access method, device and system based on power Internet of things
CN107277086B (en) Service processing system, service processing method and service updating method
CN113486051B (en) Industrial Internet identification analysis method, system, node and storage medium
CN110647559A (en) Data processing method, related node and system
CN110581893B (en) Data transmission method and device, routing equipment, server and storage medium
CN113726647B (en) Identification analysis method and device
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
KR102069751B1 (en) Method, apparatus and system for processing response messages
US10205545B2 (en) Resource creation method and apparatus
CN111198804A (en) Gateway-based industrial internet platform third-party micro-service monitoring and early warning method
CN103731315A (en) Server failure detecting method
JP2014523671A (en) Assessing the overall performance of interactive application services
CN107045466B (en) Service data auditing method, device and system
CN107592374B (en) Correction method and system for domain name error resolution
CN113556407B (en) Interface calling method and device for identification analysis node and electronic equipment
CN113938844B (en) Network connection monitoring method, system, computer device and storage medium
CN114296880A (en) Service request processing method, device, equipment and medium based on large-scale cluster
CN111092966A (en) Domain name system, domain name access method and device
CN116112468B (en) SSL certificate detection method, SSL certificate detection device, SSL certificate detection computer equipment, SSL certificate storage medium and SSL certificate product
CN116170240B (en) Access method and device for privately-allocated service, electronic equipment and storage medium
Schapranow et al. RFID Event Data Processing: An Architecture for Storing and Searching.
CN111708689B (en) Method and device for modifying AB experiment and electronic equipment
CN115706722A (en) Domain name request method, domain name request device, storage medium and electronic equipment
CN111381985B (en) Heterogeneous system data calling method, device, 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
GR01 Patent grant
GR01 Patent grant