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

Heterogeneous instant messaging method and related device Download PDF

Info

Publication number
CN115086262B
CN115086262B CN202210694959.4A CN202210694959A CN115086262B CN 115086262 B CN115086262 B CN 115086262B CN 202210694959 A CN202210694959 A CN 202210694959A CN 115086262 B CN115086262 B CN 115086262B
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.)
Active
Application number
CN202210694959.4A
Other languages
Chinese (zh)
Other versions
CN115086262A (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

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, which comprises the following steps: a master communication node receives communication messages sent by K session initiation nodes, wherein 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, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes; the master communication node performs sequencing processing on the communication messages sent by the K session initiation nodes to obtain a sequencing sequence; and broadcasting the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes by the master communication node according to the ordering sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes, and can perform communication supervision and the like through the master communication node selected by the communication nodes, so that the communication efficiency of the communication nodes is improved.

Description

Heterogeneous instant messaging method and related device
Technical Field
The application relates to the technical field of heterogeneous communication, in particular to a heterogeneous instant messaging method and a related device.
Background
In the securities industry, more and more businesses need to perform instant messaging, and different securities companies adopt different instant messaging software, so that a communication architecture needs to be established in different instant messaging software, and meanwhile, the supervision requirement of retrospective communication content in supervision is met.
The usual methods for the construction are: the supervision party is used as a middle cube, all communication software is accessed to the supervision party, and is forwarded and marked by the supervision party, and because the supervision party is used as a service end, all communication is subjected to the supervision party, and a large amount of calculation, storage and network resources are occupied, so that the efficiency in communication is lower.
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 communication efficiency of the communication nodes.
A first aspect of an embodiment of the present application provides a heterogeneous instant messaging method, where the method includes:
a master communication node receives communication messages sent by K session initiation nodes, wherein 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, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes;
the master communication node performs sequencing processing on the communication messages sent by the K session initiation nodes to obtain a sequencing sequence;
and broadcasting the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes by the master communication node according to the ordering 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:
the 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 master communication node sends and sends the communication message corresponding to the identification information to the session initiation 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 event 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 initiation 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 obtains communication parameters of the node corresponding to the abnormal state information in a preset time interval according to the communication parameters;
the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
the main communication node determines 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 abnormal information and the second abnormal information;
the master communication node presents the adjustment information.
A second aspect of an embodiment of the present application provides a heterogeneous instant messaging device, the device including:
a receiving unit, configured to receive communication messages sent by K session initiation nodes, where 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, and the session initiation node is a communication node other than the master communication node among the plurality of communication nodes;
the ordering unit is used for ordering the communication messages sent by the K session initiation nodes to obtain an ordering sequence;
and the sending unit is used for broadcasting the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes according to the ordering 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, where the communication signature information includes at least a timestamp, a digital signature, and a preamble event set of an event.
With reference to the second aspect, in one possible implementation manner, the plurality of communication nodes carry authentication certificates 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 initiation 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, according to the communication parameters of the node corresponding to the obtained abnormal state information in a preset time interval;
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 abnormal information and the second abnormal information;
and displaying the adjustment information.
A third aspect of the embodiments of the present application provides 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 adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to execute the step instructions as in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute some or all of the steps as described in the first aspect of the 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 part or all of the steps 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:
the method comprises the steps that a master communication node receives communication messages sent by K session initiation nodes, the master communication node is determined by a plurality of communication nodes through a consistency protocol, at least two of the plurality of communication nodes are different in type, the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes, the master communication node sorts the communication messages sent by the K session initiation nodes to obtain a sorting sequence, the master communication node broadcasts the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes according to the sorting sequence, and the session receiving nodes are communication nodes in the plurality of communication nodes, so that communication supervision and the like can be carried out by the master communication nodes selected by the communication nodes, and the communication efficiency among the communication nodes is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
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 flow chart 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 flow chart of 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 following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the described embodiments of the application may be combined with other embodiments.
In the current securities industry, as different securities companies adopt different instant messaging software, a communication architecture needs to be established in different instant messaging software, and meanwhile, the supervision requirement of retrospective communication content in supervision is met. Existing communication methods typically include:
1) Taking the supervision party as a middle cube, accessing all communication software into the supervision party, forwarding by the supervision party, and marking; however, as the supervisory side is used as the server side, all communication passes through the supervisory side, so that a large amount of calculation, storage and network resources are occupied, and the efficiency teaching is low;
2) All communication software is completely equal and communicates by means of p2 p. In the scheme, the supervision side is not needed, all communication sides keep a complete record, the requirement that the supervision can trace back communication content is met, the ordering of communication is quite complex, meanwhile, as the financial industry, the authentication of the supervision side is not needed, the identity of the communication side is disputed, in order to meet the identity authentication, a special line scheme can be adopted, and all security dealers can establish a private network, so that the scheme is huge in cost.
In order to better understand the heterogeneous instant messaging method provided by the embodiment of the application, a brief description is given below of applying the heterogeneous instant messaging method. As shown in fig. 1, the heterogeneous instant messaging method involves a plurality of communication nodes, the plurality of communication nodes are elected through a consistency protocol, the elected communication nodes are used as main communication nodes, and the main communication nodes are used for receiving, forwarding and the like of messages, so that communication supervision and the like can be performed through the main communication nodes selected by the communication nodes, a proprietary server for supervision is not needed for communication supervision and the like, and the communication efficiency among the communication nodes is improved, so that the problems are solved.
Referring to fig. 2A, fig. 2A is a schematic flow chart of a heterogeneous instant messaging method according to an embodiment of the present application. As shown in fig. 2A, the heterogeneous instant messaging method includes:
201. the method comprises the steps that a master communication node receives communication messages sent by K session initiation nodes, the master communication node is determined by a plurality of communication nodes through a consistency protocol, at least two of the plurality of communication nodes are different in type, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes.
The communication nodes may be different instant messaging software of different securities companies, and 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 types in the different instant messaging software of the securities companies are different.
The coherence protocol may be a raft protocol that may elect a master communication node so that coherence of subsequent communications may be ensured.
Of course the session initiation node may also be the master communication node. A session initiating node may be understood as a node that needs to communicate with other communication nodes and has the node send a communication message to the master communication node, which communication message may comprise communication data, communication indications, etc.
202. And the master communication node performs sequencing processing on the communication messages sent by the K session initiation nodes to obtain a sequencing sequence.
The master communication node may sequence according to the moments of the received communication messages sent by the K session initiation nodes, to obtain a sequence of sequences. Specifically, for example, the time of receiving the communication message sent by the first session initiation node is a first time, the time of receiving the communication message sent by the second session initiation node is a second time, and if the first time is before the second time, the position of the communication message sent by the first session initiation node in the ordering sequence is before the position of the communication message sent by the second session initiation node.
203. And broadcasting the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes by the master communication node according to the ordering sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
The communication messages sent by the K session initiation nodes may be broadcast sequentially according to the order of the ordered sequence. For example, the position of the communication message sent by the first session initiation node in the ordered sequence is before the position of the communication message sent by the second session initiation node, and then the communication message sent by the first session initiation node is broadcast.
In this example, the master communication node receives communication messages sent by K session initiation nodes, where the master communication node determines, by using a consistency protocol, for a plurality of communication nodes, and at least two of the plurality of communication nodes are different in type, and the session initiation node is a communication node other than the master communication node among the plurality of communication nodes, and performs ordering processing on the communication messages sent by the K session initiation nodes, so as to obtain an ordering sequence, and according to the ordering sequence, the master communication node broadcasts 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 among the plurality of communication nodes, so that communication efficiency of communication between the communication nodes is improved by performing communication supervision and the like by using the master communication node selected by the communication node.
In one possible implementation, because the communication node may be down, the communication node crashes, etc., the communication message of the communication node needs to be recovered, which specifically includes A1-A2:
a1, 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;
a2, the main communication node sends and sends the communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
After the session initiating node and/or the session receiving node fail, a message recovery request may be sent to the master communication node if the session initiating node and/or the session receiving node needs to recover the previous communication negative. 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 in 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 event set of the event.
Of course, the signature information may also include a communication site name, a room creator, a sender, an event ID, an event type, event content, and the like. A room is understood to be a communication network consisting of a plurality of communication nodes, centered on a primary communication node. The sender may be understood as a session initiating node.
In one possible implementation, the plurality of communication nodes carry authentication credentials sent by a notarization server.
Specifically, it can be understood that: before the communication nodes communicate, an authentication certificate application request can be sent to the notarization server, and after the notarization server receives the authentication certificate application request, an authentication certificate is sent to the communication nodes, so that the identity authentication legitimacy of the communication nodes can be ensured.
In one possible implementation, since communication abnormality may occur in communication of the communication node, so that the communication abnormality needs to be handled, one possible processing method includes B1-B7, specifically as follows:
b1, 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;
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 obtains communication parameters of the node corresponding to the abnormal state information in a preset time interval according to the 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 parameters corresponding to the abnormal state information;
b6, the main communication node determines the adjustment information according to the first abnormal information and the second abnormal information;
b7, the main communication node displays the adjustment information.
The state indication parameter may be used to indicate states of the session initiation node and the session receiving node, so that 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 parameters may be packet loss rate, communication frequency, communication delay, transmission rate, etc.
The communication parameter may be compared with a preset communication parameter interval, a communication parameter that does not belong to the preset communication parameter interval or is not completely included in the preset communication parameter interval may be determined as an abnormal communication parameter, and the first abnormal information may be 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 anomaly information may be determined according to a status indication parameter corresponding to the anomaly status information, and different status indication parameters may correspond to different second anomaly information.
The first anomaly information and the second anomaly information may be mutually checked to obtain a check result. Specifically, the intersection of the first abnormal information and the second abnormal information may be determined as a verification result. The verification information may be determined according to the first abnormal information, and the second abnormal information may be corrected according to the verification information to obtain a verification result. The verification information may be determined according to a main abnormality factor in the first abnormality information. And determining adjustment information according to the verification results, 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 to verify, so as to obtain a verification result, and the adjustment information may be determined according to the verification result, so that 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 service
Before the communication node of each dealer joins the network, the certification needs to be applied to the notarization server, and the notarization party appointed by the certification authority provides the certification to ensure the fairness of the identity authentication; the fair server may be a trusted third party server for the provision 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 communicates. The establishment of the room is sent to the inviter by the communication initiator, and all communication nodes (communication initiator and communication inviter) participating in the communication are elected through the consistency protocol raft, the elected communication node is used as a master communication node, and the forwarding of the communication message is performed based on the master communication node. Each room selects a main communication node, if the communication node crashes in the communication process, after the communication node recovers, all contents are pulled to the main communication node, so that the recoverability is ensured.
(3) Retrospective content protocol
Each communication is sent to the main communication node by the sender, the communication nodes are sequenced, and the main communication node broadcasts the sequenced communication to other nodes; thereby ensuring the consistency of the communication sequence; each time the transmission protocol needs to sign the content, thereby ensuring the non-repudiation of the content; the signature information may include a communication site name, a room creator, a sender, an event ID, an event type, event content, a timestamp, a digital signature, a preamble event set of an event, etc.
(4) Secure and reliable protocol
The communication adopts https for communication, and the algorithm adopts national cryptographic standards to ensure the safety and reliability of the communication; and a heartbeat mechanism is adopted between the communication, so that the online state is ensured.
The heterogeneous instant messaging method not only meets the trust problem, is safe and reliable, ensures the ordering of communication, is highly extensible and recoverable, can trace back communication contents, and can adopt the schemes of a centralized mode, a p2p mode, a special line mode and the like, thereby having the following beneficial effects:
a notary scheme is adopted, so that high identity authentication in the financial industry is ensured;
the authentication and communication structure is layered, the authentication adopts a single 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 ordering and broadcasting by adopting the main communication node ensures the communication sequence and simplicity of the peer-to-peer network;
each room elects one main communication node, thereby ensuring high expandability of the whole architecture;
the communication protocols all adopt signatures, thereby guaranteeing the traceability of the content and meeting the supervision requirement.
Referring to fig. 3, fig. 3 is a flow chart of 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 master communication node receives communication messages sent by K session initiation nodes, wherein 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, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes;
302. the master communication node performs sequencing processing on the communication messages sent by the K session initiation nodes to obtain a sequencing sequence;
303. the master communication node broadcasts the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes according to the ordering 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 initiation 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 obtains communication parameters of the node corresponding to the abnormal state information in a preset time interval according to the communication parameters;
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 main communication node determines second abnormal information according to the state indication parameters corresponding to the abnormal state information;
309. the main communication node determines the adjustment information according to the first abnormal information and the second abnormal information;
310. the master communication node presents the 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 to verify, so as to obtain a verification result, and the adjustment information may be determined according to the verification result, so that accuracy in determining the adjustment information is improved.
In accordance with the foregoing embodiments, referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal provided in an embodiment of the present application, where the terminal includes a processor, an input device, an output device, and a memory, and the processor, the input device, the output device, and the memory are connected to each other, where the memory is configured to store a computer program, the computer program includes program instructions, the processor is configured to invoke the program instructions, and the program includes instructions for executing the following steps;
receiving communication messages sent by K session initiation nodes, wherein 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, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes;
sequencing the communication messages sent by the K session initiation nodes to obtain a sequencing sequence;
and broadcasting the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes according to the ordering sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that, in order to achieve the above-mentioned functions, the terminal includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven 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.
The embodiment of the application can divide the functional units of the terminal according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
In accordance with the foregoing, referring to fig. 5, 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 initiation nodes, where 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, and the session initiation node is a communication node other than the master communication node among the plurality of communication nodes;
a sorting unit 502, configured to sort the communication messages sent by the K session initiation nodes to obtain a sorting sequence;
and a sending unit 503, configured to broadcast, according to the ordered 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 plurality of 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, a preamble event set of an event.
In one possible implementation, the plurality of communication nodes carry authentication credentials sent by a notarization server.
In one possible implementation, the apparatus is further configured to:
receiving state indication parameters sent by a session initiation 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, according to the communication parameters of the node corresponding to the obtained abnormal state information in a preset time interval;
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 abnormal information and the second abnormal information;
and displaying the adjustment information.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any heterogeneous instant messaging method described in the embodiment of the method.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program that causes a computer to perform some or all of the steps of any one of the heterogeneous instant messaging methods described in the method embodiments above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software program modules.
The integrated units, if implemented in the form of software program modules, may be stored in a computer-readable memory for sale or use as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: a U-disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-only memory, random access memory, magnetic or optical disk, etc.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (8)

