Transmission method and device, electronic equipment, storage medium and program product

By judging the service type of the packet on the source device and configuring flag bits, deciding whether to sort and forward, the link load imbalance and delay-sensitive service problems in traditional Ethernet are solved, and more efficient data transmission and user experience improvement are achieved .

CN119135612AActive Publication Date: 2024-12-13CHINA MOBILE COMM LTD RES INST +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411297592.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-13
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

When traditional Ethernet processes a small amount of data flow, the hashing algorithm causes unbalanced link load, resulting in the physical bandwidth resources not being fully utilized and unable to cope with burst traffic demands. The message-based distribution scheme is not conducive to delay-sensitive services. Impact user experience.

Method used

By determining whether the source device is a target service when it receives a message, configuring a preset flag bit, and determining whether to sort and forward based on the flag bit, ensuring that the target service message is forwarded directly and avoiding unnecessary sorting.

Benefits of technology

Improve service execution efficiency, make full use of network bandwidth, reduce latency, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135612A_ABST
    Figure CN119135612A_ABST
Patent Text Reader

Abstract

The invention provides a transmission method and device, electronic equipment, a storage medium and a program product, and is applied to the technical field of communication, and the method comprises the steps: judging whether a first service corresponding to a first message is a target service or not according to the message information of the first message under the condition that the first message is received; configuring a preset flag bit for the first message according to a judgment result; and transmitting the first message configured with the preset flag bit to target equipment. In the method, a source device configures a preset flag bit for a first message according to whether a first service corresponding to the first message is a target service, so that a subsequent target device can determine whether to sort the first message according to the preset flag bit of the first message. Therefore, the message bearing the target service can be directly forwarded without sorting, and the service execution efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a transmission method, device, electronic device, storage medium and program product. Background Art

[0002] In artificial intelligence (AI) training, the number of data flows is small, but the data transmission rate of each flow is very high. Traditional Ethernet uses a flow-based load sharing strategy to distribute different flows to different links through a hash algorithm. However, since the hash algorithm may concentrate on certain links when the number of flows is small, some links may be overloaded or even congested, while other links are relatively idle. Due to the imbalance of link loads, the physical bandwidth resources of the overall network cannot be fully utilized, resulting in the situation where the effective bandwidth is lower than the physical bandwidth, and it is impossible to cope with sudden traffic demands.

[0003] Message-based distribution is a traditional solution to uneven flow distribution. For example, based on the standard ECMP (Equal-Cost Multi-Path Routing), the UDP source port number of the service message is modified to achieve the message-level distribution effect. After all messages reach the final device, they are reordered to ensure the correct order of data messages. However, in this solution, since all messages need to be reordered, the lowest delay will not be achieved for those messages carrying special services (such as delay-sensitive services), which will reduce the efficiency of business execution and affect the user experience. Summary of the invention

[0004] The embodiments of the present application provide a transmission method, device, electronic device, storage medium and program product to solve the problem of low business execution efficiency in existing transmission methods.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a transmission method, which is performed by a source device, and the method includes:

[0007] When a first message is received, determining whether a first service corresponding to the first message is a target service according to message information of the first message;

[0008] According to the judgment result, configuring a preset flag bit for the first message;

[0009] The first message after the preset flag bit is configured is transmitted to the destination device.

[0010] Optionally, before determining, according to the message information of the first message, whether the first service corresponding to the first message is a target service, the method further includes:

[0011] Receiving preset information sent by a global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0012] The transmitting the first message after configuring the preset flag bit to the destination device includes:

[0013] Determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0014] According to the message information and the multiple queue identification information corresponding to each downstream port, the target forwarding queue of the target downstream port is determined, the first message is added to the target forwarding queue, and the first message in the target forwarding queue is transmitted to the destination device, wherein the first message carries the target forwarding device identification information, the target downstream port identification information and the target forwarding queue identification information.

[0015] Optionally, before adding the first message to the target forwarding queue, the method further includes:

[0016] Allocating a message container number to the first message;

[0017] Encapsulating the first message in a first message container corresponding to the message container number;

[0018] The adding the first message to the target forwarding queue includes:

[0019] The encapsulated first message is added to the target forwarding queue.

[0020] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0021] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0022] Optionally, after allocating a message container number to the first message, the method further includes:

[0023] When the first length is greater than the preset message container length, setting the end flag position of the first message container to a second value to indicate that the first message is an end message of the first message container, wherein the first length is determined based on the length of the forwarded message in the first message container, the length of the first message, and the maximum transmission unit MTU information;

[0024] In the case that the first length is smaller than the preset message container length, the end flag position of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container.

[0025] In a second aspect, an embodiment of the present application provides a transmission method, which is performed by a destination device, and the method includes:

[0026] A first message transmitted by a source device and configured with a preset flag bit is received, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0027] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0028] After receiving the first message transmitted by the source device and configured with a preset flag bit, the method further includes:

[0029] A target forwarding queue corresponding to the first message is determined according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0030] Optionally, the first message is encapsulated in a first message container, and the determining a target forwarding queue corresponding to the first message includes:

[0031] A target forwarding queue corresponding to the encapsulated first message is determined.

[0032] Optionally, after determining the target forwarding queue corresponding to the encapsulated first message, the method further includes:

