CN115002195A - Service registration discovery method, system and medium in self-adaptive peer-to-peer mode - Google Patents

Service registration discovery method, system and medium in self-adaptive peer-to-peer mode Download PDF

Info

Publication number
CN115002195A
CN115002195A CN202210607516.7A CN202210607516A CN115002195A CN 115002195 A CN115002195 A CN 115002195A CN 202210607516 A CN202210607516 A CN 202210607516A CN 115002195 A CN115002195 A CN 115002195A
Authority
CN
China
Prior art keywords
service
configuration information
connection
request
information
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
CN202210607516.7A
Other languages
Chinese (zh)
Inventor
罗伟东
付凯
宋吾边
侯帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hexun Huagu Information Technology Co ltd
Original Assignee
Shenzhen Hexun Huagu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hexun Huagu Information Technology Co ltd filed Critical Shenzhen Hexun Huagu Information Technology Co ltd
Priority to CN202210607516.7A priority Critical patent/CN115002195A/en
Publication of CN115002195A publication Critical patent/CN115002195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a service registration discovery method, a system and a medium of a self-adaptive peer-to-peer mode, wherein the method comprises the following steps: the service request end sends broadcast information to the service providing end, the service providing end judges whether the broadcast information is matched with the service configuration information or not, if the broadcast information is matched with the service configuration information, the service providing end feeds back connection configuration information with a digital signature result to the corresponding service request end, the service request end receives the connection configuration information and conducts signature verification, and if the verification is passed, the service request end sends a service connection request to be connected with an establishment request provided by the corresponding service. By the method, the micro service architecture library is configured at the service request end and the service providing end simultaneously, the service request end sends the broadcast information to any service providing end, the service providing end receives any broadcast and establishes request connection with the corresponding service request end, service registration discovery in a self-adaptive peer-to-peer mode is achieved, the condition that system service is abnormal due to the fact that a service node or a service node cluster goes wrong is avoided, and reliability of service provided by the service providing end is improved.

Description

