Communication method and device based on novel network protocol, electronic equipment and medium

By introducing a communication semantic layer into the protocol service layer of the new network protocol, dynamically switching the communication semantic modes within and between nodes, the problem of semantic separation between nodes and nodes in a distributed cluster is solved, and efficient communication scheduling and data interaction are achieved.

CN119922174APending Publication Date: 2025-05-02VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510057868.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In scenarios such as distributed clusters, there is a separation between the communication semantic networks within and between nodes, which cannot be uniformly scheduled, affecting communication efficiency.

Method used

By introducing a communication semantic layer into the protocol service layer of the new network protocol, the Load-Store semantic mode within the node and the message delivery semantic mode between nodes are dynamically switched, and the mode switching is performed according to communication needs.

Benefits of technology

It realizes unified scheduling of networks inside and outside the nodes, quickly realizes interoperability between inside and outside the nodes, completes efficient data interaction, and improves communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922174A_ABST
    Figure CN119922174A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and device based on a novel network protocol, electronic equipment and a medium, a protocol service layer of the novel network protocol is provided with a communication semantic layer, and the method comprises the following steps: obtaining a communication demand of a current communication task; switching the current communication task from a first communication semantic mode to a second communication semantic mode through a communication semantic layer when it is detected that the communication demand is changed; and in the second communication semantic mode, processing the current communication task so as to enable the current communication task to communicate in the corresponding communication semantic network. Through the embodiment of the invention, switching of communication semantic modes in different communication semantic networks is realized through a communication semantic layer in a novel network protocol, a semantic splitting phenomenon existing in internal and external networks of the node is solved, unified scheduling is performed in different communication semantic networks, internal and external intercommunication of the node is quickly realized, and efficient data interaction is completed; and the communication efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a communication method, device, electronic equipment and medium based on a novel network protocol. Background Art

[0002] In scenarios such as distributed cluster environments, multiple nodes are usually set up. One communication semantic network is used for communication within each node, and another communication semantic network is used for communication between multiple nodes. The two communication semantic networks are separated and cannot be uniformly scheduled, which affects communication efficiency. Summary of the invention

[0003] In view of the above problems, a communication method, device, electronic device and medium based on a new network protocol are proposed to overcome the above problems or at least partially solve the above problems, including:

[0004] A communication method based on a new network protocol, wherein the protocol service layer of the new network protocol is provided with a communication semantic layer, the method comprising:

[0005] Obtain the communication requirements of the current communication task;

[0006] When a change in the communication demand is detected, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks;

[0007] In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network.

[0008] Optionally, the first communication semantic mode is an intra-node communication semantic mode, the second communication semantic mode is an inter-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes:

[0009] When it is detected that the communication demand switches from intra-node semantic network communication to inter-node semantic network communication, the current communication task is switched from intra-node communication semantic mode to inter-node communication semantic mode through the communication semantic layer.

[0010] Optionally, the first communication semantic mode is an inter-node communication semantic mode, the second communication semantic mode is an intra-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes:

[0011] When it is detected that the communication demand switches from inter-node semantic network communication to intra-node semantic network communication, the current communication task is switched from inter-node communication semantic mode to intra-node communication semantic mode through the communication semantic layer.

[0012] Optionally, the intra-node communication semantic mode is a communication semantic mode based on shared memory, and the inter-node communication semantic mode is a communication semantic mode based on message passing;

[0013] The intra-node semantic network is a communication network between different devices in a single node, and the inter-node semantic network is a communication network between multiple nodes.

[0014] Optionally, the protocol service layer is further provided with a control plane and a data plane, the control plane is at least used for controlling the communication semantic mode, the data plane is at least used for transmitting data in the communication task, and the control plane and the data plane are separated from each other.

[0015] Optionally, the protocol service layer is provided with a first interface for the first communication semantic mode and a second interface for the second communication semantic mode, and the communication semantic layer implements switching of the communication semantic mode by calling the first interface or the second interface.

[0016] Optionally, the novel network protocol is further provided with a physical layer, a link layer, and an application layer.

[0017] A communication device based on a new network protocol, wherein the protocol service layer of the new network protocol is provided with a communication semantic layer, and the device comprises:

[0018] A communication requirement acquisition module is used to obtain the communication requirement of the current communication task;

[0019] A communication semantic mode switching module, configured to switch the current communication task from a first communication semantic mode to a second communication semantic mode through the communication semantic layer when a change in the communication demand is detected; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks;

[0020] The current communication task processing module is used to process the current communication task in the second communication semantic mode so that the current communication task communicates in the corresponding communication semantic network.

[0021] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method described above when executed by the processor.

[0022] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0023] The embodiments of the present invention have the following advantages:

[0024] In an embodiment of the present invention, by acquiring the communication demand of the current communication task, when a change in the communication demand is detected, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer, wherein the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks. In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network, thereby realizing switching of communication semantic modes in different communication semantic networks through the communication semantic layer in the new network protocol, solving the semantic fragmentation phenomenon existing in the network inside and outside the node, performing unified scheduling in different communication semantic networks, quickly realizing internal and external communication of the node, completing efficient data interaction, and improving communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0026] Figure 1 is a flow chart of steps of a communication method based on a novel network protocol provided by some embodiments of the present invention;

[0027] Figure 2 is a schematic diagram of the structure of a new type of network protocol provided by some embodiments of the present invention;

[0028] Figure 3 is a flowchart of another communication method based on a novel network protocol provided by some embodiments of the present invention;

[0029] Figure 4 is a flowchart of another communication method based on a novel network protocol provided by some embodiments of the present invention;

[0030] Figure 5 It is a structural block diagram of a communication device based on a new network protocol provided by some embodiments of the present invention. DETAILED DESCRIPTION

[0031] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] As the scale of high-performance computing (HPC) and deep learning models continues to expand, network architecture can no longer meet the multi-dimensional requirements of modern computing for bandwidth, latency, scalability, etc. In related technologies, the network architecture can be expanded using two methods: scale-up (scaling upward) and scale-out (scaling out).

[0033] In practical applications, there are fundamental differences between scale-up and scale-out. Scale-up focuses on improving the computing resources of a single node and improves performance by enhancing single-node resources (such as adding more GPUs, expanding memory, and speeding up data transmission channels). Scale-out, on the other hand, expands computing power by increasing the number of nodes, achieving horizontal expansion of resources, and forming a large-scale distributed computing network.

[0034] Among them, the implementation of the scale-up architecture is through high-bandwidth, low-latency node interconnection technologies, such as NVLink and NVSwitch. These interconnection technologies are based on Load-Store (read-write) semantics, that is, each device shares the memory address space and exchanges data by reading or writing the shared memory. The implementation of scale-out mostly relies on high-speed networks such as InfiniBand and RoCE. Such networks are usually based on message passing semantics, that is, each node communicates through an explicit message passing interface.

[0035] Load-Store semantic networks (such as NVLink and NVSwitch) and message passing semantic networks (such as InfiniBand and RoCE) each have their own application scenarios and advantages. This semantic difference leads to the current system architecture often requiring different network systems to support scale-up and scale-out expansion, resulting in a split between the intra-node network and the inter-node network.

[0036] Among them, the Load-Store semantic network is used for communication between devices within a node. It is based on a shared memory address space and allows devices to exchange data by reading (Load) or writing (Store) memory. For example, the Load-Store semantic network includes NVIDIA's NVLink and PCIe bus. This network semantics allows devices to achieve high-speed communication without explicitly sending and receiving messages, and greatly reduces communication latency and complexity by sharing the address space. Under this semantics, each device can directly access the memory area of ​​​​other devices through load or store operations. Load-Store semantics has the advantage of high efficiency in a single node (such as multi-GPU or GPU and CPU communication), but it faces difficulties when expanding to cross-node scenarios because its design is not suitable for distributed cluster environments.

[0037] Unlike Load-Store semantics, message passing semantic networks are based on explicit communication between nodes. It requires the sender to explicitly send a message, and the receiver must explicitly receive the message. For example, message passing semantic networks include InfiniBand and RoCE. This type of network is mainly used for inter-node communication and is common in scale-out expansion in distributed computing scenarios. The advantage of message passing semantic networks is that they can efficiently transmit data across nodes, especially for large-scale cluster systems with multiple nodes and multiple racks. However, when used within a node, message passing semantics will bring a large communication overhead, especially in scenarios with high-frequency data interaction, where explicit sending and receiving operations may increase system overhead.

[0038] Therefore, how to combine Load-Store semantics and message passing semantics to build a unified network system that can not only support seamless communication of resources within a single node, but also effectively expand to large-scale distributed systems across nodes has become a challenge that needs to be urgently addressed in current network architecture design.

[0039] In an embodiment of the present invention, a new type of network protocol architecture is proposed, which is compatible with Load-Store and message passing semantics to build a unified network system. The core innovation of the protocol is the introduction of a unified communication semantic layer. In related technologies, the network structure is either based on Load-Store semantics or message passing semantics, but the new protocol adds a dynamic semantic switching function on this basis, so that the Load-Store operation within the node can be directly extended to the communication between nodes without modifying the application layer code. At the same time, in large-scale distributed tasks, the message passing between nodes can also be seamlessly converted to Load-Store communication within the node, thereby maximizing the use of existing hardware resources.

[0040] The present invention is further described below in conjunction with the accompanying drawings:

[0041] Reference Figure 1 , shows a flow chart of the steps of a communication method based on a new network protocol provided by some embodiments of the present invention, the new network protocol is provided with a physical layer, a link layer, a protocol service layer, an application layer, such as Figure 2 In order to better combine Load-Store and message passing semantic networks, a unified protocol layered model is constructed. The protocol includes the following layers from the bottom layer to the top layer:

[0042] Physical layer: responsible for the transmission of electrical and optical signals at the hardware level. It ensures the effective transmission of data on the physical channel and is responsible for solving problems such as bit errors and interference in low-level transmission.

[0043] Link layer: Based on physical transmission, it provides reliable data frame transmission function and is responsible for error control, flow control, etc.

[0044] Protocol service layer: This is the core of the new protocol, responsible for providing a unified communication semantic layer that can switch between Load-Store and message passing according to communication needs. This layer supports different communication modes by dynamically selecting and managing network paths.

[0045] Application layer: provides interfaces for high-level applications. Users or applications can select the communication method suitable for the current scenario by calling the interface.

[0046] In some embodiments of the present invention, the protocol service layer of the new network protocol is provided with a communication semantic layer. In the network structure in the related art, it is either based on Load-Store semantics or based on message passing semantics, but the new protocol adds a dynamic semantic switching function through the communication semantic layer on this basis, so that the Load-Store operation within the node can be directly extended to the communication between nodes without modifying the application layer code. At the same time, in large-scale distributed tasks, the message passing between nodes can also be seamlessly converted to Load-Store communication within the node, thereby maximizing the use of existing hardware resources.

[0047] In some embodiments of the present invention, the protocol service layer is further provided with a control plane and a data plane, wherein the control plane is at least used for controlling the communication semantic mode, and the data plane is at least used for transmitting data in the communication task, and the control plane and the data plane are separated from each other.

[0048] In this new network protocol, the control plane and the data plane are completely separated. The control plane is responsible for maintaining the topology information, routing selection, flow control and other functions of the entire network, while the data plane focuses on actual data transmission. The separation of the control plane and the data plane helps the network to flexibly manage network resources in large-scale scenarios, reduce communication overhead, and improve the efficiency of the overall network. By optimizing the control plane, the new protocol can automatically select the optimal transmission path and semantics according to the communication requirements of the current system, thereby achieving optimal performance in both scale-up and scale-out scenarios.

[0049] In some embodiments of the present invention, the protocol service layer is provided with a first interface for the first communication semantic mode and a second interface for the second communication semantic mode, and the communication semantic layer implements switching of the communication semantic mode by calling the first interface or the second interface.

[0050] In actual applications, the protocol service layer is the middle layer in the network protocol system. It is mainly responsible for abstracting and managing different communication semantics and providing standardized interfaces for the application layer. The protocol service layer is essentially a specific implementation of the communication mode. It provides the basic functions of Load-Store and message passing for the unified communication semantic layer. On this basis, the unified communication semantic layer further integrates and schedules the communication mode to achieve dynamic switching of semantics. The protocol service layer provides the basic interface and protocol implementation of Load-Store and message passing semantics, while the unified communication semantic layer performs intelligent routing and scheduling tasks through these interfaces. Through this design, the protocol service layer and the unified communication semantic layer achieve hierarchical decoupling, allowing the protocol to be flexibly adapted in different scenarios.

[0051] Specifically, the following steps may be included:

[0052] Step 101, obtaining the communication requirement of the current communication task.

[0053] Step 102, when it is detected that the communication demand has changed, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks.

[0054] Among them, the first communication semantic mode is an intra-node communication semantic mode, and the second communication semantic mode is an inter-node communication semantic mode, or the first communication semantic mode is an inter-node communication semantic mode, and the second communication semantic mode is an intra-node communication semantic mode.

[0055] In some embodiments of the present invention, the intra-node communication semantic mode is a communication semantic mode based on shared memory, and the inter-node communication semantic mode is a communication semantic mode based on message passing.

[0056] In some embodiments of the present invention, the intra-node semantic network is a communication network between different devices in a single node, and the inter-node semantic network is a communication network between multiple nodes.

[0057] In some examples, the intra-node semantic network is a Load-Store semantic network, the intra-node communication semantic mode is a Load-Store semantic mode, the inter-node semantic network is a message passing semantic network, and the inter-node communication semantic mode is a message passing semantic mode.

[0058] Load-Store semantics means that each device shares a memory address space and interacts by reading or writing the shared memory. Message passing semantics means that each node communicates through an explicit message passing interface.

[0059] Among them, the Load-Store semantic network is used for communication between devices within a node. It is based on a shared memory address space and allows devices to exchange data by reading (Load) or writing (Store) memory. For example, the Load-Store semantic network includes NVIDIA's NVLink and PCIe bus. This network semantics allows devices to achieve high-speed communication without explicitly sending and receiving messages, and greatly reduces communication latency and complexity by sharing the address space. Under this semantics, each device can directly access the memory area of ​​​​other devices through load or store operations. Load-Store semantics has the advantage of high efficiency in a single node (such as multi-GPU or GPU and CPU communication), but it faces difficulties when expanding to cross-node scenarios because its design is not suitable for distributed cluster environments.

[0060] Unlike Load-Store semantics, message passing semantic networks are based on explicit communication between nodes. It requires the sender to explicitly send a message, and the receiver must explicitly receive the message. For example, message passing semantic networks include InfiniBand and RoCE. This type of network is mainly used for inter-node communication and is common in scale-out expansion in distributed computing scenarios. The advantage of message passing semantic networks is that they can efficiently transmit data across nodes, especially for large-scale cluster systems with multiple nodes and multiple racks. However, when used within a node, message passing semantics will bring a large communication overhead, especially in scenarios with high-frequency data interaction, where explicit sending and receiving operations may increase system overhead.

[0061] In practical applications, changes in communication requirements may be switching from one communication semantic network to another communication semantic network, such as switching from an intra-node semantic network to an inter-node semantic network, or from an inter-node semantic network to an intra-node semantic network.

[0062] Since the first communication semantic mode is used for communication in the current communication semantic network, when a change in the communication demand is detected, it is necessary to switch to another communication semantic network for communication, and the current communication task can be switched from the first communication semantic mode to the second communication semantic mode.

[0063] In the related technologies, the network structure is based on either Load-Store semantics or message passing semantics. However, the new protocol adds a dynamic semantic switching function through the communication semantic layer, so that the Load-Store operation within the node can be directly extended to the communication between nodes without modifying the application layer code. At the same time, in large-scale distributed tasks, the message passing between nodes can also be seamlessly converted to Load-Store communication within the node, thereby maximizing the use of existing hardware resources.

[0064] By combining the two different communication semantics of Load-Store and message passing, a unified network architecture that can seamlessly switch within and outside nodes is established. It is compatible with Load-Store and message passing semantics, integrates and schedules between communication modes, and realizes dynamic switching of semantics. This allows the system to communicate in a low-latency, high-frequency access manner within a single node, and to perform efficient message passing in a cross-node environment, achieving smooth switching within and between nodes, solving the problem of semantic inconsistency, and enabling the same system to support both efficient communication within a node and expansion between nodes.

[0065] In some embodiments of the present invention, the first communication semantic mode is an intra-node communication semantic mode, the second communication semantic mode is an inter-node communication semantic mode, and when it is detected that the communication demand has changed, the current communication task is switched from the first communication semantic mode to the second communication semantic mode through the communication semantic layer, including: when it is detected that the communication demand has switched from intra-node semantic network communication to inter-node semantic network communication, the current communication task is switched from the intra-node communication semantic mode to the inter-node communication semantic mode through the communication semantic layer.

[0066] In practical applications, the current communication task is intra-node semantic network communication, that is, communication is carried out using the intra-node communication semantic mode, such as transmitting from the GPU in a certain node 1 to the CPU in the node. When the current communication task needs to switch from the intra-node semantic network (Load-Store semantic network) communication to the inter-node semantic network (message passing semantic network) communication, such as transmitting from node 1 to node 2, the communication semantic layer can switch the communication semantic mode of the current communication task from the intra-node communication semantic mode to the inter-node communication semantic mode.

[0067] In some embodiments of the present invention, the first communication semantic mode is an inter-node communication semantic mode, the second communication semantic mode is an intra-node communication semantic mode, and when it is detected that the communication demand has changed, the current communication task is switched from the first communication semantic mode to the second communication semantic mode through the communication semantic layer, including: when it is detected that the communication demand has switched from inter-node semantic network communication to intra-node semantic network communication, the current communication task is switched from the inter-node communication semantic mode to the intra-node communication semantic mode through the communication semantic layer.

[0068] In practical applications, the current communication task is currently communicating in the inter-node semantic network, that is, communicating using the inter-node communication semantic mode, such as transmitting from node 2 to node 1. When the current communication task needs to switch from the inter-node semantic network (message passing semantic network) communication to the intra-node semantic network (Load-Store semantic network) communication, such as transmitting from the CPU in node 1 to the GPU in the node, the communication semantic layer can switch the communication semantic mode of the current communication task from the inter-node communication semantic mode to the intra-node communication semantic mode.

[0069] Step 103: In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network.

[0070] After switching from the first communication semantic mode to the second communication semantic mode, the current communication task can be processed, and communication can be performed in the corresponding communication semantic network.

[0071] In some examples, the following processing operations may be performed:

[0072] 1. Dynamic semantic switching: The core of dynamic semantic switching is the recognition and adaptation of communication modes by the unified communication semantic layer. In some examples, the specific implementation methods include:

[0073] Communication demand identification: The system determines the required semantic type by monitoring the current communication task requirements. For example, high-frequency, low-latency data exchange tasks within a node are suitable for Load-Store semantics, while large-scale data transmission across nodes is suitable for message passing semantics.

[0074] Seamless switching: When the communication mode requested by the application layer changes, the unified communication semantic layer can automatically perform semantic conversion. For example, a communication request using Load-Store within a single node can maintain communication continuity by mapping it to a message passing mode when crossing nodes. In this way, the application layer can adapt to different hardware communication requirements through underlying semantic switching without modification.

[0075] Minimize latency: During dynamic switching, the unified communications semantic layer reduces latency and performance loss caused by semantic switching. This is achieved by efficiently calling existing hardware, making the switching process transparent to applications and maintaining stable performance.

[0076] 2. Intelligent routing selection: Intelligent routing selection is a function of the unified communication semantic layer to automatically allocate and optimize resources for different communication paths. In some examples, the implementation methods include:

[0077] Path selection algorithm: This layer uses intelligent algorithms to analyze network topology and load status and select the optimal communication path. For example, in a scale-out scenario, the system can determine the best path based on the bandwidth load, latency, and transmission distance between nodes.

[0078] Adaptive path adjustment: In a high-load or dynamically changing network environment, intelligent routing can adjust the communication path in real time to avoid network congestion. For example, when the main path is overloaded, the system can automatically switch to an alternative path to ensure the stability of data transmission.

[0079] Multi-level routing strategy: In the network structure, the path selection is made more efficient by managing the paths in a hierarchical manner, for example, the Load-Store communication path within a single node is managed independently from the message passing path across nodes. Communication within a single node is usually completed through a low-latency bus interface, while cross-node communication is carried out through a high-speed switching network, forming a hierarchical network path optimization strategy.

[0080] In an embodiment of the present invention, by acquiring the communication demand of the current communication task, when a change in the communication demand is detected, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer, wherein the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks. In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network, thereby realizing switching of communication semantic modes in different communication semantic networks through the communication semantic layer in the new network protocol, solving the semantic fragmentation phenomenon existing in the network inside and outside the node, performing unified scheduling in different communication semantic networks, quickly realizing internal and external communication of the node, completing efficient data interaction, and improving communication efficiency.

[0081] Based on the new network protocol, the unified network architecture is physically divided into intra-node network and inter-node network, but the two use the same set of protocols for data routing and management to achieve a unified network communication model, forming a network structure that can support both scale-up and scale-out. In this architecture, all nodes (including CPU, GPU, storage unit, etc.) are connected through a unified communication framework to achieve seamless integration of Load-Store and message passing semantics.

[0082] In the network architecture, each node is interconnected through a unified switching system (such as a high-bandwidth, low-latency switch) to form a distributed multi-level network topology.

[0083] In some examples, the logical topology of the architecture is divided into the following layers:

[0084] 1. Node internal interconnection layer: In a single node, direct data communication between GPUs and GPUs, and between GPUs and CPUs is achieved through high-speed interconnection (such as NVLink or PCIe bus). The communication at this layer mainly relies on Load-Store semantics and is suitable for high-frequency and low-latency access scenarios.

[0085] 2. Cross-node interconnection layer: Cross-node communication is carried out through high-performance switching networks (such as InfiniBand or RoCE), which is suitable for long-distance communication with message passing semantics. The design of the cross-node interconnection layer ensures that messages can be efficiently delivered in large-scale distributed systems.

[0086] 3. Control plane layer: responsible for the routing selection and semantic switching management of the entire system. The control plane analyzes the current communication status through intelligent algorithms, decides whether to use the Load-Store semantics within the node or the message passing semantics across nodes, and prioritizes different communication tasks.

[0087] Reference Figure 3 , shows a flow chart of another communication method based on a novel network protocol provided by some embodiments of the present invention, which may specifically include the following steps:

[0088] Step 301, obtaining the communication requirement of the current communication task.

[0089] Step 302, when it is detected that the communication demand switches from intra-node semantic network communication to inter-node semantic network communication, the current communication task is switched from intra-node communication semantic mode to inter-node communication semantic mode through the communication semantic layer.

[0090] Step 303: in the inter-node communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network.

[0091] Reference Figure 4 , shows a flow chart of another communication method based on a novel network protocol provided by some embodiments of the present invention, which may specifically include the following steps:

[0092] Step 401, obtaining the communication requirements of the current communication task;

[0093] Step 402, when it is detected that the communication demand switches from inter-node semantic network communication to intra-node semantic network communication, the current communication task is switched from inter-node communication semantic mode to intra-node communication semantic mode through the communication semantic layer.

[0094] Step 403: in the intra-node communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network.

[0095] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0096] Reference Figure 5 , showing a schematic diagram of the structure of a communication device based on a new network protocol provided in some embodiments of the present invention, wherein the protocol service layer of the new network protocol is provided with a communication semantic layer.

[0097] Specifically, the following modules may be included:

[0098] The communication requirement acquisition module 501 is used to acquire the communication requirement of the current communication task;

[0099] The communication semantic mode switching module 502 is used to switch the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer when a change in the communication demand is detected; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks;

[0100] The current communication task processing module 503 is used to process the current communication task in the second communication semantic mode so that the current communication task communicates in the corresponding communication semantic network.

[0101] In some embodiments of the present invention, the first communication semantic mode is an intra-node communication semantic mode, the second communication semantic mode is an inter-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes:

[0102] When it is detected that the communication demand switches from intra-node semantic network communication to inter-node semantic network communication, the current communication task is switched from intra-node communication semantic mode to inter-node communication semantic mode through the communication semantic layer.

[0103] In some embodiments of the present invention, the first communication semantic mode is an inter-node communication semantic mode, the second communication semantic mode is an intra-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes:

[0104] When it is detected that the communication demand switches from inter-node semantic network communication to intra-node semantic network communication, the current communication task is switched from inter-node communication semantic mode to intra-node communication semantic mode through the communication semantic layer.

[0105] In some embodiments of the present invention, the intra-node communication semantic mode is a communication semantic mode based on shared memory, and the inter-node communication semantic mode is a communication semantic mode based on message passing;

[0106] The intra-node semantic network is a communication network between different devices in a single node, and the inter-node semantic network is a communication network between multiple nodes.