[0033] The first message is transmitted to a destination server according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message.

[0034] Optionally, the transmitting the first message according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message, includes at least one of the following:

[0035] In a case where a preset flag bit of the first message is set to a first value and an end flag bit of the first message container is set to a second value, after storing the source device identification information, the message container number of the first message container and the end information of the first message container in the sorting module, the first message is transmitted to the destination server, the preset flag bit of the first message is set to a first value to indicate that a first service corresponding to the first message is a target service, and the end flag bit of the first message container is set to a second value to indicate that the first message is a termination message of the first message container;

[0036] When the preset flag bit of the first message is set to the first value and the flag bit of the first message container is set to the first value, the first message is transmitted to the destination server, the end flag bit of the first message container is set to the first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0037] In a case where the preset flag bit of the first message is set to the second value, the first message is sorted by the sorting module based on the source device identification information, the message container number of the first message container, and the message information of other messages in the target forwarding queue except the first message, and then the first message is transmitted to the destination server, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0038] In a third aspect, an embodiment of the present application further provides a transmission device, applied to a source device, the device comprising:

[0039] A first judgment module is used to judge whether a first service corresponding to the first message is a target service according to message information of the first message when the first message is received;

[0040] A first configuration module, configured to configure a preset flag bit for the first message according to a judgment result;

[0041] The first transmission module is used to transmit the first message after the preset flag bit is configured to the destination device.

[0042] Optionally, the device further comprises:

[0043] A second receiving module is used to receive preset information sent by the global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0044] The first transmission module includes:

[0045] A first determining unit, configured to determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0046] A first processing unit is used to determine a target forwarding queue of the target downlink port according to the message information and multiple queue identification information corresponding to each downlink port, add the first message to the target forwarding queue, and transmit the first message in the target forwarding queue to the destination device, wherein the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information.

[0047] Optionally, the device further comprises:

[0048] A first allocation module, configured to allocate a message container number to the first message;

[0049] A first encapsulation module, used for encapsulating the first message in a first message container corresponding to the message container number;

[0050] The first processing unit is specifically configured to:

[0051] The encapsulated first message is added to the target forwarding queue.

[0052] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0053] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0054] Optionally, the device further comprises:

[0055] a second configuration module, configured to, when a first length is greater than a preset message container length, set an end flag position of the first message container to a second value to indicate that the first message is a termination message of the first message container, wherein the first length is determined based on a length of a forwarded message in the first message container, a length of the first message, and maximum transmission unit MTU information;

[0056] The third configuration module is used to set the end mark position of the first message container to a first value to indicate that the first message is a non-terminal message of the first message container when the first length is smaller than the preset message container length.

[0057] In a fourth aspect, an embodiment of the present application further provides a transmission device, applied to a destination device, the device comprising:

[0058] The first receiving module is used to receive a first message transmitted by a source device and configured with a preset flag bit, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0059] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0060] The device also includes:

[0061] The first determination module is used to determine a target forwarding queue corresponding to the first message according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0062] Optionally, the first message is encapsulated in a first message container, and the first determining module includes:

[0063] The first determining unit is used to determine a target forwarding queue corresponding to the encapsulated first message.

[0064] Optionally, the device further comprises:

[0065] The second transmission module is used to transmit the first message to the destination server according to the preset flag of the first message, the end flag of the first message container and the message information of other messages in the target forwarding queue except the first message.

[0066] Optionally, the second transmission module includes at least one of the following:

[0067] a first storage unit, configured to, after storing the source device identification information, the message container number of the first message container, and the end information of the first message container in the sorting module, transmit the first message to the destination server when the preset flag bit of the first message is set to the first value and the end flag bit of the first message container is set to the second value, the preset flag bit of the first message is set to the first value to indicate that the first service corresponding to the first message is the target service, and the end flag bit of the first message container is set to the second value to indicate that the first message is the end message of the first message container;

[0068] a first transmission unit, configured to transmit the first message to the destination server when a preset flag bit of the first message is set to the first value and a flag bit of the first message container is set to the first value, an end flag bit of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0069] A second transmission unit is used to transmit the first message to the destination server after sorting the first message by the sorting module based on the source device identification information, the message container number of the first message container and the message information of other messages in the target forwarding queue except the first message, when the preset flag bit of the first message is set to the second value, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0070] In a fifth aspect, an embodiment of the present application provides an electronic device, including a transceiver and a processor, wherein the processor is configured to:

[0071] When a first message is received, determining whether a first service corresponding to the first message is a target service according to message information of the first message;

[0072] According to the judgment result, configuring a preset flag bit for the first message;

[0073] The transceiver is used for:

[0074] The first message after the preset flag bit is configured is transmitted to the destination device.

[0075] Optionally, the processor is further configured to:

[0076] Receiving preset information sent by a global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0077] The transceiver is specifically used for:

[0078] Determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0079] According to the message information and the multiple queue identification information corresponding to each downstream port, the target forwarding queue of the target downstream port is determined, the first message is added to the target forwarding queue, and the first message in the target forwarding queue is transmitted to the destination device, wherein the first message carries the target forwarding device identification information, the target downstream port identification information and the target forwarding queue identification information.

