Cross-network communication method, device and communication network

By acquiring the service type in local cross-network components and judging the existence of cross-network connections, cross-network communication is achieved safe and effective, data and information security problems in cross-network communication are solved, and a safe and effective interaction path is provided.

CN115442416BActive Publication Date: 2025-03-25SHANGHAI QIYEYU NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211061079.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-03-25
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

On the premise of ensuring data security and information security, how to achieve cross-network communication, especially to conduct secure and effective interactions between multiple privately deployed networks?

Method used

By obtaining the service type of cross-network communication services in the local cross-network components, and when the service type is internal and external cross-network communication services, it is determined whether a cross-network connection has been established with the target external network. If it has been established, the cross-network communication services will be pushed to the target external network through the cross-network connection, so that it can be processed through its own cross-network components.

Benefits of technology

It realizes the security and effective cross-network communication under the guarantee of data security and information security, logically isolates cross-network communication services, ensures the security of data and information, and provides a safe and effective way for interaction between privatized and deployed networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442416B_ABST
    Figure CN115442416B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of instant messaging, and discloses a cross-network communication method, device, and communication network. The method includes obtaining the service type corresponding to the cross-network communication service when there is a cross-network communication service in the local cross-network component; when the service type is an internal and external cross-network communication service, determining whether a cross-network connection has been established with the target external network; if so, pushing the cross-network communication service to the target external network through the cross-network connection, so that the target external network processes the cross-network communication service through its own cross-network component. Since the local network and the external network of the present invention are both deployed with cross-network components for processing cross-network services, the cross-network communication service can be logically isolated from the local communication service to ensure data security and information security. In addition, the present embodiment transmits and processes communication services through cross-network components and cross-network connections, providing a safe and effective way for interaction between privately deployed networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of instant messaging technology, and in particular to a cross-network communication method, device and communication network. Background Art

[0002] In the office scenes of government and enterprise employees, connections are generally established through instant messaging tools, and instant messaging tools are used as information and data to complete mutual work collaboration. In order to ensure information security and data security, internal communication networks and external Internet networks are often isolated through private deployment. However, when communication and collaboration between two or more privately deployed networks are required, data security and information security become the primary issues that both parties need to consider. Therefore, how to conduct cross-network communication under the premise of ensuring data security and information security has become an urgent problem to be solved.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a cross-network communication method, device and communication network, aiming to perform cross-network communication under the premise of ensuring data security and information security.

[0005] To achieve the above object, the present invention provides a cross-network communication method, the method comprising the following steps:

[0006] When there is an inter-network communication service in the local inter-network component, obtaining a service type corresponding to the inter-network communication service;

[0007] When the service type is an internal and external inter-network communication service, determining whether an inter-network connection has been established with the target external network;

[0008] If so, the inter-network communication service is pushed to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0009] Optionally, when there is an inter-network communication service in the local inter-network component, before obtaining the service type corresponding to the inter-network communication service, the method further includes:

[0010] Obtaining session information of a session to which a communication service to be processed belongs in a local cross-network component;

[0011] Determine whether the communication service to be processed is an inter-network communication service according to the session information.

[0012] Optionally, judging whether the communication service to be processed belongs to an inter-network communication service according to the session information includes:

[0013] Determine the network identifier of the network to which each session participant belongs according to the session information;

[0014] It is determined whether the communication service to be processed is an inter-network communication service according to the network identifier.

[0015] Optionally, judging whether the communication service to be processed belongs to an inter-network communication service according to the network identifier includes:

[0016] Determining whether there are different network identifiers among the network identifiers;

[0017] If so, determining that the communication service to be processed is an inter-network communication service;

[0018] If not, it is determined that the communication service to be processed does not belong to the inter-network communication service.

[0019] Optionally, judging whether the communication service to be processed belongs to an inter-network communication service according to the session information further includes:

[0020] determining a session type of the session according to the session information;

[0021] When the session type is a multi-person session, obtaining creation entry information of the session;

[0022] Determine whether the communication service to be processed belongs to an inter-network communication service according to the creation entry information.

[0023] Optionally, when the service type is an internal and external inter-network communication service, before determining whether an inter-network connection has been established with a target external network, the process includes:

[0024] Obtaining a network identification identifier carried in the inter-network communication service;

[0025] The target external network corresponding to the inter-network communication service is determined according to the network identification identifier.

[0026] Optionally, after determining whether the communication service to be processed belongs to an inter-network communication service according to the session information, the method further comprises:

[0027] When the communication service to be processed does not belong to an inter-network communication service, determining that the communication service to be processed belongs to an intranet communication service;

[0028] The service attributes of the communication service to be processed are obtained, and the communication service to be processed is routed to a corresponding intranet service for processing according to the service attributes.

[0029] Optionally, when the service type is an internal and external inter-network communication service, after determining whether an inter-network connection has been established with the target external network, the method includes:

[0030] If not, obtaining a network access identifier and a communication encryption identifier corresponding to the target external network;

[0031] Generate a connection request according to the network access identifier, and encrypt the connection request by using the communication encryption identifier to obtain an encrypted connection request;

[0032] The encrypted connection request is sent to the target external network, so that the target external network establishes a cross-network connection after verifying the encrypted connection request.

[0033] Optionally, after determining the target external network corresponding to the inter-network communication service according to the network identification identifier, the method further includes:

[0034] Upon receiving the inter-network connection request initiated by the target external network, obtaining a communication decryption identifier corresponding to the inter-network connection request;

[0035] Verifying the cross-network connection request through the communication decryption identifier;

[0036] When the verification is passed, a selection prompt for establishing a cross-network connection is displayed on the preset interactive interface;

[0037] When a confirmation instruction input based on the selection prompt is detected, an inter-network connection is established with the external network.

[0038] Optionally, the network access identifier includes: an IP address and a port number, and the communication encryption identifier includes a public key of an asymmetric encryption algorithm.

[0039] Optionally, the local cross-network component is a message queue, and the method further includes:

[0040] When receiving a cross-network session creation request initiated by a client, generating a cross-network session creation event according to the cross-network session creation request;

[0041] Delivering the cross-network session creation event to the message queue for consumption;

[0042] When consuming the cross-network session creation event, the cross-network session creation event is pushed to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

[0043] Optionally, when consuming the cross-network session creation event, pushing the cross-network session creation event to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event, and after completing the creation of the cross-network session, further comprising:

[0044] The session message sent by the target external network is delivered to the message queue for consumption, so as to push the session message to the corresponding session client.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a communication network, in which a cross-network component, an internal agent and an external agent are deployed;

[0046] The internal agent is used to obtain the service type corresponding to the inter-network communication service when receiving the inter-network communication service;

[0047] The internal proxy is further used to deliver the cross-network communication service to the cross-network component when the service type is an internal and external cross-network communication service;

[0048] The cross-network component is used to send the cross-network communication service to the external agent;

[0049] The external agent is used to determine whether an inter-network connection has been established with a target external network corresponding to the inter-network communication service;

[0050] The external agent is further used to, if yes, push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0051] Optionally, the internal proxy is further used to route the cross-network communication service to a corresponding intranet service for processing when the service type is an internal and external cross-network communication service.

[0052] Optionally, the external agent is further used to obtain session information of a session to which the communication service to be processed belongs in the local cross-network component; and determine whether the communication service to be processed belongs to a cross-network communication service according to the session information.

[0053] Optionally, the external agent is further used to obtain a network identification identifier carried in the inter-network communication service, and determine a target external network corresponding to the inter-network communication service according to the network identification identifier.

[0054] Optionally, the external agent is further used to obtain a network access identifier and a communication encryption identifier corresponding to the target external network;

[0055] The external agent is further used to generate a connection request according to the network access identifier, and encrypt the connection request through the communication encryption identifier to obtain an encrypted connection request;

[0056] The external agent is further used to send the encrypted connection request to the target external network, so that the target external network establishes a cross-network connection after verifying the encrypted connection request.

[0057] Optionally, the external agent is also used to obtain a communication decryption identifier corresponding to the cross-network connection request when receiving the cross-network connection request initiated by the target external network; verify the cross-network connection request through the communication decryption identifier; when the verification passes, display a selection prompt for establishing a cross-network connection on a preset interactive interface; and when a confirmation instruction input based on the selection prompt is detected, establish a cross-network connection with the external network.

[0058] Optionally, the communication network further includes a service cloud;

[0059] The service cloud is configured to, upon receiving a cross-network session creation request initiated by a client, generate a cross-network session creation event according to the cross-network session creation request, and push the cross-network session creation event to the internal proxy;

[0060] The internal proxy is further used to deliver the cross-network session creation event to the cross-network component for consumption;

[0061] The cross-network component is further used to transmit the cross-network session creation event to the external agent;

[0062] The external agent is further used to push the cross-network session creation event to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

[0063] In addition, to achieve the above-mentioned purpose, the present invention further proposes a cross-network communication device, the cross-network communication device comprising:

[0064] A service processing module, configured to obtain a service type corresponding to an inter-network communication service when an inter-network communication service exists in a local inter-network component;

[0065] A connection establishment module, used to determine whether a cross-network connection has been established with a target external network when the service type is an internal and external cross-network communication service;

[0066] The service push module is used to push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0067] The present invention obtains the service type corresponding to the cross-network communication service when there is a cross-network communication service in the local cross-network component; when the service type is an internal and external cross-network communication service, determines whether a cross-network connection has been established with the target external network; if so, pushes the cross-network communication service to the target external network through the cross-network connection, so that the target external network processes the cross-network communication service through its own cross-network component. Since the local network and the external network of the present invention are both deployed with cross-network components for processing cross-network services, the cross-network communication service can be logically isolated from the local communication service to ensure data security and information security. In addition, this embodiment transmits and processes communication services through cross-network components and cross-network connections, providing a safe and effective way for interaction between privately deployed networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic diagram of a flow chart of a first embodiment of the cross-network communication method of the present invention;

[0069] Figure 2 A schematic diagram of a flow chart of a second embodiment of the cross-network communication method of the present invention;

[0070] Figure 3 A schematic diagram of a flow chart of a third embodiment of the cross-network communication method of the present invention;

[0071] Figure 4 is a structural block diagram of a first embodiment of a communication network of the present invention;

[0072] Figure 5 It is a schematic diagram of the system architecture of the communication network in the first embodiment of the communication network of the present invention;

[0073] Figure 6 A flowchart of establishing a cross-network connection in a second implementation of the communication network of the present invention;

[0074] Figure 7 A flow chart of establishing a cross-network session in a second implementation of the communication network of the present invention;

[0075] Figure 8 It is a structural block diagram of the first embodiment of the inter-network communication device of the present invention.

[0076] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0077] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0078] The embodiment of the present invention provides a cross-network communication method, referring to Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of the cross-network communication method of the present invention.

[0079] In this embodiment, the cross-network communication method includes the following steps:

[0080] Step S10: when there is an inter-network communication service in the local inter-network component, obtaining a service type corresponding to the inter-network communication service;

[0081] It should be noted that the execution subject of the cross-network communication method provided in this embodiment can be a privately deployed network (hereinafter referred to as a local network), which communicates and interacts with one or more other networks (i.e., external networks) through the cross-network communication method provided in this embodiment. Before executing this embodiment, it is necessary to pre-deploy the above-mentioned cross-network component in the local network and external network participating in the interaction. The component can be a specific component or service (such as a message queue MQ) that receives cross-network communication services, or other components or services that can achieve the same or similar functions.

