Communication device, communication method, program product, computer storage medium, and chip

By implementing message aggregation with multiple interfaces and data processing circuits in communication equipment, the bandwidth limitation problem caused by the independence of different media in the transmission network is solved, improving communication efficiency and data transmission rate, and adapting to a variety of transmission media combinations.

CN120881005APending Publication Date: 2025-10-31HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410565030.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

In existing transmission networks, the communication processes of different media are independent, which results in communication efficiency being limited by the bandwidth of a single medium, leading to a poor user experience.

Method used

By employing multiple interfaces and data processing circuits in communication equipment, message aggregation and forwarding between different interfaces can be achieved, and aggregation links can be formed using multiple transmission media, thereby increasing the number of service messages and bandwidth of communication equipment per unit time.

Benefits of technology

It improves communication efficiency and data transmission rate between devices, enhances network bandwidth, and adapts to more usage scenarios and transmission media combinations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120881005A_ABST
    Figure CN120881005A_ABST
Patent Text Reader

Abstract

The invention discloses communication equipment, a communication method, a program product, a computer storage medium and a chip, relates to the technical field of communication, and is used for solving the technical problem of how to improve network bandwidth. The communication device is connected with different devices through different interfaces, and can be connected with the same device through one or more interfaces. In the communication process of service messages, the messages are processed through the data processing circuit, and the service messages not only can use one or more first interfaces at the input end, but also can use one or more second interfaces at the output end at the same time. The same or different first service messages can be transmitted between different first interfaces, and the same or different second service messages can be transmitted between different second interfaces, so that the number of service messages transmitted by the communication equipment in unit time and the communication bandwidth can be improved; the problem that the bandwidth is limited due to the fact that communication processes of different transmission media are independent is solved, and the communication efficiency between devices is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication device, communication method, program product, computer storage medium, and chip. Background Technology

[0002] With the advent of the Internet of Things (IoT) era, more and more devices are equipped with network connectivity. To adapt to different usage scenarios or purposes, the data transmission medium between devices can include various methods when building a network to connect these devices.

[0003] In the home environment, smart homes are rapidly developing, and an increasing number of devices in the home need to be connected to the internet to improve ease of use and comfort. By building a home backbone network, devices in the home can be connected to this network, such as entertainment devices, home appliances, automation equipment, lighting equipment, security (monitoring) devices, water, electricity, gas, and heat meters, and home emergency alarms, enabling interconnection and management of these devices. The home backbone network can be built using transmission media such as Ethernet (Gigabit Ethernet, GE), 2.5GE, Wi-Fi, Power Line Communication (PLC), and fiber optics.

[0004] In industrial settings, automated and intelligent operations are achieved through device networking. To enhance the flexibility of collaborative intelligent operations, wired, wireless, and communication devices can be incorporated into the device network. Therefore, multiple transmission media are used to build the transmission network.

[0005] However, in existing transmission networks, the communication processes of different media are independent, and the communication efficiency between devices is limited by the bandwidth of a single medium, resulting in low communication efficiency and a poor user experience. Summary of the Invention

[0006] This application provides a communication device, communication method, program product, computer storage medium, and chip to solve the technical problem of how to improve network bandwidth.

[0007] To achieve the above objectives, this application adopts the following technical solution:

[0008] In a first aspect, this application provides a communication device. The communication device includes: one or more first interfaces, a data processing circuit, and one or more second interfaces. The one or more first interfaces are used to connect to a first device and to receive multiple first service messages from the first device. The data processing circuit is used to process the multiple first service messages to obtain multiple second service messages. The one or more second interfaces are used to connect to a second device and to send multiple second service messages to the second device.

[0009] In the first aspect of this application, the communication device connects to different devices through different interfaces, and can also connect to the same device through one or more interfaces. During the communication of service messages, the messages are processed by a data processing circuit. These service messages can simultaneously use one or more first interfaces at the input end, and also simultaneously use one or more second interfaces at the output end. Different first interfaces can transmit the same or different first service messages, and different second interfaces can transmit the same or different second service messages. This is beneficial for increasing the number of service messages transmitted by the communication device per unit time and the communication bandwidth, solving the bandwidth limitation problem caused by the independent communication processes of different transmission media, and improving the communication efficiency between devices.

[0010] For example, the data processing circuit can process first service messages received from one or more first interfaces to obtain multiple second service messages, and send the multiple second service messages through one or more second interfaces. The data processing circuit can provide an aggregation port for the multiple first interfaces, through which multiple first service messages are received. The first transmission media connected to the multiple first interfaces respectively can form an aggregation link, increasing the bandwidth for receiving data during data transmission. The data processing circuit can provide another aggregation port for the multiple second interfaces, through which multiple second service messages are sent. The second transmission media connected to the multiple second interfaces respectively can form another aggregation link, increasing the bandwidth for sending data during data transmission. Therefore, this communication device can realize message forwarding from aggregation link to aggregation link, message forwarding from non-aggregated link to aggregation link, and message forwarding from aggregation link to non-aggregated link. This improves the bandwidth for message forwarding and increases data transmission efficiency.

[0011] In one possible implementation of the first aspect, the communication device specifically includes a plurality of first interfaces, a plurality of second interfaces, and a data processing circuit. The plurality of first interfaces are used to connect to a first device and to receive a plurality of first service messages, wherein the aggregated link number field in the plurality of first service messages is a first value. The data processing circuit is connected to the plurality of first interfaces and is used to process the plurality of first service messages to obtain a plurality of second service messages, and to output the plurality of second service messages through the plurality of second interfaces, wherein the aggregated link number field in the second service messages is a second value. The plurality of second interfaces are used to connect to a second device and to send the plurality of second service messages.

[0012] In this way, the data processing circuit provides a first aggregation port for multiple first interfaces based on the value of the aggregation link number field, thus shielding multiple first interfaces that receive multiple first service packets. That is, multiple links formed by various transmission media connected to multiple first interfaces constitute a single aggregation link, and the first aggregation port is the network port corresponding to this aggregation link. The data processing circuit processes the multiple first service packets to obtain multiple second service packets, including modifying the value of the aggregation link number field of the first service packets from a first value to a second value of the aggregation link number field of the second service packets. Based on the second value of the aggregation link number field, the data processing circuit provides a second aggregation port for multiple second interfaces, shielding multiple second interfaces during packet forwarding. That is, multiple links formed by various transmission media connected to multiple second interfaces constitute a single aggregation link, and the second aggregation port is the network port corresponding to this aggregation link. Therefore, this communication device can achieve packet forwarding from aggregation link to aggregation link, improving packet forwarding bandwidth and data transmission efficiency.

[0013] Furthermore, providing a first aggregation port for multiple first interfaces and a second aggregation port for multiple second interfaces are both implemented through data aggregation circuits. That is, by implementing message forwarding from one aggregation link to another through hardware, the transmission effect of directly superimposing the line speeds of multiple links can be achieved.

[0014] In one possible implementation of the first aspect, multiple first service packets belong to a first data stream, and the value of the sequence number field in the first service packet is used to identify the sending order of the corresponding first service packet in the first data stream. Thus, the sequence number in the first service packet allows for more functions to be implemented in packet forwarding, such as reordering packets during the forwarding process.

[0015] In one possible implementation of the first aspect, the plurality of first service messages include at least two duplicate service messages, and the sequence number field values ​​in the duplicate service messages carrying the same data are identical. The data processing circuit is further configured to: deduplicate the plurality of first service messages according to the values ​​of the sequence number fields in the plurality of first service messages. This avoids the transmission of duplicate messages that could cause a traffic storm. Furthermore, because multiple messages are deduplicated during message forwarding, a redundant transmission mode can be adopted, improving the reliability of message transmission.

[0016] In one possible implementation of the first aspect, the data forwarding circuit is further configured to: sequentially send multiple second service packets corresponding to the multiple first service packets on multiple second interfaces according to the values ​​of the sequence number field in the multiple first service packets. This reduces the possibility of out-of-order packets received by the next-level device, thereby preventing the next-level device from requesting packet retransmission due to out-of-order packets and improving the throughput of the communication equipment.

[0017] In one possible implementation of the first aspect, different values ​​of the transmission mode field in the second service message are used to indicate different transmission modes of the second service message on multiple second interfaces. In this way, a suitable transmission mode can be selected according to actual needs, improving the message forwarding performance of the communication device.

[0018] In one possible implementation of the first aspect, the transmission mode includes: a data stream being transmitted through a second interface; multiple service packets in a data stream being transmitted through at least two of the multiple second interfaces, wherein one service packet corresponds to one second interface for transmission; and a data stream being repeatedly transmitted through at least two of the multiple second interfaces. Thus, the communication device can not only be compatible with single-medium, single-link forwarding methods through the transmission mode of a data stream being transmitted through a single second interface, but also improve the transmission rate through this transmission mode. Furthermore, the mode of transmitting multiple service packets in a data stream through at least two of the multiple second interfaces, wherein one service packet corresponds to one second interface for transmission, not only improves the transmission efficiency of the data stream, but also increases the transmission rate of a single data stream; the mode of repeatedly transmitting a data stream through at least two of the multiple second interfaces improves the reliability of data stream transmission. Therefore, the communication device provides multiple transmission modes to adapt to more usage scenarios.

[0019] In one possible implementation of the first aspect, the data processing circuit is further configured to: determine the transmission mode of the first service message or the transmission mode of the second service message according to a transmission mode table, wherein the transmission mode table includes the values ​​of the transmission mode field and the corresponding transmission modes. Thus, the transmission mode can be selected through the transmission mode table, and the transmission mode table can be maintained in various ways to facilitate the selection of a suitable transmission mode.

[0020] In one possible implementation of the first aspect, the data processing circuit is further configured to: query a forwarding rule table based on the feature information of the first service message to determine a message editing action; and process multiple first service messages according to the message editing action to obtain multiple second service messages. The forwarding rule table includes the feature information of the first service messages and the message editing actions corresponding to the feature information. Thus, message forwarding can be controlled through the forwarding rule table, facilitating the control of message forwarding and editing.

[0021] In one possible implementation of the first aspect, the first or second service message includes one or more of the following: an aggregated link number field, a transmission mode field, a sequence number field, or a frame type field. Thus, different forwarding functions can be implemented by selecting different fields, providing more functionality for message forwarding.

[0022] In one possible implementation of the first aspect, the data processing circuit includes: a first port scheduling subcircuit, a first aggregation link subcircuit, a message forwarding and editing subcircuit, a second aggregation link subcircuit, and a second port scheduling subcircuit. The first port scheduling subcircuit is connected to multiple first interfaces and is used to transmit multiple received first service messages to the first aggregation link subcircuit. The first aggregation link subcircuit is connected to the first port scheduling subcircuit, receives multiple first service messages, and provides a first aggregation port for the multiple first service messages. The first aggregation port corresponds to a first value of the aggregation link number field. The message forwarding and editing subcircuit is connected to the first aggregation link subcircuit, receives multiple first service messages from the first aggregation port, and processes the multiple first service messages to obtain multiple second service messages. The second aggregation link subcircuit is connected to the message forwarding and editing subcircuit, receives multiple second service messages, and provides a second aggregation port for the multiple second service messages. The second aggregation port corresponds to a second value of the aggregation link number field. The second port scheduling subcircuit is connected to the second aggregation link subcircuit and multiple second interfaces, receives multiple second service messages from the second aggregation port, and sends multiple second service messages to a second device through the multiple second interfaces. Thus, the first aggregation link sub-circuit provides a first aggregation port for multiple first service packets, and the second aggregation link sub-circuit provides a second aggregation port for multiple second service packets. Traffic monitoring can be performed through the first aggregation port and the second aggregation port to achieve traffic control.

[0023] In one possible implementation of the first aspect, the communication device further includes: a plurality of third interfaces and a plurality of fourth interfaces; the plurality of third interfaces are used to connect to third devices and receive third service messages from the third devices, wherein the aggregation link number field in the plurality of third service messages is a third value; a data processing circuit is connected to the third interfaces and is used to process the third service messages into fourth service messages, and output the plurality of fourth service messages through the plurality of fourth interfaces, wherein the aggregation link number field in the fourth service messages is a fourth value; the plurality of fourth interfaces are used to connect to fourth devices and are also used to send fourth service messages. Thus, the plurality of third interfaces can be used to form an aggregation link, and the plurality of fourth interfaces can also be used to form an aggregation link, thereby enabling the communication device to connect to multiple aggregation links and to forward messages between any two aggregation links.

[0024] In one possible implementation of the first aspect, multiple first interfaces are connected to a first device through multiple first transmission media, the multiple first transmission media being different or partially the same, and / or multiple second interfaces are connected to a second device through multiple second transmission media, the multiple second transmission media being different or partially the same. In this way, aggregated links can be formed through multiple transmission media, regardless of whether the transmission media are the same, which is beneficial for utilizing multiple different transmission media in the network for message transmission and improving network bandwidth.