[0080] Optionally, the processor is further configured to:

[0081] Allocating a message container number to the first message;

[0082] Encapsulating the first message in a first message container corresponding to the message container number;

[0083] The processor is specifically used for:

[0084] The encapsulated first message is added to the target forwarding queue.

[0085] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0086] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0087] Optionally, the processor is further configured to:

[0088] When the first length is greater than the preset message container length, setting the end flag position of the first message container to a second value to indicate that the first message is an end message of the first message container, wherein the first length is determined based on the length of the forwarded message in the first message container, the length of the first message, and the maximum transmission unit MTU information;

[0089] In the case that the first length is smaller than the preset message container length, the end flag position of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container.

[0090] In a sixth aspect, an embodiment of the present application provides an electronic device, including a transceiver and a processor, wherein the transceiver is used to:

[0091] A first message transmitted by a source device and configured with a preset flag bit is received, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0092] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0093] The processor is used to:

[0094] A target forwarding queue corresponding to the first message is determined according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0095] Optionally, the processor is specifically configured to:

[0096] A target forwarding queue corresponding to the encapsulated first message is determined.

[0097] Optionally, the transceiver is further used for:

[0098] The first message is transmitted to a destination server according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message.

[0099] Optionally, the transceiver is further used for:

[0100] In a case where a preset flag bit of the first message is set to a first value and an end flag bit of the first message container is set to a second value, after storing the source device identification information, the message container number of the first message container and the end information of the first message container in the sorting module, the first message is transmitted to the destination server, the preset flag bit of the first message is set to a first value to indicate that a first service corresponding to the first message is a target service, and the end flag bit of the first message container is set to a second value to indicate that the first message is a termination message of the first message container;

[0101] When the preset flag bit of the first message is set to the first value and the flag bit of the first message container is set to the first value, the first message is transmitted to the destination server, the end flag bit of the first message container is set to the first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0102] In a case where the preset flag bit of the first message is set to the second value, after the first message is sorted by the sorting module based on the source device identification information, the message container number of the first message container and the message information of other messages in the target forwarding queue except the first message, the first message is transmitted to the destination server, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0103] In the seventh aspect, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned transmission method when executed by the processor.

[0104] In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned transmission method are implemented.

[0105] In a ninth aspect, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the steps of the above-mentioned transmission method.

[0106] The transmission method of the embodiment of the present application includes, when receiving a first message, judging whether the first service corresponding to the first message is a target service according to the message information of the first message; configuring a preset flag bit for the first message according to the judgment result; and transmitting the first message after configuring the preset flag bit to the destination device. In this method, the source device configures the preset flag bit for the first message according to whether the first service corresponding to the first message is the target service, which is conducive to the subsequent destination device to decide whether to sort the first message according to the preset flag bit of the first message, thereby ensuring that the message carrying the target service can be directly forwarded without sorting, thereby improving the efficiency of service execution. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0108] Figure 1 is a flow chart of a transmission method performed by a source device provided in an embodiment of the present application;

[0109] Figure 2 is a schematic diagram of network device connections provided by an embodiment of the present application;

[0110] Figure 3 is a flow chart of a transmission method performed by a destination device provided in an embodiment of the present application;

[0111] Figure 4 is a flow chart of a transmission device applied to a source device provided in an embodiment of the present application;

[0112] Figure 5is a flow chart of a transmission device applied to a destination device provided in an embodiment of the present application;

[0113] Figure 6 is one of the structural diagrams of an electronic device provided by another embodiment of the present application;

[0114] Figure 7 This is the second structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0115] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0116] The present application embodiment provides a transmission method, which is performed by a source device. Figure 1 , Figure 1 is a flow chart of the transmission method provided in the embodiment of the present application, such as Figure 1 As shown, the following steps are included:

[0117] Step 101: upon receiving a first message, determining whether a first service corresponding to the first message is a target service according to message information of the first message;

[0118] In this step, when the source device receives the first message sent by the server connected to it, it can determine whether the first service corresponding to the first message is the target service according to the priority field in the message header of the first message and in combination with the application scenario. The target service can be understood as a delay-sensitive service. In an Internet Protocol (IP) network, the message header may contain identification related to the quality of service (QoS), such as the service category (Type of Service, ToS) field in the IPv4 message header, or the traffic category (TrafficClass) field in the IPv6 message header. These fields are usually divided into multiple priority levels, and high priority values ​​usually correspond to services that are more sensitive to delays. In addition, different types of application scenarios have different requirements for delays. For example, applications such as real-time audio and video calls and online games are very sensitive to delays, while emails, file transfers, etc. are less sensitive.

[0119] Step 102: According to the judgment result, a preset flag bit is configured for the first message;

[0120] In this step, the source device configures a corresponding preset flag bit for the first message according to whether the first service is a target service. The preset flag bit is used to subsequently determine whether to sort the first message before forwarding. If the first service is a target service, the value of the preset flag bit configured for the first message is used to indicate that the first message is a message that does not need to be sorted; if the first service is a non-target service, the value of the preset flag bit configured for the first message is used to indicate that the first message is a message that needs to be sorted.

[0121] Step 103: Transmit the first message after configuring the preset flag bit to the destination device.

