Message transmission method and apparatus, node device, and communication system

By adopting multi-path communication and routing table optimization in the communication system, the problem of single-path communication bandwidth load pressure is solved, communication efficiency and performance are improved, and load balancing and resource saving are achieved.

WO2024198575A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/142039
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2023-12-26
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In existing communication systems, single-path communication has greater bandwidth load pressure when the amount of data is large, which affects communication performance.

Method used

By implementing multi-path communication in the node device, using multiple network ports for routing mechanism, balancing the bandwidth load, and only saving the path reachability information between its own network port and the device-level ports of other node devices in the routing table, Reduce computing resources and storage space requirements.

Benefits of technology

It improves communication efficiency and performance, reduces the computing and storage resource requirements of node devices, and realizes multi-path load sharing and load balancing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023142039_03102024_PF_FP_ABST
    Figure CN2023142039_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a message transmission method and apparatus, a node device, and a communication system, and relates to the technical field of communication. The message transmission method can be applied to a first node device in a communication system, the first node device comprising a plurality of network ports; when a first message is sent, the first node device can determine a device-level port identifier of a target node device of the first message, and based on the device-level port identifier of the target node device, can determine from the plurality of network ports a target egress port of the first message, and can send the first message by means of the target egress port of the first message, wherein the target egress port of the first message is a network port reachable by a path between the target egress port of the first message and the device-level port of the target node device. In the above process, a plurality of network ports participate in a path selection mechanism, thereby achieving multi-path communication, balancing the bandwidth load of a plurality of network ports, improving communication efficiency, and enhancing communication performance.
Need to check novelty before this filing date? Find Prior Art

Description

Message transmission method, device, node equipment and communication system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2023, with application number 202310359063.5 and application name “Message Transmission Method, Apparatus, Node Equipment and Communication System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a message transmission method, apparatus, node equipment and communication system. Background Art

[0004] A communication system usually includes multiple node devices connected by wired or wireless means, and data can be transmitted between different node devices through a specified network protocol.

[0005] In current communication systems, each node device is equipped with a network port. When two node devices communicate, they communicate over a single path through the network ports on both node devices. For example, when a first node device communicates with a second node device, the communication occurs over a single path through the network port on the first node device and the network port on the second node device.

[0006] As communication demands continue to increase, the amount of data that needs to be transmitted during communication is also gradually increasing. When the amount of data to be transmitted is large, the bandwidth load of single-path communication is very high, affecting communication performance.

[0007] Summary of the Invention

[0008] The embodiments of the present application provide a message transmission method, apparatus, node device, and communication system, which can implement multi-path communication and improve communication performance.

[0009] In a first aspect, an embodiment of the present application provides a message transmission method, which can be executed by a first node device in a serial bus communication system, wherein the serial bus communication system includes multiple node devices, the first node device can be any one of the multiple node devices, the first node device is used to send a first message to a target node device, the first node device can be the source node device of the first message, or it can be a switch or switching device used to forward the first message. The first node device and the target node device both include a device-level port and multiple network ports. There is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device. The message transmission method may include: the first node device determines the device-level port identifier of the target node device of the first message, determines the target egress port of the first message from the multiple network ports of the first node device based on the device-level port identifier of the target node device, and sends the first message through the target egress port of the first message, wherein the target egress port of the first message is a network port with a path reachable to the device-level port of the target node device.

[0010] The message transmission method provided by the embodiment of the present application is that the first node device includes multiple network ports. When sending the first message, the first node device can determine the device-level port identifier of the target node device of the first message, and determine the target output port of the first message from multiple network ports based on the device-level port identifier of the target node device. The above process selects the target output port from multiple network ports based on the device-level port identifier of the node device. By having multiple network ports participate in the routing mechanism, multi-path communication can be achieved, the bandwidth load of multiple network ports can be balanced, communication efficiency can be improved, and communication performance can be enhanced. In addition, there is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device. Based on this, the first node device can only save the path reachability information between its own network port and the device-level ports of other node devices. When the first node device selects the target output port from multiple network ports, the amount of data that needs to be traversed is also relatively small, which can save the computing resources of the node device.

[0011] In one possible implementation, a first node device stores a routing table that stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system. The first node device may search the routing table for candidate network ports that are path reachable from the device-level port of the target node device based on a device-level port identifier of the target node device, and determine a target egress port for the first message from among the candidate network ports.

[0012] In the above implementation, the first node device does not need to save the information of the network ports of other node devices except itself, and does not need to maintain a large number of path reachable pairs between network ports. The first node device only saves the path reachable information between its own network port and the device-level ports of other node devices. Therefore, the amount of data in the routing table saved on the node device is small, which can save storage space and save maintenance resources for path reachable pairs.

[0013] In one possible implementation, each of the plurality of network ports of the first node device has a port identifier; the routing table may include a bit table, wherein each row of the bit table corresponds to the port identifier of a network port, and each column corresponds to the device-level port identifier of a node device, or each row of the bit table corresponds to the device-level port identifier of a node device, and each column corresponds to the port identifier of a network port. Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

[0014] In the above implementation, the path reachability information between the network port and the device-level port of the node device is stored in a bit table, which can effectively reduce the amount of stored data and save storage space.

[0015] In one possible implementation, the routing table also includes a default bit table, and each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table; if the device-level port identifier of the target node device is not found in the routing table, the first node device can determine a candidate network port that is path reachable corresponding to the device-level port of the target node device based on the default bit table in the routing table.

[0016] In the above implementation, the device-level port identifier of the node device is omitted in the default bit table. The default bit table in the routing table can simultaneously record the path reachability information between a network port and the device-level ports of multiple node devices, further saving the storage space of the node device and further saving the computing resources consumed by the node device when selecting the target output port.

[0017] In a possible implementation, if there are multiple candidate network ports, the first node device may select at least one candidate network port from the multiple candidate network ports as the target egress port of the first message based on load information of the multiple candidate network ports.

[0018] In the above implementation, when there are multiple candidate network ports, a target egress port is selected from the multiple candidate network ports based on their load information, which is beneficial for achieving load balancing among the network ports.

[0019] In one possible implementation, after searching the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device, the first node device can control the frequency of sending messages to the target node device based on the congestion information of the candidate network port to reduce network congestion and improve data accessibility.

[0020] In one possible implementation, if the first message has multiple target egress ports and the length of the first message is greater than a set length, the first node device may split the first message into multiple messages and send the split multiple messages to the target node device through multiple target egress ports respectively.

[0021] In the above implementation, the first message can be sent through multiple target egress ports together, thereby achieving multi-path load sharing, effectively utilizing the bandwidth load of multiple network ports, further balancing the load of multiple network ports, and improving communication efficiency and communication performance.

[0022] In one possible implementation, the first message carries a device-level port identifier of a source node device and a device-level port identifier of a target node device; the device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device that forwards the first message; the device-level port identifier of the source node device is used to indicate the source node device that sent the first message to the target node device.

[0023] In one possible implementation, after sending the first message through the target egress port of the first message, the first node device may further receive a response message to the first message sent by the target node device. The response message is sent by the target node device through the message egress port of the response message, and the message egress port of the response message is determined by the target node device from multiple network ports included in the target node device based on the device-level port identifier of the source node device in the first message. The device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

[0024] In the above implementation method, the message carries the device-level port identifier of the source node device and the device-level port identifier of the target node device, rather than the port identifier of the network port. This can effectively utilize multiple network ports of the source node device that sends the message and the target node device that receives the message, thereby realizing a multi-path routing mechanism and multi-path communication.

[0025] In a second aspect, an embodiment of the present application provides a message transmission method, which can be applied to a serial bus communication system; the serial bus communication system includes multiple node devices, a first node device among the multiple node devices is used to send a first message to a target node device; the first node device and the target node device both include a device-level port and multiple network ports; the device-level port of the target node device and the multiple network ports of the target node device have a binding relationship; the method includes:

[0026] A first node device determines a device-level port identifier of a target node device of the first message; the first node device is any one of the multiple node devices;

[0027] The first node device determines, based on the device-level port identifier of the target node device, a target egress port of the first message from a plurality of network ports of the first node device, and sends the first message to the target node device through the target egress port; the target egress port of the first message is a network port that is reachable to the device-level port of the target node device; the first message carries the device-level port identifier of the source node device;

[0028] The target node device determines a message output port of a response message to the first message from a plurality of network ports included in the target node device based on the device-level port identifier of the source node device in the first message, and sends the response message through the message output port of the response message.

[0029] In a possible implementation, the first node device determines, based on the device-level port identifier of the target node device, a target egress port of the first message from a plurality of network ports included in the first node device, including:

[0030] The first node device searches a routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on the device-level port identifier of the target node device; the routing table stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system;

[0031] The first node device determines a target egress port of the first message from the candidate network ports.

[0032] In a possible implementation manner, each of the multiple network ports of the first node device has a port identifier;

[0033] The routing table includes a bit table, each row of the bit table corresponds to a port identifier of a network port, and each column corresponds to a device-level port identifier of a node device, or each row of the bit table corresponds to a device-level port identifier of a node device, and each column corresponds to a port identifier of a network port;

[0034] Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

[0035] In a possible implementation, the routing table further includes a default bit table, where each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table; the first node device searches the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on the identifier of the device-level port of the target node device, including:

[0036] If the first node device does not find the device-level port identifier of the target node device in the routing table, the first node device determines a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on a default bit table in the routing table.

[0037] In a possible implementation, the first node device determining a target egress port of the first message from the candidate network ports includes:

[0038] If there are multiple candidate network ports, the first node device selects at least one candidate network port from the multiple candidate network ports according to load information of the multiple candidate network ports as the target egress port of the first message.

[0039] In a possible implementation, the method may further include:

[0040] After searching the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device, the first node device controls the frequency of sending messages to the target node device according to congestion information of the candidate network port.

[0041] In a possible implementation, the first node device sending the first message to the target node device through the target egress port of the first message includes:

[0042] If the first message has multiple target egress ports and the length of the first message is greater than a set length, the first node device splits the first message into multiple messages and sends the multiple messages to the target node device through the multiple target egress ports respectively.

[0043] In a third aspect, an embodiment of the present application provides a message transmission apparatus, applied to a first node device; the first node device is one of multiple node devices included in a serial bus communication system; the first node device is used to send a first message to a target node device; the first node device and the target node device both include a device-level port and multiple network ports; the device-level port of the target node device and the multiple network ports of the target node device have a binding relationship; the apparatus includes:

[0044] a port determination unit, configured to determine a device-level port identifier of a target node device of a first message; and based on the device-level port identifier of the target node device, determine a target egress port of the first message from a plurality of network ports of the first node device; the target egress port of the first message being a network port that has a path reachable to the device-level port of the target node device;

[0045] A message sending unit is used to send the first message through a target egress port of the first message.

[0046] In a possible implementation, the port determination unit is specifically configured to:

[0047] Based on the device-level port identifier of the target node device, searching a routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device; the routing table stores information on reachable paths between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system;

[0048] A target egress port of the first message is determined from the candidate network ports.

[0049] In a possible implementation manner, each of the multiple network ports of the first node device has a port identifier;

[0050] The routing table includes a bit table, each row of the bit table corresponds to a port identifier of a network port, and each column corresponds to a device-level port identifier of a node device, or each row of the bit table corresponds to a device-level port identifier of a node device, and each column corresponds to a port identifier of a network port;

[0051] Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

[0052] In one possible implementation, the routing table further includes a default bit table, where each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table; and the port determination unit may specifically be used to:

[0053] If the device-level port identifier of the target node device is not found in the routing table, a candidate network port reachable by a path corresponding to the device-level port of the target node device is determined based on a default bitmap in the routing table.

[0054] In a possible implementation, the port determination unit may be specifically configured to:

[0055] If there are multiple candidate network ports, at least one candidate network port is selected from the multiple candidate network ports according to load information of the multiple candidate network ports as the target egress port of the first message.

[0056] In a possible implementation, the port determination unit may further be configured to:

[0057] After searching the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device, the frequency of sending messages to the target node device is controlled according to congestion information of the candidate network port.

[0058] In a possible implementation, the message sending unit may be specifically configured to:

[0059] If the target outbound port of the first message includes multiple ones and the length of the first message is greater than the set length, splitting the first message into multiple messages;

[0060] The multiple messages are sent to the target node device through the multiple target egress ports respectively.

[0061] In one possible implementation, the first message carries a device-level port identifier of a source node device and a device-level port identifier of the target node device; the device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device that forwards the first message; the device-level port identifier of the source node device is used to indicate the source node device that sends the first message to the target node device.

[0062] In a possible implementation, the message transmission device may further include a message receiving unit;

[0063] The message receiving unit is used to receive a response message to the first message sent by the target node device; the response message is sent by the target node device through the message output port of the response message, and the message output port of the response message is determined by the target node device from multiple network ports included in the target node device based on the device-level port identifier of the source node device in the first message; the device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

[0064] In a fourth aspect, an embodiment of the present application provides a node device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the processor implements any one of the methods provided in the first aspect.

[0065] In a fifth aspect, an embodiment of the present application provides a communication system, comprising a plurality of node devices, wherein the node devices adopt the node devices provided in the fourth aspect.

[0066] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any one of the methods provided in the first aspect above.

