CN115086262A - Heterogeneous instant messaging method and related device - Google Patents

Heterogeneous instant messaging method and related device Download PDF

Info

Publication number
CN115086262A
CN115086262A CN202210694959.4A CN202210694959A CN115086262A CN 115086262 A CN115086262 A CN 115086262A CN 202210694959 A CN202210694959 A CN 202210694959A CN 115086262 A CN115086262 A CN 115086262A
Authority
CN
China
Prior art keywords
communication
nodes
node
session
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.)
Granted
Application number
CN202210694959.4A
Other languages
Chinese (zh)
Other versions
CN115086262B (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.)
Shenzhen Securities Communication Co ltd
Original Assignee
Shenzhen Securities Communication 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 Securities Communication Co ltd filed Critical Shenzhen Securities Communication Co ltd
Priority to CN202210694959.4A priority Critical patent/CN115086262B/en
Publication of CN115086262A publication Critical patent/CN115086262A/en
Application granted granted Critical
Publication of CN115086262B publication Critical patent/CN115086262B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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
    • 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/3263Cryptographic 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 certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Landscapes

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

Abstract

The embodiment of the application provides a heterogeneous instant messaging method, wherein the method comprises the following steps: a main communication node receives communication messages sent by K session initiating nodes, wherein the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating node is a communication node except the main communication node in the communication nodes; the master communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequencing sequence; the main communication node broadcasts the communication messages sent by the K session initiating nodes to the session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, the session receiving nodes are communication nodes in the plurality of communication nodes, and communication supervision and the like can be carried out through the main communication nodes selected by the communication nodes, so that the efficiency of communication among the communication nodes is improved.

Description