1. A heterogeneous instant messaging method, the method comprising:
a master communication node receives communication messages sent by K session initiation nodes, wherein 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, and the session initiation nodes are communication nodes except the master communication node in the plurality of communication nodes;
the master communication node performs sequencing processing on the communication messages sent by the K session initiation nodes to obtain a sequencing sequence;
the master communication node broadcasts the communication messages sent by the K session initiation nodes to session receiving nodes corresponding to the K session initiation nodes according to the ordering sequence, wherein the session receiving nodes are communication nodes in the plurality of communication nodes;
the method further comprises the steps of:
the main communication node receives state indication parameters sent by a session initiation 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 the node corresponding to the abnormal state information in a preset time interval;
the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
the main communication node determines second abnormal information according to the state indication parameters corresponding to the abnormal state information;
the main communication node determines adjustment information according to the first abnormal information and the second abnormal information;
the master communication node presents the adjustment information.
2. The method according to claim 1, wherein the method further comprises:
the 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 master communication node sends the communication message corresponding to the identification information to the session initiation node and/or the session receiving node.
3. The method according to claim 1 or 2, wherein the communication message comprises communication signature information comprising at least a time stamp, a digital signature, a preamble event set of events.
4. A method according to claim 3, wherein the plurality of communication nodes carry authentication credentials transmitted by a notarization server.
5. A heterogeneous instant messaging device, the device comprising:
a receiving unit, configured to receive communication messages sent by K session initiation nodes, where a 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, and the session initiation node is a communication node other than the master communication node among the plurality of communication nodes;
the ordering unit is used for ordering the communication messages sent by the K session initiation nodes to obtain an ordering sequence;
a sending unit, configured to broadcast, according to the ordering sequence, 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 plurality of communication nodes;
the device is also for:
the main communication node receives state indication parameters sent by a session initiation 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 the node corresponding to the abnormal state information in a preset time interval;
the main communication node determines first abnormal information of a node corresponding to the abnormal state information according to the communication parameters;
the main communication node determines second abnormal information according to the state indication parameters corresponding to the abnormal state information;
the main communication node determines adjustment information according to the first abnormal information and the second abnormal information;
the master communication node presents the adjustment information.
6. The apparatus of claim 5, 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 the communication message corresponding to the identification information to the session initiating node and/or the session receiving node.
7. 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 adapted 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-4.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-4.
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 CN115086262A (en) 2022-09-20
CN115086262B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780615A (en) * 2014-01-20 2014-05-07 五八同城信息技术有限公司 Sharing method of client conversation data among multiple servers
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8687624B2 (en) * 2008-02-13 2014-04-01 Cisco Technology, Inc. Apparatus and method to handle dynamic payloads in a heterogeneous network
JP6597231B2 (en) * 2015-11-27 2019-10-30 富士通株式会社 Arithmetic device, program, information processing method
CN106681954B (en) * 2016-12-30 2020-05-29 深圳市优必选科技有限公司 Parameter setting method based on bus and controller for robot

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780615A (en) * 2014-01-20 2014-05-07 五八同城信息技术有限公司 Sharing method of client conversation data among multiple servers
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
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
Extending OSGi with Instant Messaging Communications and Peer to Peer Transfer Based on XMPP;Kuo-Hsun Hsu等;《2012 International Symposium on Computer, Consumer and Control》;全文 *
发布/订阅分布式系统的在线健康状态评估;陈康;《中国优秀硕士论文电子期刊网》;全文 *
复杂软件程序运行异常源点准确定位仿真分析;郝世选;;计算机仿真(第08期);全文 *