[0067] In a seventh aspect, an embodiment of the present application provides a computer program product comprising computer-executable instructions, which are used to enable a computer to execute any one of the methods provided in the first aspect above.

[0068] The technical effects that can be achieved in any of the second to seventh aspects can refer to the description of the beneficial effects in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] FIG1 is a schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0070] FIG2 is a schematic diagram of the structure of another communication system provided in an embodiment of the present application;

[0071] FIG3 is a schematic diagram of the structure of a node device provided in an embodiment of the present application;

[0072] FIG4 is an interactive flow chart of a message transmission method provided in an embodiment of the present application;

[0073] FIG5 is a schematic diagram of a header of a message provided in an embodiment of the present application;

[0074] FIG6 is a flow chart of a message transmission method provided in an embodiment of the present application;

[0075] FIG7 is a structural block diagram of a message transmission device provided in an embodiment of the present application;

[0076] FIG8 is a structural block diagram of another message transmission device provided in an embodiment of the present application;

[0077] FIG9 is a schematic structural diagram of another node device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The terms used in the implementation methods of this application are only used to explain the specific embodiments of the present application and are not intended to limit this application. Obviously, the embodiments described are only some embodiments of the present application, not all embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0079] Before introducing the specific solutions provided by the embodiments of the present application, some of the terms in the present application are explained to facilitate understanding by those skilled in the art, and the terms in the present application are not limited.

[0080] (1) Unified bus (UB) communication system: This system is also called a community local area network (Clan) communication network or a Clan domain network. It is a smaller-scale local area network. Node devices in a UB communication system can transmit messages directly or through switching devices.

[0081] (2) SERDES-based communication system: SERDES, short for serializer / deserializer, is a time-division multiplexing, point-to-point serial communication technology. In this communication system, multiple low-speed parallel signals are converted into high-speed serial signals at the transmitting end. These signals are then transmitted through a transmission medium (fiber optic cable or copper wire) to the receiving end, where they are converted back into low-speed parallel signals.

[0082] In the embodiments of the present application, "multiple" refers to two or more. In view of this, in the embodiments of the present application, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included. For example, including at least one of A, B and C, then the included ones may be A, B, C, A and B, A and C, B and C, or A, B and C. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previous and subsequent associated objects are in an "or" relationship.

[0083] Unless otherwise specified, ordinal numbers such as "first" and "second" in the embodiments of the present application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of multiple objects.

[0084] In order to improve communication performance, an embodiment of the present application provides a message transmission method, which can be applied to a serial bus communication system, such as a high-speed serial bus communication system, a UB communication system, a SERDES-based communication system, etc. The method can be executed by a node device in the communication system, and the node device can include multiple network ports. The node device is used to send a first message to a target node device, and the node device and the target node device both include a device-level port and multiple network ports. There is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device. The node device determines the device-level port identifier of the target node device of the first message, and based on the device-level port identifier of the target node device, determines the target egress port of the first message from the multiple network ports of the node device, and sends the first message through the target egress port of the first message, wherein the target egress port of the first message is a network port with a path reachable to the device-level port of the target node device. This process can achieve multi-path communication by having multiple network ports participate in the routing mechanism, balance the bandwidth load of multiple network ports, improve communication efficiency, and enhance communication performance.

[0085] The message transmission method provided in the embodiments of the present application can be applied to the communication system shown in Figure 1 or Figure 2. The communication system shown in Figure 1 or Figure 2 can be understood as a UB communication system, which can include multiple node devices, and the node devices can also be called end nodes. The communication system shown in Figure 1 or Figure 2 can also be understood as a server cluster, and the node devices in the communication system can be servers in the server cluster, or network cards or communication chips installed in the servers.

[0086] FIG1 exemplarily shows a node device 100 and a node device 600. The node device 100 and the node device 600 can be communicatively connected through multiple node devices. As shown in FIG1 , the node device 100 and the node device 600 are connected through the node device 200, the node device 300, the node device 400 and the node device 500, wherein the node device 200, the node device 300, the node device 400 and the node device 500 can be switches or switching devices (switches) for forwarding messages. In other embodiments, the node devices can be connected through more or fewer switches. FIG2 exemplarily shows three node devices, namely, the node device 700, the node device 800 and the node device 900. Different node devices are connected through a network, which can also be called an interconnect network.

[0087] FIG3 exemplarily illustrates a schematic diagram of the structure of a node device 100. The structure of any node device in a UB communication system can be as shown in FIG3 . Node device 100 includes multiple network ports, such as network port 110, network port 120, network port 130, and network port 140 shown in FIG3 . Multiple network ports serve the same node device. Node device 100 also includes a device-level port 150. Network port 110, network port 120, network port 130, and network port 140 are bound to device-level port 150. Different node devices in a UB communication system can be equipped with different numbers of network ports, and some node devices can be equipped with only one network port.

[0088] A node device can be understood as a network element in a UB communication system. It can be a physical machine, computer, server, or other electronic device. A node device can include virtual resource objects such as virtual machines and applications, and multiple network ports can collectively serve the same resource object. For example, a resource object can refer to a functional entity (FE), which is the smallest addressable network element in a UB communication system. For example, a node device can include multiple FEs. For example, a node device can include three functional components: FE0, FE1, and FE2, and two network ports: Port0 and Port1. Each functional component can be bound to both network ports: Port0 and Port1.

[0089] In the UB communication system, each node device has a device-level port, and the device-level port has a device-level port identifier. The device-level port identifier can be assigned by the UB fabric management (UFM) in the UB communication system to the device-level port of each node device connected to the UB communication system. The device-level port identifier is used to identify the network address of the device-level port of a node device in the communication system, which can also be called a clan network address (CNA). The CNA of the device-level port of each node device is unique within the UB communication system and is used for addressing when the switch forwards messages. As a node device, the switch in the UB communication system also has a unique device-level port identifier CNA. For example, if the node device is a FE, the entity identity (EID) can also be used as the device-level port identifier.

[0090] A node device can include one or more network ports, which can be called a clan network interface (CNI). Multiple network ports of a node device are bound to the device-level ports of the node device. Each network port has a port identifier, which can also be uniformly encoded by the UFM in the UB communication system. The port identifier of each network port is unique within the UB communication system and is used to identify the network address of the network port. The port identifier can also be called a port address.