Heterogeneous instant messaging method and related device
Technical Field
The present application relates to the field of heterogeneous communication technologies, and in particular, to a heterogeneous instant messaging method and a related apparatus.
Background
In the securities industry, more and more businesses need instant messaging, different securities companies adopt different instant messaging software, a communication architecture needs to be established in the different instant messaging software, and the supervision requirement that supervision can trace back communication contents is met.
The general methods for performing the architecture are: the monitoring party is used as a cube, all communication software is accessed to the monitoring party and is forwarded and marked by the monitoring party, and because the monitoring party is used as a server, all communication passes through the monitoring party, a large amount of calculation, storage and network resources are occupied, so that the communication efficiency is low.
Disclosure of Invention
The embodiment of the application provides a heterogeneous instant messaging method and a related device, which can carry out communication supervision and the like through a main communication node selected by a communication node, thereby improving the efficiency of communication among the communication nodes.
A first aspect of an embodiment of the present application provides a heterogeneous instant messaging method, where the method includes:
a main communication node receives communication messages sent by K session initiating nodes, wherein the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating node is a communication node except the main communication node in the communication nodes;
the master communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequencing sequence;
and the main communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
With reference to the first aspect, in one possible implementation manner, the method further includes:
a main communication node receives a message recovery request sent by the session initiating node and/or the session receiving node, wherein the message recovery request carries identification information of a communication message;
and the main communication node sends and sends a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
With reference to the first aspect, in one possible implementation manner, the communication message includes communication signature information, where the communication signature information includes at least a timestamp, a digital signature, and a preamble set of an event.
With reference to the first aspect, in one possible implementation manner, the method further includes: the plurality of communication nodes carry authentication certificates sent by the notarization server.
With reference to the first aspect, in one possible implementation manner, the method further includes:
the main communication node receives state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
the main communication node determines a corresponding state information set according to the state indication parameter set;
if abnormal state information exists in the state information set, the main communication node acquires communication parameters of a node corresponding to the abnormal state information within a preset time interval according to the acquired abnormal state information;
the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
the master communication node determines second abnormal information according to the state indication parameter corresponding to the abnormal state information;
the master communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
the primary communication node presents the adjustment information.
A second aspect of an embodiment of the present application provides a heterogeneous instant messaging device, including:
a receiving unit, configured to receive communication messages sent by K session initiating nodes, where the master communication node is determined by a coherence protocol for multiple communication nodes, at least two of the multiple communication nodes are of different types, and the session initiating node is a communication node other than the master communication node among the multiple communication nodes;
a sorting unit, configured to sort the communication messages sent by the K session initiation nodes to obtain a sorting sequence;
and the sending unit is used for broadcasting the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
With reference to the second aspect, in one possible implementation manner, the apparatus is further configured to:
receiving a message recovery request sent by the session initiating node and/or the session receiving node, wherein the message recovery request carries identification information of a communication message;
and sending a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
With reference to the second aspect, in one possible implementation manner, the communication message includes communication signature information, and the communication signature information includes at least a timestamp, a digital signature, and a preamble set of an event.
With reference to the second aspect, in a possible implementation manner, the plurality of communication nodes carry an authentication certificate sent by a notarization server.
With reference to the second aspect, in one possible implementation manner, the apparatus is further configured to:
receiving state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
determining a corresponding state information set according to the state indication parameter set;
if abnormal state information exists in the state information set, communication parameters of a node corresponding to the acquired abnormal state information within a preset time interval are obtained;
determining first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
determining second abnormal information according to the state indication parameters corresponding to the abnormal state information;
the main communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
and displaying the adjustment information.
A third aspect of the embodiments of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps as described in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has at least the following beneficial effects:
a master communication node receives communication messages sent by K session initiating nodes, the master communication node determines for a plurality of communication nodes through a consistency protocol, at least two of the plurality of communication nodes are of different types, the session initiating node being a communication node of the plurality of communication nodes other than the primary communication node, the master communication node sequences the communication messages sent by the K session initiating nodes, to obtain a sequencing sequence, the master communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, the session receiving nodes are communication nodes in the plurality of communication nodes, therefore, communication supervision and the like can be carried out through the main communication node selected by the communication node, and the efficiency of communication among the communication nodes is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a heterogeneous instant messaging architecture according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a heterogeneous instant messaging method according to an embodiment of the present application;
fig. 2B is a schematic diagram of a heterogeneous instant messaging method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another heterogeneous instant messaging method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a heterogeneous instant messaging device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the current securities industry, different security companies adopt different instant messaging software, so that a communication architecture needs to be established in different instant messaging software, and the supervision requirement of supervising traceable communication contents is met. The existing communication methods generally comprise:
1) the monitoring party is used as a cube, all communication software is accessed to the monitoring party and forwarded through the monitoring party, and traces are left; however, since the monitoring party is used as a server, all communication passes through the monitoring party, which occupies a large amount of calculation, storage, network resources and has low efficiency;
2) all communication software is completely equivalent and communicates by means of p2 p. In the scheme, a complete record is reserved for all communication parties without a supervision party, the requirement that the supervision can trace back the communication content is met, the communication orderliness is quite complex, the communication party is used as a financial industry, the supervision party is not authenticated, the identity of the communication party is disputed, a special line scheme can be adopted for meeting the identity authentication, all security traders establish a private network, and the scheme is huge in consumption.
In order to better understand the heterogeneous instant messaging method provided in the embodiments of the present application, a brief description of applying the heterogeneous instant messaging method is first provided below. As shown in fig. 1, the heterogeneous instant messaging method involves a plurality of communication nodes, where the plurality of communication nodes are elected through a consistency protocol raft before initiating communication, the elected communication nodes serve as main communication nodes, and the main communication nodes are used to receive and forward messages, so that communication supervision and the like can be performed through the main communication nodes selected by the communication nodes themselves, and a proprietary server for supervision is not needed to perform communication supervision and the like, thereby improving the efficiency of communication between the communication nodes, and solving the above problems.
Referring to fig. 2A, fig. 2A is a schematic flowchart illustrating a heterogeneous instant messaging method according to an embodiment of the present disclosure. As shown in fig. 2A, the heterogeneous instant messaging method includes:
201. the method comprises the steps that a main communication node receives communication messages sent by K session initiating nodes, the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating nodes are communication nodes except the main communication node in the communication nodes.
The communication nodes may be different instant messaging software of different securities companies, the types of the instant messaging software of different securities companies may be the same or different, and of course, at least 2 instant messaging software in the different instant messaging software of the securities companies have different types.
The consistency protocol can be a raft protocol, and the protocol can enumerate the main communication nodes, so that the consistency of subsequent communication can be ensured.
Of course, the session initiating node may also be the primary communication node. A session initiating node may be understood as a node that needs to communicate with other communication nodes and that sends a communication message, which may include communication data, communication instructions, etc., to the master communication node.
202. And the master communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequencing sequence.
The master communication node may sequence the received communication messages sent by the K session initiating nodes in order to obtain a sequence. Specifically, for example, a time when the communication message sent by the first session initiating node is received is a first time, a time when the communication message sent by the second session initiating node is received is a second time, and if the first time is before the second time, a position of the communication message sent by the first session initiating node in the sequencing sequence is before a position of the communication message sent by the second session initiating node.
203. And the main communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
The communication messages sent by the K session initiating nodes may be broadcast sequentially according to the order of the ordered sequence. For example, if the position of the communication message sent by the first session initiating node in the ordered sequence is before the position of the communication message sent by the second session initiating node, the communication message sent by the first session initiating node is broadcasted first, and then the communication message sent by the second session initiating node is broadcasted.
In this example, a master communication node receives communication messages sent by K session initiating nodes, the master communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the plurality of communication nodes are different in type, the session initiating node is a communication node other than the master communication node among the plurality of communication nodes, the master communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequence, the master communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequence, the session receiving nodes are communication nodes among the plurality of communication nodes, therefore, communication supervision and the like can be performed through the master communication node selected by the communication nodes, therefore, the efficiency of communication between the communication nodes is improved.
In one possible implementation, because the communication node may be down, the communication node crashes, and the like, the communication messages of the communication node need to be recovered, specifically including a1-a 2:
a1, a main communication node receiving a message recovery request sent by the session initiating node and/or the session receiving node, the message recovery request carrying identification information of a communication message;
a2, the master communication node sends a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
If the session initiating node and/or the session receiving node needs to recover the previous communication negatively after the failure, a message recovery request can be sent to the primary communication node. The identification information of the communication message may be identification information for uniquely identifying the communication message, or may be identification information for uniquely identifying the communication message within a certain period of time.
In one possible implementation, the communication message includes communication signature information including at least a timestamp, a digital signature, a preamble of an event.
Of course, the signature information may also include a name of a communication site, a room, a creator of the room, a sender, an event ID, an event type, event content, and the like. Here, a room can be understood as a communication network formed by a plurality of communication nodes centering on a main communication node. The sender may be understood as a session initiating node.
In one possible implementation manner, the plurality of communication nodes carry authentication certificates sent by the notarization server.
Specifically, it can be understood that: before communication, the plurality of communication nodes can send authentication certificate application requests to the notarization server, and after receiving the authentication certificate application requests, the notarization server sends authentication certificates to the communication nodes, so that the identity authentication fairness of the communication nodes can be guaranteed.
In a possible implementation manner, since a communication node may have a communication exception during communication, and thus needs to handle the communication exception, a possible handling method includes B1-B7, which is as follows:
b1, the master communication node receives the state indication parameters sent by the session initiating node and the session receiving node to obtain a state indication parameter set;
b2, the main communication node determines a corresponding state information set according to the state indication parameter set;
b3, if abnormal state information exists in the state information set, the main communication node acquires the communication parameters of the node corresponding to the abnormal state information within a preset time interval according to the acquired communication parameters;
b4, the main communication node determines first abnormal information of the node corresponding to the abnormal state information according to the communication parameters;
b5, the main communication node determines second abnormal information according to the state indication parameter corresponding to the abnormal state information;
b6, the main communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
b7, the master communication node showing the adjustment information.
The state indication parameter may be used to indicate states of the session initiating node and the session receiving node, so that the state information may be obtained according to the state indication parameter. The preset time interval is set by an empirical value or historical data. The communication parameter may be a packet loss rate, a communication frequency, a communication delay, a transmission rate, or the like.
The communication parameter may be compared with a preset communication parameter interval, the communication parameter that does not belong to the preset communication parameter interval or is not completely included in the preset communication parameter interval is determined as an abnormal communication parameter, and the first abnormal information is determined according to the abnormal communication parameter. Different abnormal communication parameters correspond to different first abnormal information, and the first abnormal information can be used for reflecting the abnormal degree of the abnormal communication parameters.
The second abnormal information can be determined according to the state indicating parameters corresponding to the abnormal state information, and different second abnormal information can be corresponding to different state indicating parameters.
The first abnormal information and the second abnormal information may be mutually verified to obtain a verification result. Specifically, the intersection of the first abnormal information and the second abnormal information may be determined as a verification result. Or determining the verification information according to the first abnormal information, and correcting the second abnormal information according to the verification information to obtain a verification result. The check information may be determined according to a main abnormality factor in the first abnormality information. And determining the adjustment information according to the verification result, wherein different verification results correspond to different adjustment information.
In this example, the second abnormal information and the first abnormal information determined by the communication parameters in the preset time interval may be determined through the state indication parameters corresponding to the abnormal state information, a verification result is obtained, and the adjustment information is determined according to the verification result, so that the accuracy in determining the adjustment information is improved.
In a specific embodiment, another heterogeneous instant messaging method is provided, as shown in fig. 2B, specifically as follows:
(1) notary services
Before a communication node of each security dealer joins a network, a certificate needs to be applied to a notarization server, and a notarization party appointed by a certificate prison provides the certificate, so that the fairness of identity authentication is ensured; the fairness server may be a trusted third party server that is used for provisioning of certificates.
(2) Room election protocol
After the certificate application of the communication node is successful, a room needs to be established for communication before the communication node performs communication. The establishment of the room is sent to the inviter by the communication initiator, and all communication nodes (the communication initiator and the communication inviter) participating in the communication are elected through a consistency protocol raft, the elected communication nodes serve as main communication nodes, and then communication messages are forwarded based on the main communication nodes. And selecting one main communication node in each room, and if the communication node crashes in the communication process, pulling all contents to the main communication node after the communication node recovers so as to ensure the recoverability.
(3) Traceable content protocol
Each communication is sent to the main communication node by the sender, the communication nodes carry out sequencing, and the master communication node broadcasts the sequencing to other nodes; thereby ensuring the consistency of the communication sequence; each time the protocol is sent, the content needs to be signed, so that the non-repudiation of the content is ensured; the signature information may include a correspondence site name, a room creator, a sender, an event ID, an event type, an event content, a timestamp, a digital signature, a preamble set of an event, etc.
(4) Secure and reliable protocol
The communication is carried out by https, and the algorithm adopts the national secret standard, so that the safety and reliability of the communication are ensured; and a heartbeat mechanism is adopted between communications to ensure the online state.
The heterogeneous instant messaging method meets the trust problem, is safe and reliable, ensures the orderliness of communication, is highly extensible, can be restored, can trace back the communication content, and adopts a centralized mode, a p2p mode, a private line mode and other architectures, so the method has the following beneficial effects:
the high identity authentication of the financial industry is ensured by adopting a notary scheme;
the authentication and communication structure is layered, the authentication adopts an independent authentication service, and the communication adopts a peer-to-peer network protocol;
the communication security adopts a national cryptographic algorithm and an https protocol, so that the low-cost network and the communication security on the internet are ensured;
the protocol of sequencing and broadcasting by the main communication node is adopted, so that the communication sequence and simplicity of the peer-to-peer network are ensured;
one main communication node is elected in each room, so that high expandability of the whole framework is guaranteed;
the communication protocols all adopt signatures, thereby ensuring the traceability of the content and meeting the supervision requirement.
Referring to fig. 3, fig. 3 is a flowchart illustrating another heterogeneous instant messaging method according to an embodiment of the present application. As shown in fig. 3, the heterogeneous instant messaging method includes:
301. a main communication node receives communication messages sent by K session initiating nodes, wherein the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating nodes are communication nodes except the main communication node in the communication nodes;
302. the main communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequence;
303. the main communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes;
304. the main communication node receives state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
305. the main communication node determines a corresponding state information set according to the state indication parameter set;
306. if abnormal state information exists in the state information set, the main communication node acquires communication parameters of a node corresponding to the abnormal state information within a preset time interval according to the acquired abnormal state information;
307. the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
308. the master communication node determines second abnormal information according to the state indication parameter corresponding to the abnormal state information;
309. the master communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
310. the primary communication node presents the adjustment information.
In this example, the second abnormal information and the first abnormal information determined by the communication parameter in the preset time interval may be determined to be verified through the state indication parameter corresponding to the abnormal state information, so as to obtain a verification result, and the adjustment information is determined according to the verification result, thereby improving the accuracy when the adjustment information is determined.
In accordance with the foregoing embodiments, please refer to fig. 4, where fig. 4 is a schematic structural diagram of a terminal provided in an embodiment of the present application, and as shown in the figure, the terminal includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for performing the following steps;
receiving communication messages sent by K session initiating nodes, wherein the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating nodes are communication nodes except the main communication node;
sequencing the communication messages sent by the K session initiating nodes to obtain a sequencing sequence;
and broadcasting the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the terminal includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. 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 application.
In the embodiment of the present application, the terminal may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the above, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a heterogeneous instant messaging device according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a receiving unit 501, configured to receive communication messages sent by K session initiating nodes, where the master communication node is determined by a coherence protocol for multiple communication nodes, at least two of the multiple communication nodes are of different types, and the session initiating node is a communication node other than the master communication node among the multiple communication nodes;
a sorting unit 502, configured to perform sorting processing on the communication messages sent by the K session initiation nodes to obtain a sorting sequence;
a sending unit 503, configured to broadcast, according to the sorting sequence, the communication message sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes, where the session receiving nodes are communication nodes in the multiple communication nodes.
In one possible implementation, the apparatus is further configured to:
receiving a message recovery request sent by the session initiating node and/or the session receiving node, wherein the message recovery request carries identification information of a communication message;
and sending a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
In one possible implementation, the communication message includes communication signature information including at least a timestamp, a digital signature, and a preamble of an event.
In one possible implementation manner, the plurality of communication nodes carry authentication certificates sent by the notarization server.
In one possible implementation, the apparatus is further configured to:
receiving state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
determining a corresponding state information set according to the state indication parameter set;
if abnormal state information exists in the state information set, communication parameters of a node corresponding to the acquired abnormal state information within a preset time interval are obtained;
determining first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
determining second abnormal information according to a state indication parameter corresponding to the abnormal state information;
the main communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
and displaying the adjustment information.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the heterogeneous instant messaging methods as described in the above method embodiments.
Embodiments of the present application further provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to perform part or all of the steps of any one of the heterogeneous instant messaging methods as described in the above method embodiments.
It should be noted that for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, 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 implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
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.
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 may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including 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 described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash memory disks, read-only memory, random access memory, magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A heterogeneous instant messaging method, the method comprising:
a main communication node receives communication messages sent by K session initiating nodes, wherein the main communication node is determined by a consistency protocol for a plurality of communication nodes, at least two of the communication nodes are different in type, and the session initiating node is a communication node except the main communication node in the communication nodes;
the master communication node sequences the communication messages sent by the K session initiating nodes to obtain a sequencing sequence;
and the main communication node broadcasts the communication messages sent by the K session initiating nodes to session receiving nodes corresponding to the K session initiating nodes according to the sequencing sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
2. The method of claim 1, further comprising:
a main communication node receives a message recovery request sent by the session initiating node and/or the session receiving node, wherein the message recovery request carries identification information of a communication message;
and the main communication node sends a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
3. The method of claim 1 or 2, wherein the communication message comprises communication signature information including at least a timestamp, a digital signature, a preamble of an event.
4. The method according to claim 3, wherein the plurality of communication nodes carry authentication certificates sent by a notarization server.
5. The method according to any one of claims 1-4, further comprising:
the main communication node receives state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
the main communication node determines a corresponding state information set according to the state indication parameter set;
if abnormal state information exists in the state information set, the main communication node acquires communication parameters of a node corresponding to the abnormal state information within a preset time interval according to the acquired abnormal state information;
the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
the master communication node determines second abnormal information according to the state indication parameter corresponding to the abnormal state information;
the master communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
the primary communication node presents the adjustment information.
6. A heterogeneous instant messaging apparatus, the apparatus comprising:
a receiving unit, configured to receive communication messages sent by K session initiating nodes, where the master communication node is determined by a coherence protocol for multiple communication nodes, at least two of the multiple communication nodes are of different types, and the session initiating node is a communication node other than the master communication node among the multiple communication nodes;
a sorting unit, configured to sort the communication messages sent by the K session initiation nodes to obtain a sorting sequence;
and a sending unit, configured to broadcast, according to the sorting sequence, the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes, where the session receiving nodes are communication nodes in the multiple communication nodes.
7. The apparatus of claim 6, wherein the apparatus is further configured to:
receiving a message recovery request sent by the session initiating node and/or the session receiving node, wherein the message recovery request carries identification information of a communication message;
and sending a communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
8. The apparatus of claim 6 or 7, wherein the apparatus is further configured to:
receiving state indication parameters sent by a session initiating node and a session receiving node to obtain a state indication parameter set;
determining a corresponding state information set according to the state indication parameter set;
if abnormal state information exists in the state information set, communication parameters of a node corresponding to the acquired abnormal state information within a preset time interval are obtained;
determining first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
determining second abnormal information according to the state indication parameters corresponding to the abnormal state information;
the main communication node determines the adjustment information according to the first abnormality information and the second abnormality information;
and displaying the adjustment information.
9. A terminal, comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-5.
CN202210694959.4A 2022-06-20 2022-06-20 Heterogeneous instant messaging method and related device Active CN115086262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210694959.4A CN115086262B (en) 2022-06-20 2022-06-20 Heterogeneous instant messaging method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210694959.4A CN115086262B (en) 2022-06-20 2022-06-20 Heterogeneous instant messaging method and related device