Service registration discovery method, system and medium in self-adaptive peer-to-peer mode
Technical Field
The invention relates to the technical field of computer micro-service, in particular to a service registration discovery method, a system and a medium in a self-adaptive peer-to-peer mode.
Background
With the development of the computer technology, enterprises and organizations need to construct a large number of business service systems for implementing various businesses, and micro-service architectures are designed in advance in aspects of business division, application dependence decoupling, system shunting and the like, so that the problems of insufficient system performance in the business service systems and efficient processing of complex businesses are solved, and the method is a mainstream framework selection at present. The selection of constructing a micro-service architecture for use is an important issue on how to perform service registration discovery, which is also a core function of the architecture.
The service registration discovery of the existing micro-service architecture mainly adopts a centralized management mode and performs centralized deployment in a service node or service node cluster mode. When a service node or a service node cluster fails, system service is interrupted, so that the service node or the service node cluster cannot be switched to other normal service nodes or normal service node clusters in time to continue service, the service cannot be registered and discovered, and great influence and loss are brought to businesses of enterprises and institutions. Therefore, the micro service architecture in the prior art method has a problem that service registration discovery cannot be performed quickly when a node is abnormal.
Disclosure of Invention
The embodiment of the invention provides a service registration discovery method, a system and a medium in a self-adaptive peer-to-peer mode, aiming at solving the problem that the micro-service architecture in the prior art cannot rapidly perform service registration discovery when a node is abnormal.
In a first aspect, an embodiment of the present invention provides a method for discovering a service registration in a self-adaptive peer-to-peer mode, where the method is applied to a service registration discovery system based on a micro service, where the service registration discovery system based on the micro service includes a service request end and a service provider end, and the service request end is in network connection with the service provider end to implement transmission of data information;
the method comprises the following steps executed at the service request end:
transmitting broadcast information to at least one of the service providers; the broadcast information comprises a request end identification and a service matching parameter;
if receiving the connection configuration information from any service provider, performing signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
if the verification result is passed, sending a service connection request to the service providing end corresponding to the connection configuration information according to the connection configuration information so as to establish request connection with the corresponding service providing end;
the method further comprises the following steps performed at the service provider:
judging whether the received broadcast information is matched with service configuration information, wherein the service configuration information is configuration information corresponding to the service provider; the broadcast information comes from any one of the service request terminals;
and if the broadcast information is matched with the service configuration information, feeding back connection configuration information carrying a digital signature result to the service request end corresponding to the broadcast information.
In a second aspect, an embodiment of the present invention further provides a service registration discovery method in an adaptive peer-to-peer mode, where the method is applied to a service registration discovery system based on a micro service, where the service registration discovery system based on the micro service includes a service request end and a service provider end, and the service request end and the service provider end perform network bridging through a TCP gateway to implement transmission of data information;
the method comprises the following steps executed at the service request end:
sending broadcast information to the TCP gateway and forwarding the broadcast information to at least one service provider through the TCP gateway; the broadcast information comprises a request end identifier and a service name identifier;
if receiving the connection configuration information from any service provider forwarded by the TCP gateway, performing signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
if the verification result is that the service connection request passes the verification result, sending a service connection request to the TCP gateway according to the connection configuration information, and forwarding the service connection request to the service provider corresponding to the connection configuration information through the TCP gateway so as to establish request connection with the corresponding service provider through the TCP gateway;
the method further comprises the following steps performed at the service provider:
judging whether the received broadcast information is matched with the service configuration information; the service configuration information is configuration information corresponding to the service providing terminal, and the broadcast information is from any one of the service request terminals;
and if the broadcast information is matched with the service configuration information, feeding back connection configuration information carrying a digital signature result to the TCP gateway and forwarding the connection configuration information to the service request end corresponding to the broadcast information through the TCP gateway.
In a third aspect, an embodiment of the present invention provides a service registration discovery system in a self-adaptive peer-to-peer mode, where the system is configured in a service registration discovery system based on a micro service, and the service registration discovery system based on the micro service includes a service request end and a service provider end, where the service request end and the service provider end are connected through a network to implement transmission of data information;
the system comprises the following units configured at the service request end:
a broadcast information transmitting unit, configured to transmit broadcast information to at least one of the service providing terminals; the broadcast information comprises a request end identification and a service matching parameter;
a verification result obtaining unit, configured to, if connection configuration information from any one of the service providers is received, perform signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
a request connection establishing unit, configured to send a service connection request to the service provider corresponding to the connection configuration information according to the connection configuration information if the verification result is that the service provider passes the verification result, so as to establish a request connection with the corresponding service provider;
the system also comprises the following units configured at the service provider:
a matching judgment unit, configured to judge whether the received broadcast information matches service configuration information, where the service configuration information is configuration information corresponding to the service provider; the broadcast information comes from any one of the service request terminals;
and the connection configuration information feedback unit is used for feeding back the connection configuration information carrying the digital signature result to the service request end corresponding to the broadcast information if the broadcast information is matched with the service configuration information.
In a fourth aspect, an embodiment of the present invention further provides an adaptive peer-to-peer mode service registration discovery system, which includes a service requester and a service provider, where the service requester includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, and the service provider includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, where the first processor executes the first computer program, and the second processor executes the second computer program, so as to jointly implement the adaptive peer-to-peer mode service registration discovery method according to the first aspect or the second aspect.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a first computer program and a second computer program, and when the first computer program is executed by a first processor and the second computer program is executed by a second processor, the first computer program and the second computer program jointly implement the service registration discovery method in the adaptive peer-to-peer mode according to the first aspect or the second aspect.
The embodiment of the invention provides a service registration discovery method, a system and a medium in a self-adaptive peer-to-peer mode.A service request end sends broadcast information to a service providing end, the service providing end judges whether the broadcast information is matched with service configuration information or not, if the broadcast information is matched with the service configuration information, connection configuration information with a digital signature result is fed back to a corresponding service request end, the service request end receives the connection configuration information and carries out signature verification, and if the verification is passed, a service connection request is sent to be connected with a building request provided by a corresponding service. By the method, the micro service architecture library is configured at the service request end and the service providing end simultaneously, the service request end sends broadcast information to any service providing end, the service providing end receives any broadcast and can establish request connection with the corresponding service request end, service registration discovery in a self-adaptive peer-to-peer mode is achieved, the condition that system service is abnormal due to the fact that service nodes or service node clusters are out of order is avoided, and reliability of service providing by the service providing end is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another application scenario of the service registration discovery method in the adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a connection configuration update of a service node in a service provider according to an embodiment of the present invention;
fig. 5 is a sub-flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 6 is another sub-flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 7 is a schematic sub-flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 8 is another schematic flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 9 is a schematic flowchart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 10 is a schematic flow chart of a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention;
fig. 11 is a schematic block diagram of a service registration discovery system in an adaptive peer-to-peer mode according to an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart illustrating a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention, and fig. 2 is a schematic application scenario diagram illustrating the service registration discovery method in the adaptive peer-to-peer mode according to the embodiment of the present invention. In a specific application scenario, as shown in fig. 2, the service registration discovery method in the adaptive peer-to-peer mode is applied to a service registration discovery system 1 based on micro-services, where the service registration discovery system 1 based on micro-services includes a service request end 10 and a service provider end 20, the service request end 10 is in network connection with the service provider end 20 to implement transmission of data information, the service request end 10 and the service provider end 20 both belong to a local network segment, and the service registration discovery method in the adaptive peer-to-peer mode is executed through application software installed in the service request end 10 and the service provider end 20; the service request terminal 10 is a terminal device, such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, for executing the service registration discovery method in the adaptive peer-to-peer mode to request services from the service provider 20, and the service provider 20 is a server terminal, such as a cluster server based on a micro-service framework built inside an enterprise or a government department, for executing the service registration discovery method in the adaptive peer-to-peer mode to provide services to the service request terminal 10. Fig. 2 only illustrates one service requester 20 and one service provider 20 for information transmission, and in practical applications, the service provider 20 may also establish communication connections with multiple service requesters 10 at the same time to implement data information transmission.
As shown in fig. 1, the method includes steps S110 to S150.
S110, the service request end sends broadcast information to at least one service providing end; the broadcast information comprises a request end identification and a service matching parameter.
In this embodiment of the present application, a service request end integrates a micro service framework library, the service request end may invoke a discovery function in the micro service framework library to send broadcast information, and the service request end may send the broadcast information to one or more service providing ends, where the broadcast information defaults to UDP (User Datagram Protocol) broadcast. The broadcast information includes a request end identifier and a service matching parameter, the request end identifier is identification information uniquely corresponding to the service request end, and the service matching parameter is a matching parameter corresponding to a service currently required by the service request end.
S120, the service provider judges whether the received broadcast information is matched with service configuration information, wherein the service configuration information is configuration information corresponding to the service provider; the broadcast information is from any one of the service request terminals.
The service providing end is a cluster server based on a micro-service framework, each cluster server is also a service node cluster consisting of a plurality of service nodes, each service node can correspondingly provide a service processing service, and massive and multi-type service requests can be efficiently processed through the cluster servers. Each service provider corresponds to one cluster server, and in this embodiment, one service provider provides services to the service request end, but in other embodiments, a plurality of service providers may be configured to provide services to the service request end at the same time.
If a service provider receives the broadcast information from the service request end, it can determine whether the broadcast information brain matches with the service configuration information of the service provider itself.
In an embodiment, as shown in fig. 5, step S120 includes substeps S121 and S122.
S121, obtaining configuration values corresponding to the matching parameters in the service configuration information.
One or more matching parameters can be set in the service matching parameters, for example, the matching parameters can be service types, processing types, unique identifiers of service names and the like, the service configuration information comprises various configuration information corresponding to the service providing end, and configuration values corresponding to the matching parameters in the service matching parameters can be obtained from the service configuration information.
For example, the configuration value corresponding to the service type of a certain service provider is "identity information check service", and the processing type is "picture".
And S122, judging whether the configuration values are matched with the matching conditions of all the matching parameters in the service matching parameters so as to judge whether the broadcast information is matched with the service configuration information.
The service matching parameters also comprise matching conditions corresponding to the matching parameters, and whether the configuration values are matched with the matching conditions or not can be judged, namely whether the configuration values of the matching parameters are the same as the corresponding matching conditions or whether the configuration values of the matching parameters are within the range of the corresponding matching conditions or not is judged, if the configuration values of the matching parameters are the same as the corresponding matching conditions or are within the range of the corresponding matching conditions, the broadcast information is judged to be matched with the service configuration information, and otherwise, the broadcast information is judged not to be matched with the service configuration information.
And S130, if the broadcast information is matched with the service configuration information, the service providing end feeds back connection configuration information carrying a digital signature result to the service request end corresponding to the broadcast information.
If the broadcast information is matched with the service configuration information, the service providing end can feed back the connection configuration information carrying the digital signature result to the corresponding service request end, and at the moment, TCP connection can be established between the request end identifier in the broadcast information and the service request end corresponding to the request end identifier, and the connection configuration information is transmitted through TCP connection.
In one embodiment, as shown in fig. 6, step S130 includes sub-steps S131 and S132.
S131, performing trusted signature on the connection configuration parameters in the service configuration information according to a prestored private key of the micro-service digital certificate to obtain a corresponding digital signature result.
Specifically, service configuration information of a service provider can be acquired, where the service configuration information at least includes a service name identifier, an IP link, and a timestamp, the service name identifier is identifier information uniquely corresponding to one service provider, the IP link is a link resource allocated by the service provider for each service request, and the service request can establish a request connection with a service node in the service provider through the IP link; and performing trusted signature on the connection configuration parameters in the service configuration information through a pre-stored private key of the micro-service digital certificate, thereby obtaining a digital signature result. If the signature can be implemented by using a Hash algorithm, the obtained digital signature result can be a 16-system character string. In addition, the service configuration information may further include information such as the number of service nodes and the type of service nodes, and the information such as the number of service nodes and the type of service nodes may also be added to the connection configuration parameters for trusted signature.
S132, combining the digital signature result and the connection configuration parameters to obtain the connection configuration information carrying the digital signature result, and feeding the connection configuration information carrying the digital signature result back to the service request end corresponding to the broadcast information.
And combining the obtained digital signature result with the connection configuration parameters to obtain connection configuration information carrying the digital signature result and feeding the connection configuration information back to the service request end corresponding to the request end identifier in the broadcast information.
S140, if the service request end receives the connection configuration information from any service providing end, signature verification is carried out on the connection configuration information according to a preset signature verification rule so as to obtain a verification result of whether the connection configuration information passes or not.
After receiving the connection configuration information, the service request end can perform signature verification on the digital signature result and the connection configuration parameters in the connection configuration information according to the signature verification rule, and if the verification is correct, the obtained verification result is a pass; if the verification is wrong, the obtained verification result is failed.
In an embodiment, as shown in fig. 7, step S140 includes sub-steps S141 and S142.
S141, signing the connection configuration parameters in the connection configuration information according to the public key of the micro-service digital certificate of the signature verification rule to obtain corresponding signature verification information.
The signature verification rule comprises a micro-service digital certificate public key, the connection configuration parameters in the connection configuration information can be signed through the micro-service digital certificate public key to obtain signature verification information, and the process of signing through the micro-service digital certificate public key is the same as the process of credible signing through the micro-service digital certificate private key.
S142, judging whether the signature verification information is the same as the digital signature result or not to obtain a verification result of whether the signature verification information is passed or not.
Whether the obtained signature verification information is the same as the digital signature result or not can be judged, so that a corresponding verification result can be obtained. If the signature verification information is the same as the digital signature result, the received connection configuration parameters are safe and credible, and a verification result passing the verification is obtained; if the signature verification information is different from the digital signature result, the received connection configuration parameters are not credible, and a verification result that the verification fails is obtained.
S150, if the verification result is passed, the service request end sends a service connection request to the service providing end corresponding to the connection configuration information according to the connection configuration information so as to establish request connection with the corresponding service providing end.
If the verification result is that the connection configuration information passes, the connection configuration parameters in the connection configuration information can be stored to the service request terminal, and the service request is carried out. Specifically, the connection configuration parameters in the connection configuration information include a service name identifier, an IP link, and a timestamp, the corresponding service provider can be determined by the service name identifier, and the service requester can generate a corresponding service connection request based on the IP link and send the generated service connection request to a service provider corresponding to the service name identifier, so as to establish a request connection corresponding to the IP link with a service node of the corresponding service provider through the service connection request. In the subsequent steps, the service request end can send the service data to be processed to the service node of the service providing end through the established connection request so as to process the service data to be processed through the service node, thereby realizing that the service providing end provides corresponding service for the service request end.
In an embodiment, the service provider is configured with a plurality of service nodes connected to each other, as shown in fig. 8, the method further includes steps S151, S152, S153, and S154 executed at the service provider.
And S151, each first service node sends an abnormal detection heartbeat packet to the second service node.
The service providing end is composed of a plurality of service nodes, wherein the service nodes can be divided into a first service node and a second service node, the first service node is a service node which does not establish a request connection with the service request end, and the second service node is a service node which establishes a request connection with the service request end. In order to ensure that a service node establishing a request connection with a service request end normally provides service, an abnormality detection heartbeat packet can be sent to second service nodes through first service nodes, each first service node can send the abnormality detection heartbeat packet to all the second service nodes, the abnormality detection heartbeat packet can be sent in a mode of interval preset time, and if the interval is 0.1 second every time, the abnormality detection heartbeat packet is sent to the second service nodes once; and after receiving the abnormal detection heartbeat packet, the second service node immediately feeds back detection feedback information to the first service node which sends the abnormal detection heartbeat packet.
S152, if the first service node does not receive the detection feedback information corresponding to the abnormal detection heartbeat packet fed back by any of the second service nodes, determining that the second service node that does not feed back the detection feedback information is an abnormal service node.
Since the first service node and the second service node are both configured inside the service provider, when the second service node normally provides service, the interval between the sending of the abnormal detection heartbeat packet by the first service node and the receiving of the corresponding detection feedback information is usually in the ms level, and if the detection feedback information fed back by the second service node is not received before the next abnormal detection heartbeat packet is sent to a certain second service node, the second service node which does not feed back the detection feedback information can be determined to be an abnormal service node.
In the process of determining the abnormal service node, the judgment can be performed based on one first service node, and if a certain first service node does not receive detection feedback information fed back by a second service node before sending the next abnormal detection heartbeat packet, the second service node is determined to be the abnormal service node; and if the first service node exceeding the preset ratio does not receive the detection feedback information fed back by the second service node before sending the next abnormal detection heartbeat packet, determining that the second service node is an abnormal service node, for example, if the preset ratio can be set to 0.1, determining that the first service node exceeding 0.1 times of the total number of the first service nodes does not receive the detection feedback information fed back by the second service node before sending the next abnormal detection heartbeat packet, and determining that the second service node is an abnormal service node.
S153, according to the abnormal service node, performing configuration updating on the connection between the service nodes in the service providing terminal.
If it is determined that a certain service node in the service provider is an abnormal service node, the abnormal service node cannot normally provide service at this time, and the connection between the service nodes can be configured and updated, for example, the connection between other nodes and the abnormal service node is disconnected, so that the configuration and update of the connection between the service nodes in the service provider are realized.
The specific implementation process is as shown in fig. 4, in an initial state, both the node 2 and the node 3 are connected to the node 1, the node 1 in fig. 4 is a determined abnormal service node, and at this time, both the node 2 and the node 3 are disconnected from the node 1, so that the connection between the service nodes is configured and updated.
S154, selecting any service node from the first service nodes to reestablish the request connection with the service request end, and changing the service node reestablished the request connection with the service request end into a second service node.
As shown in fig. 4, the selected node 3 is a node that provides service to the service request end, and the requested connection with the service request end is switched to the node 3, that is, the service request end is continuously provided with service through the node 3.
After selecting a service node to reestablish the requested connection with the service requester, the service node to reestablish the requested connection with the service requester may be changed to a second service node. As shown in fig. 4, the node 3 may now be changed to a second serving node; returning to step S151, the first service node may send an anomaly detection heartbeat packet to the node 3.
In an embodiment, the service provider is configured with a plurality of service nodes connected to each other, as shown in fig. 9, the method further includes steps S1541, S1542 and S1543 executed by the service provider, wherein the steps S1541 to S1543 can be executed as steps parallel to the steps S151 to S154, and the steps S1541 to S1543 can also be executed as sub-steps of the step S154.
S1541, if the number of service nodes of the service provider is increased or decreased, acquiring current configuration parameters and historical configuration parameters of the service provider; the current configuration parameter is a connection configuration parameter after the service node is changed; the historical configuration parameters are connection configuration parameters before the service node is changed.
When the service provider includes an abnormal service node or needs to add a service node to expand the capacity of the service provider, the number of the service nodes of the service provider changes in an increasing or decreasing manner, and at this time, the current configuration parameters and the historical configuration parameters of the service provider can be obtained. When the connection configuration parameters include information such as the number of service nodes and the types of service nodes, the change of the service nodes inevitably causes the change of corresponding connection configuration parameters, so the connection configuration parameters before the change of the service nodes can be used as historical configuration parameters, and the connection configuration parameters after the change of the service nodes can be used as current configuration parameters.
S1542, performing trusted signature on the current configuration parameters according to the micro-service digital certificate private key to obtain a corresponding current signature result.
The service provider can perform trusted signature on the current configuration parameters according to the private key of the micro-service digital certificate, so as to obtain a current signature result, and the specific operation process is the same as the process for obtaining the digital signature result.
S1543, combining the current signature result, the digital signature result corresponding to the historical configuration parameter and the current configuration parameter to obtain connection update configuration information, and feeding the connection update configuration information back to the service request end corresponding to the broadcast information.
The digital signature result corresponding to the historical configuration parameter already exists in the service provider, so that the current signature result, the digital signature result corresponding to the historical configuration parameter and the current configuration parameter can be combined without acquiring the digital signature result corresponding to the historical configuration parameter again, and the connection updating configuration information is obtained and fed back to the service request end corresponding to the broadcast information. The service request end can receive the connection updating configuration information, verify the historical configuration parameters according to the digital signature result, verify the current configuration parameters according to the current signature result, wherein the specific verification process is the same as the process of performing signature verification on the connection configuration information according to the preset signature verification rule in the previous step, and the received connection updating configuration information can be ensured to be safe and credible through the verification process; if the current verification result of the historical configuration parameters and the current configuration parameters passes, the service request end can reestablish the request connection with the service providing end by using the current configuration parameters in the connection updating configuration information.
Referring to fig. 3 and 10, fig. 10 is a further flow chart illustrating a service registration discovery method in an adaptive peer-to-peer mode according to an embodiment of the present invention; fig. 3 is a schematic view of another application scenario of the service registration discovery method in the adaptive peer-to-peer mode according to an embodiment of the present invention. In a specific application scenario, as shown in fig. 3, the service registration discovery method of the adaptive peer-to-peer mode is applied in the service registration discovery system 1 based on microservices, the microservice-based service registration discovery system 1 comprises a service request end 10 and a service providing end 20, the service request terminal 10 and the service provider terminal 20 perform network bridging through the TCP gateway 30 to realize data information transmission, at this time, the service request terminal 10 and the service provider terminal 20 belong to different local network segments, information sent by the service request terminal 10 needs to be forwarded to the service provider terminal 20 in another network segment through the TCP gateway 30, cross-network access is realized between the service request terminal 10 and the service provider terminal 20, the service registration discovery method in the adaptive peer-to-peer mode is executed by application software installed in the service request terminal 10 and the service provider terminal 20; the service request terminal 10 is a terminal device, such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, for executing the service registration discovery method in the adaptive peer-to-peer mode to request services from the service provider 20, the service provider 20 is a server terminal, such as a cluster server based on a micro service framework built inside an enterprise or a government department and based on a micro service architecture, for executing the service registration discovery method in the adaptive peer-to-peer mode to provide services to the service request terminal 10, and the TCP gateway 30 may be a TCP discovery gateway device, such as a TCP gateway router, for implementing cross-network transmission of information. In fig. 3, only one service requester 20 is illustrated to perform information transmission with the service provider 20, and in practical applications, the service provider 20 may also establish communication connections with multiple service requesters 10 at the same time to implement data information transmission.
As shown in fig. 10, the method includes steps S210 to S250.
S210, a service request end sends broadcast information to the TCP gateway and forwards the broadcast information to at least one service providing end through the TCP gateway; the broadcast information comprises a request end identifier and a service name identifier.
Because the UDP broadcast only supports the current local network segment broadcast, if the service request end and the service providing end belong to different local network segments, cross-network access is needed, the TCP gateway can be configured at the moment, the broadcast information sent by the service request end can be forwarded to the service providing end in other network segments through the TCP gateway, so that the broadcast information can be broadcast, and finally, service discovery can be realized.
S220, the service provider judges whether the received broadcast information is matched with the service configuration information; the service configuration information is configuration information corresponding to the service providing terminal, and the broadcast information is from any one of the service request terminals.
The specific implementation process of this step is the same as that of the above step, and is not described herein again.
And S230, if the broadcast information is matched with the service configuration information, the service providing end feeds back connection configuration information carrying a digital signature result to the TCP gateway and forwards the connection configuration information to the service request end corresponding to the broadcast information through the TCP gateway.
The connection configuration information fed back by the service providing end is firstly sent to the TCP gateway and is forwarded to the corresponding service request end through the TCP gateway.
S240, if the connection configuration information from any service provider forwarded by the TCP gateway is received, the service request end carries out signature verification on the connection configuration information according to a preset signature verification rule so as to obtain a verification result of whether the connection configuration information passes or not.
The specific implementation process of this step is the same as that of the above step, and is not described herein again.
And S250, if the check result is that the service connection request is passed, the service request end sends a service connection request to the TCP gateway according to the connection configuration information and forwards the service connection request to the service provider corresponding to the connection configuration information through the TCP gateway so as to establish request connection with the corresponding service provider through the TCP gateway.
The service request end sends a service connection request to the TCP gateway, and the TCP gateway forwards the service connection request to the service providing end, so that request connection is established between the service request end and the service providing end through the TCP gateway.
In the service registration discovery method in the adaptive peer-to-peer mode provided in the embodiment of the present invention, the method includes: the service request end sends broadcast information to the service providing end, the service providing end judges whether the broadcast information is matched with the service configuration information or not, if the broadcast information is matched with the service configuration information, the service providing end feeds back connection configuration information with a digital signature result to the corresponding service request end, the service request end receives the connection configuration information and conducts signature verification, and if the verification is passed, the service request end sends a service connection request to be connected with an establishment request provided by the corresponding service. By the method, the micro service architecture library is configured at the service request end and the service providing end simultaneously, the service request end sends broadcast information to any service providing end, the service providing end receives any broadcast and can establish request connection with the corresponding service request end, service registration discovery in a self-adaptive peer-to-peer mode is achieved, the condition that system service is abnormal due to the fact that service nodes or service node clusters are out of order is avoided, and reliability of service providing by the service providing end is improved.
The embodiment of the present invention further provides a service registration discovery system in an adaptive peer-to-peer mode, where the service registration discovery system in the adaptive peer-to-peer mode may be configured in a service registration discovery system based on a micro service, the service registration discovery system based on the micro service includes a service request end and a service provider end, the service request end and the service provider end are connected through a network to implement data information transmission, and the service registration discovery system in the adaptive peer-to-peer mode is configured to implement any embodiment of the service registration discovery method in the adaptive peer-to-peer mode. Specifically, referring to fig. 11, fig. 11 is a schematic block diagram of a service registration discovery system in an adaptive peer-to-peer mode according to an embodiment of the present invention.
As shown in fig. 11, the service registration discovery system 100 in the adaptive peer-to-peer mode includes the following units configured at the service requester 10: a broadcast information transmitting unit 110, configured to transmit broadcast information to at least one of the service providers; the broadcast information comprises a request end identifier and a service matching parameter; a verification result obtaining unit 120, configured to, if connection configuration information from any of the service providers is received, perform signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not; a request connection establishing unit 130, configured to send a service connection request to the service provider corresponding to the connection configuration information according to the connection configuration information if the verification result is that the service connection request passes through the verification result, so as to establish a request connection with the corresponding service provider.
The service registration discovery system 100 in the adaptive peer-to-peer mode further includes the following units configured in the service provider 20: a matching judgment unit 210, configured to judge whether the received broadcast information matches service configuration information, where the service configuration information is configuration information corresponding to the service provider; the broadcast information comes from any one of the service request terminals; a connection configuration information feedback unit 220, configured to feed back connection configuration information carrying a digital signature result to the service request end corresponding to the broadcast information if the broadcast information matches the service configuration information.
The service registration discovery system of the self-adaptive peer-to-peer mode provided by the embodiment of the invention applies the service registration discovery method of the self-adaptive peer-to-peer mode, the service request end sends broadcast information to the service providing end, the service providing end judges whether the broadcast information is matched with the service configuration information, if the broadcast information is matched with the service configuration information, the service request end feeds back connection configuration information with a digital signature result to the corresponding service request end, receives the connection configuration information and carries out signature verification, and if the verification is passed, the service request end sends a service connection request to be connected with an establishment request provided by the corresponding service. By the method, the micro service architecture library is configured at the service request end and the service providing end simultaneously, the service request end sends broadcast information to any service providing end, the service providing end receives any broadcast and can establish request connection with the corresponding service request end, service registration discovery in a self-adaptive peer-to-peer mode is achieved, the condition that system service is abnormal due to the fact that service nodes or service node clusters are out of order is avoided, and reliability of service providing by the service providing end is improved.
The service registration discovery method in the adaptive peer-to-peer mode may be implemented in the form of a computer program, and both the service request end and the service provider end in the service registration discovery system in the adaptive peer-to-peer mode may be implemented as computer devices, and the computer program may be run on the computer device shown in fig. 12. The service providing terminal comprises a second memory, a second processor and a second computer program which is stored on the second memory and can be operated on the second processor; the computer device implemented by the service request end can run a computer program corresponding to a part of method steps which can be executed at the service request end in the service registration discovery method of the adaptive peer-to-peer mode; the computer device realized by the service provider can run a computer program corresponding to a part of method steps which can be executed by the service provider in the service registration discovery method of the adaptive peer-to-peer mode.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a service requester or a service provider for performing an adaptive peer-to-peer mode service registration discovery method to enable adaptive peer-to-peer mode service registration discovery.
Referring to fig. 12, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform an adaptive peer-to-peer mode service registration discovery method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute the service registration discovery method in the adaptive peer-to-peer mode.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run a computer program 5032 stored in the memory to implement the corresponding functions in the service registration discovery method in the adaptive peer-to-peer mode.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 12 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 12, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the present invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium. The computer readable storage medium stores a first computer program configured in a service request end and a second computer program configured in a service provider end, the service request end includes a first processor, the service provider end includes a second processor, and when the first computer program is executed by the first processor and the second computer program is executed by the second processor, the first computer program and the second computer program jointly implement the steps included in the service registration discovery method in the adaptive peer-to-peer mode.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium comprises: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A service registration discovery method in a self-adaptive peer-to-peer mode is characterized in that the method is applied to a service registration discovery system based on micro-services, the service registration discovery system based on the micro-services comprises a service request end and a service providing end, and the service request end and the service providing end are in network connection to realize data information transmission;
the method comprises the following steps executed at the service request end:
transmitting broadcast information to at least one of the service providers; the broadcast information comprises a request end identification and a service matching parameter;
if receiving the connection configuration information from any service provider, performing signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
if the verification result is passed, sending a service connection request to the service provider corresponding to the connection configuration information according to the connection configuration information so as to establish a request connection with the corresponding service provider;
the method further comprises the following steps performed at the service provider:
judging whether the received broadcast information is matched with service configuration information, wherein the service configuration information is configuration information corresponding to the service provider; the broadcast information comes from any one of the service request terminals;
and if the broadcast information is matched with the service configuration information, feeding back connection configuration information carrying a digital signature result to the service request end corresponding to the broadcast information.
2. The method of claim 1, wherein the performing signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result that whether the connection configuration information passes or not comprises:
signing the connection configuration parameters in the connection configuration information according to the public key of the micro-service digital certificate of the signature verification rule to obtain corresponding signature verification information;
and judging whether the signature verification information is the same as the digital signature result or not so as to obtain a verification result of whether the signature verification information passes or not.
3. The method of claim 1, wherein the determining whether the received broadcast information matches the service configuration information comprises:
acquiring configuration values corresponding to all matching parameters in the service configuration information;
and judging whether the configuration values are matched with the matching conditions of all the matching parameters in the service matching parameters so as to judge whether the broadcast information is matched with the service configuration information.
4. The method of claim 1, wherein the feeding back connection configuration information carrying a digital signature result to the service requester corresponding to the broadcast information comprises:
performing trusted signature on the connection configuration parameters in the service configuration information according to a prestored private key of the micro-service digital certificate to obtain a corresponding digital signature result;
and combining the digital signature result with the connection configuration parameters to obtain the connection configuration information carrying the digital signature result, and feeding the connection configuration information carrying the digital signature result back to the service request end corresponding to the broadcast information.
5. The method of claim 4, wherein the service provider is configured with a plurality of interconnected service nodes, and wherein the method further comprises the following steps performed at the service provider:
each first service node sends an abnormal detection heartbeat packet to a second service node; the first service node is a service node which does not establish a request connection with the service request end, and the second service node is a service node which establishes a request connection with the service request end;
if the first service node does not receive detection feedback information corresponding to the abnormal detection heartbeat packet fed back by any second service node, determining the second service node which does not feed back the detection feedback information as an abnormal service node;
performing configuration updating on the connection between the service nodes in the service providing terminal according to the abnormal service node;
and selecting any service node from the first service nodes to reestablish the request connection with the service request end, and changing the service node reestablished the request connection with the service request end into a second service node.
6. The method for service registration discovery in adaptive peer-to-peer mode according to claim 5, wherein said method further comprises the following steps performed at said service provider:
if the number of the service nodes of the service provider is increased or decreased, acquiring current configuration parameters and historical configuration parameters of the service provider; the current configuration parameter is a connection configuration parameter after the service node is changed; the historical configuration parameters are connection configuration parameters before the service node is changed;
carrying out trusted signature on the current configuration parameters according to the private key of the micro-service digital certificate to obtain a corresponding current signature result;
and combining the current signature result, the digital signature result corresponding to the historical configuration parameters and the current configuration parameters to obtain connection updating configuration information and feeding the connection updating configuration information back to the service request end corresponding to the broadcast information.
7. A service registration discovery method in a self-adaptive peer-to-peer mode is characterized in that the method is applied to a service registration discovery system based on micro-services, the service registration discovery system based on micro-services comprises a service request end and a service providing end, and the service request end and the service providing end carry out network bridging through a TCP gateway to realize the transmission of data information;
the method comprises the following steps executed at the service request end:
sending broadcast information to the TCP gateway and forwarding the broadcast information to at least one service provider through the TCP gateway; the broadcast information comprises a request end identifier and a service name identifier;
if receiving the connection configuration information from any service provider forwarded by the TCP gateway, performing signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
if the verification result is that the service connection request passes the verification result, sending a service connection request to the TCP gateway according to the connection configuration information, and forwarding the service connection request to the service provider corresponding to the connection configuration information through the TCP gateway so as to establish request connection with the corresponding service provider through the TCP gateway;
the method further comprises the following steps performed at the service provider:
judging whether the received broadcast information is matched with the service configuration information; the service configuration information is configuration information corresponding to the service providing terminal, and the broadcast information is from any one of the service request terminals;
and if the broadcast information is matched with the service configuration information, feeding back connection configuration information carrying a digital signature result to the TCP gateway and forwarding the connection configuration information to the service request end corresponding to the broadcast information through the TCP gateway.
8. A service registration discovery system in an adaptive peer-to-peer mode is characterized in that the system is configured in a service registration discovery system based on micro-services, the service registration discovery system based on micro-services comprises a service request end and a service providing end, and the service request end and the service providing end are in network connection to realize data information transmission;
the system comprises the following units configured at the service request end:
a broadcast information transmitting unit for transmitting broadcast information to at least one of the service providing terminals; the broadcast information comprises a request end identification and a service matching parameter;
a verification result obtaining unit, configured to, if connection configuration information from any of the service providers is received, perform signature verification on the connection configuration information according to a preset signature verification rule to obtain a verification result of whether the connection configuration information passes or not;
a request connection establishing unit, configured to send a service connection request to the service provider corresponding to the connection configuration information according to the connection configuration information if the verification result is that the service provider passes the verification result, so as to establish a request connection with the corresponding service provider;
the system also comprises the following units configured at the service provider:
a matching judgment unit, configured to judge whether the received broadcast information matches service configuration information, where the service configuration information is configuration information corresponding to the service provider; the broadcast information comes from any one of the service request terminals;
and the connection configuration information feedback unit is used for feeding back the connection configuration information carrying the digital signature result to the service request end corresponding to the broadcast information if the broadcast information is matched with the service configuration information.
9. An adaptive peer-to-peer mode service registration discovery system, the system comprising a service requester and a service provider, the service requester comprising a first memory, a first processor and a first computer program stored on the first memory and executable on the first processor, the service provider comprising a second memory, a second processor and a second computer program stored on the second memory and executable on the second processor, wherein the first processor executes the first computer program and the second processor executes the second computer program to jointly implement the adaptive peer-to-peer mode service registration discovery method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a first computer program and a second computer program which, when executed by a first processor and by a second processor, together implement the method of service registration discovery in adaptive peer-to-peer mode according to any of claims 1 to 7.
CN202210607516.7A 2022-05-31 2022-05-31 Service registration discovery method, system and medium in self-adaptive peer-to-peer mode Pending CN115002195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210607516.7A CN115002195A (en) 2022-05-31 2022-05-31 Service registration discovery method, system and medium in self-adaptive peer-to-peer mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210607516.7A CN115002195A (en) 2022-05-31 2022-05-31 Service registration discovery method, system and medium in self-adaptive peer-to-peer mode

Publications (1)

Publication Number Publication Date
CN115002195A true CN115002195A (en) 2022-09-02

Family

ID=83031699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210607516.7A Pending CN115002195A (en) 2022-05-31 2022-05-31 Service registration discovery method, system and medium in self-adaptive peer-to-peer mode

Country Status (1)

Country Link
CN (1) CN115002195A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981633A (en) * 2019-03-19 2019-07-05 全链通有限公司 Access method, equipment and the computer readable storage medium of server
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center
US20200106840A1 (en) * 2017-06-02 2020-04-02 Huawei Technologies Co., Ltd. Service Discovery Method, Registration Center, and Device
CN112988412A (en) * 2021-02-07 2021-06-18 中国联合网络通信集团有限公司 Edge caching method, base station and system based on block chain network
WO2022088666A1 (en) * 2020-10-29 2022-05-05 平安科技(深圳)有限公司 Service instance verification method and apparatus, electronic device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200106840A1 (en) * 2017-06-02 2020-04-02 Huawei Technologies Co., Ltd. Service Discovery Method, Registration Center, and Device
CN109981633A (en) * 2019-03-19 2019-07-05 全链通有限公司 Access method, equipment and the computer readable storage medium of server
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center
WO2022088666A1 (en) * 2020-10-29 2022-05-05 平安科技(深圳)有限公司 Service instance verification method and apparatus, electronic device, and storage medium
CN112988412A (en) * 2021-02-07 2021-06-18 中国联合网络通信集团有限公司 Edge caching method, base station and system based on block chain network

Similar Documents

Publication Publication Date Title
US11496577B2 (en) Broker-based bus protocol and multi-client architecture
US20220385460A1 (en) Systems and methods for selecting and utilizing a committee of validator nodes in a distributed system
US20180337892A1 (en) Scalable proxy clusters
US8631134B2 (en) Network architecture for secure data communications
US11159376B2 (en) System and method for network infrastructure analysis and convergence
CN107886328B (en) Transaction processing method and device, computer equipment and storage medium
CN107204901B (en) Computer system for providing and receiving state notice
US11637856B2 (en) Implementation comparison-based security system
US11917018B2 (en) Broker-based bus protocol and multi-client architecture
US11902130B2 (en) Data packet loss detection
JP2019525604A (en) Network function NF management method and NF management apparatus
CN112929225B (en) Session exception handling method and device, computer equipment and storage medium
CN111327650A (en) Data transmission method, device, equipment and storage medium
JP7279899B2 (en) Data collection method, data collection apparatus, data collection device and computer readable storage medium
US10841088B2 (en) Secure credential generation and validation
US20220046028A1 (en) Method and system for determining a state of an account in a network device running a light client protocol of a distributed ledger technology network
US20240039782A1 (en) Computer network troubleshooting and diagnostics using metadata
US11792095B1 (en) Computer network architecture mapping using metadata
US11405325B2 (en) In-band-telemetry-based path MTU size determination system
CN115002195A (en) Service registration discovery method, system and medium in self-adaptive peer-to-peer mode
CN111813615B (en) Transaction exception processing method for application system
CN112636926B (en) Signature processing method and device and electronic equipment
US20230239697A1 (en) Methods, systems, and computer readable media for handling hacker intrusion in profile management at network function (nf) repository function (nrf)
WO2021115554A1 (en) A service based interface for establishing distributed consensus
CN114301764A (en) Method, equipment and system for establishing disaster recovery channel

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