Method and system for communication between multiple network elements, message bus system, and storage medium
By using the message bus system to establish message tunnels in multi-network element communication scenarios, the problem of network resource waste during multi-network element communication is solved, and resource saving and flexible access methods are achieved.
Patent Information
- Application Number
- PCT/CN2024/104219
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-17
- Filing Date
- 2024-07-08
- Publication Date
- 2025-01-23
AI Technical Summary
In the multi-network network communication scenario, the existing technology has the problem of wasting network resources, especially when a network element needs to communicate with multiple peer network elements, multiple links need to be established, resulting in the lack of network resources. Efficiency utilization.
Establish a message tunnel between the net element through the message bus system to achieve the transmission and storage of the message. After receiving the message, the message bus system is extracted to extract the message content, calculate the storage area address, creates meta -data for the message content, and stores it according to the corresponding corresponding to the corresponding corresponding to the corresponding correspondingly. Storage area.
This method effectively solves the problem of wasting network resources when communicating between multiple network elements, and achieves resource saving and flexible access methods by uniformly managing the message content of the message tunnel.
Smart Images

Figure CN2024104219_23012025_PF_FP_ABST
Abstract
Description
Communication method and system between multiple network elements, message bus system, and storage medium
[0001] Cross-references to related publications
[0002] This disclosure claims priority to a Chinese patent application filed with the State Intellectual Property Office on July 17, 2023, with application number CN202310880914.0 and invention name “Communication method and system between multiple network elements, message bus system, and storage medium”. The entire contents of this application are incorporated by reference into this disclosure. Technical Field
[0003] The embodiments of the present disclosure relate to, but are not limited to, the field of communication technology, and in particular, to a method and system for communication between multiple network elements, a message bus system for communication between multiple network elements, and a computer-readable storage medium. Background Art
[0004] Traditional network functions (NFs) (for example, those in 5G communication networks) communicate as independent network elements by exposing their service interfaces through a service registration mechanism. If communication with a peer NF is required, the service interface exposed by the peer NF must be found through the service discovery mechanism. Links between the service interfaces are then established, and message exchange is completed by calling the service interfaces. This communication method has the following drawbacks in multi-network element communication scenarios: An NF may register multiple service interfaces. If a peer NF needs to access multiple service interfaces of the NF, multiple links must be established, resulting in a waste of network resources. Furthermore, if an NF wants to send the same message to multiple peer NFs, it must send the message separately over the network, which also results in a waste of network resources.
[0005] Summary of the Invention
[0006] The present disclosure 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.
[0007] In a first aspect, an embodiment of the present disclosure provides a communication method between multiple network elements, including: establishing a message tunnel corresponding to a first network element through a message bus system; a 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 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.
[0008] In a second aspect, an embodiment of the present disclosure 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.
[0009] In a third aspect, an embodiment of the present disclosure 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 areas of the corresponding message tunnel, respectively, where the metadata is a description of the message content.
[0010] In a fourth aspect, an embodiment of the present disclosure 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] FIG1 shows a flow chart of a communication method between multiple network elements according to an embodiment of the present disclosure.
[0012] FIG2 shows an example storage method of message content and metadata in a storage space of a message tunnel in an embodiment of the present disclosure.
[0013] FIG3 shows an example implementation of a communication method between multiple network elements according to an embodiment of the present disclosure.
[0014] FIG4 shows a schematic diagram of a communication system between multiple network elements according to an embodiment of the present disclosure.
[0015] FIG5 shows a schematic diagram of a message bus system for communication between multiple network elements according to an embodiment of the present disclosure.
[0016] FIG6 shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] In order to enable technical personnel in this field to better understand the technical solution of the present disclosure, 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 disclosure are described in detail below with reference to the accompanying drawings.
[0018] Hereinafter, example embodiments will be described more fully with reference to the accompanying drawings, but the example embodiments may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth herein. These examples are provided 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.
[0019] In the absence of conflict, the various embodiments of the present disclosure and the various features therein 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.
[0020] It should be understood that the terminology used herein is intended only to describe specific embodiments and is not intended to limit the present disclosure. Although the terms "first," "second," and the like are used herein to describe network elements, these network elements are not limited by these terms. These terms do not denote any order, quantity, or importance, but are simply used to distinguish network elements. For example, 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, without departing from the scope of the present disclosure.
[0021] In addition, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Depending on the context, the terms "if," "in response to," and the like as used herein may be interpreted as "during," or "when." It will also be understood that the term "comprising" as used in this specification specifies the presence of certain features, entities, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, entities, steps, operations, elements, components, and / or combinations thereof.
[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled 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 expressly defined as such herein.
[0023] In a first aspect, an embodiment of the present disclosure provides a communication method between multiple network elements. As shown in FIG1 , the communication method includes the following steps S1 to S4 .
[0024] Step S1: Establish a message tunnel corresponding to a first network element through a message bus system.
[0025] Here, establishing a message tunnel includes allocating a message tunnel identifier and corresponding storage space.
[0026] 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.
[0027] Step S2: The second network element obtains the message tunnel corresponding to the first network element through the message bus system.
[0028] For example, the second network element may obtain the message tunnel identifier of the message tunnel corresponding to the first network element.
[0029] Step S3: The first network element and the second network element transmit messages via a corresponding message tunnel through the message bus system.
[0030] In an embodiment of the present disclosure, 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.
[0031] 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.
[0032] 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. The extracted message content and the created metadata are then stored in the corresponding storage areas of the corresponding message tunnel respectively. The metadata is a description of the message content.
[0033] It should be understood that after receiving a message, the message bus system may first perform a simple integrity check on the message. If the received message is determined to be complete, subsequent processing may be performed. If the received message is determined to be incomplete, the system may choose to discard the message or request retransmission as needed. This is not specifically limited in the embodiments of the present disclosure.
[0034] 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.
[0035] 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.
[0036] In addition, the message received by the message bus system should contain the message tunnel identifier.
[0037] In the communication method between multiple network elements provided by the embodiments of the present disclosure, messages are transmitted between the multiple network elements through a message bus system and a 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. The extracted message content and the created metadata are then stored in the corresponding storage area of the corresponding message tunnel. 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. 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-end network elements through the same message tunnel. 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 communicating between multiple network elements in the prior art.
[0038] Specifically, since the message bus system extracts and stores the message content of the message after receiving it, and creates metadata for the message content for management of the message content, the encapsulation method of the data packets transmitted between the first network element and the message bus system may be different from the encapsulation method of the data packets 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.
[0039] Accordingly, in an embodiment of the present disclosure, 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.
[0040] In addition, in an embodiment of the present disclosure, 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.
[0041] 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 tunnel, 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.
[0042] That is, in the embodiments of the present disclosure, 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.
[0043] 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.
[0044] 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).
[0045] 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.
[0046] In some implementations, the message contents and / or metadata stored in the same storage area are stored in chronological order according to the time at which the corresponding messages were received.
[0047] In this case, when any storage area is full, new message content or new metadata can be overwritten starting from the starting address of the storage area.
[0048] That is, in the embodiments of the present disclosure, 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 reading and writing.
[0049] 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.
[0050] In some implementations, in the storage space of the message tunnel, the message content and metadata of each message may be stored in pairs sequentially according to the order of the reception time of each message, as shown in FIG2 , and may be stored as a message queue.
[0051] In some embodiments, as shown in FIG1 , the communication method further 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 processes: classified storage, sequential transmission, multi-copy storage, encryption processing, and expiration processing.
[0052] The classification and storage of message content have been explained above and will not be repeated here.
[0053] 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.
[0054] 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 to achieve multi-copy storage of message content and / or metadata.
[0055] Regarding encryption processing, in the embodiments of the present disclosure, for security reasons, the message bus system may selectively encrypt part of the message content. For example, different encryption processing may be performed on 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).
[0056] Of course, when the message bus system provides the network element serving 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.
[0057] 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, the corresponding message content and metadata can be deleted.
[0058] In some implementations, as shown in FIG1 , the communication method further includes step S6 , in which the message bus system destroys / reclaims the message tunnel.
[0059] Specifically, the message bus system can destroy / reclaim the message tunnel by reclaiming the message tunnel identifier and the corresponding storage space.
[0060] As an example, in an embodiment of the present disclosure, the first network element and the second network element can both be network functions (NFs) in a 5G network. For example, the first network element can be a service provider and the second network element can be a service discoverer. In this case, the communication method between multiple network elements according to an embodiment of the present disclosure can be implemented as shown in Figure 3.
[0061] Specifically, as shown in FIG3 , the communication method between multiple network elements provided by the embodiment of the present disclosure may include the following steps S11 to S19 .
[0062] In 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.
[0063] Here, the service interface refers to the interface that provides a certain service / business function.
[0064] S12. The message bus system establishes a corresponding message tunnel for the service interface of the first network element.
[0065] In an embodiment of the present disclosure, a first network element may have multiple service interfaces. Accordingly, the message bus system may establish a 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 communication with the second network element may be performed through the same message tunnel.
[0066] 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.
[0067] 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 based on the obtained service interface of the first network element.
[0068] For example, the message bus system can 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.
[0069] 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.
[0070] 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.
[0071] The second network element may request the service interface of the first network element to provide corresponding services by sending a service request message to the service interface of the first network element.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] 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 based on the information contained in the first notification message, or actively send a message content reading request to the corresponding message tunnel.
[0076] 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.
[0077] Here, the response message may include a confirmation message of agreeing to provide the service, and / or a specific service content message.
[0078] 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. It then stores the extracted message content and the created metadata in the corresponding storage areas of the corresponding message tunnel respectively, and sends a second notification message to the second network element.
[0079] 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.
[0080] In some implementations, the second network element subscribes to the message bus system for the response message sent to the second network element, and the message bus system sends the second notification message to the second network element according to the subscription relationship and the destination address of the received response message.
[0081] 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.
[0082] 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 based on the information contained in the second notification message, or actively send a message content reading request to the corresponding message tunnel.
[0083] 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.
[0084] According to the above description, a first network element may have multiple service interfaces. The message bus system can establish a single message tunnel for the multiple service interfaces of the first network element. Multiple second network elements can request services from one or more service interfaces of the first network element through the single message tunnel. The one or more service interfaces of the first network element can then provide service responses to one or more second network elements through the corresponding single message tunnel. Because only one storage space is allocated for the single message tunnel, resources can be conserved and avoided.
[0085] In the second aspect, an embodiment of the present disclosure provides a communication system between multiple network elements, as shown in Figure 4, including at least one memory 1 and at least one processor 2, wherein 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 the embodiment of the present disclosure.
[0086] For example, multiple memories 1 and multiple processors 2 of a communication system may be connected via a bus to collaboratively implement the communication method between multiple network elements provided by an embodiment of the present disclosure.
[0087] In the third aspect, an embodiment of the present disclosure provides a message bus system for communication between multiple network elements, as shown in Figure 5, including: 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, where the metadata is a description of the message content.
[0088] 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.
[0089] In some embodiments, the message tunnel management module 12 is further 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.
[0090] 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 tunnel 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.
[0091] In some embodiments, the message tunnel management module 12 is configured to classify the message content 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).
[0092] In some embodiments, 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 time at which the corresponding messages were received.
[0093] In some embodiments, the message tunnel management module 12 is configured to overwrite new message content or new metadata starting from the starting address of any storage area after the storage area is full.
[0094] 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.
[0095] In some implementations, the message receiving module 11 is further configured to perform integrity verification on the received message.
[0096] In some embodiments, as shown in Figure 5, the message bus system also includes: a message notification module 13, 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.
[0097] In some embodiments, the first notification message includes at least part of the metadata corresponding to the message sent by the second network element to the first network element, and the second notification message includes at least part of the metadata corresponding to the message sent by the first network element to the second network element.
[0098] In some embodiments, as shown in FIG5 , the message bus system further includes a message subscription module 14 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 messages sent to the first network element through the message subscription module 14, and the second network element can subscribe to messages sent to the second network element through the message subscription module 14.
[0099] 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.
[0100] In some embodiments, as shown in FIG5 , the message bus system further includes a message output module 15 configured to encapsulate the corresponding message content into a data packet and output it to the first network element and / or the second network element based on a read request received from the first network element and / or the second network element.
[0101] 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.
[0102] In the fourth aspect, as shown in Figure 6, an embodiment of the present disclosure 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 disclosure.
[0103] It should be understood that in the communication method between multiple network elements provided in the embodiment of the present disclosure, 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 disclosure, the execution order of each step can be adjusted, and some steps can be executed in parallel.
[0104] In addition, it will be appreciated by those skilled in the art that the functional modules / units in all or some steps, systems, and devices disclosed above can 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 non-transitory medium) and a communication medium (or 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 includes, but is 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 tape, 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 embodies 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.
[0105] 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 purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly stated, 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, it will be understood by those skilled in the art 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 the corresponding message tunnel through the 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, wherein 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: The first network element and the message bus system transmit messages based on a first transmission protocol, and the second network element and the message bus system transmit messages 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 message tunnel corresponding to the first network element according to the obtained service interface of the first network element.
7. The communication method according to claim 6, wherein: The message bus system establishing a corresponding message tunnel for the service interface of the first network element includes: The message bus system establishes a 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 the message bus system and a corresponding message tunnel, 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 partial information of metadata 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 the message bus system via a corresponding message tunnel, further comprising: The service interface of the first network element sends a response message to the second network element through a message tunnel corresponding to the first network element 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 corresponding message from the corresponding message tunnel according to the received second notification message. The message content of the response message.
11. The communication method according to claim 10, wherein: 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.
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 the 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 the corresponding message tunnel respectively comprises at least one of the following: storing the message content and metadata corresponding to the message content in different storage areas; Storing the message content and the message content metadata of the message 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: Classifying the message contents of the different messages and storing them in the storage areas corresponding to the different categories includes: The message contents of the 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 starts from the starting address of the storage area. Overwrite.
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; A 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, wherein 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.
Citation Information
Patent Citations
Storage virtualization system and method for compatibilizing and integrating heterogeneous storage devices
CN106598498A
Network virtualization storage method, equipment and system
CN106686140A
Data processing system, data processing method and related apparatus
WO2023040504A1