Communication method and system among multiple network elements, message bus system and storage medium

By introducing a message bus system and message tunnel in a multi-network communication scenario, creating metadata to store message content, the problem of waste of network resources in multi-network communication is solved, and efficient resource utilization and flexible communication methods are realized.

CN119324847APending Publication Date: 2025-01-17ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310880914.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

In the communication scenario between multiple network elements, the existing technology has the problem of wasting network resources, including an NF that may register multiple service interfaces and require multiple links to be established for communication, and the same message needs to be sent separately through the network, resulting in the resource waste.

Method used

The message tunnel is established through the message bus system, allowing the first network element and the second network element to transmit messages through the same message tunnel, and create metadata for the message content, which is stored in the corresponding storage area, and supports orderly transmission, expiration processing, Classified storage and encryption processing to realize unified management of message content.

Benefits of technology

Through the use of the message bus system, multiple links are avoided, network resources are saved, flexible communication between the same network element and multiple peer network elements is realized, and resource allocation is optimized, solving the problem of network resource waste .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324847A_ABST
    Figure CN119324847A_ABST
Patent Text Reader

Abstract

The invention provides a communication method among multiple network elements. The method comprises the following steps: establishing a message tunnel corresponding to a first network element through a message bus system; the second network element obtains a message tunnel corresponding to the first network element through the message bus system; messages are transmitted between the first network element and the second network element through a message bus system and a corresponding message tunnel; and after the message bus system receives the message, extracting the message content of the message, calculating the storage area address of the message content in the storage space of the corresponding message tunnel, creating metadata for the message content, and then respectively storing the extracted message content and the created metadata in the corresponding storage areas of the corresponding message tunnel. The metadata is a description of message content. The invention also provides a communication system among multiple network elements, a message bus system for communication among multiple network elements, and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular, to a communication method and system between multiple network elements, a message bus system for communication between multiple network elements, and a computer-readable storage medium. Background Art

[0002] When a traditional network function (NF) (for example, in a 5G communication network) communicates as an independent network element, it exposes its service interface through a service registration mechanism. If it needs to communicate with the peer NF, it needs to find the service interface exposed by the peer NF through a service discovery mechanism, and then establish a link between the service interfaces, and complete the message interaction by calling the service interface. This communication method has the following defects in a multi-network element networking communication scenario: an NF may register multiple service interfaces. If the peer NF needs to access multiple service interfaces of the NF, multiple links need to be established, resulting in a waste of network resources; when an NF wants to send the same message to multiple peer NFs, it needs to send them separately through the network, which also results in a waste of network resources. Summary of the invention

[0003] The present application provides a communication method between multiple network elements, a communication system between multiple network elements, a message bus system for communication between multiple network elements, and a computer-readable storage medium, aiming to solve at least one technical problem in the prior art.

[0004] In a first aspect, the present application provides a communication method between multiple network elements, including: establishing a message tunnel corresponding to a first network element through a message bus system; the second network element obtaining the message tunnel corresponding to the first network element through the message bus system; transmitting messages between the first network element and the second network element through the message bus system and via the corresponding message tunnel; and after the message bus system receives the message, extracting the message content of the message, calculating the storage area address of the message content in the storage space of the corresponding message tunnel, and creating metadata for the message content, and then storing the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively, where the metadata is a description of the message content.

[0005] In some implementations, the second network element includes a plurality of network elements.

[0006] In some implementations, the communication method further includes the message bus system performing at least one of the following processing on the message content stored in the storage space of the message tunnel according to the metadata: sequential transmission, expiration processing, classified storage, multi-copy storage, and encryption processing.

[0007] In some embodiments, the metadata includes at least one of the following information: message tunnel identifier, source address of the message, destination address of the message, type of message, format of the message, time of receipt of the message, timeliness of the message, size of the message content, storage area address of the message content, and storage format of the message content.

[0008] In some implementations, messages are transmitted between a first network element and a message bus system based on a first transmission protocol, and messages are transmitted between a second network element and a message bus system based on a second transmission protocol, wherein the first transmission protocol is different from the second transmission protocol.

