CN115378874B - Data transmitting and receiving method, device, electronic equipment, chip and storage medium - Google Patents
Data transmitting and receiving method, device, electronic equipment, chip and storage medium Download PDFInfo
- Publication number
- CN115378874B CN115378874B CN202211288395.0A CN202211288395A CN115378874B CN 115378874 B CN115378874 B CN 115378874B CN 202211288395 A CN202211288395 A CN 202211288395A CN 115378874 B CN115378874 B CN 115378874B
- Authority
- CN
- China
- Prior art keywords
- message
- fast
- quick
- packet
- service interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 135
- 238000012545 processing Methods 0.000 claims description 100
- 230000005540 biological transmission Effects 0.000 claims description 95
- 230000008569 process Effects 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 20
- 238000001914 filtration Methods 0.000 claims description 19
- 230000001960 triggered effect Effects 0.000 claims description 14
- 238000004806 packaging method and process Methods 0.000 claims description 5
- 238000012795 verification Methods 0.000 claims description 5
- 238000009432 framing Methods 0.000 claims description 4
- 239000012634 fragment Substances 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 7
- 238000013507 mapping Methods 0.000 description 6
- 230000001934 delay Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/28—Flow control; Congestion control in relation to timing considerations
- H04L47/283—Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a data sending and receiving method, a device, electronic equipment, a chip and a storage medium, wherein when a first quick message is received and a second quick message is sent through a quick service interface indicated by a second interface identifier, a first group information based on the first quick message is sent to a first interruption control signal; and controlling the quick service interface indicated by the second interface identifier of the second quick message to suspend sending and controlling the first quick message to start sending through the quick service interface indicated by the first interface identifier by the first preemptive-interrupt control signal. By designing a plurality of quick service interfaces and a snap control signal carrying a snap indication and an interface identifier according to different levels of time delay and jitter requirements, a frame structure does not need to be changed, the frame structure is consistent with a frame structure defined by a standard, the probability that an opposite terminal cannot receive data streams is reduced, and the universality is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmitting method, a data receiving method, an apparatus, an electronic device, a chip, and a storage medium.
Background
A frame preemption mechanism is introduced in a Time-Sensitive network (TSN). In the frame preemption mechanisms defined by the Institute of Electrical and Electronics Engineers (IEEE) 802.3br and IEEE802.1 Qbu, the frame preemption mechanism will give 2MAC service interfaces, respectively referred to as Preemptable MAC (Preemptable MAC, pMAC) and fast MAC (Express MAC, eMAC). The preemptive data can be preempted by the fast data in the transmission process, and the data can be preempted to be transmitted again after entering the data stack and waiting for the completion of the fast data transmission.
When a time-sensitive network transmits data streams with priority greater than two, such as not only a time triggered stream (TT stream) but also a rate-limited stream (RC stream), a frame preemption mechanism implemented based on a pMAC service interface and an eMAC service interface cannot meet the delay requirement. Therefore, in some related arts, first, data frames are configured into an eMAC frame, a tpMAC frame, and an ntpMAC frame according to respective priority and latency requirements; secondly, virtualizing the pMAC layer into a tpMAC layer and an ntpMAC layer, keeping the original eMAC layer unchanged, and obtaining three MAC independent sub-layers for transmitting data frames with different priorities; finally, the time delay requirements of a plurality of priorities are met by changing the frame structure and the frame preemption and mapping rule, such as: the mapping of various types of priority to each MAC independent sub-layer is completed by adding one bit (ninth bit) on the basis of eight bits, the ninth bit (highest bit) and the lower eight bits are respectively combined, and different values are mapped to different MAC independent sub-layers. Compared with the frame preemption mechanism defined by the IEEE Std 802.1Qbu and IEEE Std 802.3br standards, the related technology can reduce the time delay of the tpMAC frame on the basis of ensuring the time delay of the eMAC frame to a certain extent.
However, the frame structure after being changed in the related art is not the same as the frame structure defined by the standard, and the peer end may not receive the data stream with the changed frame structure.
Disclosure of Invention
The embodiments of the present specification aim to solve at least one of the technical problems in the related art to some extent. Therefore, the embodiments of the present specification propose a data transmitting and receiving method, an apparatus, an electronic device, a chip, and a storage medium.
An embodiment of the present specification provides a data transmission method, including: under the condition that a first quick message is received and a second quick message is being sent, sending a first emergency control signal based on first element group information of the first quick message; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second quick message is sent through a quick service interface indicated by a second interface identifier; and controlling the second quick message to be transmitted in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be transmitted through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
An embodiment of the present specification provides a data receiving method, including: determining the priority of a received message to be processed under the condition that the received message to be processed belongs to a fast packet; wherein, different priorities correspond to different first processing units; different first processing units are correspondingly provided with different quick service interfaces; the number of the quick service interfaces is more than or equal to 2; shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; the target processing unit is used for determining the integrity of the message to be processed; and uploading the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
An embodiment of the present specification provides a data transmission method, which is applied to an MAC client, and the method includes: under the condition that a first quick message is received and a second quick message is being sent, sending a first emergency-breaking control signal to an MAC merging sublayer based on first tuple information of the first quick message; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the second quick message is sent through a quick service interface indicated by a second interface identifier; the first interruption control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a pause mode through the fast service interface designated by the second interface identifier according to the interruption indication and the first interface identifier, and control the first fast message to be transmitted in a start mode through the fast service interface designated by the first interface identifier.
An embodiment of this specification provides a data transmission method, which is applied to an MAC merging sublayer, and includes: receiving a first snap-off control signal under the condition that a first quick message is received and a second quick message is being sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast packet and the second fast packet belong to fast packets respectively; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is sent through a fast service interface indicated by a second interface identifier; and controlling the second quick message to be transmitted in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be transmitted through the quick service interface designated by the first interface identifier according to the emergency-up indication and the first interface identifier.
The implementation mode of the specification provides a chip, which is provided with a first quick service interface, a second quick service interface and a preemptible service interface; the first fast service interface and the second fast service interface are located between an MAC merging sublayer and an MAC client and are used for transmitting fast messages between the MAC merging sublayer and the MAC client; the preemptive service interface is located between the MAC merging sublayer and the MAC client, and is used for transmitting a preemptive message between the MAC merging sublayer and the MAC client; the MAC merging sublayer provides an MAC merging service interface for an MAC providing client; the MAC merging service interface is used for receiving a robbing-up control signal sent by the MAC client, and the robbing-up control signal is attached with a robbing-up indication and an interface identifier; the interface identifier and the preemptive instruction are used to determine a target service interface capable of transmitting a packet in the first fast service interface, the second fast service interface, and the preemptible service interface.
An embodiment of the present specification provides a data transmission apparatus, including: the control signal sending module is used for sending a first interruption control signal based on first group information of a first quick message under the condition that the first quick message is received and a second quick message is sent; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is being sent through a fast service interface designated by a second interface identifier; and the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
The embodiment of the present specification provides a data receiving apparatus, including: the priority determining module is used for determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet; wherein, different priorities correspond to different first processing units; different first processing units are correspondingly provided with different quick service interfaces; wherein the number of the quick service interfaces is more than or equal to 2; the message shunting module is used for shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; the target processing unit is used for determining the integrity of the message to be processed; and the message uploading module is used for uploading the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
An embodiment of the present specification provides a data transmission apparatus applied to a MAC client, the apparatus including: a first packet information sending module, configured to send a first packet information of a first packet to an MAC merging sub-layer when a first packet is received and a second packet is being sent; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface designated by a second interface identifier; the first interruption control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a pause mode through the fast service interface designated by the second interface identifier according to the interruption indication and the first interface identifier, and control the first fast message to be transmitted in a start mode through the fast service interface designated by the first interface identifier.
An embodiment of the present specification provides a data transmission apparatus, which is applied to a MAC merging sublayer, and includes: the system comprises a first prompt message receiving module, a second prompt message receiving module and a prompt signal receiving module, wherein the first prompt message receiving module is used for receiving a first prompt control signal under the condition that a first quick message is received and a second quick message is being sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast packet and the second fast packet belong to fast packets respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is sent through a fast service interface indicated by a second interface identifier; and the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
The embodiment of the present specification provides an electronic device, which includes a transceiver, a processor and a memory, where the memory is used to store a computer program, and the processor calls the computer program to execute the method described in any one of the above embodiments.
The present specification provides a chip, which includes at least one processor, an interface circuit, and a memory, where the memory, the interface circuit, and the at least one processor are interconnected by a line, and a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the chip implements the method described in any one of the foregoing embodiments.
The present specification provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method described in any one of the above embodiments.
The present specification provides a computer program product, which includes instructions that, when executed by a processor of an electronic device, enable the electronic device to execute the method steps in the foregoing embodiments.
In the embodiment of the present specification, when a first fast message is received and a second fast message is being sent through a fast service interface indicated by a second interface identifier, a first snap control signal is sent based on first group information of the first fast message; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; therefore, according to the emergency indication and the first interface identifier, the fast service interface indicated by the second interface identifier of the second fast message is controlled to suspend sending, and the first fast message is controlled to start sending through the fast service interface indicated by the first interface identifier. By designing a plurality of quick service interfaces, and the snap control signals carrying the snap indication and the interface identification according to different levels of time delay and jitter requirements, a frame structure does not need to be changed, and the snap control signals are consistent with a frame structure defined by a standard, so that the probability that an opposite terminal cannot receive data streams is reduced, and the universality of the snap control signals is improved.
Drawings
Fig. 1a is a schematic diagram of an operating principle of ieee802.1qbv in the related art provided in an embodiment of the present specification.
Fig. 1b is a schematic diagram of an implementation of a frame preemption mechanism in the related art provided in an embodiment of the present specification.
Fig. 1c is a schematic diagram of an implementation of a frame preemption mechanism provided in the embodiments of the present specification.
Fig. 1d is a schematic diagram of an implementation of a frame preemption mechanism provided in a manner of this specification.
Fig. 1e is a schematic diagram of an implementation of a frame preemption mechanism provided in the embodiments of the present specification.
Fig. 2 is a schematic flow chart of a data transmission method provided in an embodiment of the present specification.
Fig. 3 is a schematic flow chart of a data transmission method provided in an embodiment of the present specification.
Fig. 4 is a schematic flow chart of a data transmission method provided in an embodiment of this specification.
Fig. 5 is a schematic flow chart of a data transmission method provided in an embodiment of the present specification.
Fig. 6 is a schematic flow chart of a data transmission method provided in an embodiment of this specification.
Fig. 7 is a schematic flow chart of a data transmission method provided in an embodiment of the present specification.
Fig. 8 is a schematic flow chart of a data receiving method according to an embodiment of the present disclosure.
Fig. 9 is a flowchart of a data receiving method according to an embodiment of the present disclosure.
Fig. 10 is a flowchart of a data receiving method according to an embodiment of the present disclosure.
Fig. 11 is a schematic flow chart of a data receiving method according to an embodiment of the present disclosure.
Fig. 12a is a schematic structural diagram of a chip provided in an embodiment of the present disclosure.
Fig. 12b is a schematic structural diagram of a chip provided in an embodiment of the present disclosure.
Fig. 13 is a schematic structural diagram of a MAC layer provided in an embodiment of the present specification.
Fig. 14 is a schematic structural diagram of a MAC merging sublayer provided in an embodiment of the present specification.
Fig. 15 is a schematic block diagram of a data transmission device provided in an embodiment of the present specification.
Fig. 16 is a schematic block diagram of a data receiving apparatus provided in an embodiment of the present specification.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, the TSN is composed of a series of technical standards, which are mainly divided into three parts, i.e., clock synchronization, data stream scheduling, and network and user configuration. Wherein IEEE802.1Qbv and IEEE802.1 Qbu are the core standards for data flow scheduling.
IEEE802.1Qbv adopts a Time Aware Shaper (TAS) scheduling mechanism, and is implemented by adding gating when a packet is dequeued. As shown in fig. 1a, qbv periodically traces a preset gating list, and controls the transmission of the queue according to the on/off state of each gate in the gating list. Through control, after a preset time window expires, the queue where the expected flow is located opens a door, and the expected flow is released; and the queue where other unexpected flows are located is closed in the same time window, and the unexpected flows are prevented. The TAS scheduling algorithm eliminates the possibility that the expected traffic is blocked by the unexpected traffic, and reduces the data transmission delay and jitter.
In the TAS mechanism, a guard bandwidth needs to be set in order to ensure that the network is idle before data transmission. The protection bandwidth is set to the maximum ethernet frame transmission length to ensure that the network will not be occupied in the worst case.
The TAS mechanism has two problems: (1) bandwidth waste: the protection bandwidth cannot be used for data transmission, so that bandwidth waste is caused; (2) priority inversion: in the case of MAC layer sharing, when there is a high priority frame to be transmitted, there is exactly a low priority frame being transmitted. In this case, only when the transmission of the low priority frame is completed, the high priority frame can start transmission. Therefore, the 802.1Qbu and IEEE 802.3 working groups of the TSN jointly develop an IEEE 802.3br, i.e., preemptive MAC mechanism, which is shown in fig. 1 b. The frame preemption mechanism divides a given egress into 2MAC service interfaces, referred to as Preemptable MAC (Preemptable MAC: pMAC) and fast MAC (Express MAC, eMAC), respectively. pMAC data transmission can be preempted by eMAC, after entering a data stack, eMAC data transmission is waited to be completed, and pMAC data are continuously transmitted.
Referring to fig. 1b, the queue Q2 corresponds to pMAC, the queue Q1 corresponds to eMAC, when Q2 data is being transmitted, Q1 data comes, when a certain condition is met, Q2 transmission is interrupted by Q1, and when Q1 data transmission is completed, Q2 data can be transmitted continuously. Certain conditions mean: the pMAC has at least 64 bytes of data left untransferred and at least 60 bytes of data have been transferred. By means of a frame preemption mechanism, the protection bandwidth can be reduced to the shortest low priority frame segment, which can also be done before the transmission of the next high priority frame in the worst case.
In addition to time triggered streams (TT streams) to BE transmitted in TSN networks, rate limited streams (RC streams) and best effort streams (BE streams) are also available. However, in the related art, TT streams are usually considered in isolation and lower priority real-time traffic, such as RC streams, is ignored, so that TT stream configuration may increase worst-case delay and jitter of RC streams, degrading or even interrupting service quality of RC streams. On the premise of ensuring the deterministic real-time communication of the TT flow, the communication performance of the RC flow is improved as much as possible; even under the condition that multiple TT flows and RC flows exist, different priority levels need to be distinguished in each flow according to actual requirements, and therefore service guarantee with finer granularity is provided. Solving the above problems is challenging to implement for current TSN technologies.
Based on this, this specification embodiment provides a chip. The chip is provided with a first quick service interface, a second quick service interface and a preemptible service interface. The first fast service interface and the second fast service interface are located between the MAC merging sublayer and the MAC client, and are used for transmitting fast messages between the MAC merging sublayer and the MAC client. The preemptive service interface is located between the MAC merging sublayer and the MAC client, and is used for transmitting the preemptive message between the MAC merging sublayer and the MAC client. The MAC merge sublayer provides the MAC client with a MAC merge service interface. The MAC merging service interface is used for receiving a robbery-break control signal sent by the MAC client, and the robbery-break control signal is attached with a robbery-break instruction and an interface identifier; the interface identification and the preemptive interrupt indication are used for determining a target service interface capable of transmitting the message in the first quick service interface, the second quick service interface and the preemptive service interface.
The embodiment of the present specification provides a data transmission method capable of implementing multi-level preemption for the chip. Referring to fig. 1c, the first fast service interface may be denoted as an e1MAC service interface, the second fast service interface may be denoted as an e0MAC service interface, and the preemptible service interface may be denoted as a pMAC service interface. The performance in terms of delay and jitter is pMAC, e0MAC, e1MAC respectively from low to high. The preemption sequence of the multi-level MAC service interfaces is from high to low: e1MAC can preempt e0MAC and pMAC; the e0MAC may preempt pMAC. In the process of transmitting the low-priority message, when the high-priority message arrives, the low-priority message needs to wait for the transmission of the high-priority message to be completed, and then the low-priority message is continuously transmitted. In this example, the two-stage frame preemption manner of the eMAC and the pMAC in the related art is upgraded to the multi-stage frame preemption manner. Aiming at the fast packet data stream, the transmission of the data stream of each priority can be accurately realized strictly according to the actual requirements of a plurality of delay levels and jitter levels, and the delay and jitter performance guarantee of finer granularity is provided. For example, in the case that a time triggered flow (TT flow), a rate limited flow (RC flow), and a best effort flow (BE flow) need to BE transmitted in the TSN network, TT flow may BE configured to BE transmitted through an e1MAC service interface, RC flow may BE configured to BE transmitted through an e0MAC service interface, and BE flow may BE configured to BE transmitted through a pMAC service interface.
The embodiment of the present specification provides a scenario example of a data transmission method capable of implementing multi-level preemption for the chip. Referring to fig. 1d, the chip may include an e2MAC service interface, an e1MAC service interface, an e0MAC service interface, and a pMAC service interface. The performance is pMAC, e0MAC, e1MAC, e2MAC respectively according to the delay and the jitter from low to high. The preemption sequence of the multi-level MAC service interfaces is from high to low: e2MAC can preempt e1MAC, e0MAC and pMAC; the e1MAC can preempt the e0MAC and the pMAC; the e0MAC may preempt pMAC.
In the present scenario example, a transmission time triggered stream (TT stream) and a rate limited stream (RC stream) are required in the TSN network. Illustratively, the TT stream includes a TT1 data stream required by a first latency level and a TT2 data stream required by a second latency level. The first latency level has priority over the second latency level. At this time, TT1 data may be configured to be transmitted through the e2MAC service interface, TT2 data may be configured to be transmitted through the e1MAC service interface, and RC may be configured to be transmitted through the e0MAC service interface. By the method in the scene example, the communication performance of the RC flow can be ensured on the premise of meeting TT flow certainty real-time communication.
In this scenario example, a transmission time triggered stream (TT stream) is required in the TSN network. Illustratively, the TT stream comprises a TT1 data stream required by a first latency level, a TT2 data stream required by a second latency level, and a TT3 data stream required by a third latency level. The first delay level has priority over the second delay level and the second delay level has priority over the third delay level. At this time, TT1 data may be configured to be transmitted through the e2MAC service interface, TT2 data may be configured to be transmitted through the e1MAC service interface, and TT3 data may be configured to be transmitted through the e0MAC service interface. By the method in the scene example, delay and jitter performance guarantee with finer granularity can be provided for various TT streams.
The embodiment of the present specification provides another example of a scenario of a data transmission method capable of implementing multi-level preemption for the chip. Referring to fig. 1e, the chip may include an e7MAC service interface, an e6MAC service interface, an e5MAC service interface, an e4MAC service interface, an e3MAC service interface, an e2MAC service interface, an e1MAC service interface, an e0MAC service interface, and a pMAC service interface. The time delay performance and the jitter performance are pMAC, e0MAC, e1MAC, e2MAC, e3MAC, e4MAC, e5MAC, e6MAC and e7MAC respectively from low to high. The preemption sequence of the multi-level MAC service interfaces is from high to low: the e7MAC can preempt e6MAC, e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; the e6MAC can preempt e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; the e5MAC can preempt e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; e4MAC can preempt e3MAC, e2MAC, e1MAC, e0MAC and pMAC; e3MAC can preempt e2MAC, e1MAC, e0MAC and pMAC; e2MAC can preempt e1MAC, e0MAC and pMAC; e1MAC can preempt e0MAC and pMAC; the e0MAC may preempt pMAC.
In the present scenario example, the message may be divided into multiple priorities, for example, 8 priorities or 16 priorities, in the network device. This scenario example is not so limited. In this scenario example, the network device divides the data frame into 8 priorities, including priorities 0 to 7, as an example for explanation. Wherein, the larger the priority value, the higher the priority. The network device may include 8 egress port queues, and each egress port queue is used to buffer a data frame of a priority level. With continued reference to FIG. 1e, the 8 egress port queues may be denoted as Q0, Q1, Q2, Q3, Q4, Q5, Q6, and Q7, respectively.
In this scenario example, 8 priority data streams need to be transmitted in the TSN network, which are denoted as Q0 data stream, Q1 data stream, Q2 data stream, Q3 data stream, Q4 data stream, Q5 data stream, Q6 data stream, and Q7 data stream.
The process of multi-level preemptive nested scheduling transmission is illustratively described.
In the process of transmitting the Q0 data stream through the e0MAC service interface, the Q1 data stream is received, and the MAC client side sends a snap-off control signal hold-1. And suspending transmission of the Q0 data stream according to the emergency control signal hold-1, and starting to transmit the Q1 data stream through the e1MAC service interface.
In the process of transmitting Q1 data flow through the e1MAC service interface, the Q2 data flow is received, and the MAC client side sends a pre-crash control signal hold-2. And suspending transmission of the Q1 data stream according to the emergency control signal hold-2, and starting to transmit the Q2 data stream through the e2MAC service interface.
In the process of transmitting Q2 data flow through the e2MAC service interface, the Q3 data flow is received, and the MAC client side sends a pre-crash control signal hold-3. And suspending the transmission of the Q2 data stream according to the emergency control signal hold-3, and starting to transmit the Q3 data stream through the e3MAC service interface.
In the process of transmitting the Q3 data stream through the e3MAC service interface, the Q4 data stream is received, and the MAC client sends a pre-crash control signal hold-4. And suspending the transmission of the Q3 data stream according to the emergency control signal hold-4, and starting to transmit the Q4 data stream through the e4MAC service interface.
In the process of transmitting the Q4 data stream through the e4MAC service interface, the Q5 data stream is received, and the MAC client sends a snap-off control signal hold-5. And suspending the transmission of the Q4 data stream according to the emergency control signal hold-5, and starting to transmit the Q5 data stream through the e5MAC service interface.
In the process of transmitting the Q5 data stream through the e5MAC service interface, the Q6 data stream is received, and the MAC client sends a snap-off control signal hold-6. And suspending the transmission of the Q5 data stream according to the emergency control signal hold-6, and starting to transmit the Q6 data stream through the e6MAC service interface.
In the process of transmitting the Q6 data stream through the e6MAC service interface, the Q7 data stream is received, and the MAC client sends a pre-crash control signal hold-7. And suspending the transmission of the Q6 data stream according to the emergency control signal hold-7, and starting to transmit the Q7 data stream through the e7MAC service interface.
After the transmission of the Q7 data stream is completed through the e7MAC service interface, the MAC client sends a release control signal release-7, and the Q6 data stream is continuously sent through the e6MAC service interface according to the release control signal release-7.
After the transmission of the Q6 data stream is completed through the e6MAC service interface, the MAC client sends a release control signal release-6, and the Q5 data stream is continuously sent through the e5MAC service interface according to the release control signal release-6.
After the transmission of the Q5 data stream is completed through the e5MAC service interface, the MAC client sends a release control signal release-5, and the Q4 data stream is continuously sent through the e4MAC service interface according to the release control signal release-5.
After the transmission of the Q4 data stream is completed through the e4MAC service interface, the MAC client sends a release control signal release-4, and the Q3 data stream is continuously sent through the e3MAC service interface according to the release control signal release-4.
After the Q3 data stream is transmitted through the e3MAC service interface, the MAC client sends a release control signal release-3, and the Q2 data stream is continuously sent through the e2MAC service interface according to the release control signal release-3.
After the Q2 data stream is transmitted through the e2MAC service interface, the MAC client sends a release control signal release-2, and the Q1 data stream is continuously sent through the e1MAC service interface according to the release control signal release-2.
After the Q1 data stream is transmitted through the e1MAC service interface, the MAC client sends a release control signal release-1, and the Q0 data stream is continuously sent through the e0MAC service interface according to the release control signal release-1.
Therefore, when data streams with different delays and jitter levels need to be transmitted, the communication performance of the flow required by the multistage different delays and jitter levels can be strictly guaranteed by the data transmission method which is provided for the chip and can realize multistage preemption in the scene example.
Referring to fig. 2, an embodiment of the present disclosure provides a data transmission method, which may include the following steps.
S210, under the condition that the first fast message is received and the second fast message is being sent, sending a first emergency control signal based on the first group information of the first fast message.
Wherein the first fast packet and the second fast packet belong to fast packets, respectively. The data stream transmitted by the TSN network is divided into fast packets and preemptible packets. The flow grade of the fast packet is higher than that of the preemptible packet, and the transmission of the preemptive packet data flow can be interrupted due to the bringing of the fast packet data flow. Further, the fast packets may also be divided into multiple priority levels according to the level of delay requirement of the data stream. The fast packet includes fast packets of at least two priorities, such as a first fast packet and a second fast packet. The high priority fast packet may interrupt the transmission of the low priority fast packet. Illustratively, the fast packet may include TT flows of multiple latency requirement levels, and the fast packet may include TT flows of at least one latency requirement level, at least one RC flow.
The first emergency control signal is accompanied by an emergency indication and a first interface identifier corresponding to the first tuple information. The first interface identifier is used for indicating a fast service interface for sending the first fast message. And the second quick message is sent through the quick service interface indicated by the second interface identifier. Specifically, the first snap-off control signal carries two parameters. One of the parameters is a snap-off indication parameter, such as hold or H; another parameter is an interface identification parameter, which may be, for example, any integer from 0 to 7. Illustratively, the first preempt control signal may be denoted as ctl. The parameter hold is used for indicating to preempt the relatively low priority fast message being transmitted under the condition that the relatively high priority fast message arrives, and starting the fast service interface corresponding to the interface identification parameter to transmit the relatively high priority fast message. The parameter 5 is used to refer to the fast service interface for transmitting the relatively high priority fast packet, i.e. the fast service interface 5 is enabled to transmit the relatively high priority fast packet. It should be noted that, for the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, the control signal only carries the Hold parameter, and the fast message preemption is controlled by the Hold parameter.
The first tuple information may be any one of tuple information such as quadruple information and quintuple information. The first tuple information may include at least one of a source IP address (srcIP), a source MAC address (srcMAC), a destination IP address (destIP), a destination MAC address (destMAC), a source port (srcPort), and a destination port (destPort), and may further include a user-defined field (udf).
In some cases, the data streams transmitted by the TSN network need to satisfy different latency requirements. In some related technologies, the preemption mode can be implemented by dynamically adjusting the frame type of the data frame, but the communication performance exhibited when a data stream with various levels of delay and jitter requirements needs to be transmitted needs to be improved. In other related technologies, to ensure the delay requirements of a strict delay requirement data stream and a fixed delay requirement data stream, a frame structure and a frame preemption frame mapping rule are changed, mapping of various priorities to each MAC independent sub-layer is completed by adding one bit (the ninth bit) on the basis of eight bits, the ninth bit (the highest bit) and the low eight bits are defined to be respectively combined, but the data stream with the changed frame structure is not the same as the frame structure in the standard, that is, the data stream with the changed frame structure is not universal, and an opposite end may not receive the data stream with the changed frame structure. Therefore, the embodiment of the present specification designs a preemptive interrupt control signal, and implements the nested scheduling of the fast packets with different multi-level delay requirements through the preemptive interrupt control signal without changing the format of the data frame, thereby ensuring the universality. In particular, the higher layers of the MAC layer may be referred to as MAC clients. The MAC layer may be divided into several sublayers, which may correspond to fast service interfaces or preemptible service interfaces. And in the process of sending the second quick message through the quick service interface indicated by the second interface identifier, the MAC client receives the first quick message. The first fast message corresponds to the multi-tuple information, i.e. the first tuple information. A latency requirement level of the first fast packet may be determined based on the first tuple information. Under the condition that the delay requirement level determined based on the first tuple information indicates that the first fast message needs to be sent preferentially, a first preemptive breaking control signal can be generated based on the first tuple information of the first fast message, and the MAC client can send the first preemptive breaking control signal.
And S220, controlling the second fast message to be transmitted in a pause mode through the fast service interface indicated by the second interface identifier and controlling the first fast message to be transmitted through the fast service interface indicated by the first interface identifier according to the emergency interruption indication and the first interface identifier.
Specifically, based on the first interruption indication carried by the first interruption control signal, if the first quick message needs to be transmitted, the second quick message is controlled to suspend sending. The fast service interface for sending the first fast message can be designated based on the first interface identifier carried by the first preemptive interrupt control signal, so that the first fast message can be controlled to be sent to the fast service interface designated by the first interface identifier, and the first fast message is sent preferentially through the fast service interface designated by the first interface identifier.
It should be noted that the fast service interface denoted by the second interface identifier, that is, the service interface used for sending the second fast packet, also belongs to the fast service interface. However, based on the multi-level nested frame preemption mechanism provided by the embodiment of the present specification, when facing multi-level fast messages with different delay requirements, different fast messages with different delay requirements of different levels can be sent through different fast service interfaces. Different quick service interfaces have different interface identifications, based on the interface identification carried in the preemptive interrupt control signal, the transmission of the quick message with the relatively low time delay requirement which is preempted is suspended, and the quick message with the relatively high time delay requirement is preferentially transmitted.
In the data transmission method, when a first quick message is received and a second quick message is transmitted through a quick service interface indicated by a second interface identifier, a first emergency-breaking control signal is transmitted based on first group information of the first quick message; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; therefore, according to the emergency indication and the first interface identifier, the fast service interface indicated by the second interface identifier of the second fast message is controlled to suspend sending, and the first fast message is controlled to start sending through the fast service interface indicated by the first interface identifier. By designing a plurality of quick service interfaces, a snap control signal carrying snap instructions and interface identifiers according to different levels of time delay and jitter requirements, a frame structure does not need to be changed, and the snap control signal is consistent with a frame structure defined by a standard, so that the probability that an opposite end cannot receive data streams is reduced, the universality of the data streams is improved, and the communication performance required in a data stream scene with various levels of time delay and jitter requirements is realized.
In some embodiments, the first fast packet has a higher priority than the second fast packet.
In some cases, the network device may divide the data flow into multiple priorities, such as 8. Data with the priority of 0-3 is divided into preemptible groups, and data flow with the priority of 4-7 is divided into fast groups. The priorities 4-7 in the fast packets cannot be preempted mutually, so that the data stream is simply divided into the fast packets and the preemptible packets, and the preemptible packets can be preempted, and the situation that the fast packets with the priorities 4-7 in the fast packets in an actual scene need to meet different delay requirements cannot be realized. Therefore, in the embodiments of the present specification, different priorities are further configured for fast packets with different latency requirements in the fast packet. The priority of the first fast message is higher than that of the second fast message.
In some embodiments, referring to fig. 3, the data transmission method may include the following steps.
And S310, sending a first release control signal under the condition that the first quick message is sent completely. Wherein, the first release control signal is attached with a release indication and a first interface identification.
And S320, controlling the second fast message to start to continue to be sent through the fast service interface indicated by the second interface identifier according to the release indication and the first interface identifier.
Wherein, the first release control signal is attached with a release indication and a first interface identification. Specifically, the first release control signal carries two parameters. One of the parameters is a release indication parameter, such as release, or R; another parameter is an interface identification parameter, which may be, for example, any integer from 0 to 7. The first release control signal may illustratively be denoted as ctl. The parameter release is used for indicating that the suspended relatively low priority fast message is continuously transmitted first under the condition that the relatively high priority fast message is sent, and starting the corresponding fast service interface to transmit the relatively low priority fast message. The parameter 5 is used to refer to the fast service interface used to transmit relatively high priority fast messages, i.e. the fast service interface 5 is released to transmit relatively low priority fast messages. It should be noted that, in the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, the control signal only carries a release parameter, and the message can be preempted to continue to be transmitted under the control of the release parameter.
In some cases, the first fast packet preempts the sending of the second fast packet during the process of sending the second fast packet through the fast service interface referred to by the second interface identifier. And under the condition that the first quick message is sent completely, continuously sending a second quick message. Specifically, after the first fast packet has snapped the second fast packet, the first release control signal is sent when the first fast packet is sent completely. And if the transmission of the first quick message is finished and the transmission of the second quick message is needed based on the release indication carried by the first release control signal, the second quick message is continuously sent through the quick service interface indicated by the second interface identifier. The fast service interface for sending the first fast message can be released based on the first interface identifier carried by the first release control signal, so that the second fast message can be sent to the corresponding fast service interface, and the fast service interface indicated by the second interface identifier is controlled to start to continue sending the second fast message.
In some embodiments, the data transmission method may include the steps of: and in the process of continuously sending the second fast message through the fast service interface indicated by the second interface identifier, controlling the second fast message to be continuously sent based on the second tuple information of the preemptible message under the condition of receiving the preemptible message to be sent.
Wherein, the preemptible message belongs to a preemptible group. The preemptible packet in the preemptible packet may include a data flow corresponding to the best effort service. The priority of the preemptible packets belonging to the preemptible packet is lower than the priority of each fast packet in the fast packet. Therefore, in the process of sending the second fast message, if the preemptible message to be sent is received, because the priority of the preemptible message is lower than that of the second fast message, that is, the second fast message needs to be transmitted preferentially, the second fast message is sent continuously. The preemptible message needs to wait for the message with higher priority to finish sending and release the corresponding service interface before starting sending.
Specifically, whether in the process of sending the second fast packet for the first time or in the process of continuing to send the second fast packet, if the preemptible packet arrives, the preemptible packet corresponds to second tuple information, where the second tuple information includes at least one of a source IP address (srcIP), a source MAC address (srcMAC), a destination IP address (destIP), a destination MAC address (destMAC), a source port (srcPort), and a destination port (destPort), and the second tuple information may further include a user-defined field (udf). And determining that the priority of the preemptible message is lower than that of the second quick message based on the second tuple information of the preemptible message. Therefore, the preemptive message cannot preempt the sending of the second fast message, and the second fast message is controlled to be sent continuously.
In some embodiments, referring to fig. 4, the data transmission method may include the following steps.
And S410, sending a second release control signal under the condition that the second quick message is sent.
And S420, controlling the preemptible message to start sending according to the release indication and the second interface identification.
The second release control signal is accompanied by a release indication and a second interface identifier. And the second interface identifier is used for indicating a quick service interface for sending the second quick message. The second release control signal carries two parameters. One of the parameters is a release indication parameter, such as release, or R; another parameter is an interface identification parameter, which may be, for example, any integer from 0 to 7. Exemplarily, the first release control signal may be denoted as ctl. The parameter release is used for indicating that the suspended relatively low priority fast message is continuously transmitted first under the condition that the relatively high priority fast message is sent, and starting the corresponding fast service interface to transmit the relatively low priority fast message. Parameter 4 is used to refer to the fast service interface used to transmit relatively high priority fast messages, i.e. the fast service interface 4 is released to transmit relatively low priority fast messages.
In some cases, a preemptible packet is received during the sending of the second fast packet. And when the second quick message is sent, the preemptible message needs to be sent. Specifically, after the first fast packet has snapped the second fast packet, the first release control signal is sent when the first fast packet is sent completely. And based on the release indication carried by the first release control signal, the transmission of the first quick message is completed, and the second quick message needs to be transmitted, and then the second quick message is continuously sent. The fast service interface for sending the first fast message can be released based on the first interface identifier carried by the first release control signal, so that the second fast message can be sent to the fast service interface corresponding to the second interface identifier, and the fast service interface corresponding to the second interface identifier is controlled to start to continue sending the second fast message.
And receiving the preemptible message in the process of sending the second quick message. And sending a second release control signal under the condition that the second quick message is sent completely because the priority of the preemptible message is lower than that of the second quick message. And based on the release indication carried by the second release control signal, indicating that the transmission of the second fast message is completed, and starting to send the preemptible message when the preemptible message needs to be transmitted. The fast service interface for sending the second fast message may be released based on the second interface identifier carried in the second release control signal, so that the preemptible message may be sent to the preemptible service interface corresponding to the second release control signal, and the corresponding preemptible service interface is controlled to start sending the preemptible message.
It should be noted that, in the process of sending the preemptible packet, the fast packet of any priority in the fast packet is received, and the fast packet can preempt the preemptible packet, and the release control signal is sent when the fast packet is sent. The preemptible packet may be controlled to continue to be sent based on the release control signal.
In some embodiments, the data transmission method may include the steps of: and in the process of sending the second quick message, controlling the second quick message to be sent continuously on the basis of the third triplet information of the third quick message under the condition of receiving the third quick message to be sent.
Wherein the third fast packet belongs to a fast packet, and the priority of the second fast packet is higher than the priority of the third fast packet. The third triplet information includes at least one of a source IP address (srcIP), a source MAC address (srmacs), a destination IP address (destIP), a destination MAC address (destMAC), a source port (srcPort), and a destination port (destPort), and may further include a user defined field (udf). And determining that the priority of the third quick message is lower than that of the second quick message based on the third triplet information of the third quick message. Therefore, the third fast message cannot preempt the transmission of the second fast message, and the second fast message is controlled to continue to be transmitted.
Specifically, whether in the process of sending the second fast packet for the first time or in the process of continuing to send the second fast packet, if the third fast packet arrives, the third fast packet corresponds to the third triplet information, and based on the third triplet information of the third fast packet, it may be determined that the priority of the third fast packet is lower than the priority of the second fast packet. Therefore, the third fast message cannot preempt the transmission of the second fast message, and the second fast message is controlled to continue to be transmitted.
In some embodiments, referring to fig. 5, the data transmission method may include the following steps.
And S510, sending a second release control signal under the condition that the second quick message is sent completely.
S520, controlling the third fast message to start to be sent through the fast service interface indicated by the third interface identifier according to the release indication and the second interface identifier.
The second release control signal is accompanied by a release instruction and a second interface identifier; and the second interface identifier is used for indicating a quick service interface for sending the second quick message. The second release control signal carries two parameters. One of the parameters is a release indication parameter, such as release, or R; another parameter is an interface identification parameter, which may be, for example, any integer from 0 to 7. The first release control signal may illustratively be denoted as ctl. The parameter release is used for indicating that the suspended relatively low priority fast message is continuously transmitted first under the condition that the relatively high priority fast message is sent, and starting the corresponding fast service interface to transmit the relatively low priority fast message. Parameter 4 is used to refer to the fast service interface used to transmit the relatively high priority fast packets, i.e. the fast service interface 4 is released to transmit the relatively low priority fast packets.
In some cases, a third fast message is received during the transmission of the second fast message. And under the condition that the second quick message is sent completely, the third quick message needs to be sent. Specifically, after the first fast packet has snapped the second fast packet, the first release control signal is sent when the first fast packet is sent completely. And if the transmission of the first quick message is finished and the transmission of the second quick message is needed based on the release indication carried by the first release control signal, starting to continuously transmit the second quick message. The fast service interface for sending the first fast message can be released based on the first interface identifier carried by the first release control signal, so that the second fast message can be sent to the fast service interface corresponding to the second interface identifier, and the fast service interface indicated by the second interface identifier is controlled to start to continue sending the second fast message.
And in the process of sending the second quick message, a third quick message is received. And sending a second release control signal under the condition that the second quick message is sent completely because the priority of the third quick message is lower than that of the second quick message. And based on the release indication carried by the second release control signal, the transmission of the second quick message is completed, and if a third quick message needs to be transmitted, the third quick message is sent. The fast service interface for sending the second fast packet can be released based on the second interface identifier carried by the second release control signal, so that the third fast packet can be sent to the corresponding fast service interface (the fast service interface indicated by the third interface identifier), and the fast service interface indicated by the third interface identifier is controlled to start sending the third fast packet.
In some embodiments, referring to fig. 6, the data transmission method may include the following steps.
S610, in the process of sending the first fast message, sending a second emergency control signal based on fourth tuple information of a fourth fast message to be sent under the condition of receiving the fourth fast message to be sent.
And S620, controlling the first fast message to be transmitted in a pause mode according to the emergency break instruction and the fourth interface identification, and controlling the fourth fast message to be transmitted through the fast service interface indicated by the fourth interface identification.
The fourth fast message belongs to the fast packet, and the priority of the fourth fast message is higher than that of the first fast message. The second emergency control signal is attached with an emergency indication and a fourth interface identifier corresponding to the fourth tuple information. And the fourth interface identifier is used for indicating a quick service interface for sending a fourth quick message.
The fourth tuple information includes at least one of a source IP address (srcIP), a source MAC address (srcMAC), a destination IP address (destIP), a destination MAC address (destMAC), a source port (srcPort), and a destination port (destPort), and may further include a user-defined field (udf). And determining that the priority of the fourth quick message is higher than that of the first quick message based on the fourth tuple information of the fourth quick message. Therefore, the fourth fast message can preempt the sending of the first fast message and control the fourth fast message to start sending.
Specifically, in the process of sending the second fast message, the first fast message is received, and the first emergency control signal is sent based on the first group information of the first fast message. The first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information. And controlling the second quick message to be temporarily stopped from sending and controlling the first quick message to be sent through the quick service interface indicated by the first interface identifier according to the emergency interruption indication and the first interface identifier.
Further, in the process of sending the first fast message, a fourth fast message to be sent is received. And determining the priority of the fourth fast message based on the fourth tuple information of the fourth fast message, wherein the priority of the fourth fast message is higher than that of the first fast message, so as to send a second preemptive breaking control signal. The second emergency control signal is attached with an emergency indication and a fourth interface identifier corresponding to the fourth tuple information.
And controlling the first fast message to suspend sending if the fourth fast message needs to be transmitted based on the emergency indication carried by the second emergency control signal. And a fourth interface identifier carried by the second preemptive interrupt control signal can designate a fast service interface for sending the fourth fast message, so that the fourth fast message can be controlled to be sent to the fast service interface indicated by the fourth interface identifier, and the fast service interface indicated by the fourth interface identifier starts to send the fourth fast message preferentially.
In some embodiments, the first fast packet is obtained by encapsulating the data stream in the queue. Before receiving the first fast message, the data transmission method may include the steps of: acquiring a data stream; wherein the data stream corresponds to the first tuple information. Adding the data flow into a queue corresponding to the first tuple information; wherein, the queues correspond to different priorities; the priority corresponding to the queue corresponds to the interface identifier of the quick service interface.
Specifically, the first tuple information may include at least one of a source IP address (srcIP), a source MAC address (srcMAC), a destination IP address (destIP), a destination MAC address (destMAC), a source port (srcPort), and a destination port (destPort), and may further include a user-defined field (udf). Determining a queue corresponding to the data flow according to the first tuple information corresponding to the data flow, and adding the data flow to the queue corresponding to the first tuple information. Different queues have different priorities, and the priority corresponding to the queue corresponds to the interface identifier of the quick service interface.
It should be noted that, in the embodiment of the present specification, the priority of the data flow is bound to the queue. The priority of the data stream is determined based on the tuple information corresponding to the data stream, so that the data stream can be added into the corresponding queue. The MAC client may send a snap-off control signal, where an interface identifier carried by the snap-off signal corresponds to a queue where the data stream is located, that is, the MAC client informs a lower layer which queue needs to send data.
In some embodiments, adding the data stream to the queue corresponding to the first tuple information may include: performing pattern matching on the data stream according to the first element group information, and determining a data identifier of the data stream; and adding the data stream into a queue corresponding to the data identification of the data stream.
Specifically, a mapping policy between the data identifier and the tuple information has been set in advance, after the data stream arrives, pattern matching is performed on the data stream by using the first tuple information of the data stream, and the data identifier (Tag) is added to the data stream according to a matching result. Further, the corresponding relationship between the data identifier and the queue is preset, so that queue mapping can be performed based on the data identifier of the data stream, and the data stream is added to the corresponding queue according to the data identifier of the data stream.
In some embodiments, the data transmission method may further include: and packaging the data stream based on the priority corresponding to the queue to obtain a first quick message. Wherein the designated component of the first fast packet is accompanied by the priority of the first fast packet. And adding the first quick message into the target cache module according to the attached priority of the specified component of the first quick message. The target cache module is set for the quick service interface referred by the first interface identifier.
Wherein the fast message has a fixed structure. The specified component may be any structural part in the quick message. And for any queue, encapsulating the data stream in the queue according to the priority corresponding to the queue, and encapsulating the priority corresponding to the queue in the appointed component of the fast message to obtain the first fast message, so that the appointed component of the first fast message is attached with the priority of the first fast message. Further, the first fast packet is obtained by encapsulating the data column in any one of the queues, and then the priority of the queue is bound to the priority of the fast packet, and the priority of the fast packet determines the fast service interface for sending the fast packet. Different cache modules are corresponding to different fast service interfaces, and the cache modules are used for caching the fast messages which need to be sent corresponding to the fast service interfaces. Therefore, if the first fast packet needs to be sent, the first fast packet is added to the target cache module set for the fast service interface referred by the first interface identifier.
In some embodiments, encapsulating the data stream based on the priority corresponding to the queue to obtain a first fast packet includes: and packaging the corresponding frame lead code for the data stream based on the priority corresponding to the queue to obtain a first quick message.
Specifically, the first fast packet is obtained based on the frame preamble corresponding to the priority corresponding to the queue. So that the frame preamble of the first fast packet can be used to determine the priority of the first fast packet. It should be noted that the differentiation of different priorities by using the frame preamble is only one example, and practical implementations include, but are not limited to, this.
In some embodiments, suspending sending the second fast packet may include: and under the condition that the sending condition of the second quick message is judged to meet the emergency-breaking condition, the second quick message is suspended from being sent.
Specifically, the MAC layer further includes a MAC merging sublayer. And receiving the first quick message in the process of sending the second quick message. The priority of the first fast message is higher than that of the second fast message, and the first fast message can rush to break the second fast message, but whether the first fast message meets the rush condition needs to be further judged. The condition of the emergency shutdown can be: the low priority message has at least 64 remaining bytes of data not transmitted and at least 60 bytes of data already transmitted. The MAC merging sublayer judges whether the sending condition of the second quick message meets the condition of the emergency stop, if so, the MAC merging sublayer indicates that the second quick message can be emergency stopped, thereby suspending the sending of the second quick message.
In some embodiments, the data transmission method may further include: and recording the breakpoint of the second quick message which is snapped. The breakpoint is used for marking the part of the second quick message, which is sent completely.
Specifically, the MAC merging sublayer may also be configured to record a breakpoint at which the second fast packet is snapped. And under the condition that the first quick message is transmitted, the second quick message can be continuously transmitted by taking the recorded breakpoint as reference.
In some embodiments, different cache modules are respectively provided for a fast service interface for sending a first fast packet and a fast service interface for sending a second fast packet. The fast packet's packets include time triggered traffic and/or rate limited traffic. Illustratively, a fast-packet message may include time-triggered traffic flows of a plurality of different latency levels. Illustratively, the fast-packet may include a plurality of time-triggered traffic flows of different delay levels, and at least one rate-limited traffic flow. Illustratively, a fast packet's packets may include a plurality of rate limited traffic streams of different latency levels.
In some embodiments, a cache module is provided for a preemptible service interface that sends a preemptible packet; the preemptible packet includes a best effort traffic flow.
In some cases, although two-level preemption mechanisms of the eMAC and the pMAC may be adopted, when the priority of the data frame exceeds two, the priority transmission of the data frame with high priority cannot be guaranteed, so that not only the fast message with multiple priorities needs the multi-level preemption mechanism, but also the preemptible message with multiple priorities needs the multi-level preemption mechanism, and therefore, in the embodiment, multiple preemptible service interfaces may also be set. Different preemptible service interfaces can respectively correspond to preemptible messages with different priorities. Illustratively, the number of the quick service interfaces may be 4, and 4 quick service interfaces may be used to transmit quick messages with 4 priorities. The number of preemptible service interfaces may be 4. The 4 preemptible service interfaces may be used to transmit 4 priority fast message preemptible messages. Illustratively, the number of fast service interfaces may be 6, and the number of preemptible service interfaces may be 2. And will not be described in detail herein.
In some embodiments, the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
Specifically, the number of quick service interfaces is any one of 2 to 8. The number of preemptible service interfaces is 1. Illustratively, the number of fast service interfaces is 2 and the number of preemptible service interfaces is 1. The number of fast service interfaces is 3 and the number of preemptible service interfaces is 1. The number of fast service interfaces is 4, the number of preemptible service interfaces is 1, and so on, which will not be described herein.
Referring to fig. 7, an embodiment of the present disclosure provides a data transmission method, which may include the following steps.
S702, acquiring a data stream; wherein the data stream corresponds to the first tuple information.
S704, performing pattern matching on the data stream according to the first tuple information, and determining the data identifier of the data stream.
S706, adding the data stream into the queue corresponding to the data identification of the data stream.
Wherein, the queues correspond to different priorities; the priority corresponding to the queue corresponds to the interface identifier of the quick service interface.
S708, packaging the corresponding frame lead code for the data stream based on the priority corresponding to the queue to obtain a first quick message.
Wherein the designated component of the first fast packet is accompanied by the priority of the first fast packet.
And S710, adding the first quick message into the target cache module according to the attached priority of the specified component of the first quick message.
And the target cache module is set for the quick service interface referred by the first interface identifier.
S712, sending a first preemptive interrupt control signal based on the first tuple information of the first fast packet when the first fast packet is received and the second fast packet is being sent.
The first fast message and the second fast message belong to fast packets respectively; the first emergency control signal is accompanied by an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending a first quick message; and the second quick message is sent through the quick service interface indicated by the second interface identifier.
The method comprises the steps that different cache modules are respectively arranged for a quick service interface for sending a first quick message and a quick service interface for sending a second quick message; the fast packet's packets include time triggered traffic and/or rate limited traffic. The number of quick service interfaces ranges from 2 to 8.
The priority of the first fast message is higher than that of the second fast message.
And S714, controlling the second fast message to pause sending and controlling the first fast message to start sending through the fast service interface designated by the first interface identifier according to the emergency interruption indication and the first interface identifier.
Specifically, under the condition that the sending condition of the second fast message is judged to meet the emergency-breaking condition, the sending of the second fast message is suspended. Recording the breakpoint of the second quick message which is snapped; the breakpoint is used for marking the part of the second fast message, which has been sent.
S716, sending a first release control signal under the condition that the first quick message is sent completely; wherein, the first release control signal is attached with a release indication and a first interface identification.
And S718, controlling the second fast message to start to continue to be sent according to the release indication and the first interface identifier.
And S720, in the process of sending the second fast message, controlling the second fast message to be sent continuously based on the second tuple information of the preemptible message under the condition of receiving the preemptible message to be sent.
Wherein, the preemptible message belongs to a preemptible group. A cache module is arranged aiming at a preemptible service interface for sending a preemptible message; the preemptible packet includes a best effort traffic flow. The number of preemptible service interfaces is 1.
S722, sending a second release control signal under the condition that the second quick message is sent; the second release control signal is attached with a release instruction and a second interface identifier; and the second interface identifier is used for indicating a quick service interface for sending the second quick message.
And S724, controlling the preemptible message to start sending according to the release indication and the second interface identification.
And S726, in the process of sending the second fast message, under the condition of receiving a third fast message to be sent, controlling the second fast message to continue to be sent based on the third triplet information of the third fast message.
Wherein the third fast packet belongs to a fast packet, and the priority of the second fast packet is higher than the priority of the third fast packet.
And S728, sending a second release control signal when the second quick message is sent.
The second release control signal is accompanied by a release instruction and a second interface identifier; and the second interface identifier is used for indicating a quick service interface for sending the second quick message.
And S730, controlling the third fast message to start sending according to the release indication and the second interface identifier.
Specifically, the third fast packet is controlled to start sending through the fast service interface indicated by the third interface identifier.
S732, in the process of sending the first fast message, sending a second snap-off control signal based on fourth tuple information of a fourth fast message to be sent under the condition of receiving the fourth fast message to be sent.
The fourth fast message belongs to the fast packet, and the priority of the fourth fast message is higher than that of the first fast message; the second emergency control signal is accompanied by an emergency indication and a fourth interface identifier corresponding to the fourth tuple information; and the fourth interface identifier is used for indicating a quick service interface for sending the fourth quick message.
S734, according to the emergency indication and the fourth interface identifier, controlling the first fast message to suspend sending, and controlling the fourth fast message to start sending through the fast service interface indicated by the fourth interface identifier.
Referring to fig. 8, an embodiment of the present disclosure provides a data receiving method, which may include the following steps.
S810, determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet.
Wherein, different priorities correspond to different first processing units. Different first processing units correspond to different quick service interfaces. The data stream transmitted by the TSN network is divided into fast packets and preemptible packets. The flow grade of the fast packet is higher than that of the preemptible packet, and the transmission of the preemptive packet data flow can be interrupted due to the bringing of the fast packet data flow. Further, the fast packets may also be divided into multiple priority levels according to the level of delay requirement of the data stream. The fast packet includes fast packets of at least two priorities, such as a first fast packet and a second fast packet. The high priority fast packet may interrupt the transmission of the low priority fast packet. Illustratively, the fast packet may include TT flows of multiple latency requirement levels, and the fast packet may include TT flows of at least one latency requirement level, at least one RC flow. When the multi-level fast messages with different time delay requirements are faced, different fast messages with different level time delay requirements are processed through different first processing units, different first processing units are correspondingly provided with different fast service interfaces, and different fast service interfaces have different interface identifiers. Wherein the number of the quick service interfaces is greater than or equal to 2.
Specifically, when the receiving end receives the message to be processed, the type of the message to be processed is determined, and under the condition that the message to be processed is determined to belong to the fast packet, the fast packet includes fast packets with at least two priorities, so that the priority of the message to be processed needs to be determined. Illustratively, the fast packets may be divided into Q0 data flow, Q1 data flow, Q2 data flow, with Q2 data flow having a higher priority than Q1 data flow and Q1 data flow having a higher priority than Q0 data flow. Illustratively, the fast packets may be divided into a Q0 data stream, a Q1 data stream, a Q2 data stream, a Q3 data stream, a Q4 data stream, a Q5 data stream, a Q6 data stream, a Q7 data stream; the Q7 data stream has a higher priority than the Q6 data stream; the Q6 data stream has a higher priority than the Q5 data stream; the Q5 data stream has a higher priority than the Q4 data stream; the Q4 data stream has a higher priority than the Q3 data stream; the Q3 data stream has a higher priority than the Q2 data stream; the Q2 data stream has a higher priority than the Q1 data stream, and the Q1 data stream has a higher priority than the Q0 data stream.
S820, distributing the message to be processed to the target processing unit corresponding to the priority of the message to be processed.
The target processing unit is used for determining the integrity of the message to be processed. When the fast packets with different priorities are confronted, the different fast packets with different priorities need to be processed by different first processing units. Specifically, the priority of the message to be processed corresponds to a target processing unit, and the message to be processed is distributed to the target processing unit according to the determined priority of the message to be processed. Illustratively, the target processing unit is utilized to perform frame integrity judgment on the message to be processed. When the message to be processed is judged to be incomplete, framing and checking can be carried out on the message to be processed by using the target processing unit so as to output a complete quick message.
And S830, sending the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
Wherein, different first processing units correspond to different fast service interfaces. Different fast service interfaces are obtained by dividing according to time delay and jitter performance. Specifically, the target processing unit outputs a complete fast packet. Because the fast message needs to be sent to the high layer through the fast service interface, the complete fast message is sent to the target fast service interface corresponding to the target processing unit.
The data receiving method applied to the receiving end determines the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet; and shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; so as to send the complete quick message output by the target processing unit to the target quick service interface corresponding to the target processing unit; by designing a plurality of quick service interfaces, the communication performance of the flow required by multistage different delay and jitter levels can be strictly ensured, and the first processing units corresponding to different priorities can provide finer-grained delay and jitter performance guarantee for various TT flows and RC flows.
In some embodiments, referring to fig. 9, before determining the priority of the received message to be processed in the case that the received message to be processed belongs to a fast packet, the data receiving method may further include the following steps.
S910, after receiving the message to be processed, checking the message to be processed.
S920, under the condition that the message to be processed passes the verification, determining that the message to be processed belongs to the fast packet based on the value of the first appointed component in the message to be processed.
Correspondingly, determining the priority of the message to be processed includes:
s930, determining the priority of the message to be processed based on the value of the first designated component in the message to be processed.
Wherein, the fast message has a fixed structure. The first designated component may be any structural part in the flash message. Illustratively, the first designated component may be a preamble.
Specifically, when a message to be processed is received at a receiving end, the message to be processed needs to be checked, and if the check is correct, the category to which the message to be processed belongs needs to be determined based on the value of the first designated component in the message to be processed. If the check is wrong, the processing message needs to be discarded. Further, since the priority of the packet has been encapsulated in the first designated component, the priority of the packet to be processed can be determined based on the value of the first designated component in the packet to be processed.
In some embodiments, the data receiving method may include: and under the condition that the message to be processed does not pass the verification, discarding the message to be processed.
In some embodiments, after receiving the message to be processed, verifying the message to be processed may include: and checking the message to be processed based on the value of the second designated component in the message to be processed.
In some embodiments, the first designated component is a preamble; the second designated component is a frame delimiter.
Illustratively, the data stream is subjected to pattern matching by using multi-group information such as srcMAC, destMAC, srcIP, destIP, srcPort, destPort, udf (user defined) and the like; for the data stream successfully matched, a stream identifier is distributed, and corresponding information, such as queue information and the like, is associated; enqueuing the data stream to different queues according to the stream identification and the corresponding information; and packaging different frame lead codes for the data packets in different queues, distinguishing different priorities, performing multi-level MAC preemption nesting scheduling, and merging and outputting the data streams.
In some embodiments, referring to fig. 10, the data receiving method may include the following steps.
And S1010, determining the message to be processed as the preemptible message under the condition that the received message to be processed belongs to the preemptible group.
And S1020, shunting the preemptible message to the second processing unit.
And S1030, sending the complete preemptible message output by the second processing unit to the preemptible service interface corresponding to the second processing unit.
The preemptible message is provided with a priority, and the priority of the preemptible message corresponds to the second processing unit. The second processing unit is corresponding to the preemptible service interface. The second processing unit is used for determining the integrity of the preemptible message. Specifically, when the receiving end receives the message to be processed, the type of the message to be processed is judged, and the message to be processed is determined to be a preemptible message under the condition that the message to be processed is judged to belong to the preemptible group. Furthermore, the priority of the preemptive message corresponds to a second processing unit. The second processing unit corresponds to the preemptible service interface and distributes the preemptible message to the second processing unit. The second processing unit outputs a complete fast message. The preemptible message is sent to the high layer through the preemptible service interface, so that the complete preemptible message is sent to the preemptible service interface corresponding to the second processing unit.
In some embodiments, different fast service interfaces are respectively provided with different cache modules; the preemptible service interface is also provided with a cache module; the fast packet message includes a time triggered flow and/or a rate limited flow; the packet preemptible packet includes a best effort traffic flow.
In some embodiments, the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
Specifically, the number of quick service interfaces is any one of 2 to 8. The number of preemptible service interfaces is 1. Illustratively, the number of fast service interfaces is 2 and the number of preemptible service interfaces is 1. The number of fast service interfaces is 3 and the number of preemptible service interfaces is 1. The number of fast service interfaces is 4, the number of preemptible service interfaces is 1, and so on, which will not be described herein.
In some embodiments, the method for determining the integrity of the message to be processed includes at least one of: under the condition that the message to be processed is judged to be a complete data frame, determining that the message to be processed is complete; or, under the condition that the message to be processed is judged to be an incomplete data frame, framing the message to be processed based on the frame delimiter and the fragment count to obtain the complete data frame.
Referring to fig. 11, a data receiving method according to an embodiment of the present disclosure may include the following steps.
S1102, after receiving the message to be processed, checking the message to be processed based on the value of the second designated component in the message to be processed.
And S1104, under the condition that the message to be processed passes the verification, determining that the message to be processed belongs to the fast packet based on the value of the first specified component in the message to be processed.
Wherein the first designated component is a preamble; the second designated component is a frame delimiter.
S1106, determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet.
Wherein, different priorities correspond to different first processing units; different first processing units correspond to different quick service interfaces. The number of the quick service interfaces is more than or equal to 2.
And S1108, distributing the message to be processed to the target processing unit corresponding to the priority of the message to be processed.
The target processing unit is used for determining the integrity of the message to be processed; specifically, under the condition that the message to be processed is judged to be a complete data frame, the message to be processed is determined to be complete; and under the condition that the message to be processed is judged to be an incomplete data frame, framing the message to be processed based on the frame delimiter and the fragment count to obtain the complete data frame.
S1110, the complete quick message output by the target processing unit is sent to a target quick service interface corresponding to the target processing unit.
S1112, determining the message to be processed as the preemptible packet when the received message to be processed belongs to the preemptible packet.
The preemptible message is provided with a priority, and the priority of the preemptible message corresponds to the second processing unit; the second processing unit is corresponding to the preemptible service interface.
S1114, shunting the preemptible message to a second processing unit; the second processing unit is used for determining the integrity of the preemptible message.
And S1116, sending the complete preemptible message output by the second processing unit to the preemptible service interface corresponding to the second processing unit.
Wherein, different fast service interfaces are respectively provided with different cache modules; the preemptive service interface is also provided with a cache module; the message of the fast packet comprises a time trigger flow and/or a rate limiting flow; the packet preemptible packet includes a best effort traffic flow. The number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
Referring to fig. 12a, the present disclosure provides a chip 1200, where the chip 1200 has a first fast service interface 1202, a second fast service interface 1204, and a preemptible service interface 1206. The first fast service interface 1202 and the second fast service interface 1204 are located between the MAC merging sublayer 1208 and the MAC client 1210, and are configured to transmit a fast packet between the MAC merging sublayer 1208 and the MAC client 1210.
The preemptible service interface 1206 is located between the MAC merge sub-layer 1208 and the MAC client 1210, and is used for transmitting the preemptible packet between the MAC merge sub-layer 1208 and the MAC client 1210.
The MAC merge sublayer 1208 provides the provide MAC client 1210 with a MAC merge service interface. The MAC merging service interface is configured to receive a robbery shutdown control signal sent by the MAC client 1210, where the robbery shutdown control signal is accompanied by a robbery shutdown indication and an interface identifier; the interface identification and the preemptive interrupt indication are used for determining a target service interface capable of transmitting the message in the first quick service interface, the second quick service interface and the preemptive service interface.
Specifically, a first fast service interface 1202, a second fast service interface 1204 and a preemptible service interface 1206 are arranged between the MAC merging sublayer 1208 and the MAC client 1210. The first fast service interface 1202 and the second fast service interface 1204 are used for transmitting fast messages between the MAC merging sublayer 1208 and the MAC client 1210. In a case where the MAC merging sublayer 1208 receives fast packets with multiple priorities, a fast service interface for transmitting the fast packet with the corresponding priority may be determined in the first fast service interface 1202 and the second fast service interface 1204. The high-priority fast message is transmitted through the fast service interface corresponding to the high priority, and the low-priority fast message is transmitted through the fast service interface corresponding to the low priority.
The preemptive service interface 1206 is used to transmit preemptive messages between the MAC merge sublayer 1208 and the MAC client 1210. The preemptive service interface 1206 may be understood as a data channel for transmitting the preemptive packet between the MAC merge sub-layer 1208 and the MAC client 1210. And in the case that the MAC merging sublayer 1208 receives the preemptible packet, the preemptible packet is transmitted to the MAC client 1210 through the preemptible service interface 1206.
The MAC merge service interface is a control interface provided by the MAC merge sublayer 1208 to the MAC client 1210. In the case that the MAC client 1210 needs to send a packet downward, the MAC client 1210 transmits a blackout control signal to the MAC merge service interface. The emergency control signal is attached with an emergency indication and an interface identifier; the interface identification and the preemptive interrupt indication are used for determining a target service interface capable of transmitting the message in the first quick service interface, the second quick service interface and the preemptive service interface. In other embodiments, the MAC client 1210 may also pass a release control signal to the MAC merge service interface. The release control signal is attached with a release instruction and an interface identifier; the interface identifier and the release indication are used for releasing the service interface which completes message transmission.
Exemplarily, referring to fig. 12b, the chip has a first fast service interface (e 0 MAC), a second fast service interface (not shown), a third fast service interface (not shown), a fourth fast service interface (not shown), a fifth fast service interface (not shown), a sixth fast service interface (not shown), a seventh fast service interface (not shown), an eighth fast service interface (e 7 MAC), and a preemptible service interface (pMAC). The first fast service interface, the second fast service interface, the third fast service interface, the fourth fast service interface, the fifth fast service interface, the sixth fast service interface, the seventh fast service interface and the eighth fast service interface are located between the MAC merging sublayer and the MAC client, and are used for transmitting fast messages between the MAC merging sublayer and the MAC client. The preemptive service interface is located between the MAC merging sublayer and the MAC client, and is used for transmitting the preemptive packet between the MAC merging sublayer and the MAC client. The MAC merge sublayer provides the provisioning MAC client with a MAC merge service interface. The MAC merging service interface is used for receiving a snap-off control signal sent by the MAC client. Furthermore, a time synchronization client is arranged between the MAC client and the coordination sublayer, and the time synchronization client is used for time synchronization between the MAC client and the coordination sublayer and pulling up the 'pace' of each signal.
Illustratively, the MAC client passes to the MAC merge service interface MM _ ctl. The request control signal carries a parameter hold-x or a parameter release-x, the parameter hold-x is used for indicating the maintenance of each level of the emergency break, the parameter release-x is used for indicating the release of each level of the emergency break, and the x is used for specifying a service interface for executing the emergency break or the released service interface.
When a message needs to be sent, the MAC merging service interface is matched with each PLS service interface to control transmission, so that multi-level preemptive nested scheduling is realized, and the preemptive logic controls PLS signals to realize preemption and sending control. Request control signals may support multi-level nesting, for example. The multiple nested data transmission process is illustratively described: the MAC client packages different lead codes for the data packets of different queues for distinguishing different frame priorities; according to different lead codes, data enters an e0-7MAC or pMAC service interface; the MAC service interface judges whether the occupation requirements exist among all interfaces or not, and if the occupation is needed, the occupied breakpoint is recorded; the MAC service interface carries out nested preemption; after the MAC service interface finishes sending the preemption data, the MAC service interface transmits the preempted data continuously; and the data merging sublayer merges and outputs the nested data with different priorities issued by the MAC service interface.
For example, in the process of receiving the hold-4 signal and sending the eMAC4 data, the hold-5 signal arrives, the transmission process interrupts the eMAC4 data on the premise of meeting the pre-interrupt condition, and the eMAC5 data starts to be sent. The release-x signal needs to be executed in the reverse execution order of hold-x, i.e. the last hold, priority release. Before the release signal of the last executed hold signal is not executed, the system should not respond to the low level release signal, if the hold signal processing sequence is hold-1, hold-2, hold-3, then the release signal processing sequence should be release-3, release-2, release-1. Do not respond to the release-2 and release-1 signals until the release-3 signal is unprocessed. It is to be appreciated that the eMAC4 data may be a fast packet transmitted over an eMAC4 fast service interface. The eMAC5 data may be a fast packet transmitted over an eMAC5 fast service interface. It should be noted that PLS is a physical signaling sublayer for transferring data transceiving signals stage by stage. In the embodiment, the main difference of PLS at each stage compared to the existing Qbu technology is that hardware needs to implement PLS signals of multiple stages of emacs.
In the foregoing embodiment, by setting the first fast service interface, the second fast service interface, and the preemptible service interface between the MAC merging sublayer and the MAC client, and providing the MAC merging service interface for the MAC client 1210 on the MAC merging sublayer 1208, it is possible to implement multi-level nested preemption and outage by designing multiple fast service interfaces and a preemption and outage control signal, so as to perform data transmission strictly according to requirements of multiple levels of different delays and jitter levels. On the premise of meeting TT flow certainty real-time communication, the communication performance of the RC flow can be improved.
In some embodiments, the first and second fast service interfaces are respectively provided with different cache modules. The preemptible service interface is also provided with a caching module. The fast message comprises at least one of a time-triggered service flow and a rate-limited service flow. The preemptive packet is a best effort traffic flow.
In some embodiments, the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1. Referring to fig. 13, a first embc layer corresponding to a first fast service interface and a second embc layer corresponding to a second fast service interface are transmission channels for transmitting fast messages. And the pMAC layer corresponding to the preemptive service interface is a transmission channel for transmitting the preemptive message. The MAC layer comprises a MAC merging sublayer, a first eMAC layer, a second eMAC layer and a pMAC layer.
In some embodiments, referring to fig. 14, the mac merging sublayer includes a first fast packet filtering module, a second fast packet filtering module, a receiving processing module, a checking module, a transmission processing module, a first service interface corresponding to the first fast packet filtering module, a second service interface corresponding to the second fast packet filtering module, and a third service interface corresponding to the receiving processing module. The first fast message filtering module is used for filtering the fast message which needs to enter the first fast service interface. And the second quick message filtering module is used for filtering the quick messages needing to enter the second quick service interface. And the receiving processing module is used for receiving the preemptible message and processing the preemptible message.
Specifically, when the coordination sublayer receives the data packet, the data packet is sent to the first fast packet filtering module, the second fast packet filtering module, and the receiving processing module. And aiming at the preemptible message, processing the preemptible message by using a receiving processing module. Aiming at each level of quick messages, the quick messages enter different processing units for processing through filtering, and are uploaded to the MAC client through the corresponding quick service interface. Exemplary description data reception procedure: receiving a data frame; checking a data frame; discarding the frame checked for errors; buffering the frame which is checked to be correct; distributing frames marked by different lead codes to different frame processing units, wherein the different frame processing units respectively correspond to e0-7MAC and pMAC; and the frame processing unit judges the integrity of the frame, frames the incomplete frame and checks the incomplete frame, and discards the frame with the error check. And uploading the complete and correct frame to a corresponding MAC service interface.
In the above embodiment, the data receiving end can reassemble the broken incomplete data frames at each stage and check the correctness, and the data frames passing the check are uploaded to the corresponding e0-7MAC or pMAC service interfaces.
An embodiment of this specification provides a data transmission method, which is applied to a MAC client, and includes: under the condition that a first quick message is received and a second quick message is being sent, sending a first emergency-breaking control signal to an MAC merging sublayer based on first tuple information of the first quick message; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface designated by a second interface identifier; the first robbing-up control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a suspended mode through the fast service interface indicated by the second interface identifier and control the first fast message to be transmitted in a started mode through the fast service interface indicated by the first interface identifier according to the robbing-up indication and the first interface identifier.
An embodiment of the present specification provides a data transmission method, which is applied to an MAC merging sublayer, and the method includes: receiving a first snap-off control signal under the condition that a first quick message is received and a second quick message is being sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast message and the second fast message belong to fast packets respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second quick message is sent through a quick service interface indicated by a second interface identifier; and controlling the second quick message to be transmitted in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be transmitted through the quick service interface designated by the first interface identifier according to the emergency-up indication and the first interface identifier.
Referring to fig. 15, in an embodiment of the present disclosure, a data transmission apparatus is provided, where the apparatus includes: a control signal sending module and a message sending control module.
The control signal sending module is used for sending a first interruption control signal based on first group information of a first quick message under the condition that the first quick message is received and a second quick message is sent; wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; and the second quick message is sent through the quick service interface indicated by the second interface identifier.
And the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
Referring to fig. 16, a data receiving apparatus according to an embodiment of the present disclosure includes: the device comprises a priority determining module, a message distributing module and a message uploading module.
The priority determining module is used for determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet; wherein, different priorities correspond to different first processing units; different first processing units are correspondingly provided with different quick service interfaces; the number of the quick service interfaces is more than or equal to 2;
the message shunting module is used for shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; the target processing unit is used for determining the integrity of the message to be processed;
and the message uploading module is used for uploading the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
An embodiment of the present specification provides a data transmission apparatus applied to a MAC client, the apparatus including: and the emergency-breaking signal sending module is used for sending a first emergency-breaking control signal to the MAC merging sublayer based on the first tuple information of the first quick message under the condition that the first quick message is received and a second quick message is being sent.
Wherein the first fast packet and the second fast packet belong to fast packets, respectively; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; and the second quick message is sent through the quick service interface indicated by the second interface identifier.
The first robbing-up control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a suspended mode through the fast service interface indicated by the second interface identifier and control the first fast message to be transmitted in a started mode through the fast service interface indicated by the first interface identifier according to the robbing-up indication and the first interface identifier.
An embodiment of the present specification provides a data transmission apparatus, which is applied to a MAC merging sublayer, and includes: a signal receiving module for emergency cut-off and a message sending control module.
The system comprises a first prompt message receiving module, a second prompt message receiving module and a prompt signal receiving module, wherein the first prompt message receiving module is used for receiving a first prompt control signal under the condition that a first quick message is received and a second quick message is being sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast message and the second fast message belong to fast packets respectively; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; and the second quick message is sent through the quick service interface indicated by the second interface identifier.
And the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
The embodiment of the present specification provides an electronic device, which includes a transceiver, a processor, and a memory, where the memory is used to store a computer program, and the processor calls the computer program to implement the method mentioned in any of the above embodiments.
The present specification provides a chip, which includes at least one processor, an interface circuit, and a memory, where the memory, the interface circuit, and the at least one processor are interconnected by a line, and a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the chip implements the method mentioned in any one of the foregoing embodiments.
The embodiment of the present specification provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method mentioned in any of the above embodiments.
The present specification provides a computer program product, which includes instructions that, when executed by a processor of an electronic device, enable the electronic device to execute the method steps in the foregoing embodiments.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise explicitly stated or limited, the terms "mounted," "connected," "fixed," and the like are to be construed broadly, e.g., as being permanently connected, detachably connected, or integral; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (39)
1. A data transmission method is characterized in that a data stream is divided into a fast packet and a preemptible packet; the flow grade of the fast grouping is higher than that of the preemptible grouping; the fast packets are divided into a plurality of priorities; the method comprises the following steps:
under the condition that a first quick message is received and a second quick message is being sent, sending a first preemptive breaking control signal based on first group information of the first quick message; wherein the first fast packet and the second fast packet belong to the fast packet, respectively; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is being sent through a fast service interface designated by a second interface identifier;
and controlling the second quick message to be transmitted in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be transmitted through the quick service interface designated by the first interface identifier according to the emergency-up indication and the first interface identifier.
2. The method of claim 1, wherein the first fast packet has a higher priority than the second fast packet.
3. The method of claim 1, further comprising:
under the condition that the first quick message is sent completely, sending a first release control signal; wherein, the first release control signal is accompanied by a release indication and the first interface identifier;
and controlling the second quick message to start to continue to be sent through the quick service interface referred by the second interface identifier according to the release indication and the first interface identifier.
4. The method according to claim 1 or 3, characterized in that the method further comprises:
in the process of sending the second fast message through the fast service interface indicated by the second interface identifier, controlling the second fast message to continue sending based on the second tuple information of the preemptible message under the condition of receiving the preemptible message to be sent; wherein the preemptible packet belongs to the preemptible packet.
5. The method of claim 4, further comprising:
under the condition that the second quick message is sent, sending a second release control signal; wherein, the second release control signal is accompanied by a release indication and the second interface identifier; the second interface identifier is used for indicating a quick service interface for sending the second quick message;
and controlling the preemptible message to start sending according to the release indication and the second interface identifier.
6. The method according to claim 1 or 3, characterized in that the method further comprises:
in the process of sending the second fast message, under the condition of receiving a third fast message to be sent, controlling the second fast message to continue to be sent based on third triplet information of the third fast message; wherein the third fast packet belongs to the fast packet, and the priority of the second fast packet is higher than the priority of the third fast packet.
7. The method of claim 6, further comprising:
under the condition that the second quick message is sent, sending a second release control signal; wherein, the second release control signal is accompanied by a release indication and the second interface identifier; the second interface identifier is used for indicating a fast service interface for sending the second fast message;
and controlling the third fast message to start sending through the fast service interface referred by the third interface identifier according to the release indication and the second interface identifier.
8. The method of claim 1, further comprising:
in the process of sending the first quick message, under the condition of receiving a fourth quick message to be sent, sending a second emergency-off control signal based on fourth tuple information of the fourth quick message; the fourth fast packet belongs to the fast packet, and the priority of the fourth fast packet is higher than that of the first fast packet; the second emergency control signal is accompanied by the emergency indication and a fourth interface identifier corresponding to the fourth tuple information; the fourth interface identifier is used for indicating a fast service interface for sending the fourth fast message;
and controlling the first fast message to be transmitted in a pause mode and controlling the fourth fast message to be transmitted through the fast service interface indicated by the fourth interface identifier according to the emergency interruption indication and the fourth interface identifier.
9. The method according to any one of claims 1 to 3, wherein the first fast packet is obtained by encapsulating a data stream in a queue; before the first fast message is received, the method further comprises:
acquiring a data stream; wherein the data stream corresponds to the first tuple information;
adding the data flow into a queue corresponding to the first tuple information; wherein, the queues correspond to different priorities; the priority corresponding to the queue corresponds to the interface identifier of the quick service interface.
10. The method of claim 9, wherein the adding the data flow to the queue corresponding to the first tuple information comprises:
performing pattern matching on the data stream according to the first element group information, and determining a data identifier of the data stream;
and adding the data flow into a queue corresponding to the data identification of the data flow.
11. The method of claim 9, further comprising:
packaging the data stream based on the priority corresponding to the queue to obtain the first quick message; wherein the designated component of the first fast packet is accompanied by the priority of the first fast packet;
adding the first fast message into a target cache module according to the attached priority of the appointed component of the first fast message; wherein the target cache module is set for the fast service interface referred by the first interface identifier.
12. The method of claim 11, wherein encapsulating the data stream based on the priority corresponding to the queue to obtain the first fast packet comprises:
and encapsulating the corresponding frame lead code for the data stream based on the priority corresponding to the queue to obtain the first quick message.
13. The method according to any of claims 1 to 3, wherein said suspending the transmission of the second fast packet comprises:
and under the condition that the sending condition of the second quick message is judged to meet the condition of the emergency stop, the second quick message is suspended from being sent.
14. The method according to any one of claims 1 to 3, further comprising:
recording the breakpoint of the second quick message which is snapped; and the breakpoint is used for marking the part of the second quick message which is sent completely.
15. The method according to claim 1, wherein different cache modules are respectively provided for the fast service interface for transmitting the first fast packet and the fast service interface for transmitting the second fast packet;
the fast packet message includes a time triggered service flow and/or a rate limited service flow.
16. The method according to claim 15, characterized in that a cache module is provided for a preemptible service interface sending a preemptible packet; the preemptible packet belongs to the preemptible group;
the preemptible packet includes a best effort traffic flow.
17. The method of claim 16, wherein the number of fast service interfaces ranges from 2 to 8, and wherein the number of preemptible service interfaces is 1.
18. A data receiving method is characterized in that a data stream is divided into a fast packet and a preemptible packet; the flow grade of the fast packet is higher than the flow grade of the preemptible packet; the fast packet is divided into a plurality of priorities; the method comprises the following steps:
determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet; wherein, different priorities correspond to different first processing units; different first processing units are correspondingly provided with different quick service interfaces; wherein the number of the quick service interfaces is more than or equal to 2;
shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; the target processing unit is used for determining the integrity of the message to be processed;
and uploading the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
19. The method according to claim 18, wherein before determining the priority of the received message to be processed in case that the message to be processed belongs to a fast packet, the method further comprises:
after receiving the message to be processed, checking the message to be processed;
determining that the message to be processed belongs to a fast packet based on the value of a first designated component in the message to be processed when the message to be processed passes the verification;
correspondingly, the determining the priority of the packet to be processed includes:
and determining the priority of the message to be processed based on the value of the first designated component in the message to be processed.
20. The method of claim 19, further comprising:
and under the condition that the message to be processed does not pass the verification, discarding the message to be processed.
21. The method of claim 19, wherein the verifying the message to be processed after receiving the message to be processed comprises:
and checking the message to be processed based on the value of the second designated component in the message to be processed.
22. The method of claim 21, wherein the first designated component is a preamble; the second designated component is a frame delimiter.
23. The method of claim 18, further comprising:
determining a message to be processed as a preemptible message under the condition that the received message to be processed belongs to a preemptible group; the preemptible message is provided with a priority, and the priority of the preemptible message corresponds to the second processing unit; the second processing unit is corresponding to a preemptible service interface;
shunting the preemptible message to the second processing unit; the second processing unit is configured to determine the integrity of the preemptible packet;
and sending the complete preemptible message output by the second processing unit to a preemptible service interface corresponding to the second processing unit.
24. The method according to claim 23, wherein the different fast service interfaces are respectively provided with different cache modules; the preemptible service interface is also provided with a cache module;
the fast packet message comprises a time-triggered flow and/or a rate-limited flow;
the packet preemptible packet includes a best effort traffic flow.
25. The method of claim 24, wherein the number of fast service interfaces ranges from 2 to 8 and the number of preemptible service interfaces is 1.
26. The method of claim 18, wherein the manner of determining the integrity of the message to be processed comprises at least one of:
determining that the message to be processed is complete under the condition that the message to be processed is judged to be a complete data frame;
and under the condition that the message to be processed is judged to be an incomplete data frame, framing the message to be processed based on a frame delimiter and a fragment count to obtain a complete data frame.
27. A data sending method is characterized in that the method is applied to an MAC client, and a data stream is divided into a fast packet and a preemptible packet; the flow grade of the fast grouping is higher than that of the preemptible grouping; the fast packet is divided into a plurality of priorities; the method comprises the following steps:
under the condition that a first fast message is received and a second fast message is being sent, sending a first snap-off control signal to an MAC merging sublayer based on first group information of the first fast message;
wherein the first fast packet and the second fast packet belong to the fast packet, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the second quick message is sent through a quick service interface indicated by a second interface identifier;
the first robbing-up control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a suspended mode through the fast service interface indicated by the second interface identifier and control the first fast message to be transmitted in a started mode through the fast service interface indicated by the first interface identifier according to the robbing-up indication and the first interface identifier.
28. A data sending method is characterized in that the method is applied to an MAC merging sublayer, and a data stream is divided into a fast packet and a preemptible packet; the flow grade of the fast packet is higher than the flow grade of the preemptible packet; the fast packet is divided into a plurality of priorities; the method comprises the following steps:
receiving a first snap-off control signal under the condition that a first quick message is received and a second quick message is being sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast packet and the second fast packet belong to the fast packet respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is sent through a fast service interface indicated by a second interface identifier;
and controlling the second quick message to be transmitted in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be transmitted through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
29. A chip having a first fast service interface, a second fast service interface, a preemptible service interface; wherein,
the first fast service interface and the second fast service interface are positioned between an MAC merging sublayer and an MAC client and are used for transmitting fast messages between the MAC merging sublayer and the MAC client;
the preemptive service interface is located between the MAC merging sublayer and the MAC client, and is used for transmitting a preemptive message between the MAC merging sublayer and the MAC client;
the MAC merging sublayer provides an MAC merging service interface for the MAC client; the MAC merging service interface is used for receiving a robbery-break control signal sent by the MAC client, and the robbery-break control signal is attached with a robbery-break indication and an interface identifier; the interface identifier and the preemptive instruction are used to determine a target service interface capable of transmitting a packet in the first fast service interface, the second fast service interface, and the preemptible service interface.
30. The chip according to claim 29, wherein the first fast service interface and the second fast service interface are respectively provided with different cache modules; the preemptible service interface is also provided with a cache module;
the fast message comprises at least one of a time-triggered service flow and a rate-limited service flow;
the preemptible packet is a best effort traffic flow.
31. The chip of claim 30, wherein the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1;
a first eMAC layer corresponding to the first fast service interface and a second eMAC layer corresponding to the second fast service interface are transmission channels for transmitting fast messages;
the pMAC layer corresponding to the preemptive service interface is a transmission channel for transmitting the preemptive message;
wherein the MAC layer comprises the MAC merging sublayer, the first eMAC layer, the second eMAC layer, and the pMAC layer.
32. The chip according to claim 29, wherein the MAC merging sublayer comprises a first fast packet filtering module, a second fast packet filtering module, a receiving processing module, a checking module, a transmission processing module, a first service interface corresponding to the first fast packet filtering module, a second service interface corresponding to the second fast packet filtering module, and a third service interface corresponding to the receiving processing module; wherein,
the first fast message filtering module is used for filtering fast messages needing to enter a first fast service interface;
the second fast message filtering module is used for filtering fast messages needing to enter a second fast service interface;
and the receiving and processing module is used for receiving the preemptible message and processing the preemptible message.
33. A data transmission apparatus is characterized in that a data stream is divided into fast packets and preemptible packets; the flow grade of the fast packet is higher than the flow grade of the preemptible packet; the fast packet is divided into a plurality of priorities; the device comprises:
the control signal sending module is used for sending a first interruption control signal based on first group information of a first quick message under the condition that the first quick message is received and a second quick message is sent; wherein the first fast packet and the second fast packet belong to the fast packet, respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second fast message is being sent through a fast service interface designated by a second interface identifier;
and the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
34. A data receiving apparatus, wherein a data stream is divided into fast packets and preemptible packets; the flow grade of the fast packet is higher than the flow grade of the preemptible packet; the fast packet is divided into a plurality of priorities; the device comprises:
the priority determining module is used for determining the priority of the message to be processed under the condition that the received message to be processed belongs to the fast packet; wherein, different priorities correspond to different first processing units; different first processing units are correspondingly provided with different quick service interfaces; the number of the quick service interfaces is more than or equal to 2;
the message shunting module is used for shunting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; the target processing unit is used for determining the integrity of the message to be processed;
and the message uploading module is used for uploading the complete quick message output by the target processing unit to a target quick service interface corresponding to the target processing unit.
35. A data transmission device is characterized in that, applied to an MAC client, a data stream is divided into fast packets and preemptible packets; the flow grade of the fast grouping is higher than that of the preemptible grouping; the fast packet is divided into a plurality of priorities; the device comprises:
the system comprises a burst signal sending module, a MAC merging sublayer and a burst switching module, wherein the burst signal sending module is used for sending a first burst control signal to the MAC merging sublayer based on first tuple information of a first quick message under the condition that the first quick message is received and a second quick message is being sent;
wherein the first fast packet and the second fast packet belong to the fast packet, respectively; the first preemptive breaking control signal is attached with a preemptive breaking instruction and a first interface identifier corresponding to the first group information; the second fast message is being sent through a fast service interface designated by a second interface identifier;
the first robbing-up control signal is used for indicating the MAC merging sublayer to control the second fast message to be transmitted in a suspended mode through the fast service interface indicated by the second interface identifier and control the first fast message to be transmitted in a started mode through the fast service interface indicated by the first interface identifier according to the robbing-up indication and the first interface identifier.
36. A data sending device is characterized in that the device is applied to an MAC merging sublayer, and a data stream is divided into a fast packet and a preemptible packet; the flow grade of the fast packet is higher than the flow grade of the preemptible packet; the fast packet is divided into a plurality of priorities; the device comprises:
the system comprises a first prompt message receiving module, a first prompt break signal receiving module and a second prompt message receiving module, wherein the first prompt break signal receiving module is used for receiving a first prompt break control signal under the condition that a first prompt message is received and a second prompt message is sent; wherein the first preemptive-break control signal is determined based on first tuple information of the first fast packet; the first fast packet and the second fast packet belong to the fast packet respectively; the first emergency control signal is attached with an emergency indication and a first interface identifier corresponding to the first tuple information; the first interface identifier is used for indicating a quick service interface for sending the first quick message; the second quick message is sent through a quick service interface indicated by a second interface identifier;
and the message sending control module is used for controlling the second quick message to be sent in a pause mode through the quick service interface designated by the second interface identifier and controlling the first quick message to be sent in a start mode through the quick service interface designated by the first interface identifier according to the emergency-breaking indication and the first interface identifier.
37. An electronic device comprising a transceiver, a processor and a memory, the memory for storing a computer program, the processor invoking the computer program for performing the method of any of claims 1 to 28.
38. A chip comprising at least one processor, interface circuitry and a memory, the interface circuitry and the at least one processor being interconnected by wires, the memory having stored therein a computer program which, when executed by the at least one processor, implements the method of any one of claims 1 to 28.
39. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 28.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211288395.0A CN115378874B (en) | 2022-10-20 | 2022-10-20 | Data transmitting and receiving method, device, electronic equipment, chip and storage medium |
PCT/CN2023/122964 WO2024082960A1 (en) | 2022-10-20 | 2023-09-28 | Data sending method and apparatus, data receiving method and apparatus, electronic device, chip, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211288395.0A CN115378874B (en) | 2022-10-20 | 2022-10-20 | Data transmitting and receiving method, device, electronic equipment, chip and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115378874A CN115378874A (en) | 2022-11-22 |
CN115378874B true CN115378874B (en) | 2023-01-24 |
Family
ID=84073895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211288395.0A Active CN115378874B (en) | 2022-10-20 | 2022-10-20 | Data transmitting and receiving method, device, electronic equipment, chip and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115378874B (en) |
WO (1) | WO2024082960A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115378874B (en) * | 2022-10-20 | 2023-01-24 | 北京智芯微电子科技有限公司 | Data transmitting and receiving method, device, electronic equipment, chip and storage medium |
CN116668376B (en) * | 2023-07-19 | 2024-02-13 | 井芯微电子技术(天津)有限公司 | Ethernet controller |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112105080A (en) * | 2020-11-18 | 2020-12-18 | 之江实验室 | Time-sensitive network data transmission system and transmission method |
CN112311496A (en) * | 2019-07-26 | 2021-02-02 | 华为技术有限公司 | Data transmission method and device |
WO2021219061A1 (en) * | 2020-04-30 | 2021-11-04 | 中兴通讯股份有限公司 | Service transmission method and apparatus, sending end and storage medium |
CN114448894A (en) * | 2022-02-10 | 2022-05-06 | 上海交通大学 | Multi-level service scheduling engine facing time sensitive network and implementation method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3057273B1 (en) * | 2015-02-13 | 2019-03-27 | Mitsubishi Electric R&D Centre Europe B.V. | Method for a traffic shaping in a network |
CN110784418B (en) * | 2019-10-24 | 2022-06-24 | 烽火通信科技股份有限公司 | Data sending method and system based on time delay constraint |
CN115086247A (en) * | 2021-03-02 | 2022-09-20 | 中兴通讯股份有限公司 | Frame preemption method, device, equipment and storage medium |
KR102649136B1 (en) * | 2021-03-18 | 2024-03-19 | 한국전자통신연구원 | Apparatus and method for providing frame preemption |
US20220123880A1 (en) * | 2021-12-24 | 2022-04-21 | Intel Corporation | Method and apparatus for frame preemption in downlink communications for next generation wi-fi |
CN115378874B (en) * | 2022-10-20 | 2023-01-24 | 北京智芯微电子科技有限公司 | Data transmitting and receiving method, device, electronic equipment, chip and storage medium |
-
2022
- 2022-10-20 CN CN202211288395.0A patent/CN115378874B/en active Active
-
2023
- 2023-09-28 WO PCT/CN2023/122964 patent/WO2024082960A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112311496A (en) * | 2019-07-26 | 2021-02-02 | 华为技术有限公司 | Data transmission method and device |
WO2021219061A1 (en) * | 2020-04-30 | 2021-11-04 | 中兴通讯股份有限公司 | Service transmission method and apparatus, sending end and storage medium |
CN112105080A (en) * | 2020-11-18 | 2020-12-18 | 之江实验室 | Time-sensitive network data transmission system and transmission method |
CN114448894A (en) * | 2022-02-10 | 2022-05-06 | 上海交通大学 | Multi-level service scheduling engine facing time sensitive network and implementation method |
Also Published As
Publication number | Publication date |
---|---|
WO2024082960A1 (en) | 2024-04-25 |
CN115378874A (en) | 2022-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115378874B (en) | Data transmitting and receiving method, device, electronic equipment, chip and storage medium | |
EP2050199B1 (en) | Expedited communication traffic handling apparatus and methods | |
US7570654B2 (en) | Switching device utilizing requests indicating cumulative amount of data | |
US6161138A (en) | Media access control for isochronous data packets in carrier sensing multiple access systems | |
US7813285B2 (en) | Method for per-port flow control of packets aggregated from multiple logical ports over a transport link | |
EP3993293B1 (en) | Data transmission method and apparatus | |
US7542425B2 (en) | Traffic management using in-band flow control and multiple-rate traffic shaping | |
US8027344B2 (en) | Transmission of data packets of different priority levels using pre-emption | |
CN110870285B (en) | Method for high-performance data transmission in data networks with partial real-time requirements and device for carrying out said method | |
CN110647071B (en) | Method, device and storage medium for controlling data transmission | |
US20030185249A1 (en) | Flow control and quality of service provision for frame relay protocols | |
US11563521B2 (en) | Method and apparatus for port channelization at physical layer | |
US7106696B1 (en) | Systems and methods for limiting the rates of data to/from a buffer | |
EP1265407B1 (en) | Transmitting apparatus and method of controlling flow thereof | |
RU2427091C2 (en) | Device and method for speed limit-based flow control for mstp device | |
KR20190084315A (en) | How to choose the transport for network devices and network devices | |
US10361962B2 (en) | Packet processing technique for a communication network | |
US6339584B1 (en) | Media access control for isochronous data packets in carrier sensing multiple access systems | |
EP3557824B1 (en) | Network device and queue management method for network device | |
US20230412446A1 (en) | Method for Determining Transmission Slot and Related Apparatus | |
EP3032785B1 (en) | Transport method in a communication network | |
US9344375B2 (en) | Method for transmitting data packets between two communication modules and communication module for transmitting data packets, as well as communication module for receiving data packets | |
CN117675606A (en) | Time-sensitive network resource scheduling algorithm combination method based on digital simulation | |
WO2013023494A1 (en) | System and method for realizing end-to-end hierarchical quality of service | |
CN117014384A (en) | Message transmission method and message forwarding equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |