WO2024082960A1 - Data sending method and apparatus, data receiving method and apparatus, electronic device, chip, and storage medium - Google Patents

Data sending method and apparatus, data receiving method and apparatus, electronic device, chip, and storage medium Download PDF

Info

Publication number
WO2024082960A1
WO2024082960A1 PCT/CN2023/122964 CN2023122964W WO2024082960A1 WO 2024082960 A1 WO2024082960 A1 WO 2024082960A1 CN 2023122964 W CN2023122964 W CN 2023122964W WO 2024082960 A1 WO2024082960 A1 WO 2024082960A1
Authority
WO
WIPO (PCT)
Prior art keywords
fast
message
service interface
interface
sending
Prior art date
Application number
PCT/CN2023/122964
Other languages
French (fr)
Chinese (zh)
Inventor
赵东艳
张继光
谢勇
池颖英
郑哲
王连忠
刘瑞
刘国静
崔文朋
周晓露
刘小群
贾晓光
陈飞
李艳波
赵文仙
于秀丽
Original Assignee
北京智芯微电子科技有限公司
国家电网有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京智芯微电子科技有限公司, 国家电网有限公司 filed Critical 北京智芯微电子科技有限公司
Publication of WO2024082960A1 publication Critical patent/WO2024082960A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]

Definitions

  • the present invention relates to the field of communication technology, and in particular to a data sending and receiving method, device, electronic device, chip and storage medium.
  • the frame preemption mechanism is introduced in Time-Sensitive Networking (TSN).
  • TSN Time-Sensitive Networking
  • IEEE 802.3br the frame preemption mechanism will give two MAC service interfaces, namely Preemptable MAC (pMAC) and Express MAC (eMAC).
  • pMAC Preemptable MAC
  • eMAC Express MAC
  • Preemptible data can be preempted by fast data during transmission. After entering the data stack, it waits for the fast data transmission to complete before the preemptible data can be transmitted again.
  • a time-sensitive network When a time-sensitive network is required to transmit data streams with a priority greater than two, such as transmitting not only a time-triggered stream (TT stream) but also a rate-limited stream (RC stream), the frame preemption mechanism implemented based on the pMAC service interface and the eMAC service interface cannot meet the latency requirements.
  • TT stream time-triggered stream
  • RC stream rate-limited stream
  • the data frames are configured into eMAC frames, tpMAC frames, and ntpMAC frames according to their respective priorities and latency requirements;
  • the pMAC layer is virtualized into a tpMAC layer and a ntpMAC layer, and the original eMAC layer is kept unchanged, so that three MAC independent sublayers are obtained to transmit data frames of different priorities;
  • the latency requirements of multiple priorities are met by changing the frame structure and the frame preemption frame mapping rules, for example: by adding one bit (the ninth bit) on the basis of eight bits to complete the mapping of various priorities to each MAC independent sublayer, the ninth bit (the highest bit) is defined to be combined with the lower eight bits, and different values are mapped to different MAC independent sublayers.
  • this related technology can, to a certain extent, reduce the delay of tpMAC frames while ensuring the delay of eMAC frames.
  • the changed frame structure in the related art is different from the frame structure defined in the standard, and the other end may not be able to receive the data stream with the changed frame structure.
  • the embodiments of this specification are intended to solve at least one of the technical problems in the related art to a certain extent. To this end, the embodiments of this specification propose a data sending and receiving method, device, electronic device, chip and storage medium.
  • An embodiment of the present specification provides a data sending method, the method comprising: when a first fast message is received and a second fast message is being sent, sending a first intercept control signal based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, controlling the second fast message to suspend sending through the fast service interface referred to by the second interface identifier, and controlling the first fast message to start sending through the fast service interface referred to by the first interface identifier.
  • the embodiment of the present specification provides a data receiving method, the method comprising: in the case where the received message to be processed belongs to a fast group, determining the priority of the message to be processed; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; wherein the number of the fast service interfaces is greater than or equal to 2; diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used to determine the integrity of the message to be processed; and sending the complete fast message output by the target processing unit to the target processing unit.
  • the data is sent to the target rapid service interface corresponding to the target processing unit.
  • An embodiment of the present specification provides a data sending method, which is applied to a MAC client, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is sent to a MAC merging sublayer based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier; the first intercept control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the intercept indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  • An embodiment of the present specification provides a data sending method, which is applied to the MAC merging sublayer, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is received; wherein the first intercept control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, the second fast message is controlled to suspend sending through the fast service interface referred to by the second interface identifier, and the first fast message is controlled to start sending through the fast service interface referred to by the first interface identifier.
  • An embodiment of the present specification provides a chip, wherein the chip has a first fast service interface, a second fast service interface, and a preemptible service interface; wherein the first fast service interface and the second fast service interface are located between a MAC merging sublayer and a MAC client, so as to be used for transmitting fast messages between the MAC merging sublayer and the MAC client; the preemptible service interface is located between the MAC merging sublayer and the MAC client, so as to be used for transmitting preemptible messages between the MAC merging sublayer and the MAC client; the MAC merging sublayer provides a MAC merging service interface to the MAC client; wherein the MAC merging service interface is used to receive a preemption control signal sent by the MAC client, and the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine a target service interface capable of transmitting messages among the first fast service interface, the second fast service interface, and the pre
  • An embodiment of the present specification provides a data sending device, which includes: a control signal sending module, which is used to send a first intercept control signal based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier; a message sending control module, which is used to control the second fast message to suspend sending through the fast service interface referred to by the second interface identifier, and control the first fast message to start sending through the fast service interface referred to by the first interface identifier according to the intercept indication and the first interface identifier.
  • the embodiment of the present specification provides a data receiving device, which includes: a priority determination module, which is used to determine the priority of the message to be processed when the received message to be processed belongs to a fast group; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; wherein the number of the fast service interfaces is greater than or equal to 2; a message diversion module, which is used to divert the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used to determine the integrity of the message to be processed; and a message sending module, which is used to send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
  • a priority determination module which is used to determine the priority of the message to be processed when the received message to be processed belongs to a fast group
  • different priorities correspond to different first processing units
  • different first processing units correspond to different fast service interfaces
  • the number of the fast service interfaces is greater than or equal to 2
  • the embodiment of the present specification provides a data sending device, which is applied to a MAC client, and the device includes: a preemption signal sending module, which is used to send a second fast message to the MAC merging sublayer based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent.
  • a preemption signal sending module which is used to send a second fast message to the MAC merging sublayer based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent.
  • a preemption control signal wherein, the first fast message and the second fast message belong to fast groups respectively; the first preemption control signal is accompanied by a preemption indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through the fast service interface indicated by the second interface identifier; the first preemption control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the preemption indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  • the embodiment of the present specification provides a data sending device, which is applied to the MAC merging sublayer, and the device includes: a preemption signal receiving module, which is used to receive a first preemption control signal when a first fast message is received and a second fast message is being sent; wherein the first preemption control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first preemption control signal is accompanied by a preemption indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier; a message sending control module, which is used to control the second fast message to suspend sending through the fast service interface referred to by the second interface identifier according to the preemption indication and the first interface identifier, and control the first fast message to start sending through the
  • An embodiment of the present specification provides an electronic device, including a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method described in any of the above embodiments.
  • An embodiment of the present specification provides a chip, which includes at least one processor, an interface circuit and a memory.
  • the memory, the interface circuit and the at least one processor are interconnected through lines.
  • a computer program is stored in the memory.
  • the chip implements the method described in any of the above embodiments.
  • An embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program.
  • the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
  • An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the method steps in the above embodiment.
  • a first interception control signal is sent based on the first tuple information of the first fast message; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; thereby, according to the interception 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.
  • FIG. 1a is a schematic diagram of the working principle of IEEE802.1Qbv in the related technology provided by the embodiment of this specification.
  • FIG. 1 b is a schematic diagram of an implementation of a frame preemption mechanism in a related art provided in an embodiment of this specification.
  • FIG. 1c is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
  • FIG. 1d is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
  • FIG. 1e is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
  • FIG. 2 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG3 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG. 4 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG. 5 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG. 6 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG. 7 is a flow chart of a data sending method provided in an embodiment of the present specification.
  • FIG. 8 is a flow chart of a data receiving method provided in an embodiment of the present specification.
  • FIG. 9 is a flow chart of a data receiving method provided in an embodiment of the present specification.
  • FIG. 10 is a flow chart of a data receiving method provided in an embodiment of the present specification.
  • FIG. 11 is a flow chart of a data receiving method provided in an embodiment of the present specification.
  • FIG. 12 a is a schematic diagram of the structure of a chip provided in an embodiment of this specification.
  • FIG. 12 b is a schematic diagram of the structure of a chip provided in an embodiment of this specification.
  • FIG. 13 is a schematic diagram of the structure of the MAC layer provided in an embodiment of the present specification.
  • FIG. 14 is a schematic diagram of the structure of the MAC merging sublayer provided in an embodiment of the present specification.
  • FIG. 15 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
  • FIG. 16 is a schematic diagram of the framework of a data receiving device provided in an embodiment of this specification.
  • FIG. 17 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
  • FIG. 18 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
  • TSN consists of a series of technical standards, which are mainly divided into three parts: clock synchronization, data flow scheduling, and network and user configuration.
  • IEEE 802.1Qbv and IEEE 802.1Qbu are the core standards for data flow scheduling.
  • IEEE 802.1Qbv adopts the Time Awareness Shaper (TAS) scheduling mechanism, which is achieved by adding gating when the message is out of the queue.
  • TAS Time Awareness Shaper
  • Qbv periodically scans the pre-set gating list and controls the transmission of the queue according to the switch status of each gate in the gating list. Through control, after the scheduled time window expires, the queue where the expected traffic is located opens the door and the expected traffic is released; while in the same time window, the queue where other unexpected traffic is located closes the door and the unexpected traffic is blocked.
  • TAS scheduling algorithm eliminates the possibility of expected traffic being blocked by unexpected traffic, reducing data transmission delay and jitter.
  • 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.
  • Queue Q7 corresponds to pMAC
  • queue Q1 corresponds to eMAC.
  • Q7 data arrives.
  • Q7 transmission is preempted by Q1.
  • Q7 data can continue to be transmitted.
  • Certain conditions refer to: pMAC has at least 64 bytes of data left to be transmitted and at least 60 bytes of data have been transmitted.
  • TSN networks In addition to the transmission of time-triggered flows (TT flows), TSN networks also have rate-limited flows (RC flows) and best-effort flows (BE flows).
  • TT flows are usually viewed in isolation and lower-priority real-time flows, such as RC flows, are ignored, resulting in TT flow configurations that may increase the worst-case latency and jitter of RC flows, causing the service quality of RC flows to degrade or even be interrupted.
  • the implementation method of this specification provides a chip.
  • the chip has a first fast service interface, a second fast 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 to transmit fast messages between the MAC merging sublayer and the MAC client.
  • the preemptible service interface is located between the MAC merging sublayer and the MAC client to transmit preemptible messages between the MAC merging sublayer and the MAC client.
  • the MAC merging sublayer provides a MAC merging service interface to the MAC client.
  • the MAC merging service interface is used to receive a preemption control signal sent by the MAC client, and the preemption control signal is accompanied by a preemption indication and an interface identifier; the interface identifier and the preemption indication are used to determine the target service interface that can transmit the message among the first fast service interface, the second fast service interface, and the preemptible service interface.
  • the implementation method of this specification proposes a data sending method that can realize multi-level preemption for the chip.
  • the first fast service interface can be recorded as the e1MAC service interface
  • the second fast service interface can be recorded as the e0MAC service interface
  • the preemptible service interface can be recorded as the pMAC service interface.
  • they are pMAC, e0MAC, and e1MAC from low to high.
  • the preemption order of the multi-level MAC service interface is from high to low: e1MAC can preempt e0MAC and pMAC; e0MAC can preempt pMAC.
  • the two-level frame preemption method of eMAC and pMAC in the related technology is upgraded to a multi-level frame preemption method.
  • the transmission of data streams of each priority level can be accurately realized in strict accordance with the actual multiple delay levels and jitter level requirements, providing more fine-grained delay and jitter performance guarantees.
  • the TT flow can be configured to be transmitted through the e1MAC service interface
  • the RC flow can be configured to be transmitted through the e0MAC service interface
  • the BE flow can be configured to be transmitted through the pMAC service interface.
  • the implementation method of this specification proposes a scenario example of a data transmission method that can realize multi-level preemption for the chip.
  • the chip may include an e2MAC service interface, an e1MAC service interface, an e0MAC service interface, and a pMAC service interface. According to the delay and jitter performance, they are pMAC, e0MAC, e1MAC, and e2MAC from low to high.
  • the preemption order of the multi-level MAC service interface is from high to low: e2MAC can preempt e1MAC, e0MAC, and pMAC; e1MAC can preempt e0MAC and pMAC; e0MAC can preempt pMAC.
  • a time-triggered flow (TT flow) and a rate-limited flow (RC flow) need to be transmitted in the TSN network.
  • the TT flow includes a TT1 data flow required by the first delay level and a TT2 data flow required by the second delay level.
  • the first delay level takes precedence over the second delay level.
  • the TT1 data flow can be configured to be transmitted via the e2MAC service interface
  • the TT2 data flow can be configured to be transmitted via the e1MAC service interface
  • the RC flow can be configured to be transmitted via the e0MAC service interface.
  • a time-triggered stream needs to be transmitted in the TSN network.
  • the TT stream includes TT1 required by the first latency level.
  • Data flow TT2 data flow required by the second delay level, and TT3 data flow required by the third delay level.
  • the first delay level takes precedence over the second delay level
  • the second delay level takes precedence over the third delay level.
  • the TT1 data flow can be configured to be transmitted through the e2MAC service interface
  • the TT2 data flow can be configured to be transmitted through the e1MAC service interface
  • the TT3 data flow can be configured to be transmitted through the e0MAC service interface.
  • the implementation method of this specification proposes another scenario example of a data transmission method that can realize multi-level preemption for the chip.
  • 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.
  • pMAC e0MAC, e1MAC, e2MAC, e3MAC, e4MAC, e5MAC, e6MAC, and e7MAC.
  • the preemption order of the multi-level MAC service interface from high to low is: e7MAC can preempt e6MAC, e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; e6MAC can preempt e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; 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; e0MAC can preempt pMAC.
  • the network device can divide the messages into multiple priorities, such as 8 priorities, or 16 priorities. This scenario example does not limit this.
  • the network device divides the data frames into 8 priorities, including priorities 0 to 7, as an example. Among them, the larger the priority value, the higher the priority.
  • the network device may include 8 egress port queues, each of which is used to cache data frames of one priority. Please continue to refer to Figure 1e.
  • the 8 egress port queues can be recorded as Q0, Q1, Q2, Q3, Q4, Q5, Q6, and Q7 respectively.
  • eight priority data streams need to be transmitted in the TSN network, which are respectively recorded 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 Q1 data stream is received and the MAC client sends a preemption control signal hold-1.
  • the preemption control signal hold-1 the transmission of Q0 data stream is suspended and the Q1 data stream is started to be sent through the e1MAC service interface.
  • Q2 data stream is received and the MAC client sends a hold control signal hold-2.
  • the hold control signal hold-2 the transmission of Q1 data stream is suspended and Q2 data stream is started to be sent through the e2MAC service interface.
  • the Q3 data stream is received and the MAC client sends a hold control signal hold-3.
  • the hold control signal hold-3 the transmission of the Q2 data stream is suspended and the Q3 data stream is started to be sent through the e3MAC service interface.
  • the Q4 data stream is received and the MAC client sends a hold control signal hold-4.
  • the hold control signal hold-4 the transmission of the Q3 data stream is suspended and the Q4 data stream is started to be sent through the e4MAC service interface.
  • Q5 data stream is received and the MAC client sends a hold control signal hold-5.
  • the hold control signal hold-5 the transmission of Q4 data stream is suspended and Q5 data stream is started to be sent through the e5MAC service interface.
  • the Q6 data stream is received and the MAC client sends a hold control signal hold-6.
  • the hold control signal hold-6 the transmission of the Q5 data stream is suspended and the Q6 data stream is started to be sent through the e6MAC service interface.
  • the Q7 data stream is received and the MAC client sends a hold control signal hold-7.
  • the hold control signal hold-7 the transmission of the Q6 data stream is suspended and the Q7 data stream is started to be sent through the e7MAC service interface.
  • the MAC client After completing the transmission of the Q7 data stream through the e7MAC service interface, the MAC client sends a release control signal release-7, and starts to continue sending the Q6 data stream through the e6MAC service interface according to the release control signal release-7.
  • the MAC client After completing the transmission of the Q6 data stream through the e6MAC service interface, the MAC client sends a release control signal release-6, and starts to continue sending the Q5 data stream through the e5MAC service interface according to the release control signal release-6.
  • the MAC client After completing the transmission of the Q5 data stream through the e5MAC service interface, the MAC client sends a release control signal release-5, and starts to continue sending the Q4 data stream through the e4MAC service interface according to the release control signal release-5.
  • the MAC client After completing the transmission of the Q4 data stream through the e4MAC service interface, the MAC client sends a release control signal release-4, and starts to continue sending the Q3 data stream through the e3MAC service interface according to the release control signal release-4.
  • the MAC client After completing the transmission of the Q3 data stream through the e3MAC service interface, the MAC client sends a release control signal release-3, and starts to continue sending the Q2 data stream through the e2MAC service interface according to the release control signal release-3.
  • the MAC client After completing the transmission of the Q2 data stream through the e2MAC service interface, the MAC client sends a release control signal release-2, and starts to continue sending the Q1 data stream through the e1MAC service interface according to the release control signal release-2.
  • the MAC client After completing the transmission of the Q1 data stream through the e1MAC service interface, the MAC client sends a release control signal release-1, and starts to continue sending the Q0 data stream through the e0MAC service interface according to the release control signal release-1.
  • the data sending method that can achieve multi-level preemption proposed for the chip in this scenario example can strictly guarantee the communication performance of traffic with multiple levels of different delays and jitter levels.
  • An embodiment of the present specification provides a data sending method.
  • the method may include the following steps.
  • a first interception control signal is sent based on the first tuple information of the first fast message.
  • the first fast message and the second fast message belong to fast packets respectively.
  • the data stream transmitted by the TSN network is divided into fast packets and preemptible packets.
  • the traffic level of the fast packet is higher than the traffic level of the preemptible packet, and the arrival of the fast packet data stream can interrupt the transmission of the preemptible packet data stream.
  • the fast packet can also be divided into multiple priorities according to the delay requirement level of the data stream.
  • the fast packet includes fast messages of at least two priorities, such as a first fast message and a second fast message.
  • a high-priority fast message can interrupt the sending of a low-priority fast message.
  • the fast packet may include TT streams with multiple delay requirement levels, and the fast packet may include at least one TT stream with a delay requirement level and at least one RC stream.
  • the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information.
  • the first interface identifier is used to refer to the fast service interface that sends the first fast message.
  • the second fast message is being sent through the fast service interface indicated by the second interface identifier.
  • the first interception control signal carries two parameters.
  • One of the parameters is an interception indication parameter, such as hold or H; the other parameter is an interface identification parameter, such as any integer from 0 to 7.
  • the first interception control signal can be recorded as CTL.request (hold, 5).
  • the parameter hold is used to indicate that the relatively low priority fast message being transmitted is intercepted when a relatively high priority fast message arrives, and the fast service interface corresponding to the interface identification parameter is enabled to transmit a relatively high priority fast message.
  • Parameter 5 is used to refer to a fast service interface for transmitting a relatively high priority fast message, that is, to enable fast service interface 5 to transmit a relatively high priority fast message. It should be noted that for the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, its 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 tuple information such as a four-tuple information, a five-tuple information, etc.
  • 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 the first tuple information may also include a user-defined field (udf).
  • the data stream transmitted by the TSN network needs to meet different latency requirements.
  • Some related technologies can achieve preemption by dynamically adjusting the frame type of the data frame, but the communication performance shown when facing data streams that need to transmit multiple levels of latency and jitter requirements needs to be improved.
  • the frame structure and frame preemption frame mapping rules are changed, and the mapping of various priorities to each MAC independent sublayer is completed by adding one bit (ninth bit) on the basis of eight bits, and the ninth bit (highest bit) is defined to be combined with the lower eight bits respectively, but the data flow with the changed frame structure is no longer the same as the frame structure in the standard, that is, it is no longer universal, and the opposite end may not receive the data flow with the changed frame structure.
  • the implementation method of this specification designs a preemption control signal, and the nested scheduling of fast messages with multiple levels of different delay requirements is realized by the preemption control signal, without changing the format of the data frame, so that universality can be guaranteed.
  • the high layer of the MAC layer can be referred to as a MAC client.
  • the MAC layer can be divided into some sublayers, and the sublayers can correspond to the fast service interface or the preemptible service interface.
  • the MAC client receives the first fast message.
  • the first fast message corresponds to a multi-tuple information, that is, the first tuple information.
  • the delay requirement level of the first fast message can be determined based on the first tuple information.
  • a first preemption control signal can be generated based on the first tuple information of the first fast message, and the MAC client can send the first preemption control signal.
  • the second fast message is controlled to be suspended from being sent.
  • a fast service interface for sending the first fast message can be specified, so the first fast message can be controlled to be sent to the fast service interface indicated by the first interface identifier, and the first fast message is preferentially sent through the fast service interface indicated by the first interface identifier.
  • the fast service interface referred to by the second interface identifier that is, the service interface used to send the second fast message, also belongs to the fast service interface.
  • the second interface identifier that is, the service interface used to send the second fast message
  • different fast messages with different levels of delay requirements can be sent through different fast service interfaces.
  • Different fast service interfaces have different interface identifiers. Based on the interface identifier carried in the preemption control signal, the sending of the preempted fast message with relatively low delay requirements is suspended, and the sending of the fast message with relatively high delay requirements is given priority.
  • a first interception control signal is sent based on the first tuple information of the first fast message; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; thereby, according to the interception 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.
  • the priority of the first fast message is higher than the priority of the second fast message.
  • the network device can divide the data stream into multiple priorities, such as 8.
  • Data streams with priorities 0 to 3 are divided into preemptible packets, and data streams with priorities 4 to 7 are divided into fast packets.
  • Priorities 4-7 in the fast packets cannot preempt each other. It can be seen that simply dividing the data streams into fast packets and preemptible packets and preemptible packets can preempt fast packets cannot achieve the need for fast messages with priorities 4-7 in the fast packets in actual scenarios to meet different latency requirements. Therefore, in the implementation manner of this specification, different priorities are further configured for fast messages with different latency requirements in the fast packets. Among them, the priority of the first fast message is higher than the priority of the second fast message.
  • the data sending method may include the following steps.
  • the first release control signal is accompanied by a release indication and a first interface identifier.
  • the first release control signal carries two parameters.
  • One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7.
  • the first release control signal can be recorded as CTL.request(release, 5).
  • the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled to transmit the relatively low priority fast message.
  • Parameter 5 is used to refer to the fast service interface used to transmit the relatively high priority fast message, that is, to release the fast service interface 5 to transmit the relatively low priority fast message. It should be noted that for the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, its control signal only carries the release parameter, and the release parameter is used to control the continued transmission of the preemptible message.
  • the first fast message interrupts the sending of the second fast message.
  • the first fast message it is necessary to continue to send the second fast message.
  • a first release control signal is sent. Based on the release indication carried by the first release control signal, it is indicated that the transmission of the first fast message is completed and the second fast message needs to be transmitted, then the second fast message is continued to be sent through the fast service interface indicated by the second interface identifier.
  • the fast service interface that sends the first fast message can be released, so the second fast message can be sent to its corresponding fast service interface, and the fast service interface indicated by the second interface identifier is controlled to start continuing to send the second fast message.
  • the data sending method may include the following steps: while continuing to send a second fast message through the fast service interface referred to by the second interface identifier, when a preemptible message to be sent is received, controlling the continued sending of the second fast message based on the second tuple information of the preemptible message.
  • the preemptible message belongs to the preemptible group.
  • the preemptible message in the preemptible group may include the data flow corresponding to the best effort service.
  • the priority of the preemptible message belonging to the preemptible group is lower than the priority of each fast message in the fast group. Therefore, in the process of sending the second fast message, if a preemptible message to be sent is received, since the priority of the preemptible message is lower than the priority of the second fast message, that is, the second fast message needs to be transmitted first, the second fast message will continue to be sent.
  • the preemptible message needs to wait for the message with a higher priority to complete the sending and release the corresponding service interface before it can be sent.
  • the preemptible message corresponds to the second tuple information
  • the second tuple information includes at least one of the source IP address (srcIP), source MAC address (srcMAC), destination IP address (destIP), destination MAC address (destMAC), source port (srcPort), and destination port (destPort), and the second tuple information may also include a user-defined field (udf).
  • the data sending method may include the following steps.
  • S420 Control the preemptible message to start sending according to the release indication and the second interface identifier.
  • the second release control signal is accompanied by a release indication and a second interface identifier.
  • the second interface identifier is used to refer to the fast service interface for sending the second fast message.
  • the second release control signal carries two parameters.
  • One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7.
  • the second release control signal can be recorded as CTL.request(release, 4).
  • the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled 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 message, that is, to release the fast service interface 4 to transmit the relatively low priority fast message.
  • a preemptible message is received during the process of sending the second fast message.
  • the second fast message has been sent, it is necessary to start sending the preemptible message.
  • a first release control signal is sent when the first fast message has been sent. Based on the release indication carried by the first release control signal, it is indicated that the transmission of the first fast message is completed and the second fast message needs to be transmitted, and then the second fast message is started to continue to be sent.
  • the fast service interface that sends the first fast message can be released, so 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 continuing to send the second fast message.
  • a preemptible message is received. Since the priority of the preemptible message is lower than that of the second fast message, a second release control signal is sent when the second fast message is sent. Based on the release indication carried by the second release control signal, it is indicated that the transmission of the second fast message is completed and the preemptible fast message needs to be transmitted, and then the preemptible message is started to be sent. Based on the second interface identifier carried by the second release control signal, the fast service interface for sending the second fast message can be released, so the preemptible message can be sent to its corresponding preemptible service interface, and the corresponding preemptible service interface is controlled to start sending the preemptible message.
  • the fast message in the process of sending the preemptible message, if a fast message of any priority in the fast group is received, the fast message can preempt the preemptible message, and when the fast message is sent, a release control signal is sent. Based on the release control signal, the continued sending of the preemptible message can be controlled.
  • the data sending method may include the following steps: when a third fast message to be sent is received during the process of sending the second fast message, controlling the second fast message to continue sending based on the third tuple information of the third fast message.
  • the third fast message belongs to fast packet, and the priority of the second fast message is higher than the priority of the third fast message.
  • the third tuple information includes at least one of the source IP address (srcIP), source MAC address (srcMAC), destination IP address (destIP), destination MAC address (destMAC), source port (srcPort), and destination port (destPort), and the third tuple information may also include a user-defined field (udf). Based on the third tuple information of the third fast message, it is determined that the priority of the third fast message is lower than the priority of the second fast message. Therefore, the third fast message cannot intercept the sending of the second fast message, and controls the second fast message to continue sending.
  • the third fast message corresponds to the third tuple information, and based on the third tuple information of the third fast message, it can be determined that the priority of the third fast message is lower than the priority of the second fast message. Therefore, the third fast message cannot preempt the sending of the second fast message and control the second fast message to continue sending.
  • the data sending method may include the following steps.
  • the second release control signal is accompanied by a release indication and a second interface identifier; wherein the second interface identifier is used to refer to the fast service interface for sending the second fast message.
  • the second release control signal carries two parameters. One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7.
  • the second release control signal can be recorded as CTL.request(release, 4).
  • the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled 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 message, that is, to release the fast service interface 4 to transmit the relatively low priority fast message.
  • a third fast message is received during the process of sending the second fast message.
  • the third fast message needs to be sent.
  • the third fast message needs to be sent when the first fast message is sent.
  • a release control signal Based on the release indication carried by the first release control signal, it indicates that the transmission of the first fast message is completed and the second fast message needs to be transmitted, so the second fast message starts to be sent.
  • the fast service interface that sent the first fast message can be released, so the second fast message can be sent to the fast service interface corresponding to the second interface identifier, and the fast service interface referred to by the second interface identifier is controlled to start sending the second fast message.
  • a third fast message is received. Since the priority of the third fast message is lower than that of the second fast message, a second release control signal is sent when the second fast message is sent. Based on the release indication carried by the second release control signal, it is indicated that the transmission of the second fast message is completed and the third fast message needs to be transmitted, and then the third fast message is started to be sent. Based on the second interface identifier carried by the second release control signal, the fast service interface for sending the second fast message can be released, so the third fast message can be sent to its corresponding fast service interface (the fast service interface referred to by the third interface identifier), and the fast service interface referred to by the third interface identifier is controlled to start sending the third fast message.
  • the data sending method may include the following steps.
  • the fourth fast message belongs to a fast group, and the priority of the fourth fast message is higher than the priority of the first fast message.
  • the second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information.
  • the fourth interface identifier is used to refer to a fast service interface for sending the fourth fast message.
  • the fourth tuple information includes at least one of the source IP address (srcIP), the source MAC address (srcMAC), the destination IP address (destIP), the destination MAC address (destMAC), the source port (srcPort), and the destination port (destPort), and the fourth tuple information may also include a user-defined field (udf).
  • the fourth tuple information of the fourth fast it is determined that the priority of the fourth fast is higher than the priority of the first fast message. Therefore, the fourth fast message can interrupt the sending of the first fast message and control the fourth fast message to start sending.
  • the first fast message is received, and a first interception control signal is sent based on the first tuple information of the first fast message.
  • the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information.
  • the second fast message is controlled to be suspended from being sent, and the first fast message is controlled to start being sent through the fast service interface indicated by the first interface identifier.
  • a fourth fast message to be sent is received. Based on the fourth tuple information of the fourth fast message, the priority of the fourth fast message is determined, and the priority of the fourth fast message is higher than the priority of the first fast message, so as to send a second interception control signal.
  • the second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information.
  • the first fast message is controlled to be suspended.
  • a fast service interface for sending the fourth fast message can be specified, so the fourth fast message can be controlled to be sent to the fast service interface indicated by the fourth interface identifier, and the fourth fast message is preferentially sent through the fast service interface indicated by the fourth interface identifier.
  • the first fast message is obtained by encapsulating a data stream in a queue.
  • the data sending method may include the following steps: obtaining a data stream; wherein the data stream corresponds to first tuple information. Adding the data stream to a queue corresponding to the first tuple information; wherein the queues correspond to different priorities; and the priorities corresponding to the queues correspond to the interface identifiers of the fast service interfaces.
  • 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).
  • the first tuple information may also include a user-defined Field (udf). Determine the corresponding queue based on the first tuple information corresponding to the data flow, and add 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 fast service interface.
  • the priority of the data flow in the implementation mode of this specification is bound to the queue.
  • the priority of the data flow is determined based on the multi-tuple information corresponding to the data flow, so that the data flow can be added to the corresponding queue.
  • the MAC client can send a preemption control signal, and the interface identifier carried by the preemption signal corresponds to the queue where the data flow is located, that is, the MAC client tells the lower layer which queue the data needs to be sent.
  • 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 tuple information to determine the data identifier of the data stream; and adding the data stream to the queue corresponding to the data identifier of the data stream.
  • a mapping strategy between data identifiers and tuple information has been pre-set. After the data stream arrives, the first tuple information of the data stream is used to perform pattern matching on the data stream, and a data identifier (Tag) is added to the data stream according to the matching result. Further, a corresponding relationship between data identifiers and queues has been pre-set, so that queue mapping can be performed based on the data identifier of the data stream, and the data stream can be added to the corresponding queue according to the data identifier of the data stream.
  • the data transmission method may further include: encapsulating the data stream based on the priority corresponding to the queue to obtain a first fast message.
  • the designated component of the first fast message is accompanied by the priority of the first fast message.
  • the first fast message is added to the target cache module.
  • the target cache module is set for the fast service interface indicated by the first interface identifier.
  • the fast message has a fixed structure.
  • the designated component can be any structural part in the fast message.
  • the data flow in any queue is encapsulated according to the priority corresponding to the any queue, and the priority corresponding to the any queue is encapsulated in the designated component of the fast message to obtain a first fast message, so that the designated component of the first fast message is accompanied by the priority of the first fast message.
  • the first fast message is obtained by encapsulating the data column in the any queue, then the priority of the queue is bound to the priority of the fast message, and the priority of the fast message determines the fast service interface that sends the fast message.
  • Different fast service interfaces correspond to different cache modules, and the cache module is used to cache the fast messages that need to be sent by the corresponding fast service interface. Therefore, if it is necessary to send the first fast message, the first fast message is added to the target cache module set for the fast service interface indicated by the first interface identifier.
  • encapsulating a data stream based on a priority corresponding to a queue to obtain a first fast message includes: encapsulating a corresponding frame preamble code for the data stream based on a priority corresponding to the queue to obtain a first fast message.
  • the first fast message is obtained by using the frame preamble corresponding to the priority corresponding to the queue.
  • the priority of the first fast message can be determined using the frame preamble of the first fast message. It should be noted that using the frame preamble to distinguish different priorities is only one embodiment, and the actual implementation includes but is not limited to this.
  • suspending sending the second fast message may include: suspending sending the second fast message when it is determined that the sending status of the second fast message satisfies the preemption condition.
  • the MAC layer also includes a MAC merging sublayer.
  • the first fast message is received.
  • the priority of the first fast message is higher than that of the second fast message.
  • the first fast message can preempt the second fast message, but it is necessary to further determine whether the preemption condition is met.
  • the preemption condition can be: at least 64 bytes of data remain untransmitted in the low-priority message and at least 60 bytes of data have been transmitted.
  • the MAC merging sublayer determines whether the sending of the second fast message meets the preemption condition. If so, it indicates that the second fast message can be preempted, thereby suspending the sending of the second fast message.
  • the data transmission method may further include: recording a breakpoint where the second fast message is interrupted, wherein the breakpoint is used to mark the part of the second fast message that has been completed.
  • the MAC merging sublayer may also be used to record the breakpoint at which the second fast message is intercepted.
  • the second fast message may be continued to be transmitted with reference to the recorded breakpoint.
  • different cache modules are provided for a fast service interface for sending a first fast message and a fast service interface for sending a second fast message.
  • the fast packetized message includes a time-triggered service flow and/or a rate-limited service flow.
  • the fast packetized message may include a plurality of time-triggered service flows of different delay levels.
  • the fast packetized message may include a plurality of time-triggered service flows of different delay levels, and at least one rate-limited service flow.
  • the fast packetized message may include a plurality of rate-limited service flows of different delay levels.
  • a cache module is provided for a preemptible service interface that sends preemptible messages; the preemptible messages include best-effort service flows.
  • the preemptible service interface can also be set to multiple. Different preemptible service interfaces can correspond to preemptible messages of different priorities, respectively. Exemplarily, the number of fast service interfaces can be 4, and 4 fast service interfaces can be used to correspond to the transmission of fast messages of 4 priorities. The number of preemptible service interfaces can be 4. 4 preemptible service interfaces can be used to correspond to the transmission of fast messages and preemptible messages of 4 priorities. Exemplarily, the number of fast service interfaces can be 6, and the number of preemptible service interfaces can be 2. I will not go into details here.
  • the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
  • the number of fast service interfaces is any one of 2 to 8.
  • the number of preemptible service interfaces is 1.
  • 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, and the number of preemptible service interfaces is 1, and so on, which will not be repeated here.
  • the cache module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data sending method.
  • the method may include the following steps.
  • S702 Acquire a data stream; wherein the data stream corresponds to first tuple information.
  • S704 Perform pattern matching on the data stream according to the first tuple information to determine a data identifier of the data stream.
  • the queues have different priorities; the priorities of the queues correspond to the interface identifiers of the fast service interfaces.
  • the designated component of the first express message is accompanied by the priority of the first express message.
  • S710 Add the first express message to a target cache module according to the priority level attached to the designated component of the first express message.
  • the target cache module is set for the fast service interface indicated by the first interface identifier.
  • the first fast message and the second fast message belong to fast groups respectively;
  • the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to the fast service interface that sends the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier.
  • the fast service interface for sending the first fast message and the fast service interface for sending the second fast message are respectively provided with different cache modules; the fast grouped messages include time-triggered service flows and/or rate-limited service flows.
  • the number of fast service interfaces ranges from 2 to 8.
  • the priority of the first fast message is higher than the priority of the second fast message.
  • the sending of the second fast message is suspended.
  • the breakpoint where the second fast message is intercepted is recorded; wherein the breakpoint is used to mark the part of the second fast message that has been sent.
  • S718 Control the second fast message to continue to be sent according to the release indication and the first interface identifier.
  • the preemptible message belongs to the preemptible group.
  • a cache module is provided for the preemptible service interface that sends the preemptible message; the preemptible message includes a best effort service flow.
  • the number of preemptible service interfaces is 1.
  • S724 Control the preemptible message to start sending according to the release indication and the second interface identifier.
  • the third fast message belongs to the fast group, and the priority of the second fast message is higher than the priority of the third fast message.
  • the second release control signal is accompanied by a release indication and a second interface identifier; wherein the second interface identifier is used to refer to a fast service interface for sending the second fast message.
  • S730 Control the third fast message to start sending according to the release indication and the second interface identifier.
  • the third fast message is controlled to start being sent through the fast service interface indicated by the third interface identifier.
  • the fourth fast message belongs to a fast group, and the priority of the fourth fast message is higher than the priority of the first fast message;
  • the second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information; wherein the fourth interface identifier is used to refer to the fast service interface for sending the fourth fast message.
  • the cache module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data receiving method, which may include the following steps.
  • Different priorities correspond to different first processing units. Different first processing units correspond to different fast service interfaces.
  • the transmitted data stream is divided into fast packets and preemptible packets.
  • the traffic level of the fast packet is higher than the traffic level of the preemptible packet, and the arrival of the fast packet data stream can interrupt the transmission of the preemptive packet data stream.
  • the fast packet can also be divided into multiple priorities according to the delay requirement level of the data stream.
  • the fast packet includes at least two priority levels of fast messages, such as a first fast message and a second fast message. A high-priority fast message can interrupt the sending of a low-priority fast message.
  • the fast packet may include TT streams of multiple delay requirement levels, and the fast packet may include at least one TT stream of a delay requirement level and at least one RC stream.
  • different fast messages with different levels of delay requirements are processed by different first processing units, and different first processing units correspond to different fast service interfaces, and different fast service interfaces have different interface identifiers.
  • the number of the fast service interfaces is greater than or equal to 2.
  • the type of the message to be processed is determined.
  • the fast group can be divided into Q0 data stream, Q1 data stream, and Q2 data stream.
  • the priority of Q2 data stream is higher than that of Q1 data stream, and the priority of Q1 data stream is higher than that of Q0 data stream.
  • the fast group can be divided into 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 priority of Q7 data stream is higher than that of Q6 data stream; the priority of Q6 data stream is higher than that of Q5 data stream; the priority of Q5 data stream is higher than that of Q4 data stream; the priority of Q4 data stream is higher than that of Q3 data stream; the priority of Q3 data stream is higher than that of Q2 data stream; the priority of Q2 data stream is higher than that of Q1 data stream, and the priority of Q1 data stream is higher than that of Q0 data stream.
  • the target processing unit is used to determine the integrity of the message to be processed.
  • the priority of the message to be processed corresponds to a target processing unit, and the message to be processed is diverted to the target processing unit according to the determined priority of the message to be processed.
  • the target processing unit is used to judge the frame integrity of the message to be processed. When it is judged that the message to be processed is incomplete, the target processing unit can be used to frame and verify the message to be processed to output a complete fast message.
  • Different first processing units correspond to different fast service interfaces. Different fast service interfaces are divided according to latency and jitter performance. Specifically, the target processing unit outputs a complete fast message. Since the fast message needs to be sent to the upper 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 above-mentioned data receiving method applied to the receiving end determines the priority of the message to be processed when the received message to be processed belongs to a fast group; and diverts the message to be processed to the target processing unit corresponding to the priority of the message to be processed; thereby sending the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit; by designing multiple fast service interfaces, it is possible to strictly guarantee the communication performance of traffic with multiple levels of different delay and jitter levels, and by setting the first processing units corresponding to different priorities, it is possible to provide more fine-grained delay and jitter performance guarantees for multiple TT flows and RC flows.
  • the data receiving method may further include the following steps.
  • the priority of the message to be processed is determined, including:
  • the fast message has a fixed structure.
  • the first designated component may be any structural part in the fast message.
  • the first designated component may be a preamble.
  • the message to be processed needs to be verified. If the verification 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 verification is wrong, the message to be processed needs to be discarded. Furthermore, since the priority of the message has been encapsulated in the first designated component, the priority of the message to be processed can be determined based on the value of the first designated component in the message to be processed.
  • the data receiving method may include: if the message to be processed fails to pass verification, discarding the message to be processed.
  • verifying the message to be processed may include: verifying the message to be processed based on the value of the second designated component in the message to be processed.
  • the first designated component is a preamble; and the second designated component is a frame delimiter.
  • multiple groups of information such as srcMAC, destMAC, srcIP, destIP, srcPort, destPort, udf (user-defined) are used to perform pattern matching on data streams; for successfully matched data streams, flow identifiers are assigned, and corresponding information, such as queue information, is associated; data streams are queued to different queues based on the flow identifiers and corresponding information; data packets in different queues are encapsulated with different frame preambles to distinguish different priorities, perform multi-level preemptive MAC nested scheduling, and merge and output the data streams.
  • srcMAC, destMAC, srcIP, destIP, srcPort, destPort, udf user-defined
  • the data receiving method may include the following steps.
  • S1010 When the received message to be processed belongs to a preemptible group, determine that the message to be processed is a preemptible message.
  • the preemptible message is provided with a priority
  • the priority of the preemptible message corresponds to a second processing unit.
  • the second processing unit corresponds to a preemptible service interface.
  • the second processing unit is used to determine 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 when it is determined that the message to be processed belongs to a preemptible group, the message to be processed is determined to be a preemptible message. Further, the priority of the preemptible message corresponds to a second processing unit.
  • the second processing unit corresponds to a preemptible service interface, and the preemptible message is diverted to the second processing unit.
  • the second processing unit outputs a complete fast message. Since the preemptible message needs to be sent to the upper layer through the preemptible service interface, the complete preemptible message is sent to the preemptible service interface corresponding to the second processing unit.
  • different fast service interfaces are respectively provided with different cache modules; the preemptible service interface is also provided with a cache module; the fast grouped messages include time-triggered flows and/or rate-limited flows; the preemptible grouped messages include best-effort service flows.
  • the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
  • the number of fast service interfaces is any one of 2 to 8.
  • the number of preemptible service interfaces is 1.
  • 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, and the number of preemptible service interfaces is 1, and so on, which will not be repeated here.
  • the method for determining the integrity of the message to be processed includes at least one of the following: when the message to be processed is determined to be a complete data frame, determining that the message to be processed is complete; or, when the message to be processed is determined to be an incomplete data frame, framing the message to be processed based on the frame delimiter and the fragment count to obtain a complete data frame.
  • the cache module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip Alternatively, the cache module and the processing unit share an integrated chip or a processor, controller, memory and other devices.
  • the shared processor, controller or chip executes the program-related code to implement the corresponding function.
  • An embodiment of the present specification provides a data receiving method.
  • the method may include the following steps.
  • S1104 When the message to be processed passes verification, determine, based on the value of the first designated component in the message to be processed, that the message to be processed belongs to a fast group.
  • the first designated component is the preamble; the second designated component is the frame delimiter.
  • S1106 When the received message to be processed belongs to a fast group, determine the priority of the message to be processed.
  • Different priorities correspond to different first processing units, and different first processing units correspond to different fast service interfaces.
  • the number of the fast service interfaces is greater than or equal to 2.
  • the target processing unit is used to determine the integrity of the message to be processed; specifically, when it is determined that the message to be processed is a complete data frame, it is determined that the message to be processed is complete; when it is determined that the message to be processed is an incomplete data frame, the message to be processed is framed based on the frame delimiter and the fragment count to obtain a complete data frame.
  • S1112 When the received message to be processed belongs to a preemptible group, determine that the message to be processed is a preemptible message.
  • the preemptible message is provided with a priority, and the priority of the preemptible message corresponds to a second processing unit; and the second processing unit corresponds to a preemptible service interface.
  • Different fast service interfaces are respectively provided with different cache modules; preemptible service interfaces are also provided with cache modules; fast grouped messages include time-triggered flows and/or rate-limited flows; preemptible grouped messages include best-effort service flows.
  • the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
  • an embodiment of the present specification provides a chip 1200, wherein 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 a MAC merging sublayer 1208 and a MAC client 1210, so as to transmit fast messages between the MAC merging sublayer 1208 and the MAC client 1210.
  • the preemptible service interface 1206 is located between the MAC merging sublayer 1208 and the MAC client 1210 to transmit preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210 .
  • the MAC merging sublayer 1208 provides a MAC merging service interface to the MAC client 1210.
  • the MAC merging service interface is used to receive a preemption control signal sent by the MAC client 1210, and the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine a target service interface capable of transmitting a message among the first fast service interface, the second fast service interface, and the preemptible service interface.
  • a first fast service interface 1202, a second fast service interface 1204, and a preemptible service interface 1206 are set 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 to transmit fast messages between the MAC merging sublayer 1208 and the MAC client 1210.
  • a fast service interface for transmitting fast messages of corresponding priorities can be determined in the first fast service interface 1202 and the second fast service interface 1204. Fast messages of high priority are transmitted through the fast service interface corresponding to the high priority, and fast messages of low priority are transmitted through the fast service interface corresponding to the low priority.
  • the preemptible service interface 1206 is used to transmit preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210.
  • the preemptible service interface 1206 can be understood as a data channel for transmitting preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210.
  • the MAC merging sublayer 1208 receives a preemptible message, it 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.
  • the MAC client 1210 transmits a preemption control signal to the MAC merge service interface.
  • the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine the target service interface that can transmit the message among the first fast service interface, the second fast service interface, and the preemptible service interface.
  • the MAC client 1210 may also transmit a release control signal to the MAC merge service interface.
  • the release control signal is accompanied by a release indication and an interface identifier; wherein the interface identifier and the release indication are used to release the service interface that has completed the message transmission.
  • the chip has a first fast service interface (e0MAC), 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 (e7MAC), 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 to transmit fast messages between the MAC merging sublayer and the MAC client.
  • the preemptible service interface is located between the MAC merging sublayer and the MAC client to transmit preemptible messages between the MAC merging sublayer and the MAC client.
  • the MAC merging sublayer provides a MAC merging service interface to the MAC client.
  • the MAC merging service interface is used to receive the preemption control signal sent by the MAC client.
  • there is a time synchronization client 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 to align the "pace" of various signals.
  • the MAC client transmits the MM_CTL.request control signal to the MAC merge service interface.
  • the MM_CTL.request control signal carries a parameter hold-x or a parameter release-x, wherein the parameter hold-x is used to indicate the holding of each level of interception, and the parameter release-x is used to indicate the release of each level of interception, and x is used to specify the service interface that performs the interception or the service interface that is released.
  • the MAC merge service interface cooperates with each PLS service interface to control the transmission and implement multi-level preemptive nested scheduling.
  • the preemption logic implements preemption and transmission control by controlling the PLS signal.
  • the MM_CTL.request control signal can support multi-level nesting. Exemplarily illustrate the process of multiple nested data transmission: the MAC client encapsulates different preambles for data packets in different queues to distinguish different frame priorities; according to different preambles, the data enters the e0-7MAC or pMAC service interface; the MAC service interface determines whether there is a preemption demand between the interfaces.
  • the preempted breakpoint is recorded; the MAC service interface performs nested preemption; the MAC service interface continues to transmit the preempted data after the preempted data is sent; the data merging sublayer merges and outputs the nested data of different priorities sent by the MAC service interface.
  • the hold-5 signal arrives, and the transmission processing interrupts the eMAC4 data under the premise of meeting the preemption conditions, and starts to send eMAC5 data.
  • the release-x signal needs to be executed in the reverse execution order of hold-x, that is, the last hold has priority release. Before the release signal of the last executed hold signal is executed, the system should not respond to the lower-level release signal. For example, if the hold signal processing order is hold-1, hold-2, hold-3, then the release signal processing order should be release-3, release-2, release-1. Release-2 and release-1 signals will not be responded to before the release-3 signal is processed.
  • the eMAC4 data can be a fast message transmitted through the eMAC4 fast service interface.
  • the eMAC5 data can be a fast message transmitted through the eMAC5 fast service interface.
  • PLS is a physical signaling sublayer used to transmit data receiving and sending signals step by step. Compared with the existing Qbu technology, the main difference between the PLS at each level in this embodiment is that the hardware needs to implement the PLS signal of multiple eMACs.
  • a first fast service interface, a second fast service interface, and a preemptible service interface are provided between the MAC merging sublayer and the MAC client.
  • the MAC merging service interface is provided on the MAC merging sublayer 1208 for the MAC client 1210.
  • Multiple fast service interfaces and interception control signals can be designed to achieve multi-level nested interception, so that data transmission can be carried out strictly in accordance with the requirements of multi-level different delays and jitter levels. Under the premise of meeting the deterministic real-time communication of the TT flow, the communication performance of the RC flow can be improved at the same time.
  • 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 includes at least one of a time-triggered service flow and a rate-limited service flow.
  • the preemptible message is a best-effort service flow.
  • the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
  • the first eMAC layer corresponding to the first fast service interface and the second eMAC layer corresponding to the second fast service interface are transmission channels for transmitting fast messages.
  • the pMAC layer corresponding to the preemptible service interface is a transmission channel for transmitting preemptible messages.
  • the MAC layer includes a MAC merging sublayer, a first eMAC layer, a second eMAC layer, and a pMAC layer.
  • the MAC merging sublayer includes a first fast message filtering module, a second fast message filtering module, a receiving processing module, a verification module, a transmission processing module, a first service interface corresponding to the first fast message filtering module, a second service interface corresponding to the second fast message filtering module, and a third service interface corresponding to the receiving processing module.
  • the first fast message filtering module is used to filter the fast messages that need to enter the first fast service interface.
  • the second fast message filtering module is used to filter the fast messages that need to enter the second fast service interface.
  • the receiving processing module is used to receive the preemptible message and process the preemptible message.
  • the coordination sublayer receives a data message
  • the data message is sent to the first fast message filtering module, the second fast message filtering module, and the receiving processing module.
  • the receiving processing module is used to process the preemptible messages.
  • fast messages at all levels, they are filtered into different processing units for processing and sent to the MAC client through the corresponding fast service interface.
  • the data receiving process is illustrated as follows: data frame reception; data frame verification; discarding frames with verification errors; caching frames with correct verification; frames marked with different preambles are diverted to different frame processing units, and different frame processing units correspond to e0-7MAC and pMAC respectively; the frame processing unit determines the frame integrity, frames the incomplete frames and verifies them, and discards frames with verification errors. Send complete and correctly verified frames to the corresponding MAC service interface.
  • the incomplete data frames intercepted at each level can be reassembled and verified for correctness at the data receiving end, and the data frames that pass the verification are sent to the corresponding e0-7MAC or pMAC service interface.
  • the first fast message filtering module, the second fast message filtering module, the receiving processing module, the verification module, the transmission processing module, the cache module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • the first fast message filtering module, the second fast message filtering module, the receiving processing module, the verification module, the transmission processing module, the cache module and the processing unit share an integrated chip or a processor, controller, memory and other devices.
  • the shared processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data sending method, which is applied to a MAC client, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is sent to a MAC merging sublayer based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast packets respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier; the first intercept control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the intercept indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  • the embodiment of the present specification provides a data transmission method, which is applied to the MAC merging sublayer, and the method comprises: receiving a first fast message and When sending a second fast message, a first intercept control signal is received; wherein, the first intercept control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein, the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein, the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, the second fast message is controlled to be suspended from being sent through the fast service interface referred to by the second interface identifier, and the first fast message is controlled to start being sent through the fast service interface referred to by the first interface identifier.
  • An embodiment of the present specification provides a data sending device, which includes: a control signal sending module and a message sending control module.
  • a control signal sending module used for sending a first intercept control signal based on the first tuple information of a first fast message when a first fast message is received and a second fast message is being sent; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface that sends the first fast message; and the second fast message is being sent through the fast service interface indicated by the second interface identifier.
  • a message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  • control signal sending module and the message sending control module can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • control signal sending module and the message sending control module share an integrated chip or a processor, controller, memory or other device.
  • the shared processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data receiving device, which includes: a priority determination module, a message diversion module, and a message sending module.
  • a priority determination module used for determining the priority of the message to be processed when the received message to be processed belongs to a fast group; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; the number of the fast service interfaces is greater than or equal to 2;
  • a message diversion module used for diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used for determining the integrity of the message to be processed;
  • the message sending module is used to send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
  • the priority determination module, the message diversion module, the message uploading module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • the priority determination module, the message diversion module, the message uploading module and the processing unit share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data sending device, which is applied to a MAC client.
  • the device includes: a preemption signal sending module, which is used to send a first preemption control signal to the MAC merging sublayer based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent.
  • the first fast message and the second fast message belong to fast groups respectively;
  • the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information;
  • the second fast message is being sent through the fast service interface indicated by the second interface identifier.
  • the first preemption control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier according to the preemption indication and the first interface identifier.
  • the interception signal sending module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides a data sending device, which is applied to a MAC merging sublayer.
  • the device includes: a preemption signal receiving module and a message sending control module.
  • a steal signal receiving module used to receive a first steal control signal when a first fast message is received and a second fast message is being sent; wherein the first steal control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to fast groups respectively; the first steal control signal is accompanied by a steal indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface that sends the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier.
  • a message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  • the interception signal receiving module and the message sending control module can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
  • the interception signal receiving module and the message sending control module share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
  • An embodiment of the present specification provides an electronic device, including a transceiver, a processor and a memory, wherein 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.
  • An embodiment of the present specification provides a chip, which includes at least one processor, an interface circuit and a memory, wherein the memory, the interface circuit and the at least one processor are interconnected via lines, 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 of the above embodiments.
  • An embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method mentioned in any of the above embodiments is implemented.
  • An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the method steps in the above embodiment.
  • Computer readable media include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM).
  • the computer readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in other suitable ways as necessary, and then stored in a computer memory.
  • a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal
  • a dedicated integrated circuit having a suitable combination of logic gate circuits
  • PGA programmable gate array
  • FPGA field programmable gate array
  • first and second are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of “plurality” is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
  • the terms “installed”, “connected”, “connected”, “fixed” and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined.
  • installed can be a fixed connection, a detachable connection, or an integral connection
  • it can be a mechanical connection or an electrical connection
  • it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined.
  • the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