[0009] In some embodiments, establishing a message tunnel corresponding to a first network element through a message bus system includes: the first network element exposes a service interface to a service registration center, and applies to the message bus system for establishing a message tunnel corresponding to the service interface; and the message bus system establishes a corresponding message tunnel for the service interface of the first network element, and the second network element obtains the message tunnel corresponding to the first network element through the message bus system, including: the second network element queries and obtains the service interface of the first network element through the service registration center, and accesses the message bus system, and queries and obtains the corresponding message tunnel based on the obtained service interface of the first network element.

[0010] In some implementation modes, the message bus system establishing a corresponding message tunnel for a service interface of the first network element includes: the message bus system establishing the same message tunnel for multiple service interfaces of the first network element.

[0011] In some embodiments, messages are transmitted between the first network element and the second network element via a corresponding message tunnel through a message bus system, including: the second network element sends a service request message to the service interface of the first network element through the acquired message tunnel, and the communication method also includes: after the message bus system receives the service request message sent by the second network element, the first notification message is sent to the service interface of the first network element; and the service interface of the first network element reads the message content of the corresponding service request message from the corresponding message tunnel based on the received first notification message.

[0012] In some implementation modes, the first notification message includes at least partial information of metadata corresponding to the message content of the service request message sent by the second network element.

[0013] In some embodiments, messages are transmitted between the first network element and the second network element via a corresponding message tunnel through a message bus system, and the communication method also includes: the service interface of the first network element sends a response message to the second network element through its corresponding message tunnel based on the message content of the read corresponding message. The communication method also includes: after the message bus system receives the response message sent by the service interface of the first network element, the second notification message is sent to the second network element; and the second network element reads the message content of the corresponding response message from the corresponding message tunnel based on the received second notification message.

[0014] In some implementations, the second notification message includes at least partial information of metadata corresponding to the message content of the response message sent by the service interface of the first network element.

[0015] In some embodiments, the communication method also includes: the second network element subscribes to the message bus system for a response message sent to the second network element, and the message bus system sends the second notification message to the second network element, including: the message bus system sends the second notification message to the second network element based on the subscription relationship and the destination address of the received response message.

[0016] In some embodiments, the message bus system stores the extracted message content and the created metadata in the corresponding storage areas of the corresponding message tunnels, respectively, including at least one of the following: storing the message content of the message and its corresponding metadata in different storage areas; storing the message content of the message and its metadata in pairs in the same storage area; storing the message content corresponding to the first network element and the message content corresponding to the second network element in different storage areas; classifying the message contents of different messages and storing them in the storage areas corresponding to each category; storing the metadata corresponding to the message contents of different messages in the same storage area.

[0017] In some implementations, classifying and storing the message contents of different messages in corresponding storage areas includes classifying the message contents of different messages according to at least one of the following: timeliness of the message, size of the message content, storage format of the message content, and address of a network element that reads the message content.

[0018] In some implementations, message contents stored in the same storage area are stored in chronological order of the reception time of the corresponding messages, and metadata stored in the same storage area are stored in chronological order of the reception time of the corresponding messages.

[0019] In some implementations, the communication method further includes: when any storage area is full, overwriting new message content or new metadata starting from the starting address of the storage area.

[0020] In some implementations, the communication method further includes: after the message bus system receives the message, performing an integrity check on the received message.

[0021] In some implementations, the message tunnel is formed by a network of one or more servers.

[0022] In some implementation modes, establishing a message tunnel corresponding to the first network element through the message bus system includes: allocating a message tunnel identifier and a corresponding storage space.

[0023] In some implementations, the communication method further includes: the message bus system destroying the message tunnel by reclaiming the message tunnel identifier and the corresponding storage space.

[0024] In a second aspect, the present application provides a communication system between multiple network elements, comprising at least one memory and at least one processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the communication method.

[0025] In a third aspect, the present application provides a message bus system for communication between multiple network elements, including: a message receiving module, configured to receive messages transmitted between a first network element and a second network element; a message tunnel management module, configured to establish a message tunnel between the first network element and the second network element, extract the message content of the message received by the message receiving module, calculate the storage area address of the message content in the storage space of the corresponding message tunnel, and create metadata for the message content, and then store the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel, respectively, where the metadata is a description of the message content.

[0026] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor implements the communication method.

[0027] By using the communication method between multiple network elements, the communication system between multiple network elements, the message bus system for communication between multiple network elements, and the computer-readable storage medium provided by the present application, multiple network elements transmit messages through the message bus system and the message tunnel; after receiving the message transmitted between the network elements, the message bus system extracts the message content of the message, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively. Since the message content of the message is extracted and stored, there is no need to use a unified transmission protocol between the network elements communicating with each other; and by creating metadata for the message content, the message bus system can uniformly manage the message content stored in the storage space of the message tunnel, so that the same network element can communicate with multiple different opposite-end network elements through the same message tunnel, and in the storage space of the same message tunnel, the message content corresponding to the same network element and / or the message content corresponding to different network elements can be mixed and stored / cached, which is conducive to resource allocation and solves the problem of network resource waste when multiple network elements communicate in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A flow chart of a communication method between multiple network elements provided in an embodiment of the present application is shown.

[0029] Figure 2 An example storage method of message content and metadata in the storage space of a message tunnel in an embodiment of the present application is shown.

[0030] Figure 3 An example implementation of the communication method between multiple network elements provided by an embodiment of the present application is shown.

[0031] Figure 4 A schematic diagram of a communication system between multiple network elements provided in an embodiment of the present application is shown.

[0032] Figure 5 A schematic diagram of a message bus system for communication between multiple network elements provided by an embodiment of the present application is shown.

[0033] Figure 6 A schematic diagram of a computer-readable storage medium provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] In order to enable technical personnel in the field to better understand the technical solution of the present invention, the communication method between multiple network elements, the communication system between multiple network elements, the message bus system for communication between multiple network elements, and the computer-readable storage medium provided by the present invention are described in detail below in conjunction with the accompanying drawings.

[0035] The exemplary embodiments will be described more fully below with reference to the accompanying drawings, but the exemplary embodiments may be embodied in different forms, and the present disclosure should not be construed as being limited to the embodiments set forth herein. The purpose of providing these embodiments is to make the present disclosure more thorough and complete, and to enable those skilled in the art to fully understand the scope of the present disclosure.

[0036] In the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments may be combined with each other. As used herein, the terms "at least one", "and / or", etc. include any and all combinations of one or more related listed items.

[0037] It should be understood that the terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. Although the terms "first", "second", etc. are used herein to describe network elements, these network elements are not limited to these terms, and these terms do not indicate any order, quantity, or importance, but are only used to distinguish network elements. For example, without departing from the scope of the present disclosure, a first network element may also be referred to as a second network element, and similarly, a second network element may also be referred to as a first network element.

[0038] In addition, as used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. Depending on the context, the terms "if", "in response to ...", etc. used herein may be interpreted as "during ...", or "when ...". It will also be understood that the term "comprising" used in this specification specifies the presence of certain features, entities, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, entities, steps, operations, elements, components and / or combinations thereof.

[0039] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.

[0040] In a first aspect, an embodiment of the present application provides a communication method between multiple network elements, such as Figure 1 As shown, the communication method includes the following steps S1 to S4.

[0041] Step S1: Establish a message tunnel corresponding to a first network element through a message bus system.

[0042] Here, establishing a message tunnel includes: allocating a message tunnel identifier and a corresponding storage space.

[0043] It should be understood that the message tunnel may be formed by networking one or more servers, that is, the storage space of the message tunnel may be distributed on one or more servers.

[0044] Step S2: The second network element obtains the message tunnel corresponding to the first network element through the message bus system.

[0045] For example, the second network element may obtain the message tunnel identifier of the message tunnel corresponding to the first network element.

[0046] Step S3: The first network element and the second network element transmit messages via a corresponding message tunnel through a message bus system.

[0047] In an embodiment of the present application, the second network element may include multiple network elements, that is, multiple second network elements can query and obtain the same message tunnel, and communicate with the first network element via the same message tunnel. Moreover, the first network element and the second network element are each other's counterpart network elements, that is, one of the first network element and the second network element is a message sending end, and the other is a message receiving end, or, the first network element and the second network element are both sending and receiving ends.

[0048] Accordingly, the message tunnel corresponding to the first network element established by the message bus system can be unidirectional or bidirectional, that is, the first network element can send or receive messages only through its corresponding message tunnel, or can both send and receive messages. Similarly, the second network element can send or receive messages only through the message tunnel it obtains, or can both send and receive messages.

[0049] Step S4, after receiving the message, the message bus system extracts the message content, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively. The metadata is a description of the message content.

[0050] It should be understood that after receiving the message, the message bus system can first perform a simple integrity check on the message. If it is determined that the received message is complete, subsequent processing can be performed. If it is determined that the received message is incomplete, it can choose to discard or request retransmission as needed, and the embodiments of the present application do not specifically limit this.