[0025] In one possible implementation of the first aspect, the communication device specifically includes: a first interface, multiple second interfaces, and a data processing circuit. The first interface is used to connect to a first device and to receive multiple first service messages. The data processing circuit, connected to the first interface, processes the multiple first service messages to obtain multiple second service messages and outputs the multiple second service messages to the multiple second interfaces. The multiple second service messages, compared to the multiple first service messages, also include one or more of an aggregation link number field, a transmission mode field, a sequence number field, or a frame type field, with the aggregation link number field in the second service message having a second value. The multiple second interfaces are used to connect to a second device and to send the multiple second service messages. Thus, a first interface connects to the first device through one link, and multiple second interfaces connect to the second device through multiple links. The data processing circuit provides second aggregation ports for the multiple second interfaces, enabling message forwarding from one first interface to multiple second interfaces, i.e., message forwarding from non-aggregated links to aggregated links, thereby improving the flexibility of the communication device network.

[0026] In one possible implementation of the first aspect, the system specifically includes: multiple first interfaces, one second interface, and a data processing circuit. The multiple first interfaces are used to connect to a first device and to receive multiple first service messages, wherein the aggregation link number field in the multiple first service messages is a first value. The data processing circuit is connected to the multiple first interfaces and is used to process the multiple first service messages to obtain multiple second service messages, and output the multiple second service messages to the second interface. The multiple first service messages, compared to the multiple second service messages, also include one or more of the following: an aggregation link number field, a transmission mode field, a sequence number field, or a frame type field. The second interface is used to connect to a second device and to send the multiple second service messages. Thus, the multiple first interfaces are connected to the first device through multiple links, and the second interface can be connected to the second device through one link. The data processing circuit provides a first aggregation port for the multiple first interfaces, realizing message forwarding from the multiple first interfaces to a single second interface, that is, realizing message forwarding from the aggregated link to a non-aggregated link, thereby improving the flexibility of communication equipment networking.

[0027] In one possible implementation of the first aspect, the value of the aggregated link number field is assigned by the communication device or by other devices in the same network as the communication device. This allows any device in the network to be selected to manage the aggregated link number, preventing aggregated links with the same aggregated link number from appearing.

[0028] Secondly, this application provides a communication method, which is executed by a communication device or a chip in the communication device. The communication device or the chip in the communication device includes: one or more first interfaces, a data processing circuit, and one or more second interfaces. The one or more first interfaces are connected to a first device and a data processing circuit, and the one or more second interfaces are connected to a data processing circuit and a second device.

[0029] The communication method includes: receiving multiple first service messages from a first device through one or more first interfaces; processing the multiple first service messages through a data processing circuit to obtain multiple second service messages; and sending the multiple second service messages to a second device through one or more second interfaces.

[0030] Thus, by processing first service packets received from one or more first interfaces to obtain multiple second service packets, an aggregation port can be provided for multiple first interfaces. Multiple first service packets are received through this aggregation port, and the first transmission media connected to the multiple first interfaces respectively can form an aggregation link, increasing the bandwidth for receiving data during data transmission. Simultaneously, another aggregation port can be provided for multiple second interfaces, through which multiple second service packets are sent. The second transmission media connected to the multiple second interfaces respectively can form another aggregation link, increasing the bandwidth for sending data during data transmission. This enables packet forwarding from aggregation link to aggregation link, from non-aggregate link to aggregation link, and from aggregation link to non-aggregate link. This improves packet forwarding bandwidth and data transmission efficiency.

[0031] In one possible implementation of the second aspect, the communication device or the chip in the communication device specifically includes: a plurality of first interfaces, a data processing circuit and a plurality of second interfaces, wherein the plurality of first interfaces are connected to the first device and the data processing circuit, and the plurality of second interfaces are connected to the data processing circuit and the second device.

[0032] The communication method specifically includes: receiving multiple first service messages from a first device through multiple first interfaces, wherein the aggregated link number field in the multiple first service messages is a first value; processing the multiple first service messages through a data processing circuit to obtain multiple second service messages, and outputting multiple second service messages through multiple second interfaces, wherein the aggregated link number field in the second service messages is a second value; and sending multiple second service messages to a second device through multiple second interfaces.

[0033] In this way, the data processing circuit provides a first aggregation port for multiple first interfaces based on the value of the aggregation link number field, thus blocking multiple first interfaces that receive multiple first service packets. The data processing circuit processes the multiple first service packets to obtain multiple second service packets, including modifying the value of the aggregation link number field of the first service packets from a first value to a second value of the aggregation link number field of the second service packets. Based on the second value of the aggregation link number field, the data processing circuit provides a second aggregation port for multiple second interfaces, thus blocking multiple second interfaces during packet forwarding. Therefore, this method can achieve packet forwarding from aggregation link to aggregation link, improving packet forwarding bandwidth and data transmission efficiency.

[0034] In one possible implementation of the second aspect, multiple first service packets belong to a first data stream, and the value of the sequence number field in the first service packet is used to identify the sending order of the corresponding first service packet in the first data stream. Thus, the sequence number in the first service packet allows for more functions to be implemented in packet forwarding, such as reordering service packets during the forwarding process.

[0035] In one possible implementation of the second aspect, the plurality of first service messages include at least two duplicate service messages, and the sequence number field values ​​in the duplicate service messages carrying the same data are identical. Before processing the plurality of first service messages to obtain the plurality of second service messages by the data processing circuit, the communication method further includes: the data processing circuit deduplicating the plurality of first service messages according to the values ​​of the sequence number fields in the plurality of first service messages. This avoids traffic storms caused by transmitting duplicate messages. Furthermore, because multiple messages are deduplicated during message forwarding, a redundant transmission mode can be adopted, improving the reliability of message transmission.

[0036] In one possible implementation of the second aspect, multiple second service packets are sent to a second device through multiple second interfaces. Specifically, this includes sequentially sending multiple second service packets, each corresponding to a first service packet, on multiple second interfaces according to the value of the sequence number field in the multiple first service packets. This reduces the possibility of out-of-order packets received by the next-level device, thereby reducing requests for packet retransmission due to out-of-order packets and improving the forwarding rate.

[0037] In one possible implementation of the second aspect, the second service message includes a transmission mode field, the value of which indicates different transmission modes of the second service message on multiple second interfaces. Sending multiple second service messages to the second device through multiple second interfaces specifically includes: sending the second service message on multiple second interfaces according to the transmission mode corresponding to the value of the transmission mode field. In this way, a suitable transmission mode can be selected according to actual needs.

[0038] In one possible implementation of the second aspect, the transmission mode includes: a data stream being transmitted through a second interface; multiple service packets in a data stream being transmitted through at least two of the multiple second interfaces, wherein one service packet corresponds to one second interface for transmission; and a data stream being repeatedly transmitted through at least two of the multiple second interfaces. Thus, the transmission mode of transmitting a data stream through a single second interface is compatible with single-medium, single-link forwarding methods and can also improve the transmission rate. Furthermore, transmitting multiple service packets in a data stream through at least two of the multiple second interfaces not only improves the transmission efficiency of the data stream but also increases the transmission rate of a single data stream; the mode of repeatedly transmitting a data stream through at least two of the multiple second interfaces improves the reliability of output transmission. Therefore, multiple transmission modes are provided to adapt to more application scenarios.

[0039] In one possible implementation of the second aspect, before sending the second service message through multiple second interfaces according to the sending mode corresponding to the value of the sending mode field, the method further includes: determining the sending mode of the first service message or the sending mode of the second service message according to a sending mode table, wherein the sending mode table includes the value of the sending mode field and the corresponding sending mode. Thus, the sending mode can be selected through the sending mode table, and the sending mode table can be maintained in various ways to facilitate the selection of a suitable sending mode.

[0040] In one possible implementation of the second aspect, multiple first service packets are processed by a data processing circuit to obtain multiple second service packets. This includes: querying a forwarding rule table based on the characteristic information of the first service packets to determine a packet editing action; and processing the multiple first service packets according to the packet editing action to obtain the multiple second service packets. The forwarding rule table includes the characteristic information of the first service packets and the corresponding packet editing actions. Thus, packet forwarding can be controlled through the forwarding rule table, facilitating the control of packet forwarding and editing.

[0041] In one possible implementation of the second aspect, the first or second service message includes one or more of the following: an aggregated link number field, a transmission mode field, a sequence number field, or a frame type field. Thus, different forwarding functions can be implemented by selecting different fields, providing more functionality for message forwarding.

[0042] In one possible implementation of the second aspect, the data processing circuit includes: a first port scheduling subcircuit, a first aggregated link subcircuit, a message forwarding and editing subcircuit, a second aggregated link subcircuit, and a second port scheduling subcircuit, wherein the first port scheduling subcircuit, the first aggregated link subcircuit, the message forwarding and editing subcircuit, the second aggregated link subcircuit, and the second port scheduling subcircuit are connected in sequence, the first port scheduling subcircuit is also connected to a plurality of first interfaces, and the second port scheduling subcircuit is also connected to a plurality of second interfaces;

[0043] The communication method further includes: a first port scheduling subcircuit transmitting multiple received first service packets to a first aggregation link subcircuit; the first aggregation link subcircuit receiving the multiple first service packets and providing a first aggregation port for the multiple first service packets, the first aggregation port corresponding to a first value in the aggregation link number field; a packet forwarding and editing subcircuit receiving the multiple first service packets from the first aggregation port and processing the multiple first service packets to obtain multiple second service packets; a second aggregation link subcircuit receiving the multiple second service packets and providing a second aggregation port for the multiple second service packets, the second aggregation port corresponding to a second value in the aggregation link number field; and a second port scheduling subcircuit receiving the multiple second service packets from the second aggregation port and sending the multiple second service packets to a second device through multiple second interfaces. Thus, providing a first aggregation port for multiple first service packets and a second aggregation port for multiple second service packets allows for traffic monitoring and control of traffic.

[0044] In one possible implementation of the second aspect, the communication device or the chip in the communication device further includes: a plurality of third interfaces and a plurality of fourth interfaces, wherein the plurality of third interfaces are used to connect the third device and the data processing circuit, and the plurality of fourth interfaces are used to connect the data processing circuit and the fourth device.

[0045] The communication method further includes: receiving third service messages from a third device through multiple third interfaces, wherein the aggregated link number field in the multiple third service messages is a third value; processing the multiple third service messages through a data processing circuit to obtain multiple fourth service messages, and outputting the multiple fourth service messages through multiple fourth interfaces, wherein the aggregated link number field in the multiple fourth service messages is a fourth value; and sending the multiple fourth service messages to a fourth device through multiple fourth interfaces.

[0046] In this way, multiple third interfaces can be used to form an aggregated link, and multiple fourth interfaces can also be used to form an aggregated link, thereby enabling the forwarding of messages between any two aggregated links of the communication device.

[0047] In one possible implementation of the second aspect, multiple first interfaces are connected to a first device through multiple first transmission media, the multiple first transmission media being different or partially the same, and / or multiple second interfaces are connected to a second device through multiple second transmission media, the multiple second transmission media being different or partially the same. In this way, aggregated links can be formed through multiple transmission media, regardless of whether the transmission media are the same, which is beneficial for utilizing multiple transmission media in the network for message transmission and improving network bandwidth.

[0048] In one possible implementation of the second aspect, the communication device or the chip in the communication device specifically includes: a first interface, a data processing circuit, and a plurality of second interfaces, wherein the first interface is connected to the first device and the data processing circuit, and the plurality of second interfaces are connected to the data processing circuit and the second device;

[0049] The communication method specifically includes: receiving multiple first service messages from a first device through a first interface; processing the multiple first service messages through a data processing circuit to obtain multiple second service messages, and outputting the multiple second service messages to multiple second interfaces. The multiple second service messages, compared with the multiple first service messages, also include one or more of the following fields: aggregation link number field, transmission mode field, sequence number field, or frame type field. The aggregation link number field in the second service message is a second value. The method also includes sending the multiple second service messages to a second device through multiple second interfaces.

[0050] In this way, a first interface is connected to the first device through a link, and multiple second interfaces can be connected to the second device through multiple links. The data processing circuit provides a second aggregation port for multiple second interfaces, realizing packet forwarding from one first interface to multiple second interfaces, that is, realizing packet forwarding from non-aggregated links to aggregated links, thus improving the flexibility of packet forwarding.

[0051] In one possible implementation of the second aspect, the communication device or the chip in the communication device specifically includes: a plurality of first interfaces, a data processing circuit and a second interface, wherein the plurality of first interfaces are connected to the first device and the data processing circuit, and the second interface is connected to the data processing circuit and the second device.

[0052] The communication method specifically includes: receiving multiple first service messages from a first device through multiple first interfaces, wherein the aggregated link number field in the multiple first service messages is a first value; processing the multiple first service messages through a data processing circuit to obtain multiple second service messages, and outputting the multiple second service messages to a second interface, wherein the multiple first service messages also include one or more of the aggregated link number field, transmission mode field, sequence number field, or frame type field compared to the multiple second service messages; and sending the multiple second service messages to a second device through a second interface.

[0053] In this way, multiple first interfaces are connected to the first device through multiple links, and a second interface can be connected to the second device through a single link. The data processing circuit provides a first aggregation port for the multiple first interfaces, enabling packet forwarding from multiple first interfaces to a single second interface, that is, enabling packet forwarding from aggregated links to non-aggregated links, thus improving the flexibility of packet forwarding.