Also Published As

Publication number Publication date
CN115086262A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN107888562B (en) Data verification and transceiving method, node and system for parallel link access to interconnection chain
CN110266655A (en) A kind of across chain interconnected method, equipment and system based on block chain
CN109002732A (en) Data deposit card method, apparatus and system and data evidence collecting method
CN112150284B (en) Blockchain heterogeneous chain cross-chain transaction method
CN110268679B (en) Block chain-based authentication method and system
CN110072236A (en) Equipment connection method, equipment and system
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
CN110784461A (en) Safe 6LoWPAN communication method and system based on block chain
CN105744555B (en) A kind of terminal maintenance method, maintenance device and NM server
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN111541715B (en) Method and device for improving communication between traffic signal control machine and upper computer
CN109861828A (en) A kind of node access and node authentication method based on edge calculations
WO2022057106A1 (en) Credibility verification system for digital asset data packet
CN115174570A (en) Cross-chain consensus method and system based on dynamic committee
CN115086262B (en) Heterogeneous instant messaging method and related device
CN107819888A (en) A kind of method, apparatus and network element for distributing relay address
CN112671541A (en) Method and device for managing nodes in block chain network
CN115766038A (en) Transaction sending method in block chain and block chain link point
CN109495499A (en) Communication protocol bi-directional verification automated test tool and method based on Encryption Algorithm
CN114374502A (en) Energy data uploading and consensus system and method based on-chain and off-chain cooperation
CN113592656A (en) Alliance chain transaction synchronization optimization method, computer readable medium and electronic device
CN117134998B (en) SDN-based power information authentication method of Gossip blockchain
CN114499872B (en) Starfire chain crossing method and device based on industrial Internet
An et al. Research on Byzantine Fault Tolerant algorithm based on Node Weights
CN112989398B (en) Data processing method and device for block chain network, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant