A communication method and device based on a time-sensitive network
By dividing data flows in the vehicle network and using time triggering and time function scheduling, combined with GPTP protocol and MAC layer processing, the traditional CAN network cannot meet the high-bandwidth communication problem of advanced assisted driving and autonomous driving, achieving efficient data streaming and real-time guarantees.
Patent Information
- Application Number
- CN202210728198.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-06-24
AI Technical Summary
Traditional CAN networks cannot meet the high dynamic and high bandwidth communication needs of advanced assisted driving and autonomous driving, and the IEEE time-sensitive network protocol has standard conflicts and design challenges in on-board applications.
The data stream is divided into a first data stream, a second data stream and a third data stream, and time trigger scheduling and time function scheduling are used to transmit separately to ensure the real-time nature of the first data stream, and to ensure the real-time transmission of high-priority data by interrupting the second data stream, time synchronization is used to design the MAC layer structure to process segmented data.
It realizes efficient transmission of different types of data streams in the vehicle network, ensures low-latency transmission of data streams with high real-time performance, takes into account the transmission requirements of multimedia data streams, and improves the real-time and bandwidth utilization of the network.
Smart Images

Figure CN115242340B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle network communications, and in particular to a communication method and device based on a time-sensitive network. Background Art
[0002] Automotive network architectures must effectively handle dynamic changes in communication profiles and rapidly increasing amounts of transmitted data at runtime. Use cases such as advanced driver assistance and autonomous driving require dynamic, high-bandwidth communications, making traditional CAN networks unsuitable for these requirements. To meet the demands of highly dynamic, high-bandwidth transmission, the IEEE Time-Sensitive Networking Task Force has defined high bandwidth and real-time transmission. However, designing TSN-based applications presents a daunting challenge for network designers due to the wide scope of standard protocols, diverse distributed use cases, and conflicting standards between sub-protocols. Adapting IEEE-specified protocols to in-vehicle time-sensitive network communications, increasing bandwidth, and ensuring real-time data transmission have become key challenges for advanced driver assistance and autonomous driving. Summary of the Invention
[0003] Based on the defects in the prior art, the present invention provides a communication method based on a time-sensitive network, which at least includes: dividing a data stream into a first data stream, a second data stream, and a third data stream according to demand;
[0004] The first data stream is scheduled for transmission based on time triggering;
[0005] The second data stream and the third data stream are scheduled for transmission based on a time function;
[0006] The second data stream has a higher priority than the third data stream;
[0007] The time-triggered scheduling transmission is used to set a time interval for specifically transmitting the first data stream within the data transmission period of each port;
[0008] If the output value of the time function corresponding to the second data stream is greater than or equal to 0, and the current time is not in the time interval of the first data stream transmission, the second data stream is allowed to be transmitted on the transmission port.
[0009] Or the third data stream data is transmitted under the condition that the current moment is not in the time interval of the first data stream transmission and there is no second data data transmission.
[0010] A communication method based on a time-sensitive network, further preferably, data is transmitted in frames, and it is estimated whether the moment when the frame data transmission of the second data stream or the third data stream is completed is within the transmission time interval set only for the first data stream. If it is exactly within the transmission time interval of the first data stream, then when the frame data is transmitted to a preset time period Θt close to the start moment of the transmission time interval of the first data stream, the frame data of the second data stream or the third data stream that has not yet been transmitted is interrupted, and the transmission of the frame data that has not yet been transmitted is resumed when the next moment condition is met.
[0011] A communication method based on a time-sensitive network, further preferably, before time-triggered scheduling transmission, the GPTP protocol is periodically used to synchronize time for nodes that need to communicate.
[0012] A communication method based on a time-sensitive network, further preferably, data of the second data stream is transmitted in priority to the third data stream;
[0013] The first type of data and the second type of data are set in the second data stream, and the first time function and the second time function are respectively set to control the transmission of the first type of data and the second type of data at the transmission port;
[0014] The priority of the first type of data is higher than the priority of the second type of data.
[0015] A communication method based on a time-sensitive network, further preferably, if the value of the second time function is positive and the value of the first time function is negative, the second type of data is transmitted;
[0016] If the second type of data being transmitted is interrupted due to the frame data transmission of the first type of data stream, after the transmission of the first type of data stream is completed, if the first time function of the first type of data becomes a non-negative value, or if the first time function of the first type of data becomes a negative value, the first type of data shall be transmitted first;
[0017] After the first data transmission is completed and the second time function is converted into a non-negative value, the second type of data that has not been completed is transmitted.
[0018] A communication method based on a time-sensitive network, further preferably, if a low-priority data frame belonging to a second data stream is being transmitted in a current port, when a high-priority data frame belonging to a first data stream makes a transmission request, determining whether a frame data frame splitting operation is allowed in the current state;
[0019] If frame data frame segmentation is allowed, the low-priority data frame transmission is interrupted at the preset position, a CRC check is performed, and the transmitted part of the low-priority data frame is encapsulated into a complete on-board Ethernet frame. After an interframe gap, the high-priority data frame transmission begins.
[0020] A communication method based on a time-sensitive network, further preferably, after the transmission of a high-priority data frame is completed, the untransmitted portion of the interrupted low-priority data frame is continued to be transmitted by adding an external preamble;
[0021] The receiving end determines the type of frame based on the preamble and re-encapsulates the segmented frames based on the preamble.
[0022] A time-sensitive network-based communication device, configured to implement the above-mentioned time-sensitive network-based communication method, comprising at least: a first MAC layer, a second MAC layer, and a MAC synthesis sublayer, wherein the first MAC layer is configured to process data of a first data stream at high speed, and the second MAC layer is configured to process data of a second data stream and / or a third data stream, wherein the second MAC layer stores segmented frames in a buffer and merges the segmented frames to form a complete frame;
[0023] The buffer is located in the MAC merging sublayer, and the segmented frames are merged in the buffer and then sent to the second MAC layer;
[0024] If it is not a segmented frame, it is directly sent to the second MAC layer without buffering.
[0025] A time-sensitive network-based communication device further includes: a MAC client, the MAC client being configured to send a transmission specifying to hold or release a second type of data stream or a third type of data stream;
[0026] Under the condition of releasing the transmission of the second type of data flow or the third type of data flow, the MAC merging sublayer sends the interrupt data packet to the PHY interface layer, and the PHY interface layer sends the interrupt data packet to the PHY layer for transmission to the target network.
[0027] A communication device based on a time-sensitive network, further, after the second type of data stream is transmitted, the transmission process should select the segmented frame data stored in the buffer of the MAC merging sublayer, and the selection should be based on the priority of the checked frame data packet and the numerical value of the time function in the queue.
[0028] A communication device based on a time-sensitive network, further comprising: a segmented data packet formed after the interruption having at least one of the following contents:
[0029] A complete frame data of the second type of data stream;
[0030] The initial segment or consecutive segments of the segmented frame data.
[0031] A communication device based on a time-sensitive network, further comprising:
[0032] A 1-byte SMD, indicating whether the data packet belongs to the first data stream or the second data stream;
[0033] A fragment count that increases with each successive fragment of the interrupted packet.
[0034] Beneficial effects:
[0035] 1. The technical solution provided by this invention utilizes different transmission schemes for different types of data streams. A first data stream with high real-time requirements can interrupt a second data stream with lower real-time requirements. By interrupting the second data stream, the real-time performance of the first data stream can be maintained. When the transmission of the second data stream is interrupted by the first data stream, a complete data frame is interrupted and split into multiple parts. By designing the structure of the segmented data, the segmented data can be reassembled into a complete data frame and sent to the upper layer network.
[0036] 2. For the transmission of the second data stream, a corresponding time function is designed, and the transmission of different types of data in the second data stream is controlled by the size of the output value of the corresponding time function. The time function value is set to change periodically, so that different types of data in the second data stream have corresponding opportunities to be transmitted, which can meet the real-time transmission of different types of data in the second data stream. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The following drawings are only used to schematically illustrate and explain the present invention and are not intended to limit the scope of the present invention.
[0038] Figure 1 Schematic diagram of different types of data flow control transmission methods according to an embodiment of the present invention.
[0039] Figure 2 The figure is a schematic diagram of a process in which the transmission of the second data stream is interrupted by the first data stream during periodic data transmission in one embodiment of the present invention.
[0040] Figure 3 FIG. 1 is a schematic diagram of a time function in a second data stream during periodic data transmission according to an embodiment of the present invention.
[0041] Figure 4a The figure is a schematic diagram of the composition structure of a complete frame during periodic data transmission in one embodiment of the present invention.
[0042] Figure 4b 1 is a schematic diagram of the composition structure of the first segment of segmented data formed after the periodic data transmission process is interrupted in one embodiment of the present invention.
[0043] Figure 4c The figure is a schematic diagram of the structure of non-first segment data in a periodic data transmission process according to an embodiment of the present invention.
[0044] Figure 5 FIG. 1 is a schematic diagram of the structure of a time-sensitive communication device below the network layer in one embodiment of the present invention. DETAILED DESCRIPTION
[0045] To provide a clearer understanding of the technical features, objectives, and effects of this document, specific embodiments of the present invention are now described with reference to the accompanying drawings. Like reference numerals in the various figures represent like parts. To simplify the drawings, the various figures schematically illustrate parts relevant to the present invention and do not represent the actual structure of the product. Furthermore, to simplify the drawings and facilitate understanding, in some figures, only one of the components with the same structure or function is schematically depicted or labeled.
[0046] Regarding the control system, functional modules, and application programs (APP), it is well known to those skilled in the art that they can take any appropriate form, which can be either hardware or software, and can be either multiple functional modules set up discretely or multiple functional units integrated into one hardware. In the simplest form, the control system can be a controller, such as a combinational logic controller, a microprogram controller, etc., as long as the operations described in this application can be implemented. Of course, the control system can also be integrated into a physical device as different modules, which does not deviate from the basic principles and protection scope of the present invention.
[0047] The term "connection" in the present invention may include direct connection, indirect connection, communication connection, and electrical connection, unless otherwise specified.
[0048] The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that when used in the specification, the terms "include" and / or "comprise" refer to the presence of the stated features, values, steps, operations, elements and / or components, but do not exclude the presence or additional addition of one or more other features, values, steps, operations, elements, components and / or groups thereof. As used herein, the term "and / or" includes any and all combinations of one or more of the listed related items.
[0049] It should be understood that the term "vehicle" or "vehicular" or other similar terms used herein generally include motor vehicles, such as passenger cars including sport utility vehicles (SUVs), buses, trucks, various commercial vehicles, watercraft including various boats, ships, aircraft, etc., and include hybrid vehicles, electric vehicles, plug-in hybrid electric vehicles, hydrogen-powered vehicles, and other alternative fuel vehicles (e.g., fuels derived from energy sources other than petroleum). As referred to herein, a hybrid vehicle is a vehicle having two or more power sources, such as both gasoline-powered and electric-powered vehicles.
[0050] Furthermore, the controller of the present disclosure may be embodied as a non-transitory computer-readable medium on a computer-readable medium containing executable program instructions executed by a processor, controller, or the like. Examples of computer-readable media include, but are not limited to, ROM, RAM, compact disc (CD)-ROMs, magnetic tapes, floppy disks, flash drives, smart cards, and optical data storage devices. The computer-readable recording medium may also be distributed among computer systems coupled via a network, such that the computer-readable medium is stored and executed in a distributed manner, for example, via a telematics server or a controller area network (CAN).
[0051] The present invention provides a communication method based on a time-sensitive network, such as Figure 1 、 Figure 2 、 Figure 3 、 Figure 4a 、 Figure 4b 、 Figure 4c As shown, at least including: dividing the data stream into a first data stream, a second data stream, and a third data stream according to demand;
[0052] The first data stream is scheduled for transmission based on time triggering;
[0053] The second data stream and the third data stream are scheduled for transmission based on a time function;
[0054] The second data stream has a higher priority than the third data stream;
[0055] The time-triggered scheduling transmission is used to set a time interval for specifically transmitting the first data stream within the data transmission period of each port;
[0056] If the time function output value corresponding to the second data stream or the third data stream is greater than or equal to 0, and the current time is not in the time interval of the first data stream transmission, the data of the second data stream or the third data stream is allowed to be transmitted on the transmission port.
[0057] Specifically, the first data stream defines a real-time data stream used to transmit low-latency data. In vehicle networks, this refers to safety-related control signals. These signals require low latency and must be sent promptly to the corresponding ECU to execute the corresponding operation, such as braking and acceleration signals.
[0058] The second data stream in the vehicle network refers to the multimedia data stream, which is used to transmit audio and video data. Compared with the real-time data stream, the real-time performance of the multimedia data stream is not as high as the control signal because it has a lower priority than the first data stream and can be interrupted by the first data stream.
[0059] Specifically, the priority of the first data stream is higher than that of the second data stream, and the priority of the second data stream is higher than that of the third data stream;
[0060] There are also multiple data with different priorities in the first data stream. For the same data stream, if the priorities are different, the data stream with higher priority is transmitted first.
[0061] It should be noted that during the transmission of the first data stream, data transmission is in frames, and frame data cannot be interrupted in the middle of the transmission process. High-priority data can only interrupt low-priority data transmission after waiting for the current frame transmission of low-priority data to be completed.
[0062] Specifically, for example: in the first data stream, there are 10 frames of low-priority data, and the low-priority data is transmitted. Assume that 5 of the 10 frames of data have been transmitted, and the 6th frame of data is being transmitted. At this time, the high-priority data arrives at the port, but because the 6th frame of data is still being transmitted, the low-priority data cannot be interrupted immediately. After the 6th frame of data is transmitted, the high-priority data interrupts the transmission of the low-priority data, and the transmission port starts to transmit the high-priority data. After the high-priority data transmission is completed, the low-priority data that has not been transmitted is transmitted next, that is, the 7th, 8th, 9th, and 10th frames of data are transmitted next.
[0063] In the second category of data, there are many different types of data, such as: first category data and second category data.
[0064] Specifically, in another embodiment, during the data transmission process of the first data stream, the second data stream, and the third data stream, data is transmitted in frames, and it is estimated whether the moment when the frame data transmission of the second data stream or the third data stream is completed is within the transmission time interval set only for the first data stream. If it is exactly within the transmission time interval of the first data stream, then when the frame data is transmitted to a preset time period Θt close to the start moment of the transmission time interval of the first data stream, the frame data of the second data stream or the third data stream that has not yet been transmitted will be interrupted, and the transmission of the frame data that has not yet been transmitted will be resumed when the next moment condition is met.
[0065] Specifically, because the first data stream uses time-triggered scheduling for data transmission, when the transmission time trigger arrives, the transmission port needs to reserve transmission bandwidth for the first data stream. Therefore, time synchronization is required for the communication nodes in the vehicle network. Otherwise, the time triggers in different ECUs will be out of sync, and real-time performance cannot be guaranteed. To achieve accurate time synchronization, this embodiment requires periodic use of the GPTP protocol for time synchronization of communication nodes. The corresponding hardware configuration is a time synchronization module, which runs the GPTP protocol through the time synchronization module to synchronize the communication nodes.
[0066] Specifically, see Figure 2 and Figure 3 , set the transmission time of the first data stream and the transmission time of the remaining data streams within period n. The second data stream is transmitting data, but the current frame data of the second data stream has not been transmitted yet and is interrupted by the data of the first data stream. After the interruption, the data is divided into two parts, the first part has been transmitted, and the second part waits for the first data stream to be transmitted after completion, and is transmitted when the time function is positive.
[0067] The data in the second data stream is transmitted in priority to the data in the third data stream;
[0068] The first type of data and the second type of data are set in the second data stream, and the first time function and the second time function are respectively set to control the transmission of the first type of data and the second type of data at the transmission port;
[0069] The priority of the first type of data is higher than the priority of the second type of data.
[0070] In the second data stream, a time function is set for each type of data. The value of the time function determines whether the data is transmitted. The time function is a periodic function composed of piecewise linear functions.
[0071] When the value of the specific time function is non-negative, data transmission is performed;
[0072] Specifically, when the value of the time function gradually decreases as data is transmitted, when data cannot be transmitted for a long time, the value of the time function will gradually increase, and after reaching the peak value, the increase decreases;
[0073] Specifically, if the value of the second time function is positive and the value of the first time function is negative, the second type of data is transmitted;
[0074] If the second type of data being transmitted is interrupted due to the frame data transmission of the first type of data stream, after the transmission of the first type of data stream is completed, if the first time function of the first type of data becomes a non-negative value, or if the first time function of the first type of data becomes a negative value, the first type of data shall be transmitted first;
[0075] After the first data transmission is completed and the second time function is converted into a non-negative value, the second type of data that has not been completed is transmitted.
[0076] Specifically, if a low-priority data frame belonging to the second data stream is being transmitted in the current port, and a high-priority data frame belonging to the first data stream makes a transmission request, it is determined whether a frame data splitting operation is allowed in the current state;
[0077] If frame data frame segmentation is allowed, the low-priority data frame transmission is interrupted at the preset position, a CRC check is performed, and the transmitted part of the low-priority data frame is encapsulated into a complete on-board Ethernet frame. After an interframe gap, the high-priority data frame transmission begins.
[0078] After the high-priority data frame transmission is completed, the untransmitted portion of the interrupted low-priority data frame is continued to be transmitted by adding an external preamble;
[0079] The receiving end determines the type of frame based on the preamble and re-encapsulates the segmented frames based on the preamble.
[0080] Specifically, when a frame is interrupted, it is divided into multiple different parts. If no processing is performed, the frame information will be lost at the receiving end. In order to enable the receiving end to identify the different parts of the interrupted frame, this embodiment provides the following technical solutions, including:
[0081] See also Figure 4a 、 Figure 4b and Figure 4c If the frame is not interrupted and is transmitted normally, the frame has a header and a payload. The header has the frame type, source MAC address, and destination MAC address.
[0082] If a frame is interrupted, a complete frame is divided into multiple segments of data. The data after the interruption is provided with a header and a payload. The first part of the data formed after a complete frame is interrupted includes: a header and payload data. The header is provided with a segmented frame identifier, source MAC address, destination MAC address, frame type, and payload.
[0083] The frame segmentation identifier is used to determine whether the received data is interrupted and whether it is the first segment, the continuation segment or the end segment of a frame of data;
[0084] In subsequent data packets, the header sets the segmentation number flag and the segmentation frame flag;
[0085] The segmentation number identifier indicates how many segments a frame of data is divided into and which segment the current data belongs to.
[0086] Specifically, the third data stream has a lower priority, and the third data stream is transmitted only when the first data stream and the second data stream are not transmitted.
[0087] Specifically, in order to support the implementation of the above-mentioned method, the traditional multimedia medium layer (MAC) cannot meet the requirements, and it is necessary to provide MAC layer hardware that matches the above-mentioned data flow. Specifically, this embodiment provides a communication device based on a time-sensitive network, see Figure 5 , specifically including:
[0088] a first MAC layer, a second MAC layer, and a MAC synthesis sublayer, wherein the first MAC layer is used to process data of the first data stream at high speed, and the second MAC layer is used to process data of the second data stream and / or the third data stream, wherein the second MAC layer stores segmented frames in a buffer and merges the segmented frames to form a complete frame;
[0089] The buffer is located in the MAC merging sublayer, and the segmented frames are merged in the buffer and then sent to the second MAC layer;
[0090] If it is not a segmented frame, it is directly sent to the second MAC layer without buffering.
[0091] Specifically, the MAC merging sublayer is mainly used to process the segmented frame data, such as separating and merging frames and caching data of different data segments;
[0092] Specifically, a buffer is set up in the MAC merging sublayer. After the fragmented frames are cached in the buffer, all the fragmented frames are received and synthesized into a complete frame data before being transmitted to the network layer.
[0093] Time-sensitive transposition also includes:
[0094] MAC client, the MAC client is used to send a transmission for specifying to hold or release the second type of data flow or the third type of data flow;
[0095] Under the condition of releasing the transmission of the second type of data flow or the third type of data flow, the MAC merging sublayer sends the interrupt data packet to the PHY interface layer, and the PHY interface layer sends the interrupt data packet to the PHY layer for transmission to the target network.
[0096] When the second type of data stream is transmitted, the transmission process should select the segmented frame data stored in the buffer of the MAC merging sublayer. The selection should be based on the priority of the checked frame data packet and the numerical value of the time function in the queue.
[0097] The fragmented data packets formed after the interruption must contain at least one of the following:
[0098] A complete frame data of the second type of data stream;
[0099] The initial segment or consecutive segments of the segmented frame data.
[0100] A fragmented data packet contains:
[0101] A 1-byte SMD, indicating whether the data packet belongs to the first data stream or the second data stream;
[0102] A fragment count that increases with each successive fragment of the interrupted packet.
[0103] Specifically, during the data reception process, the segmented data needs to be processed, including:
[0104] The receiving process first checks the SMD value of any received fragmented packet.
[0105] If it is a fragmented packet, whether the fragmented packet is an initial fragment or a continuation fragment;
[0106] For example: SMD-S identifies the initial segment, and SMD-C identifies the continuous segment;
[0107] The receiving process should check whether there is an ongoing interrupt. If there is no ongoing interrupt, receiving the SMD-C is an error and should be reported to the second MAC layer;
[0108] If an interrupt is in progress, it should check whether the packet identifier encoded in the SMD field matches the identifier of the packet being fragmented.
[0109] If a match occurs, the same packet that was interrupted is being resumed. However, if an SMD-S or SMD-C is received with a different packet identifier than the ongoing interrupted segment, another packet is being transmitted and the interrupted packet remains in the interrupted state.
[0110] The above description is merely a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment. It will be clear to those skilled in the art that the form of the embodiment is not limited thereto, and the adjustable manner is also not limited thereto. It will be understood that other improvements and variations directly derived or imagined by those skilled in the art without departing from the basic concept of the present invention should be considered to be included in the scope of protection of the present invention.
Claims
1. A communication method based on a time-sensitive network, characterized in that: At least including: dividing the data stream into a first data stream, a second data stream, and a third data stream according to demand; The first data stream is scheduled for transmission based on time triggering; The second data stream is scheduled for transmission based on a time function; The second data stream has a higher priority than the third data stream; The time-triggered scheduling transmission is used to set a time interval for specifically transmitting the first data stream within the data transmission period of each port; If the output value of the time function corresponding to the second data stream is greater than or equal to 0, and the current time is not in the time interval of the first data stream transmission, the second data stream data is allowed to be transmitted on the transmission port; The data of the second data stream is transmitted in priority to the third data stream; The first type of data and the second type of data are set in the second data stream, and the first time function and the second time function are respectively set to control the transmission of the first type of data and the second type of data at the transmission port; The priority of the first type of data is greater than the priority of the second type of data; If the value of the second time function is positive and the value of the first time function is negative, the second type of data is transmitted; If the transmission of the second type of data is interrupted due to the transmission of the frame data of the first data stream, after the transmission of the first data stream is completed, if the first time function of the first type of data becomes a non-negative value, and if the second time function of the second type of data becomes a negative value, the first type of data shall be transmitted first; After the transmission of the first type of data is completed and the second time function is converted into a non-negative value, the second type of data that has not been completed is transmitted.
2. A time-sensitive network-based communication method according to claim 1, characterized in that: Before time-triggered scheduling transmission, the GPTP protocol is periodically used to synchronize time for nodes that need to communicate.
3. The communication method based on a time-sensitive network according to claim 1, wherein: If a low-priority data frame belonging to the second data stream is being transmitted in the current port, and a high-priority data frame belonging to the first data stream makes a transmission request, determining whether a frame data splitting operation is allowed in the current state; If frame data frame segmentation is allowed, the low-priority data frame transmission is interrupted at the preset position, a CRC check is performed, and the transmitted part of the low-priority data frame is encapsulated into a complete on-board Ethernet frame. After an interframe gap, the high-priority data frame transmission begins.
4. The communication method based on a time-sensitive network according to claim 1, wherein: After the high-priority data frame transmission is completed, the untransmitted portion of the interrupted low-priority data frame is continued to be transmitted by adding an external preamble; The receiving end determines the type of frame based on the preamble and re-encapsulates the segmented frames based on the preamble.
5. A communication device based on a time-sensitive network, used to implement the communication method based on a time-sensitive network according to any one of claims 1 to 4, characterized in that: include: a first MAC layer, a second MAC layer, and a MAC synthesis sublayer, wherein the first MAC layer is used to process data of the first data stream at high speed, and the second MAC layer is used to process data of the second data stream and / or the third data stream, wherein the second MAC layer stores segmented frames in a buffer and merges the segmented frames to form a complete frame; The buffer is located in the MAC merging sublayer, and the segmented frames are merged in the buffer and then sent to the second MAC layer; If it is not a segmented frame, it is directly sent to the second MAC layer without buffering.
6. A time-sensitive network-based communication device as claimed in claim 5, characterized in that: Also includes: A MAC client, the MAC client is used to send a transmission specifying to hold or release the second data stream or the third data stream; Under the condition of releasing the transmission of the second data stream or the third data stream, the MAC merging sublayer sends the interruption data packet to the PHY interface layer, and the PHY interface layer sends the interruption data packet to the PHY layer for transmission to the target network.
7. A time-sensitive network-based communication device according to claim 6, characterized in that: When the second data stream is transmitted, the transmission process should select the segmented frame data stored in the buffer of the MAC merging sublayer. The selection should be based on the priority of the checked frame data packet and the numerical value of the time function in the queue.
8. The time-sensitive network-based communication device according to claim 6, wherein: Interrupts a packet with at least one of the following: A complete frame data of the second data stream; The initial segment or consecutive segments of the segmented frame data.
9. The time-sensitive network-based communication device according to claim 6, wherein: The interrupt packet contains: A 1-byte SMD, indicating whether the data packet belongs to the first data stream or the second data stream; A fragment count that increases with each successive fragment of the interrupted packet.
Citation Information
Patent Citations
Audio mixing control method and device, electronic device and storage medium
CN112068794A