[0107] In some embodiments of the present invention, the protocol service layer is also provided with a control plane and a data plane, the control plane is at least used for controlling the communication semantic mode, and the data plane is at least used for transmitting data in the communication task, and the control plane and the data plane are separated from each other.

[0108] In some embodiments of the present invention, the protocol service layer is provided with a first interface for the first communication semantic mode and a second interface for the second communication semantic mode, and the communication semantic layer implements switching of the communication semantic mode by calling the first interface or the second interface.

[0109] In some embodiments of the present invention, the novel network protocol is further provided with a physical layer, a link layer, and an application layer.

[0110] In an embodiment of the present invention, by acquiring the communication demand of the current communication task, when a change in the communication demand is detected, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer, wherein the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks. In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network, thereby realizing switching of communication semantic modes in different communication semantic networks through the communication semantic layer in the new network protocol, solving the semantic fragmentation phenomenon existing in the network inside and outside the node, performing unified scheduling in different communication semantic networks, quickly realizing internal and external communication of the node, completing efficient data interaction, and improving communication efficiency.

[0111] Some embodiments of the present invention further provide an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.

[0112] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0113] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.

[0114] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0115] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0116] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0117] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0118] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0122] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0123] The communication method, device, electronic device and medium based on the new network protocol are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A communication method based on a new network protocol, characterized in that: The protocol service layer of the novel network protocol is provided with a communication semantic layer, and the method comprises: Obtain the communication requirements of the current communication task; When a change in the communication demand is detected, the current communication task is switched from a first communication semantic mode to a second communication semantic mode through the communication semantic layer; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks; In the second communication semantic mode, the current communication task is processed so that the current communication task communicates in the corresponding communication semantic network.

2. The method according to claim 1, characterized in that: The first communication semantic mode is an intra-node communication semantic mode, the second communication semantic mode is an inter-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes: When it is detected that the communication demand switches from intra-node semantic network communication to inter-node semantic network communication, the current communication task is switched from intra-node communication semantic mode to inter-node communication semantic mode through the communication semantic layer.

3. The method according to claim 1, characterized in that The first communication semantic mode is an inter-node communication semantic mode, the second communication semantic mode is an intra-node communication semantic mode, and when detecting that the communication demand has changed, switching the current communication task from the first communication semantic mode to the second communication semantic mode through the communication semantic layer includes: When it is detected that the communication demand switches from inter-node semantic network communication to intra-node semantic network communication, the current communication task is switched from inter-node communication semantic mode to intra-node communication semantic mode through the communication semantic layer.

4. The method according to claim 2 or 3, characterized in that: The intra-node communication semantic mode is a communication semantic mode based on shared memory, and the inter-node communication semantic mode is a communication semantic mode based on message passing; The intra-node semantic network is a communication network between different devices in a single node, and the inter-node semantic network is a communication network between multiple nodes.

5. The method according to any one of claims 1 to 3, characterized in that: The protocol service layer is also provided with a control plane and a data plane. The control plane is at least used for controlling the communication semantic mode, and the data plane is at least used for transmitting data in the communication task. The control plane and the data plane are separated from each other.

6. The method according to any one of claims 1 to 3, characterized in that: The protocol service layer is provided with a first interface for the first communication semantic mode and a second interface for the second communication semantic mode. The communication semantic layer implements the switching of the communication semantic mode by calling the first interface or the second interface.

7. The method according to any one of claims 1 to 3, characterized in that: The novel network protocol is also provided with a physical layer, a link layer, and an application layer.

8. A communication device based on a new network protocol, characterized in that: The protocol service layer of the novel network protocol is provided with a communication semantic layer, and the device comprises: A communication requirement acquisition module is used to obtain the communication requirement of the current communication task; A communication semantic mode switching module, configured to switch the current communication task from a first communication semantic mode to a second communication semantic mode through the communication semantic layer when a change in the communication demand is detected; the first communication semantic mode and the second communication semantic mode are communication semantic modes in different communication semantic networks; The current communication task processing module is used to process the current communication task in the second communication semantic mode so that the current communication task communicates in the corresponding communication semantic network.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Multi-protocol data communication method and system for intelligent building

    CN120321315A

  • A multi-protocol data communication method and system for intelligent buildings

    CN120321315B