[0051] For example, after the message bus system receives a complete message from any one of the first network element and the second network element, it extracts the message content of the message, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively.

[0052] Of course, the message bus system may also execute the above step S4 only for the message from one of the first network element and the second network element.

[0053] In addition, the message received by the message bus system should contain the message tunnel identifier.

[0054] In the communication method between multiple network elements provided in the embodiment of the present application, multiple network elements transmit messages through a message bus system and a message tunnel; after receiving the message transmitted between network elements, the message bus system extracts the message content of the message, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively. Since the message content of the message is extracted and stored, there is no need to use a unified transmission protocol between the network elements that communicate with each other; moreover, by creating metadata for the message content, the message bus system can uniformly manage the message content of the message tunnel, so that the same network element can communicate with multiple different opposite network elements through the same message tunnel, and in the storage space of the same message tunnel, the message content corresponding to the same network element and / or the message content corresponding to different network elements can be mixed and stored / cached, which is conducive to resource allocation and solves the problem of network resource waste when multiple network elements communicate in the prior art.

[0055] Specifically, after receiving the message, the message bus system will extract and store the message content of the message, and create metadata for the message content for managing the message content. Therefore, the encapsulation method of the data packet transmitted between the first network element and the message bus system may be different from the encapsulation method of the data packet transmitted between the second network element and the message bus system. That is, the first network element and the message bus system can communicate based on the first transmission protocol, and the second network element and the message bus system can communicate based on the second transmission protocol. The first transmission protocol and the second transmission protocol can be the same or different, which makes the communication between the first network element and the second network element more flexible.

[0056] Accordingly, in an embodiment of the present application, the message bus system can provide multiple access methods for the first network element and the second network element, such as based on Hypertext Transfer Protocol (HTTP), based on Transmission Control Protocol (TCP), based on User Datagram Protocol (UDP), etc.

[0057] In addition, in an embodiment of the present application, a first network element can send messages to multiple second network elements or receive messages from multiple second network elements through the same message tunnel, and the same message tunnel only allocates one storage space, thereby saving resources and avoiding waste of resources.

[0058] In some embodiments, in step S4, the message bus system stores the extracted message content and the created metadata in the corresponding storage areas of the corresponding message tunnels, including at least one of the following: storing the message content of the message and the corresponding metadata in different storage areas; storing the message content of the message and the metadata in pairs in the same storage area; storing the message content corresponding to the first network element and the message content corresponding to the second network element in different storage areas; classifying the message contents of different messages and storing them in the storage areas corresponding to each category; storing the metadata corresponding to the message contents of different messages in the same storage area.

[0059] That is, in the embodiments of the present application, in order to effectively utilize the storage space of the message tunnel, or to improve the throughput of the message tunnel, the message content and / or metadata may be stored in the storage space of the message tunnel in various ways.

[0060] For example, the frequency of reading the message content and metadata, the purpose and size of the message content and metadata, etc. may be considered to determine whether the message content and metadata are stored in the same storage area.

[0061] In some embodiments, the message bus system classifies the message contents of different messages and stores them in various corresponding storage areas, including classifying the message contents of different messages according to at least one of the following: the timeliness of the message, the size of the message content, the storage format of the message content, and the address of the network element that reads the message content (i.e., the network element serving as the message receiving end).

[0062] Due to the existence of metadata, in the storage space of the same message tunnel, message content corresponding to the same network element and / or message content corresponding to different network elements can be mixed and stored / cached. Therefore, the message content of different messages can be classified and stored in various ways considering various factors.

[0063] In some implementations, the message contents and / or metadata stored in the same storage area are stored in chronological order of the reception time of the corresponding messages.

[0064] In this case, when any storage area is full, new message content or new metadata can be overwritten starting from the start address of the storage area.

[0065] That is to say, in the embodiments of the present application, as long as the message content and / or metadata stored in the storage space of the message tunnel are not overwritten or deleted, the network element serving as the message receiving end can perform multiple read and write operations.

[0066] In some embodiments, the metadata includes at least one of the following information: message tunnel identifier, source address of the message, destination address of the message, type of message, format of the message, time of receipt of the message, timeliness of the message, size of the message content, storage area address of the message content, and storage format of the message content.

[0067] In some implementations, in the storage space of the message tunnel, the message content and metadata of each message may be stored in pairs in the order of the time at which each message is received, such as Figure 2 As shown, it can be stored as a message queue.

[0068] In some embodiments, Figure 1 As shown, the communication method also includes step S5, wherein the message bus system manages the message content stored in the storage space of the message tunnel according to the metadata, for example, performing at least one of the following processing: classified storage, sequential transmission, multi-copy storage, encryption processing, and expiration processing.

[0069] The classification and storage of message contents have been described above and will not be repeated here.

[0070] Regarding sequential transmission, for example, the message bus system can sequentially process message content reading requests submitted by the network element serving as the message receiving end according to the message receiving time recorded in the metadata and in the order of the message receiving time, including encapsulating the message content into corresponding data packets based on the transmission protocol between the message bus system and the network element serving as the message receiving end.

[0071] Regarding multi-copy storage, for example, a message tunnel can be composed of a network of multiple servers, so that the storage space of the message tunnel can be distributed on multiple servers. In order to avoid the loss of message content and / or metadata due to failure of any server, the message bus system can selectively copy the message content and / or metadata corresponding to some types of messages to obtain multiple copies, and then store the multiple copies on multiple servers respectively to realize multi-copy storage of message content and / or metadata.

[0072] Regarding encryption processing, in an embodiment of the present application, for security reasons, the message bus system may selectively encrypt part of the message content. For example, different encryption processing may be performed for the message content corresponding to messages with different destination addresses based on the destination address of the message (for example, using different keys for encryption).

[0073] Of course, when the message bus system provides the network element as the message receiving end with the message content to be read, if the message content has been encrypted, the message bus system will also perform decryption processing.

[0074] Regarding expiration processing, for example, before any storage area of ​​the message tunnel is full, the message bus system can also actively perform expiration processing on the message content and / or metadata stored therein based on the message reception time and the timeliness of the message. For messages whose timeliness has expired, their corresponding message content and metadata can be deleted.

[0075] In some embodiments, Figure 1 As shown, the communication method further includes step S6, the message bus system destroys / reclaims the message tunnel.

[0076] Specifically, the message bus system can destroy / reclaim the message tunnel by reclaiming the message tunnel identifier and the corresponding storage space.

[0077] As an example, in an embodiment of the present application, the first network element and the second network element may both be network functions (NFs) in a 5G network. For example, the first network element may be a service provider, and the second network element may be a service discoverer. In this case, the communication method between multiple network elements according to an embodiment of the present application may be implemented as follows: Figure 3 shown.

[0078] Specifically, Figure 3 As shown, the communication method between multiple network elements provided in the embodiment of the present application may include the following steps S11 to S19.

[0079] Step S11: The first network element exposes a service interface to a service registration center, and applies to a message bus system for establishing a message tunnel corresponding to the service interface.

[0080] Here, the service interface refers to the interface that provides a certain service / business function.

[0081] S12, the message bus system establishes a corresponding message tunnel for the service interface of the first network element.

[0082] In an embodiment of the present application, the first network element may have multiple service interfaces. Accordingly, the message bus system may establish the same message tunnel for the multiple service interfaces of the first network element, that is, the multiple service interfaces of the first network element may correspond to the same message tunnel, and may communicate with the second network element through the same message tunnel.

[0083] In this case, even if the second network element needs to access multiple service interfaces of the first network element, there is no need to establish multiple links, thus avoiding waste of network resources.

[0084] S13, the second network element queries and obtains the service interface of the first network element through the service registration center, and accesses the message bus system, and queries and obtains the corresponding message tunnel according to the obtained service interface of the first network element.

[0085] For example, the message bus system may maintain a list of correspondence (mapping) relationships between the service interface of the first network element and the message tunnel, so that the second network element can query and obtain the corresponding message tunnel based on the service interface of the first network element it obtains, thereby obtaining the corresponding service / business function.

[0086] S14, the second network element sends a service request message to the service interface of the first network element through the message bus system and the message tunnel obtained by the second network element.

[0087] Since multiple service interfaces of the first network element may correspond to the same message tunnel, multiple second network elements may send service request messages to one or more service interfaces of the first network element through the same message tunnel, thereby avoiding waste of network resources.

[0088] The second network element may request the service interface of the first network element to provide a corresponding service by sending a service request message to the service interface of the first network element.

[0089] S15. After receiving the service request message sent by the second network element, the message bus system extracts the message content of the service request message, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content. The extracted message content and the created metadata are then stored in the corresponding storage areas of the corresponding message tunnel, respectively, and a first notification message is sent to the service interface of the first network element.

[0090] In some implementations, the first notification message includes at least partial information of metadata corresponding to the message content of the service request message sent by the second network element.

[0091] S16. The service interface of the first network element actively reads the message content of the corresponding service request message from the corresponding message tunnel according to the received first notification message.

[0092] For example, the first notification message may include the storage area address of the message content, the size (length) of the message content, etc., so that the service interface of the first network element can actively read the corresponding message content from the corresponding message tunnel according to the information contained in the first notification message, or actively send a message content reading request to the corresponding message tunnel.

[0093] S17, the service interface of the first network element sends a response message to the second network element through its corresponding message tunnel according to the message content of the read service request message.

[0094] Here, the response message may include a confirmation message of agreeing to provide the service, and / or a specific service content message.

[0095] S18, after the message bus system receives the response message sent by the service interface of the first network element, it extracts the message content of the response message, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, and creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively, and sends a second notification message to the second network element.

[0096] In some implementations, the second notification message includes at least partial information of metadata corresponding to the message content of the response message sent by the service interface of the first network element.

[0097] In some implementations, the second network element subscribes to the message bus system for a response message sent to the second network element, and the message bus system sends a second notification message to the second network element according to the subscription relationship and a destination address of the received response message.

[0098] S19, the second network element actively reads the message content of the corresponding response message from the corresponding message tunnel according to the received second notification message.

[0099] For example, the second notification message may include the storage area address of the message content, the size (length) of the message content, etc., so that the second network element can actively read the corresponding message content from the corresponding message tunnel according to the information contained in the second notification message, or actively send a message content reading request to the corresponding message tunnel.

[0100] If the response message includes a specific service content message, the message content of the response message is the service content. As an example, the service content may be provided audio, video, etc., which is not specifically limited here.

[0101] According to the above description, the first network element may have multiple service interfaces, the message bus system may establish the same message tunnel for the multiple service interfaces of the first network element, and multiple second network elements may request services from one or more service interfaces of the first network element through the same message tunnel, and the one or more service interfaces of the first network element may provide service responses to one or more second network elements through the corresponding same message tunnel. Since only one storage space is allocated to the same message tunnel, resources can be saved and waste of resources can be avoided.

[0102] In a second aspect, an embodiment of the present application provides a communication system between multiple network elements, such as Figure 4 As shown, it includes at least one memory 1 and at least one processor 2, the memory 1 stores a computer program, and when the computer program is executed by the processor 2, the processor 2 implements the communication method between multiple network elements provided by an embodiment of the present disclosure.

[0103] For example, multiple memories 1 and multiple processors 2 of the communication system may be connected via a bus to collaboratively implement the communication method between multiple network elements provided by the embodiments of the present disclosure.

[0104] In a third aspect, an embodiment of the present application provides a message bus system for communication between multiple network elements, such as Figure 5 As shown, it includes: a message receiving module 11, configured to receive messages transmitted between a first network element and a second network element; a message tunnel management module 12, configured to establish a message tunnel between the first network element and the second network element, extract the message content of the message received by the message receiving module 11, calculate the storage area address of the message content in the storage space of the corresponding message tunnel, and create metadata for the message content, and then store the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively, and the metadata is a description of the message content.

[0105] In some embodiments, the metadata includes at least one of the following information: message tunnel identifier, source address of the message, destination address of the message, type of message, format of the message, time of receipt of the message, timeliness of the message, size of the message content, storage area address of the message content, and storage format of the message content.

[0106] In some embodiments, the message tunnel management module 12 is also configured to perform at least one of the following processing on the message content stored in the storage space of the message tunnel according to the metadata: classified storage, sequential transmission, multi-copy storage, encryption processing, and expiration processing.

[0107] In some embodiments, the message tunnel management module 12 is configured to store the extracted message content and the created metadata in the corresponding storage areas of the corresponding message tunnels, respectively, in at least one of the following ways: storing the message content of the message and its corresponding metadata in different storage areas; storing the message content of the message and its metadata in pairs in the same storage area; storing the message content corresponding to the first network element and the message content corresponding to the second network element in different storage areas; classifying the message contents of different messages and storing them in the storage areas corresponding to each category; storing the metadata corresponding to the message contents of different messages in the same storage area.

[0108] In some embodiments, the message tunnel management module 12 is configured to classify the message contents of different messages according to at least one of the following: the timeliness of the message, the size of the message content, the storage format of the message content, and the address of the network element that reads the message content (i.e., the network element serving as the message receiving end).

[0109] In some implementations, the message tunnel management module 12 is configured to store the message contents and / or metadata stored in the same storage area in the order of the reception time of the corresponding messages.

[0110] In some implementations, the message tunnel management module 12 is configured to overwrite new message content or new metadata starting from the start address of any storage area after the storage area is full.

[0111] In some implementations, the message tunnel management module 12 is further configured to destroy / reclaim the message tunnel between the first network element and the second network element as needed.

[0112] In some implementations, the message receiving module 11 is further configured to perform integrity check on the received message.

[0113] In some embodiments, Figure 5 As shown, the message bus system also includes: a message notification module 13, which is configured to send a first notification message to the first network element after the message receiving module 11 receives a message sent by the second network element to the first network element, and to send a second notification message to the second network element after the message receiving module 11 receives a message sent by the first network element to the second network element.

[0114] In some embodiments, the first notification message includes at least partial information of metadata corresponding to a message sent by the second network element to the first network element, and the second notification message includes at least partial information of metadata corresponding to a message sent by the first network element to the second network element.

[0115] In some embodiments, Figure 5 As shown, the message bus system further includes a message subscription module 14, which is configured to provide a subscription channel to the first network element and / or the second network element, so that the first network element can subscribe to the message sent to the first network element through the message subscription module 14, and the second network element can subscribe to the message sent to the second network element through the message subscription module 14.

[0116] In this case, the message tunnel management module 12 is configured to send a first notification message to the first network element and / or send a second notification message to the second network element according to the subscription relationship and the destination address of the received message.

[0117] In some embodiments, Figure 5 As shown, the message bus system further includes a message output module 15, which is configured to encapsulate the corresponding message content into a data packet according to the read request received from the first network element and / or the second network element, and output it to the first network element and / or the second network element.

[0118] For more functional details of each module of the message bus system, please refer to the relevant description of the above communication method, which will not be repeated here.

[0119] Fourthly, Figure 6As shown, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the processor enables the processor to implement the communication method between multiple network elements provided by an embodiment of the present application.

[0120] It should be understood that in the communication method between multiple network elements provided in the embodiments of the present application, the execution order of each step is not limited to the order described above in conjunction with the accompanying drawings. Without departing from the scope of the present application, the execution order of each step can be adjusted, and some steps can be executed in parallel.

[0121] In addition, it will be appreciated by those skilled in the art that all or some steps, systems, and functional modules / units in the disclosed methods above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components, for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor (such as a central processing unit, a digital signal processor, or a microprocessor), or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0122] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims

1. A communication method between multiple network elements, comprising: Establishing a message tunnel corresponding to the first network element through the message bus system; The second network element obtains the message tunnel corresponding to the first network element through the message bus system; The first network element and the second network element transmit messages via a corresponding message tunnel through a message bus system; as well as After receiving the message, the message bus system extracts the message content, calculates the storage area address of the message content in the storage space of the corresponding message tunnel, creates metadata for the message content, and then stores the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively. The metadata is a description of the message content.

2. The communication method according to claim 1, wherein: The second network element includes multiple network elements.

3. The communication method according to claim 1, further comprising: The message bus system performs at least one of the following processing on the message content stored in the storage space of the message tunnel according to the metadata: sequential transmission, expiration processing, classified storage, multi-copy storage, and encryption processing.

4. The communication method according to claim 1, wherein: The metadata includes at least one of the following information: message tunnel identifier, source address of the message, destination address of the message, type of message, format of the message, time of receipt of the message, timeliness of the message, size of the message content, storage area address of the message content, and storage format of the message content.

5. The communication method according to claim 1, wherein: Messages are transmitted between the first network element and the message bus system based on a first transmission protocol, and messages are transmitted between the second network element and the message bus system based on a second transmission protocol, wherein the first transmission protocol is different from the second transmission protocol.

6. The communication method according to claim 1, wherein: Establishing a message tunnel corresponding to the first network element through the message bus system includes: The first network element exposes a service interface to a service registration center, and applies to the message bus system for establishing a message tunnel corresponding to the service interface; and The message bus system establishes a corresponding message tunnel for the service interface of the first network element. The second network element obtains the message tunnel corresponding to the first network element through the message bus system, including: The second network element queries and obtains the service interface of the first network element through the service registration center, and accesses the message bus system, and queries and obtains the corresponding message tunnel according to the obtained service interface of the first network element.

7. The communication method according to claim 6, wherein: The message bus system establishes a corresponding message tunnel for the service interface of the first network element, including: The message bus system establishes the same message tunnel for multiple service interfaces of the first network element.

8. The communication method according to claim 6, wherein: The first network element and the second network element transmit messages via a corresponding message tunnel through a message bus system, including: The second network element sends a service request message to the service interface of the first network element through the acquired message tunnel, The communication method further comprises: After receiving the service request message sent by the second network element, the message bus system sends a first notification message to the service interface of the first network element; and The service interface of the first network element reads the message content of the corresponding service request message from the corresponding message tunnel according to the received first notification message.

9. The communication method according to claim 8, wherein: The first notification message includes at least part of the metadata information corresponding to the message content of the service request message sent by the second network element.

10. The communication method according to claim 8, wherein: The first network element and the second network element transmit messages via a corresponding message tunnel through a message bus system, further comprising: The service interface of the first network element sends a response message to the second network element through its corresponding message tunnel according to the message content of the read service request message. The communication method further comprises: After receiving the response message sent by the service interface of the first network element, the message bus system sends a second notification message to the second network element; and The second network element reads the message content of the corresponding response message from the corresponding message tunnel according to the received second notification message.

11. The communication method according to claim 10, wherein: The second notification message includes at least part of the metadata information corresponding to the message content of the response message sent by the service interface of the first network element.

12. The communication method according to claim 10, further comprising: The second network element subscribes to the message bus system for a response message sent to the second network element, The message bus system sending the second notification message to the second network element includes: The message bus system sends a second notification message to the second network element according to the subscription relationship and the destination address of the received response message.

13. The communication method according to claim 1, wherein: Storing the extracted message content and the created metadata in corresponding storage areas of corresponding message tunnels respectively includes at least one of the following: Storing the message content and its corresponding metadata in different storage areas; Storing the message content and its metadata in pairs in the same storage area; storing the message content corresponding to the first network element and the message content corresponding to the second network element in different storage areas; Classify the message contents of different messages and store them in the corresponding storage areas; The metadata corresponding to the message contents of different messages are stored in the same storage area.

14. The communication method according to claim 13, wherein: The message contents of different messages are classified and stored in various corresponding storage areas, including: The message contents of different messages are classified according to at least one of the following: timeliness of the message, size of the message content, storage format of the message content, and address of a network element for reading the message content.

15. The communication method according to claim 13, wherein: The message contents stored in the same storage area are stored in the order of the time at which the corresponding messages are received, and the metadata stored in the same storage area are stored in the order of the time at which the corresponding messages are received.

16. The communication method according to claim 15, further comprising: When any storage area is full, the new message content or new metadata is overwritten starting from the starting address of the storage area.

17. The communication method according to claim 1, further comprising: After receiving the message, the message bus system performs integrity check on the received message.

18. The communication method according to claim 1, wherein: The message tunnel is formed by a network of one or more servers.

19. The communication method according to claim 1, wherein: Establishing a message tunnel corresponding to the first network element through the message bus system includes: Allocate a message tunnel identifier and corresponding storage space.

20. The communication method according to claim 19, further comprising: The message bus system destroys the message tunnel by reclaiming the message tunnel identifier and the corresponding storage space.

21. A communication system between multiple network elements, comprising at least one memory and at least one processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the communication method according to any one of claims 1 to 20.

22. A message bus system for communication between multiple network elements, comprising: A message receiving module, configured to receive a message transmitted between the first network element and the second network element; The message tunnel management module is configured to establish a message tunnel between the first network element and the second network element, extract the message content of the message received by the message receiving module, calculate the storage area address of the message content in the storage space of the corresponding message tunnel, and create metadata for the message content, and then store the extracted message content and the created metadata in the corresponding storage area of ​​the corresponding message tunnel respectively, and the metadata is a description of the message content.

23. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to implement the communication method according to any one of claims 1 to 20.