[0054] Thirdly, this application provides a program product, which includes a computer program or instructions; when the computer program or instructions are run by a communication device or a chip in the communication device, the communication device or the chip in the communication device performs a communication method as described in any of the second aspects.

[0055] Fourthly, this application provides a non-transitory computer storage medium including computer instructions that, when executed on a communication device or a chip in the communication device, cause the communication device or the chip in the communication device to perform a communication method as described in any of the second aspects.

[0056] Fifthly, this application provides a communication device, which includes a processor for running computer programs or instructions to cause the communication device to perform a communication method as described in any of the second aspects.

[0057] In a sixth aspect, this application provides a chip comprising: a processor coupled to a memory for storing programs or instructions, wherein when the programs or instructions are executed by the processor, the chip performs a communication method as described in any of the second aspects.

[0058] The beneficial effects of the third to sixth aspects mentioned above can be referred to the description of the first aspect or any of the embodiments in the first aspect, and will not be repeated here.

[0059] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0060] Figure 1 This is a structural diagram of the network model;

[0061] Figure 2 A schematic diagram of a home backbone transmission network provided for an embodiment of this application;

[0062] Figure 3 A schematic diagram of single-medium single-link hard forwarding used in home backbone transmission networks;

[0063] Figure 4 A schematic diagram illustrating the use of dual-medium multi-link aggregation soft forwarding in a home backbone transmission network, as provided in an embodiment of this application;

[0064] Figure 5A schematic diagram of a communication device and a transmission network constructed through the communication device, provided for embodiments of this application;

[0065] Figure 6 A schematic diagram illustrating a stream-by-stream transmission mode provided in an embodiment of this application;

[0066] Figure 7 A schematic diagram illustrating a packet-by-packet transmission mode provided in an embodiment of this application;

[0067] Figure 8 A schematic diagram illustrating a redundant transmission mode provided in an embodiment of this application;

[0068] Figure 9 This is a schematic diagram illustrating the effect of a packet-by-packet transmission mode provided in an embodiment of this application.

[0069] Figure 10 Provided for the embodiments of this application Figure 5 A schematic diagram of a sub-circuit of a data processing circuit in a Chinese communication device;

[0070] Figure 11 Provided for the embodiments of this application Figure 5 A schematic diagram of communication equipment including other interfaces;

[0071] Figure 12 A schematic diagram of another communication device provided in an embodiment of this application;

[0072] Figure 13 Provided for the embodiments of this application Figure 12 A schematic diagram of a sub-circuit of a data processing circuit in a Chinese communication device;

[0073] Figure 14 This is a schematic diagram illustrating interaction between two terminal devices via an aggregated link, provided as an embodiment of this application.

[0074] Figure 15 A schematic diagram of yet another communication device provided in an embodiment of this application;

[0075] Figure 16 Provided for the embodiments of this application Figure 15 A schematic diagram of a sub-circuit of a data processing circuit in a Chinese communication device;

[0076] Figure 17 A flowchart illustrating a communication method provided in an embodiment of this application;

[0077] Figure 18 A transmission network provided for embodiments of this application;

[0078] Figure 19 This application provides yet another transmission network;

[0079] Figure 20 This application provides a method for forming a transmission network using multiple communication devices.

[0080] Figure 21 A schematic structural diagram of a communication device provided in an embodiment of this application;

[0081] Figure 22 This is a schematic structural diagram of a chip provided in an embodiment of this application. Detailed Implementation

[0082] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by those skilled in the art. The terms "first," "second," "third," and similar words used in this application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature. In the description of embodiments in this application, unless otherwise stated, "a plurality of" means two or more.

[0083] The terms "exemplary" or "for example" used in the embodiments of this application are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0084] The terms "coupling" and "connection" used in the embodiments of this application should be interpreted broadly. For example, they can refer to a physical direct connection or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.

[0085] First, some basic concepts involved in the embodiments of this application will be explained:

[0086] Home backbone network: The home backbone network is formed by the networking of routers within the home. The transmission technologies and protocol specifications of the physical layer and data link layer of the home backbone network can be Ethernet (including wired Ethernet and wireless Ethernet at various rates), and the network layer and transport layer can be Transmission Control Protocol / Internet Protocol (TCP / IP).

[0087] Soft forwarding: Packet forwarding is achieved jointly by chip hardware and software. The forwarding rate is limited by the software and is significantly lower than that of hard forwarding. For example, soft forwarding can be implemented based on a general-purpose central processing unit (CPU).

[0088] Hard forwarding: Packet forwarding is implemented independently by chip hardware, and the packets do not need to be processed by software. Its advantage is that the forwarding speed is fast and can reach line speed.

[0089] Line speed: The maximum speed that a forwarding device's network port can achieve. For example, the maximum speed of a GE port is 1Gbps.

[0090] Service interactions between communication nodes are based on the encapsulation and parsing of messages according to the network model. The encapsulation and parsing of messages differs depending on the network model. For example... Figure 1 The diagram shows the structure of three common network models. Figure 1 Figure (a) shows the seven-layer network model of Open System Interconnect (OSI); Figure 1 Figure (b) shows the TCP five-layer network model; Figure 1 Figure (c) shows the TCP / IP four-layer network model.

[0091] The OSI seven-layer network model, from bottom to top, includes the Physical Layer, Data Link Layer, Network Layer, Transport Layer, Session Layer, Presentation Layer, and Application Layer. The TCP five-layer network model, from bottom to top, includes the Physical Layer, Data Link Layer, Network Layer, Transport Layer, and Application Layer. The application layer of the TCP five-layer model corresponds to the Session Layer, Presentation Layer, and Application Layer of the OSI seven-layer model. The bottom four layers of the TCP five-layer model are consistent with the OSI seven-layer model. The TCP / IP four-layer network model, from bottom to top, includes the Network Access Layer, Internetworking Layer, Transport Layer, and Application Layer. The network access layer of the TCP / IP four-layer model corresponds to the Physical Layer and Data Link Layer of the OSI seven-layer model; the Internetworking Layer of the TCP / IP four-layer model corresponds to the Network Layer of the OSI seven-layer model; and the application layer of the TCP / IP four-layer model corresponds to the Session Layer, Presentation Layer, and Application Layer of the OSI seven-layer model. Typically, in all three network models, the encapsulation and parsing of the network layer (or Internetworking layer) and above can be handled by the data processing devices of the communication equipment. The protocol layers related to physical links below the network layer (such as the physical layer, data link layer, or network access layer) are encapsulated, parsed, and forwarded by the network chip in the communication device.

[0092] Please see Figure 2 , Figure 2This is a schematic diagram of a home backbone network. A home backbone network may include one primary router, four secondary routers, and four tertiary routers. Figure 2 In this configuration, four secondary routers are each connected to one primary router, two tertiary routers are connected to one secondary router, and the other two tertiary routers are connected to another secondary router. The network topology of this home backbone is hybrid, meaning it can include both star and tree topologies.

[0093] Please see Figure 3 , Figure 3 This is a schematic diagram of a home backbone network using single-medium, single-link hard forwarding. There is only one link between each pair of routers, and the transmission medium type of this link can be GE, 2.5GE, Wi-Fi, PLC, or fiber optic, etc. For example, a router can receive data through one link and send data through another link. The transmission media of the two links can be the same or different; for example, the transmission medium of the link receiving data is Wi-Fi, and the transmission medium of the link sending data is GE.

[0094] In this type of home backbone network, line-rate hard forwarding can be achieved through a single medium and single link, and the forwarding rate of messages depends on the transmission capacity of the single medium. However, as the transmission media of home backbone networks become increasingly diverse, for example, they can simultaneously include GE, 2.5GE, Wi-Fi, PLC, or fiber optic transmission media. This type of home backbone network is limited by single-medium, single-link forwarding and cannot simultaneously aggregate multiple media between two communication devices. Therefore, the provided transmission bandwidth is limited, wasting the transmission media in the home.

[0095] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating a dual-media multi-link aggregation soft forwarding method used in a home backbone transmission network according to an embodiment of this application. Multiple links may be included between two routers, and the transmission medium for these links may be, for example, Wi-Fi and / or PLC, via Linux-based... TMKernel bonding technology enables packet aggregation and forwarding across links with different transmission media. For example, two routers may be connected by two links: one using Wi-Fi and the other using a PLC. After receiving packets via the corresponding Wi-Fi and / or PLC links, the routers in this home backbone network forward the packets to their CPUs. Software running on the CPUs then aggregates and forwards the packets across these two transmission media links. Therefore, compared to single-media, single-link transmission, aggregating links with two different transmission media increases the transmission bandwidth between the two routers; that is, the soft forwarding rate of Wi-Fi and PLC dual-media multi-link aggregation is greater than the soft forwarding rate of Wi-Fi or PLC single-link aggregation.

[0096] Because Wi-Fi and PLC dual-media multi-link aggregation soft forwarding requires sending packets to the CPU and then aggregating them through software running on the CPU, the forwarding rate of this home backbone transmission network is limited by the efficiency of software processing and the performance of the CPU. Therefore, to increase the forwarding rate, a high-performance CPU needs to be configured, which increases the cost.

[0097] For this purpose, please see Figure 5 , Figure 5 This is a schematic diagram of a communication device 100a and a transmission network constructed through the communication device 100a, provided in an embodiment of this application. The communication device 100a may include one or more first interfaces J1 ( Figure 5 The diagram shows multiple first interfaces J1), data processing circuitry 110, and one or more second interfaces J2. Figure 5 The diagram shows multiple first interfaces J1, one or more of which are connected to the data processing circuit 110. The data processing circuit 110 is connected to one or more second interfaces J2.

[0098] Each first interface J1 can be connected to the first device 210 via a first transmission medium. Thus, the communication device 100a can receive multiple first service messages sent by the first device 210 via one or more first interfaces J1. For example, the first transmission medium can be GE, 2.5GE, Wi-Fi, PLC, twisted pair, or optical fiber, etc.

[0099] One or more first interfaces J1 transmit multiple received first service packets to data processing circuit 110. Data processing circuit 110 processes the multiple first service packets to obtain multiple second service packets. For example, the source Media Access Control (MAC) addresses and destination MAC addresses of the multiple first service packets are different from the source MAC addresses and destination MAC addresses of the multiple second service packets. That is, the processing of the multiple first service packets by data processing circuit 110 includes editing the source MAC addresses and destination MAC addresses of the multiple first service packets to the source MAC addresses and destination MAC addresses of the multiple second service packets. For example, data processing circuit 110 can provide a first aggregation port for receiving multiple first service packets through the first aggregation port; data processing circuit 110 can also provide a second aggregation port for sending multiple second service packets through the second aggregation port.

[0100] Each second interface J2 can be connected to the second device 220 via a second transmission medium. Thus, the communication device 100a can send multiple second service messages to the second device 220 via one or more second interfaces J2. For example, the second transmission medium can also be GE, 2.5GE, Wi-Fi, PLC, twisted pair, or optical fiber, etc.

[0101] In this way, multiple first service messages from the first device 210 can be received through one or more first interfaces J1, multiple second service messages can be processed by the data processing circuit 110 to obtain multiple second service messages, and multiple second service messages can be sent to the second device 220 through one or more second interfaces J2. Since the data processing circuit 110 can provide a first aggregation port for multiple first service messages, when multiple first service messages are received through multiple first interfaces J1, the first transmission media connected to each of the multiple first interfaces J1 can form an aggregated link, increasing the bandwidth for receiving data during data transmission. Furthermore, the data processing circuit 110 can provide a second aggregation port for multiple second service messages, so when multiple second service messages are sent to multiple second devices 220 through multiple second interfaces J2, the second transmission media connected to each of the multiple second interfaces J2 can form another aggregated link, increasing the bandwidth for sending data during data transmission. Therefore, the communication device 100a can increase the bandwidth for message forwarding and improve data transmission efficiency.

[0102] The communication device 100a provided in this application embodiment is applicable to various message forwarding architectures. For example, it can receive multiple first service messages through multiple first interfaces J1 and send multiple second service messages through multiple second interfaces J2; or it can receive multiple first service messages through multiple first interfaces J1 and send multiple second service messages through one second interface J2; or it can receive multiple first service messages through one first interface J1 and send multiple second service messages through multiple second interfaces J2. The various message forwarding architectures will be described in detail below through specific embodiments.

[0103] Example 1

[0104] Please continue reading Figure 5 The communication device 100a may include multiple first interfaces J1, multiple second interfaces J2, and a data processing circuit 110. The multiple first interfaces J1, the data processing circuit 110, and the multiple second interfaces J2 are connected in sequence.

[0105] Multiple first interfaces J1 can be connected to the first device 210 through various first transmission media, forming multiple transmission links between the first device 210 and the communication device 100a.

[0106] For example, the first transmission medium connected to each of the plurality of first interfaces J1 can be GE, 2.5GE, Wi-Fi, PLC, twisted pair, or optical fiber, etc. For example, the plurality of first interfaces J1 are respectively connected to various first transmission media, and these various first transmission media are different. For example, communication device 100a includes three first interfaces J1, and the first transmission media connected to the three first interfaces J1 are Wi-Fi, PLC, and twisted pair, respectively. For example, the plurality of first interfaces J1 are respectively connected to various first transmission media, and the various first transmission media are partially the same. For example, the first transmission media connected to all three first interfaces J1 of communication device 100a are twisted pair. Or, for example, the first transmission media connected to two first interfaces J1 of communication device 100a are twisted pair, and the first transmission media connected to one first interface J1 is PLC. It is easily understood that the transmission links involving different transmission media also involve different transmission protocols related to the transmission media. For example, when the transmission media is Wi-Fi, protocols such as 802.11a and 802.11b can be used. Therefore, multiple first interfaces J1 can resolve the transmission protocol corresponding to their respective connected first transmission media.

[0107] Multiple second interfaces J2 can be connected to the second device 220 through various second transmission media, thereby forming multiple transmission links between the second device 220 and the communication device 100a. The type of the second transmission media can be the same as or different from the type of the first transmission media. The multiple second interfaces J2 are respectively connected to various second transmission media, and the various second transmission media can be different or partially the same.

[0108] The number of first interfaces J1 and the number of second interfaces J2 can be the same or different. When the number of first interfaces J1 and the number of second interfaces J2 are the same, the types of transmission media for the various first transmission media connected to the multiple first interfaces J1 and the various second transmission media connected to the multiple second interfaces J2 can be the same or different. For example, communication device 100a includes 3 first interfaces J1 and 3 second interfaces J2. The transmission media connected to the 3 first interfaces J1 are Wi-Fi, PLC, and twisted pair, respectively, and the transmission media connected to the 3 second interfaces J2 are PLC, twisted pair, and optical fiber, respectively.

[0109] Multiple first interfaces J1 can receive multiple first service messages from the first device 210. The data processing circuit 110 of the communication device 100a can process the multiple first service messages to obtain multiple second service messages, and send the multiple second service messages to the second device 220 through multiple second interfaces J2.

[0110] Multiple first service messages may include an aggregated link number field. The aggregated link number field of multiple first service messages has the same value, i.e., it is the first value. The value of the aggregated link number field is used to identify the aggregated link formed by multiple transmission media connected to multiple first interfaces J1. Based on the value of the aggregated link number field, the data processing circuit 110 provides a first aggregation port for the multiple first interfaces J1. That is, multiple links formed by multiple transmission media connected to the multiple first interfaces J1 constitute one aggregated link, and the first aggregation port is the network port corresponding to this aggregated link. Therefore, during message forwarding, multiple first interfaces J1 receiving multiple first service messages can be shielded, providing a unified network port for data interaction between the first device 210 and the communication device 100a.

[0111] For example, the aggregated link number field can be set in the network layer header, data link layer header, physical layer header, or transport layer header of the first service message.

[0112] Similarly, multiple second service messages may also include an aggregation link number field. The aggregation link number field of the multiple second service messages has a second value. Based on the value of the aggregation link number field, the data processing circuit 110 provides a second aggregation port for the multiple second interfaces J2. That is, multiple links formed by various transmission media connected to the multiple second interfaces J2 constitute a single aggregation link, and the second aggregation port is the network port corresponding to this aggregation link. Thus, during message forwarding, multiple second interfaces J2 are shielded, providing a unified network port for data interaction between the second device 220 and the communication device 100a.

[0113] For example, the aggregated link number field can be set in the network layer header, data link layer header, physical layer header, or transport layer header of the second service message. Furthermore, the location of the aggregated link number field in the first service message can be the same as the location of the aggregated link number field in the second service message.

[0114] The data processing circuit 110 processes multiple first service messages to obtain multiple second service messages, including editing the value of the aggregation link number field of the first service messages. Specifically, it modifies the value of the aggregation link number field of the first service messages from a first value to a second value of the aggregation link number field of the second service messages. Thus, when the communication device 100a forwards messages, the communication device 100a provides a first aggregation port for multiple first interfaces J1 that receive multiple first service messages, and a second aggregation port for multiple second interfaces J2 that send multiple second service messages. This enables message forwarding from multiple first interfaces J1 to multiple second interfaces J2, and the sending of multiple second service messages to the second device 220 through multiple second interfaces J2. In other words, it achieves receiving multiple first service messages through the first aggregation port and sending multiple second service messages through the second aggregation port.

[0115] Therefore, communication device 100a can achieve message forwarding from one aggregation link to another, and the aggregation link can include multiple links formed by various transmission media. Thus, multiple links can transmit messages simultaneously between devices, providing ultra-high transmission bandwidth. Furthermore, since the data processing circuit 110 provides a network port for each of the multiple first interfaces J1 and multiple second interfaces J2, meaning that message forwarding from one aggregation link to another is implemented in hardware, the transmission effect of direct superposition of line speeds across multiple links can be achieved, solving the problem of wasted transmission media resources caused by the independent transmission of messages by multiple transmission media in a network.

[0116] Communication device 100a can implement multiple transmission modes through multiple second interfaces J2. A transmission mode refers to how a data stream is sent from one device to another through multiple links between the two devices. A data stream may include multiple service messages. For example, a transmission mode may include sending a data stream through one second interface; sending multiple service messages in a data stream through at least two of the multiple second interfaces, where one service message corresponds to one second interface; or repeatedly sending a data stream through at least two of the multiple second interfaces.

[0117] The following is combined Figures 6-8 The following describes various transmission modes using the example of a communication device 100a transmitting a data stream to a second device 220. The communication device 100a is connected to the second device 220 through links 1, 2, and 3 connected to three second interfaces J2. At least two of the links 1, 2, and 3 have different transmission media. The data stream includes service messages 1 to 6.

[0118] Please see Figure 6 , Figure 6 This is a schematic diagram of a stream-by-stream transmission mode. Stream-by-stream transmission involves sending a data stream through a single interface. For example, forwarding device 100a sequentially transmits service messages 1 through 6 of the data stream to the second device 220 via link 1 out of three links. For example, one link from among multiple links can be selected based on the size of the data stream. For instance, when the data stream is large, it can be transmitted through a high-speed link, such as fiber optic; when the data stream is small, it can be transmitted through a low-speed link, such as a PLC. This allows for compatibility with... Figure 3 The single-medium, single-link hard forwarding scenario shown improves the flexibility of building data transmission networks.

[0119] Furthermore, although a single data stream is sent on one interface, multiple interfaces can send multiple data streams in parallel, thereby significantly improving the transmission rate of multiple data streams and achieving the superposition of transmission rates across links. For example, data streams are transmitted through two second interfaces J2, which are connected to link 1 and link 2 respectively. The transmission medium for link 1 is GE, and the transmission medium for link 2 is 5G Wi-Fi. Since the transmission rate of GE can reach 1Gbps and the transmission rate of 5G Wi-Fi can reach 2Gbps, the transmission rate of data transmitted from communication device 100a to second device 220 can reach 3Gbps.

[0120] Please see Figure 7 , Figure 7This is a schematic diagram of packet-by-packet transmission mode. Packet-by-packet transmission refers to the transmission of multiple service packets in a data stream through at least two of multiple interfaces, where one service packet corresponds to one interface. For example, communication device 100a transmits service packets 1 to 6 of the data stream to the second device 220 through at least two of three links, with each service packet transmitted through only one link. For instance, service packets 1 and 2 are transmitted through link 1, service packets 3 and 4 through link 2, and service packets 5 and 6 through link 3. The number of service packets transmitted across multiple links can be the same or different; for example, a link with a higher transmission rate can transmit more service packets than a link with a lower transmission rate. This enables data forwarding at the service packet level, which not only improves the transmission efficiency of the data stream but also increases the transmission rate of a single data stream, further increasing data transmission bandwidth and transmission rate, and allowing for the aggregation of transmission rates across different links.

[0121] The difference between packet-by-packet transmission mode and stream-by-stream transmission mode is that packet-by-packet transmission mode allows for the aggregation of transmission rates of service packets across multiple links. For example, please refer to... Figure 9 Communication device 100a sends a data stream of 2Gbps to the second device 220. Communication device 100a can transmit at 1Gbps via link 1, 600Mbps via link 2, and 400Mbps via link 3. In other words, communication device 100a can send multiple service packets from a single data stream through multiple links, thereby achieving a superposition of transmission rates. In contrast, the stream-by-stream transmission mode can only select one link from among multiple links to send a single data stream.

[0122] Please see Figure 8 , Figure 8 This is a schematic diagram of a redundant transmission mode. Redundant transmission mode refers to a data stream being repeatedly transmitted through at least two of a plurality of interfaces. For example, when communication device 100a sends a data stream to second device 220, it repeatedly transmits service packets 1 to 6, which are included in the data stream, on at least two of the three links. Each service packet is redundantly transmitted on multiple links. For example, service packets 1 to 6 are transmitted on links 1, 2, and 3. Thus, after receiving service packet 1 from any link, second device 220 can immediately transmit service packet 2 upon receiving service packet 2 on any link, thereby reducing the impact of unreliable transmission on a single link, for example, reducing the possibility of requiring data retransmission due to lost service packets.

[0123] In some implementations, the second service message may include a transmission mode field, where different values ​​indicate different transmission modes of the second service message on multiple second interfaces. Different transmission modes can be selected according to different usage scenarios. For example, in scenarios requiring high reliability, a redundant transmission mode can be used; in scenarios requiring high bandwidth, packet-by-packet transmission can be used. Exemplarily, the transmission mode field can be set in the network layer header, data link layer header, physical layer header, or transport layer header of the second service message.

[0124] It is readily understood that when communication device 100a receives multiple first data from aggregated links corresponding to multiple first interfaces and sends multiple second service messages on aggregated links corresponding to multiple second interfaces, the multiple first service messages received by communication device 100a can also adopt multiple transmission modes. Therefore, the first service message can also include a transmission mode field. The transmission modes of the multiple first service messages and the multiple second service messages can be the same or different, that is, the values ​​of the transmission mode fields of the multiple first service messages and the multiple second service messages can be the same or different. Therefore, when data processing circuit 110 processes the multiple first service messages to obtain multiple second service messages, it can include editing the values ​​of the transmission mode fields of the first service messages, so that the transmission modes of the multiple second service messages are different from the transmission modes of the multiple first service messages.

[0125] For example, when sending multiple second service messages, the data processing circuit 110 can determine the sending mode of the first service message or the sending mode of the second service message according to a sending mode table. The sending mode table includes the values ​​of the sending mode field and the corresponding sending modes. That is, based on the information in the sending mode table, the aggregated link corresponding to the sending mode and at least one link in the aggregated link can be determined. This at least one link is the link specifically used by the sending mode for sending service messages. For example, the communication device 100a includes a memory (not shown in the figure), and the sending mode table is stored in the memory. Before sending multiple second service messages, the data processing circuit 110 determines the sending mode of the multiple second service messages by querying the sending mode table according to the values ​​of the sending mode field of the multiple second service messages, and finally sends the multiple second service messages according to the sending mode of the multiple second service messages. For example, the communication device 100a may also include a buffer, and the sending mode table is stored in the buffer. Specifically, the memory or buffer can be set in the data processing circuit 110, or it can be set independently of the data processing circuit 110.

[0126] For example, the communication device 100a may provide a software interface through which a transmission mode table can be configured, i.e., the transmission mode table can be configured manually.

[0127] In some implementations, multiple first service packets may belong to the same data stream. Multiple service packets belonging to the same data stream means that the multiple service packets belong to an ordered sequence of bytes, which has a start and an end point. For example, the aforementioned multiple first service packets belong to a first data stream. A first service packet may include a sequence number field, the value of which is used to identify the transmission order of the corresponding first service packet in the first data stream. That is, the sequence number field values ​​of multiple first service packets in the same data stream are different. For example, the sequence number field values ​​of multiple first service packets in the same data stream may increase according to the transmission order of the first service packets in the data stream. For example, the sequence number field value of a first service packet sent earlier in the same data stream is less than the sequence number field value of a first service packet sent later, and the sequence number field values ​​of two adjacent first service packets differ by 1.

[0128] For example, since communication device 100a receives multiple first service messages from the upper-level device through multiple first interfaces J1, these multiple first service messages are also sent by the upper-level device, i.e., first device 210, through the aggregation link. If the received multiple first service messages include at least two duplicate service messages, and the sequence number field values ​​in the duplicate service messages carrying the same data are the same, the data processing circuit 110 of communication device 100a can be used to deduplicate the multiple first service messages according to the values ​​of the sequence number field in the multiple first service messages.

[0129] For example, the first device 210 sends multiple first service packets to the communication device 100a in a redundant transmission mode. This means that a data stream containing these multiple first service packets is repeatedly sent to the communication device 100a through at least two of the multiple second interfaces. In this case, the communication device 100a receives at least two duplicate service packets from the multiple first interfaces J1. This means that the at least two duplicate service packets carry the same service data, and the sequence number field values ​​of the at least two duplicate service packets are the same. The data processing circuit 110 can determine whether the multiple first service packets are duplicates based on whether the sequence number field values ​​are the same. If multiple first service packets have the same sequence number field value, one first service packet can be retained and forwarded, achieving data deduplication at the non-application layer. Therefore, in the redundant transmission mode, the possibility of traffic storms caused by transmitting duplicate packets on multiple links between the two devices is reduced, avoiding eventual service unavailability.

[0130] Specifically, if three links are established between the first device 210 and the communication device 100a, and the first device 210 sends six first service packets to the communication device 100a through these three links in a redundant transmission mode, the communication device 100a will receive 18 first service packets. If the communication device 100a does not deduplicate, it will send 18 second service packets obtained by processing these 18 first service packets to the second device 220 in a single service packet multi-interface transmission mode. In this way, the next-level device will send more and more service packets, forming a traffic storm. By deduplicating the multiple first service packets at the non-application layer according to the value of the sequence number field of the multiple first service packets, the traffic storm can be avoided. At the same time, deduplication at the non-application layer can also reduce forwarding latency. Therefore, before processing multiple first service messages to obtain multiple second service messages through the data processing circuit, the data processing circuit 110 can deduplicate the multiple first service messages according to the value of the sequence number field in the multiple first service messages, which can improve the message forwarding performance of the communication device 100a.

[0131] For example, the data processing circuit 110 of the communication device 100a can be used to sequentially send multiple second service packets corresponding to the multiple first service packets on multiple second interfaces according to the values ​​of the sequence number field in the multiple first service packets. Based on this, the communication device 100a can reorder the multiple first service packets according to the values ​​of the sequence number field on the packet forwarding path, process the multiple first service packets after reordering to obtain multiple second service packets, and finally send the multiple second service packets.

[0132] For example, the first device 210 sends multiple first service packets to the communication device 100a in a packet-by-packet transmission mode. This means the multiple first service packets are sent to the communication device 100a through at least two of the multiple interfaces of the first device 210, with each first service packet being sent through a corresponding interface. The different transmission media connected to the multiple interfaces of the first device 210 will result in different transmission delays on the link. Although the first device 210 sends the multiple first service packets sequentially according to their order in the data stream, the order in which the multiple first service packets are transmitted to the communication device 100 may be disrupted, causing out-of-order delivery. In this case, the communication device 100a needs to request the first device 210 to retransmit, causing a deterioration in the throughput of the communication device 100a and affecting the transmission rate. Therefore, when the data processing circuit 110 of the communication device 100a can directly implement reordering through hardware, it can sort the received out-of-order multiple first service packets, avoiding the communication device 100a requesting the first device 210 to retransmit, thus improving the throughput of the communication device 100a.

[0133] Furthermore, after sorting the received multiple first service messages, sending multiple second service messages to the second device 220 through multiple second interfaces J2 allows the multiple second service messages to be sent sequentially on multiple second interfaces J2 according to the values ​​of the sequence number field in the multiple second service messages. Therefore, the possibility that the next-level device, i.e., the second device 220, receives multiple out-of-order first service messages and has no reordering function, and thus requests the communication device 100a to retransmit them, can be reduced.

[0134] For example, the sequence number field may be set in the network layer header, data link layer header, physical layer header, or transport layer header of the first service message and / or the second service message.

[0135] For example, the data processing circuit 110 can determine whether redundancy removal or reordering is needed based on the value of the transmission mode field in the received multiple first service packets. For instance, if the value of the transmission mode field indicates that the transmission mode of the first service packet is per-stream transmission, then redundancy removal or reordering is not needed; if the value of the transmission mode field indicates that the transmission mode of the first service packet is per-packet transmission, then reordering can be performed based on the value of the sequence number field; if the value of the transmission mode field indicates that the transmission mode of the first service packet is redundant transmission, then redundancy removal can be performed based on the value of the sequence number field.

[0136] In some implementations, when the data processing circuit 110 processes multiple first service packets to obtain multiple second service packets, the data processing circuit 110 may also query the forwarding rule table based on the feature information of the first service packets to determine the packet editing action, and process the multiple first service packets according to the packet editing action to obtain multiple second service packets. The feature information of the first service packet may consist of specific fields of one or more of the following headers: network layer header, data link layer header, physical layer header, or transport layer header. A first service packet can be uniquely identified through the feature information. The forwarding rule table includes the feature information of the first service packet and the corresponding packet editing action, thereby allowing the packet editing action to be determined based on the feature information.

[0137] For example, as can be seen from the foregoing, the values ​​of the aggregation link number field and the transmission mode field of multiple first service packets and multiple second service packets may be different. Therefore, the packet editing action may include editing the value of the aggregation link number field and / or the value of the transmission mode field. In addition, the packet editing action may also include editing the source MAC address and destination MAC address, IP address, transport layer port number, etc., which will not be elaborated further in this application.

[0138] For example, the message editing action can be determined by an algorithm, such as a routing algorithm. The communication device 100a may include a processor, and the algorithm for determining the message editing action can be run by the processor.

[0139] In some implementations, please refer to Figure 10 , Figure 10 This is provided by the embodiments of this application. Figure 5 The communication device 100a includes a schematic diagram of a sub-circuit of a data processing circuit 110. The communication device 100a may include software (SW) and hardware (SW).

[0140] For example, the hardware HW includes the aforementioned plurality of first interfaces J1, plurality of second interfaces J2, and data processing circuit 110. The data processing circuit 110 may include a first port scheduling sub-circuit 111, a first aggregation link sub-circuit 112, a packet forwarding and editing sub-circuit 113, a second aggregation link sub-circuit 114, and a second port scheduling sub-circuit 115. The first port scheduling sub-circuit 111, the first aggregation link sub-circuit 112, the packet forwarding and editing sub-circuit 113, the second aggregation link sub-circuit 114, and the second port scheduling sub-circuit 115 may be connected sequentially. The first port scheduling sub-circuit 111 may also be connected to the plurality of first interfaces J1, and the second port scheduling sub-circuit 115 may also be connected to the plurality of second interfaces J2.

[0141] The first port scheduling subcircuit 111 is used to receive multiple first service packets and transmit the received multiple first service packets to the first aggregation link subcircuit 112. After receiving multiple first service packets, the first port scheduling subcircuit 111 can apply for entry buffer space for each first service packet. If some of the multiple first service packets belong to different data streams, the multiple first service packets can be prioritized and enqueued according to the priority of the data streams. The first port scheduling subcircuit 111 can also read part or all of the information in the packet header of multiple first service packets, so as to avoid carrying the service information in the first service packets when processing in the data processing circuit 110, thereby improving the packet forwarding efficiency. For ease of description, in the embodiments of this application, during the processing of the data processing circuit 110, depending on the specific situation, the first service packet can refer to the first service packet itself, or it can refer to part or all of the information in the packet header of the first service packet. It is easy to understand that the communication device 100a may not receive the first service message, that is, the service message not received from multiple first interfaces J1. In this case, the service message can be directly sent to the message forwarding and editing sub-circuit 113 for processing.

[0142] The first aggregation link sub-circuit 112 receives multiple first service packets from the first port scheduling sub-circuit 111, providing a first aggregation port for the multiple first service packets. The first aggregation port corresponds to the first value of the aggregation link number field. As mentioned above, the value of the aggregation link number field can be configured through an interface. Therefore, the first aggregation link sub-circuit 112 can receive the value of the aggregation link number field and identify the corresponding aggregation link, that is, identify the aggregation port corresponding to the aggregation link, through the value of the aggregation link number field. Thus, the first aggregation link sub-circuit 112 can shield multiple first interfaces J1 that receive multiple first service packets, providing a unified network port for data interaction between the first device 210 and the communication device 100a. Through this network port, the traffic of each link in the aggregation link can be uniformly scheduled and processed.

[0143] The message forwarding and editing sub-circuit 113 is connected to the first aggregation link sub-circuit 112 and is used to edit multiple first service messages into multiple second service messages. The message forwarding and editing sub-circuit 113 can receive a forwarding rule table, query the forwarding rule table using the characteristic information of each first service message, obtain the corresponding message editing action, and process the first service message according to the obtained message editing action to obtain the second service message. As mentioned above, processing the first service message to obtain the second service message may include editing the value of the aggregation link number field and the value of the sending mode field. Furthermore, the message forwarding and editing sub-circuit 113 can also determine the output port of the second service message according to the forwarding rule table. It is easily understood that after receiving a first service message, the communication device 100a may output service messages through multiple output ports. Therefore, if the service message is a second service message, that is, if querying the forwarding rule table determines that the output port of the service message is the aggregation link corresponding to multiple second interfaces J2, then the service message is output to the second aggregation link sub-circuit 114.

[0144] The second aggregation link sub-circuit 114 is connected to the message forwarding and editing sub-circuit 113, receives multiple second service messages, and provides a second aggregation port for these messages. The second aggregation port corresponds to the second value of the aggregation link number field. The second aggregation link sub-circuit 114 provides a second aggregation port for multiple second interfaces J2, thereby shielding multiple second interfaces J2 during message forwarding and providing a unified network port for data interaction between the second device 220 and the communication device 100a. Furthermore, the second aggregation link sub-circuit 114 can query a transmission mode table based on the value of the transmission mode field in the second service message to obtain the transmission mode, and perform pre-transmission processing on the multiple second service messages according to the obtained transmission mode. For example, if the transmission mode is redundant transmission, the second aggregation link sub-circuit 114 copies the multiple second service messages.

[0145] The second port scheduling subcircuit 115 is connected to the second aggregation link subcircuit 114 and multiple second interfaces J2. It receives multiple second service packets from the second aggregation link subcircuit 114 and sends multiple second service packets to the second device through the multiple second interfaces J2. If the second service packet is represented by part or all of the information in the packet header, the second port scheduling subcircuit 115 can transfer the second service packet containing service data to the egress buffer space according to the part or all of the information, realize priority scheduling and dequeueing, and send it to the multiple second interfaces J2 according to the sending mode determined by the second aggregation link subcircuit 114.

[0146] For ease of explanation, the first port scheduling sub-circuit 111 and the second port scheduling sub-circuit 115 are described separately in this embodiment. However, since the forwarding of service packets is bidirectional, one of the first port scheduling sub-circuit 111 and the second port scheduling sub-circuit 115 may have the function of the other. Alternatively, the first port scheduling sub-circuit 111 and the second port scheduling sub-circuit 115 may be a single circuit, which may simultaneously have the functions of both the first port scheduling sub-circuit 111 and the second port scheduling sub-circuit 115.

[0147] Similarly, one of the first aggregation link sub-circuit 112 and the second aggregation link sub-circuit 114 may have the function of the other, or the first aggregation link sub-circuit 112 and the second aggregation link sub-circuit 114 may be a single circuit that can simultaneously have the functions of the first aggregation link sub-circuit 112 and the second aggregation link sub-circuit 114.

[0148] Furthermore, the circuits or sub-circuits involved in this embodiment can also be processing modules or processing units. For example, the data processing circuit 110 can also be a data processing module or a data processing unit.

[0149] In addition, the data processing circuit 110 may also include a redundancy removal or reordering sub-circuit 116, a redundancy removal or reordering sub-circuit 116 and a first aggregation link sub-circuit 112. After receiving multiple first service packets, the first aggregation link sub-circuit 112 sends the first service packets to the redundancy removal or reordering sub-circuit 116 or the packet forwarding and editing sub-circuit 113 according to the value of the sending mode field in the first service packet. For example, if the value of the sending mode field indicates that the sending mode of the first service packet is a redundancy sending mode, then the first service packet is sent to the redundancy removal or reordering sub-circuit 116 for deduplication; if the value of the sending mode field indicates that the sending mode of the first service packet is a packet-by-packet sending mode, then the first service packet is sent to the redundancy removal or reordering sub-circuit 116 for reordering; if the value of the sending mode field indicates that the sending mode of the first service packet is a stream-by-stream sending mode, then the first service packet is directly sent to the packet forwarding and editing sub-circuit 113. It is easy to understand that the deduplication or reordering sub-circuit 116 can send the deduplicated or reordered message back to the first aggregation link sub-circuit 112 for further processing.

[0150] For example, the software SW may include an aggregation link management module 121 and a forwarding rule management module 122.

[0151] For example, the functionality of the aggregation link management module 121 is supported by hardware from the first aggregation link sub-circuit 112 and the second aggregation link sub-circuit 114. The aggregation link management module 121 can provide virtual interfaces for aggregation links. For example, it can provide virtual interfaces for aggregation links corresponding to multiple first interfaces J1, meaning one aggregation link corresponds to one virtual interface. Traffic on the corresponding aggregation link can be monitored through this virtual interface. Simultaneously, the value of the aggregation link number field corresponding to an aggregation link can also be managed by the aggregation link management module 121. The aggregation link management module 121 can distribute the value of the aggregation link number field to the first aggregation link sub-circuit 112 and / or the second aggregation link sub-circuit 114. The first aggregation link sub-circuit 112 provides one aggregation link for multiple first interfaces J1, and the second aggregation link sub-circuit 114 provides another aggregation link for multiple second interfaces J2. In addition, the aggregation link management module 121 can also send a transmission mode table to the first aggregation link sub-circuit 112 and / or the second aggregation link sub-circuit 114, so that the first aggregation link sub-circuit 112 and / or the second aggregation link sub-circuit 114 can determine the transmission mode according to the value of the transmission mode field in the second service message, so that the second service message can be sent in multiple transmission modes on multiple second interfaces J2.

[0152] For example, the functionality of the aggregation link management module 121 is supported by hardware from the packet forwarding and editing sub-circuit 113. The forwarding rule management module 122 can distribute forwarding rule tables to the packet forwarding and editing sub-circuit 113. These tables may include characteristic information of the first service packet. By querying this characteristic information in the forwarding rule table, the packet editing action for the first service packet can be obtained. As mentioned earlier, the packet editing action may include modifying the value of the aggregation link number field of the first service packet, and determining the first aggregation port of the aggregation link corresponding to the first service packet and the second aggregation port of the aggregation link corresponding to the second service packet—that is, determining the ingress and egress ports of the service packets. The forwarding rule management module 122 can dynamically adjust the forwarding rule table using software algorithms based on actual conditions, such as the traffic volume on each link, thereby improving the performance of the communication device 100.

[0153] Please continue reading Figure 11 , Figure 11 This is provided by the embodiments of this application. Figure 5 The diagram illustrates the communication device 100a including other interfaces. The communication device 100a may also include multiple third interfaces J3 and multiple fourth interfaces J4. The multiple third interfaces J3 can connect to the third device 230 via multiple third transmission media, and the multiple fourth interfaces J4 can connect to the fourth device 240 via multiple fourth transmission media. The multiple third and fourth transmission media can refer to the configuration of multiple first or multiple second transmission media, but their configuration is not required to be identical. Furthermore, the embodiments of this application do not limit the quantitative relationship between the multiple first interfaces J1, multiple second interfaces J2, multiple third interfaces J3, and multiple fourth interfaces J4.

[0154] Multiple third interfaces J3 can receive multiple third service messages from the third device 230. The data processing circuit 110 of the communication device 100a can process the multiple third service messages to obtain multiple fourth service messages, and send the multiple fourth service messages to the fourth device 240 through multiple fourth interfaces J4.

[0155] Similarly, multiple third service messages may include an aggregated link number field. The aggregated link number field of these messages has a third value. Based on this third value, the data processing circuit 110 provides a third aggregation port for the multiple third interfaces J3. That is, multiple links formed by various transmission media connected to the multiple third interfaces J3 constitute a single aggregated link, and the third aggregation port is the network port corresponding to this aggregated link. Thus, during message forwarding, multiple third interfaces J3 are shielded, providing a unified network port for data interaction between the third device 230 and the communication device 100a.

[0156] Multiple fourth service messages may also include an aggregation link number field. The aggregation link number field of multiple fourth service messages has a fourth value. Based on the fourth value of the aggregation link number field, the data processing circuit 110 provides a fourth aggregation port for multiple fourth interfaces J4. That is, multiple links formed by various transmission media connected to multiple fourth interfaces J4 constitute a single aggregation link, and the fourth aggregation port is the network port corresponding to this aggregation link. Thus, during message forwarding, multiple fourth interfaces J4 are shielded, providing a unified network port for data interaction between the fourth device 240 and the communication device 100a.

[0157] Therefore, communication device 100a can forward packets from aggregated links corresponding to multiple third interfaces J3 to aggregated links corresponding to multiple fourth interfaces J4. It is readily understood that communication device 100a can forward packets between any two of the aggregated links corresponding to multiple first interfaces J1, multiple second interfaces J2, multiple third interfaces J3, and multiple fourth interfaces J4. For example, it can send service packets from the aggregated links corresponding to multiple third interfaces J3 to the aggregated links corresponding to multiple first interfaces J1; or, for example, it can send service packets from the aggregated links corresponding to multiple third interfaces J3 to the aggregated links corresponding to multiple second interfaces J2. It is readily understood that communication device 100a may include more interfaces, which will not be elaborated further in this embodiment.

[0158] Furthermore, since a communication device 100a can connect to other devices through multiple aggregation links, it is necessary for the communication device 100a to communicate with multiple devices in the network to establish these aggregation links. For example, the communication device 100a can receive a first service message from the first device 210. The first service message is used to establish an aggregation link between the first device 210 and the communication device 100a. To distinguish it from the first service message forwarded by the communication device 100a, the first service message may include a frame type field. The value of the frame type field can identify the content of the first service message. For example, a first value for the frame type field indicates that the content of the first service message is service data, and a second value for the frame type field indicates that the content of the first service message is control data, used to establish an aggregation link between the first device 210 and the communication device 100a.

[0159] In a network configuration, multiple aggregated links may be included. Since each aggregated link corresponds to a value in the aggregated link number field, a value for the aggregated link number field needs to be assigned to each aggregated link in the network configuration, and this value uniquely corresponds to one aggregated link. For example, the value of the aggregated link number field can be assigned by communication device 100a or by other devices in the same network as communication device 100a.

[0160] Therefore, the first service message and / or the second service message may include one or more of the following: aggregated link number field, transmission mode field, sequence number field, or frame type field. Specifically, when the first service message and / or the second service message includes one of the aforementioned fields, the first service message and / or the second service message includes the aggregated link number field.

[0161] Example 2

[0162] Please see Figure 12 , Figure 12 This is a schematic diagram of another communication device 100b provided in this application embodiment. The difference between this embodiment and embodiment 1 is that the communication device 100b is connected to the first device 210 through a first interface J1.

[0163] For example, the communication device 100b may include a first interface J1, a plurality of second interfaces J2, and a data processing circuit 110. The first interface J1, the data processing circuit 110, and the plurality of second interfaces J2 are connected in sequence. The first interface J1 can be connected to the first device 210 through a transmission medium, and the plurality of second interfaces J2 can be connected to the second device 220 through various second transmission media.

[0164] A first interface J1 can receive multiple first service packets and send them to a data processing circuit 110. The data processing circuit 110 processes the multiple first service packets to obtain multiple second service packets. The multiple second service packets, compared to the multiple first service packets, also include one or more of the following: an aggregated link number field, a transmission mode field, a sequence number field, or a frame type field. Specifically, when a second service packet includes only one of the aforementioned fields, it includes an aggregated link number field. In other words, processing multiple first service packets to obtain multiple second service packets involves adding one or more of the following fields to the multiple first service packets: an aggregated link number field, a transmission mode field, a sequence number field, or a frame type field.

[0165] Therefore, when the communication device 100a forwards data, the data processing circuit 110 provides a second aggregation port for multiple second interfaces J2 according to the value of the aggregation link number field, so as to realize the forwarding of messages from a first interface J1 to multiple second interfaces J2, that is, to realize the forwarding of messages from non-aggregated links to aggregated links.

[0166] Please see Figure 13 , Figure 13 This is a schematic diagram of a sub-circuit of the data processing circuit 110 included in the communication device 100b. Since the communication device 100b receives multiple first service messages through only one first interface J1, the multiple first messages do not include an aggregation link number field, and the data processing circuit 110b does not need to provide an aggregation port for the first interface J1. Based on this, compared to... Figure 10 In this embodiment, the data processing circuit 110b may not include the first aggregation link sub-circuit 112 and the redundancy removal and rearrangement sub-circuit 116. However, it is readily understood that... Figure 10 The embodiments described herein are compatible with this embodiment to achieve packet forwarding from a non-aggregated link to an aggregated link. For example, communication device 100a connects to another device through only one interface (different from the first interface) and receives multiple service packets through this interface. After the data processing circuit 110a of communication device 100a receives multiple service packets through this interface, the first port scheduling subcircuit 111 parses the multiple service packets. Since the service packets do not include the aggregated link number field, the service packets are directly sent to the packet forwarding editing subcircuit 113 for subsequent forwarding processing. The packet forwarding editing subcircuit 113 can also process multiple service packets by querying the forwarding rule table to obtain the packet editing actions corresponding to each of the multiple service packets, and process the corresponding service packets according to the packet editing actions. This processing includes adding one or more of the aggregated link number field, the sending mode field, the sequence number field, or the frame type field.

[0167] Based on packet forwarding from non-aggregated links to aggregated links, it is also possible to enable packet exchange between two terminals via aggregated links.

[0168] Please see Figure 14 For example, the first terminal 310 and the second terminal 320 are connected via multiple transmission media. The first terminal 310 includes a first processing chip and a first message forwarding chip (not shown in the figure). The first message forwarding chip includes multiple first interfaces, each corresponding to a different transmission medium, and is connected to the second terminal 320 via these media. The first processing chip is connected to the first message forwarding chip, and the first message forwarding chip can receive service messages from it. In this case, the first processing chip can be equivalent to the first device 210, and the first message forwarding chip can be equivalent to the communication device 100b, thus enabling the first terminal 310 to transmit messages from a non-aggregated link to an aggregated link. Both the first terminal 310 and the second terminal 320 can be electronic devices such as mobile phones, tablets, or laptops.

[0169] Example 3

[0170] Please see Figure 15 , Figure 15 This is a schematic diagram of another communication device 100c provided in this application embodiment. The difference between this embodiment and embodiment 1 is that the communication device 100c is connected to the second device 220 through a second interface J2.

[0171] For example, the communication device 100c may include a plurality of first interfaces J1, a second interface J2, and a data processing circuit 110. The plurality of first interfaces J1, the data processing circuit 110c, and the second interface J2 are connected in sequence. The plurality of first interfaces J1 can be connected to the first device 210 through various transmission media, and the second interface J2 can be connected to the second device 220 through a transmission medium.

[0172] Multiple first interfaces J1 can receive multiple first service messages from the second device 220 and send the multiple first service messages to the data processing circuit 110c. The data processing circuit 110c processes the multiple first service messages to obtain multiple second service messages.

[0173] Multiple first service messages may include an aggregated link number field. The aggregated link number field of multiple first service messages has the same value, i.e., it is the first value. The value of the aggregated link number is used to identify the aggregated link formed by multiple transmission media connected to multiple first interfaces J1. Based on the value of the aggregated link number field, the data processing circuit 110c provides a first aggregation port for the multiple first interfaces J1. That is, multiple links formed by multiple transmission media connected to the multiple first interfaces J1 constitute one aggregated link, and the first aggregation port is the network port corresponding to this aggregated link. Therefore, during message forwarding, multiple first interfaces J1 receiving multiple first service messages can be shielded, providing a unified network port for data interaction between the first device 210 and the communication device 100c.

[0174] Multiple first service messages, compared to multiple second service messages, include one or more of the following: an aggregated link number field, a transmission mode field, a sequence number field, or a frame type field. Wherein, when a first service message includes only one of the aforementioned fields, the first service message includes the aggregated link number field. The data processing circuit 110c processes the multiple first service messages to obtain multiple second service messages, including deleting one or more of the aggregated link number field, transmission mode field, sequence number field, or frame type field from the multiple first service messages. In other words, the second service messages do not include any of the aggregated link number field, transmission mode field, sequence number field, or frame type field.

[0175] Therefore, when the communication device 100c forwards data, the data processing circuit 110c provides a first aggregation port for multiple first interfaces J1 according to the value of the aggregation link number field in multiple first service messages, so as to realize the message forwarding from multiple first interfaces J1 to a second interface J2, that is, to realize the message forwarding from the aggregation link to the non-aggregation link.

[0176] Please see Figure 16 , Figure 16This is a schematic diagram of a sub-circuit of a data processing circuit 110c included in a communication device 100c. Since the communication device 100c sends multiple second service messages through a second interface J2, the multiple second messages do not include an aggregation link number field, and the data processing circuit 110c does not need to provide an aggregation port for the second interface J2. Based on this, compared to... Figure 10 In this embodiment, the data processing circuit 110c may not include the second aggregation link sub-circuit 114. However, it is readily understood that... Figure 10 The communication device 100a in this embodiment is compatible with the communication device 100c to achieve packet forwarding from aggregated links to non-aggregated links. For example, the communication device 100a connects to another device through only one interface and sends multiple service packets through this interface. This interface may be different from multiple second interfaces J2 and / or multiple fourth interfaces J4. The data processing circuit 110a of the communication device 100a receives multiple service packets, and the packet forwarding editing sub-circuit 113 determines that the interface for forwarding multiple service packets is one interface. Therefore, the packet forwarding editing sub-circuit 113 processes multiple service packets by deleting the aggregated link number field, transmission mode field, sequence number field, or frame type field from the multiple service packets, and then directly sends the processed service packets to the second port scheduling sub-circuit 115 for forwarding processing. The message forwarding and editing sub-circuit 113 can also handle multiple service messages by querying the forwarding rule table to obtain the message editing actions corresponding to each service message, and process the corresponding service messages according to the message editing actions. This processing includes deleting one or more of the aggregation link number field, sending mode field, sequence number field, or frame type field.

[0177] Based on packet forwarding from aggregated links to non-aggregated links, it is also possible to enable packet exchange between two terminals via aggregated links.

[0178] Please continue reading Figure 14 For example, the first terminal 310 and the second terminal 320 are connected via multiple transmission media. The second terminal 320 includes a second processing chip and a second message forwarding chip (not shown in the figure). The second message forwarding chip includes multiple second interfaces, each corresponding to a different transmission medium, and is connected to the first terminal 310 via these media. The second processing chip is connected to the second message forwarding chip and can receive service messages from it. In this case, the second processing chip can function as a second device 220, and the second message forwarding chip can function as a communication device 100c, thus enabling the second terminal 320 to transmit messages from an aggregated link to a non-aggregated link. Both the first terminal 310 and the second terminal 320 can be electronic devices such as mobile phones, tablets, or laptops.

[0179] The communication devices in Embodiments 1 to 3 of this application can operate below the network layer and can be used for data forwarding at the service message level. These communication devices can be various types of communication devices such as routers, gateways, and switches, or they can be chips or chip systems. When the communication device is a chip system, it can be composed of chips or may include chips and other discrete components; this application does not specifically limit this. For example, it can be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0180] Example 4

[0181] Please see Figure 17 , Figure 17 This is a flowchart illustrating a communication method provided in an embodiment of this application. The communication method is executed by a communication device or a chip within the communication device, for example, any of the communication devices described in Embodiments 1 to 3. The communication device or chip executing the communication method includes: one or more first interfaces, a data processing circuit, and one or more second interfaces. The one or more first interfaces are connected to a first device and the data processing circuit, and the one or more second interfaces are connected to the data processing circuit and the second device. The communication method includes the following steps:

[0182] S10, One or more first interfaces receive multiple first service messages from the first device.

[0183] After receiving multiple first service messages from a first device, one or more first interfaces transmit the received first service messages to a data processing circuit. It is easily understood that the multiple first service messages received by the one or more first interfaces are transmitted via a transmission medium, and different transmission media have corresponding transmission protocols. Therefore, the one or more first interfaces can parse the multiple first service messages.

[0184] For example, multiple first service packets can be received from a first device through multiple first interfaces, where the transmission media connected to the multiple first interfaces are different or partially the same. Each of the multiple first interfaces parses the first service packets transmitted through its respective connected transmission medium and transmits the parsed first service packets to the data processing circuit.

[0185] S20: The data processing circuit processes multiple first service messages to obtain multiple second service messages.

[0186] One or more first interfaces are connected to a data processing circuit. After receiving multiple first service messages, the one or more first interfaces transmit the multiple first service messages to the data processing circuit. The data processing circuit processes the multiple first service messages to obtain multiple second service messages. In this application, the first service messages and the second service messages can be used to distinguish between the two types of messages before and after processing by the data processing circuit.

[0187] For example, multiple first service packets are received through multiple first interfaces, and the data processing circuit can process the multiple first service packets to obtain multiple second service packets. The multiple first service packets may include an aggregation link number field, and the aggregation link number field of the multiple first service packets has the same value, that is, the aggregation link number field of the multiple first service packets all has the same value, which is the first value. The value of the aggregation link number is used to identify the aggregation link formed by the multiple transmission media connected to the multiple first interfaces. Based on the value of the aggregation link number field, the data processing circuit provides a first aggregation port for the multiple first interfaces; that is, the multiple links formed by the multiple transmission media connected to the multiple first interfaces constitute a single aggregation link, and the first aggregation port is the network port corresponding to this aggregation link.

[0188] S30. One or more second interfaces send multiple second service messages to the second device.

[0189] After the data processing circuit processes multiple first service messages to obtain multiple second service messages, it sends the multiple second service messages to one or more second interfaces for message forwarding.

[0190] For example, multiple second service messages are sent through multiple second interfaces. These multiple second service messages may also include an aggregated link number field, where the aggregated link number field has a second value. Based on this second value, the data processing circuit provides a second aggregation port for the multiple second interfaces. That is, multiple links formed by various transmission media connected to the multiple second interfaces constitute a single aggregated link, and the second aggregation port is the network port corresponding to this aggregated link. Thus, during message forwarding, multiple second interfaces are shielded, providing a unified network port for data interaction between the second device and the communication device.

[0191] Therefore, when forwarding messages, the data processing circuit provides a first aggregation port for multiple first interfaces that receive multiple first service messages and a second aggregation port for multiple second interfaces that send multiple second service messages. This enables message forwarding from multiple first interfaces to multiple second interfaces and sending multiple second service messages to a second device through multiple second interfaces. In other words, multiple first service messages are received through the first aggregation port and multiple second service messages are sent through the second aggregation port, thus realizing data forwarding from aggregation link to aggregation link.

[0192] For details regarding the sub-steps and other possible implementations of the communication method provided in this application, please refer to the description of the foregoing embodiments, which will not be repeated here. Those skilled in the art can also implement packet forwarding from non-aggregated links to aggregated links, and from aggregated links to non-aggregated links, based on the disclosure of this application.

[0193] Example 5

[0194] Based on the communication devices in Embodiments 1 to 3, this application also provides a method for forming a transmission network through multiple communication devices.

[0195] A transmission network formed by multiple communication devices can include various topologies. For example, please refer to [link to example]. Figure 18 , Figure 18 The transmission network includes five communication devices, namely communication devices A through E. Communication device A is simultaneously connected to communication devices B and C. Communication device B is also connected to communication device D, and communication device C is also connected to communication device E. For an example, please refer to [link to example]. Figure 19 , Figure 19 The transmission network is a star network, which includes five communication devices, namely communication devices A through E. Communication device A is connected to the other four communication devices. Figure 18 and Figure 19 In the transmission network, multiple transmission media can be set between any two devices, and multiple transmission media can form multiple transmission links, which can form aggregated links.

[0196] As discussed above, two communication devices can be connected via multiple transmission media, forming a converged link. One communication device can connect to multiple other communication devices, thus establishing multiple converged links on a single device. For example, Figure 18 The primary communication device and two secondary communication devices each establish two aggregation links. Therefore, it is necessary to distinguish between these aggregation links to forward service packets from one aggregation link to another. For example, each aggregation link can be assigned an aggregation link number, which uniquely identifies an aggregation link within a transport network.

[0197] Therefore, in the process of forming a transmission network through multiple communication devices, a unique aggregation link number needs to be assigned to each aggregation link. See also... Figure 20 The method for forming a transmission network from multiple communication devices includes the following steps:

[0198] S100, Request allocation of aggregate link number.

[0199] Before establishing a transmission network, it is necessary to assign aggregation link numbers to the aggregation links in the transmission network. When transmitting service messages through the aggregation link corresponding to the aggregation link number, the service message may include an aggregation link number field. The value of the aggregation link number field corresponds to or is the same as the aggregation link number.

[0200] For example, requesting the allocation of an aggregated link number may include the following steps:

[0201] S110. Communication device B sends a first message to communication device A. Communication device A is an aggregation link management device. The first message is used to request an aggregation link number. The aggregation link number is used to identify an aggregation link established on communication device B.

[0202] Communication device A is an aggregation link management device used to manage aggregation links in the transmission network, ensuring that each aggregation link uniquely corresponds to an aggregation link number. Therefore, when establishing an aggregation link between two data transmission devices, one of the two data transmission devices needs to send a first message to the first communication device to request the aggregation link number. The two data transmission devices that need to establish the aggregation link may not include communication device A.

[0203] For example, the first message may include device identifiers of the two data transmission devices to which the aggregation link is to be established, so that when both data transmission devices send the first message to communication device A, communication device A may respond to only one of the two data transmission devices. This avoids assigning multiple aggregation link numbers to the same aggregation link.

[0204] For example, the first message may be a service message, and the service message includes a frame type field. The value of the frame type field is used to identify the type of the service message. For example, when the value of the frame type field is the first value, it is used to identify that the service message is a service message used for networking, such as the first message.

[0205] S120, Communication device B receives a second message from communication device A, the second message including the first aggregated link number.

[0206] The first aggregated link number is the aggregated link number assigned by communication device A to the aggregated link established on communication device B.

[0207] S200, Communication device B sends a third message to communication device A or communication device C through a link. The third message is used to request that the link that sent the third message be added to the aggregated link, which corresponds to the first aggregated link number.

[0208] For example, the third message sent may include the first aggregated link number. Thus, communication device A or communication device C can also obtain the aggregated link number corresponding to the established aggregated link. When communication device A or communication device C sends a service message through the aggregated link, it can process the service message, for example, modify the value of the aggregated link number field of the service message to the aggregated link number.

[0209] For example, after sending the third message, communication device B also needs to receive a response message from communication device A or communication device C to confirm that communication device A or communication device C can establish the aggregated link. After receiving the response message, communication device B sends a confirmation message to communication device A or communication device C to confirm that the link that sent the third message is bound to the aggregated link.

[0210] By repeating step S200, multiple links between two communication devices can be bound to an aggregated link, thereby establishing an aggregated link. It is easy to understand that if multiple links connect two communication devices, the aggregated link established between them can include only some of those links, or it can include all the links connecting the two communication devices.

[0211] S300. In some embodiments, after communication device B adds the link sending the third message to the aggregated link by sending a third message, communication device B can also send a fourth message to communication device A. The fourth message is used to notify that the link that has completed sending the third message is bound to the aggregated link. In this way, communication device A can manage the aggregated link corresponding to the aggregated link number and the links included in the aggregated link.

[0212] In some implementations, communication device B can also send a link deletion message to communication device A or communication device C via a link. This link deletion message requests the removal of the link from the aggregated link. For example, after communication device B removes the link from the aggregated link by sending a link deletion message, it can also send a fifth message to communication device A. This fifth message notifies that the removal of the link from the aggregated link is complete.

[0213] In some embodiments, see Figure 21 This application also provides a schematic structural diagram of a communication device 700, which may include one of the following: a terminal device or a source network device. Figure 21The communication device 700 shown may include a processor 710 and a memory 720. The memory 720 stores a computer program or instructions that can run on the processor 710 to cause the communication device to perform any of the possible methods in the above embodiments, including a communication method. Specifically, the method may be performed by the processor 710 or by only the data processing circuit described above.

[0214] For example, the memory 720 may be a separate device independent of the processor 710, or it may be integrated into the processor 710.

[0215] For example, such as Figure 21 As shown, the communication device 700 may also include a transceiver 730, and the processor 710 may control the transceiver 730 to communicate with other devices. Specifically, it may send information or data to other devices or receive information or data sent by other devices.

[0216] The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include antennas, and the number of antennas may be one or more.

[0217] In some embodiments, this application also provides a non-transitory computer storage medium including computer instructions. When the computer instructions are executed on the communication device, communication equipment, or chip in the communication device, the communication device, communication equipment, or chip in the communication device executes any possible method in the above-described plurality of embodiments, including a communication method.

[0218] In some embodiments, this application also provides a program product, which includes a computer program or instructions; when the computer program or instructions are run by a communication device, communication equipment, or a chip in the communication equipment, the communication device, communication equipment, or chip in the communication equipment executes any of the possible methods in the above-described plurality of embodiments, including a communication method.

[0219] In some embodiments, this application also provides a chip. Figure 22 This is a schematic structural diagram of a chip according to an embodiment of this application. Figure 22 The chip 800 shown includes a processor 810, which is used to retrieve and run computer programs or instructions from memory to implement any of the possible methods in the above embodiments, including communication methods.

[0220] For example, such as Figure 22 As shown, chip 800 may further include memory 820, which is coupled to processor 810. Processor 810 can retrieve and execute computer programs or instructions from memory 820. When the program or instructions are executed by the processor, the chip performs any possible method in the above embodiments, including communication methods.

[0221] The memory 820 can be a separate device independent of the processor 810, or it can be integrated into the processor 810.

[0222] For example, the chip 800 may also include an input interface 830. The processor 810 can control the input interface 830 to communicate with other devices or chips, specifically, to acquire information or data sent by other devices or chips.

[0223] For example, the chip 800 may also include an output interface 840. The processor 810 can control the output interface 840 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.

[0224] For example, the chip can be applied to the communication device in the embodiments of this application, and the chip can implement the corresponding processes implemented by the terminal device or the source network device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0225] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0226] The memory involved in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0227] It is understood that the systems, apparatuses, and methods described in this application can also be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of sub-circuits is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple sub-circuits or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0228] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce a good effect.

[0229] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the scope of this application. Accordingly, this specification and drawings are merely illustrative descriptions of the application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from its scope. Thus, if such modifications and modifications fall within the scope of the claims and their equivalents, this application is also intended to include such modifications and modifications.

Claims

1. A communication device, characterized in that, include: One or more first interfaces are used to connect to a first device, and the one or more first interfaces are used to receive multiple first service messages; A data processing circuit is used to process the plurality of first service messages to obtain a plurality of second service messages; One or more second interfaces are used to connect to a second device, and the one or more second interfaces are used to send multiple second service messages.

2. The communication device as described in claim 1, characterized in that, The plurality of first interfaces are used to connect to the first device and to receive a plurality of first service messages, wherein the aggregate link number field in the plurality of first service messages is a first value; The data processing circuit is connected to the plurality of first interfaces and is used to process the plurality of first service packets to obtain a plurality of second service packets, and to send the plurality of second service packets through the plurality of second interfaces, wherein the aggregate link number field in the second service packet is a second value; The plurality of second interfaces are used to connect to the second device and to send the plurality of second service messages.

3. The communication device as described in claim 2, characterized in that, The plurality of first service messages belong to the first data stream, and the value of the sequence number field in the first service message is used to identify the sending order of the corresponding first service message in the first data stream.

4. The communication device as described in claim 3, characterized in that, The plurality of first service messages include at least two duplicate service messages, and the serial number field in the duplicate service messages carrying the same data has the same value; The data processing circuit is further configured to: deduplicate the plurality of first service messages according to the value of the sequence number field in the plurality of first service messages.

5. The communication device as described in claim 3, characterized in that, The data processing circuit is further configured to: sequentially send the plurality of second service messages corresponding to the plurality of first service messages on the plurality of second interfaces according to the values ​​of the sequence number field in the plurality of first service messages.

6. The communication device as described in any one of claims 2 to 5, characterized in that, Different values ​​of the sending mode field in the second service message are used to indicate different sending modes of the second service message on the plurality of second interfaces.

7. The communication device as described in claim 6, characterized in that, The sending modes include: A data stream is sent through a second interface; Multiple service messages in a data stream are sent through at least two of a plurality of second interfaces, wherein one service message corresponds to one second interface for transmission; and, A data stream is repeatedly sent through at least two of the multiple second interfaces.

8. The communication device as described in claim 6 or 7, characterized in that, The data processing circuit is further configured to: determine the sending mode of the first service message or the sending mode of the second service message according to the sending mode table, wherein the sending mode table includes the value of the sending mode field and the sending mode corresponding to the value.

9. The communication device as described in any one of claims 2 to 8, characterized in that, The data processing circuit is further configured to: query a forwarding rule table based on the feature information of the first service message to determine a message editing action, and process the plurality of first service messages according to the message editing action to obtain the plurality of second service messages, wherein the forwarding rule table includes the feature information of the first service message and the message editing action corresponding to the feature information.

10. The communication device according to any one of claims 2 to 9, characterized in that, The first service message or the second service message includes one or more of the following: aggregate link number field, transmission mode field, sequence number field, or frame type field.

11. The communication device according to any one of claims 2 to 10, characterized in that, The data processing circuit includes: The first port scheduling sub-circuit is connected to the plurality of first interfaces and is used to transmit the received plurality of first service packets to the first aggregation link sub-circuit. The first aggregation link sub-circuit is connected to the first port scheduling sub-circuit, receives the plurality of first service packets, and provides a first aggregation port for the plurality of first service packets. The first aggregation port corresponds to the first value of the aggregation link number field. The message forwarding and editing sub-circuit is connected to the first aggregation link sub-circuit, receives the plurality of first service messages from the first aggregation port, and processes the plurality of first service messages to obtain a plurality of second service messages; The second aggregation link sub-circuit is connected to the message forwarding and editing sub-circuit, receives the plurality of second service messages, and provides a second aggregation port for the plurality of second service messages. The second aggregation port corresponds to the second value of the aggregation link number field. The second port scheduling sub-circuit is connected to the second aggregation link sub-circuit and the plurality of second interfaces, receives the plurality of second service messages from the second aggregation port, and sends the plurality of second service messages to the second device through the plurality of second interfaces.

12. The communication device as described in any one of claims 2 to 11, characterized in that, include: Multiple third interfaces are used to connect to a third device and receive third service packets from the third device, wherein the aggregation link number field in the multiple third service packets is a third value; the data processing circuit is connected to the third interfaces and is used to process the third service packets into fourth service packets, and output the multiple fourth service packets through multiple fourth interfaces, wherein the aggregation link number field in the fourth service packets is a fourth value; The plurality of fourth interfaces are used to connect to the fourth device and to send the plurality of fourth service messages.

13. The communication device as described in any one of claims 2 to 11, characterized in that, The plurality of first interfaces are connected to the first device through a plurality of first transmission media, wherein the plurality of first transmission media are different or partially the same, and / or, The plurality of second interfaces are connected to the second device through a plurality of second transmission media, wherein the plurality of second transmission media are different or partially the same.

14. The communication device as described in claim 1, characterized in that, Specifically, it includes: The first interface is used to connect to the first device and also to receive multiple first service messages; The data processing circuit is connected to the first interface and is used to process the plurality of first service packets to obtain a plurality of second service packets, and output the plurality of second service packets to the plurality of second interfaces. The plurality of second service packets further include one or more of the following fields compared to the plurality of first service packets: aggregation link number field, transmission mode field, sequence number field, or frame type field. The aggregation link number field in the second service packet is a second value. The plurality of second interfaces are used to connect to a second device and to send a plurality of second service messages.

15. The communication device as described in claim 1, characterized in that, Specifically, it includes: The plurality of first interfaces are used to connect to the first device and to receive a plurality of first service messages, wherein the aggregate link number field in the plurality of first service messages is a first value; The data processing circuit is connected to the plurality of first interfaces and is further configured to process the plurality of first service packets to obtain a plurality of second service packets, and output the plurality of second service packets to the first second interface. The plurality of first service packets further include one or more of the following fields compared to the plurality of second service packets: aggregation link number field, transmission mode field, sequence number field, or frame type field. The second interface is used to connect to the second device and also to send multiple second service messages.

16. The communication device as described in any one of claims 2 to 13, characterized in that, The value of the aggregated link number field is assigned by the communication device or by other devices in the same network as the communication device.

17. A communication method, characterized in that, The communication method is executed by a communication device or a chip in the communication device. The communication device or the chip in the communication device includes: one or more first interfaces, a data processing circuit, and one or more second interfaces. The one or more first interfaces are connected to the first device and the data processing circuit, and the one or more second interfaces are connected to the data processing circuit and the second device. The communication method includes: Receive multiple first service messages from the first device through one or more first interfaces; The data processing circuit processes the plurality of first service messages to obtain a plurality of second service messages. The plurality of second service messages are sent to the second device through one or more second interfaces.

18. The communication method as described in claim 17, characterized in that, The communication device or the chip in the communication device specifically includes: the plurality of first interfaces, the data processing circuit, and the plurality of second interfaces, wherein the plurality of first interfaces are connected to the first device and the data processing circuit, and the plurality of second interfaces are connected to the data processing circuit and the second device; The communication method specifically includes: The plurality of first service packets are received from the first device through the plurality of first interfaces, wherein the aggregate link number field in the plurality of first service packets is a first value; The data processing circuit processes the plurality of first service packets to obtain a plurality of second service packets, and outputs the plurality of second service packets through the plurality of second interfaces. The aggregate link number field in the second service packet is a second value. The plurality of second service messages are sent to the second device through the plurality of second interfaces.

19. The communication method as described in claim 18, characterized in that, The plurality of first service messages belong to the first data stream, and the value of the sequence number field in the first service message is used to identify the sending order of the corresponding first service message in the first data stream.

20. The communication method as described in claim 19, characterized in that, The plurality of first service messages include at least two duplicate service messages, and the serial number field in the duplicate service messages carrying the same data has the same value; Before the plurality of first service messages are processed by the data processing circuit to obtain a plurality of second service messages, the communication method further includes: The data processing circuit performs deduplication on the plurality of first service messages based on the value of the sequence number field in the plurality of first service messages.

21. The communication method as described in claim 19, characterized in that, Sending the plurality of second service messages to the second device through the plurality of second interfaces specifically includes: sequentially sending the plurality of second service messages corresponding to the plurality of first service messages on the plurality of second interfaces according to the values ​​of the sequence number field in the plurality of first service messages.

22. The communication method according to any one of claims 18 to 21, characterized in that, The second service message includes a sending mode field, the value of which is used to indicate different sending modes of the second service message on the plurality of second interfaces; Sending the plurality of second service messages to the second device through the plurality of second interfaces specifically includes: sending the second service messages through the plurality of second interfaces according to the sending mode corresponding to the value of the sending mode field.

23. The communication method as described in claim 22, characterized in that, The sending modes include: A data stream is sent through a second interface; Multiple service messages in a data stream are sent through at least two of a plurality of second interfaces, wherein one service message corresponds to one second interface for transmission; and, A data stream is repeatedly sent through at least two of the multiple second interfaces.

24. The communication method as described in claim 22 or 23, characterized in that, Before sending the second service message through the plurality of second interfaces according to the sending mode corresponding to the value of the sending mode field, the method further includes: determining the sending mode of the first service message or the sending mode of the second service message according to a sending mode table, wherein the sending mode table includes the value of the sending mode field and the sending mode corresponding to the value.

25. The communication method according to any one of claims 18 to 24, characterized in that, The process of processing the plurality of first service packets through the data processing circuit to obtain a plurality of second service packets includes: The forwarding rule table is queried based on the feature information of the first service message to determine the message editing action, and the multiple first service messages are processed according to the message editing action to obtain the multiple second service messages. The forwarding rule table includes the feature information of the first service message and the message editing action corresponding to the feature information.

26. The communication method according to any one of claims 18 to 25, characterized in that, The first service message or the second service message includes one or more of the following: aggregate link number field, transmission mode field, sequence number field, or frame type field.

27. The communication method according to any one of claims 18 to 26, characterized in that, The data processing circuit includes: a first port scheduling subcircuit, a first aggregated link subcircuit, a packet forwarding and editing subcircuit, a second aggregated link subcircuit, and a second port scheduling subcircuit. The first port scheduling subcircuit, the first aggregated link subcircuit, the packet forwarding and editing subcircuit, the second aggregated link subcircuit, and the second port scheduling subcircuit are connected in sequence. The first port scheduling subcircuit is also connected to the plurality of first interfaces, and the second port scheduling subcircuit is also connected to the plurality of second interfaces. The communication method further includes: The first port scheduling subcircuit transmits the received plurality of first service packets to the first aggregation link subcircuit; The first aggregation link sub-circuit receives the plurality of first service packets and provides a first aggregation port for the plurality of first service packets, wherein the first aggregation port corresponds to a first value of the aggregation link number field; The message forwarding and editing sub-circuit receives the plurality of first service messages from the first aggregation port and processes the plurality of first service messages to obtain a plurality of second service messages; The second aggregation link sub-circuit receives the plurality of second service packets and provides a second aggregation port for the plurality of second service packets, wherein the second aggregation port corresponds to the second value of the aggregation link number field; The second port scheduling sub-circuit receives the plurality of second service messages from the second aggregation port and sends the plurality of second service messages to the second device through the plurality of second interfaces.

28. The communication method according to any one of claims 18 to 27, characterized in that, The communication device or the chip in the communication device also includes: Multiple third interfaces and multiple fourth interfaces, wherein the multiple third interfaces are used to connect a third device and the data processing circuit, and the multiple fourth interfaces are used to connect the data processing circuit and the fourth device; The communication method further includes: The third service message is received from the third device through the plurality of third interfaces, and the aggregate link number field in the plurality of third service messages is a third value; The data processing circuit processes the plurality of third service packets to obtain a plurality of fourth service packets, and outputs the plurality of fourth service packets through the plurality of fourth interfaces. The aggregate link number field in the plurality of fourth service packets is a fourth value. The plurality of fourth service messages are sent to the fourth device through the plurality of fourth interfaces.

29. The communication method according to any one of claims 18 to 27, characterized in that, The plurality of first interfaces are connected to the first device through a plurality of first transmission media, wherein the plurality of first transmission media are different or partially the same, and / or, The plurality of second interfaces are connected to the second device through a plurality of second transmission media, wherein the plurality of second transmission media are different or partially the same.

30. The communication method as described in claim 17, characterized in that, The communication device or the chip in the communication device specifically includes: a first interface, a data processing circuit, and a plurality of second interfaces, wherein the first interface is connected to the first device and the data processing circuit, and the plurality of second interfaces are connected to the data processing circuit and the second device; The communication method specifically includes: Receive multiple first service messages from the first device through the first interface; The data processing circuit processes the plurality of first service packets to obtain a plurality of second service packets, and outputs the plurality of second service packets to the plurality of second interfaces. The plurality of second service packets further include one or more of the following fields compared to the plurality of first service packets: aggregation link number field, transmission mode field, sequence number field, or frame type field. The aggregation link number field in the second service packet is a second value. The plurality of second service messages are sent to the second device through the plurality of second interfaces.

31. The communication method as described in claim 17, characterized in that, The communication device or the chip in the communication device specifically includes: the plurality of first interfaces, the data processing circuit, and the one second interface, wherein the plurality of first interfaces are connected to the first device and the data processing circuit, and the one second interface is connected to the data processing circuit and the second device; The communication method specifically includes: The plurality of first service packets are received from the first device through the plurality of first interfaces, wherein the aggregate link number field in the plurality of first service packets is a first value; The data processing circuit processes the plurality of first service packets to obtain a plurality of second service packets, and outputs the plurality of second service packets to the second interface. The plurality of first service packets further include one or more of the following fields compared to the plurality of second service packets: aggregation link number field, transmission mode field, sequence number field, or frame type field. The plurality of second service messages are sent to the second device through the second interface.

32. A program product, characterized in that, The program product includes a computer program or instructions; when the computer program or instructions are run by a communication device or a chip in the communication device, the communication device or the chip in the communication device performs the communication method as described in any one of claims 17 to 31.

33. A non-transitory computer storage medium, characterized in that, It includes computer instructions that, when executed on a communication device or a chip within the communication device, cause the communication device or the chip within the communication device to perform the communication method as described in any one of claims 17 to 31.

34. A communication device, characterized in that, The communication device includes a processor for running computer programs or instructions to cause the communication device to perform the communication method as described in any one of claims 17 to 31.

35. A chip, characterized in that, include: A processor coupled to a memory for storing programs or instructions that, when executed by the processor, cause the chip to perform the communication method as described in any one of claims 17 to 31.