[0122] In this step, the source device transmits a first message configured with a preset flag bit to the destination device, so that the subsequent destination device determines whether to sort the first message before forwarding it according to the preset flag bit.

[0123] In one implementation, when the source device receives the first message, it can determine whether the first service corresponding to the first message is a target service according to the message information of the first message. If the first service is the target service, the value of the preset flag bit configured for the first message is used to indicate that the first message is a message that does not need to be sorted; if the first service is a non-target service, the value of the preset flag bit configured for the first message is used to indicate that the first message is a message that needs to be sorted. Then, the source device transmits the first message configured with the preset flag bit to the destination device.

[0124] In this implementation, the source device configures a preset flag bit for the first message according to whether the first service corresponding to the first message is a target service. This is beneficial for the subsequent destination device to decide whether to sort the first message according to the preset flag bit of the first message. This ensures that the message carrying the target service can be directly forwarded without sorting, thereby improving the service execution efficiency.

[0125] Optionally, before determining, according to the message information of the first message, whether the first service corresponding to the first message is a target service, the method further includes:

[0126] Receiving preset information sent by a global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0127] The transmitting the first message after configuring the preset flag bit to the destination device includes:

[0128] Determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0129] According to the message information and the multiple queue identification information corresponding to each downstream port, the target forwarding queue of the target downstream port is determined, the first message is added to the target forwarding queue, and the first message in the target forwarding queue is transmitted to the destination device, wherein the first message carries the target forwarding device identification information, the target downstream port identification information and the target forwarding queue identification information.

[0130] In one embodiment, see Figure 2 , Figure 2 It is a connection diagram of each network device. After each network device completes the connection, it can discover its neighbors through the Link Layer Discovery Protocol (LLDP), and send the neighbor information to the Global System for Open Science (GSOS), which obtains the interconnection interface information of all network devices. Then GSOS will send GSP-identification (Identity, ID) (device identification information) and Downlink Generic Scheduling Queue (Downlink Generic Scheduling Queue, DGSQ)-ID (consisting of device identification information, downlink port identification information and queue identification information, used to indicate the specific downlink port corresponding to a certain device and the specific queue corresponding to the specific downlink port) to all Gateway Service Provider (GSP) devices in the entire network.

[0131] The source device can determine the target downstream port of the target forwarding device corresponding to the first message based on the device identification information sent by the GSOS device and the multiple downstream port identification information corresponding to each device, and query the IP routing table. The IP routing table contains the mapping relationship between the destination address and the next hop. Each routing table entry usually includes information such as the destination network, subnet mask, next hop IP address and outbound interface. The source device searches the IP routing table to determine which gateway or next hop the destination IP address should be transmitted through. The destination IP address is extracted by the source device in the first message.

[0132] The source device then extracts relevant information from the received message, such as priority, flow type, and other QoS parameters. Each downstream port usually has multiple queues, and each queue may be used for traffic of different priorities. The downstream port will have detailed identification information and configuration rules for these queues. The source device determines the target forwarding queue of the target downstream port based on the message information and the multiple queue identification information corresponding to each downstream port, and adds the first message to the target forwarding queue before transmitting it to the destination device.

[0133] In this implementation, the source device can effectively manage and schedule traffic resources related to the message by determining the forwarding queue corresponding to the message. By reasonably allocating messages to different queues, the source device can better control congestion and prevent a single queue from being overloaded and causing packet loss or delay.

[0134] Optionally, before adding the first message to the target forwarding queue, the method further includes:

[0135] Allocating a message container number to the first message;

[0136] Encapsulating the first message in a first message container corresponding to the message container number;

[0137] The adding the first message to the target forwarding queue includes:

[0138] The encapsulated first message is added to the target forwarding queue.

[0139] In one implementation, in order to ensure that the message can be correctly transmitted, received and interpreted, the message is often encapsulated in a message container. In the present application, a unique message container number is first assigned to the first message, which can facilitate the network device to track and manage the first message during the transmission process, ensuring that the data packet will not be lost or duplicated, and then the first message is encapsulated in a first message container corresponding to the message container number, and then the encapsulated first message is added to the target forwarding queue.

[0140] In this implementation, encapsulating the first message in the corresponding first message container and then adding it to the target forwarding queue is helpful to prevent the data of the first message from being damaged or tampered with, thereby ensuring the integrity of the first message.

[0141] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0142] In one implementation, the preset flag bit can be understood as a reordering flag bit (Reoder Flag), and the first value can be 0. When the preset flag bit is set to the first value, it means that the service corresponding to the first message is the target service, and the first message is a message that does not need to participate in the sorting. At this time, the current container number (ContainerNumber, CN) is directly assigned to the first message, and the length of the first message container is the length of the first message. This implementation sets the length of the first message container according to the length of the first message, which is conducive to the reasonable use of network bandwidth and reduces the risk of network overload and congestion.

[0143] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0144] In one implementation, the preset flag bit can be understood as a reordering flag bit (Reoder Flag), and the second value can be 1. When the preset flag bit is set to the second value, it means that the service corresponding to the first message is a non-target service, and the first message is a message that needs to be sorted. This means that the first message is a large-bandwidth service flow and needs to be distributed message by message. At this time, the length of the first message container is equal to the preset message container length. In this implementation, the preset message container length can help network devices to evenly distribute loads and help maintain the continuity and stability of message transmission.

[0145] Optionally, after allocating a message container number to the first message, the method further includes:

[0146] When the first length is greater than the preset message container length, setting the end flag position of the first message container to a second value to indicate that the first message is an end message of the first message container, wherein the first length is determined based on the length of the forwarded message in the first message container, the length of the first message, and the maximum transmission unit MTU information;

[0147] In the case that the first length is smaller than the preset message container length, the end flag position of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container.

[0148] In one implementation, when the length of the forwarded message in the first message container + the length of the first message + the maximum transmission unit (MTU) information > the preset message container length, the current message container number CN is assigned to the first message, and the end flag of the first message container is set to the second value (i.e., 1), which indicates that the load of the first message container is full and can no longer receive other messages, and the first message is the end message (End of Packet, EoP) of the first message container (i.e., the last message). And the message container number CN+1 is assigned to the next message.

[0149] When the length of the forwarded message in the first message container + the length of the first message + the maximum transmission unit (MTU) information < the preset message container length, the current message container number CN is assigned to the first message, and the end flag of the first message container is set to the first value (i.e., 0), which indicates that the first message container can also carry other messages. In addition, if the first message is the first message of the first message container, the start flag of the first message container is set to 1, which indicates that the first message is the start message (Start of Packet, SoP) of the first message container.

[0150] In this implementation, by setting the end flag of the first message container, the message receiver can promptly determine whether the data transmission is finished, and does not perform additional waiting when determining that the data transmission is finished, thereby improving communication efficiency.

[0151] The present application embodiment provides a transmission method, which is executed by a destination device. Figure 3 , Figure 3 is a flow chart of the transmission method provided in the embodiment of the present application, such as Figure 3 As shown, the following steps are included:

[0152] Step 301: Receive a first message transmitted by a source device and configured with a preset flag bit, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0153] In one implementation, a destination device receives a first message transmitted by a source device and configured with a preset flag bit, wherein the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service. The destination device can determine whether the first service corresponding to the first message is a target service based on the preset flag bit, and then decide whether to sort the first message before forwarding it. This implementation is conducive to the destination device deciding whether to sort the first message based on the preset flag bit of the first message, thereby ensuring that the message carrying the target service can be directly forwarded without sorting, thereby improving the efficiency of service execution.

[0154] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0155] After receiving the first message transmitted by the source device and configured with a preset flag bit, the method further includes:

[0156] A target forwarding queue corresponding to the first message is determined according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0157] In one implementation, the first message carries target forwarding device identification information, target downlink port identification information, and target forwarding queue identification information, and the destination device can determine the target forwarding queue corresponding to the first message according to the target forwarding device identification information, the target downlink port identification information, and the target forwarding queue identification information. If it is determined that the first message is a message that needs to be sorted, the destination device needs to sort all messages on the target forwarding queue including the first message before forwarding.

[0158] In this implementation, by first determining the target forwarding queue, messages of the same priority or category can be immediately processed in a centralized manner, thereby avoiding delays caused by frequent switching between different queues.

[0159] Optionally, the first message is encapsulated in a first message container, and the determining a target forwarding queue corresponding to the first message includes:

[0160] A target forwarding queue corresponding to the encapsulated first message is determined.

[0161] In one implementation, encapsulating the first message in a corresponding first message container is helpful to prevent data of the first message from being damaged or tampered with, thereby ensuring the integrity of the first message.

[0162] Optionally, after determining the target forwarding queue corresponding to the encapsulated first message, the method further includes:

[0163] The first message is transmitted to a destination server according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message.

[0164] In one implementation, a preset flag bit of the first message is used to indicate whether the first service corresponding to the first message is the target service, and then it can be determined whether to sort the first message based on whether the first service corresponding to the first message is the target service; the end flag bit of the first message container is used to indicate whether the first message is the end message of the first message container, and then it can be determined whether the data transmission is ended; the message information of other messages in the target forwarding queue except the first message can be used to correctly sort the first message by combining the message information of other messages on the same forwarding queue when it is determined that the first message is a message that needs to be sorted, so the above information can ensure that subsequent operations on the first message are performed accurately.

[0165] Optionally, the transmitting the first message according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message, includes at least one of the following:

[0166] In a case where a preset flag bit of the first message is set to a first value and an end flag bit of the first message container is set to a second value, after storing the source device identification information, the message container number of the first message container and the end information of the first message container in the sorting module, the first message is transmitted to the destination server, the preset flag bit of the first message is set to a first value to indicate that a first service corresponding to the first message is a target service, and the end flag bit of the first message container is set to a second value to indicate that the first message is a termination message of the first message container;

[0167] When the preset flag bit of the first message is set to the first value and the flag bit of the first message container is set to the first value, the first message is transmitted to the destination server, the end flag bit of the first message container is set to the first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0168] In a case where the preset flag bit of the first message is set to the second value, after the first message is sorted by the sorting module based on the source device identification information, the message container number of the first message container and the message information of other messages in the target forwarding queue except the first message, the first message is transmitted to the destination server, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0169] In one implementation, when the first service corresponding to the first message is the target service, it indicates that the first message does not need to be sorted, and the destination device can directly forward the first message to the destination server connected thereto. When the first message is the termination message of the first message container, the destination device needs to store the source device identification information, the message container number of the first message container, and the end information of the first message container in the sorting module to make it clear that the data of the entire first message container has been transmitted and received in full, avoiding packet loss or incomplete data. In addition, the messages that need to be sorted need to wait until the messages that do not need to be sorted are forwarded before being forwarded.

[0170] When the first service corresponding to the first message is a non-target service, it means that the first message needs to be sorted. Then, it is necessary to enter the sorting module and sort the first message according to the source device identification information, the message container number of the first message container, and the message information of other messages in the target forwarding queue except the first message before forwarding it to the destination server.

[0171] This implementation method is beneficial for the destination device to determine whether to sort the first message according to the preset flag bit of the first message, thereby ensuring that the message carrying the target service can be directly forwarded without sorting, thereby improving service execution efficiency.

[0172] See also Figure 4 , Figure 4 is a structural diagram of a transmission device provided by another embodiment of the present application, and the message transmission device is applied to a source device. Figure 4 As shown, the transmission device 400 includes:

[0173] A first judgment module 401 is used to judge whether a first service corresponding to a first message is a target service according to message information of the first message when a first message is received;

[0174] A first configuration module 402, configured to configure a preset flag bit for the first message according to the judgment result;

[0175] The first transmission module 403 is used to transmit the first message after the preset flag is configured to a destination device.

[0176] Optionally, the device further comprises:

[0177] A second receiving module is used to receive preset information sent by the global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0178] The first transmission module includes:

[0179] A first determining unit, configured to determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0180] A first processing unit is used to determine a target forwarding queue of the target downlink port according to the message information and multiple queue identification information corresponding to each downlink port, add the first message to the target forwarding queue, and transmit the first message in the target forwarding queue to the destination device, wherein the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information.

[0181] Optionally, the device further comprises:

[0182] A first allocation module, configured to allocate a message container number to the first message;

[0183] A first encapsulation module, used for encapsulating the first message in a first message container corresponding to the message container number;

[0184] The first processing unit is specifically configured to:

[0185] The encapsulated first message is added to the target forwarding queue.

[0186] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0187] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0188] Optionally, the device further comprises:

[0189] a second configuration module, configured to, when a first length is greater than a preset message container length, set an end flag position of the first message container to a second value to indicate that the first message is a termination message of the first message container, wherein the first length is determined based on a length of a forwarded message in the first message container, a length of the first message, and maximum transmission unit MTU information;

[0190] The third configuration module is used to set the end mark position of the first message container to a first value to indicate that the first message is a non-terminal message of the first message container when the first length is smaller than the preset message container length.

[0191] It should be noted that this embodiment is Figure 1 The specific implementation of the corresponding device side embodiment can be found in Figure 1 To avoid repeated description, the relevant description of the embodiment shown in will not be repeated in this embodiment, and the same beneficial effects can be achieved.

[0192] See also Figure 5 , Figure 5 is a structural diagram of a transmission device provided by another embodiment of the present application, and the message transmission device is applied to a source device. Figure 5 As shown, the transmission device 500 includes:

[0193] The first receiving module 501 is used to receive a first message transmitted by a source device and configured with a preset flag bit, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0194] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0195] The device also includes:

[0196] The first determination module is used to determine a target forwarding queue corresponding to the first message according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0197] Optionally, the first message is encapsulated in a first message container, and the first determining module includes:

[0198] The first determining unit is used to determine a target forwarding queue corresponding to the encapsulated first message.

[0199] Optionally, the device further comprises:

[0200] The second transmission module is used to transmit the first message to the destination server according to the preset flag of the first message, the end flag of the first message container and the message information of other messages in the target forwarding queue except the first message.

[0201] Optionally, the second transmission module includes at least one of the following:

[0202] a first storage unit, configured to, after storing the source device identification information, the message container number of the first message container, and the end information of the first message container in the sorting module, transmit the first message to the destination server when the preset flag bit of the first message is set to the first value and the end flag bit of the first message container is set to the second value, the preset flag bit of the first message is set to the first value to indicate that the first service corresponding to the first message is the target service, and the end flag bit of the first message container is set to the second value to indicate that the first message is the end message of the first message container;

[0203] a first transmission unit, configured to transmit the first message to the destination server when a preset flag bit of the first message is set to the first value and a flag bit of the first message container is set to the first value, an end flag bit of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0204] A second transmission unit is used to transmit the first message to the destination server after sorting the first message by the sorting module based on the source device identification information, the message container number of the first message container and the message information of other messages in the target forwarding queue except the first message, when the preset flag bit of the first message is set to the second value, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0205] It should be noted that this embodiment is Figure 3 The specific implementation of the corresponding device side embodiment can be found in Figure 3 To avoid repeated description, the relevant description of the embodiment shown in will not be repeated in this embodiment, and the same beneficial effects can be achieved.

[0206] The present application also provides an electronic device. Since the principle of solving the problem by the electronic device is similar to the transmission method in the present application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated. Figure 6 As shown, the electronic device of the embodiment of the present application includes: a processor 600, which is used to read the program in the memory 620 and execute the following process:

[0207] When a first message is received, determining whether a first service corresponding to the first message is a target service according to message information of the first message;

[0208] According to the judgment result, configuring a preset flag bit for the first message;

[0209] The transceiver is used for:

[0210] The first message after the preset flag bit is configured is transmitted to the destination device.

[0211] Among them, Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 600 and memory represented by memory 620. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 may store data used by the processor 600 when performing operations.

[0212] Optionally, the processor 600 is configured to read a program in the memory 620 and perform the following process:

[0213] Receiving preset information sent by a global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port;

[0214] The processor 600 is used to read the program in the memory 620 and execute the following process: through the transceiver 610:

[0215] Determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table;

[0216] According to the message information and the multiple queue identification information corresponding to each downstream port, the target forwarding queue of the target downstream port is determined, the first message is added to the target forwarding queue, and the first message in the target forwarding queue is transmitted to the destination device, wherein the first message carries the target forwarding device identification information, the target downstream port identification information and the target forwarding queue identification information.

[0217] Optionally, the processor 600 is configured to read a program in the memory 620 and perform the following process:

[0218] Allocating a message container number to the first message;

[0219] Encapsulating the first message in a first message container corresponding to the message container number;

[0220] The processor 600 is used to read the program in the memory 620 and execute the following process:

[0221] The encapsulated first message is added to the target forwarding queue.

[0222] Optionally, when the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

[0223] Optionally, when the preset flag bit is set to a second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

[0224] Optionally, the processor 600 is configured to read a program in the memory 620 and perform the following process:

[0225] When the first length is greater than the preset message container length, setting the end flag position of the first message container to a second value to indicate that the first message is an end message of the first message container, wherein the first length is determined based on the length of the forwarded message in the first message container, the length of the first message, and the maximum transmission unit MTU information;

[0226] In the case that the first length is smaller than the preset message container length, the end flag position of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container.

[0227] The present application also provides an electronic device. Since the principle of solving the problem by the electronic device is similar to the transmission method in the present application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be repeated. Figure 7 As shown, the electronic device of the embodiment of the present application includes: a processor 700, which is used to read the program in the memory 720 and execute the following process: through the transceiver 710:

[0228] A first message transmitted by a source device and configured with a preset flag bit is received, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

[0229] Among them, Figure 7 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 700 and memory represented by memory 720. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 710 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. The processor 700 is responsible for managing the bus architecture and general processing, and the memory 720 may store data used by the processor 700 when performing operations.

[0230] Optionally, the first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information;

[0231] The processor 700 is used to read the program in the memory 720 and execute the following process:

[0232] A target forwarding queue corresponding to the first message is determined according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

[0233] Optionally, the processor 700 is configured to read a program in the memory 720 and perform the following process:

[0234] A target forwarding queue corresponding to the encapsulated first message is determined.

[0235] Optionally, the processor 700 is configured to read a program in the memory 720 and execute the following process: through the transceiver 710:

[0236] The first message is transmitted to a destination server according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message.

[0237] Optionally, the processor 700 is configured to read a program in the memory 720 and execute the following process: through the transceiver 710:

[0238] In a case where a preset flag bit of the first message is set to a first value and an end flag bit of the first message container is set to a second value, after storing the source device identification information, the message container number of the first message container and the end information of the first message container in the sorting module, the first message is transmitted to the destination server, the preset flag bit of the first message is set to a first value to indicate that a first service corresponding to the first message is a target service, and the end flag bit of the first message container is set to a second value to indicate that the first message is a termination message of the first message container;

[0239] When the preset flag bit of the first message is set to the first value and the flag bit of the first message container is set to the first value, the first message is transmitted to the destination server, the end flag bit of the first message container is set to the first value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information;

[0240] In a case where the preset flag bit of the first message is set to the second value, after the first message is sorted by the sorting module based on the source device identification information, the message container number of the first message container and the message information of other messages in the target forwarding queue except the first message, the first message is transmitted to the destination server, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

[0241] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0242] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 or Figure 3 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

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

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

[0245] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A transmission method, characterized in that: Executed by a source device, the method includes: When a first message is received, determining whether a first service corresponding to the first message is a target service according to message information of the first message; According to the judgment result, configuring a preset flag bit for the first message; The first message after the preset flag bit is configured is transmitted to the destination device.

2. The transmission method according to claim 1, characterized in that: Before determining, according to the message information of the first message, whether the first service corresponding to the first message is the target service, the method further includes: Receiving preset information sent by a global operating system GSOS, wherein the preset information includes device identification information, multiple downstream port identification information corresponding to each device, and multiple queue identification information corresponding to each downstream port; The transmitting the first message after configuring the preset flag bit to the destination device includes: Determine a target downlink port of a target forwarding device corresponding to the first message according to the device identification information, the identification information of the multiple downlink ports corresponding to each device, and an Internet Protocol IP routing table; According to the message information and the multiple queue identification information corresponding to each downstream port, the target forwarding queue of the target downstream port is determined, the first message is added to the target forwarding queue, and the first message in the target forwarding queue is transmitted to the destination device, wherein the first message carries the target forwarding device identification information, the target downstream port identification information and the target forwarding queue identification information.