[0082] It should be understood that the above-mentioned cross-network communication service may be a communication service that needs to be transmitted and collaboratively processed between the local network and the external network. In this embodiment, the service types of the cross-network communication service include internal-external cross-network communication service and external-internal cross-network communication service. Among them, the internal-external cross-network communication service may be a communication service that is transmitted from the local network to the external network and processed by the external network, and the external-internal cross-network communication service may be a communication service that is transmitted from the external network to the local network and processed by the local network.

[0083] Step S20: When the service type is an internal and external inter-network communication service, determining whether an inter-network connection has been established with the target external network;

[0084] It should be noted that the cross-network connection is a cross-network communication connection established in advance between the local network and the external network. In practical applications, the connection can be established based on the TCP protocol. The target external network can be the external network to which the cross-network communication service currently needs to be processed. For the local network, there can be one or more external networks, which is not limited in this embodiment.

[0085] It should be understood that if the cross-network connection has been established, it indicates that the local network and the external network have previously established a communication connection based on the custom handshake protocol; otherwise, it indicates that the cross-network connection needs to be established first.

[0086] As a method of determining the target external network, a network identification identifier can be added to the cross-network communication service in advance. The network identification identifier can represent the uniqueness of the network and is used to determine the external network to which the cross-network communication service points. Specifically, when the local network receives the cross-network communication service, it can first obtain the network identification identifier carried in the cross-network communication service; and then determine the target external network corresponding to the cross-network communication service based on the network identification identifier.

[0087] In a specific implementation, when the local network determines that the current inter-network communication service is an internal and external inter-network communication service according to the service type, and determines the target external network according to the network identification identifier, it can further determine whether the above-mentioned inter-network connection has been established with the target external network.

[0088] Step S30: If yes, the inter-network communication service is pushed to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0089] It should be understood that when a cross-network connection has been established between the local network and the target external network, the local network can push the cross-network communication service to the target external network through the cross-network connection. Similarly, since the external network, like the local network, has pre-deployed the above-mentioned cross-network components, the local network pushes the above-mentioned internal and external cross-network communication services to the target external network through the above-mentioned cross-network connection, and the (own) cross-network components in the target external network process the cross-network communication services, thereby realizing communication between cross-networks.

[0090] This embodiment obtains the service type corresponding to the cross-network communication service when there is a cross-network communication service in the local cross-network component; when the service type is an internal and external cross-network communication service, it determines whether a cross-network connection has been established with the target external network; if so, the cross-network communication service is pushed to the target external network through the cross-network connection, so that the target external network processes the cross-network communication service through its own cross-network component. Since cross-network components for processing cross-network services are deployed in both the local network and the external network in this embodiment, the cross-network communication service can be logically isolated from the local communication service to ensure data security and information security. In addition, this embodiment transmits and processes communication services through cross-network components and cross-network connections, providing a safe and effective way for interaction between privately deployed networks.

[0091] refer to Figure 2 , Figure 2 FIG. 4 is a flow chart of a second embodiment of the cross-network communication method of the present invention.

[0092] Based on the first embodiment above, in this embodiment, before step S10, the following steps are further included:

[0093] Step S01: obtaining session information of a session to which a communication service to be processed belongs in a local cross-network component;

[0094] It should be noted that the communication services to be processed in this embodiment may include cross-network communication services and intranet communication services. The so-called cross-network communication services are communication services between different networks, including internal and external cross-network communication services and external and internal cross-network communication services. The so-called intranet communication services are communication services within the local network. These communication services do not need to be processed collaboratively with the help of an external network, and the processing of the entire communication service is carried out within the local network.

[0095] It should be understood that in the field of instant messaging, chat-type communication services are mostly presented in the form of sessions. In this embodiment, the above-mentioned session information may include the names of the participants in the session, the networks to which they belong, and the types of sessions, etc. Among them, the types of sessions may include local single-person sessions (single chat), local multi-person sessions (group chat), cross-network single chat, cross-network group chat, etc. Different types of session types may be used as one of the bases for determining whether the communication service to be processed belongs to an intranet communication service or a cross-network communication service.

[0096] Step S02: determining whether the communication service to be processed is an inter-network communication service according to the session information.

[0097] In a specific implementation, after obtaining the session information of the session (including a single-person session or a multi-person session) to which the communication service to be processed belongs, it can be determined whether the service belongs to a cross-network communication service according to the session information.

[0098] Specifically, to improve judgment efficiency and accuracy, in this embodiment, the local network may first determine the network identifier of the network to which each session participant belongs based on the session information, and then determine whether the communication service to be processed is a cross-network communication service based on the network identifier.

[0099] As an implementation method, the local network can determine whether there are different network identifiers in the network identifiers; if so, it is determined that the communication service to be processed belongs to an inter-network communication service; if not, it is determined that the communication service to be processed does not belong to an inter-network communication service.

[0100] It should be understood that single-person conversations include intranet single-person conversations and cross-network single-person conversations, and the way to distinguish between them can be determined by determining the network identifier of the network used by the two parties participating in the conversation. Usually, in an intranet single-person conversation, the network used by the two parties participating in the conversation is the same, and their corresponding network identifiers are also the same. At this time, it can be determined that the communication business to be processed does not belong to the cross-network communication business but to the intranet communication business; conversely, the network identifiers are different, indicating that the networks used by the two parties participating in the conversation are not the same, and at this time, it can be determined that the communication business to be processed belongs to the cross-network communication business. Among them, the network identifier can be the marking information that characterizes the uniqueness of the network.

[0101] As for a multi-person session, in this embodiment, when the session type is a multi-person session, the creation entry information of the multi-person session can be obtained, and then the communication service to be processed can be judged whether it is a cross-network communication service according to the creation entry information. Specifically, the session type of the session can be determined according to the session information, and when the session type is a multi-person session, the creation entry information of the session is obtained, and whether the communication service to be processed is a cross-network communication service can be judged according to the creation entry information.

[0102] It should be understood that an intranet multi-person session does not involve external personnel, while a cross-network multi-person session does involve external personnel. In this embodiment, when the client corresponding to the local network creates an intranet multi-person session and a cross-network multi-person session, its session creation portal is different, that is, the page controls or buttons that the user clicks on the client interface to create an intranet group chat and a cross-network group chat are different. Therefore, this embodiment obtains the creation portal information of the multi-person session, and then distinguishes whether the communication service to be processed initiated by the client belongs to a cross-network communication service or an intranet communication service based on the creation portal information.

[0103] Of course, in a multi-person conversation scenario, you can also first determine the network identifier of the network to which each session participant of the multi-person conversation belongs based on the session information of the multi-person conversation, and then judge whether the communication service to be processed belongs to a cross-network communication service based on whether these network identifiers are consistent; if the network identifiers are all the same, it can be determined that the communication service to be processed does not belong to a cross-network communication service (that is, it belongs to an intranet multi-person conversation); conversely, if there are different network identifiers among these network identifiers, it indicates that the networks used by the session participants are not the same, and at this time it can be determined that the communication service to be processed belongs to a cross-network communication service (that is, it belongs to a cross-network multi-person conversation).

[0104] Furthermore, when the communication service to be processed does not belong to an inter-network communication service, the local network determines that the communication service to be processed belongs to an intranet communication service; then obtains the service attributes of the communication service to be processed, and routes the communication service to be processed to the corresponding intranet service for processing according to the service attributes.

[0105] Among them, the above-mentioned intranet service is a service deployed in the local network, and the above-mentioned business attributes may refer to the prescribed characteristics of a certain telecommunications business, which is mostly used in the communication field.

[0106] It should be understood that the intranet communication service is the communication service related to the local network. When the received communication service is the intranet communication service, the local network can route the communication service to be processed to the corresponding intranet service for processing according to its corresponding service attributes.

[0107] This embodiment can accurately distinguish the service type of the communication service to be processed by acquiring the session information of the session to which the communication service to be processed belongs, and then process it in a targeted manner, thereby improving the processing efficiency of the communication service.

[0108] refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a third embodiment of the cross-network communication method of the present invention.

[0109] Based on the above embodiments, in this embodiment, after step S20, the method further includes a process of cross-network connection when a connection with the target external network is not established, specifically including:

[0110] Step S40: If not, obtaining a network access identifier and a communication encryption identifier corresponding to the target external network;

[0111] It should be understood that if a cross-network connection has not yet been established between the local network and the target external network, the local network can establish a cross-network connection through the network access identifier and communication encryption identifier that the administrator of the target external network has previously shared with the administrator of the local network.

[0112] It should be noted that the network access identifier may include: an IP address and a port number, and the communication encryption identifier includes a public key of an asymmetric encryption algorithm, such as an RSA public key.

[0113] Step S50: generating a connection request according to the network access identifier, and encrypting the connection request by using the communication encryption identifier to obtain an encrypted connection request;

[0114] In a specific implementation, the local network can initiate a connection request to the target external network through the above network access identifier, and then encrypt the request through the communication encryption identifier provided by the target external network to obtain an encrypted connection request, and then send the encrypted connection request to the target external network.

[0115] Step S60: Send the encrypted connection request to the target external network, so that the target external network establishes a cross-network connection after verifying the encrypted connection request.

[0116] It should be noted that, for an external network, when an encrypted connection request is received, the request can be decrypted using a communication decryption identifier. If the decryption succeeds, it indicates that the verification is successful, and the subsequent cross-network connection establishment operation can be performed.

[0117] Of course, in actual applications, the local network can be used as both the initiator and the receiver of the cross-network connection request. Therefore, the cross-network communication method provided in this embodiment also includes:

[0118] Step S1: upon receiving an inter-network connection request initiated by the target external network, obtaining a communication decryption identifier corresponding to the inter-network connection request;

[0119] Step S2: verifying the cross-network connection request through the communication decryption identifier;

[0120] It should be understood that the communication decryption identifier may be a private key corresponding to the communication encryption identifier, such as an RSA private key. Through the communication decryption identifier, when the local network receives a cross-network connection request sent by the external network, it will verify the cross-network connection request through the communication decryption identifier corresponding to the communication encryption identifier shared with the external network in advance.

[0121] Step S3: When the verification is passed, a selection prompt for establishing a cross-network connection is displayed on a preset interactive interface;

[0122] In the specific implementation, the local network decrypts the cross-network connection request through the communication decryption identifier. If the decryption is successful, a selection prompt for establishing a cross-network connection is displayed on a preset interactive interface. For example, a window pops up on the network management client page used by the administrator of the local network, prompting the administrator to choose "Agree" or "Reject" the cross-network connection request initiated by the target external network.

[0123] Step S4: when a confirmation instruction based on the selection prompt input is detected, establishing a cross-network connection with the external network.

[0124] In a specific implementation, when the administrator chooses to agree, that is, when the local network detects a confirmation instruction input based on the selection prompt, the cross-network connection is established with the external network. Conversely, when the administrator chooses to reject, that is, when the local network detects a rejection instruction input based on the selection prompt, the cross-network connection is stopped from being established with the external network.

[0125] Furthermore, if the local network fails to verify the cross-network connection request, it means that the source of the cross-network connection request cannot be identified. At this time, the cross-network connection request needs to be abandoned, and there is no need to make any interactive response on the interactive interface.

[0126] In addition, it should be emphasized that when the communication encryption identifier shared by the local network has been used by the corresponding external network, if a new external network needs to create a new cross-network connection with the local network, the network administrator of the local network is required to provide the network access identifier and the new communication encryption identifier to the new external network, and then create a new cross-network connection again according to the above handshake security mechanism (i.e., the above steps S1-S4).

[0127] Based on the above embodiments, a fourth embodiment of the cross-network communication method of the present invention is proposed.

[0128] In this embodiment, the local cross-network component is a message queue MQ. Accordingly, the cross-network communication method further includes the following steps:

[0129] Step S1': upon receiving a cross-network session creation request initiated by a client, generating a cross-network session creation event according to the cross-network session creation request;

[0130] It should be noted that the cross-network session creation request is a communication service request for creating a cross-network single chat or cross-network group chat. When the local network receives the request, the internal service cloud first processes the cross-network group creation logic. After the processing is completed, a cross-network session creation event is generated and a message of successful group creation is sent to the above-mentioned client.

[0131] Step S2': delivering the cross-network session creation event to the message queue for consumption;

[0132] In the specific implementation, the local network delivers the generated cross-network session creation event to the message queue MQ for consumption.

[0133] Step S3': when consuming the cross-network session creation event, the cross-network session creation event is pushed to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

[0134] It should be understood that when the message queue MQ deployed in the local network consumes the above-mentioned cross-network session creation event, since a cross-network connection has been established between the local network and the target external network, the local network can directly push the cross-network session creation event to the target external network through the cross-network connection. The external agent deployed in the target external network delivers the event to its own cross-network component (i.e., its own message queue) for consumption. During the consumption process, the internal agent in the target external network will call the business service, and the service cloud in the target external network will process the cross-cloud group creation logic, and push the session creation message to the client in the target external network to complete the creation of the cross-network session.

[0135] Further, after the cross-network session is created, users between the networks can chat through them. In this embodiment, the local network can deliver the session message sent by the target external network to the message queue for consumption, thereby pushing the session message to the corresponding session client.

[0136] As an implementation method, when a client in the target external network sends a cross-cloud group message (session message), the service cloud in the target external network will process the group chat logic of the local cloud and deliver the group message event to the internal agent in the target external network. The internal agent processes the delivery logic of the group message, delivers the group message event to its own message queue (MQ) for business message consumption, and passes it to the external agent in the target external network. The external agent sends the cross-cloud group message to the local network through a cross-network connection.

[0137] The external agent in the local network delivers the cross-cloud group message (session message) in the target external network to the local message queue (MQ) for consumption. The internal agent in the local network processes the call logic and sends the group chat message to the service cloud in the local network. The service cloud pushes the session message notification to the client in the local network, thereby completing the cross-network communication.

[0138] Reference Figure 4 , Figure 4 FIG. 1 is a structural block diagram of a first embodiment of a communication network according to the present invention.

[0139] like Figure 4 As shown, an embodiment of the present invention provides a communication network 10, in which an internal agent 101, a cross-network component 102 and an external agent 103 are deployed;

[0140] The internal agent 101 is used to obtain the service type corresponding to the inter-network communication service when receiving the inter-network communication service;

[0141] The internal agent 101 is further used to deliver the cross-network communication service to the cross-network component when the service type is an internal and external cross-network communication service;

[0142] The cross-network component 102 is used to send the cross-network communication service to the external agent;

[0143] The external agent 103 is used to determine whether an inter-network connection has been established with the target external network corresponding to the inter-network communication service;

[0144] The external agent 103 is further configured to, if yes, push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0145] It should be noted that the communication network 10 provided in this embodiment may be a privately deployed network or a private cloud, in which an internal agent 101, a cross-network component 102 and an external agent 103 are provided. Figure 5 As shown, Figure 5 FIG. 1 is a schematic diagram of a system architecture of a communication network in a first embodiment of the communication network of the present invention. Figure 5 In the embodiment, the system architecture of the first network, the second network and more networks are the same as the architecture of the communication network 10 provided in this embodiment, including an internal agent 101, a cross-network component 102 and an external agent 103. It also includes several access gateways and different types of databases (MySQL, MongoDB, Redis, ES and OSS). When the first network is used as a local network, the second network and more networks belong to the external network. When the local network communicates with the external network across networks, the internal agent 101, the cross-network component 102 and the external agent 103 cooperate with each other to complete the processing of the communication business.

[0146] Among them, the internal agent 101 is used to connect to the communication services within the network, such as internal single chat, group chat, personnel management services, etc. When the internal agent 101 receives the business related to the internal cloud, it delivers the business to the internal processing, and is responsible for processing the communication business from the outside. The cross-network component 102 can be a specific component or service (such as message queue MQ) that receives cross-cloud / cross-network communication services, or other components or services that can achieve the same or similar functions. The external agent 103 is used to deliver the cross-cloud / cross-network communication services involved in the communication services within the private cloud to the cross-network components in the other network through the external agent in the other network, and at the same time, the cross-cloud communication services pushed by the other network through the other external agent are delivered to the cross-network components within the cloud, and after consumption, they are routed to different services according to business attributes through the internal agent 101.

[0147] It should be understood that the above-mentioned cross-network communication service may be a communication service that needs to be transmitted and collaboratively processed between the local network and the external network. In this embodiment, the service types of the cross-network communication service include internal-external cross-network communication service and external-internal cross-network communication service. Among them, the internal-external cross-network communication service may be a communication service that is transmitted from the local network to the external network and processed by the external network, and the external-internal cross-network communication service may be a communication service that is transmitted from the external network to the local network and processed by the local network.

[0148] It should be noted that the above cross-network connection is a cross-network communication connection established in advance between the local network and the external network. In practical applications, the connection can be established based on the TCP protocol. The target external network can be the external network to which the cross-network communication service currently needs to be processed. For the local network, there can be one or more external networks, which is not limited in this embodiment.

[0149] In a specific implementation, if the cross-network connection has been established, it indicates that the local network and the external network have previously established a communication connection based on a custom handshake protocol; otherwise, it indicates that a cross-network connection needs to be established first.