Disclosed in the present invention are a data sending method and apparatus, a data receiving method and apparatus, an electronic device, a chip, and a storage medium. The method comprises: after receiving a first express message and when a second express message is being sent by means of an express service interface indicated by a second interface identifier, sending a first steal control signal on the basis of first tuple information of the first express message; and according to the first steal control signal, controlling the second express message to pause sending by means of the express service interface indicated by the second interface identifier, and controlling the first express message to start sending by means of an express service interface indicated by a first interface identifier. A plurality of express service interfaces and a steal control signal carrying a steal indication and an interface identifier are designed for different levels of time delay and jitter requirements, a frame structure does not need to be changed, and the frame structure is consistent with a frame structure defined by standards, such that the probability of an opposite end not being able to receive a data stream is reduced, and the universality is improved.

Description

数据发送、接收方法、装置、电子设备、芯片及存储介质Data sending and receiving method, device, electronic device, chip and storage medium 技术领域Technical Field
本发明涉及通信技术领域,尤其涉及一种数据发送、接收方法、装置、电子设备、芯片及存储介质。The present invention relates to the field of communication technology, and in particular to a data sending and receiving method, device, electronic device, chip and storage medium.
背景技术Background technique
时间敏感网络(Time-Sensitive Networking,TSN)中引入了帧抢占机制。在电气和电子工程师协会(Institute for Electrical and Electronic Engineers,IEEE)802.3br和IEEE 802.1Qbu定义的帧抢占机制中,帧抢占机制将给定2个MAC服务接口,分别称为可被抢占MAC(Preemptable MAC,pMAC)和快速MAC(Express MAC,eMAC)。可抢占数据传输过程中可以被快速数据抢占,进入数据堆栈后等待快速数据传输完成,可抢占数据再续传。The frame preemption mechanism is introduced in Time-Sensitive Networking (TSN). In the frame preemption mechanism defined by the Institute for Electrical and Electronics Engineers (IEEE) 802.3br and IEEE 802.1Qbu, the frame preemption mechanism will give two MAC service interfaces, namely Preemptable MAC (pMAC) and Express MAC (eMAC). Preemptible data can be preempted by fast data during transmission. After entering the data stack, it waits for the fast data transmission to complete before the preemptible data can be transmitted again.
在需要时间敏感网络传输优先级大于两个的数据流时,比如不仅传输时间触发流(TT流)、还要传输速率限制流(RC流),基于pMAC服务接口和eMAC服务接口实现的帧抢占机制并不能满足时延需求。因此,在一些相关技术中,首先,将数据帧根据各自的优先级和时延要求配置成eMAC帧、tpMAC帧和ntpMAC帧;其次,将pMAC层虚拟成tpMAC层和ntpMAC层,保持原eMAC层不变,得到三个MAC独立子层以传输不同优先级的数据帧;最后,通过改变帧结构、帧抢占帧映射规则的方式以满足多个优先级的时延需求,比如:通过在八位基础上增加一位(第九位)来完成各类优先级到各MAC独立子层的映射,定义第九位(最高位)与低八位分别组合,不同的值映射至不同的MAC独立子层。和IEEE Std 802.1Qbu和IEEE Std 802.3br标准定义的帧抢占机制相比,该相关技术在一定程度上可以保障eMAC帧时延的基础上降低tpMAC帧的时延。When a time-sensitive network is required to transmit data streams with a priority greater than two, such as transmitting not only a time-triggered stream (TT stream) but also a rate-limited stream (RC stream), the frame preemption mechanism implemented based on the pMAC service interface and the eMAC service interface cannot meet the latency requirements. Therefore, in some related technologies, first, the data frames are configured into eMAC frames, tpMAC frames, and ntpMAC frames according to their respective priorities and latency requirements; second, the pMAC layer is virtualized into a tpMAC layer and a ntpMAC layer, and the original eMAC layer is kept unchanged, so that three MAC independent sublayers are obtained to transmit data frames of different priorities; finally, the latency requirements of multiple priorities are met by changing the frame structure and the frame preemption frame mapping rules, for example: by adding one bit (the ninth bit) on the basis of eight bits to complete the mapping of various priorities to each MAC independent sublayer, the ninth bit (the highest bit) is defined to be combined with the lower eight bits, and different values are mapped to different MAC independent sublayers. Compared with the frame preemption mechanism defined in IEEE Std 802.1Qbu and IEEE Std 802.3br standards, this related technology can, to a certain extent, reduce the delay of tpMAC frames while ensuring the delay of eMAC frames.
然而,相关技术中改变后的帧结构与标准定义的帧结构并不相同,对端可能并不能接收改变帧结构的数据流。However, the changed frame structure in the related art is different from the frame structure defined in the standard, and the other end may not be able to receive the data stream with the changed frame structure.
发明内容Summary of the invention
本说明书实施方式旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本说明书实施方式提出一种数据发送、接收方法、装置、电子设备、芯片及存储介质。The embodiments of this specification are intended to solve at least one of the technical problems in the related art to a certain extent. To this end, the embodiments of this specification propose a data sending and receiving method, device, electronic device, chip and storage medium.
本说明书实施方式提供一种数据发送方法,所述方法包括:在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。An embodiment of the present specification provides a data sending method, the method comprising: when a first fast message is received and a second fast message is being sent, sending a first intercept control signal based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, controlling the second fast message to suspend sending through the fast service interface referred to by the second interface identifier, and controlling the first fast message to start sending through the fast service interface referred to by the first interface identifier.
本说明书实施方式提供一种数据接收方法,所述方法包括:在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级;其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口;其中,所述快速服务接口的数量大于等于2;分流所述待处理报文至与所述待处理报文的优先级对应的目标处理单元;其中,所述目标处理单元用于确定所述待处理报文的完整性;将所述目标处理单元输出的完整快速报文 上送至与所述目标处理单元对应的目标快速服务接口。The embodiment of the present specification provides a data receiving method, the method comprising: in the case where the received message to be processed belongs to a fast group, determining the priority of the message to be processed; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; wherein the number of the fast service interfaces is greater than or equal to 2; diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used to determine the integrity of the message to be processed; and sending the complete fast message output by the target processing unit to the target processing unit. The data is sent to the target rapid service interface corresponding to the target processing unit.
本说明书实施方式提供一种数据发送方法,应用于MAC客户端,所述方法包括:在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。An embodiment of the present specification provides a data sending method, which is applied to a MAC client, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is sent to a MAC merging sublayer based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier; the first intercept control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the intercept indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
本说明书实施方式提供一种数据发送方法,应用于MAC合并子层,所述方法包括:在接收到第一快速报文,且正在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。An embodiment of the present specification provides a data sending method, which is applied to the MAC merging sublayer, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is received; wherein the first intercept control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, the second fast message is controlled to suspend sending through the fast service interface referred to by the second interface identifier, and the first fast message is controlled to start sending through the fast service interface referred to by the first interface identifier.
本说明书实施方式提供一种芯片,所述芯片具有第一快速服务接口、第二快速服务接口、可抢占服务接口;其中,所述第一快速服务接口、所述第二快速服务接口位于MAC合并子层、MAC客户端之间,以用于在所述MAC合并子层、所述MAC客户端之间传输快速报文;所述可抢占服务接口位于所述MAC合并子层、所述MAC客户端之间,以用于在所述MAC合并子层、所述MAC客户端之间传输可抢占报文;所述MAC合并子层向提供MAC客户端提供有MAC合并服务接口;其中,所述MAC合并服务接口用于接收所述MAC客户端发送的抢断控制信号,所述抢断控制信号附带有抢断指示、接口标识;其中,所述接口标识以及所述抢断指示用于在所述第一快速服务接口、所述第二快速服务接口、所述可抢占服务接口中确定能够传输报文的目标服务接口。An embodiment of the present specification provides a chip, wherein the chip has a first fast service interface, a second fast service interface, and a preemptible service interface; wherein the first fast service interface and the second fast service interface are located between a MAC merging sublayer and a MAC client, so as to be used for transmitting fast messages between the MAC merging sublayer and the MAC client; the preemptible service interface is located between the MAC merging sublayer and the MAC client, so as to be used for transmitting preemptible messages between the MAC merging sublayer and the MAC client; the MAC merging sublayer provides a MAC merging service interface to the MAC client; wherein the MAC merging service interface is used to receive a preemption control signal sent by the MAC client, and the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine a target service interface capable of transmitting messages among the first fast service interface, the second fast service interface, and the preemptible service interface.
本说明书实施方式提供一种数据发送装置,所述装置包括:控制信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。An embodiment of the present specification provides a data sending device, which includes: a control signal sending module, which is used to send a first intercept control signal based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier; a message sending control module, which is used to control the second fast message to suspend sending through the fast service interface referred to by the second interface identifier, and control the first fast message to start sending through the fast service interface referred to by the first interface identifier according to the intercept indication and the first interface identifier.
本说明书实施方式提供一种数据接收装置,所述装置包括:优先级确定模块,用于在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级;其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口;其中,所述快速服务接口的数量大于等于2;报文分流模块,用于分流所述待处理报文至与所述待处理报文的优先级对应的目标处理单元;其中,所述目标处理单元用于确定所述待处理报文的完整性;报文上送模块,用于将所述目标处理单元输出的完整快速报文上送至与所述目标处理单元对应的目标快速服务接口。The embodiment of the present specification provides a data receiving device, which includes: a priority determination module, which is used to determine the priority of the message to be processed when the received message to be processed belongs to a fast group; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; wherein the number of the fast service interfaces is greater than or equal to 2; a message diversion module, which is used to divert the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used to determine the integrity of the message to be processed; and a message sending module, which is used to send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
本说明书实施方式提供一种数据发送装置,应用于MAC客户端,所述装置包括:抢断信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第 一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The embodiment of the present specification provides a data sending device, which is applied to a MAC client, and the device includes: a preemption signal sending module, which is used to send a second fast message to the MAC merging sublayer based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent. A preemption control signal; wherein, the first fast message and the second fast message belong to fast groups respectively; the first preemption control signal is accompanied by a preemption indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through the fast service interface indicated by the second interface identifier; the first preemption control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the preemption indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
本说明书实施方式提供一种数据发送装置,应用于MAC合并子层,所述装置包括:抢断信号接收模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The embodiment of the present specification provides a data sending device, which is applied to the MAC merging sublayer, and the device includes: a preemption signal receiving module, which is used to receive a first preemption control signal when a first fast message is received and a second fast message is being sent; wherein the first preemption control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first preemption control signal is accompanied by a preemption indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier; a message sending control module, which is used to control the second fast message to suspend sending through the fast service interface referred to by the second interface identifier according to the preemption indication and the first interface identifier, and control the first fast message to start sending through the fast service interface referred to by the first interface identifier.
本说明书实施方式提供一种电子设备,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行上述任一实施方式中所述的方法。An embodiment of the present specification provides an electronic device, including a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method described in any of the above embodiments.
本说明书实施方式提供一种芯片,所述芯片包括至少一个处理器、接口电路和存储器,所述存储器、所述接口电路和所述至少一个处理器通过线路互联,所述存储器中存储有计算机程序,所述计算机程序被所述至少一个处理器执行时,所述芯片实现上述任一实施方式中所述的方法。An embodiment of the present specification provides a chip, which includes at least one processor, an interface circuit and a memory. The memory, the interface circuit and the at least one processor are interconnected through lines. A computer program is stored in the memory. When the computer program is executed by the at least one processor, the chip implements the method described in any of the above embodiments.
本说明书实施方式提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现上述任一实施方式中所述的方法。An embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
本说明书实施方式提供一种计算机程序产品,所述计算机程序产品中包括指令,所述指令被电子设备的处理器执行时,使得所述电子设备能够执行上述实施方式中的方法步骤。An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the method steps in the above embodiment.
本说明书实施方式中,在接收到第一快速报文,且正在通过第二接口标识指代的快速服务接口发送第二快速报文的情况下,基于第一快速报文的第一元组信息发送第一抢断控制信号;第一抢断控制信号附带有抢断指示、与第一元组信息对应的第一接口标识;从而根据抢断指示以及第一接口标识,控制第二快速报文第二接口标识指代的快速服务接口暂停发送,并控制第一快速报文通过第一接口标识指代的快速服务接口开始发送。通过针对不同等级时延和抖动要求设计多个快速服务接口、携带抢断指示以及接口标识的抢断控制信号,无需改变帧结构,与标准所定义的帧结构一致,不仅减少对端不能够接收数据流的几率,提升其通用性。In the implementation mode of this 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 interception control signal is sent based on the first tuple information of the first fast message; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; thereby, according to the interception 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 multiple fast service interfaces according to different levels of delay and jitter requirements, and interception control signals carrying interception indications and interface identifiers, there is no need to change the frame structure, which is consistent with the frame structure defined by the standard, which not only reduces the probability of the other end being unable to receive the data stream, but also improves its versatility.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1a为本说明书实施例方式提供的相关技术中IEEE802.1Qbv的工作原理示意图。FIG. 1a is a schematic diagram of the working principle of IEEE802.1Qbv in the related technology provided by the embodiment of this specification.
图1b为本说明书实施例方式提供的相关技术中帧抢占机制实现的示意图。FIG. 1 b is a schematic diagram of an implementation of a frame preemption mechanism in a related art provided in an embodiment of this specification.
图1c为本说明书实施例方式提供的帧抢占机制实现的示意图。FIG. 1c is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
图1d为本说明书实施例方式提供的帧抢占机制实现的示意图。FIG. 1d is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
图1e为本说明书实施例方式提供的帧抢占机制实现的示意图。FIG. 1e is a schematic diagram of an implementation of a frame preemption mechanism provided in an embodiment of this specification.
图2为本说明书实施例方式提供的数据发送方法流程示意图。 FIG. 2 is a flow chart of a data sending method provided in an embodiment of the present specification.
图3为本说明书实施例方式提供的数据发送方法流程示意图。FIG3 is a flow chart of a data sending method provided in an embodiment of the present specification.
图4为本说明书实施例方式提供的数据发送方法流程示意图。FIG. 4 is a flow chart of a data sending method provided in an embodiment of the present specification.
图5为本说明书实施例方式提供的数据发送方法流程示意图。FIG. 5 is a flow chart of a data sending method provided in an embodiment of the present specification.
图6为本说明书实施例方式提供的数据发送方法流程示意图。FIG. 6 is a flow chart of a data sending method provided in an embodiment of the present specification.
图7为本说明书实施例方式提供的数据发送方法流程示意图。FIG. 7 is a flow chart of a data sending method provided in an embodiment of the present specification.
图8为本说明书实施例方式提供的数据接收方法流程示意图。FIG. 8 is a flow chart of a data receiving method provided in an embodiment of the present specification.
图9为本说明书实施例方式提供的数据接收方法流程示意图。FIG. 9 is a flow chart of a data receiving method provided in an embodiment of the present specification.
图10为本说明书实施例方式提供的数据接收方法流程示意图。FIG. 10 is a flow chart of a data receiving method provided in an embodiment of the present specification.
图11为本说明书实施例方式提供的数据接收方法流程示意图。FIG. 11 is a flow chart of a data receiving method provided in an embodiment of the present specification.
图12a为本说明书实施例方式提供的芯片的结构示意图。FIG. 12 a is a schematic diagram of the structure of a chip provided in an embodiment of this specification.
图12b为本说明书实施例方式提供的芯片的结构示意图。FIG. 12 b is a schematic diagram of the structure of a chip provided in an embodiment of this specification.
图13为本说明书实施例方式提供的MAC层的结构示意图。FIG. 13 is a schematic diagram of the structure of the MAC layer provided in an embodiment of the present specification.
图14为本说明书实施例方式提供的MAC合并子层的结构示意图。FIG. 14 is a schematic diagram of the structure of the MAC merging sublayer provided in an embodiment of the present specification.
图15为本说明书实施方式中提供的数据发送装置的框架示意图。FIG. 15 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
图16为本说明书实施方式中提供的数据接收装置的框架示意图。FIG. 16 is a schematic diagram of the framework of a data receiving device provided in an embodiment of this specification.
图17为本说明书实施方式中提供的数据发送装置的框架示意图。FIG. 17 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
图18为本说明书实施方式中提供的数据发送装置的框架示意图。FIG. 18 is a schematic diagram of the framework of a data sending device provided in an embodiment of this specification.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性地,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
相关技术中,TSN由一系列技术标准组成,其主要分为时钟同步、数据流调度以及网络与用户配置三个部分。其中IEEE 802.1Qbv和IEEE 802.1Qbu是数据流调度的核心标准。In related technologies, TSN consists of a series of technical standards, which are mainly divided into three parts: clock synchronization, data flow scheduling, and network and user configuration. Among them, IEEE 802.1Qbv and IEEE 802.1Qbu are the core standards for data flow scheduling.
IEEE 802.1Qbv采用时间感知整形器(Time Awareness Shaper,TAS)调度机制,通过在报文出队列时增加门控来实现。如图1a所示,Qbv周期性地描预先设定好的门控列表,并依据门控列表中各个门的开关状态控制队列的传输。通过控制,预定的时间窗口到期后,预期流量所在队列开门,预期流量被放行;而在同一时间窗口内其他非预期流量所在队列关门,非预期流量被阻止。TAS调度算法排除了预期流量被非预期流量阻塞的可能性,降低了数据传输时延和抖动。IEEE 802.1Qbv adopts the Time Awareness Shaper (TAS) scheduling mechanism, which is achieved by adding gating when the message is out of the queue. As shown in Figure 1a, Qbv periodically scans the pre-set gating list and controls the transmission of the queue according to the switch status of each gate in the gating list. Through control, after the scheduled time window expires, the queue where the expected traffic is located opens the door and the expected traffic is released; while in the same time window, the queue where other unexpected traffic is located closes the door and the unexpected traffic is blocked. The TAS scheduling algorithm eliminates the possibility of expected traffic being blocked by unexpected traffic, reducing data transmission delay and jitter.
在TAS机制中,为了确保数据传输前网络是空闲的,需要设置保护带宽。保护带宽被设置为最大以太网帧传输长度,以确保最差情况下网络也不会被占用。In the TAS mechanism, in order to ensure that the network is idle before data transmission, it is necessary to set the protection bandwidth. 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.
TAS机制存在两个问题:(1)带宽浪费:保护带宽不能用于数据传输,造成带宽浪费;(2)优先级反转:MAC层共用的情况下,当有高优先级帧需要传输时,恰好有低优先级帧正在传输。这种情况下,只有等低优先级帧传输完成,高优先级帧才能开始传输。因此,TSN的802.1Qbu和IEEE 802.3工作组共同开发了IEEE 802.3br,即可抢占式MAC机制,可抢占式MAC实现机制如图1b所示。帧抢占机制将给定的出口分为2个MAC服务接口,分别称为可 被抢占MAC(Preemptable MAC:pMAC)和快速MAC(Express MAC,eMAC)。pMAC数据传输可以被eMAC抢占,进入数据堆栈后等待eMAC数据传输完成,pMAC数据再续传。There are two problems with the TAS mechanism: (1) Bandwidth waste: the protected bandwidth cannot be used for data transmission, resulting in bandwidth waste; (2) Priority inversion: when the MAC layer is shared, when a high-priority frame needs to be transmitted, a low-priority frame happens to be transmitted. In this case, the high-priority frame can only start to be transmitted after the low-priority frame is transmitted. Therefore, the 802.1Qbu and IEEE 802.3 working groups of TSN jointly developed the IEEE 802.3br, the preemptive MAC mechanism. The preemptive MAC implementation mechanism is shown in Figure 1b. The frame preemption mechanism divides a given export into two MAC service interfaces, namely the preemptive Preemptable MAC (pMAC) and Express MAC (eMAC). pMAC data transmission can be preempted by eMAC, and after entering the data stack, it waits for eMAC data transmission to complete before pMAC data transmission resumes.
请继续参阅图1b,队列Q7对应pMAC,队列Q1对应eMAC,当Q7数据正在传输时,Q1数据到来,当符合一定条件时,Q7传输被Q1抢断,当Q1数据传输完成后,Q7数据才能继续传输。一定条件指:pMAC至少剩余64字节数据未传输且至少已经传输了60字节数据。通过帧抢占机制,可以将保护带宽减少至最短低优先级帧片段,在最差情况下,低优先级帧片段也可以在下一个高优先级帧传输前完成。Please continue to refer to Figure 1b. Queue Q7 corresponds to pMAC, and queue Q1 corresponds to eMAC. When Q7 data is being transmitted, Q1 data arrives. When certain conditions are met, Q7 transmission is preempted by Q1. When Q1 data transmission is completed, Q7 data can continue to be transmitted. Certain conditions refer to: pMAC has at least 64 bytes of data left to be transmitted and at least 60 bytes of data have been transmitted. Through the frame preemption mechanism, the protection bandwidth can be reduced to the shortest low-priority frame segment. In the worst case, the low-priority frame segment can also be completed before the next high-priority frame transmission.
TSN网络中除了要传输时间触发流(TT流)还有速率限制流(RC流)以及尽力而为流(BE流)。然而,在相关技术中,通常孤立地看待TT流而忽略了较低优先级的实时流量,如RC流,导致TT流配置可能会增加RC流的最坏情况时延和抖动,使RC流业务质量下降甚至中断。如何在保证TT流的确定性实时通信前提下,尽可能提高RC流的通信性能;甚至在存在多种TT流、RC流的情况下,每种流内部也需要根据实际需求区分不同优先等级,以提供更细粒度的业务保障。解决上述问题对目前TSN技术实现来说具有挑战性。In addition to the transmission of time-triggered flows (TT flows), TSN networks also have rate-limited flows (RC flows) and best-effort flows (BE flows). However, in related technologies, TT flows are usually viewed in isolation and lower-priority real-time flows, such as RC flows, are ignored, resulting in TT flow configurations that may increase the worst-case latency and jitter of RC flows, causing the service quality of RC flows to degrade or even be interrupted. How to maximize the communication performance of RC flows while ensuring deterministic real-time communication of TT flows; even in the case of multiple TT flows and RC flows, each flow needs to distinguish different priority levels based on actual needs to provide more fine-grained service guarantees. Solving the above problems is challenging for current TSN technology implementations.
基于此,本说明书实施方式提供一种芯片。该芯片具有第一快速服务接口、第二快速服务接口、可抢占服务接口。其中,第一快速服务接口、第二快速服务接口位于MAC合并子层、MAC客户端之间,以用于在MAC合并子层、MAC客户端之间传输快速报文。可抢占服务接口位于MAC合并子层、MAC客户端之间,以用于在MAC合并子层、MAC客户端之间传输可抢占报文。MAC合并子层向提供MAC客户端提供有MAC合并服务接口。其中,MAC合并服务接口用于接收MAC客户端发送的抢断控制信号,抢断控制信号附带有抢断指示、接口标识;其中,接口标识以及抢断指示用于在第一快速服务接口、第二快速服务接口、可抢占服务接口中确定能够传输报文的目标服务接口。Based on this, the implementation method of this specification provides a chip. The chip has a first fast service interface, a second fast 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 to transmit fast messages between the MAC merging sublayer and the MAC client. The preemptible service interface is located between the MAC merging sublayer and the MAC client to transmit preemptible messages between the MAC merging sublayer and the MAC client. The MAC merging sublayer provides a MAC merging service interface to the MAC client. The MAC merging service interface is used to receive a preemption control signal sent by the MAC client, and the preemption control signal is accompanied by a preemption indication and an interface identifier; the interface identifier and the preemption indication are used to determine the target service interface that can transmit the message among the first fast service interface, the second fast service interface, and the preemptible service interface.
本说明书实施方式针对该芯片提出一种能够实现多级抢占的数据发送方法。请参阅图1c,第一快速服务接口可以记为e1MAC服务接口,第二快速服务接口可以记为e0MAC服务接口,可抢占服务接口可以记为pMAC服务接口。按照延时和抖动性能从低到高分别为pMAC、e0MAC、e1MAC。多级MAC服务接口的抢占顺序从高到低依次为:e1MAC可抢占e0MAC和pMAC;e0MAC可抢占pMAC。低优先级报文传输过程中,高优先级报文到达,则低优先级报文需要等待高优先级报文传输完成,然后低优先级报文再续传。本示例中,将相关技术中的eMAC、pMAC两级帧抢占方式升级为多级帧抢占方式。针对快速分组数据流,可以严格按照实际的多个时延等级、抖动等级需求精准实现各优先级数据流的传输,提供更细粒度的延时和抖动性能保障。示例性地,在TSN网络中需要传输时间触发流(TT流)、速率限制流(RC流)、尽力而为流(BE流)的情况下,可以配置TT流经e1MAC服务接口进行传输、RC流经e0MAC服务接口进行传输、BE流经pMAC服务接口进行传输。The implementation method of this specification proposes a data sending method that can realize multi-level preemption for the chip. Please refer to Figure 1c. The first fast service interface can be recorded as the e1MAC service interface, the second fast service interface can be recorded as the e0MAC service interface, and the preemptible service interface can be recorded as the pMAC service interface. According to the delay and jitter performance, they are pMAC, e0MAC, and e1MAC from low to high. The preemption order of the multi-level MAC service interface is from high to low: e1MAC can preempt e0MAC and pMAC; e0MAC can preempt pMAC. During the transmission of a low-priority message, a high-priority message arrives, then the low-priority message needs to wait for the high-priority message to be transmitted, and then the low-priority message is transmitted again. In this example, the two-level frame preemption method of eMAC and pMAC in the related technology is upgraded to a multi-level frame preemption method. For fast packet data streams, the transmission of data streams of each priority level can be accurately realized in strict accordance with the actual multiple delay levels and jitter level requirements, providing more fine-grained delay and jitter performance guarantees. For example, when time-triggered flow (TT flow), rate-limited flow (RC flow), and best-effort flow (BE flow) need to be transmitted in a TSN network, the TT flow can be configured to be transmitted through the e1MAC service interface, the RC flow can be configured to be transmitted through the e0MAC service interface, and the BE flow can be configured to be transmitted through the pMAC service interface.
本说明书实施方式针对该芯片提出一种能够实现多级抢占的数据发送方法的场景示例。请参阅图1d,芯片可以包括e2MAC服务接口、e1MAC服务接口、e0MAC服务接口、pMAC服务接口。按照延时和抖动性能从低到高分别为pMAC、e0MAC、e1MAC、e2MAC。多级MAC服务接口的抢占顺序从高到低依次为:e2MAC可抢占e1MAC、e0MAC和pMAC;e1MAC可抢占e0MAC和pMAC;e0MAC可抢占pMAC。The implementation method of this specification proposes a scenario example of a data transmission method that can realize multi-level preemption for the chip. Please refer to Figure 1d. The chip may include an e2MAC service interface, an e1MAC service interface, an e0MAC service interface, and a pMAC service interface. According to the delay and jitter performance, they are pMAC, e0MAC, e1MAC, and e2MAC from low to high. The preemption order of the multi-level MAC service interface is from high to low: e2MAC can preempt e1MAC, e0MAC, and pMAC; e1MAC can preempt e0MAC and pMAC; e0MAC can preempt pMAC.
在本场景示例中,在TSN网络中需要传输时间触发流(TT流)和速率限制流(RC流)。示例性地,TT流包括第一时延等级要求的TT1数据流和第二时延等级要求的TT2数据流。第一时延等级优先于第二时延等级。此时,可以配置TT1数据流经e2MAC服务接口进行传输、TT2数据流经e1MAC服务接口进行传输、RC流经e0MAC服务接口进行传输。通过本场景示例中的方法,能够在满足TT流确定性实时通信前提下,同时保证RC流的通信性能。In this scenario example, a time-triggered flow (TT flow) and a rate-limited flow (RC flow) need to be transmitted in the TSN network. Exemplarily, the TT flow includes a TT1 data flow required by the first delay level and a TT2 data flow required by the second delay level. The first delay level takes precedence over the second delay level. At this time, the TT1 data flow can be configured to be transmitted via the e2MAC service interface, the TT2 data flow can be configured to be transmitted via the e1MAC service interface, and the RC flow can be configured to be transmitted via the e0MAC service interface. Through the method in this scenario example, the communication performance of the RC flow can be guaranteed while satisfying the deterministic real-time communication of the TT flow.
在本场景示例中,在TSN网络中需要传输时间触发流(TT流)。示例性地,TT流包括第一时延等级要求的TT1 数据流、第二时延等级要求的TT2数据流、第三时延等级要求的TT3数据流。第一时延等级优先于第二时延等级,第二时延等级优先于第三时延等级。此时,可以配置TT1数据流经e2MAC服务接口进行传输、TT2数据流经e1MAC服务接口进行传输、TT3数据流经e0MAC服务接口进行传输。通过本场景示例中的方法,能够为多种TT流提供更细粒度的延时和抖动性能保障。In this scenario example, a time-triggered stream (TT stream) needs to be transmitted in the TSN network. For example, the TT stream includes TT1 required by the first latency level. Data flow, TT2 data flow required by the second delay level, and TT3 data flow required by the third delay level. The first delay level takes precedence over the second delay level, and the second delay level takes precedence over the third delay level. At this time, the TT1 data flow can be configured to be transmitted through the e2MAC service interface, the TT2 data flow can be configured to be transmitted through the e1MAC service interface, and the TT3 data flow can be configured to be transmitted through the e0MAC service interface. Through the method in this scenario example, more fine-grained delay and jitter performance guarantees can be provided for multiple TT flows.
本说明书实施方式针对该芯片提出一种能够实现多级抢占的数据发送方法的又一场景示例。请参阅图1e,芯片可以包括e7MAC服务接口、e6MAC服务接口、e5MAC服务接口、e4MAC服务接口、e3MAC服务接口、e2MAC服务接口、e1MAC服务接口、e0MAC服务接口、pMAC服务接口。按照延时和抖动性能从低到高分别为pMAC、e0MAC、e1MAC、e2MAC、e3MAC、e4MAC、e5MAC、e6MAC、e7MAC。多级MAC服务接口的抢占顺序从高到低依次为:e7MAC可抢占e6MAC、e5MAC、e4MAC、e3MAC、e2MAC、e1MAC、e0MAC和pMAC;e6MAC可抢占e5MAC、e4MAC、e3MAC、e2MAC、e1MAC、e0MAC和pMAC;e5MAC可抢占e4MAC、e3MAC、e2MAC、e1MAC、e0MAC和pMAC;e4MAC可抢占e3MAC、e2MAC、e1MAC、e0MAC和pMAC;e3MAC可抢占e2MAC、e1MAC、e0MAC和pMAC;e2MAC可抢占e1MAC、e0MAC和pMAC;e1MAC可抢占e0MAC和pMAC;e0MAC可抢占pMAC。The implementation method of this specification proposes another scenario example of a data transmission method that can realize multi-level preemption for the chip. Please refer to Figure 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. According to the delay and jitter performance from low to high, they are pMAC, e0MAC, e1MAC, e2MAC, e3MAC, e4MAC, e5MAC, e6MAC, and e7MAC. The preemption order of the multi-level MAC service interface from high to low is: e7MAC can preempt e6MAC, e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; e6MAC can preempt e5MAC, e4MAC, e3MAC, e2MAC, e1MAC, e0MAC and pMAC; 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; e0MAC can preempt pMAC.
在本场景示例中,网络设备中可以将报文分为多个优先级,例如8个优先级,或者16个优先级。本场景示例对此不做限定。本场景示例中,以网络设备将数据帧分为8个优先级,包括优先级0~7,为例进行说明。其中,优先级数值越大,表示优先级越高。网络设备中可以包括8个出端口队列,每个出端口队列用于缓存一个优先级的数据帧。请继续参阅图1e,8个出端口队列可以分别记为Q0、Q1、Q2、Q3、Q4、Q5、Q6、Q7。In this scenario example, the network device can divide the messages into multiple priorities, such as 8 priorities, or 16 priorities. This scenario example does not limit this. In this scenario example, the network device divides the data frames into 8 priorities, including priorities 0 to 7, as an example. Among them, the larger the priority value, the higher the priority. The network device may include 8 egress port queues, each of which is used to cache data frames of one priority. Please continue to refer to Figure 1e. The 8 egress port queues can be recorded as Q0, Q1, Q2, Q3, Q4, Q5, Q6, and Q7 respectively.
在本场景示例中,在TSN网络中需要传输8个优先级的数据流,分别记为Q0数据流、Q1数据流、Q2数据流、Q3数据流、Q4数据流、Q5数据流、Q6数据流、Q7数据流。In this scenario example, eight priority data streams need to be transmitted in the TSN network, which are respectively recorded 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 and sending is explained by way of example.
在通过e0MAC服务接口传输Q0数据流的过程中,接收到Q1数据流,MAC客户端发送抢断控制信号hold-1。根据抢断控制信号hold-1暂停传输Q0数据流,开始通过e1MAC服务接口发送Q1数据流。During the transmission of Q0 data stream through the e0MAC service interface, the Q1 data stream is received and the MAC client sends a preemption control signal hold-1. According to the preemption control signal hold-1, the transmission of Q0 data stream is suspended and the Q1 data stream is started to be sent through the e1MAC service interface.
在通过e1MAC服务接口传输Q1数据流的过程中,接收到Q2数据流,MAC客户端发送抢断控制信号hold-2。根据抢断控制信号hold-2暂停传输Q1数据流,开始通过e2MAC服务接口发送Q2数据流。During the transmission of Q1 data stream through the e1MAC service interface, Q2 data stream is received and the MAC client sends a hold control signal hold-2. According to the hold control signal hold-2, the transmission of Q1 data stream is suspended and Q2 data stream is started to be sent through the e2MAC service interface.
在通过e2MAC服务接口传输Q2数据流的过程中,接收到Q3数据流,MAC客户端发送抢断控制信号hold-3。根据抢断控制信号hold-3暂停传输Q2数据流,开始通过e3MAC服务接口发送Q3数据流。During the transmission of the Q2 data stream through the e2MAC service interface, the Q3 data stream is received and the MAC client sends a hold control signal hold-3. According to the hold control signal hold-3, the transmission of the Q2 data stream is suspended and the Q3 data stream is started to be sent through the e3MAC service interface.
在通过e3MAC服务接口传输Q3数据流的过程中,接收到Q4数据流,MAC客户端发送抢断控制信号hold-4。根据抢断控制信号hold-4暂停传输Q3数据流,开始通过e4MAC服务接口发送Q4数据流。During the transmission of the Q3 data stream through the e3MAC service interface, the Q4 data stream is received and the MAC client sends a hold control signal hold-4. According to the hold control signal hold-4, the transmission of the Q3 data stream is suspended and the Q4 data stream is started to be sent through the e4MAC service interface.
在通过e4MAC服务接口传输Q4数据流的过程中,接收到Q5数据流,MAC客户端发送抢断控制信号hold-5。根据抢断控制信号hold-5暂停传输Q4数据流,开始通过e5MAC服务接口发送Q5数据流。During the transmission of Q4 data stream through the e4MAC service interface, Q5 data stream is received and the MAC client sends a hold control signal hold-5. According to the hold control signal hold-5, the transmission of Q4 data stream is suspended and Q5 data stream is started to be sent through the e5MAC service interface.
在通过e5MAC服务接口传输Q5数据流的过程中,接收到Q6数据流,MAC客户端发送抢断控制信号hold-6。根据抢断控制信号hold-6暂停传输Q5数据流,开始通过e6MAC服务接口发送Q6数据流。During the transmission of the Q5 data stream through the e5MAC service interface, the Q6 data stream is received and the MAC client sends a hold control signal hold-6. According to the hold control signal hold-6, the transmission of the Q5 data stream is suspended and the Q6 data stream is started to be sent through the e6MAC service interface.
在通过e6MAC服务接口传输Q6数据流的过程中,接收到Q7数据流,MAC客户端发送抢断控制信号hold-7。根据抢断控制信号hold-7暂停传输Q6数据流,开始通过e7MAC服务接口发送Q7数据流。During the transmission of the Q6 data stream through the e6MAC service interface, the Q7 data stream is received and the MAC client sends a hold control signal hold-7. According to the hold control signal hold-7, the transmission of the Q6 data stream is suspended and the Q7 data stream is started to be sent through the e7MAC service interface.
在通过e7MAC服务接口完成传输Q7数据流后,MAC客户端发送释放控制信号release-7,根据释放控制信号release-7开始通过e6MAC服务接口继续发送Q6数据流。 After completing the transmission of the Q7 data stream through the e7MAC service interface, the MAC client sends a release control signal release-7, and starts to continue sending the Q6 data stream through the e6MAC service interface according to the release control signal release-7.
在通过e6MAC服务接口完成传输Q6数据流后,MAC客户端发送释放控制信号release-6,根据释放控制信号release-6开始通过e5MAC服务接口继续发送Q5数据流。After completing the transmission of the Q6 data stream through the e6MAC service interface, the MAC client sends a release control signal release-6, and starts to continue sending the Q5 data stream through the e5MAC service interface according to the release control signal release-6.
在通过e5MAC服务接口完成传输Q5数据流后,MAC客户端发送释放控制信号release-5,根据释放控制信号release-5开始通过e4MAC服务接口继续发送Q4数据流。After completing the transmission of the Q5 data stream through the e5MAC service interface, the MAC client sends a release control signal release-5, and starts to continue sending the Q4 data stream through the e4MAC service interface according to the release control signal release-5.
在通过e4MAC服务接口完成传输Q4数据流后,MAC客户端发送释放控制信号release-4,根据释放控制信号release-4开始通过e3MAC服务接口继续发送Q3数据流。After completing the transmission of the Q4 data stream through the e4MAC service interface, the MAC client sends a release control signal release-4, and starts to continue sending the Q3 data stream through the e3MAC service interface according to the release control signal release-4.
在通过e3MAC服务接口完成传输Q3数据流后,MAC客户端发送释放控制信号release-3,根据释放控制信号release-3开始通过e2MAC服务接口继续发送Q2数据流。After completing the transmission of the Q3 data stream through the e3MAC service interface, the MAC client sends a release control signal release-3, and starts to continue sending the Q2 data stream through the e2MAC service interface according to the release control signal release-3.
在通过e2MAC服务接口完成传输Q2数据流后,MAC客户端发送释放控制信号release-2,根据释放控制信号release-2开始通过e1MAC服务接口继续发送Q1数据流。After completing the transmission of the Q2 data stream through the e2MAC service interface, the MAC client sends a release control signal release-2, and starts to continue sending the Q1 data stream through the e1MAC service interface according to the release control signal release-2.
在通过e1MAC服务接口完成传输Q1数据流后,MAC客户端发送释放控制信号release-1,根据释放控制信号release-1开始通过e0MAC服务接口继续发送Q0数据流。After completing the transmission of the Q1 data stream through the e1MAC service interface, the MAC client sends a release control signal release-1, and starts to continue sending the Q0 data stream through the e0MAC service interface according to the release control signal release-1.
可见,在面对需用传输不同时延和抖动等级数据流的情况下,通过本场景示例中针对该芯片提出的能够实现多级抢占的数据发送方法,能够严格保障多级不同时延和抖动等级要求流量的通信性能。It can be seen that when faced with data streams that need to transmit different delays and jitter levels, the data sending method that can achieve multi-level preemption proposed for the chip in this scenario example can strictly guarantee the communication performance of traffic with multiple levels of different delays and jitter levels.
请参阅图2,本说明书实施方式提供一种数据发送方法,该方法可以包括以下步骤。Please refer to FIG. 2 . An embodiment of the present specification provides a data sending method. The method may include the following steps.
S210、在接收到第一快速报文,且正在发送第二快速报文的情况下,基于第一快速报文的第一元组信息发送第一抢断控制信号。S210. When a first fast message is received and a second fast message is being sent, a first interception control signal is sent based on the first tuple information of the first fast message.
其中,第一快速报文和第二快速报文分别属于快速分组。将TSN网络传输的数据流划分为快速分组和可抢占分组。快速分组的流量等级比可抢占分组流量等级高,快速分组数据流的到来可以中断可抢占分组数据流传输。进一步的,快速分组也可以按照数据流对时延要求等级划分为多个优先级。快速分组包括至少两个优先级的快速报文,比如第一快速报文和第二快速报文。高优先级快速报文可以中断低优先级快速报文的发送。示例性地,快速分组可以包括多个时延要求等级的TT流,快速分组可以包括至少一个时延要求等级的TT流、至少一个RC流。Among them, the first fast message and the second fast message belong to fast packets respectively. The data stream transmitted by the TSN network is divided into fast packets and preemptible packets. The traffic level of the fast packet is higher than the traffic level of the preemptible packet, and the arrival of the fast packet data stream can interrupt the transmission of the preemptible packet data stream. Furthermore, the fast packet can also be divided into multiple priorities according to the delay requirement level of the data stream. The fast packet includes fast messages of at least two priorities, such as a first fast message and a second fast message. A high-priority fast message can interrupt the sending of a low-priority fast message. Exemplarily, the fast packet may include TT streams with multiple delay requirement levels, and the fast packet may include at least one TT stream with a delay requirement level and at least one RC stream.
其中,第一抢断控制信号附带有抢断指示、与第一元组信息对应的第一接口标识。第一接口标识用于指代发送第一快速报文的快速服务接口。所述第二快速报文通过第二接口标识指代的快速服务接口正在发送。具体地,第一抢断控制信号携带有两个参数。其中一个参数为抢断指示参数,比如可以是hold,也可以是H;另一个参数为接口标识参数,比如可以是0至7中的任一个整数。示例性地,第一抢断控制信号可以记为CTL.request(hold,5)。其中,参数hold用于在相对高优先级快速报文到来的情况下,指示对正在传输的相对低优级先快速报文进行抢断,启用接口标识参数对应的快速服务接口传输相对高优先级快速报文。参数5用于指代用于传输相对高优先级快速报文的快速服务接口,即启用快速服务接口5传输相对高优先级快速报文。需要说明的是,针对相关技术中动态调整数据帧的帧类型实现的抢占方式,其控制信号仅仅携带Hold参数,通过Hold参数控制快速报文抢占。Among them, the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information. The first interface identifier is used to refer to the fast service interface that sends the first fast message. The second fast message is being sent through the fast service interface indicated by the second interface identifier. Specifically, the first interception control signal carries two parameters. One of the parameters is an interception indication parameter, such as hold or H; the other parameter is an interface identification parameter, such as any integer from 0 to 7. Exemplarily, the first interception control signal can be recorded as CTL.request (hold, 5). Among them, the parameter hold is used to indicate that the relatively low priority fast message being transmitted is intercepted when a relatively high priority fast message arrives, and the fast service interface corresponding to the interface identification parameter is enabled to transmit a relatively high priority fast message. Parameter 5 is used to refer to a fast service interface for transmitting a relatively high priority fast message, that is, to enable fast service interface 5 to transmit a relatively high priority fast message. It should be noted that for the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, its control signal only carries the Hold parameter, and the fast message preemption is controlled by the Hold parameter.
其中,第一元组信息可以四元组信息、五元组信息等任一多元组信息。第一元组信息中可以包括源IP地址(srcIP)、源MAC地址(srcMAC)、目的IP地址(destIP)、目的MAC地址(destMAC)、源端口(srcPort)、目的端口(destPort)中至少一个,第一元组信息还可以包括用户自定义字段(udf)。The first tuple information may be any tuple information such as a four-tuple information, a five-tuple information, etc. 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 the first tuple information may also include a user-defined field (udf).
在一些情况下,TSN网络传输的数据流需要满足不同的时延要求。一些相关技术中可以通过动态调整数据帧的帧类型实现的抢占方式,但是在面对需要传输多种等级时延和抖动要求的数据流时所表现出来的通信性能有待提升。另 一些相关技术中,为了保证严格时延要求数据流、固定时延要求数据流的时延需求,改变帧结构、帧抢占帧映射规则,通过在八位基础上增加一位(第九位)来完成各类优先级到各MAC独立子层的映射,定义第九位(最高位)与低八位分别组合,但是改变帧结构的数据流与标准中的帧结构不再相同,即不再具有通用性,对端可能不接收改变帧结构的数据流。因此,本说明书实施方式设计了抢断控制信号,通过抢断控制信号实现多级不同时延要求的快速报文的嵌套调度,无需改变数据帧的格式,从而可以保证通用性。具体地,可以将MAC层的高层称之为MAC客户端。MAC层可以划分为一些子层,子层可以与快速服务接口对应,也可以与可抢占服务接口对应。在通过第二接口标识指代的快速服务接口发送第二快速报文的过程中,MAC客户端接收到第一快速报文。第一快速报文对应有多元组信息,即第一元组信息。基于第一元组信息可以确定第一快速报文的时延要求等级。在基于第一元组信息确定的时延要求等级表明需要优先发送第一快速报文的情况下,可以基于第一快速报文的第一元组信息生成第一抢断控制信号,MAC客户端可以发送第一抢断控制信号。In some cases, the data stream transmitted by the TSN network needs to meet different latency requirements. Some related technologies can achieve preemption by dynamically adjusting the frame type of the data frame, but the communication performance shown when facing data streams that need to transmit multiple levels of latency and jitter requirements needs to be improved. In some related technologies, in order to ensure the delay requirements of data flows with strict delay requirements and fixed delay requirements, the frame structure and frame preemption frame mapping rules are changed, and the mapping of various priorities to each MAC independent sublayer is completed by adding one bit (ninth bit) on the basis of eight bits, and the ninth bit (highest bit) is defined to be combined with the lower eight bits respectively, but the data flow with the changed frame structure is no longer the same as the frame structure in the standard, that is, it is no longer universal, and the opposite end may not receive the data flow with the changed frame structure. Therefore, the implementation method of this specification designs a preemption control signal, and the nested scheduling of fast messages with multiple levels of different delay requirements is realized by the preemption control signal, without changing the format of the data frame, so that universality can be guaranteed. Specifically, the high layer of the MAC layer can be referred to as a MAC client. The MAC layer can be divided into some sublayers, and the sublayers can correspond to the fast service interface or the preemptible service interface. In the process of sending the second fast message through the fast service interface indicated by the second interface identifier, the MAC client receives the first fast message. The first fast message corresponds to a multi-tuple information, that is, the first tuple information. The delay requirement level of the first fast message can be determined based on the first tuple information. When the delay requirement level determined based on the first tuple information indicates that the first fast message needs to be sent first, a first preemption control signal can be generated based on the first tuple information of the first fast message, and the MAC client can send the first preemption control signal.
S220、根据抢断指示以及第一接口标识,控制第二快速报文通过第二接口标识指代的快速服务接口暂停发送,并控制第一快速报文通过第一接口标识指代的快速服务接口开始发送。S220. According to the interception indication and the first interface identifier, control the second fast message to be suspended from being sent through the fast service interface indicated by the second interface identifier, and control the first fast message to start being sent through the fast service interface indicated by the first interface identifier.
具体地,基于第一抢断控制信号携带的抢断指示,表明需要传输第一快速报文,则控制第二快速报文暂停发送。基于第一抢断控制信号携带的第一接口标识可以指定发送第一快速报文的快速服务接口,因此可以控制第一快速报文送入第一接口标识指代的快速服务接口,通过第一接口标识指代的快速服务接口开始优先发送第一快速报文。Specifically, based on the interception indication carried by the first interception control signal, indicating that the first fast message needs to be transmitted, the second fast message is controlled to be suspended from being sent. Based on the first interface identifier carried by the first interception control signal, a fast service interface for sending the first fast message can be specified, so the first fast message can be controlled to be sent to the fast service interface indicated by the first interface identifier, and the first fast message is preferentially sent through the fast service interface indicated by the first interface identifier.
需要说明的是,第二接口标识指代的快速服务接口,即用于发送第二快速报文的服务接口,也属于快速服务接口。但是基于本说明书实施方式提供的多级嵌套帧抢占机制,在面对多级不同时延要求的快速报文时,可以将不同等级时延要求的不同快速报文通过不同的快速服务接口进行发送。不同的快速服务接口具有不同的接口标识,基于抢断控制信号中携带的接口标识,暂停发送被抢占的时延要求相对低的快速报文,优先发送时延要求相对高的快速报文。It should be noted that the fast service interface referred to by the second interface identifier, that is, the service interface used to send the second fast message, also belongs to the fast service interface. However, based on the multi-level nested frame preemption mechanism provided in the implementation mode of this specification, when faced with fast messages with multiple levels of different delay requirements, different fast messages with different levels of delay requirements can be sent through different fast service interfaces. Different fast service interfaces have different interface identifiers. Based on the interface identifier carried in the preemption control signal, the sending of the preempted fast message with relatively low delay requirements is suspended, and the sending of the fast message with relatively high delay requirements is given priority.
上述数据发送方法中,在接收到第一快速报文,且正在通过第二接口标识指代的快速服务接口发送第二快速报文的情况下,基于第一快速报文的第一元组信息发送第一抢断控制信号;第一抢断控制信号附带有抢断指示、与第一元组信息对应的第一接口标识;从而根据抢断指示以及第一接口标识,控制第二快速报文第二接口标识指代的快速服务接口暂停发送,并控制第一快速报文通过第一接口标识指代的快速服务接口开始发送。通过针对不同等级时延和抖动要求设计多个快速服务接口、携带抢断指示以及接口标识的抢断控制信号,无需改变帧结构,与标准所定义的帧结构一致,不仅减少对端不能够接收数据流的几率,提升其通用性,而且实现在传输多种等级时延和抖动要求的数据流场景中所要求的通信性能。In the above data sending method, 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 interception control signal is sent based on the first tuple information of the first fast message; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; thereby, according to the interception 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 multiple fast service interfaces according to different levels of delay and jitter requirements, and interception control signals carrying interception indications and interface identifiers, there is no need to change the frame structure, which is consistent with the frame structure defined by the standard, not only reducing the probability that the other end cannot receive the data stream and improving its versatility, but also achieving the communication performance required in the data stream scenario with multiple levels of delay and jitter requirements.
在一些实施方式中,第一快速报文的优先级高于第二快速报文的优先级。In some implementations, the priority of the first fast message is higher than the priority of the second fast message.
在一些情况下,网络设备可以将数据流分为多个优先级,比如8个。将优先级为0~3的数据流划分至可抢占分组,优先级为4~7的数据流划分至快速分组。快速分组中的优先级4-7是不能够相互抢断的,可见简单地将数据流划分为快速分组和可抢占分组以及可抢占分组可以抢断快速分组,并不能实现实际场景中快速分组中优先级4-7快速报文需要满足不同的时延需求。因此,本说明书实施方式中进一步针对快速分组中的不同时延需求的快速报文配置不同的优先级。其中,第一快速报文的优先级高于第二快速报文的优先级。In some cases, the network device can divide the data stream into multiple priorities, such as 8. Data streams with priorities 0 to 3 are divided into preemptible packets, and data streams with priorities 4 to 7 are divided into fast packets. Priorities 4-7 in the fast packets cannot preempt each other. It can be seen that simply dividing the data streams into fast packets and preemptible packets and preemptible packets can preempt fast packets cannot achieve the need for fast messages with priorities 4-7 in the fast packets in actual scenarios to meet different latency requirements. Therefore, in the implementation manner of this specification, different priorities are further configured for fast messages with different latency requirements in the fast packets. Among them, the priority of the first fast message is higher than the priority of the second fast message.
在一些实施方式中,请参阅图3,该数据发送方法可以包括以下步骤。In some implementations, referring to FIG. 3 , the data sending method may include the following steps.
S310、在第一快速报文发送完毕的情况下,发送第一释放控制信号。其中,第一释放控制信号附带有释放指示、第一接口标识。 S310: When the first fast message is sent, send a first release control signal, wherein the first release control signal is accompanied by a release indication and a first interface identifier.
S320、根据释放指示以及第一接口标识,控制第二快速报文通过第二接口标识指代的快速服务接口开始继续发送。S320: According to the release indication and the first interface identifier, control the second fast message to continue to be sent through the fast service interface indicated by the second interface identifier.
其中,第一释放控制信号附带有释放指示、第一接口标识。具体地,第一释放控制信号携带有两个参数。其中一个参数为释放指示参数,比如可以是release,也可以是R;另一个参数为接口标识参数,比如可以是0至7中的任一个整数。示例性地,第一释放控制信号可以记为CTL.request(release,5)。其中,参数release用于在相对高优先级快速报文完成发送的情况下,指示对正在暂停的相对低优级先快速报文继续传输,启用对应的快速服务接口传输相对低优先级快速报文。参数5用于指代用于传输相对高优先级快速报文的快速服务接口,即释放快速服务接口5,以传输相对低优先级快速报文。需要说明的是,针对相关技术中动态调整数据帧的帧类型实现的抢占方式,其控制信号仅仅携带release参数,通过release参数控制可抢占报文继续传输。Among them, the first release control signal is accompanied by a release indication and a first interface identifier. Specifically, the first release control signal carries two parameters. One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7. Exemplarily, the first release control signal can be recorded as CTL.request(release, 5). Among them, the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled to transmit the relatively low priority fast message. Parameter 5 is used to refer to the fast service interface used to transmit the relatively high priority fast message, that is, to release the fast service interface 5 to transmit the relatively low priority fast message. It should be noted that for the preemption method implemented by dynamically adjusting the frame type of the data frame in the related art, its control signal only carries the release parameter, and the release parameter is used to control the continued transmission of the preemptible message.
在一些情况下,在通过第二接口标识指代的快速服务接口发送第二快速报文的过程中,第一快速报文抢断了第二快速报文的发送。在第一快速报文发送完毕的情况下,需要继续发送第二快速报文。具体地,第一快速报文抢断了第二快速报文后,第一快速报文发送完毕的情况下,发送第一释放控制信号。基于第一释放控制信号携带的释放指示,表明完成第一快速报文的传输,需要传输第二快速报文,则开始通过第二接口标识指代的快速服务接口第二快速报文继续发送。基于第一释放控制信号携带的第一接口标识可以释放发送第一快速报文的快速服务接口,因此可以将第二快速报文送入其对应的快速服务接口,控制第二接口标识指代的快速服务接口开始继续发送第二快速报文。In some cases, during the process of sending the second fast message through the fast service interface indicated by the second interface identifier, the first fast message interrupts the sending of the second fast message. When the first fast message is sent, it is necessary to continue to send the second fast message. Specifically, after the first fast message interrupts the second fast message, when the first fast message is sent, a first release control signal is sent. Based on the release indication carried by the first release control signal, it is indicated that the transmission of the first fast message is completed and the second fast message needs to be transmitted, then the second fast message is continued to be sent through the fast service interface indicated by the second interface identifier. Based on the first interface identifier carried by the first release control signal, the fast service interface that sends the first fast message can be released, so the second fast message can be sent to its corresponding fast service interface, and the fast service interface indicated by the second interface identifier is controlled to start continuing to send the second fast message.
在一些实施方式中,该数据发送方法可以包括以下步骤:正在通过所述第二接口标识指代的快速服务接口继续发送第二快速报文的过程中,接收到待发送的可抢占报文的情况下,基于可抢占报文的第二元组信息,控制第二快速报文继续发送。In some embodiments, the data sending method may include the following steps: while continuing to send a second fast message through the fast service interface referred to by the second interface identifier, when a preemptible message to be sent is received, controlling the continued sending of the second fast message based on the second tuple information of the preemptible message.
其中,可抢占报文属于可抢占分组。可抢占分组中的可抢占报文可以包括尽力而为业务对应的数据流。属于可抢占分组的可抢占报文的优先级低于快速分组中的各快速报文的优先级。因此,在发送第二快速报文的过程中,若接收到待发送的可抢占报文,由于可抢占报文的优先级低于第二快速报文的优先级,即第二快速报文需要优先传输,则继续发送第二快速报文。而可抢占报文需要等待优先级较高的报文完成发送释放对应的服务接口后开始发送。Among them, the preemptible message belongs to the preemptible group. The preemptible message in the preemptible group may include the data flow corresponding to the best effort service. The priority of the preemptible message belonging to the preemptible group is lower than the priority of each fast message in the fast group. Therefore, in the process of sending the second fast message, if a preemptible message to be sent is received, since the priority of the preemptible message is lower than the priority of the second fast message, that is, the second fast message needs to be transmitted first, the second fast message will continue to be sent. The preemptible message needs to wait for the message with a higher priority to complete the sending and release the corresponding service interface before it can be sent.
具体地,无论是在初次发送第二快速报文的过程中,还是在继续发送第二快速报文的过程中,若可抢占报文来到,可抢占报文对应有第二元组信息,第二元组信息包括源IP地址(srcIP)、源MAC地址(srcMAC)、目的IP地址(destIP)、目的MAC地址(destMAC)、源端口(srcPort)、目的端口(destPort)中至少一个,第二元组信息还可以包括用户自定义字段(udf)。基于可抢占报文的第二元组信息,确定可抢占报文的优先级低于第二快速报文的优先级。因此,可抢占报文不能够抢断第二快速报文的发送,控制第二快速报文继续发送。Specifically, whether in the process of sending the second fast message for the first time or in the process of continuing to send the second fast message, if a preemptible message arrives, the preemptible message corresponds to the second tuple information, and the second tuple information includes at least one of the source IP address (srcIP), source MAC address (srcMAC), destination IP address (destIP), destination MAC address (destMAC), source port (srcPort), and destination port (destPort), and the second tuple information may also include a user-defined field (udf). Based on the second tuple information of the preemptible message, it is determined that the priority of the preemptible message is lower than the priority of the second fast message. Therefore, the preemptible message cannot interrupt the sending of the second fast message, and the second fast message is controlled to continue to be sent.
在一些实施方式中,请参阅图4,该数据发送方法可以包括以下步骤。In some implementations, referring to FIG. 4 , the data sending method may include the following steps.
S410、在第二快速报文发送完毕的情况下,发送第二释放控制信号。S410: When the second fast message is sent completely, send a second release control signal.
S420、根据释放指示以及第二接口标识,控制可抢占报文开始发送。S420: Control the preemptible message to start sending according to the release indication and the second interface identifier.
其中,第二释放控制信号附带有释放指示、第二接口标识。其中,第二接口标识用于指代发送第二快速报文的快速服务接口。第二释放控制信号携带有两个参数。其中一个参数为释放指示参数,比如可以是release,也可以是R;另一个参数为接口标识参数,比如可以是0至7中的任一个整数。示例性地,第二释放控制信号可以记为CTL.request(release,4)。其中,参数release用于在相对高优先级快速报文完成发送的情况下,指示对正在暂停的相对低优级先快速报文继续传输,启用对应的快速服务接口传输相对低优先级快速报文。参数4用于指代用于传输相对高优先级快速报文的快速服务接口,即释放快速服务接口4,以传输相对低优先级快速报文。 Among them, the second release control signal is accompanied by a release indication and a second interface identifier. Among them, the second interface identifier is used to refer to the fast service interface for sending the second fast message. The second release control signal carries two parameters. One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7. Exemplarily, the second release control signal can be recorded as CTL.request(release, 4). Among them, the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled 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 message, that is, to release the fast service interface 4 to transmit the relatively low priority fast message.
在一些情况下,在发送第二快速报文的过程中,接收到了可抢占报文。在第二快速报文发送完毕的情况下,需要开始发送可抢占报文。具体地,第一快速报文抢断了第二快速报文后,第一快速报文发送完毕的情况下,发送第一释放控制信号。基于第一释放控制信号携带的释放指示,表明完成第一快速报文的传输,需要传输第二快速报文,则开始第二快速报文继续发送。基于第一释放控制信号携带的第一接口标识可以释放发送第一快速报文的快速服务接口,因此可以将第二快速报文送入第二接口标识对应的快速服务接口,控制第二接口标识对应的快速服务接口开始继续发送第二快速报文。In some cases, a preemptible message is received during the process of sending the second fast message. When the second fast message has been sent, it is necessary to start sending the preemptible message. Specifically, after the first fast message preempts the second fast message, a first release control signal is sent when the first fast message has been sent. Based on the release indication carried by the first release control signal, it is indicated that the transmission of the first fast message is completed and the second fast message needs to be transmitted, and then the second fast message is started to continue to be sent. Based on the first interface identifier carried by the first release control signal, the fast service interface that sends the first fast message can be released, so 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 continuing to send the second fast message.
在发送第二快速报文的过程中,接收到有可抢占报文。由于可抢占报文的优先级低于第二快速报文,因此在第二快速报文发送完毕的情况下,发送第二释放控制信号。基于第二释放控制信号携带的释放指示,表明完成第二快速报文的传输,需要传输可抢占速报文,则开始发送可抢占报文。基于第二释放控制信号携带的第二接口标识可以释放发送第二快速报文的快速服务接口,因此可以将可抢占报文送入其对应的可抢占服务接口,控制对应的可抢占服务接口开始发送可抢占报文。In the process of sending the second fast message, a preemptible message is received. Since the priority of the preemptible message is lower than that of the second fast message, a second release control signal is sent when the second fast message is sent. Based on the release indication carried by the second release control signal, it is indicated that the transmission of the second fast message is completed and the preemptible fast message needs to be transmitted, and then the preemptible message is started to be sent. Based on the second interface identifier carried by the second release control signal, the fast service interface for sending the second fast message can be released, so the preemptible message can be sent to its corresponding preemptible service interface, 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 message, if a fast message of any priority in the fast group is received, the fast message can preempt the preemptible message, and when the fast message is sent, a release control signal is sent. Based on the release control signal, the continued sending of the preemptible message can be controlled.
在一些实施方式中,该数据发送方法可以包括以下步骤:正在发送第二快速报文的过程中,接收到待发送的第三快速报文的情况下,基于第三快速报文的第三元组信息,控制第二快速报文继续发送。In some implementations, the data sending method may include the following steps: when a third fast message to be sent is received during the process of sending the second fast message, controlling the second fast message to continue sending based on the third tuple information of the third fast message.
其中,第三快速报文属于快速分组,且第二快速报文的优先级高于第三快速报文的优先级。第三元组信息包括源IP地址(srcIP)、源MAC地址(srcMAC)、目的IP地址(destIP)、目的MAC地址(destMAC)、源端口(srcPort)、目的端口(destPort)中至少一个,第三元组信息还可以包括用户自定义字段(udf)。基于第三快速报文的第三元组信息,确定第三快速报文的优先级低于第二快速报文的优先级。因此,第三快速报文不能够抢断第二快速报文的发送,控制第二快速报文继续发送。Wherein, the third fast message belongs to fast packet, and the priority of the second fast message is higher than the priority of the third fast message. The third tuple information includes at least one of the source IP address (srcIP), source MAC address (srcMAC), destination IP address (destIP), destination MAC address (destMAC), source port (srcPort), and destination port (destPort), and the third tuple information may also include a user-defined field (udf). Based on the third tuple information of the third fast message, it is determined that the priority of the third fast message is lower than the priority of the second fast message. Therefore, the third fast message cannot intercept the sending of the second fast message, and controls the second fast message to continue sending.
具体地,无论是在初次发送第二快速报文的过程中,还是在继续发送第二快速报文的过程中,若第三快速报文来到,第三快速报文对应有第三元组信息,基于第三快速报文的第三元组信息,可以确定第三快速报文的优先级低于第二快速报文的优先级。因此,第三快速报文不能够抢断第二快速报文的发送,控制第二快速报文继续发送。Specifically, whether in the process of initially sending the second fast message or in the process of continuing to send the second fast message, if the third fast message arrives, the third fast message corresponds to the third tuple information, and based on the third tuple information of the third fast message, it can be determined that the priority of the third fast message is lower than the priority of the second fast message. Therefore, the third fast message cannot preempt the sending of the second fast message and control the second fast message to continue sending.
在一些实施方式中,请参阅图5,该数据发送方法可以包括以下步骤。In some implementations, referring to FIG. 5 , the data sending method may include the following steps.
S510、在第二快速报文发送完毕的情况下,发送第二释放控制信号。S510: When the second fast message is sent completely, send a second release control signal.
S520、根据释放指示以及第二接口标识,控制第三快速报文通过第三接口标识指代的快速服务接口开始发送。S520: According to the release indication and the second interface identifier, control the third fast message to start sending through the fast service interface indicated by the third interface identifier.
其中,第二释放控制信号附带有释放指示、第二接口标识;其中,第二接口标识用于指代发送第二快速报文的快速服务接口。第二释放控制信号携带有两个参数。其中一个参数为释放指示参数,比如可以是release,也可以是R;另一个参数为接口标识参数,比如可以是0至7中的任一个整数。示例性地,第二释放控制信号可以记为CTL.request(release,4)。其中,参数release用于在相对高优先级快速报文完成发送的情况下,指示对正在暂停的相对低优级先快速报文继续传输,启用对应的快速服务接口传输相对低优先级快速报文。参数4用于指代用于传输相对高优先级快速报文的快速服务接口,即释放快速服务接口4,以传输相对低优先级快速报文。Among them, the second release control signal is accompanied by a release indication and a second interface identifier; wherein the second interface identifier is used to refer to the fast service interface for sending the second fast message. The second release control signal carries two parameters. One of the parameters is a release indication parameter, such as release or R; the other parameter is an interface identification parameter, such as any integer from 0 to 7. Exemplarily, the second release control signal can be recorded as CTL.request(release, 4). Among them, the parameter release is used to indicate that the relatively low priority fast message that is being suspended continues to be transmitted when the relatively high priority fast message is sent, and the corresponding fast service interface is enabled 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 message, that is, to release the fast service interface 4 to transmit the relatively low priority fast message.
在一些情况下,在发送第二快速报文的过程中,接收到了第三快速报文。在第二快速报文发送完毕的情况下,需要开始发送第三快速报文。具体地,第一快速报文抢断了第二快速报文后,第一快速报文发送完毕的情况下,发送第 一释放控制信号。基于第一释放控制信号携带的释放指示,表明完成第一快速报文的传输,需要传输第二快速报文,则开始第二快速报文继续发送。基于第一释放控制信号携带的第一接口标识可以释放发送第一快速报文的快速服务接口,因此可以将第二快速报文送入第二接口标识对应的快速服务接口,控制第二接口标识指代的快速服务接口开始继续发送第二快速报文。In some cases, a third fast message is received during the process of sending the second fast message. When the second fast message is sent, the third fast message needs to be sent. Specifically, after the first fast message interrupts the second fast message, the third fast message needs to be sent when the first fast message is sent. A release control signal. Based on the release indication carried by the first release control signal, it indicates that the transmission of the first fast message is completed and the second fast message needs to be transmitted, so the second fast message starts to be sent. Based on the first interface identifier carried by the first release control signal, the fast service interface that sent the first fast message can be released, so the second fast message can be sent to the fast service interface corresponding to the second interface identifier, and the fast service interface referred to by the second interface identifier is controlled to start sending the second fast message.
在发送第二快速报文的过程中,接收到有第三快速报文。由于第三快速报文的优先级低于第二快速报文,因此在第二快速报文发送完毕的情况下,发送第二释放控制信号。基于第二释放控制信号携带的释放指示,表明完成第二快速报文的传输,需要传输第三快速报文,则开始发送第三快速报文。基于第二释放控制信号携带的第二接口标识可以释放发送第二快速报文的快速服务接口,因此可以将第三快速报文送入其对应的快速服务接口(第三接口标识指代的快速服务接口),控制第三接口标识指代的快速服务接口开始发送第三快速报文。During the process of sending the second fast message, a third fast message is received. Since the priority of the third fast message is lower than that of the second fast message, a second release control signal is sent when the second fast message is sent. Based on the release indication carried by the second release control signal, it is indicated that the transmission of the second fast message is completed and the third fast message needs to be transmitted, and then the third fast message is started to be sent. Based on the second interface identifier carried by the second release control signal, the fast service interface for sending the second fast message can be released, so the third fast message can be sent to its corresponding fast service interface (the fast service interface referred to by the third interface identifier), and the fast service interface referred to by the third interface identifier is controlled to start sending the third fast message.
在一些实施方式中,请参阅图6,该数据发送方法可以包括以下步骤。In some implementations, referring to FIG. 6 , the data sending method may include the following steps.
S610、正在发送第一快速报文的过程中,接收到待发送的第四快速报文的情况下,基于第四快速报文的第四元组信息发送第二抢断控制信号。S610: When a fourth fast message to be sent is received during the process of sending a first fast message, a second interception control signal is sent based on fourth tuple information of the fourth fast message.
S620、根据抢断指示以及第四接口标识,控制第一快速报文暂停发送,并控制第四快速报文通过第四接口标识指代的快速服务接口开始发送。S620. According to the interception indication and the fourth interface identifier, control the first fast message to be suspended from being sent, and control the fourth fast message to start being sent through the fast service interface indicated by the fourth interface identifier.
其中,第四快速报文属于快速分组,且第四快速报文的优先级高于第一快速报文的优先级。第二抢断控制信号附带有抢断指示、与第四元组信息对应的第四接口标识。其中,第四接口标识用于指代发送第四快速报文的快速服务接口。The fourth fast message belongs to a fast group, and the priority of the fourth fast message is higher than the priority of the first fast message. The second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information. The fourth interface identifier is used to refer to a fast service interface for sending the fourth fast message.
其中,第四元组信息包括源IP地址(srcIP)、源MAC地址(srcMAC)、目的IP地址(destIP)、目的MAC地址(destMAC)、源端口(srcPort)、目的端口(destPort)中至少一个,第四元组信息还可以包括用户自定义字段(udf)。基于第四快速的第四元组信息,确定第四快速的优先级高于第一快速报文的优先级。因此,第四快速报文能够抢断第一快速报文的发送,控制第四快速报文开始发送。Among them, the fourth tuple information includes at least one of the source IP address (srcIP), the source MAC address (srcMAC), the destination IP address (destIP), the destination MAC address (destMAC), the source port (srcPort), and the destination port (destPort), and the fourth tuple information may also include a user-defined field (udf). Based on the fourth tuple information of the fourth fast, it is determined that the priority of the fourth fast is higher than the priority of the first fast message. Therefore, the fourth fast message can interrupt the sending of the first fast message and control the fourth fast message to start sending.
具体地,在正在发送第二快速报文的过程中,接收到第一快速报文,基于第一快速报文的第一元组信息发送第一抢断控制信号。第一抢断控制信号附带有抢断指示、与第一元组信息对应的第一接口标识。根据抢断指示以及第一接口标识,控制第二快速报文暂停发送,并控制第一快速报文通过第一接口标识指代的快速服务接口开始发送。Specifically, during the process of sending the second fast message, the first fast message is received, and a first interception control signal is sent based on the first tuple information of the first fast message. The first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information. According to the interception indication and the first interface identifier, the second fast message is controlled to be suspended from being sent, and the first fast message is controlled to start being sent through the fast service interface indicated by the first interface identifier.
进一步的,在发送第一快速报文的过程中,接收到待发送的第四快速报文。基于第四快速报文的第四元组信息,确定第四快速的优先级,且第四快速的优先级高于第一快速报文的优先级,从而发送第二抢断控制信号。第二抢断控制信号附带有抢断指示、与第四元组信息对应的第四接口标识。Furthermore, in the process of sending the first fast message, a fourth fast message to be sent is received. Based on the fourth tuple information of the fourth fast message, the priority of the fourth fast message is determined, and the priority of the fourth fast message is higher than the priority of the first fast message, so as to send a second interception control signal. The second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information.
基于第二抢断控制信号携带的抢断指示,表明需要传输第四快速报文,则控制第一快速报文暂停发送。基于第二抢断控制信号携带的第四接口标识可以指定发送第四快速报文的快速服务接口,因此可以控制第四快速报文送入第四接口标识指代的快速服务接口,通过第四接口标识指代的快速服务接口开始优先发送第四快速报文。Based on the interception indication carried by the second interception control signal, indicating that the fourth fast message needs to be transmitted, the first fast message is controlled to be suspended. Based on the fourth interface identifier carried by the second interception control signal, a fast service interface for sending the fourth fast message can be specified, so the fourth fast message can be controlled to be sent to the fast service interface indicated by the fourth interface identifier, and the fourth fast message is preferentially sent through the fast service interface indicated by the fourth interface identifier.
在一些实施方式中,第一快速报文是对队列中的数据流进行封装得到的。在接收到第一快速报文之前,该数据发送方法可以包括以下步骤:获取数据流;其中,数据流对应有第一元组信息。将数据流加入到第一元组信息所对应的队列中;其中,队列对应有不同的优先级;队列所对应的优先级与快速服务接口的接口标识对应。In some implementations, the first fast message is obtained by encapsulating a data stream in a queue. Before receiving the first fast message, the data sending method may include the following steps: obtaining a data stream; wherein the data stream corresponds to first tuple information. Adding the data stream to a queue corresponding to the first tuple information; wherein the queues correspond to different priorities; and the priorities corresponding to the queues correspond to the interface identifiers of the fast service interfaces.
具体地,第一元组信息中可以包括源IP地址(srcIP)、源MAC地址(srcMAC)、目的IP地址(destIP)、目的MAC地址(destMAC)、源端口(srcPort)、目的端口(destPort)中至少一个,第一元组信息还可以包括用户自定义 字段(udf)。基于数据流对应的第一元组信息确定需要对应的队列,讲该数据流加入至第一元组信息所对应的队列。不同的队列具有不同的优先级,队列所对应的优先级与快速服务接口的接口标识对应。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). The first tuple information may also include a user-defined Field (udf). Determine the corresponding queue based on the first tuple information corresponding to the data flow, and add 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 fast service interface.
需要说明的是,本说明书实施方式中的数据流的优先级与队列是绑定的。基于数据流对应的多元组信息确定数据流的优先级,从而可以将数据流加入对应的队列中。MAC客户端可以发送抢断控制信号,抢断信号携带的接口标识与数据流所在的队列是相对应的,即MAC客户端告知下层哪个队列中的数据需要发送。It should be noted that the priority of the data flow in the implementation mode of this specification is bound to the queue. The priority of the data flow is determined based on the multi-tuple information corresponding to the data flow, so that the data flow can be added to the corresponding queue. The MAC client can send a preemption control signal, and the interface identifier carried by the preemption signal corresponds to the queue where the data flow is located, that is, the MAC client tells the lower layer which queue the data needs to be sent.
在一些实施方式中,将数据流加入到第一元组信息所对应的队列中,可以包括:根据第一元组信息对数据流进行模式匹配,确定数据流的数据标识;将数据流加入到数据流的数据标识所对应的队列中。In some implementations, 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 tuple information to determine the data identifier of the data stream; and adding the data stream to the queue corresponding to the data identifier of the data stream.
具体地,已经预先设置了数据标识与元组信息之间的映射策略,在数据流到达之后,利用数据流的第一元组信息对数据流进行模式匹配,根据匹配结果为数据流增加数据标识(Tag)。进一步的,已经预先设置有数据标识与队列的对应关系,从而可以基于数据流的数据标识进行队列映射,根据数据流的数据标识将数据流加入对应的队列中。Specifically, a mapping strategy between data identifiers and tuple information has been pre-set. After the data stream arrives, the first tuple information of the data stream is used to perform pattern matching on the data stream, and a data identifier (Tag) is added to the data stream according to the matching result. Further, a corresponding relationship between data identifiers and queues has been pre-set, so that queue mapping can be performed based on the data identifier of the data stream, and the data stream can be added to the corresponding queue according to the data identifier of the data stream.
在一些实施方式中,该数据发送方法还可以包括:基于队列对应的优先级,对数据流进行封装,得到第一快速报文。其中,第一快速报文的指定组成部分附带有第一快速报文的优先级。根据第一快速报文的指定组成部分附带的优先级,将第一快速报文加入目标缓存模块中。其中,目标缓存模块是针对第一接口标识所指代的快速服务接口设置的。In some embodiments, the data transmission method may further include: encapsulating the data stream based on the priority corresponding to the queue to obtain a first fast message. The designated component of the first fast message is accompanied by the priority of the first fast message. According to the priority attached to the designated component of the first fast message, the first fast message is added to the target cache module. The target cache module is set for the fast service interface indicated by the first interface identifier.
其中,快速报文具有固定的结构。指定组成部分可以是快速报文中的任意结构部分。针对任一队列,按照该任一队列对应的优先级对该任一队列中的数据流进行封装,将任一队列对应的优先级封装在快速报文的指定组成部分,得到第一快速报文,以使第一快速报文的指定组成部分附带有第一快速报文的优先级。进一步的,第一快速报文是对该任一队列中的数据列进行封装得到的,则队列的优先级与快速报文的优先级绑定,快速报文的优先级决定了发送该快速报文的快速服务接口。不同的快速服务接口对应有不同的缓存模块,缓存模块用于缓存需要对应快速服务接口发送的快速报文。因此,若需要发送第一快速报文,则将第一快速报文加入针对第一接口标识所指代的快速服务接口设置的目标缓存模块中。Among them, the fast message has a fixed structure. The designated component can be any structural part in the fast message. For any queue, the data flow in any queue is encapsulated according to the priority corresponding to the any queue, and the priority corresponding to the any queue is encapsulated in the designated component of the fast message to obtain a first fast message, so that the designated component of the first fast message is accompanied by the priority of the first fast message. Further, the first fast message is obtained by encapsulating the data column in the any queue, then the priority of the queue is bound to the priority of the fast message, and the priority of the fast message determines the fast service interface that sends the fast message. Different fast service interfaces correspond to different cache modules, and the cache module is used to cache the fast messages that need to be sent by the corresponding fast service interface. Therefore, if it is necessary to send the first fast message, the first fast message is added to the target cache module set for the fast service interface indicated by the first interface identifier.
在一些实施方式中,基于队列对应的优先级,对数据流进行封装,得到第一快速报文,包括:基于队列对应的优先级,对数据流封装对应的帧前导码,得到第一快速报文。In some implementations, encapsulating a data stream based on a priority corresponding to a queue to obtain a first fast message includes: encapsulating a corresponding frame preamble code for the data stream based on a priority corresponding to the queue to obtain a first fast message.
具体地,通过基于队列对应的优先级对应的帧前导码,得到第一快速报文。从而可以利用第一快速报文的帧前导码确定第一快速报文的优先级。需要说明的是,利用帧前导码进行不同优先级的区分只是实施例的一种,实际实施包含但不限于此。Specifically, the first fast message is obtained by using the frame preamble corresponding to the priority corresponding to the queue. Thus, the priority of the first fast message can be determined using the frame preamble of the first fast message. It should be noted that using the frame preamble to distinguish different priorities is only one embodiment, and the actual implementation includes but is not limited to this.
在一些实施方式中,暂停发送第二快速报文,可以包括:在判定第二快速报文的发送情况满足抢断条件的情况下,暂停发送第二快速报文。In some implementations, suspending sending the second fast message may include: suspending sending the second fast message when it is determined that the sending status of the second fast message satisfies the preemption condition.
具体地,MAC层还包括MAC合并子层。在发送第二快速报文的过程中,接收到第一快速报文。第一快速报文的优先级高于第二快速报文,第一快速报文可以抢断第二快速报文,但是需要进一步判断是否满足抢断条件。抢断条件可以是:低优先级报文至少剩余64字节数据未传输且至少已经传输了60字节数据。MAC合并子层判断第二快速报文的发送情况是否满足抢断条件,若满足,则表明可以抢断第二快速报文,从而暂停发送第二快速报文。Specifically, the MAC layer also includes a MAC merging sublayer. During the process of sending the second fast message, the first fast message is received. The priority of the first fast message is higher than that of the second fast message. The first fast message can preempt the second fast message, but it is necessary to further determine whether the preemption condition is met. The preemption condition can be: at least 64 bytes of data remain untransmitted in the low-priority message and at least 60 bytes of data have been transmitted. The MAC merging sublayer determines whether the sending of the second fast message meets the preemption condition. If so, it indicates that the second fast message can be preempted, thereby suspending the sending of the second fast message.
在一些实施方式中,该数据发送方法还可以包括:记录第二快速报文被抢断的断点。其中,断点用于标记第二快速报文已经完成发送的部分。In some implementations, the data transmission method may further include: recording a breakpoint where the second fast message is interrupted, wherein the breakpoint is used to mark the part of the second fast message that has been completed.
具体地,MAC合并子层还可以用于记录第二快速报文被抢断的断点。在第一快速报文完成传输的情况下,可以以记录的断点为参考,对第二快速报文进行续传。 Specifically, the MAC merging sublayer may also be used to record the breakpoint at which the second fast message is intercepted. When the first fast message is completely transmitted, the second fast message may be continued to be transmitted with reference to the recorded breakpoint.
在一些实施方式中,针对发送第一快速报文的快速服务接口、发送第二快速报文的快速服务接口,分别设置有不同的缓存模块。快速分组的报文包括时间触发业务流和/或速率受限业务流。示例性地,快速分组的报文可以包括多个不同延时等级的时间触发业务流。示例性地,快速分组的报文可以包括多个不同延时等级的时间触发业务流,以及至少一个速率受限业务流。示例性地,快速分组的报文可以包括多个不同延时等级的速率受限业务流。In some embodiments, different cache modules are provided for a fast service interface for sending a first fast message and a fast service interface for sending a second fast message. The fast packetized message includes a time-triggered service flow and/or a rate-limited service flow. Exemplarily, the fast packetized message may include a plurality of time-triggered service flows of different delay levels. Exemplarily, the fast packetized message may include a plurality of time-triggered service flows of different delay levels, and at least one rate-limited service flow. Exemplarily, the fast packetized message may include a plurality of rate-limited service flows of different delay levels.
在一些实施方式中,针对发送可抢占报文的可抢占服务接口设置有缓存模块;可抢占报文包括尽力而为业务流。In some implementations, a cache module is provided for a preemptible service interface that sends preemptible messages; the preemptible messages include best-effort service flows.
在一些情况下,虽然可以采用eMAC、pMAC两级抢占机制,但是当数据帧的优先级超过两个时,无法保证高优先级的数据帧优先传输,所以不仅多个优先级的快速报文需要多级抢占机制,而且多个优先级的可抢占报文同样需要多级抢占机制,因此,本实施方式中可抢占的服务接口也可以设置为多个。不同的可抢占的服务接口可以分别对应不同优先级的可抢占报文。示例性地,快速服务接口的数量可以是4个,4个快速服务接口可以用于对应传输4个优先级的快速报文。可抢占服务接口的数量可以是4个。4个可抢占服务接口可以用于对应传输4个优先级的快速报文可抢占报文。示例性地,快速服务接口的数量可以是6个,可抢占服务接口的数量可以是2个。在此不再赘述。In some cases, although the two-level preemption mechanism of eMAC and pMAC can be adopted, when the priority of the data frame exceeds two, it cannot be guaranteed that the data frame with a high priority is transmitted first. Therefore, not only fast messages of multiple priorities require a multi-level preemption mechanism, but also preemptible messages of multiple priorities also require a multi-level preemption mechanism. Therefore, in this embodiment, the preemptible service interface can also be set to multiple. Different preemptible service interfaces can correspond to preemptible messages of different priorities, respectively. Exemplarily, the number of fast service interfaces can be 4, and 4 fast service interfaces can be used to correspond to the transmission of fast messages of 4 priorities. The number of preemptible service interfaces can be 4. 4 preemptible service interfaces can be used to correspond to the transmission of fast messages and preemptible messages of 4 priorities. Exemplarily, the number of fast service interfaces can be 6, and the number of preemptible service interfaces can be 2. I will not go into details here.
在一些实施方式中,快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个。In some implementations, the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
具体地,快速服务接口的数量为2至8中的任一个。可抢占服务接口的数量为1个。示例性地,快速服务接口的数量为2,可抢占服务接口的数量为1。快速服务接口的数量为3,可抢占服务接口的数量为1。快速服务接口的数量为4,可抢占服务接口的数量为1,等等,在此不再赘述。Specifically, the number of fast service interfaces is any one of 2 to 8. The number of preemptible service interfaces is 1. Exemplarily, 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, and the number of preemptible service interfaces is 1, and so on, which will not be repeated here.
在本申请的实施例中,所述缓存模块可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the cache module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
请参阅图7,本说明书实施方式提供一种数据发送方法,该方法可以包括以下步骤。Please refer to FIG. 7 . An embodiment of the present specification provides a data sending method. The method may include the following steps.
S702、获取数据流;其中,数据流对应有第一元组信息。S702: Acquire a data stream; wherein the data stream corresponds to first tuple information.
S704、根据第一元组信息对数据流进行模式匹配,确定数据流的数据标识。S704: Perform pattern matching on the data stream according to the first tuple information to determine a data identifier of the data stream.
S706、将数据流加入到数据流的数据标识所对应的队列中。S706: Add the data flow to the queue corresponding to the data identifier of the data flow.
其中,队列对应有不同的优先级;队列所对应的优先级与快速服务接口的接口标识对应。The queues have different priorities; the priorities of the queues correspond to the interface identifiers of the fast service interfaces.
S708、基于队列对应的优先级,对数据流封装对应的帧前导码,得到第一快速报文。S708. Based on the priority corresponding to the queue, encapsulate the corresponding frame preamble code for the data stream to obtain a first fast message.
其中,第一快速报文的指定组成部分附带有第一快速报文的优先级。The designated component of the first express message is accompanied by the priority of the first express message.
S710、根据第一快速报文的指定组成部分附带的优先级,将第一快速报文加入目标缓存模块中。S710: Add the first express message to a target cache module according to the priority level attached to the designated component of the first express message.
其中,目标缓存模块是针对第一接口标识所指代的快速服务接口设置的。The target cache module is set for the fast service interface indicated by the first interface identifier.
S712、在接收到第一快速报文,且正在发送第二快速报文的情况下,基于第一快速报文的第一元组信息发送第一抢断控制信号。S712: When a first fast message is received and a second fast message is being sent, a first interception control signal is sent based on the first tuple information of the first fast message.
其中,第一快速报文和第二快速报文分别属于快速分组;第一抢断控制信号附带有抢断指示、与第一元组信息对应的第一接口标识;其中,第一接口标识用于指代发送第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送。Among them, the first fast message and the second fast message belong to fast groups respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to the fast service interface that sends the first fast message; the second fast message is being sent through the fast service interface referred to by the second interface identifier.
其中,针对发送第一快速报文的快速服务接口、发送第二快速报文的快速服务接口,分别设置有不同的缓存模块;快速分组的报文包括时间触发业务流和/或速率受限业务流。快速服务接口的数量范围为2至8。The fast service interface for sending the first fast message and the fast service interface for sending the second fast message are respectively provided with different cache modules; the fast grouped messages include time-triggered service flows and/or rate-limited service flows. The number of fast service interfaces ranges from 2 to 8.
其中,第一快速报文的优先级高于第二快速报文的优先级。 The priority of the first fast message is higher than the priority of the second fast message.
S714、根据抢断指示以及第一接口标识,控制第二快速报文暂停发送,并控制第一快速报文通过第一接口标识指代的快速服务接口开始发送。S714. According to the interception indication and the first interface identifier, control the second fast message to be suspended from being sent, and control the first fast message to start being sent through the fast service interface indicated by the first interface identifier.
具体地,在判定第二快速报文的发送情况满足抢断条件的情况下,暂停发送第二快速报文。记录第二快速报文被抢断的断点;其中,断点用于标记第二快速报文已经完成发送的部分。Specifically, when it is determined that the sending of the second fast message meets the interception condition, the sending of the second fast message is suspended. The breakpoint where the second fast message is intercepted is recorded; wherein the breakpoint is used to mark the part of the second fast message that has been sent.
S716、在第一快速报文发送完毕的情况下,发送第一释放控制信号;其中,第一释放控制信号附带有释放指示、第一接口标识。S716. When the first fast message is sent completely, send a first release control signal; wherein the first release control signal is accompanied by a release indication and a first interface identifier.
S718、根据释放指示以及第一接口标识,控制第二快速报文开始继续发送。S718: Control the second fast message to continue to be sent according to the release indication and the first interface identifier.
S720、正在发送第二快速报文的过程中,接收到待发送的可抢占报文的情况下,基于可抢占报文的第二元组信息,控制第二快速报文继续发送。S720: When a preemptible message to be sent is received during the process of sending the second express message, control the second express message to continue to be sent based on the second tuple information of the preemptible message.
其中,可抢占报文属于可抢占分组。针对发送可抢占报文的可抢占服务接口设置有缓存模块;可抢占报文包括尽力而为业务流。可抢占服务接口的数量为1个。The preemptible message belongs to the preemptible group. A cache module is provided for the preemptible service interface that sends the preemptible message; the preemptible message includes a best effort service flow. The number of preemptible service interfaces is 1.
S722、在第二快速报文发送完毕的情况下,发送第二释放控制信号;其中,第二释放控制信号附带有释放指示、第二接口标识;其中,第二接口标识用于指代发送第二快速报文的快速服务接口。S722. When the second fast message is sent, send a second release control signal; wherein the second release control signal is accompanied by a release indication and a second interface identifier; wherein the second interface identifier is used to refer to a fast service interface for sending the second fast message.
S724、根据释放指示以及第二接口标识,控制可抢占报文开始发送。S724: Control the preemptible message to start sending according to the release indication and the second interface identifier.
S726、正在发送第二快速报文的过程中,接收到待发送的第三快速报文的情况下,基于第三快速报文的第三元组信息,控制第二快速报文继续发送。S726: When a third fast message to be sent is received during the process of sending the second fast message, control the second fast message to continue to be sent based on the third tuple information of the third fast message.
其中,第三快速报文属于快速分组,且第二快速报文的优先级高于第三快速报文的优先级。The third fast message belongs to the fast group, and the priority of the second fast message is higher than the priority of the third fast message.
S728、在第二快速报文发送完毕的情况下,发送第二释放控制信号。S728: When the second fast message is sent completely, send a second release control signal.
其中,第二释放控制信号附带有释放指示、第二接口标识;其中,第二接口标识用于指代发送第二快速报文的快速服务接口。The second release control signal is accompanied by a release indication and a second interface identifier; wherein the second interface identifier is used to refer to a fast service interface for sending the second fast message.
S730、根据释放指示以及第二接口标识,控制第三快速报文开始发送。S730: Control the third fast message to start sending according to the release indication and the second interface identifier.
具体地,控制所述第三快速报文通过第三接口标识指代的快速服务接口开始发送。Specifically, the third fast message is controlled to start being sent through the fast service interface indicated by the third interface identifier.
S732、正在发送第一快速报文的过程中,接收到待发送的第四快速报文的情况下,基于第四快速报文的第四元组信息发送第二抢断控制信号。S732: When a fourth fast message to be sent is received during the process of sending the first fast message, a second interception control signal is sent based on the fourth tuple information of the fourth fast message.
其中,第四快速报文属于快速分组,且第四快速报文的优先级高于第一快速报文的优先级;第二抢断控制信号附带有抢断指示、与第四元组信息对应的第四接口标识;其中,第四接口标识用于指代发送第四快速报文的快速服务接口。Among them, the fourth fast message belongs to a fast group, and the priority of the fourth fast message is higher than the priority of the first fast message; the second interception control signal is accompanied by an interception indication and a fourth interface identifier corresponding to the fourth tuple information; wherein the fourth interface identifier is used to refer to the fast service interface for sending the fourth fast message.
S734、根据抢断指示以及第四接口标识,控制第一快速报文暂停发送,并控制第四快速报文通过第四接口标识指代的快速服务接口开始发送。S734. According to the interception indication and the fourth interface identifier, control the first fast message to be suspended from being sent, and control the fourth fast message to start being sent through the fast service interface indicated by the fourth interface identifier.
在本申请的实施例中,所述缓存模块可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the cache module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
请参阅图8,本说明书实施方式提供一种数据接收方法,该方法可以包括以下步骤。Please refer to FIG8 . An embodiment of the present specification provides a data receiving method, which may include the following steps.
S810、在接收到的待处理报文属于快速分组的情况下,确定待处理报文的优先级。S810: When the received message to be processed belongs to a fast group, determine the priority of the message to be processed.
其中,不同的优先级对应有不同的第一处理单元。不同的第一处理单元对应有不同的快速服务接口。将TSN网络 传输的数据流划分为快速分组和可抢占分组。快速分组的流量等级比可抢占分组流量等级高,快速分组数据流的到来可以中断抢占分组数据流传输。进一步的,快速分组也可以按照数据流对时延要求等级划分为多个优先级。快速分组包括至少两个优先级的快速报文,比如第一快速报文和第二快速报文。高优先级快速报文可以中断低优先级快速报文的发送。示例性地,快速分组可以包括多个时延要求等级的TT流,快速分组可以包括至少一个时延要求等级的TT流、至少一个RC流。在面对多级不同时延要求的快速报文时,不同等级时延要求的不同快速报文通过不同的第一处理单元进行处理,不同的第一处理单元对应有不同的快速服务接口,不同的快速服务接口具有不同的接口标识。其中,所述快速服务接口的数量大于等于2。Different priorities correspond to different first processing units. Different first processing units correspond to different fast service interfaces. The transmitted data stream is divided into fast packets and preemptible packets. The traffic level of the fast packet is higher than the traffic level of the preemptible packet, and the arrival of the fast packet data stream can interrupt the transmission of the preemptive packet data stream. Furthermore, the fast packet can also be divided into multiple priorities according to the delay requirement level of the data stream. The fast packet includes at least two priority levels of fast messages, such as a first fast message and a second fast message. A high-priority fast message can interrupt the sending of a low-priority fast message. Exemplarily, the fast packet may include TT streams of multiple delay requirement levels, and the fast packet may include at least one TT stream of a delay requirement level and at least one RC stream. When facing fast messages with multiple levels of different delay requirements, different fast messages with different levels of delay requirements are processed by different first processing units, and different first processing units correspond to different fast service interfaces, and different fast service interfaces have different interface identifiers. Among them, the number of the fast service interfaces is greater than or equal to 2.
具体地,在接收端接收到待处理报文时,判断待处理报文的类型,在判定待处理报文属于快速分组的情况下,由于快速分组中包括至少两个优先级的快速报文,因此,需要确定待处理报文的优先级。示例性地,快速分组可以划分为Q0数据流、Q1数据流、Q2数据流,Q2数据流的优先级高于Q1数据流,Q1数据流的优先级高于Q0数据流。示例性地,快速分组可以划分为Q0数据流、Q1数据流、Q2数据流、Q3数据流、Q4数据流、Q5数据流、Q6数据流、Q7数据流;Q7数据流的优先级高于Q6数据流;Q6数据流的优先级高于Q5数据流;Q5数据流的优先级高于Q4数据流;Q4数据流的优先级高于Q3数据流;Q3数据流的优先级高于Q2数据流;Q2数据流的优先级高于Q1数据流,Q1数据流的优先级高于Q0数据流。Specifically, when the receiving end receives the message to be processed, the type of the message to be processed is determined. When it is determined that the message to be processed belongs to a fast group, since the fast group includes at least two fast messages of priority, it is necessary to determine the priority of the message to be processed. Exemplarily, the fast group can be divided into Q0 data stream, Q1 data stream, and Q2 data stream. The priority of Q2 data stream is higher than that of Q1 data stream, and the priority of Q1 data stream is higher than that of Q0 data stream. Exemplarily, the fast group can be divided into 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 priority of Q7 data stream is higher than that of Q6 data stream; the priority of Q6 data stream is higher than that of Q5 data stream; the priority of Q5 data stream is higher than that of Q4 data stream; the priority of Q4 data stream is higher than that of Q3 data stream; the priority of Q3 data stream is higher than that of Q2 data stream; the priority of Q2 data stream is higher than that of Q1 data stream, and the priority of Q1 data stream is higher than that of Q0 data stream.
S820、分流待处理报文至与待处理报文的优先级对应的目标处理单元。S820. Divert the to-be-processed message to a target processing unit corresponding to the priority of the to-be-processed message.
其中,目标处理单元用于确定待处理报文的完整性。在面对不同优先级的快速报文时,不同优先级的不同快速报文需要通过不同的第一处理单元进行处理。具体地,待处理报文的优先级对应有目标处理单元,根据确定的待处理报文的优先级,将待处理报文分流至目标处理单元。示例性地,利用目标处理单元对待处理报文进行帧完整性判断。在判断待处理报文不完整时,可以利用目标处理单元对待处理报文进行组帧以及校验,以输出完整的快速报文。Among them, the target processing unit is used to determine the integrity of the message to be processed. When facing fast messages of different priorities, different fast messages of 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 diverted to the target processing unit according to the determined priority of the message to be processed. Exemplarily, the target processing unit is used to judge the frame integrity of the message to be processed. When it is judged that the message to be processed is incomplete, the target processing unit can be used to frame and verify the message to be processed to output a complete fast message.
S830、将目标处理单元输出的完整快速报文上送至与目标处理单元对应的目标快速服务接口。S830. Send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
其中,不同的第一处理单元对应有不同的快速服务接口。不同的快速服务接口是按照时延和抖动性能进行划分得到的。具体地,目标处理单元输出完整快速报文。由于需要经过快速服务接口将快速报文发送至高层,因此,将完整快速报文上送至与目标处理单元对应的目标快速服务接口。Different first processing units correspond to different fast service interfaces. Different fast service interfaces are divided according to latency and jitter performance. Specifically, the target processing unit outputs a complete fast message. Since the fast message needs to be sent to the upper layer through the fast service interface, the complete fast message is sent to the target fast service interface corresponding to the target processing unit.
上述应用于接收端的数据接收方法,通过在接收到的待处理报文属于快速分组的情况下,确定待处理报文的优先级;并分流待处理报文至与待处理报文的优先级对应的目标处理单元;从而将目标处理单元输出的完整快速报文上送至与目标处理单元对应的目标快速服务接口;通过设计多个快速服务接口,能够严格保障多级不同时延和抖动等级要求流量的通信性能,而且通过设置不同优先级对应的第一处理单元能够为多种TT流、RC流提供更细粒度的延时和抖动性能保障。The above-mentioned data receiving method applied to the receiving end determines the priority of the message to be processed when the received message to be processed belongs to a fast group; and diverts the message to be processed to the target processing unit corresponding to the priority of the message to be processed; thereby sending the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit; by designing multiple fast service interfaces, it is possible to strictly guarantee the communication performance of traffic with multiple levels of different delay and jitter levels, and by setting the first processing units corresponding to different priorities, it is possible to provide more fine-grained delay and jitter performance guarantees for multiple TT flows and RC flows.
在一些实施方式中,请参阅图9,在在接收到的待处理报文属于快速分组的情况下,确定待处理报文的优先级之前,该数据接收方法还可以包括以下步骤。In some implementations, referring to FIG. 9 , when the received message to be processed belongs to a fast group, before determining the priority of the message to be processed, the data receiving method may further include the following steps.
S910、在接收到待处理报文后,校验待处理报文。S910: After receiving the message to be processed, verify the message to be processed.
S920、在待处理报文通过校验的情况下,基于待处理报文中的第一指定组成部分的取值,确定待处理报文属于快速分组。S920: When the message to be processed passes verification, determine, based on the value of the first designated component in the message to be processed, that the message to be processed belongs to a fast group.
相应的,确定待处理报文的优先级,包括:Accordingly, the priority of the message to be processed is determined, including:
S930、基于待处理报文中的第一指定组成部分的取值,确定待处理报文的优先级。 S930. Determine the priority of the message to be processed based on the value of the first designated component in the message to be processed.
其中,快速报文具有固定的结构。第一指定组成部分可以是快速报文中的任意结构部分。示例性地,第一指定组成部分可以是前导码。The fast message has a fixed structure. The first designated component may be any structural part in the fast message. Exemplarily, the first designated component may be a preamble.
具体地,在接收端接收到待处理报文,需要对待处理报文进行校验,若校验正确,则需要基于待处理报文中的第一指定组成部分的取值,确定待处理报文所属的类别。若校验错误,则需要丢弃处理报文。进一步的,由于已经将报文的优先级封装在第一指定组成部分,因此可以基于待处理报文中的第一指定组成部分的取值,确定待处理报文的优先级。Specifically, when a message to be processed is received at the receiving end, the message to be processed needs to be verified. If the verification 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 verification is wrong, the message to be processed needs to be discarded. Furthermore, since the priority of the message has been encapsulated in the first designated component, the priority of the message to be processed can be determined based on the value of the first designated component in the message to be processed.
在一些实施方式中,该数据接收方法可以包括:在待处理报文没有通过校验的情况下,丢弃待处理报文。In some implementations, the data receiving method may include: if the message to be processed fails to pass verification, discarding the message to be processed.
在一些实施方式中,在接收到待处理报文后,校验待处理报文,可以包括:基于待处理报文中的第二指定组成部分的取值,校验待处理报文。In some implementations, after receiving the message to be processed, verifying the message to be processed may include: verifying the message to be processed based on the value of the second designated component in the message to be processed.
在一些实施方式中,第一指定组成部分为前导码;第二指定组成部分为帧定界符。In some implementations, the first designated component is a preamble; and the second designated component is a frame delimiter.
示例性地,采用srcMAC、destMAC、srcIP、destIP、srcPort、destPort、udf(用户自定义)等多元组信息对数据流进行模式匹配;对于匹配成功的数据流,分配流标识,并关联对应信息,如队列信息等;依据流标识和对应信息将数据流入队到不同的队列;不同队列的数据包封装不同的帧前导码,用于区分不同优先级,进行多级抢占MAC嵌套调度,对数据流进行合并输出。Exemplarily, multiple groups of information such as srcMAC, destMAC, srcIP, destIP, srcPort, destPort, udf (user-defined) are used to perform pattern matching on data streams; for successfully matched data streams, flow identifiers are assigned, and corresponding information, such as queue information, is associated; data streams are queued to different queues based on the flow identifiers and corresponding information; data packets in different queues are encapsulated with different frame preambles to distinguish different priorities, perform multi-level preemptive MAC nested scheduling, and merge and output the data streams.
在一些实施方式中,请参阅图10,该数据接收方法可以包括以下步骤。In some implementations, referring to FIG. 10 , the data receiving method may include the following steps.
S1010、在接收到的待处理报文属于可抢占分组的情况下,确定待处理报文为可抢占报文。S1010: When the received message to be processed belongs to a preemptible group, determine that the message to be processed is a preemptible message.
S1020、分流可抢占报文至第二处理单元。S1020. Divert the preemptible message to the second processing unit.
S1030、将第二处理单元输出的完整可抢占报文上送至与第二处理单元对应的可抢占服务接口。S1030. Send the complete preemptible message output by the second processing unit to the preemptible service interface corresponding to the second processing unit.
其中,可抢占报文设有优先级,可抢占报文的优先级对应有第二处理单元。第二处理单元对应有可抢占服务接口。第二处理单元用于确定可抢占报文的完整性。具体地,在接收端接收到待处理报文时,判断待处理报文的类型,在判定待处理报文属于可抢占分组的情况下,确定待处理报文为可抢占报文。进一步的,可抢占报文的优先级对应有第二处理单元。第二处理单元对应有可抢占服务接口,将可抢占报文分流至第二处理单元。第二处理单元输出完整快速报文。由于需要经过可抢占服务接口将可抢占报文发送至高层,因此,将完整可抢占报文上送至与第二处理单元对应的可抢占服务接口。Among them, the preemptible message is provided with a priority, and the priority of the preemptible message corresponds to a second processing unit. The second processing unit corresponds to a preemptible service interface. The second processing unit is used to determine 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 when it is determined that the message to be processed belongs to a preemptible group, the message to be processed is determined to be a preemptible message. Further, the priority of the preemptible message corresponds to a second processing unit. The second processing unit corresponds to a preemptible service interface, and the preemptible message is diverted to the second processing unit. The second processing unit outputs a complete fast message. Since the preemptible message needs to be sent to the upper layer through the preemptible service interface, 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 grouped messages include time-triggered flows and/or rate-limited flows; the preemptible grouped messages include best-effort service flows.
在一些实施方式中,快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个。In some implementations, the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
具体地,快速服务接口的数量为2至8中的任一个。可抢占服务接口的数量为1个。示例性地,快速服务接口的数量为2,可抢占服务接口的数量为1。快速服务接口的数量为3,可抢占服务接口的数量为1。快速服务接口的数量为4,可抢占服务接口的数量为1,等等,在此不再赘述。Specifically, the number of fast service interfaces is any one of 2 to 8. The number of preemptible service interfaces is 1. Exemplarily, 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, and the number of preemptible service interfaces is 1, and so on, which will not be repeated here.
在一些实施方式中,确定待处理报文的完整性的方式,至少包括以下之一:在判定待处理报文为完整的数据帧的情况下,则确定待处理报文是完整的;或者,在判定待处理报文为不完整的数据帧的情况下,则基于帧定界符和片段计数对待处理报文进行组帧,得到完整的数据帧。In some embodiments, the method for determining the integrity of the message to be processed includes at least one of the following: when the message to be processed is determined to be a complete data frame, determining that the message to be processed is complete; or, when the message to be processed is determined to be an incomplete data frame, framing the message to be processed based on the frame delimiter and the fragment count to obtain a complete data frame.
在本申请的实施例中,所述缓存模块和所述处理单元,分别可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯 片执行程序相关的代码实现相应的功能。或者,可替换的方案为,所述缓存模块和所述处理单元共享一个集成芯片或者共享处理器、控制器、存储器等设备。所述共享的处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In the embodiment of the present application, the cache module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip Alternatively, the cache module and the processing unit share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes the program-related code to implement the corresponding function.
请参阅图11,本说明书实施方式提供一种数据接收方法,该方法可以包括以下步骤。Please refer to FIG. 11 . An embodiment of the present specification provides a data receiving method. The method may include the following steps.
S1102、在接收到待处理报文后,基于待处理报文中的第二指定组成部分的取值,校验待处理报文。S1102: After receiving the message to be processed, verify the message to be processed based on the value of the second designated component in the message to be processed.
S1104、在待处理报文通过校验的情况下,基于待处理报文中的第一指定组成部分的取值,确定待处理报文属于快速分组。S1104: When the message to be processed passes verification, determine, based on the value of the first designated component in the message to be processed, that the message to be processed belongs to a fast group.
其中,第一指定组成部分为前导码;第二指定组成部分为帧定界符。The first designated component is the preamble; the second designated component is the frame delimiter.
S1106、在接收到的待处理报文属于快速分组的情况下,确定待处理报文的优先级。S1106: When the received message to be processed belongs to a fast group, determine the priority of the message to be processed.
其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口。所述快速服务接口的数量大于等于2。Different priorities correspond to different first processing units, and different first processing units correspond to different fast service interfaces. The number of the fast service interfaces is greater than or equal to 2.
S1108、分流待处理报文至与待处理报文的优先级对应的目标处理单元。S1108. Divert the to-be-processed message to a target processing unit corresponding to the priority of the to-be-processed message.
其中,目标处理单元用于确定待处理报文的完整性;具体地,在判定待处理报文为完整的数据帧的情况下,则确定待处理报文是完整的;在判定待处理报文为不完整的数据帧的情况下,则基于帧定界符和片段计数对待处理报文进行组帧,得到完整的数据帧。Among them, the target processing unit is used to determine the integrity of the message to be processed; specifically, when it is determined that the message to be processed is a complete data frame, it is determined that the message to be processed is complete; when it is determined that the message to be processed is an incomplete data frame, the message to be processed is framed based on the frame delimiter and the fragment count to obtain a complete data frame.
S1110、将目标处理单元输出的完整快速报文上送至与目标处理单元对应的目标快速服务接口。S1110. Send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
S1112、在接收到的待处理报文属于可抢占分组的情况下,确定待处理报文为可抢占报文。S1112: When the received message to be processed belongs to a preemptible group, determine that the message to be processed is a preemptible message.
其中,可抢占报文设有优先级,可抢占报文的优先级对应有第二处理单元;第二处理单元对应有可抢占服务接口。The preemptible message is provided with a priority, and the priority of the preemptible message corresponds to a second processing unit; and the second processing unit corresponds to a preemptible service interface.
S1114、分流可抢占报文至第二处理单元;其中,第二处理单元用于确定可抢占报文的完整性。S1114. Divert the preemptible message to the second processing unit; wherein the second processing unit is used to determine the integrity of the preemptible message.
S1116、将第二处理单元输出的完整可抢占报文上送至与第二处理单元对应的可抢占服务接口。S1116. Send the complete preemptible message output by the second processing unit to the preemptible service interface corresponding to the second processing unit.
其中,不同的快速服务接口分别设置有不同的缓存模块;可抢占服务接口也设置有缓存模块;快速分组的报文包括时间触发流和/或速率限制流;可抢占分组的报文包括尽力而为业务流。快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个。Different fast service interfaces are respectively provided with different cache modules; preemptible service interfaces are also provided with cache modules; fast grouped messages include time-triggered flows and/or rate-limited flows; preemptible grouped messages include best-effort service flows. The number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
请参阅图12a,本说明书实施方式提供一种芯片1200,芯片1200具有第一快速服务接口1202、第二快速服务接口1204、可抢占服务接口1206。其中,第一快速服务接口1202、第二快速服务接口1204位于MAC合并子层1208、MAC客户端1210之间,以用于在MAC合并子层1208、MAC客户端1210之间传输快速报文。12a, an embodiment of the present specification provides a chip 1200, wherein 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 a MAC merging sublayer 1208 and a MAC client 1210, so as to transmit fast messages between the MAC merging sublayer 1208 and the MAC client 1210.
可抢占服务接口1206位于MAC合并子层1208、MAC客户端1210之间,以用于在MAC合并子层1208、MAC客户端1210之间传输可抢占报文。The preemptible service interface 1206 is located between the MAC merging sublayer 1208 and the MAC client 1210 to transmit preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210 .
MAC合并子层1208向提供MAC客户端1210提供有MAC合并服务接口。其中,MAC合并服务接口用于接收MAC客户端1210发送的抢断控制信号,抢断控制信号附带有抢断指示、接口标识;其中,接口标识以及抢断指示用于在第一快速服务接口、第二快速服务接口、可抢占服务接口中确定能够传输报文的目标服务接口。The MAC merging sublayer 1208 provides a MAC merging service interface to the MAC client 1210. The MAC merging service interface is used to receive a preemption control signal sent by the MAC client 1210, and the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine a target service interface capable of transmitting a message among the first fast service interface, the second fast service interface, and the preemptible service interface.
具体地,通过在MAC合并子层1208、MAC客户端1210之间设置第一快速服务接口1202、第二快速服务接口1204、可抢占服务接口1206。第一快速服务接口1202、第二快速服务接口1204用于在MAC合并子层1208、MAC客户端1210之间传输快速报文。在MAC合并子层1208接收到多种优先级的快速报文的情况下,可以在第一快速服务接口1202、第二快速服务接口1204中确定用于传输对应优先级的快速报文的快速服务接口。高优先级的快速报文通过高优先级对应的快速服务接口进行传输,低优先级的快速报文通过低优先级对应的快速服务接口进行传输。 Specifically, a first fast service interface 1202, a second fast service interface 1204, and a preemptible service interface 1206 are set 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 to transmit fast messages between the MAC merging sublayer 1208 and the MAC client 1210. When the MAC merging sublayer 1208 receives fast messages of multiple priorities, a fast service interface for transmitting fast messages of corresponding priorities can be determined in the first fast service interface 1202 and the second fast service interface 1204. Fast messages of high priority are transmitted through the fast service interface corresponding to the high priority, and fast messages of low priority are transmitted through the fast service interface corresponding to the low priority.
可抢占服务接口1206用于在MAC合并子层1208、MAC客户端1210之间传输可抢占报文。可抢占服务接口1206可以理解为MAC合并子层1208、MAC客户端1210之间传输可抢占报文的数据通道。在MAC合并子层1208接收到可抢占报文的情况下,通过可抢占服务接口1206传输至MAC客户端1210。The preemptible service interface 1206 is used to transmit preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210. The preemptible service interface 1206 can be understood as a data channel for transmitting preemptible messages between the MAC merging sublayer 1208 and the MAC client 1210. When the MAC merging sublayer 1208 receives a preemptible message, it is transmitted to the MAC client 1210 through the preemptible service interface 1206.
MAC合并服务接口为MAC合并子层1208提供给MAC客户端1210的控制接口。在MAC客户端1210需要向下发送报文的情况下,MAC客户端1210向MAC合并服务接口传递抢断控制信号。抢断控制信号附带有抢断指示、接口标识;其中,接口标识以及抢断指示用于在第一快速服务接口、第二快速服务接口、可抢占服务接口中确定能够传输报文的目标服务接口。在另一些实施方式中,MAC客户端1210也可以向MAC合并服务接口传递释放控制信号。释放控制信号附带有释放指示、接口标识;其中,接口标识以及释放指示用于释放已经完成报文传输的服务接口。The MAC merge service interface is a control interface provided by the MAC merge sublayer 1208 to the MAC client 1210. When the MAC client 1210 needs to send a message downward, the MAC client 1210 transmits a preemption control signal to the MAC merge service interface. The preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine the target service interface that can transmit the message among the first fast service interface, the second fast service interface, and the preemptible service interface. In other embodiments, the MAC client 1210 may also transmit a release control signal to the MAC merge service interface. The release control signal is accompanied by a release indication and an interface identifier; wherein the interface identifier and the release indication are used to release the service interface that has completed the message transmission.
示例性地,请参阅图12b,芯片具有第一快速服务接口(e0MAC)、第二快速服务接口(未示出)、第三快速服务接口(未示出)、第四快速服务接口(未示出)、第五快速服务接口(未示出)、第六快速服务接口(未示出)、第七快速服务接口(未示出)、第八快速服务接口(e7MAC)、可抢占服务接口(pMAC)。其中,第一快速服务接口、第二快速服务接口、第三快速服务接口、第四快速服务接口、第五快速服务接口、第六快速服务接口、第七快速服务接口、第八快速服务接口位于MAC合并子层、MAC客户端之间,以用于在MAC合并子层、MAC客户端之间传输快速报文。可抢占服务接口位于MAC合并子层、MAC客户端之间,以用于在MAC合并子层、MAC客户端之间传输可抢占报文。MAC合并子层向MAC客户端提供有MAC合并服务接口。其中,MAC合并服务接口用于接收MAC客户端发送的抢断控制信号。进一步的,在MAC客户端和协调子层之间具有时间同步客户端,时间同步客户端用于MAC客户端和协调子层之间的时间同步,拉齐各信号的“步调”。Exemplarily, please refer to FIG. 12b, the chip has a first fast service interface (e0MAC), 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 (e7MAC), and a preemptible service interface (pMAC). Among them, 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 to transmit fast messages between the MAC merging sublayer and the MAC client. The preemptible service interface is located between the MAC merging sublayer and the MAC client to transmit preemptible messages between the MAC merging sublayer and the MAC client. The MAC merging sublayer provides a MAC merging service interface to the MAC client. Among them, the MAC merging service interface is used to receive the preemption control signal sent by the MAC client. Furthermore, there is a time synchronization client 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 to align the "pace" of various signals.
示例性地,MAC客户端传递给MAC合并服务接口MM_CTL.request控制信号。MM_CTL.request控制信号携带参数hold-x或参数release-x,参数hold-x用来指示各级抢断的保持,参数release-x用来指示各级抢断的释放,x用于指定执行抢断的服务接口或者被释放的服务接口。Exemplarily, the MAC client transmits the MM_CTL.request control signal to the MAC merge service interface. The MM_CTL.request control signal carries a parameter hold-x or a parameter release-x, wherein the parameter hold-x is used to indicate the holding of each level of interception, and the parameter release-x is used to indicate the release of each level of interception, and x is used to specify the service interface that performs the interception or the service interface that is released.
当有报文需要发送时,MAC合并服务接口配合各个PLS服务接口对传输进行控制,实现多级抢占嵌套调度,抢占逻辑通过控制PLS信号来实现抢占和发送控制。示例性地,MM_CTL.request控制信号可以支持多级嵌套。示例性地说明多次嵌套数据发送过程:MAC客户端对不同队列的数据包封装不同的前导码,用于区分不同的帧优先级;根据不同的前导码,数据进入e0-7MAC或pMAC服务接口;MAC服务接口判断各个接口之间是否存在抢占需求,如果需要抢占,记录被抢占的断点;MAC服务接口进行嵌套抢占;MAC服务接口在抢占数据发送完成后对被抢占数据进行续传;数据合并子层对MAC服务接口下发的不同优先级嵌套数据进行合并输出。When a message needs to be sent, the MAC merge service interface cooperates with each PLS service interface to control the transmission and implement multi-level preemptive nested scheduling. The preemption logic implements preemption and transmission control by controlling the PLS signal. Exemplarily, the MM_CTL.request control signal can support multi-level nesting. Exemplarily illustrate the process of multiple nested data transmission: the MAC client encapsulates different preambles for data packets in different queues to distinguish different frame priorities; according to different preambles, the data enters the e0-7MAC or pMAC service interface; the MAC service interface determines whether there is a preemption demand between the interfaces. If preemption is required, the preempted breakpoint is recorded; the MAC service interface performs nested preemption; the MAC service interface continues to transmit the preempted data after the preempted data is sent; the data merging sublayer merges and outputs the nested data of different priorities sent by the MAC service interface.
例如,在收到hold-4信号并发送eMAC4数据的过程中,hold-5信号到达,传输处理在符合抢断条件的前提下中断eMAC4数据,开始发送eMAC5数据。release-x信号需要按照hold-x的相反执行顺序执行,即最后hold的,优先release。在最后执行的hold信号的release信号未被执行之前,系统不应响应低级别的release信号,如hold信号处理顺序为hold-1,hold-2,hold-3,则release信号处理顺序应为release-3,release-2,release-1。在release-3信号未处理之前不会响应release-2和release-1信号。可以理解的是,eMAC4数据可以是经过eMAC4快速服务接口传输的快速报文。eMAC5数据可以是经过eMAC5快速服务接口传输的快速报文。需要说明的是,PLS为物理信令子层,用于逐级传递数据收发信号。本实施例中各级PLS相较于既有的Qbu技术而言,其主要差异在于硬件需要实现多级eMAC的PLS信号。For example, in the process of receiving the hold-4 signal and sending eMAC4 data, the hold-5 signal arrives, and the transmission processing interrupts the eMAC4 data under the premise of meeting the preemption conditions, and starts to send eMAC5 data. The release-x signal needs to be executed in the reverse execution order of hold-x, that is, the last hold has priority release. Before the release signal of the last executed hold signal is executed, the system should not respond to the lower-level release signal. For example, if the hold signal processing order is hold-1, hold-2, hold-3, then the release signal processing order should be release-3, release-2, release-1. Release-2 and release-1 signals will not be responded to before the release-3 signal is processed. It can be understood that the eMAC4 data can be a fast message transmitted through the eMAC4 fast service interface. The eMAC5 data can be a fast message transmitted through the eMAC5 fast service interface. It should be noted that PLS is a physical signaling sublayer used to transmit data receiving and sending signals step by step. Compared with the existing Qbu technology, the main difference between the PLS at each level in this embodiment is that the hardware needs to implement the PLS signal of multiple eMACs.
上述实施方式中,通过在MAC合并子层、MAC客户端之间设置第一快速服务接口、第二快速服务接口、可抢占服 务接口,以及在MAC合并子层1208上为MAC客户端1210提供MAC合并服务接口,可以通过设计多个快速服务接口以及抢断控制信号实现多级嵌套抢断,从而可以严格按照多级不同时延和抖动等级要求进行数据传输。在满足TT流确定性实时通信前提下,同时可以提升RC流的通信性能。In the above implementation, a first fast service interface, a second fast service interface, and a preemptible service interface are provided between the MAC merging sublayer and the MAC client. The MAC merging service interface is provided on the MAC merging sublayer 1208 for the MAC client 1210. Multiple fast service interfaces and interception control signals can be designed to achieve multi-level nested interception, so that data transmission can be carried out strictly in accordance with the requirements of multi-level different delays and jitter levels. Under the premise of meeting the deterministic real-time communication of the TT flow, the communication performance of the RC flow can be improved at the same time.
在一些实施方式中,第一快速服务接口、第二快速服务接口分别设置有不同的缓存模块。可抢占服务接口也设置有缓存模块。快速报文包括时间触发业务流、速率受限业务流中的至少一个。可抢占报文为尽力而为业务流。In some implementations, 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 includes at least one of a time-triggered service flow and a rate-limited service flow. The preemptible message is a best-effort service flow.
在一些实施方式中,快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个。请参阅图13,第一快速服务接口对应的第一eMAC层、第二快速服务接口对应的第二eMAC层为传输快速报文的传输通道。可抢占服务接口对应的pMAC层为传输可抢占报文的传输通道。其中,MAC层包括MAC合并子层、第一eMAC层、第二eMAC层、pMAC层。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 , the first eMAC layer corresponding to the first fast service interface and the second eMAC layer corresponding to the second fast service interface are transmission channels for transmitting fast messages. The pMAC layer corresponding to the preemptible service interface is a transmission channel for transmitting preemptible messages. The MAC layer includes a MAC merging sublayer, a first eMAC layer, a second eMAC layer, and a pMAC layer.
在一些实施方式中,请参阅图14,MAC合并子层包括第一快速报文过滤模块、第二快速报文过滤模块、接收处理模块、校验模块、传输处理模块、与第一快速报文过滤模块对应的第一服务接口、与第二快速报文过滤模块对应的第二服务接口、与接收处理模块对应的第三服务接口。其中,第一快速报文过滤模块,用于过滤需要进入第一快速服务接口的快速报文。第二快速报文过滤模块,用于过滤需要进入第二快速服务接口的快速报文。接收处理模块,用于接收可抢占报文,并对可抢占报文进行处理。In some embodiments, please refer to FIG. 14 , the MAC merging sublayer includes a first fast message filtering module, a second fast message filtering module, a receiving processing module, a verification module, a transmission processing module, a first service interface corresponding to the first fast message filtering module, a second service interface corresponding to the second fast message filtering module, and a third service interface corresponding to the receiving processing module. Among them, the first fast message filtering module is used to filter the fast messages that need to enter the first fast service interface. The second fast message filtering module is used to filter the fast messages that need to enter the second fast service interface. The receiving processing module is used to receive the preemptible message and process the preemptible message.
具体地,在协调子层接收到数据报文的情况下,将数据报文送往第一快速报文过滤模块、第二快速报文过滤模块、接收处理模块。针对可抢占报文,利用接收处理模块对可抢占报文进行处理。针对各级快速报文,通过过滤进入到不同的处理单元处理,并通过对应的快速服务接口上送MAC客户端。示例性说明数据接收过程:数据帧接收;数据帧校验;对于校验错误的帧进行丢弃;对于校验正确的帧进行缓存;对于不同前导码标记的帧分流到不同的帧处理单元,不同的帧处理单元分别对应e0-7MAC和pMAC;帧处理单元进行帧完整性判定,对不完整的帧进行组帧并校验,对于校验错误的帧进行丢弃。将完整和校验正确的帧上送对应的MAC服务接口。Specifically, when the coordination sublayer receives a data message, the data message is sent to the first fast message filtering module, the second fast message filtering module, and the receiving processing module. For preemptible messages, the receiving processing module is used to process the preemptible messages. For fast messages at all levels, they are filtered into different processing units for processing and sent to the MAC client through the corresponding fast service interface. The data receiving process is illustrated as follows: data frame reception; data frame verification; discarding frames with verification errors; caching frames with correct verification; frames marked with different preambles are diverted to different frame processing units, and different frame processing units correspond to e0-7MAC and pMAC respectively; the frame processing unit determines the frame integrity, frames the incomplete frames and verifies them, and discards frames with verification errors. Send complete and correctly verified frames to the corresponding MAC service interface.
上述实施方式中,在数据接收端能够对各级被抢断的不完整数据帧进行重组并校验正确性,对校验通过的数据帧上送对应的e0-7MAC或pMAC服务接口。In the above implementation, the incomplete data frames intercepted at each level can be reassembled and verified for correctness at the data receiving end, and the data frames that pass the verification are sent to the corresponding e0-7MAC or pMAC service interface.
在本申请的实施例中,所述第一快速报文过滤模块、所述第二快速报文过滤模块、所述接收处理模块、所述校验模块、所述传输处理模块、所述缓存模块和所述处理单元,分别可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。或者,可替换的方案为,所述第一快速报文过滤模块、所述第二快速报文过滤模块、所述接收处理模块、所述校验模块、所述传输处理模块、所述缓存模块和所述处理单元共享一个集成芯片或者共享处理器、控制器、存储器等设备。所述共享的处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the first fast message filtering module, the second fast message filtering module, the receiving processing module, the verification module, the transmission processing module, the cache module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions. Alternatively, an alternative solution is that the first fast message filtering module, the second fast message filtering module, the receiving processing module, the verification module, the transmission processing module, the cache module and the processing unit share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
本说明书实施方式提供一种数据发送方法,应用于MAC客户端,所述方法包括:在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。An embodiment of the present specification provides a data sending method, which is applied to a MAC client, and the method includes: when a first fast message is received and a second fast message is being sent, a first intercept control signal is sent to a MAC merging sublayer based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to fast packets respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier; the first intercept control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the intercept indication and the first interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
本说明书实施方式提供一种数据发送方法,应用于MAC合并子层,所述方法包括:在接收到第一快速报文,且正 在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The embodiment of the present specification provides a data transmission method, which is applied to the MAC merging sublayer, and the method comprises: receiving a first fast message and When sending a second fast message, a first intercept control signal is received; wherein, the first intercept control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein, the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein, the second fast message is being sent through the fast service interface referred to by the second interface identifier; according to the intercept indication and the first interface identifier, the second fast message is controlled to be suspended from being sent through the fast service interface referred to by the second interface identifier, and the first fast message is controlled to start being sent through the fast service interface referred to by the first interface identifier.
请参阅图15,本说明书实施方式提供一种数据发送装置,所述装置包括:控制信号发送模块、报文发送控制模块。Please refer to FIG. 15 . An embodiment of the present specification provides a data sending device, which includes: a control signal sending module and a message sending control module.
控制信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送。A control signal sending module, used for sending a first intercept control signal based on the first tuple information of a first fast message when a first fast message is received and a second fast message is being sent; wherein the first fast message and the second fast message belong to fast groups respectively; the first intercept control signal is accompanied by an intercept indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface that sends the first fast message; and the second fast message is being sent through the fast service interface indicated by the second interface identifier.
报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。A message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
在本申请的实施例中,所述控制信号发送模块和所述报文发送控制模块,分别可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。或者,可替换的方案为,所述控制信号发送模块和所述报文发送控制模块共享一个集成芯片或者共享处理器、控制器、存储器等设备。所述共享的处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the control signal sending module and the message sending control module can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions. Alternatively, an alternative solution is that the control signal sending module and the message sending control module share an integrated chip or a processor, controller, memory or other device. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
请参阅图16,本说明书实施方式提供一种数据接收装置,所述数据接收装置包括:优先级确定模块、报文分流模块、报文上送模块。Please refer to FIG. 16 . An embodiment of the present specification provides a data receiving device, which includes: a priority determination module, a message diversion module, and a message sending module.
优先级确定模块,用于在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级;其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口;所述快速服务接口的数量大于等于2;A priority determination module, used for determining the priority of the message to be processed when the received message to be processed belongs to a fast group; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; the number of the fast service interfaces is greater than or equal to 2;
报文分流模块,用于分流所述待处理报文至与所述待处理报文的优先级对应的目标处理单元;其中,所述目标处理单元用于确定所述待处理报文的完整性;A message diversion module, used for diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used for determining the integrity of the message to be processed;
报文上送模块,用于将所述目标处理单元输出的完整快速报文上送至与所述目标处理单元对应的目标快速服务接口。The message sending module is used to send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
在本申请的实施例中,所述优先级确定模块、所述报文分流模块、所述报文上送模块和所述处理单元,分别可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。或者,可替换的方案为,所述优先级确定模块、所述报文分流模块、所述报文上送模块和所述处理单元共享一个集成芯片或者共享处理器、控制器、存储器等设备。所述共享的处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the priority determination module, the message diversion module, the message uploading module and the processing unit can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions. Alternatively, an alternative solution is that the priority determination module, the message diversion module, the message uploading module and the processing unit share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
请参阅图17,本说明书实施方式提供一种数据发送装置,应用于MAC客户端,所述装置包括:抢断信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第一抢断控制信号。 Please refer to Figure 17. An embodiment of the present specification provides a data sending device, which is applied to a MAC client. The device includes: a preemption signal sending module, which is used to send a first preemption control signal to the MAC merging sublayer based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent.
其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送。Among them, the first fast message and the second fast message belong to fast groups respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through the fast service interface indicated by the second interface identifier.
所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The first preemption control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier according to the preemption indication and the first interface identifier.
在本申请的实施例中,所述抢断信号发送模块可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the interception signal sending module may be one or more processors, controllers or chips having a communication interface capable of implementing a communication protocol, and may also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions.
请参阅图18,本说明书实施方式提供一种数据发送装置,应用于MAC合并子层,所述装置包括:抢断信号接收模块和报文发送控制模块。Please refer to FIG. 18 . An embodiment of the present specification provides a data sending device, which is applied to a MAC merging sublayer. The device includes: a preemption signal receiving module and a message sending control module.
抢断信号接收模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送。A steal signal receiving module, used to receive a first steal control signal when a first fast message is received and a second fast message is being sent; wherein the first steal control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to fast groups respectively; the first steal control signal is accompanied by a steal indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface that sends the first fast message; wherein the second fast message is being sent through the fast service interface referred to by the second interface identifier.
报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。A message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
在本申请的实施例中,所述抢断信号接收模块和报文发送控制模块,分别可以是具有通信接口能够实现通信协议的一个或多个处理器、控制器或者芯片,如有需要还可以包括存储器及相关的接口、系统传输总线等;所述处理器、控制器或者芯片执行程序相关的代码实现相应的功能。或者,可替换的方案为,所述抢断信号接收模块和所述报文发送控制模块共享一个集成芯片或者共享处理器、控制器、存储器等设备。所述共享的处理器、控制器或者芯片执行程序相关的代码实现相应的功能。In an embodiment of the present application, the interception signal receiving module and the message sending control module can be one or more processors, controllers or chips with a communication interface capable of implementing a communication protocol, and can also include a memory and related interfaces, a system transmission bus, etc. if necessary; the processor, controller or chip executes program-related codes to implement corresponding functions. Alternatively, an alternative solution is that the interception signal receiving module and the message sending control module share an integrated chip or a processor, controller, memory and other devices. The shared processor, controller or chip executes program-related codes to implement corresponding functions.
本说明书实施方式提供一种电子设备,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于实现上述任一实施方式所提及的方法。An embodiment of the present specification provides an electronic device, including a transceiver, a processor and a memory, wherein 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.
本说明书实施方式提供一种芯片,所述芯片包括至少一个处理器、接口电路和存储器,所述存储器、所述接口电路和所述至少一个处理器通过线路互联,所述存储器中存储有计算机程序,所述计算机程序被所述至少一个处理器执行时,所述芯片实现上述任一实施方式所提及的方法。An embodiment of the present specification provides a chip, which includes at least one processor, an interface circuit and a memory, wherein the memory, the interface circuit and the at least one processor are interconnected via lines, 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 of the above embodiments.
本说明书实施方式提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现上述任一实施方式所提及的方法。An embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method mentioned in any of the above embodiments is implemented.
本说明书实施方式提供一种计算机程序产品,所述计算机程序产品中包括指令,所述指令被电子设备的处理器执行时,使得所述电子设备能够执行上述实施方式中的方法步骤。An embodiment of the present specification provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the method steps in the above embodiment.
需要说明的是,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传 输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。It should be noted that the logic and/or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or used in conjunction with these instruction execution systems, devices or equipment. For the purpose of this specification, "computer-readable medium" can be any medium that can contain, store, communicate, propagate or transmit A device for transmitting a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of computer readable media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in other suitable ways as necessary, and then stored in a computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性地,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。 Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims (39)

  1. 一种数据发送方法,其特征在于,所述方法包括:A data sending method, characterized in that the method comprises:
    在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;In the case where a first fast message is received and a second fast message is being sent, a first interception control signal is sent based on the first tuple information of the first fast message; wherein the first fast message and the second fast message belong to a fast group respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; the second fast message is being sent through the fast service interface indicated by the second interface identifier;
    根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。According to the intercept indication and the first interface identifier, the second fast message is controlled to suspend sending through the fast service interface indicated by the second interface identifier, and the first fast message is controlled to start sending through the fast service interface indicated by the first interface identifier.
  2. 根据权利要求1所述的方法,其特征在于,所述第一快速报文的优先级高于所述第二快速报文的优先级。The method according to claim 1 is characterized in that the priority of the first fast message is higher than the priority of the second fast message.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:
    在所述第一快速报文发送完毕的情况下,发送第一释放控制信号;其中,所述第一释放控制信号附带有释放指示、所述第一接口标识;When the first fast message is sent, sending a first release control signal; wherein the first release control signal is accompanied by a release indication and the first interface identifier;
    根据所述释放指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口开始继续发送。According to the release indication and the first interface identifier, the second fast message is controlled to continue to be sent through the fast service interface indicated by the second interface identifier.
  4. 根据权利要求1或3所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 3, characterized in that the method further comprises:
    正在通过所述第二接口标识指代的快速服务接口继续发送所述第二快速报文的过程中,接收到待发送的可抢占报文的情况下,基于所述可抢占报文的第二元组信息,控制所述第二快速报文继续发送;其中,所述可抢占报文属于可抢占分组。While the second fast message is continuing to be sent through the fast service interface indicated by the second interface identifier, in the event that a preemptible message to be sent is received, the second fast message is controlled to continue to be sent based on the second tuple information of the preemptible message; wherein the preemptible message belongs to a preemptible group.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    在所述第二快速报文发送完毕的情况下,发送第二释放控制信号;其中,所述第二释放控制信号附带有释放指示、所述第二接口标识;其中,所述第二接口标识用于指代发送所述第二快速报文的快速服务接口;When the second fast message is sent, send a second release control signal; wherein the second release control signal is accompanied by a release indication and the second interface identifier; wherein the second interface identifier is used to refer to a fast service interface for sending the second fast message;
    根据所述释放指示以及所述第二接口标识,控制所述可抢占报文开始发送。According to the release indication and the second interface identifier, the preemptible message is controlled to start sending.
  6. 根据权利要求1或3所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 3, characterized in that the method further comprises:
    正在发送所述第二快速报文的过程中,接收到待发送的第三快速报文的情况下,基于所述第三快速报文的第三元组信息,控制所述第二快速报文继续发送;其中,所述第三快速报文属于所述快速分组,且所述第二快速报文的优先级高于所述第三快速报文的优先级。When the second fast message is being sent and a third fast message to be sent is received, the second fast message is controlled to continue being sent based on the third tuple information of the third fast message; wherein the third fast message belongs to the fast group and the priority of the second fast message is higher than the priority of the third fast message.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    在所述第二快速报文发送完毕的情况下,发送第二释放控制信号;其中,所述第二释放控制信号附带有释放指示、所述第二接口标识;其中,所述第二接口标识用于指代发送所述第二快速报文的快速服务接口;When the second fast message is sent, send a second release control signal; wherein the second release control signal is accompanied by a release indication and the second interface identifier; wherein the second interface identifier is used to refer to a fast service interface for sending the second fast message;
    根据所述释放指示以及所述第二接口标识,控制所述第三快速报文通过第三接口标识指代的快速服务接口开始发送。According to the release indication and the second interface identifier, the third fast message is controlled to start being sent through the fast service interface indicated by the third interface identifier.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:
    正在发送所述第一快速报文的过程中,接收到待发送的第四快速报文的情况下,基于所述第四快速报文的第四元组信息发送第二抢断控制信号;其中,所述第四快速报文属于所述快速分组,且所述第四快速报文的优先级高于所述第一快速报文的优先级;所述第二抢断控制信号附带有所述抢断指示、与所述第四元组信息对应的第四接口标识;其 中,所述第四接口标识用于指代发送所述第四快速报文的快速服务接口;In the process of sending the first fast message, when a fourth fast message to be sent is received, a second interception control signal is sent based on the fourth tuple information of the fourth fast message; wherein the fourth fast message belongs to the fast group, and the priority of the fourth fast message is higher than the priority of the first fast message; the second interception control signal is accompanied by the interception indication and a fourth interface identifier corresponding to the fourth tuple information; wherein , the fourth interface identifier is used to refer to the fast service interface for sending the fourth fast message;
    根据所述抢断指示以及所述第四接口标识,控制所述第一快速报文暂停发送,并控制所述第四快速报文通过所述第四接口标识指代的快速服务接口开始发送。According to the intercept indication and the fourth interface identifier, the first fast message is controlled to be suspended from sending, and the fourth fast message is controlled to start sending through the fast service interface indicated by the fourth interface identifier.
  9. 根据权利要求1至3任一项所述的方法,其特征在于,所述第一快速报文是对队列中的数据流进行封装得到的;在所述接收到第一快速报文之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that the first fast message is obtained by encapsulating the data flow in the queue; before receiving the first fast message, the method further comprises:
    获取数据流;其中,所述数据流对应有所述第一元组信息;Acquire a data stream; wherein the data stream corresponds to the first tuple information;
    将所述数据流加入到所述第一元组信息所对应的队列中;其中,队列对应有不同的优先级;队列所对应的优先级与快速服务接口的接口标识对应。The data stream is added to the queue corresponding to the first tuple information; wherein the queues have different priorities; and the priorities corresponding to the queues correspond to the interface identifiers of the fast service interfaces.
  10. 根据权利要求9所述的方法,其特征在于,所述将所述数据流加入到所述第一元组信息所对应的队列中,包括:The method according to claim 9, characterized in that the step of adding the data stream to the queue corresponding to the first tuple information comprises:
    根据所述第一元组信息对所述数据流进行模式匹配,确定所述数据流的数据标识;Performing pattern matching on the data stream according to the first tuple information to determine a data identifier of the data stream;
    将所述数据流加入到所述数据流的数据标识所对应的队列中。The data flow is added to a queue corresponding to the data identifier of the data flow.
  11. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    基于队列对应的优先级,对所述数据流进行封装,得到所述第一快速报文;其中,所述第一快速报文的指定组成部分附带有所述第一快速报文的优先级;Encapsulating the data stream based on the priority corresponding to the queue to obtain the first fast message; wherein the designated component of the first fast message is accompanied by the priority of the first fast message;
    根据所述第一快速报文的指定组成部分附带的优先级,将所述第一快速报文加入目标缓存模块中;其中,所述目标缓存模块是针对所述第一接口标识所指代的快速服务接口设置的。According to the priority attached to the designated component of the first fast message, the first fast message is added to a target cache module; wherein the target cache module is set for the fast service interface indicated by the first interface identifier.
  12. 根据权利要求11所述的方法,其特征在于,所述基于队列对应的优先级,对所述数据流进行封装,得到所述第一快速报文,包括:The method according to claim 11, characterized in that the encapsulating the data stream based on the priority corresponding to the queue to obtain the first fast message comprises:
    基于队列对应的优先级,对所述数据流封装对应的帧前导码,得到所述第一快速报文。Based on the priority corresponding to the queue, the data stream is encapsulated with a corresponding frame preamble to obtain the first fast message.
  13. 根据权利要求1至3任一项所述的方法,其特征在于,所述暂停发送所述第二快速报文,包括:The method according to any one of claims 1 to 3, characterized in that the suspending sending of the second fast message comprises:
    在判定所述第二快速报文的发送情况满足抢断条件的情况下,暂停发送所述第二快速报文。When it is determined that the sending of the second fast message meets the interception condition, the sending of the second fast message is suspended.
  14. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that the method further comprises:
    记录所述第二快速报文被抢断的断点;其中,所述断点用于标记所述第二快速报文已经完成发送的部分。Record the breakpoint at which the second fast message is intercepted; wherein the breakpoint is used to mark the part of the second fast message that has been completed.
  15. 根据权利要求1所述的方法,其特征在于,针对发送所述第一快速报文的快速服务接口、发送所述第二快速报文的快速服务接口,分别设置有不同的缓存模块;The method according to claim 1 is characterized in that different cache modules are respectively provided for the fast service interface for sending the first fast message and the fast service interface for sending the second fast message;
    所述快速分组的报文包括时间触发业务流和/或速率受限业务流。The fast grouped messages include time-triggered service flows and/or rate-limited service flows.
  16. 根据权利要求15所述的方法,其特征在于,针对发送可抢占报文的可抢占服务接口设置有缓存模块;The method according to claim 15, characterized in that a cache module is provided for the preemptible service interface that sends the preemptible message;
    所述可抢占报文包括尽力而为业务流。The preemptible messages include best effort service flows.
  17. 根据权利要求16所述的方法,其特征在于,所述快速服务接口的数量范围为2至8,所述可抢占服务接口的数量为1个。The method according to claim 16 is characterized in that the number of the fast service interfaces ranges from 2 to 8, and the number of the preemptible service interfaces is 1.
  18. 一种数据接收方法,其特征在于,所述方法包括:A data receiving method, characterized in that the method comprises:
    在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级;其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口;其中,所述快速服务接口的数量大于等于2;In the case where the received message to be processed belongs to a fast group, determining the priority of the message to be processed; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; wherein the number of the fast service interfaces is greater than or equal to 2;
    分流所述待处理报文至与所述待处理报文的优先级对应的目标处理单元;其中,所述目标处理单元用于确定所述待处理报文的完整性; Diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used to determine the integrity of the message to be processed;
    将所述目标处理单元输出的完整快速报文上送至与所述目标处理单元对应的目标快速服务接口。The complete fast message output by the target processing unit is sent to the target fast service interface corresponding to the target processing unit.
  19. 根据权利要求18所述的方法,其特征在于,在所述在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级之前,所述方法还包括:The method according to claim 18 is characterized in that, before determining the priority of the message to be processed when the received message to be processed belongs to a fast packet, the method further comprises:
    在接收到所述待处理报文后,校验所述待处理报文;After receiving the message to be processed, verifying the message to be processed;
    在所述待处理报文通过校验的情况下,基于所述待处理报文中的第一指定组成部分的取值,确定所述待处理报文属于快速分组;In the case where the message to be processed passes the verification, determining that the message to be processed belongs to a fast group based on the value of the first specified component in the message to be processed;
    相应的,所述确定所述待处理报文的优先级,包括:Correspondingly, determining the priority of the message to be processed includes:
    基于所述待处理报文中的第一指定组成部分的取值,确定所述待处理报文的优先级。The priority of the message to be processed is determined based on the value of the first specified component in the message to be processed.
  20. 根据权利要求19所述的方法,其特征在于,所述方法还包括:The method according to claim 19, characterized in that the method further comprises:
    在所述待处理报文没有通过校验的情况下,丢弃所述待处理报文。If the message to be processed fails to pass the verification, the message to be processed is discarded.
  21. 根据权利要求19所述的方法,其特征在于,所述在接收到所述待处理报文后,校验所述待处理报文,包括:The method according to claim 19, characterized in that after receiving the message to be processed, verifying the message to be processed comprises:
    基于所述待处理报文中的第二指定组成部分的取值,校验所述待处理报文。The message to be processed is verified based on the value of the second specified component in the message to be processed.
  22. 根据权利要求21所述的方法,其特征在于,所述第一指定组成部分为前导码;所述第二指定组成部分为帧定界符。The method according to claim 21 is characterized in that the first designated component is a preamble code; the second designated component is a frame delimiter.
  23. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method according to claim 18, characterized in that the method further comprises:
    在接收到的待处理报文属于可抢占分组的情况下,确定所述待处理报文为可抢占报文;其中,可抢占报文设有优先级,可抢占报文的优先级对应有第二处理单元;第二处理单元对应有可抢占服务接口;In the case where the received to-be-processed message belongs to a preemptible group, determining that the to-be-processed message is a preemptible message; wherein the preemptible message is provided with a priority, and the priority of the preemptible message corresponds to a second processing unit; and the second processing unit corresponds to a preemptible service interface;
    分流所述可抢占报文至所述第二处理单元;其中,所述第二处理单元用于确定所述可抢占报文的完整性;Diverting the preemptible message to the second processing unit; wherein the second processing unit is used to determine the integrity of the preemptible message;
    将所述第二处理单元输出的完整可抢占报文上送至与所述第二处理单元对应的可抢占服务接口。The complete preemptible message output by the second processing unit is sent to the preemptible service interface corresponding to the second processing unit.
  24. 根据权利要求23所述的方法,其特征在于,所述不同的快速服务接口分别设置有不同的缓存模块;所述可抢占服务接口也设置有缓存模块;The method according to claim 23, characterized in that 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 grouped messages include time-triggered flows and/or rate-limited flows;
    所述可抢占分组的报文包括尽力而为业务流。The preemptible packet message includes a best effort service flow.
  25. 根据权利要求24所述的方法,其特征在于,所述快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个。The method according to claim 24 is characterized in that the number of the fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1.
  26. 根据权利要求18所述的方法,其特征在于,确定所述待处理报文的完整性的方式,至少包括以下之一:The method according to claim 18, characterized in that the manner of determining the integrity of the message to be processed comprises at least one of the following:
    在判定所述待处理报文为完整的数据帧的情况下,则确定待处理报文是完整的;In the case where it is determined that the message to be processed is a complete data frame, determining that the message to be processed is complete;
    在判定所述待处理报文为不完整的数据帧的情况下,则基于帧定界符和片段计数对所述待处理报文进行组帧,得到完整的数据帧。In the case where it is determined that the message to be processed is an incomplete data frame, the message to be processed is framed based on a frame delimiter and a fragment count to obtain a complete data frame.
  27. 一种数据发送方法,其特征在于,应用于MAC客户端,所述方法包括:A data sending method, characterized in that it is applied to a MAC client, the method comprising:
    在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第一抢断控制信号;When a first fast message is received and a second fast message is being sent, a first interception control signal is sent to the MAC merging sublayer based on the first tuple information of the first fast message;
    其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;The first fast message and the second fast message belong to fast packets respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier;
    所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快 速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The first interception control signal is used to instruct the MAC merging sublayer to control the second fast The sending of the fast message through the fast service interface indicated by the second interface identifier is suspended, and the sending of the first fast message through the fast service interface indicated by the first interface identifier is controlled to start.
  28. 一种数据发送方法,其特征在于,应用于MAC合并子层,所述方法包括:A data transmission method, characterized in that it is applied to a MAC merging sublayer, the method comprising:
    在接收到第一快速报文,且正在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;In the case where a first fast message is received and a second fast message is being sent, a first interception control signal is received; wherein the first interception control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface indicated by the second interface identifier;
    根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。According to the intercept indication and the first interface identifier, the second fast message is controlled to suspend sending through the fast service interface indicated by the second interface identifier, and the first fast message is controlled to start sending through the fast service interface indicated by the first interface identifier.
  29. 一种芯片,其特征在于,所述芯片具有第一快速服务接口、第二快速服务接口、可抢占服务接口;其中,A chip, characterized in that the chip has a first fast service interface, a second fast service interface, and a preemptible service interface; wherein,
    所述第一快速服务接口、所述第二快速服务接口位于MAC合并子层、MAC客户端之间,以用于在所述MAC合并子层、所述MAC客户端之间传输快速报文;The first fast service interface and the second fast service interface are located between the MAC merging sublayer and the MAC client, so as to transmit fast messages between the MAC merging sublayer and the MAC client;
    所述可抢占服务接口位于所述MAC合并子层、所述MAC客户端之间,以用于在所述MAC合并子层、所述MAC客户端之间传输可抢占报文;The preemptible service interface is located between the MAC merging sublayer and the MAC client, so as to transmit the preemptible message between the MAC merging sublayer and the MAC client;
    所述MAC合并子层向提供MAC客户端提供有MAC合并服务接口;其中,所述MAC合并服务接口用于接收所述MAC客户端发送的抢断控制信号,所述抢断控制信号附带有抢断指示、接口标识;其中,所述接口标识以及所述抢断指示用于在所述第一快速服务接口、所述第二快速服务接口、所述可抢占服务接口中确定能够传输报文的目标服务接口。The MAC merging sublayer provides a MAC merging service interface to the MAC client; wherein the MAC merging service interface is used to receive a preemption control signal sent by the MAC client, and the preemption control signal is accompanied by a preemption indication and an interface identifier; wherein the interface identifier and the preemption indication are used to determine a target service interface that can transmit messages among the first fast service interface, the second fast service interface, and the preemptible service interface.
  30. 根据权利要求29所述的芯片,其特征在于,所述第一快速服务接口、所述第二快速服务接口分别设置有不同的缓存模块;所述可抢占服务接口也设置有缓存模块;The chip according to claim 29, characterized in that 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 includes at least one of a time-triggered service flow and a rate-limited service flow;
    所述可抢占报文为尽力而为业务流。The preemptible message is a best-effort service flow.
  31. 根据权利要求30所述的芯片,其特征在于,快速服务接口的数量范围为2至8,可抢占服务接口的数量为1个;The chip according to claim 30, characterized in that the number of fast service interfaces ranges from 2 to 8, and the number of preemptible service interfaces is 1;
    所述第一快速服务接口对应的第一eMAC层、所述第二快速服务接口对应的第二eMAC层为传输快速报文的传输通道;The first eMAC layer corresponding to the first fast service interface and the second eMAC layer corresponding to the second fast service interface are transmission channels for transmitting fast messages;
    所述可抢占服务接口对应的pMAC层为传输可抢占报文的传输通道;The pMAC layer corresponding to the preemptible service interface is a transmission channel for transmitting preemptible messages;
    其中,所述MAC层包括所述MAC合并子层、所述第一eMAC层、所述第二eMAC层、所述pMAC层。The MAC layer includes the MAC merging sublayer, the first eMAC layer, the second eMAC layer, and the pMAC layer.
  32. 根据权利要求29所述的芯片,其特征在于,所述MAC合并子层包括第一快速报文过滤模块、第二快速报文过滤模块、接收处理模块、校验模块、传输处理模块、与所述第一快速报文过滤模块对应的第一服务接口、与所述第二快速报文过滤模块对应的第二服务接口、与所述接收处理模块对应的第三服务接口;其中,The chip according to claim 29 is characterized in that the MAC merging sublayer includes a first fast message filtering module, a second fast message filtering module, a receiving processing module, a verification module, a transmission processing module, a first service interface corresponding to the first fast message filtering module, a second service interface corresponding to the second fast message filtering module, and a third service interface corresponding to the receiving processing module; wherein,
    所述第一快速报文过滤模块,用于过滤需要进入第一快速服务接口的快速报文;The first fast message filtering module is used to filter the fast messages that need to enter the first fast service interface;
    所述第二快速报文过滤模块,用于过滤需要进入第二快速服务接口的快速报文;The second fast message filtering module is used to filter the fast messages that need to enter the second fast service interface;
    所述接收处理模块,用于接收可抢占报文,并对所述可抢占报文进行处理。The receiving and processing module is used to receive the preemptible message and process the preemptible message.
  33. 一种数据发送装置,其特征在于,所述装置包括: A data sending device, characterized in that the device comprises:
    控制信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息发送第一抢断控制信号;其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;A control signal sending module, configured to send a first interception control signal based on the first tuple information of the first fast message when a first fast message is received and a second fast message is being sent; wherein the first fast message and the second fast message belong to a fast group respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; and the second fast message is being sent through the fast service interface indicated by the second interface identifier;
    报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。A message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  34. 一种数据接收装置,其特征在于,所述装置包括:A data receiving device, characterized in that the device comprises:
    优先级确定模块,用于在接收到的待处理报文属于快速分组的情况下,确定所述待处理报文的优先级;其中,不同的优先级对应有不同的第一处理单元;不同的第一处理单元对应有不同的快速服务接口;所述快速服务接口的数量大于等于2;A priority determination module, used for determining the priority of the message to be processed when the received message to be processed belongs to a fast group; wherein different priorities correspond to different first processing units; different first processing units correspond to different fast service interfaces; the number of the fast service interfaces is greater than or equal to 2;
    报文分流模块,用于分流所述待处理报文至与所述待处理报文的优先级对应的目标处理单元;其中,所述目标处理单元用于确定所述待处理报文的完整性;A message diversion module, used for diverting the message to be processed to a target processing unit corresponding to the priority of the message to be processed; wherein the target processing unit is used for determining the integrity of the message to be processed;
    报文上送模块,用于将所述目标处理单元输出的完整快速报文上送至与所述目标处理单元对应的目标快速服务接口。The message sending module is used to send the complete fast message output by the target processing unit to the target fast service interface corresponding to the target processing unit.
  35. 一种数据发送装置,其特征在于,应用于MAC客户端,所述装置包括:A data sending device, characterized in that it is applied to a MAC client, and the device comprises:
    抢断信号发送模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,基于所述第一快速报文的第一元组信息向MAC合并子层发送第一抢断控制信号;A preemption signal sending module, configured to send a first preemption control signal to the MAC merging sublayer based on the first tuple information of the first fast message when the first fast message is received and the second fast message is being sent;
    其中,所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;The first fast message and the second fast message belong to fast packets respectively; the first interception control signal is accompanied by an interception indication and a first interface identifier corresponding to the first tuple information; the second fast message is being sent through a fast service interface indicated by the second interface identifier;
    所述第一抢断控制信号用于指示所述MAC合并子层根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。The first preemption control signal is used to instruct the MAC merging sublayer to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier, and to control the first fast message to start sending through the fast service interface indicated by the first interface identifier according to the preemption indication and the first interface identifier.
  36. 一种数据发送装置,其特征在于,应用于MAC合并子层,所述装置包括:A data sending device, characterized in that it is applied to a MAC merging sublayer, and the device comprises:
    抢断信号接收模块,用于在接收到第一快速报文,且正在发送第二快速报文的情况下,接收到第一抢断控制信号;其中,所述第一抢断控制信号是基于所述第一快速报文的第一元组信息而确定的;所述第一快速报文和所述第二快速报文分别属于快速分组;所述第一抢断控制信号附带有抢断指示、与所述第一元组信息对应的第一接口标识;其中,所述第一接口标识用于指代发送所述第一快速报文的快速服务接口;其中,所述第二快速报文通过第二接口标识指代的快速服务接口正在发送;A steal signal receiving module, used for receiving a first steal control signal when a first fast message is received and a second fast message is being sent; wherein the first steal control signal is determined based on the first tuple information of the first fast message; the first fast message and the second fast message belong to a fast group respectively; the first steal control signal is accompanied by a steal indication and a first interface identifier corresponding to the first tuple information; wherein the first interface identifier is used to refer to a fast service interface for sending the first fast message; wherein the second fast message is being sent through the fast service interface indicated by the second interface identifier;
    报文发送控制模块,用于根据所述抢断指示以及所述第一接口标识,控制所述第二快速报文通过所述第二接口标识指代的快速服务接口暂停发送,并控制所述第一快速报文通过所述第一接口标识指代的快速服务接口开始发送。A message sending control module is used to control the second fast message to suspend sending through the fast service interface indicated by the second interface identifier according to the interception indication and the first interface identifier, and control the first fast message to start sending through the fast service interface indicated by the first interface identifier.
  37. 一种电子设备,其特征在于,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行如权利要求1至28任一项所述的方法。An electronic device, characterized in that it includes a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method according to any one of claims 1 to 28.
  38. 一种芯片,其特征在于,所述芯片包括至少一个处理器、接口电路和存储器,所述存储器、所述接口电路和所述至少一个处理器通过线路互联,所述存储器中存储有计算机程序,所述计算机程序被所述至少一个处理器执行时,所述芯片实现权利要求1至28任一项所述的方法。 A chip, characterized in that the chip includes at least one processor, an interface circuit and a memory, the memory, the interface circuit and the at least one processor are interconnected by lines, 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 claims 1 to 28.
  39. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1至28任一项所述的方法。 A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method described in any one of claims 1 to 28.