[0091] If a node device has one network port, the port identifier of the network port may be the same as or different from the device-level port identifier of the node device. If a node device has multiple network ports, each network port has a different port identifier, and the port identifier of any network port is different from the device-level port identifier of the node device. Exemplarily, the device-level port identifier of the node device can be used as a first-level address code (primary CNA), and the port identifier of each network port of the node device can be used as a second-level address code (secondary CNA or secondary CNI). For example, for the node device 100 shown in Figure 3, the UFM assigns a device-level port identifier to the node device 100, and the device-level port identifier can be a first-level address code CNA0, which is used to identify the logical position of the node device 100 in the communication system. The UFM also assigns a port identifier to each network port of the node device 100, which is used to identify the logical position of each network port in the communication system. The port identifier of network port 110 may be CNI1, the port identifier of network port 120 may be CNI2, the port identifier of network port 130 may be CNI3, and the port identifier of network port 140 may be CNI4. CNI1, CNI2, CNI3, and CNI4 are second-level address codes. CNA0, CNI1, CNI2, CNI3, and CNI4 may all be 16-bit address codes.

[0092] In the UB communication system, a routing table is stored in each node device. During the message transmission process, the source node device that sends the message does not need to pay attention to the message input port of the target node device of the message, and the target node device can complete the message reception through any network port. The source node device that sends the message only needs to ensure the path reachability between the output port of the message sent on the source node device and the device-level port of the target node device. Similarly, the node device that forwards the message does not need to pay attention to the message input port of the target node device of the message. Therefore, each node device does not need to save the information of the network ports of other node devices except itself, as well as the path reachability information between network ports and network ports, but only needs to save the path reachability information between its own network port and the device-level ports of other node devices in the routing table.

[0093] Taking the first node device as an example, the routing table in the first node device stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the communication system. The first node device can be any node device in the communication system.

[0094] The routing table within the first node device may include a bit table. In some embodiments, the structure of the bit table may be as shown in Table 1, where each row of the bit table corresponds to a device-level port identifier of a node device in the communication system, and each column corresponds to a port identifier of a network port of the first node device. In other embodiments, each column of the bit table may correspond to a device-level port identifier of a node device in the communication system, and each row corresponds to a port identifier of a network port of the first node device. Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

[0095] Table 1

[0096] For example, assuming that the device-level port identifier of the device-level port of the first node device is pCNA0, the row identifiers of the routing table shown in Table 1 are marked with the device-level port identifiers of the device-level ports of multiple node devices in the UB communication system other than the first node device, such as pCNA1, pCNA2, pCNA3, pCNA4, and so on. The column identifiers of the routing table are marked with the port identifiers of the network ports of the first node device, used to identify the multiple network ports of the first node device. For example, the port identifiers are CNI0, CNI1, CNI2, CNI3, CNI4, CNI5, and so on. The first row of the routing table is used to record path reachability information between the multiple network ports of the first node device and the device-level port of the node device with the device-level port identifier pCNA1. The second row is used to record path reachability information between the multiple network ports of the first node device and the node device with the device-level port identifier pCNA2. Each cell stores a path reachability information, and each path reachability information occupies only one bit, where "0" indicates that the path between the corresponding network port and the corresponding node device is unreachable, and "1" indicates that the path between the corresponding network port and the device-level port of the corresponding node device is reachable. For example, the "0" in the first cell of the first row of the routing table indicates that the path between the network port CNI0 of the first node device and the device-level port of the node device with the device-level port identifier pCNA1 is unreachable, and the "1" in the second cell of the first row of the routing table indicates that the path between the network port CNI1 of the first node device and the device-level port of the node device with the device-level port identifier pCNA1 is reachable. It can be seen from the first row of the routing table that the network ports with a path reachable to the device-level port of the node device with the device-level port identifier pCNA1 include CNI1, CNI2, CNI5, etc., and it can be seen from the second row of the routing table that the network ports with a path reachable to the device-level port of the node device with the device-level port identifier pCNA2 include CNI1, CNI3, CNI5, etc.

[0097] The routing table may also include a default bit table, where each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table. For example, the "Default" in the last row of the routing table in FIG1 represents the default bit table, where a "0" in the default bit table indicates that the corresponding network port is in a disabled state, i.e., the corresponding network port is unavailable, and a "1" indicates that the corresponding network port is in an enabled state, i.e., the corresponding network port is available. When a network port is unavailable due to a fault or other reason, the corresponding default route in the default bit table is marked as "0". For example, the "0" in the first cell of the last row indicates that network port CNI0 is in a disabled state, and the path between network port CNI0 and the device-level port of the default node device is unreachable, where the default node device includes all node devices whose device-level port identifier is not displayed in the routing table. The "1" in the fourth cell of the last row indicates that network port CNI3 is in an enabled state, and the path between network port CNI3 and the device-level port of the default node device is reachable.

[0098] Because node devices in the UB communication system do not need to store information about the network ports of other node devices besides themselves, nor do they need to maintain a large number of path-reachable pairs between network ports. Instead, they only store path-reachable information between their own network ports and the device-level ports of other node devices. Therefore, the routing table data size stored on the node device is relatively small, saving storage space and resources for maintaining path-reachable pairs. Furthermore, the routing table can simultaneously record path-reachable information between a network port and the device-level ports of multiple node devices through a default bit table, further saving storage space.

[0099] In a UB communication system, when any source node (initial end node) sends a message to a target node (target end node) device, it can search the routing table stored in the source node device for the target egress port of the message based on the device-level port identifier of the target node device, and output the message through the target egress port.

[0100] In other embodiments, each bit in the bit table is also used to indicate the path reachability information between a network port of the first node device and a network port of another node device, that is, each column of the bit table corresponds to the port identifier of a network port of the first node device, and each row corresponds to the port identifier of a network port of another node device in the communication system.

[0101] In other embodiments, some bits in the bit table may be used to indicate path reachability information between a network port of the first node device and a device-level port of another node device, and other bits may be used to indicate path reachability information between a network port of the first node device and a network port of another node device. For example, as shown in Table 2, each column of the bit table corresponds to the port identifier of a network port of the first node device, the first row of the bit table corresponds to the device-level port identifier pCNA1 of a second node device in the communication system, the second row of the bit table corresponds to the port identifier CNI21 of a network port of a third node device in the communication system, and the third row of the bit table corresponds to the port identifier CNI22 of another network port of the third node device in the communication system. The "0" corresponding to the intersection of the first row and the first column indicates that the path between the network port of the first node device with the port identifier CNI0 and the device-level port of the second node device with the device-level port identifier pCNA1 is unreachable. The "1" at the intersection of the second row and the first column indicates that the path between the network port of the first node device with the port identifier CNI0 and the network port of the third node device with the port identifier CNI21 is reachable. The "0" at the intersection of the third row and the second column indicates that the path between the network port of the first node device with the port identifier CNI1 and the network port of the third node device with the port identifier CNI22 is unreachable. This application does not limit the specific format of the routing table.

[0102] Table 2

[0103] Figure 4 shows a flow chart of the interaction between the first node device and the target node device during the message transmission process. The following takes the first node device sending a message to the target node device as an example to illustrate the specific process of message transmission. As shown in Figure 4, the process may include the following steps:

[0104] S401: A first node device determines a device-level port identifier of a target node device of a first message.

[0105] In some embodiments, the first node device may be a source node device that sends the first message. The transport layer of the source node device may send the first message to the target node device based on a transmission request sent by the transaction layer of the source node device, wherein the transmission request may be a download or upload (load / store) operation request sent by the transaction layer to the transport layer, or a direct memory access (DMA) read / write operation request, etc.

[0106] The transport layer of the first node device receives a transmission request sent by the transaction layer of the first node device, and can determine the device-level port identifier of the target node device based on the target node indication (HILT) information carried in the transmission request. In some embodiments, the transmission request can carry the device-level port identifier of the target node device. In other embodiments, the first node device stores the device-level port identifiers of each node device connected to the first node device, and the HILT information carried in the transmission request can carry the target address information of the storage space for storing the device-level port identifier of the target node device. The transport layer of the first node device can obtain the device-level port identifier of the target node device from the storage space corresponding to the target address information based on the target address information carried in the HILT information.

[0107] In other embodiments, the first node device may be a switching device configured to forward the first message. For example, the first node device may receive the first message sent by the source node device of the first message and forward the first message to the destination node device. If the first node device is a switching device configured to forward the first message, the first node device may obtain the device-level port identifier of the destination node device from the first message.

[0108] S402: The first node device determines a target egress port of the first message from a plurality of network ports of the first node device based on the device-level port identifier of the target node device.

[0109] The target outbound port of the first message is a network port with a path reachable to the device-level port of the target node device. The first node device includes multiple network ports, each of which has a port identifier. The first node device stores a routing table, which may include path reachable information between multiple network ports of the first node device and device-level ports of node devices in the communication system, as shown in Table 1. The first node device may query the routing table based on the device-level port identifier of the target node device, search the routing table for a path reachable network port corresponding to the device-level port of the target node device, and use the path reachable network port corresponding to the device-level port of the target node device as a candidate network port.

[0110] For example, assuming that the device-level port identifier of the target node device is pCNA2, the first node device searches the routing table for network ports with path reachable to pCNA2, determines that the network ports with port identifiers CNI1, CNI3, and CNI5 have path reachable paths to the device-level port pCNA2 of the target node device, and selects the network ports with port identifiers CNI1, CNI3, and CNI5 as candidate network ports.

[0111] In some embodiments, if the first node device does not find the device-level port identifier of the target node device in the routing table, the default bit table in the routing table can be used to determine the candidate network ports that are reachable by the path to the device-level port of the target node device. The network port corresponding to the identifier "1" in the default bit table is reachable by the path to the device-level ports of all node devices whose device-level port identifiers are not displayed in the routing table. For example, assuming that the device-level port identifier of the target node device is pCNA10, and the routing table shown in Table 1 does not contain this device-level port identifier, in this case, the default bit table in the last row of the routing table can be used to determine the candidate network ports that are reachable by the path to pCNA10. It can be concluded from Table 1 that the candidate network ports that are reachable by the path to pCNA10 include network ports with port identifiers CNI3 and CNI5.

[0112] After determining the candidate network ports, the first node device may determine a target egress port for the first message from the candidate network ports. In some embodiments, if the candidate network port determined from the multiple network ports includes only one, the first node device may use the candidate network port as the target egress port for the first message. In other embodiments, if the candidate network ports determined from the multiple network ports include multiple, the first node device may select at least one candidate network port from the multiple candidate network ports based on load information of the multiple candidate network ports as the target egress port for the first message. For example, in one embodiment, the first node device may select a candidate network port with the smallest load from the multiple candidate network ports based on a load balancing policy as the target egress port for the first message. For example, assuming that, among the three candidate network ports with port identifiers CNI1, CNI3, and CNI5, the load of the candidate network port with port identifier CNI5 is less than the load of the candidate network ports with port identifiers CNI1 and CNI3, the candidate network port with port identifier CNI5 may be used as the target egress port for the first message. In another embodiment, the first node device may, based on a load balancing policy, select one or more candidate network ports from a plurality of candidate network ports whose loads are less than or equal to a set load threshold as the target egress ports for the first message. For example, assuming that the loads of the three candidate network ports identified as CNI1, CNI3, and CNI5 are all less than or equal to the set load threshold, the three candidate network ports identified as CNI1, CNI3, and CNI5 may all be selected as the target egress ports for the first message. In another embodiment, the first node device may, based on the load information of the plurality of candidate network ports, sort the plurality of candidate network ports from smallest to largest load and select a set number or a set proportion of the plurality of candidate network ports ranked first as the target egress ports for the first message. For example, assuming that the set number is 2, and the three candidate network ports identified as CNI1, CNI3, and CNI5 are sorted from smallest to largest load in the order of CNI5, CNI1, and CNI3, the two candidate network ports ranked first, namely, the candidate network ports identified as CNI5 and CNI1, may be selected as the target egress ports for the first message.

[0113] In an optional embodiment, after determining the candidate network port, the first node device may further control the frequency of sending messages to the target node device according to congestion information of the candidate network port to reduce network congestion.

[0114] S403: The first node device sends a first message to the target node device.

[0115] The first node device sends a first message to the target node device through the target egress port of the first message. The first message carries the device-level port identifier (src_pCNA, SCNA) of the source node device and the device-level port identifier (dst_pCNA, DCNA) of the target node device. The device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device forwarding the first message, and the device-level port identifier of the source node device is used to indicate the source node device that sent the first message to the target node device. For example, as shown in FIG5 , the device-level port identifier SCNA of the source node device and the device-level port identifier DCNA of the target node device can be encapsulated in the header of the first message. SCNA can occupy two bytes in the first message, and DCNA can also occupy two bytes in the first message, each byte including 8 bits (bits) from 0 to 7.

[0116] The message uses the device-level port identifier of the source node device and the device-level port identifier of the target node device instead of the port identifier of the network port. This can effectively utilize multiple network ports of the source node device that sends the message and the target node device that receives the message, thereby realizing a multi-path routing mechanism and multi-path communication.

[0117] In some embodiments, the first node device may be a source node device that sends a first message, and the device-level port identifier of the source node device in the first message may be the device-level port identifier of the first node device. The first node device may directly send the first message to the target node device via the target egress port of the first message, or may send the first message to a switching device via the target egress port of the first message, and the switching device may forward the first message to the target node device. The switching device may select a target egress port from multiple network ports included in the switching device based on the device-level port identifier of the target node device carried in the first message to forward the message.

[0118] In other embodiments, the first node device may be a switching device that forwards the first message. The first node device may directly forward the first message to the target node device through the target egress port of the first message determined by the above process, or may forward the first message to another switching device through the target egress port of the first message determined by the above process, and the other switching device may forward the first message to the target node device.