[0150] As a method of determining the target external network, a network identification identifier can be added to the cross-network communication service in advance. The network identification identifier can represent the uniqueness of the network and is used to determine the external network to which the cross-network communication service points. Specifically, when the local network receives the cross-network communication service, it can first obtain the network identification identifier carried in the cross-network communication service; and then determine the target external network corresponding to the cross-network communication service based on the network identification identifier.

[0151] It should be understood that when a cross-network connection has been established between the local network and the target external network, the local network can push the cross-network communication service to the target external network through the cross-network connection. Similarly, since the external network, like the local network, has pre-deployed the above-mentioned cross-network components, the local network pushes the above-mentioned internal and external cross-network communication services to the target external network through the above-mentioned cross-network connection, and the (own) cross-network components in the target external network process the cross-network communication services, thereby realizing communication between cross-networks.

[0152] When the internal agent in the communication network provided by this embodiment receives the cross-network communication service, it obtains the service type corresponding to the cross-network communication service, and when the service type is internal and external cross-network communication service, it delivers the cross-network communication service to the cross-network component; the cross-network component sends the cross-network communication service to the external agent; the external agent determines whether a cross-network connection has been established with the target external network corresponding to the cross-network communication service; if so, the cross-network communication service is pushed to the target external network through the cross-network connection, so that the target external network processes the cross-network communication service through its own cross-network component. Since the communication network of this embodiment is deployed with a cross-network component for processing cross-network services, the cross-network communication service can be logically isolated from the local communication service to ensure data security and information security. In addition, this embodiment transmits and processes communication services through cross-network components and cross-network connections, providing a safe and effective way for interaction between privately deployed networks.

[0153] Based on the above-mentioned first embodiment of the communication network of the present invention, a second embodiment of the communication network of the present invention is proposed.

[0154] In this embodiment, the internal proxy 101 is further used to route the cross-network communication service to the corresponding intranet service for processing when the service type is an internal and external cross-network communication service.

[0155] Optionally, the external agent 103 is further used to obtain session information of a session to which the communication service to be processed belongs in the local cross-network component; and determine whether the communication service to be processed belongs to a cross-network communication service according to the session information.

[0156] Optionally, the external agent 103 is further configured to obtain a network identification identifier carried in the inter-network communication service, and determine a target external network corresponding to the inter-network communication service according to the network identification identifier.

[0157] Optionally, the external agent 103 is further configured to determine a network identifier of a network to which each session participant belongs based on the session information; and determine whether the communication service to be processed is an inter-network communication service based on the network identifier.

[0158] Optionally, the external agent 103 is further used to determine whether there are different network identifiers in the network identifiers; if so, it is determined that the communication service to be processed belongs to an inter-network communication service; if not, it is determined that the communication service to be processed does not belong to an inter-network communication service.

[0159] Optionally, the external agent 103 is further used to determine the session type of the session based on the session information; when the session type is a multi-person session, obtain the creation entry information of the session; and determine whether the communication service to be processed is a cross-network communication service based on the creation entry information.

[0160] Optionally, the internal agent 101 is also used to determine that the communication service to be processed belongs to an intranet communication service when the communication service to be processed does not belong to an inter-network communication service; obtain the service attributes of the communication service to be processed, and route the communication service to be processed to the corresponding intranet service for processing according to the service attributes.

[0161] Optionally, the external agent 103 is further used to obtain a network access identifier and a communication encryption identifier corresponding to the target external network;

[0162] The external agent 103 is further used to generate a connection request according to the network access identifier, and encrypt the connection request through the communication encryption identifier to obtain an encrypted connection request;

[0163] The external agent 103 is further configured to send the encrypted connection request to the target external network, so that the target external network can establish a cross-network connection after verifying the encrypted connection request.

[0164] Optionally, the external agent 103 is also used to obtain a communication decryption identifier corresponding to the cross-network connection request when receiving the cross-network connection request initiated by the target external network; verify the cross-network connection request through the communication decryption identifier; when the verification passes, display a selection prompt for establishing a cross-network connection on a preset interactive interface; and when a confirmation instruction input based on the selection prompt is detected, establish a cross-network connection with the external network.

[0165] Optionally, the communication network further includes a service cloud;

[0166] The service cloud is configured to, upon receiving a cross-network session creation request initiated by a client, generate a cross-network session creation event according to the cross-network session creation request, and push the cross-network session creation event to the internal proxy;

[0167] The internal agent 101 is further used to deliver the cross-network session creation event to the cross-network component for consumption;

[0168] The cross-network component 102 is further configured to transmit the cross-network session creation event to the external agent;

[0169] The external agent 103 is further used to push the cross-network session creation event to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

[0170] Optionally, the external agent 103 is further configured to obtain a communication decryption identifier corresponding to the cross-network connection request when receiving the cross-network connection request initiated by the target external network;

[0171] The external agent 103 is further used to verify the cross-network connection request through the communication decryption identifier;

[0172] The external agent 103 is also used to display a selection prompt for establishing a cross-network connection on a preset interactive interface when the verification is passed;

[0173] The external agent 103 is further configured to establish a cross-network connection with the external network when a confirmation instruction based on the selection prompt input is detected.

[0174] Optionally, the external agent 103 is further used to deliver the session message sent by the target external network to the message queue for consumption, so as to push the session message to the corresponding session client.

[0175] Combined here Figure 6 and Figure 7The process of establishing a cross-network connection and the process of creating a cross-network session in this embodiment are described.