Publications (2)

Publication Number Publication Date
CN115086262A true CN115086262A (en) 2022-09-20
CN115086262B CN115086262B (en) 2023-09-26

Family

ID=83253869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210694959.4A Active CN115086262B (en) 2022-06-20 2022-06-20 Heterogeneous instant messaging method and related device

Country Status (1)

Country Link
CN (1) CN115086262B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201910A1 (en) * 2008-02-13 2009-08-13 Cisco Technology, Inc. Apparatus and method to handle dynamic payloads in a heterogeneous network
CN103780615A (en) * 2014-01-20 2014-05-07 五八同城信息技术有限公司 Sharing method of client conversation data among multiple servers
US20170155565A1 (en) * 2015-11-27 2017-06-01 Fujitsu Limited Calculation device, program, and information processing method
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
US20180191562A1 (en) * 2016-12-30 2018-07-05 UBTECH Robotics Corp. Parameter setting method for system bus and device thereof
CN110972336A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Communication method and device
CN111176939A (en) * 2019-12-20 2020-05-19 苏州浪潮智能科技有限公司 Multi-node server management system and method based on CPLD
CN113220540A (en) * 2021-06-07 2021-08-06 深圳华锐金融技术股份有限公司 Service management method, device, computer equipment and storage medium
CN113810379A (en) * 2021-08-23 2021-12-17 深圳价值在线信息科技股份有限公司 Exception handling method and multi-service system
CN113965578A (en) * 2021-10-28 2022-01-21 上海达梦数据库有限公司 Method, device, equipment and storage medium for electing master node in cluster

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201910A1 (en) * 2008-02-13 2009-08-13 Cisco Technology, Inc. Apparatus and method to handle dynamic payloads in a heterogeneous network
CN103780615A (en) * 2014-01-20 2014-05-07 五八同城信息技术有限公司 Sharing method of client conversation data among multiple servers
US20170155565A1 (en) * 2015-11-27 2017-06-01 Fujitsu Limited Calculation device, program, and information processing method
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
US20180191562A1 (en) * 2016-12-30 2018-07-05 UBTECH Robotics Corp. Parameter setting method for system bus and device thereof
CN110972336A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Communication method and device
CN111176939A (en) * 2019-12-20 2020-05-19 苏州浪潮智能科技有限公司 Multi-node server management system and method based on CPLD
CN113220540A (en) * 2021-06-07 2021-08-06 深圳华锐金融技术股份有限公司 Service management method, device, computer equipment and storage medium
CN113810379A (en) * 2021-08-23 2021-12-17 深圳价值在线信息科技股份有限公司 Exception handling method and multi-service system
CN113965578A (en) * 2021-10-28 2022-01-21 上海达梦数据库有限公司 Method, device, equipment and storage medium for electing master node in cluster

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
KUO-HSUN HSU等: "Extending OSGi with Instant Messaging Communications and Peer to Peer Transfer Based on XMPP", 《2012 INTERNATIONAL SYMPOSIUM ON COMPUTER, CONSUMER AND CONTROL》 *
郝世选;: "复杂软件程序运行异常源点准确定位仿真分析", 计算机仿真, no. 08 *
陈康: "发布/订阅分布式系统的在线健康状态评估", 《中国优秀硕士论文电子期刊网》 *

Also Published As

Publication number Publication date
CN115086262B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN107888562B (en) Data verification and transceiving method, node and system for parallel link access to interconnection chain
US20220239496A1 (en) Blockchain consensus method, device and system
JP2020512708A5 (en)
CN110177124B (en) Identity authentication method based on block chain and related equipment
CN108848148B (en) Transaction information confirmation method and device based on block chain
CN111698315B (en) Data processing method and device for block and computer equipment
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN110784521B (en) Block chain consensus method, electronic device and storage medium
CN111541715B (en) Method and device for improving communication between traffic signal control machine and upper computer
WO2022057106A1 (en) Credibility verification system for digital asset data packet
CN111064755A (en) Data protection method and device, computer equipment and storage medium
KR20220074971A (en) Blockchain-based data processing method, apparatus and device, and readable storage medium
EP3361691B1 (en) Method and device for verifying validity of identity of entity
CN115086262A (en) Heterogeneous instant messaging method and related device
CN110618989A (en) Information processing method, information processing device and related product
CN113630445B (en) Data storage method and device based on block chain network
CN111818152B (en) Leader election consensus method based on distributed network
CN111988202B (en) Node switching method, device and storage medium
CN114900837A (en) Network processing method, device, system, equipment and medium
US10681045B2 (en) Multi-TTP-based method and device for verifying validity of identity of entity
CN112989398B (en) Data processing method and device for block chain network, computer equipment and medium
CN114124943A (en) Processing method, device and system for block chain nodes and electronic device
US20230171109A1 (en) Method for authenticating distributed votes for a distributed system
CN115049393A (en) Semi-centralized notary cross-chain method, system and device
US10652029B2 (en) Multi-TTP-based method and device for verifying validity of identity of entity

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