[0119] In order to more effectively utilize the bandwidth of multiple network ports and further balance the bandwidth load between the various network ports, in some embodiments, if the target egress port of the first message includes multiple ones and the length of the first message is greater than a set length, the first node device can split the first message into multiple messages and send the multiple messages to the target node device through multiple target egress ports. The set length can be the length of a data packet transmitted on the message transmission link. For example, in one embodiment, if the target egress port of the first message includes three network ports, the first message can be split into three messages, and the three messages are sent through three target egress ports respectively, with each target egress port being used to send one message.

[0120] The above method can send the first message through multiple target egress ports together, thereby achieving multi-path load sharing and further achieving load balancing of multiple network ports.

[0121] S404: The target node device determines, according to the device-level port identifier of the source node device in the first message, a message egress port of a response message to the first message from multiple network ports of the target node device.

[0122] The target node device can receive the first message through any network port of the target node device and obtain the device-level port identifier of the source node device in the first message, and determine the message output port of the response message of the first message from multiple network ports of the target node device based on the device-level port identifier of the source node device in the first message.

[0123] The process of the target node device determining the message egress port of the response message to the first message from multiple network ports is the same as the process of the first node device determining the target egress port of the first message in step S402, and is not repeated here.

[0124] S405: The target node device sends a response message to the first node device.

[0125] The target node device may send a response message of the first message to the first node device through the message output port of the response message. In some embodiments, if the first node device is the source node device of the first message, the target node device may directly send the response message of the first message to the first node device through the message output port of the response message, or may send the response message of the first message to the switching device through the message output port of the response message, and the switching device may forward the response message of the first message to the first node device. In some embodiments, if the first node device is a switching device that forwards the first message, the target node device may send the response message of the first message to the first node device through the message output port of the response message, and the first node device may forward the response message of the first message to the source node device of the first message.

[0126] The message transmission method provided in the embodiment of the present application can be applied to a UB communication system, and the UB communication system may include multiple node devices, wherein some or all of the node devices may have multiple network ports, each node device has a device-level port identifier, and each network port includes a port identifier. A routing table is stored in each node device, and the routing table stores path reachability information between multiple network ports of the node device and device-level ports of other node devices other than the node device in the communication system. When the first node device sends a message, the transport layer can query the routing table according to the device-level port identifier of the target node device of the message, select the target output port of the message from the multiple network ports of the first node device, and send the message through the target output port of the message. By having multiple network ports participate in the routing mechanism, multi-path communication can be achieved. In addition, when selecting the target output port, the transport layer can adopt a load balancing strategy to achieve load balancing.

[0127] In the embodiments of the present application, each node device does not need to store information about the network ports of other node devices other than its own, nor does it need to store information about the paths between network ports. Instead, it only needs to store information about the paths between its own network ports and the device-level ports of other node devices in its routing table. As a result, the amount of data stored in the routing table on the node device is relatively small, saving storage space. Furthermore, when selecting a target egress port from multiple network ports, the node device needs to traverse less data, saving computing resources on the node device.

[0128] Based on the same technical concept as the above-mentioned embodiment, the embodiment of the present application provides a message transmission method. This method can be applied to a first node device in a communication system. The first node device can be any node device in the communication system, and the first node device includes multiple network ports. For example, the first node device can be the node device 100 shown in Figure 3. Figure 6 shows a flowchart of a message transmission method provided by the embodiment of the present application. As shown in Figure 6, the method can include the following steps:

[0129] S601: A first node device determines a device-level port identifier of a target node device of a first message.

[0130] The first node device may be a source node device that sends the first message, or the first node device may be a switching device used to forward the first message.

[0131] S602: The first node device determines a target egress port of the first message from a plurality of network ports included in the first node device based on a device-level port identifier of the target node device.

[0132] The target egress port of the first message is a network port that is reachable to the device-level port of the target node device.

[0133] In some embodiments, each of the multiple network ports of the first node device has a port identifier. The first node device stores a routing table that stores information about reachable paths between the multiple network ports of the first node device and device-level ports of multiple node devices in the communication system. The first node device can search the routing table for candidate network ports that are reachable paths corresponding to the device-level port of the target node device based on the device-level port identifier of the target node device, and determine a target egress port for the first message from the candidate network ports.

[0134] Illustratively, if there are multiple candidate network ports, the first node device may select at least one candidate network port from the multiple candidate network ports as the target egress port of the first message based on load information of the multiple candidate network ports.

[0135] In some embodiments, if the device-level port identifier of the target node device is not found in the routing table, the first node device may determine a candidate network port that is path-reachable to the device-level port of the target node device based on a default bitmap in the routing table. The default bitmap is used to indicate path-reachable information between multiple network ports of the first node device and device-level ports of node devices whose device-level port identifiers are not included in the routing table.

[0136] S603: The first node device sends the first message through the target egress port of the first message.

[0137] In some embodiments, if the first message has multiple target egress ports and the length of the first message is greater than a set length, the first node device may split the first message into multiple messages and send the split multiple messages to the target node device through multiple target egress ports respectively.

[0138] The first message carries the device-level port identifier of the source node device and the device-level port identifier of the target node device; the device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device that forwards the first message; the device-level port identifier of the source node device is used to indicate the source node device that sends the first message to the target node device.

[0139] In some embodiments, after the first node device sends the first message through the target egress port of the first message, it may also receive a response message to the first message sent by the target node device. The response message is sent by the target node device through the message egress port of the response message, and the message egress port of the response message is determined by the target node device from multiple network ports included in the target node device based on the device-level port identifier of the source node device in the first message; the device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

[0140] The message transmission method provided in the embodiment of the present application, when sending a first message, the first node device can determine the device-level port identifier of the target node device of the first message, and based on the device-level port identifier of the target node device, determine the target output port of the first message from multiple network ports. The above process can realize multi-path communication by having multiple network ports participate in the routing mechanism, balance the bandwidth load of multiple network ports, improve communication efficiency, and enhance communication performance.

[0141] Based on the same technical concept as the above embodiment, this embodiment of the present application also provides a message transmission device. This message transmission device can be applied to a first node device in a communication system. The first node device can be any node device in the communication system. The message transmission device can be used to implement the functions of the method embodiment shown in Figure 6, thereby achieving the beneficial effects of the above method embodiment.

[0142] As shown in Figure 7, the message transmission device 700 may include a port determination unit 701 and a message sending unit 702. When the message transmission device 700 is used to implement the functions of the method embodiment shown in Figure 6: the port determination unit 701 can be used to execute S601 and S602, and the message sending unit 702 can be used to execute S603. For example: the port determination unit 701 is used to determine the device-level port identifier of the target node device of the first message, and based on the device-level port identifier of the target node device, determine the target egress port of the first message from the multiple network ports; the target egress port of the first message is a network port with a path reachable to the device-level port of the target node device; the message sending unit 702 is used to send the first message through the target egress port of the first message. Among them, the port determination unit 701 and the message sending unit 702 can both be implemented by software, or can be implemented by hardware.

[0143] In some embodiments, as shown in FIG8 , the message transmission apparatus 700 may further include a message receiving unit 801. The message receiving unit 801 is configured to receive a response message to the first message sent by a target node device; the response message is sent by the target node device through the message egress port of the response message, the message egress port of the response message is determined by the target node device from a plurality of network ports included in the target node device based on the device-level port identifier of the source node device in the first message; the device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

[0144] It should be noted that, in other embodiments, the port determination unit 701, the message sending unit 702 and the message receiving unit 801 can be used to execute any step in the message transmission method. The steps that the port determination unit 701, the message sending unit 702 and the message receiving unit 801 are responsible for implementing can be specified as needed. The full functions of the message transmission device are realized by respectively implementing different steps in the message transmission method through the port determination unit 701, the message sending unit 702 and the message receiving unit 801.

[0145] Based on the same technical concept as the above-described method embodiment, the present application also provides a node device in an embodiment. This node device can be any node device in a communication system, and can be an end node device or a switching device. This node device can be the above-described first node device and can be used to implement the functions of the method embodiment shown in Figure 6, thereby achieving the beneficial effects of the above-described method embodiment.

[0146] In some embodiments, the structure of the node device 900 may be as shown in Figure 9, including a processor 901, a memory 902 connected to the processor 901, and a communication module 903. The communication module 903 may include a device-level port and multiple network ports, and the device-level port and the multiple network ports have a binding relationship. The processor 901 and the memory 902, as well as the communication module 903, may be interconnected via a bus. The communication module 903 is used to transmit messages with other node devices in the communication system.

[0147] The processor 901 can serve as the main processor of the node device 900, that is, the control core of the node device 900. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The specific connection medium between the processor 901 and the memory 902, as well as the communication module, is not limited in the embodiments of the present application.

[0148] The memory 902 may be a volatile memory, such as a random access memory (RAM); a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 902 may be a combination of the aforementioned memories. The memory 902 may be used to store software programs and modules.

[0149] The processor 901 may include one or more processors. The processor 901 executes various functional applications and data processing of the node device 900 by running software programs and modules stored in the memory 902, such as the message transmission method provided in the embodiment of the present application, which selects the target output port of the message from multiple network ports.

[0150] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the transmitting device. In other embodiments of the present application, the transmitting device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0151] An embodiment of the present application also provides a communication system. The communication system may include multiple node devices, and the structural diagram of the communication system may be as shown in Figure 1 or Figure 2. Each node device in the communication system has a device-level port and multiple network ports, the device-level port has a device-level port identifier, and each network port has a port identifier. In some embodiments, a first node device in the communication system determines the device-level port identifier of a target node device of a first message, determines the target egress port of the first message from the multiple network ports of the first node device based on the device-level port identifier of the target node device, and sends the first message through the target egress port of the first message, wherein the target egress port of the first message is a network port with a path reachable to the device-level port of the target node device. After receiving the first message, the target node device determines the message egress port of a response message to the first message from the multiple network ports contained in the target node device based on the device-level port identifier of the source node device in the first message, and sends the response message through the message egress port of the response message. The above process selects the target egress port from multiple network ports based on the device-level port identifier of the node device. By having multiple network ports participate in the routing mechanism, multi-path communication can be achieved, the bandwidth load of multiple network ports can be balanced, and communication efficiency and performance can be improved.

[0152] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing a computer program or instruction. The computer program or instruction can constitute a computer program product.

[0153] The present application also provides a computer program product including computer-executable instructions. In one embodiment, the computer-executable instructions are used to enable a computer to perform the functions of the method embodiment shown in FIG6 .

[0154] Computer-executable instructions can be stored in a computer-readable storage medium. The present application also provides a computer-readable storage medium having executable instructions stored therein. In one embodiment, the computer-executable instructions are used to cause a computer to perform the functions of the method embodiment shown in FIG6 .

[0155] The computer-readable storage medium provided in the embodiments of the present application may be a random access memory (RAM), a flash memory, a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of computer-readable storage medium known in the art.

[0156] Computer-executable instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium such as a floppy disk, hard disk, or magnetic tape; an optical medium such as a digital video disc (DVD); or a semiconductor medium such as a solid-state drive.

[0157] In the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0158] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations thereof may be made without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are intended to be illustrative only of the solutions defined by the appended claims and are to be construed as covering any and all modifications, variations, combinations or equivalents within the scope of the present application.

[0159] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A message transmission method, characterized in that: Applied to a first node device; the first node device is a node device among a plurality of node devices included in a serial bus communication system; the first node device is used to send a first message to a target node device; The first node device and the target node device both include a device-level port and a plurality of network ports; There is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device; the method comprises: Determine a device-level port identifier of a target node device of the first message; Based on the device-level port identifier of the target node device, determine the target egress port of the first message from multiple network ports of the first node device; the target egress port of the first message is a network port that is path-reachable to the device-level port of the target node device; The first message is sent through a target egress port of the first message.

2. The method according to claim 1, characterized in that The determining, based on the device-level port identifier of the target node device, a target egress port of the first message from a plurality of network ports of the first node device comprises: Based on the device-level port identifier of the target node device, searching in a routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device; the routing table stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system; A target egress port of the first message is determined from the candidate network ports.

3. The method according to claim 2, characterized in that Each of the plurality of network ports of the first node device has a port identifier; The routing table includes a bit table, each row of the bit table corresponds to a port identifier of a network port, and each column corresponds to a device-level port identifier of a node device, or each row of the bit table corresponds to a device-level port identifier of a node device, and each column corresponds to a port identifier of a network port; Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

4. The method according to claim 3, characterized in that The routing table also includes a default bit table, each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table; The searching, in a routing table, for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on the device-level port identifier of the target node device includes: If the device-level port identifier of the target node device is not found in the routing table, a candidate network port reachable by a path corresponding to the device-level port of the target node device is determined based on a default bit table in the routing table.

5. The method according to any one of claims 2 to 4, characterized in that: The determining a target egress port of the first message from the candidate network ports includes: If the candidate network ports include multiple ones, at least one candidate network port is selected from the multiple candidate network ports according to load information of the multiple candidate network ports as the target egress port of the first message.

6. The method according to any one of claims 2 to 5, characterized in that: After searching the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device, the method further includes: According to the congestion information of the candidate network port, the frequency of sending messages to the target node device is controlled.

7. The method according to any one of claims 1 to 6, characterized in that: The sending the first message through the target egress port of the first message includes: If the target egress port of the first message includes multiple ones, and the length of the first message is greater than the set length, splitting the first message into multiple messages; The multiple messages are sent to the target node device through the multiple target egress ports respectively.

8. The method according to any one of claims 1 to 7, characterized in that: The first message carries the device-level port identifier of the source node device and the device-level port identifier of the target node device; the device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device that forwards the first message; the device-level port identifier of the source node device is used to indicate the source node device that sends the first message to the target node device.

9. The method according to claim 8, characterized in that After sending the first message through the target egress port of the first message, the method further includes: Receive a response message to the first message sent by the target node device; the response message is sent by the target node device through the message output port of the response message, and the message output port of the response message is determined by the target node device from multiple network ports of the target node device based on the device-level port identifier of the source node device in the first message; the device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

10. A message transmission method, characterized in that: Applied to a serial bus communication system; the serial bus communication system includes a plurality of node devices, and a first node device among the plurality of node devices is used to send a first message to a target node device; The first node device and the target node device both include a device-level port and a plurality of network ports; There is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device; the method comprises: The first node device determines a device-level port identifier of a target node device of the first message; The first node device determines a target egress port of the first message from a plurality of network ports of the first node device based on the device-level port identifier of the target node device, and sends the first message to the target node device through the target egress port; the target egress port of the first message is a network port with a path reachable to the device-level port of the target node device; the first message carries the device-level port identifier of the source node device; After the target node device receives the first message, it determines the message egress port of the response message of the first message from the multiple network ports of the target node device based on the device-level port identifier of the source node device in the first message, and sends the response message through the message egress port of the response message.

11. The method according to claim 10, characterized in that The first node device determines, based on the device-level port identifier of the target node device, a target egress port of the first message from a plurality of network ports of the first node device, including: The first node device searches the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on the device-level port identifier of the target node device; the routing table stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system; The first node device determines a target egress port of the first message from the candidate network ports.

12. The method according to claim 11, characterized in that Each of the plurality of network ports of the first node device has a port identifier; The routing table includes a bit table, each row of the bit table corresponds to a port identifier of a network port, and each column corresponds to a device-level port identifier of a node device, or each row of the bit table corresponds to a device-level port identifier of a node device, and each column corresponds to a port identifier of a network port; Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

13. The method according to claim 12, characterized in that The routing table also includes a default bit table, each bit in the default bit table is used to indicate path reachability information between a network port of the first node device and a device-level port of a node device whose device-level port identifier is not included in the routing table; The first node device searches the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device based on the identifier of the device-level port of the target node device, including: If the first node device does not find the device-level port identifier of the target node device in the routing table, the first node device determines a path-reachable candidate network port corresponding to the device-level port of the target node device based on a default bit table in the routing table.

14. The method according to any one of claims 11 to 13, characterized in that: The first node device determines a target egress port of the first message from the candidate network ports, including: If the candidate network ports include multiple ones, the first node device selects at least one candidate network port from the multiple candidate network ports as the target egress port of the first message according to load information of the multiple candidate network ports.

15. The method according to any one of claims 11 to 14, characterized in that: The method further comprises: After the first node device searches the routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device, the first node device controls the frequency of sending messages to the target node device according to congestion information of the candidate network port.

16. The method according to any one of claims 10 to 15, characterized in that: The first node device sending the first message to the target node device through the target egress port of the first message includes: If the first message has multiple target egress ports and the length of the first message is greater than a set length, the first node device splits the first message into multiple messages and sends the multiple messages to the target node device through the multiple target egress ports respectively.

17. A message transmission device, characterized in that: Applied to a first node device; the first node device is a node device among a plurality of node devices included in a serial bus communication system; the first node device is used to send a first message to a target node device; The first node device and the target node device both include a device-level port and a plurality of network ports; There is a binding relationship between the device-level port of the target node device and the multiple network ports of the target node device; the device comprises: a port determination unit, configured to determine a device-level port identifier of a target node device of a first message; based on the device-level port identifier of the target node device, determine a target egress port of the first message from a plurality of network ports of the first node device; the target egress port of the first message being a network port that is path-reachable to the device-level port of the target node device; A message sending unit is used to send the first message through a target egress port of the first message.

18. The device according to claim 17, characterized in that The port determination unit is specifically used for: Based on the device-level port identifier of the target node device, searching in a routing table for a candidate network port that is reachable by a path corresponding to the device-level port of the target node device; the routing table stores path reachability information between multiple network ports of the first node device and device-level ports of multiple node devices in the serial bus communication system; A target egress port of the first message is determined from the candidate network ports.

19. The device according to claim 18, characterized in that Each of the plurality of network ports of the first node device has a port identifier; The routing table includes a bit table, each row of the bit table corresponds to a port identifier of a network port, and each column corresponds to a device-level port identifier of a node device, or each row of the bit table corresponds to a device-level port identifier of a node device, and each column corresponds to a port identifier of a network port; Each bit in the bit table is used to indicate path reachability information between a network port and a device-level port of a node device.

20. The device according to claim 18 or 19, characterized in that The port determination unit is specifically used for: If the candidate network ports include multiple ones, at least one candidate network port is selected from the multiple candidate network ports according to load information of the multiple candidate network ports as the target egress port of the first message.

21. The device according to any one of claims 17 to 20, characterized in that The first message carries the device-level port identifier of the source node device and the device-level port identifier of the target node device; the device-level port identifier of the target node device is used to indicate the target node device of the first message to the node device that forwards the first message; the device-level port identifier of the source node device is used to indicate the source node device that sends the first message to the target node device.

22. The device according to claim 21, characterized in that The device also includes a message receiving unit; The message receiving unit is used to receive a response message to the first message sent by the target node device; the response message is sent by the target node device through the message output port of the response message, and the message output port of the response message is the target node device. The device is determined from multiple network ports included in the target node device based on the device-level port identifier of the source node device in the first message; the device-level port identifier of the target node device carried in the response message is the device-level port identifier of the source node device in the first message.

23. A node device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 9.

24. A communication system, characterized in that: It comprises a plurality of node devices, wherein the node devices adopt the node devices described in claim 23.

25. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to make a computer execute the method according to any one of claims 1 to 9.

26. A computer program product, characterized in that The method comprises computer executable instructions, wherein the computer executable instructions are used to make a computer execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Communication method, device and system of one-way serial bus network

    CN105959216A

  • Intelligent Dropping of Packets in a Network Visibility Fabric

    US20180091427A1

  • Tool port throttling at a network visibility node

    US20190140957A1

  • Transmission method and system for peer-to-peer network

    WO2022166590A1

  • Message publishing method and apparatus, and forwarding path processing method and apparatus

    WO2022257854A1