[0176] Reference Figure 6 , Figure 6 FIG. 1 is a flow chart of establishing a cross-network connection in the second embodiment of the communication network of the present invention. Figure 6 As shown, step 201: the second network (i.e., the target external network) provides an IP address and port number accessible to the external network, as well as an RSA public key, and shares them with the first network; step 202: the first network (i.e., the communication network 10) initiates a cross-cloud connection request to the second network according to the IP address and port number shared by the second network, and the connection request is encrypted by the RSA public key of the second network; step 203: the second network decrypts the connection request by using the RSA private key; if the verification after decryption passes, the [Agree] and [Reject] buttons are displayed, and if the verification after decryption fails, the connection request is abandoned; step 204: if the verification after decryption passes, the cloud administrator of the second network [Agrees] to the cross-cloud connection request initiated by the first network, and creates a cross-cloud connection instance of the first network and the second network.

[0177] Reference Figure 7 , Figure 7 FIG. 1 is a flow chart of establishing a cross-network session in the second embodiment of the communication network of the present invention. Figure 7 As shown, the process of creating a cross-network session includes the following steps:

[0178] Step 301: A client in the first network (communication network 10) initiates a service request to create a cross-cloud group chat; the service cloud in the first network processes the cross-cloud group creation logic; after the processing is completed, a cross-cloud group creation event is pushed to the internal agent in the first network, and a notification of successful group creation is sent to the client in the first network.

[0179] Step 302: After receiving the cross-cloud group creation event, the internal agent in the first network processes the cross-cloud delivery logic and delivers the cross-cloud group creation event to the message queue (MQ) service in the first network.

[0180] Step 303: The cross-cloud business message is consumed by a message queue (MQ) service in the first network and delivered to an external agent in the first network.

[0181] Step 304: The external agent in the first network and the external agent in the second network (external network) are interconnected across clouds (ie, interact through a cross-network connection).

[0182] Step 305: The external agent in the second network delivers the service message (cross-cloud group creation event) in the first network to the message queue (MQ) in the second network.

[0183] Step 306: The service message is consumed by the message queue (MQ) in the second network (cross-cloud grouping).

[0184] Step 307: The internal proxy in the second network calls the business service, and the service cloud in the second network processes the cross-cloud group creation logic and pushes the group creation message to the client in the second network.

[0185] Step 308: The client in the second network sends a cross-cloud group message; the service cloud in the second network processes the local cloud group chat logic and delivers the group message event to the internal proxy in the second network.

[0186] Step 309: The internal agent in the second network processes the delivery logic of the group message and delivers the group message event to the message queue (MQ) in the second network.

[0187] Step 310: The service message is consumed by a message queue (MQ) in the second network and transmitted to an external agent in the second network.

[0188] Step 311: The external agent in the second network and the external agent in the first network are interconnected across clouds.

[0189] Step 312: The external agent in the first network delivers the service message (group chat message) in the second network to the message queue (MQ) in the first network.

[0190] Step 313: The message queue (MQ) in the first network consumes the service message (group chat message), the internal proxy in the first network processes the call logic, and sends the group chat message to the service cloud in the first network.

[0191] Step 314: The internal agent in the first network receives the service (group chat message) from the message queue (MQ) in the first network and processes the group chat logic.

[0192] Step 315: The service cloud in the first network pushes a group message notification to the client in the first network.

[0193] The various embodiments or specific implementations of the communication network of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0194] In addition, an embodiment of the present invention further provides a cross-network communication device.

[0195] Reference Figure 8 , Figure 8 FIG. 1 is a structural block diagram of the first embodiment of the cross-network communication device of the present invention. Figure 7 As shown, the cross-network communication device includes:

[0196] The service processing module 801 is used to obtain the service type corresponding to the inter-network communication service when there is an inter-network communication service in the local inter-network component;

[0197] The connection establishment module 802 is used to determine whether an inter-network connection has been established with the target external network when the service type is an internal and external inter-network communication service;

[0198] The service push module 803 is used to push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component.

[0199] This embodiment obtains the service type corresponding to the cross-network communication service when there is a cross-network communication service in the local cross-network component; when the service type is an internal and external cross-network communication service, it determines whether a cross-network connection has been established with the target external network; if so, the cross-network communication service is pushed to the target external network through the cross-network connection, so that the target external network processes the cross-network communication service through its own cross-network component. Since cross-network components for processing cross-network services are deployed in both the local network and the external network in this embodiment, the cross-network communication service can be logically isolated from the local communication service to ensure data security and information security. In addition, this embodiment transmits and processes communication services through cross-network components and cross-network connections, providing a safe and effective way for interaction between privately deployed networks.

[0200] The various embodiments or specific implementations of the cross-network communication device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0201] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0202] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0203] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0204] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A cross-network communication method, characterized in that: The cross-network communication method comprises: When there is an inter-network communication service in the local inter-network component, obtaining a service type corresponding to the inter-network communication service; When the service type is an internal and external inter-network communication service, determining whether an inter-network connection has been established with the target external network; If so, pushing the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component; When there is an inter-network communication service in the local inter-network component, before obtaining the service type corresponding to the inter-network communication service, the method further includes: Obtaining session information of a session to which a communication service to be processed belongs in a local cross-network component; Determine whether the communication service to be processed is an inter-network communication service according to the session information.

2. The cross-network communication method according to claim 1, characterized in that: The determining, according to the session information, whether the communication service to be processed is an inter-network communication service includes: Determine the network identifier of the network to which each session participant belongs according to the session information; It is determined whether the communication service to be processed is an inter-network communication service according to the network identifier.

3. The cross-network communication method according to claim 2, wherein: The determining, according to the network identifier, whether the communication service to be processed belongs to an inter-network communication service includes: Determining whether there are different network identifiers among the network identifiers; If so, determining that the communication service to be processed is an inter-network communication service; If not, it is determined that the communication service to be processed does not belong to the inter-network communication service.

4. The cross-network communication method according to claim 1, characterized in that: The determining, according to the session information, whether the communication service to be processed is an inter-network communication service also includes: determining a session type of the session according to the session information; When the session type is a multi-person session, obtaining creation entry information of the session; Determine whether the communication service to be processed belongs to an inter-network communication service according to the creation entry information.