PCT/CN2023/122964 2022-10-20 2023-09-28 Data sending method and apparatus, data receiving method and apparatus, electronic device, chip, and storage medium WO2024082960A1 (en)

Applications Claiming Priority (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
CN202211288395.0 2022-10-20

Publications (1)

Publication Number Publication Date
WO2024082960A1 true WO2024082960A1 (en) 2024-04-25

Family

ID=84073895

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

Country Link
CN (1) CN115378874B (en)
WO (1) WO2024082960A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784418A (en) * 2019-10-24 2020-02-11 烽火通信科技股份有限公司 Data sending method and system based on time delay constraint
CN112105080A (en) * 2020-11-18 2020-12-18 之江实验室 Time-sensitive network data transmission system and transmission method
CN115086247A (en) * 2021-03-02 2022-09-20 中兴通讯股份有限公司 Frame preemption method, device, equipment and storage medium
US20220303083A1 (en) * 2021-03-18 2022-09-22 Electronics And Telecommunications Research Institute Apparatus and method for providing frame preemption
CN115378874A (en) * 2022-10-20 2022-11-22 北京智芯微电子科技有限公司 Data transmitting and receiving method, device, electronic equipment, chip and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
CN112311496A (en) * 2019-07-26 2021-02-02 华为技术有限公司 Data transmission method and device
CN113596628A (en) * 2020-04-30 2021-11-02 中兴通讯股份有限公司 Service transmission method, device, sending end and storage medium
US20220123880A1 (en) * 2021-12-24 2022-04-21 Intel Corporation Method and apparatus for frame preemption in downlink communications for next generation wi-fi
CN114448894B (en) * 2022-02-10 2024-01-05 上海交通大学 Multi-level service scheduling engine for time sensitive network and implementation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784418A (en) * 2019-10-24 2020-02-11 烽火通信科技股份有限公司 Data sending method and system based on time delay constraint
CN112105080A (en) * 2020-11-18 2020-12-18 之江实验室 Time-sensitive network data transmission system and transmission method
CN115086247A (en) * 2021-03-02 2022-09-20 中兴通讯股份有限公司 Frame preemption method, device, equipment and storage medium
US20220303083A1 (en) * 2021-03-18 2022-09-22 Electronics And Telecommunications Research Institute Apparatus and method for providing frame preemption
CN115378874A (en) * 2022-10-20 2022-11-22 北京智芯微电子科技有限公司 Data transmitting and receiving method, device, electronic equipment, chip and storage medium

Also Published As

Publication number Publication date
CN115378874A (en) 2022-11-22
CN115378874B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
WO2024082960A1 (en) Data sending method and apparatus, data receiving method and apparatus, electronic device, chip, and storage medium
CN112105080B (en) Time-sensitive network data transmission system and transmission method
US6198722B1 (en) Flow control method for networks
US5568476A (en) Method and apparatus for avoiding packet loss on a CSMA/CD-type local area network using receive-sense-based jam signal
US7519076B2 (en) Method and node for using a communication network in parallel for real-time applications and non-real-time applications
US6098103A (en) Automatic MAC control frame generating apparatus for LAN flow control
US6118761A (en) Apparatus and method for generating rate control frames in a workgroup switch based on traffic contribution from a network switch port
US7570654B2 (en) Switching device utilizing requests indicating cumulative amount of data
CN110870285B (en) Method for high-performance data transmission in data networks with partial real-time requirements and device for carrying out said method
EP3993293A1 (en) Data transmission method and apparatus
EP2050199B1 (en) Expedited communication traffic handling apparatus and methods
US8059686B2 (en) Method, apparatus and system for guaranteed packet delivery times in asynchronous networks
EP1265407B1 (en) Transmitting apparatus and method of controlling flow thereof
US10999222B2 (en) Network device and method for selecting transmission of network device
CN109639560B (en) Method for improving availability of real-time computer network
CN111294291B (en) Protocol message processing method and device
EP3557824A1 (en) Network device and queue management method for network device
WO2002001785A1 (en) Media access control for isochronous data packets in carrier sensing multiple access systems
US7130271B1 (en) Relaying apparatus
CN111970271B (en) Preemptive scheduling method and device for TSN (transport stream network) message
CN117675606A (en) Time-sensitive network resource scheduling algorithm combination method based on digital simulation
EP3459216B1 (en) System and method for mtu size reduction in a packet network
US20230353422A1 (en) Network Switch, Communication System and Method for Operating a Communication System for Transmitting Time-Critical Data
Hassani et al. Work-in-progress: Layering concerns for the analysis of credit-based shaping in IEEE 802.1 TSN
WO2023207628A1 (en) Packet transmission method and packet forwarding device