3. The transmission method according to claim 2, characterized in that: Before adding the first message to the target forwarding queue, the method further includes: Allocating a message container number to the first message; Encapsulating the first message in a first message container corresponding to the message container number; The adding the first message to the target forwarding queue includes: The encapsulated first message is added to the target forwarding queue.

4. The transmission method according to claim 3, characterized in that: When the preset flag bit is set to a first value, the first service is a target service, and the length of the first message container is the length of the first message.

5. The transmission method according to claim 3, characterized in that: When the preset flag bit is set to the second value, the first service is a non-target service, the preset information further includes a preset message container length, and the length of the first message container is equal to the preset message container length.

6. The transmission method according to claim 5, characterized in that: After allocating a message container number to the first message, the method further includes: When the first length is greater than the preset message container length, setting the end flag position of the first message container to a second value to indicate that the first message is an end message of the first message container, wherein the first length is determined based on the length of the forwarded message in the first message container, the length of the first message, and the maximum transmission unit MTU information; In the case that the first length is smaller than the preset message container length, the end flag position of the first message container is set to a first value to indicate that the first message is a non-terminal message of the first message container.

7. A transmission method, characterized in that: Executed by a destination device, the method includes: A first message transmitted by a source device and configured with a preset flag bit is received, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

8. The transmission method according to claim 7, characterized in that: The first message carries target forwarding device identification information, target downlink port identification information and target forwarding queue identification information; After receiving the first message transmitted by the source device and configured with a preset flag bit, the method further includes: A target forwarding queue corresponding to the first message is determined according to the target forwarding device identification information, the target downlink port identification information and the target forwarding queue identification information.

9. The transmission method according to claim 8, characterized in that: The first message is encapsulated in a first message container, and the determining a target forwarding queue corresponding to the first message includes: A target forwarding queue corresponding to the encapsulated first message is determined.

10. The transmission method according to claim 9, characterized in that: After determining the target forwarding queue corresponding to the encapsulated first message, the method further includes: The first message is transmitted to a destination server according to a preset flag bit of the first message, an end flag bit of the first message container, and message information of other messages in the target forwarding queue except the first message.

11. The transmission method according to claim 10, characterized in that: The transmitting the first message according to the preset flag bit of the first message, the end flag bit of the first message container, and the message information of other messages in the target forwarding queue except the first message, includes at least one of the following: In a case where a preset flag bit of the first message is set to a first value and an end flag bit of the first message container is set to a second value, after storing the source device identification information, the message container number of the first message container, and the end information of the first message container in the sorting module, the first message is transmitted to the destination server, the preset flag bit of the first message is set to a first value to indicate that a first service corresponding to the first message is a target service, and the end flag bit of the first message container is set to a first value to indicate that the first message is a termination message of the first message container; When the preset flag bit of the first message is set to the first value and the flag bit of the first message container is set to the first value, the first message is transmitted to the destination server, the end flag bit of the first message container is set to the second value to indicate that the first message is a non-terminal message of the first message container, and the sorting module does not store any information; In a case where the preset flag bit of the first message is set to the second value, the first message is sorted by the sorting module based on the source device identification information, the message container number of the first message container, and the message information of other messages in the target forwarding queue except the first message, and then the first message is transmitted to the destination server, and the preset flag bit of the first message is set to the second value to indicate that the first service corresponding to the first message is a non-target service.

12. A transmission device, characterized in that: Applied to a source device, the apparatus comprises: A first judgment module is used to judge whether a first service corresponding to the first message is a target service according to message information of the first message when the first message is received; A first configuration module, configured to configure a preset flag bit for the first message according to a judgment result; The first transmission module is used to transmit the first message after the preset flag bit is configured to the destination device.

13. A transmission device, characterized in that: Applied to a target device, the device comprises: The first receiving module is used to receive a first message transmitted by a source device and configured with a preset flag bit, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

14. An electronic device, characterized in that: The electronic device comprises a transceiver and a processor, wherein the processor is configured to: When a first message is received, determining whether a first service corresponding to the first message is a target service according to message information of the first message; According to the judgment result, configuring a preset flag bit for the first message; The transceiver is used for: The first message after the preset flag bit is configured is transmitted to the destination device.

15. An electronic device, characterized in that: The electronic device comprises a transceiver and a processor, wherein the transceiver is used for: A first message transmitted by a source device and configured with a preset flag bit is received, where the preset flag bit is used to indicate whether a first service corresponding to the first message is a target service.

16. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the transmission method according to any one of claims 1 to 6 when executed by the processor, or implements the steps of the transmission method according to any one of claims 7 to 11 when executed by the processor.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the transmission method according to any one of claims 1 to 6, or which, when executed by the processor, implements the steps of the transmission method according to any one of claims 7 to 11.

18. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the transmission method according to any one of claims 1 to 6, or the method comprises computer instructions, when executed by a processor, implement the steps of the transmission method according to any one of claims 7 to 11.

Citation Information

Patent Citations

  • Message disorder rearrangement method and single board

    CN113691469A

  • Message forwarding method and device, equipment and storage medium

    CN116915714A

  • Communication method and server

    CN118018250A

  • Industrial block chain network optimization method and device, node and storage medium

    CN118055062A

  • Data transmission method and apparatus, device, and storage medium

    WO2024159771A1