5. The cross-network communication method according to claim 1, wherein: When the service type is an internal and external inter-network communication service, before determining whether an inter-network connection has been established with the target external network, the method includes: Obtaining a network identification identifier carried in the inter-network communication service; The target external network corresponding to the inter-network communication service is determined according to the network identification identifier.

6. The cross-network communication method according to claim 1, wherein: After determining whether the communication service to be processed belongs to an inter-network communication service according to the session information, the method includes: When the communication service to be processed does not belong to an inter-network communication service, determining that the communication service to be processed belongs to an intranet communication service; The service attributes of the communication service to be processed are obtained, and the communication service to be processed is routed to a corresponding intranet service for processing according to the service attributes.

7. The cross-network communication method according to claim 1, wherein: When the service type is an internal and external inter-network communication service, after determining whether an inter-network connection has been established with the target external network, the method includes: If not, obtaining a network access identifier and a communication encryption identifier corresponding to the target external network; Generate a connection request according to the network access identifier, and encrypt the connection request by using the communication encryption identifier to obtain an encrypted connection request; The encrypted connection request is sent to the target external network, so that the target external network establishes a cross-network connection after verifying the encrypted connection request.

8. The inter-network communication method according to claim 5, after determining the target external network corresponding to the inter-network communication service according to the network identification identifier, further comprising: Upon receiving the inter-network connection request initiated by the target external network, obtaining a communication decryption identifier corresponding to the inter-network connection request; Verifying the cross-network connection request through the communication decryption identifier; When the verification is passed, a selection prompt for establishing a cross-network connection is displayed on the preset interactive interface; When a confirmation instruction input based on the selection prompt is detected, an inter-network connection is established with the external network.

9. The cross-network communication method according to claim 7, wherein the network access identifier comprises: IP address and port number, and the communication encryption identifier includes the public key of the asymmetric encryption algorithm.

10. The cross-network communication method according to any one of claims 1 to 8, wherein the local cross-network component is a message queue, and the method further comprises: When receiving a cross-network session creation request initiated by a client, generating a cross-network session creation event according to the cross-network session creation request; Delivering the cross-network session creation event to the message queue for consumption; When consuming the cross-network session creation event, the cross-network session creation event is pushed to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

11. The cross-network communication method according to claim 10, wherein when consuming the cross-network session creation event, the cross-network session creation event is pushed to the target external network through the established cross-network connection so that the target external network processes the cross-network session creation event, and after completing the creation of the cross-network session, the method further comprises: The session message sent by the target external network is delivered to the message queue for consumption, so as to push the session message to the corresponding session client.

12. A communication network system, characterized in that: The communication network system is deployed with cross-network components, internal agents and external agents; The internal agent is used to obtain the service type corresponding to the inter-network communication service when receiving the inter-network communication service; The internal proxy is further used to deliver the cross-network communication service to the cross-network component when the service type is an internal and external cross-network communication service; The cross-network component is used to send the cross-network communication service to the external agent; The external agent is used to determine whether an inter-network connection has been established with a target external network corresponding to the inter-network communication service; The external agent is further configured to, if yes, push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component; The external agent is further used to obtain session information of the session to which the communication service to be processed belongs in the local cross-network component; and determine whether the communication service to be processed belongs to the cross-network communication service according to the session information.

13. The communication network system according to claim 12, wherein: The internal proxy is further used to route the cross-network communication service to the corresponding intranet service for processing when the service type is an internal and external cross-network communication service.

14. The communication network system according to claim 12, wherein: The external agent is further used to obtain the network identification identifier carried in the inter-network communication service, and determine the target external network corresponding to the inter-network communication service according to the network identification identifier.

15. The communication network system according to claim 12, wherein: The external agent is further used to obtain a network access identifier and a communication encryption identifier corresponding to the target external network; The external agent is further used to generate a connection request according to the network access identifier, and encrypt the connection request through the communication encryption identifier to obtain an encrypted connection request; The external agent is further used to send the encrypted connection request to the target external network, so that the target external network establishes a cross-network connection after verifying the encrypted connection request.

16. The communication network system according to claim 15, characterized in that: The external agent is also used to obtain a communication decryption identifier corresponding to the cross-network connection request when receiving the cross-network connection request initiated by the target external network; verify the cross-network connection request through the communication decryption identifier; when the verification is passed, display a selection prompt for establishing a cross-network connection on a preset interactive interface; and when a confirmation instruction input based on the selection prompt is detected, establish a cross-network connection with the external network.

17. The communication network system according to claim 16, wherein: The communication network system also includes a service cloud; The service cloud is configured to, upon receiving a cross-network session creation request initiated by a client, generate a cross-network session creation event according to the cross-network session creation request, and push the cross-network session creation event to the internal proxy; The internal proxy is further used to deliver the cross-network session creation event to the cross-network component for consumption; The cross-network component is further used to transmit the cross-network session creation event to the external agent; The external agent is further used to push the cross-network session creation event to the target external network through the established cross-network connection, so that the target external network processes the cross-network session creation event and completes the creation of the cross-network session.

18. A cross-network communication device, characterized in that: The cross-network communication device comprises: A service processing module, used for obtaining a service type corresponding to an inter-network communication service when an inter-network communication service exists in a local inter-network component; A connection establishment module, used to determine whether a cross-network connection has been established with a target external network when the service type is an internal and external cross-network communication service; A service push module, configured to, if yes, push the inter-network communication service to the target external network through the inter-network connection, so that the target external network processes the inter-network communication service through its own inter-network component; The connection establishment module is further used to obtain session information of the session to which the communication service to be processed belongs in the local cross-network component; and determine whether the communication service to be processed belongs to the cross-network communication service according to the session information.

Citation Information

Patent Citations

  • Cross-network penetration method and cross-network penetration system for P2P network

    CN112492053A