WO2022042543A1 - Procédé de réémission pour trame ethernet avec erreur et appareil associé - Google Patents

Procédé de réémission pour trame ethernet avec erreur et appareil associé Download PDF

Info

Publication number
WO2022042543A1
WO2022042543A1 PCT/CN2021/114293 CN2021114293W WO2022042543A1 WO 2022042543 A1 WO2022042543 A1 WO 2022042543A1 CN 2021114293 W CN2021114293 W CN 2021114293W WO 2022042543 A1 WO2022042543 A1 WO 2022042543A1
Authority
WO
WIPO (PCT)
Prior art keywords
ethernet frame
ethernet
retransmitted
identifier
frame
Prior art date
Application number
PCT/CN2021/114293
Other languages
English (en)
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 WO2022042543A1 publication Critical patent/WO2022042543A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1812Hybrid protocols; Hybrid automatic repeat request [HARQ]
    • H04L1/1816Hybrid protocols; Hybrid automatic repeat request [HARQ] with retransmission of the same, encoded, message

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a method and related apparatus for retransmission of Ethernet error frames.
  • the store and forward mode is a commonly used transmission mode in the Ethernet system.
  • the node device first buffers the incoming data packets from the ingress side to check the correctness of the frame (for example, based on cyclic redundancy check technology); after confirming that the packet is correct, according to the frame header
  • the destination address carried is checked in the table to find the output port address that needs to be sent, and then the data packet is sent out. Because the node device needs to buffer the entire frame on the ingress side, the buffering delay is long, which affects the transmission efficiency.
  • CUT-Through cut-through switching
  • the node device detects a data packet on the ingress side, it buffers a part of the Ethernet frame (for example, the part used for addressing), and then looks up the table according to the destination address contained in this part to find the The output port address you want to send, and then send the packet out.
  • the CUT-Through method can greatly reduce the transmission delay.
  • the node device since the CUT-Through method does not cache the complete data packet, in the case of an error in the data packet, the node device cannot discard the erroneous data packet after detecting the data packet error (because the data packet starts to search after a part of the data packet is buffered. address forwarded). Therefore, in the case of using the CUT-Through method, in order to ensure the reliability of the data, it is necessary to rely on the verification mechanism of the upper layer of the receiving end to verify the received data packets, such as cyclic redundancy check (CRC) . When the receiver detects that it has received an erroneous packet, it needs to send a retransmission request to the initiator. Then, the transmission delay of this packet will be 3 times the transmission delay when no error occurs. How to improve the retransmission efficiency of Ethernet error frames is an urgent problem to be solved by those skilled in the art.
  • CRC cyclic redundancy check
  • Embodiments of the present application provide a method and a related device for retransmission of Ethernet error frames, which can improve the retransmission efficiency of Ethernet error frames.
  • an embodiment of the present application provides a method for retransmitting an Ethernet error frame, the method comprising: receiving an Ethernet frame; verifying the Ethernet frame; when the Ethernet frame verification fails , modifying the Ethernet frame, where the modified Ethernet frame includes a first identifier, where the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted; and the modified Ethernet frame is sent.
  • the first identifier can indicate whether the erroneous Ethernet frame will be recovered by local retransmission
  • the destination device receiving the erroneous Ethernet frame can choose whether to initiate a global retransmission request according to the first identifier, which can save
  • the transmission time of error frames improves the retransmission efficiency of Ethernet error frames.
  • the modified Ethernet frame further includes a second identifier, where the second identifier is used to indicate that the modified Ethernet frame is invalid.
  • whether the Ethernet frame is valid can be determined through the second identifier.
  • the retransmitted Ethernet frame is obtained; the retransmitted Ethernet frame is checked; When the retransmitted Ethernet frame is successfully verified, the retransmitted Ethernet frame is sent.
  • the node device in the transmission process can obtain the retransmitted Ethernet frame. Then, the destination device receiving the Ethernet frame does not need to send a global retransmission request to the sending device of the Ethernet frame, which saves the transmission time of the error frame and improves the retransmission efficiency of the Ethernet error frame.
  • the obtaining the retransmitted Ethernet frame includes: sending a partial retransmission request for the Ethernet frame; receiving a partial retransmission request sent in response to the partial retransmission request Retransmitted Ethernet frame.
  • the obtaining the retransmitted Ethernet frame includes: performing recovery processing on the Ethernet frame to obtain the retransmitted Ethernet frame.
  • the Ethernet frame is sent.
  • the Ethernet frame check fails and is invalid, it indicates that the Ethernet frame has been modified; then the Ethernet frame does not need to be modified this time.
  • the method before the modification of the Ethernet frame, the method further includes: determining whether the Ethernet frame has been modified, and if not, performing modification The step of the Ethernet frame; if it has been modified, the Ethernet frame is not modified, and the Ethernet frame is directly sent.
  • the first identifier is located after the payload field of the Ethernet frame.
  • the manner in which the first identifier is located after the payload field can facilitate the modification of the Ethernet frame.
  • the checking the Ethernet frame includes: checking the Ethernet frame and sending some bits in the Ethernet frame; the Sending the modified Ethernet frame includes: continuing to send bits in the modified Ethernet frame after the partial bits are removed.
  • the embodiments of the present application provide another method for retransmitting an Ethernet error frame, the method includes: receiving an Ethernet frame, and verifying the Ethernet frame; when the Ethernet frame verification is successful If the Ethernet frame is invalid, check whether the Ethernet frame will be partially retransmitted; when it is detected that the Ethernet frame will be partially retransmitted, wait for receiving Retransmitted Ethernet frame.
  • the destination device waits to receive the retransmitted Ethernet frame, and does not need to send any further messages to the Ethernet frame.
  • the sending device sends a global retransmission request, which can save the transmission time of error frames and improve the retransmission efficiency of Ethernet error frames.
  • the second identifier is used to indicate that the Ethernet frame is invalid, and the detecting whether the Ethernet frame is valid includes: detecting whether the Ethernet frame contains the second If it is included, it is determined that the Ethernet frame is invalid; if it is not included, it is determined that the Ethernet frame is valid. In this implementation manner, whether the Ethernet frame is valid can be determined by using the second identifier.
  • the Ethernet frame includes a second identifier, and the second identifier is used to indicate whether the Ethernet frame is valid, and the detecting whether the Ethernet frame is valid , including: determining whether the Ethernet frame is valid according to the second identifier; if the second identifier is in the first state, determining that the Ethernet frame is invalid; if the second identifier is in the second state, then It is determined that the Ethernet frame is valid.
  • whether the Ethernet frame is valid can be determined by using the second identifier.
  • the Ethernet frame includes a first identifier, and the first identifier is used to indicate whether the Ethernet frame is to be partially retransmitted, and the detecting the Ethernet frame Whether the network frame will be partially retransmitted includes: determining whether the Ethernet frame will be partially retransmitted according to the first identifier; if the first identifier is in the fourth state, determining that the Ethernet frame will be partially retransmitted transmission; if the first identifier is in the fifth state, it is determined that the Ethernet frame will not be partially retransmitted. In this implementation manner, whether the Ethernet frame will be partially retransmitted may be determined by the first identifier.
  • the method further includes: when it is detected that the Ethernet frame will not be locally retransmitted, sending a global retransmission request for the Ethernet frame.
  • the method further includes: when the Ethernet frame check fails, determining whether the Ethernet frame can be recovered locally; when determining whether the Ethernet frame can be recovered locally; Local recovery is performed on the Ethernet frame when it can be recovered locally.
  • the method further includes: when it is detected that the Ethernet frame cannot be recovered locally, sending a global retransmission request for the Ethernet frame.
  • the method further includes: when the Ethernet frame check fails, determining whether the Ethernet frame can be recovered locally, including: when the Ethernet frame fails When the frame check fails, it is detected whether the Ethernet frame is valid; if the Ethernet frame is valid, it is determined whether the Ethernet frame can be recovered locally.
  • the Ethernet frame check fails and is valid, indicating that an error occurs in the transmission of the Ethernet frame on the Ethernet link between the destination device and the previous node device, and the Ethernet frame is in the Ethernet link. If no errors occurred during the previous transmission, the destination device attempts to recover the Ethernet frame. Therefore, the destination device does not need to send a global retransmission request to the sending device of the Ethernet frame, which saves the transmission time of the erroneous frame and improves the retransmission efficiency of the Ethernet erroneous frame.
  • the method further includes: if the Ethernet frame is invalid, waiting to receive a retransmitted Ethernet frame.
  • the Ethernet frame check fails and is invalid, indicating that the Ethernet frame has an error in the transmission of the Ethernet link between the destination device and the previous node device, and the Ethernet frame has been transmitted before the Ethernet link. If an error occurs and the Ethernet frame has been modified, the destination device can wait for the retransmitted Ethernet frame obtained by the receiving node device. Therefore, the destination device does not need to send a global retransmission request to the sending device of the Ethernet frame, which saves the transmission time of the erroneous frame and improves the retransmission efficiency of the Ethernet erroneous frame.
  • the method further includes: if the current time is more than a preset time period from the time when the Ethernet frame is received , a global retransmission request for the Ethernet frame is sent.
  • the destination device in order to ensure that the correct Ethernet frame can be obtained, the destination device will send a global retransmission request for the Ethernet frame when it is detected that the waiting duration exceeds the preset duration.
  • an embodiment of the present application provides a communication device, the communication device includes a receiving unit, a checking unit, a modifying unit, and a sending unit, wherein: the receiving unit is configured to receive an Ethernet frame; The verification unit is used to verify the Ethernet frame; the modification unit is used to modify the Ethernet frame when the Ethernet frame verification fails, and the modified Ethernet frame includes the first identifier , the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted; the sending unit is used to send the modified Ethernet frame.
  • the modified Ethernet frame further includes the second identifier, where the second identifier is used to indicate that the modified Ethernet frame is invalid.
  • the communication device further includes an acquisition unit, the acquisition unit is configured to acquire the retransmitted Ethernet frame in the case that the Ethernet frame will be partially retransmitted network frame; the verification unit is further configured to verify the retransmitted Ethernet frame; the sending unit is further configured to send the retransmitted Ethernet frame when the verification of the retransmitted Ethernet frame is successful Retransmitted Ethernet frame.
  • the obtaining unit is specifically configured to: send a partial retransmission request for the Ethernet frame; receive a retransmitted Ethernet frame sent in response to the partial retransmission request web frame.
  • the obtaining unit is specifically configured to: perform recovery processing on the Ethernet frame to obtain the retransmitted Ethernet frame.
  • the first identifier is located after the payload field of the Ethernet frame.
  • the check unit is specifically configured to: check the Ethernet frame and send some bits in the Ethernet frame; the sending unit is specifically configured to: To: continue to send bits in the modified Ethernet frame after the partial bits are removed.
  • an embodiment of the present application provides a communication device, the communication device includes a verification unit, a first detection unit, a second detection unit, and a receiving unit, wherein: the verification unit is configured to receive Ethernet frame, to verify the Ethernet frame; the first detection unit is used to detect whether the Ethernet frame is valid when the Ethernet frame verification is successful; the second detection unit is used to If the Ethernet frame is invalid, detect whether the Ethernet frame will be partially retransmitted; the receiving unit is configured to wait for receiving the retransmitted Ethernet frame when it is detected that the Ethernet frame will be partially retransmitted web frame.
  • the second identifier is used to indicate that the Ethernet frame is invalid
  • the first detection unit is specifically configured to: detect whether the Ethernet frame contains the second identifier; if If it is included, it is determined that the Ethernet frame is invalid; if it is not included, it is determined that the Ethernet frame is valid.
  • the Ethernet frame includes a second identifier, and the second identifier is used to indicate whether the Ethernet frame is valid, and the first detection unit is specifically configured to: Determine whether the Ethernet frame is valid according to the second identifier; if the second identifier is in the first state, determine that the Ethernet frame is invalid; if the second identifier is in the second state, determine the Ethernet frames are valid.
  • the Ethernet frame includes a first identifier, and the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted, and the second detection unit It is specifically used to: determine whether the Ethernet frame will be partially retransmitted according to the first identifier; if the first identifier is in the fourth state, determine that the Ethernet frame will be partially retransmitted; If it is identified as the fifth state, it is determined that the Ethernet frame will not be partially retransmitted.
  • the communication apparatus further includes a first sending unit, where the first sending unit is configured to: when it is detected that the Ethernet frame will not be partially retransmitted, A global retransmission request for the Ethernet frame is sent.
  • the communication device further includes a determination unit and a recovery unit, and the determination unit is configured to determine the Ethernet frame when the Ethernet frame check fails Whether it can be recovered locally; the recovery unit is configured to perform local recovery on the Ethernet frame when it is determined that the Ethernet frame can be recovered locally.
  • the determining unit is specifically configured to: when the Ethernet frame check fails, detect whether the Ethernet frame is valid; if the Ethernet frame is valid, It is then determined whether the Ethernet frame can be recovered locally.
  • the receiving unit is further configured to: if the Ethernet frame is invalid, wait to receive the retransmitted Ethernet frame.
  • the communication device further includes a second sending unit, and the second sending unit is configured to: if the current time is more than a preset time from the time when the Ethernet frame is received duration, then send a global retransmission request for the Ethernet frame.
  • the present application provides yet another communication device, the communication device includes a processor, a memory, and a transceiver; the transceiver is used to receive Ethernet frames; the memory is used to store program codes; The processor is configured to call the program code from the memory to execute the method described in the first aspect or any possible implementation manner of the first aspect.
  • the present application provides yet another communication device, the communication device includes a processor, a memory, and a transceiver; the transceiver is used to receive Ethernet frames; the memory is used to store program codes; The processor is configured to call the program code from the memory to execute the method described in the second aspect or any possible implementation manner of the second aspect.
  • the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions, and when the instructions are executed, the first aspect or any one of the first aspect may be possible.
  • the method described by the implementation is implemented.
  • the present application provides another computer-readable storage medium, where the computer-readable storage medium is used to store instructions, and when the instructions are executed, make the second aspect or any one of the second aspects described above. Possible implementations The described method is implemented.
  • the present application provides a chip system
  • the chip system includes at least one processor and an interface for supporting the first device to implement the functions involved in the first aspect, for example, receiving or processing the functions involved in the above method. at least one of the data and information.
  • the chip system further includes a memory for storing necessary program instructions and data of the site.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the present application provides another chip system
  • the chip system includes at least one processor and an interface for supporting the first device to implement the functions involved in the second aspect, for example, receiving or processing the functions involved in the above method. At least one of the data and information involved.
  • the chip system further includes a memory for storing necessary program instructions and data of the access point.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the first identifier may indicate whether the erroneous Ethernet frame will be recovered by local retransmission, and the destination device that receives the erroneous Ethernet frame may select whether to initiate a global retransmission request according to the first identifier, It can save the transmission time of error frames and improve the retransmission efficiency of Ethernet error frames.
  • FIG. 1 is a schematic diagram of a frame format of an Ethernet frame provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a system architecture of an Ethernet system provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a retransmission process of an Ethernet error frame provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a retransmission process of another Ethernet error frame provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for retransmitting an Ethernet error frame provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of a frame format of another Ethernet frame provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a frame format of another Ethernet frame provided by an embodiment of the present application.
  • 8A is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • FIG. 8B is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application
  • 9A is a schematic diagram of a retransmission process of another Ethernet error frame provided by an embodiment of the present application.
  • 9B is a schematic diagram of a retransmission process of another Ethernet error frame provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a retransmission process of another Ethernet error frame provided by an embodiment of the present application.
  • 11A is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • 11B is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a communication device provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another communication device provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another communication device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • Ethernet is a computer local area network.
  • the application scenario of the present application may be an Ethernet based on the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standard or the IEEE 802.1 standard, or an Ethernet based on the IEEE 802.3 next-generation standard.
  • IEEE Institute of Electrical and Electronics Engineers
  • FIG. 1 is a schematic diagram of a frame format of an Ethernet frame provided by an embodiment of the present application.
  • the Ethernet frame can contain the following fields:
  • the preamble field alternates between 1 and 0 of the preamble.
  • the adapter at the receiving end can adjust the clock frequency according to the preamble field when receiving a media access control (media access control, MAC) frame, so that it is synchronized with the frequency of the sending end.
  • the frame start delimiter (SFD) field includes 1 byte, in which the first six bits of the 8 bits are alternated with 1 and 0, and the last two bits are continuous 1, indicating that the subsequent content is frame information.
  • the destination address field including 6 bytes, is used to indicate the media access control (media access control, MAC) address of the receiving device of the Ethernet frame.
  • the source address field including 6 bytes, is used to indicate the MAC address of the sending device of the Ethernet frame.
  • the type field is used to mark the protocol used by the upper layer, so that the payload field of the received MAC frame can be handed over to the protocol of the upper layer.
  • IP Internet Protocol
  • ARP Address Resolution Protocol
  • RARP Reverse Address Resolution Protocol
  • the 2 bytes where the type field is located is the length field, which is used to indicate the length of the payload field.
  • the field can be determined according to the numerical value of this field.
  • the payload field also known as the payload field or the data field, includes the data that needs to be delivered to the upper layer. Among them, the minimum length of Ethernet frame data is 46 bytes, and the maximum is 1500 bytes (or 1504, 1982 bytes, different standards can have different regulations), if the data is less than 46 bytes, it will use Padding bytes are padded to the minimum length. The maximum value is also called the maximum transmission unit (MTU).
  • the Frame Check Sequence (FCS) field consisting of 4 bytes, is used to detect whether an error has occurred in the Ethernet frame.
  • the Ethernet frame may also include an extension field.
  • the node device verifies the received Ethernet frame. If the verification is successful, it indicates that there is no error in the transmission of the Ethernet frame between the node device and the previous node device; if the verification fails , indicating that the Ethernet frame has an error during the transmission of the Ethernet link between the node device and the previous node device.
  • the Ethernet frame can be checked by means of CRC check.
  • the principle of CRC check is: the sending device calculates the CRC value according to the preset calculation method according to the data to be sent, and sends it to the receiving device together with the data.
  • the FCS field contains a CRC value.
  • the receiving device calculates the CRC value according to the same calculation method for the received data, and then the receiving device compares the received CRC value with the calculated CRC value. Specifically, if the two CRC values are different, the Ethernet frame check fails; if the two CRC values are the same, the Ethernet frame check succeeds.
  • the node device cannot know whether an error occurred in the previous transmission process of the Ethernet frame through the check result. For example, if the Ethernet frame sent by the previous node device to the node device is originally a wrong Ethernet frame, and the wrong Ethernet frame is in the transmission process of the Ethernet link from the previous node device to the node device. If no error occurs, then the verification of the Ethernet frame by the node device is also successful.
  • the node device may also use other check methods for the Ethernet frame, for example, check sum (check sum), bit interleaved parity (bit interleaved parity, BIP), etc., and the embodiment of the present application does not limit the checksum The way.
  • check sum check sum
  • bit interleaved parity bit interleaved parity, BIP
  • the embodiment of the present application does not limit the checksum The way.
  • the following embodiments mainly take the CRC check as an example for introduction.
  • the destination device is the device that finally receives the Ethernet frame, and the MAC address of the destination device is the same as the MAC address contained in the destination address field in the Ethernet frame.
  • Ethernet frame if the Ethernet frame is valid, it means that there is no error in the transmission process of the Ethernet frame before the Ethernet link between the destination device and the previous node device; if the Ethernet frame is invalid, it means that the Ethernet frame is between the destination device and the previous node device. An error occurred during the previous transmission of the Ethernet link of the previous node device.
  • the method for determining whether the Ethernet frame is valid will be introduced in detail.
  • the node device can obtain the retransmitted Ethernet frame by means of partial retransmission.
  • the meaning of local retransmission is: the node device recovers the Ethernet frame through its own capabilities, and obtains the retransmitted Ethernet frame; The Ethernet link with the previous node device obtains the retransmitted Ethernet frame from the previous node device.
  • the retransmission request for the Ethernet frame sent by the node device to the previous node device may be referred to as a partial retransmission request.
  • the node device after acquiring the retransmitted Ethernet frame, the node device sends the retransmitted Ethernet frame to the next node device.
  • the meaning of global retransmission is: the destination device sends a retransmission request for the Ethernet frame to the source device, and obtains the retransmission from the source device through the Ethernet link between the destination device and the source device.
  • Ethernet frame The source device is a device that generates the Ethernet frame, and the MAC address of the source device is the same as the MAC address included in the source address field of the Ethernet frame.
  • the retransmission request for the Ethernet frame sent by the destination device to the source device may be called a global retransmission request.
  • the recovered Ethernet frame may be acquired in a local recovery manner.
  • the meaning of local recovery is: the destination device recovers the Ethernet frame through its own capabilities, and obtains the recovered Ethernet frame; An Ethernet link between node devices obtains recovered Ethernet frames from the previous node device. After acquiring the recovered Ethernet frame, the destination device verifies the recovered Ethernet frame again, and for the subsequent operations, please refer to the introduction in the subsequent content.
  • FIG. 2 it is a schematic diagram of a system architecture of an Ethernet system provided by an embodiment of the present application.
  • the Ethernet system includes computer equipment (for example, a first computer equipment, a second computer equipment) and switches (for example, a first switch, a second switch, and a third switch).
  • node devices are connected by Ethernet links to realize data transmission.
  • the Ethernet system includes at least two node devices, and may include more or less devices than those shown in FIG. 2 , which is not limited here, and only FIG. 2 is used as an example. in:
  • Computer equipment which can be used to realize functions such as data generation, reception, data transmission, and data processing.
  • the computer device may also be a network device such as a server (for example, a network management server, a device management server, an authentication server, and a positioning server).
  • a server for example, a network management server, a device management server, an authentication server, and a positioning server.
  • the switch can be used to realize functions such as data transmission. It can send the data to be transmitted to the destination address according to the information transmission requirements of both ends of the communication.
  • the switch may also be a network connection device such as a network card, a hub, and a router.
  • the first computer device generates an Ethernet frame and sends the Ethernet frame to the second computer device.
  • the Ethernet links "first computer device-first switch”, “first switch-second switch”, “second switch-third switch” and “third switch-first switch” Two Computer Devices”, and Ethernet Node Devices "First Switch”, “Second Switch” and “Third Switch”.
  • the method for retransmitting an Ethernet error frame provided by the embodiment of the present application is applicable to the transmission process of the Ethernet frame in the Ethernet system.
  • Ethernet transmits Ethernet frames in a store-and-forward manner.
  • the node device first buffers the incoming data packets from the ingress side, and checks the correctness of the frame (for example, checking based on the cyclic redundancy check technology). If the detected Ethernet frame is correct, the node device will look up the table according to the destination address carried in the frame header, find the output port address to be sent, and then send the Ethernet frame. If an error is detected in the Ethernet frame, the node device discards the Ethernet frame.
  • FIG. 3 it is a schematic diagram of a retransmission process of an Ethernet error frame provided by an embodiment of the present application.
  • H is a frame header (head) part
  • P is a payload (or called a payload) (Payload) part
  • F is a frame check sequence (frame check sequence, FCS) part.
  • F is F 1 and F 2 , in order to distinguish two different frame check sequences.
  • the F part may include a CRC-32 field for checking the correctness of the Ethernet frame. Among them, two cases of correct transmission of Ethernet frames and errors in transmission are illustrated.
  • the first switch receives the Ethernet frame sent by the first computer device, and the first switch performs CRC check on the Ethernet frame.
  • the CRC value calculated by the receiving device is the same as the CRC value contained in the received Ethernet frame (F 1 in the example).
  • the first switch After the first switch successfully checks the Ethernet frame, it sends the Ethernet frame to the second switch. According to a similar process, the Ethernet frame is transmitted through the second switch and the third switch, and finally reaches the destination receiving device, that is, the second computer device.
  • the first switch receives the Ethernet frame sent by the first computer device, and the first switch pairs Ethernet frames are CRC checked. Due to an error occurred during the transmission of the Ethernet frame, the CRC value calculated by the first switch (F 2 in the example) is different from the received CRC value (F 1 in the example), then it is determined that the Ethernet frame is in error, then Drop the Ethernet frame.
  • the second computer device detects the packet loss (for example, uses a timeout mechanism to determine the packet loss and determines that the next Ethernet frame is received), and then sends a retransmission request (for example, Negative Acknowledgment, NAK) to the first computer device.
  • a retransmission request for example, Negative Acknowledgment, NAK
  • the first computer device sends the retransmitted Ethernet frame to the second computer device according to the retransmission request. It can be seen that, by adopting this method of retransmission of the erroneous frame, the delay in receiving the retransmitted Ethernet frame will be at least three times that of the case where no error occurs in the transmission of the Ethernet frame.
  • CUT-Through a transmission way of cut-through switching
  • the node device detects a data packet on the ingress side, it buffers a part of the Ethernet frame (for example, the part used for addressing, such as the frame header), and then according to the destination address contained in this part Look up the table, find the output port address you want to send, and then send the packet.
  • the CUT-Through method can greatly reduce the transmission delay.
  • the node device since the CUT-Through method does not cache the complete data packet, in the case of an error in the data packet, the node device cannot discard the erroneous data packet after detecting the data packet error (because the data packet starts to search after a part of the data packet is buffered. address forwarded). Therefore, in the case of using the CUT-Through method, in order to ensure the reliability of the data, it is necessary to rely on the verification mechanism of the upper layer of the receiving end (the upper layer of the MAC layer, that is, the IP layer, the application layer, etc.) to verify the received data packets. Check, such as cyclic redundancy check (cyclic redundancy check, CRC). When the receiver detects that it has received an erroneous packet, it needs to send a retransmission request to the initiator.
  • CRC cyclic redundancy check
  • FIG. 4 it is a schematic diagram of another retransmission process of an Ethernet error frame provided by an embodiment of the present application.
  • the Ethernet system architecture of FIG. 4 is similar to that of FIG. 2.
  • the first computer device generates an Ethernet frame and sends the Ethernet frame to the second computer device.
  • H is the head part
  • P is the payload part
  • F is the FCS part
  • f is the check part (for example, it can be a CRC-16 field).
  • the second computer device may, according to f, rely on the application layer verification mechanism to determine whether the received Ethernet frame is in error.
  • the first switch receives the Ethernet frame sent by the first computer device, and the first switch performs CRC check on the Ethernet frame. After the first switch successfully checks the Ethernet frame, it sends the Ethernet frame to the second switch. According to a similar process, the Ethernet frame is transmitted through the second switch and the third switch, and finally reaches the destination receiving device, that is, the second computer device.
  • the second computer device may, according to f, rely on the application layer verification mechanism to determine that the received Ethernet frame is correct.
  • the first switch When there is an error in transmission (take the Ethernet frame error code in the Ethernet link "the first computer device - the first switch" as an example): the first switch first buffers the head part of the Ethernet frame, and then according to the purpose contained in the head part Check the address table, find the output port address to be sent, and then send the Ethernet frame to the second switch. An error occurs in the f part due to a bit error, and an example of this part after the error occurs is the f' part. The first switch sends the erroneous Ethernet frame to the second switch.
  • the second switch Since the Ethernet frame received by the second switch is already an Ethernet frame with errors, the CRC value of the Ethernet frame received by the second switch (F 2 in the example) is the same as the calculated CRC value (F 2 in the example) , the second switch successfully checks the wrong Ethernet frame. Afterwards, the second switch sends the errored Ethernet frame to the third switch, and the third switch sends the errored Ethernet frame to the second computer device. The second computer device verifies the received Ethernet frame successfully, and then the second computer device determines that the received Ethernet frame is an erroneous Ethernet frame by relying on the upper-layer verification mechanism according to f'.
  • the second computer device sends a retransmission request to the first computer device, and correspondingly, the first computer device sends the retransmitted Ethernet frame to the second computer device according to the retransmission request. It can be seen that, by adopting the retransmission method of the erroneous frame, the delay in receiving the retransmitted Ethernet frame will be at least three times that of the case where no error occurs in the transmission of the Ethernet frame.
  • a method for retransmitting an Ethernet error frame is provided.
  • a node device checks the Ethernet frame after receiving the Ethernet frame sent by the previous node device; when the Ethernet frame check fails
  • the modified Ethernet frame includes a first identifier, and the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted; next, the node device retransmits The modified Ethernet frame is sent to the next node. In this way, the first identification can indicate whether the Ethernet frame in which the error occurred will be recovered by partial retransmission.
  • the destination device receiving the erroneous Ethernet frame can select whether to initiate a global retransmission request according to the first identifier, which can save the transmission time of the erroneous frame and improve the retransmission efficiency of the Ethernet erroneous frame.
  • FIG. 5 is a flowchart of a method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • the method may be implemented based on the Ethernet system shown in FIG. 1 , and the second node device described below may be the first switch, the second switch or the third switch shown in FIG. 1 .
  • the first node device is the previous node device of the second node device
  • the third node device is the next node device of the second node device.
  • the previous node device and the next node device are determined according to the transmission direction of the Ethernet frame.
  • the second node device is a first switch
  • the first node device is a first computer device
  • the third node device is a second switch.
  • the second node device is the second switch, then the first node device is the first switch, and the third node device is the third switch.
  • the second node device is a third switch, then the first node device is a second switch, and the third node device is a second computer device. The method includes but is not limited to the following steps.
  • the first node device sends an Ethernet frame to the second node device.
  • the second node device After the second node device receives the Ethernet frame, the second node device checks the Ethernet frame.
  • the second node device may perform CRC check on the Ethernet frame.
  • the FCS field of the Ethernet frame includes the CRC-32 field.
  • the second node device may calculate the CRC value according to the payload field of the Ethernet frame according to the calculation method negotiated with the first node device. After that, compare the FCS field of the Ethernet frame with the calculated CRC value. If the calculated CRC value is different from the FCS field, the Ethernet frame verification fails; if the calculated CRC value is the same as the FCS field, the Ethernet frame verification succeeds.
  • the second node device can determine whether an error occurs during the transmission of the Ethernet frame from the first node device (ie, the previous node device) to the Ethernet link of the second node device.
  • the second node device cannot pass the verification result to know whether an error occurred in the previous transmission process of the Ethernet frame. For example, if the Ethernet frame sent by the first node device to the second node device is originally a wrong Ethernet frame, and the wrong Ethernet frame is transmitted in the Ethernet link from the first node device to the second node device. If no error occurs during the process, then the verification of the Ethernet frame by the second node device is also successful. Exemplarily, referring to the embodiment shown in FIG.
  • the second switch is the first node device
  • the third switch is the second node device.
  • the Ethernet frame received by the second switch has been erroneous (containing the F2 field). Then, the original Ethernet frame sent by the second switch to the third switch is the wrong Ethernet frame, the CRC value calculated by the third switch according to the payload field is the same as the F2 field, and the third switch successfully checks the Ethernet frame.
  • the second node device sends the Ethernet frame to the third node device.
  • the second node device modifies the Ethernet frame.
  • the failure to check the Ethernet frame indicates that an error occurs in the Ethernet frame during the transmission process of the Ethernet link from the first node device to the second node device.
  • the modified Ethernet frame includes a first identifier, and the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted.
  • the first identifier is in the fourth state, it indicates that the Ethernet frame will be partially retransmitted; if the first identifier is in the fifth state, it indicates that the Ethernet frame will not be partially retransmitted.
  • the first identifier in the modified Ethernet frame is the fourth state; if the second node device determines that the Ethernet frame cannot be partially retransmitted transmission, the first identifier in the modified Ethernet frame is the fifth state.
  • the Ethernet frame may always include the first identifier, and in the previous transmission process, the first identifier is the initial state.
  • the second node device If the second node device fails to verify the Ethernet frame, in the case that the Ethernet frame can be partially retransmitted, the second node device modifies the first identifier from the initial state to the fourth state; when the Ethernet frame cannot be partially retransmitted In the case of transmission, the second node device modifies the first identifier from the initial state to the fifth state. In other embodiments, if the second node device fails to verify the Ethernet frame, in the case that the Ethernet frame can be partially retransmitted, the second node device adds the first identifier of the fourth state to the Ethernet frame; In the case that the Ethernet frame cannot be partially retransmitted, the second node device adds the first identifier of the fifth state to the Ethernet frame.
  • the value of the first identifier is 1, which indicates a fourth state, indicating that the Ethernet frame will be partially retransmitted.
  • the value of the first identifier is 0, indicating a fifth state, indicating that the Ethernet frame will not be partially retransmitted.
  • the value of the first identifier can also be other values, for example, 11 (represented as the fourth state, indicating that partial retransmission will be performed), 00 (represented as the fifth state, indicating that partial retransmission will not be performed) ),etc.
  • the first identifier may also be a preset sequence. Exemplarily, when the first identifier is the first preset sequence, it represents a fourth state, indicating that the Ethernet frame will be partially retransmitted. When the value of the first indication field is the second preset sequence, it indicates a fifth state, indicating that the Ethernet frame will not be partially retransmitted.
  • the first identification may include an indication byte repeated multiple times.
  • the indication byte when the indication byte is 11, it indicates the fourth state, indicating that partial retransmission will be performed; when the indication byte is 00, it indicates the fifth state, indicating that partial retransmission will not be performed.
  • the first identification includes an indication byte repeated 4 times. In this case, when the first identifier is 11111111, it represents the fourth state, indicating that the partial retransmission will be performed, and when the first identifier is 00000000, it represents the fifth state, indicating that the partial retransmission will not be performed.
  • the first identifier is another value (for example, 11111010)
  • the first identifier in the sixth state is used to indicate the first identifier.
  • a logo is invalid. It can be understood that the first identifier of the fourth state and the first identifier of the fifth state may indicate that the first identifier is valid.
  • the first identifier can be considered valid when the correct rate of the indicated bytes is not less than a preset value (75% in an example).
  • the correct rate of the indication byte may be the ratio of the number of times of repeated indication bytes to the total number of times.
  • whether the first flag is the fourth state or the fifth state may be determined by the value of the indication byte repeated more times.
  • the first identifier is 11111110, wherein the indication byte with a larger number of repetitions is 11, the number of repetitions is 3, and the total number of repetitions in the indication byte is 4. If the correct rate of the indicated bytes is 3/4, that is, 75%, then the first identification is deemed to be valid. If the indication byte repeated more times is 11, the first identifier is the fourth state, indicating that the Ethernet frame will be partially retransmitted.
  • the first identifier is located at a preset position of the Ethernet frame.
  • the first identification is located after the payload field of the Ethernet frame.
  • 6 is a schematic diagram of a frame format of an Ethernet frame provided by an embodiment of the present application.
  • the first identifier is located before the FCS field and after the payload field (or called the data field).
  • the second node device first buffers the frame header part of the Ethernet frame (refer to FIG. 5 , the frame header part includes the destination address field, the source address field and the type/length field), and then checks the frame header part according to the destination address contained in the frame header.
  • the second node device has at least the time for buffering the frame header part to check the Ethernet frame. Since the Ethernet frame is sent in sequence according to the order of byte arrangement, the manner in which the first identifier is located after the payload field can facilitate the second node device to modify the Ethernet frame.
  • the second node device fails to verify the Ethernet frame, it needs to modify the Ethernet frame, indicating that the modified Ethernet frame is invalid.
  • the meaning of the invalid Ethernet frame is that an error occurred in the transmission process of the Ethernet frame; the meaning of the Ethernet frame being valid is that there is no error in the transmission process of the Ethernet frame. In this way, the destination device receiving the Ethernet frame can be informed whether an error has occurred in the Ethernet frame.
  • the modified Ethernet frame further includes the second identifier, and the second identifier is used to indicate that the modified Ethernet frame is invalid.
  • the second node device after the second node device fails to verify the Ethernet frame, the second node device adds the second identifier to the Ethernet frame. That is to say, if the Ethernet frame contains the second identifier, it means that the Ethernet frame is invalid; if the Ethernet frame does not contain the second identifier, it means that the Ethernet frame is valid.
  • the Ethernet frame always includes a second identifier, and the second identifier is used to indicate whether the Ethernet frame is valid. Specifically, if the second identifier is in the first state, it indicates that the Ethernet frame is invalid; if the second identifier is in the second state, it indicates that the Ethernet frame is valid.
  • the second node device modifies the second identifier of the Ethernet frame from the second state to the first state, and the modified The second identification (ie the second identification of the first state) indicates that the modified Ethernet frame is invalid.
  • the value of the second identifier is 1, which indicates the first state and indicates that the Ethernet frame is invalid.
  • the value of the second identifier is 0, indicating a second state, indicating that the Ethernet frame is valid.
  • the value of the second identifier may also be other values, for example, 11 (represented as the first state, indicating invalid), 00 (represented as the second state, indicating valid), and so on.
  • the second identifier may also be a preset sequence. Exemplarily, when the second identifier is the first preset sequence, it indicates the first state, indicating that the Ethernet frame is invalid. When the second identifier is the second preset sequence, it indicates the second state, indicating that the Ethernet frame is valid.
  • the second identifier may be located at a preset position of the Ethernet frame.
  • the second identification is located after the payload field (or called the data field) of the Ethernet frame.
  • 7 is a schematic diagram of another frame format of an Ethernet frame provided by an embodiment of the present application. In FIG. 7, the second identifier is located before the FCS field and after the payload field.
  • the relative positions of the first mark and the second mark are not limited, and the first mark may be located in front of the second mark, or the first mark may also be located behind the second mark.
  • the second node device may indicate that the Ethernet frame is invalid by inverting the FCS field of the Ethernet frame.
  • the FCS field includes a CRC value
  • the CRC value calculated by the second node device is 11110000, which is different from the CRC value included in the Ethernet frame.
  • the second node device inverts the FCS field of the Ethernet frame, and the CRC value of the FCS field of the modified Ethernet frame is 00001111.
  • the second node device sends the modified Ethernet frame to the third node device.
  • the manner in which the second node device transmits the Ethernet frame is the CUT-Through manner.
  • the second node device first buffers the frame header part of the Ethernet frame, and then looks up the table according to the destination address contained in the frame header part to find the output port to be sent, and then The Ethernet frame is sent out.
  • the manner in which the second node device checks the Ethernet frame includes: checking the Ethernet frame and sending some bits in the Ethernet frame.
  • the manner in which the second node device sends the modified Ethernet frame includes: continuing to send bits in the modified Ethernet frame except for the partial bits. It can be understood that the partial bits of the Ethernet frame and the modified Ethernet frame are the same.
  • the sending the modified Ethernet frame includes: continuing to send the Ethernet frame bits in the modified Ethernet frame except for the partial bits.
  • the sending the modified Ethernet frame includes: in the verification process, sending some bits in the modified Ethernet frame; After that, the bits in the modified Ethernet frame after the partial bits are continued to be sent.
  • the first identifier may indicate whether the Ethernet frame in which the error occurs will be recovered by partial retransmission.
  • the destination device receiving the erroneous Ethernet frame can select whether to initiate a global retransmission request according to the first identifier, which can save the transmission time of the erroneous frame and improve the retransmission efficiency of the Ethernet erroneous frame.
  • the following describes the manner in which the second node device determines whether the Ethernet frame can be partially retransmitted.
  • the second node device determines whether the Ethernet link between itself and the previous node device (ie, the first node device) has retransmission capability.
  • the Ethernet link adopts an ACK/NAK (Acknowledgment/Negative Acknowledgment) error retransmission mechanism
  • the Ethernet link has a retransmission capability.
  • ACK/NAK is an automatic transmission mechanism implemented by hardware, whose purpose is to ensure the effective and reliable transmission of transaction layer packets (Transaction Layer Packet, TLP). Specifically, in the process of TLP transmission, the sending device will back up each TLP to be sent in the replay buffer area (Replay Buffer).
  • the receiving device verifies the received TLP and feeds back the receiving result to the sending device.
  • the ACK data link layer packet (DLLP) is used to indicate that the TLP is successfully received
  • the NAK DLLP is used to indicate that an error has occurred in the TLP transmission. If the sending device receives the ACK DLLP sent by the receiving device and confirms that the TLP has been successfully accepted, the backup in the Replay Buffer will be deleted. If the sending device receives the NAK DLLP sent by the receiving device and confirms that there is an error in the transmission of the TLP, the sending device will take out the data from the Replay Buffer and resend the TLP.
  • the second node device determines that it has the ability to restore the Ethernet frame.
  • the second node device may perform recovery processing on the Ethernet frame by using a forward error correction (forward error correction, FEC) algorithm or other redundant frame processing methods.
  • FEC forward error correction
  • the manner in which the second node device performs recovery processing on the Ethernet frame is not limited.
  • FIG. 8A it is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • the method may be implemented based on the Ethernet system shown in FIG. 1 , and the second node device described below may be the first switch, the second switch or the third switch shown in FIG. 1 .
  • the first node device is the previous node device of the second node device
  • the third node device is the next node device of the second node device.
  • the previous node device and the next node device are determined according to the transmission direction of the Ethernet frame.
  • the second node device is the first switch, then the first node device is the first computer device, and the third node device is the second switch.
  • the second node device is the second switch, then the first node device is the first switch, and the third node device is the third switch.
  • the second node device is a third switch, then the first node device is a second switch, and the third node device is a second computer device. The method includes but is not limited to the following steps.
  • the first node device sends an Ethernet frame to the second node device.
  • step S101 for the specific implementation of this step, reference may be made to the introduction of step S101 in the above content, and details are not repeated here.
  • the second node device After the second node device receives the Ethernet frame, the second node device checks the Ethernet frame.
  • step S102 for the specific implementation of this step, reference may be made to the introduction of step S102 in the above content, which will not be repeated here.
  • the second node device sends the Ethernet frame to the third node device.
  • the second node device modifies the Ethernet frame.
  • step S104 for the specific implementation of this step, reference may be made to the introduction of step S104 in the above content, which will not be repeated here.
  • a second identifier is always included in the Ethernet frame, and the second identifier is used to indicate whether the Ethernet frame is valid.
  • the second identification may include an indication byte repeated multiple times. Exemplarily, when the indication byte is 10, it means that the Ethernet frame is invalid; when the indication byte is 01, it means that the Ethernet frame is valid; and the second identifier includes the indication byte repeated 4 times. In this case, when the second identifier is 10101010, it represents the first state, indicating that the Ethernet frame is invalid, and when the second identifier is 01010101, it represents the second state, indicating that the Ethernet frame is valid.
  • the second identifier can be regarded as the third state, and the second identifier in the third state is used to indicate the first The second sign is invalid. It can be understood that the second identifier of the first state and the second identifier of the second state may indicate that the second identifier is valid.
  • the second identifier can be considered valid when the correct rate of the indicated bytes is not less than a preset value (75% in an example).
  • the correct rate of the indicated byte may be the ratio of the number of times of repeated indicated bytes to the total number of times.
  • whether the second flag is the first state or the second state may be determined by the value of the indication byte repeated more times.
  • the second identifier is 10101011, wherein the indication byte with a larger number of repetitions is 10, the number of repetitions is 3, and the total number of repetitions in the indication byte is 4. If the correct rate of the indicated byte is 3/4, that is, 75%, then the second identification is deemed to be valid. If the indication byte repeated more times is 10, the second state is the first state, indicating that the Ethernet frame is invalid.
  • the first identifier and the second identifier contained in the Ethernet frame may be combined into one indication identifier.
  • this indicator includes two indicator bytes, the first indicator byte and the first indicator have similar functions, and can be used to indicate whether the Ethernet frame will be partially retransmitted; the second indicator byte Sections and second flags have a similar effect. Can be used to indicate whether the Ethernet frame is valid.
  • the indicator may include an indicator byte repeated multiple times.
  • the second node device before modifying the Ethernet frame, the second node device needs to determine that the Ethernet frame is not modified. Corresponding to the manner of modifying the Ethernet frame described in the foregoing content, the second node device may determine whether the received Ethernet frame has been modified. For example, if the method of modifying the Ethernet frame is: after the node device fails to detect the Ethernet frame, modify the first identification in the Ethernet frame from the initial state to the fourth or fifth state; and modify the second identification to change from the second state to the first state. Then, the second node device can detect whether the first identifier included in the Ethernet frame is in the fourth state or the fifth state, and whether the second identifier is in the first state.
  • the second node device does not need to modify the Ethernet frame frame, and the operation of obtaining the retransmitted Ethernet frame, directly sending the Ethernet frame to the third node device.
  • the currently received Ethernet frame has been modified, which means that an error has occurred in the Ethernet frame in the previous transmission process, and the Ethernet frame is already an erroneous Ethernet frame at the first node device.
  • the second node device cannot obtain the correct retransmitted Ethernet frame through its own capability or from the first node device.
  • the second node device modifies the Ethernet frame and performs the operations described later. This is because the currently received Ethernet frame has not been modified, which means that no error has occurred in the Ethernet frame in the previous transmission process, and the Ethernet link between the first node device and the second node device is transmitted. The first error occurred in the process.
  • the second node device can obtain the correct retransmitted Ethernet frame through its own capability or from the first node device. Exemplarily, for this method, reference may be made to the method flowchart shown in FIG. 8B .
  • the method of determining whether the Ethernet frame has been modified is only an example, and corresponding to different methods of modifying the Ethernet frame, the methods of determining whether the Ethernet frame has been modified are different.
  • the way of modifying the Ethernet frame is: after the node device detects the failure of the Ethernet frame, the first identifier in the Ethernet frame is modified from the initial state to the fourth state or the fifth state; A second logo is added to the frame. Then, the second node device can detect whether the first identifier included in the Ethernet frame is in the fourth state or the fifth state, and whether the Ethernet frame includes the second identifier.
  • the second node device sends the modified Ethernet frame to the second node device.
  • the second node device acquires the retransmitted Ethernet frame.
  • the second node device determines that the Ethernet frame can be partially retransmitted, the second node device obtains the retransmitted Ethernet frame.
  • the Ethernet link between the second node device and the previous node device has a retransmission capability.
  • the process of acquiring the retransmitted Ethernet frame by the second node device may be as follows:
  • the second node device sends a partial retransmission request for the Ethernet frame to the first node device.
  • the second node device may send a NAK packet (or referred to as NAK DLLP) to the first node device.
  • NAK DLLP NAK DLLP
  • the second node device receives the retransmitted Ethernet frame sent by the first node device in response to the partial retransmission request.
  • the first node device receives the NAK message and confirms that an error occurs in the transmission of the Ethernet frame.
  • the first node device takes out the backup Ethernet frame from the Replay Buffer, and resends the Ethernet frame to the second node device.
  • the second node device itself has the ability to restore the Ethernet frame.
  • the process of acquiring the retransmitted Ethernet frame by the second node device may be as follows: the second node device performs recovery processing on the Ethernet frame to obtain the retransmitted Ethernet frame.
  • the second node device may perform recovery processing on the Ethernet frame by using a forward error correction (forward error correction, FEC) algorithm or other redundant frame processing methods.
  • FEC forward error correction
  • the manner in which the second node device performs recovery processing on the Ethernet frame is not limited.
  • the second node device may first perform recovery processing on the Ethernet frame to obtain the retransmitted Ethernet frame. If the retransmitted Ethernet frame fails to be checked, the second node device sends a partial retransmission request for the Ethernet frame to the first node device to obtain the retransmitted Ethernet frame sent by the first node device.
  • the second node device checks the retransmitted Ethernet frame.
  • the second node device sends the retransmitted Ethernet frame to the second node device.
  • the second node device modifies the retransmitted Ethernet frame.
  • the modified retransmitted Ethernet frame includes a first identifier, and the first identifier is used to indicate whether the retransmitted Ethernet frame will be partially retransmitted.
  • the modified retransmitted Ethernet frame further includes a second identifier, and the second identifier is used to indicate that the modified retransmitted Ethernet frame is invalid.
  • the second node device obtains a retransmitted Ethernet frame, then, in the case that the retransmitted Ethernet frame fails to check, the modified retransmitted Ethernet frame includes The first identifier is used to indicate that the retransmitted Ethernet frame will not be partially retransmitted.
  • the second node device may try to acquire the retransmitted Ethernet frame for a preset number of times at most. Taking 3 times as an example, then, in the case that the retransmitted Ethernet frame obtained for the first and second times fails to check, the modified first identifier included in the retransmitted Ethernet frame is used. Ethernet frames that indicate retransmission will be partially retransmitted. In the case that the retransmitted Ethernet frame obtained for the third time fails to check, the modified first identifier included in the retransmitted Ethernet frame is used to indicate that the retransmitted Ethernet frame will not Retransmitted locally. In addition, it should be noted that, if the retransmitted Ethernet frame obtained in one of the multiple times is successfully verified, the second node device may not continue to obtain the retransmitted Ethernet frame.
  • FIG. 9A it is a schematic diagram of another retransmission process of an Ethernet error frame provided by an embodiment of the present application.
  • This process can be implemented based on the Ethernet architecture shown in FIG. 2 .
  • the first computer device generates an Ethernet frame and sends the Ethernet frame to the second computer device.
  • the initial Ethernet frame contains a second identifier and a first identifier, wherein the second identifier is 00 (second state), which is used to indicate that the Ethernet frame is valid; the first identifier is 00 (initial state).
  • the first switch receives the Ethernet frame sent by the first computer device, and the first switch performs CRC check on the Ethernet frame. After the first switch successfully checks the Ethernet frame, it sends the Ethernet frame to the second switch. According to a similar process, the Ethernet frame is transmitted through the second switch and the third switch, and finally reaches the destination receiving device, that is, the second computer device. During the entire transmission process, no errors occurred in the Ethernet frame, and each node device did not modify the Ethernet frame. The second computer device may determine that the Ethernet frame is valid according to the second identifier.
  • the first switch When there is an error in transmission (take the Ethernet frame error code in the Ethernet link "the first computer device - the first switch” as an example): the first switch first buffers the head part of the Ethernet frame, and then according to the purpose contained in the head part Check the address table, find the output port address to be sent, and then send the Ethernet frame to the second switch. Due to a bit error, the first switch fails to verify the Ethernet frame, and the first switch determines that the Ethernet link "the first computer device - the first switch" has the retransmission capability, then the first switch modifies the first switch of the Ethernet frame. One flag is the fourth state (10, indicating that it will be partially retransmitted), and the second flag is modified to be the first state (11, indicating that it is invalid).
  • the first switch sends a partial retransmission request (NAK message) to the first computer device to obtain the retransmitted Ethernet frame.
  • NAK message a partial retransmission request
  • the first computer device sends the retransmitted Ethernet frame to the first switch, and the first switch verifies that the retransmitted Ethernet frame is successful, and sends it to the next node device (ie, the second switch) The retransmitted Ethernet frame.
  • FIG. 9A the content shown in FIG. 9A is described by taking the example of "bit error occurs in the Ethernet frame in the Ethernet link "the first computer device - the first switch", but it is not limited to these two node devices.
  • a bit error occurs on the road.
  • the second computer device may determine that the Ethernet frame is invalid according to the second identifier in the modified Ethernet frame, and determine that the existing node device has performed partial retransmission according to the first identifier, so there is no need for the second computer device to report to the first computer.
  • the device sends a global retransmission request.
  • the second computer device discards the modified Ethernet frame without uploading to the upper layer.
  • the second computer device waits to receive the retransmitted Ethernet frame. After receiving the retransmitted Ethernet frame, the second computer device verifies that the retransmitted Ethernet frame is successful, and determines that the retransmitted Ethernet frame is valid according to the second identifier. Next, the second computer device can upload the retransmitted Ethernet frame to the upper layer for processing.
  • FIG. 9B it is a schematic diagram of another retransmission process of an Ethernet error frame provided by an embodiment of the present application. This process can be implemented based on the Ethernet architecture shown in FIG. 2 . Different from the retransmission process shown in FIG. 9A , the first switch obtains the retransmitted Ethernet frame by performing recovery processing on the Ethernet frame. For other processes, reference may be made to the introduction in the above content, which will not be repeated here.
  • FIG. 9B the content shown in FIG. 9B is described by taking “bit error occurs in the Ethernet frame in the Ethernet link “first computer device-first switch”” as an example, but it is not limited to these two node devices.
  • a bit error occurs on the road. For other cases where bit errors occur, reference may be made to the description of the above example, and details are not repeated here.
  • a case where a transmission error occurs again in the subsequent transmission process is illustrated by an example.
  • the third switch first caches the head part of the Ethernet frame, then looks up the table according to the destination address contained in the head part, finds the address of the output port to be sent, and sends the Ethernet frame to the second computer device. Due to a bit error, the third switch fails to verify the Ethernet frame.
  • the first switch determines that the Ethernet frame has been modified according to the first identifier (10) and the second identifier (11). Then, the third switch does not accept the Ethernet frame. Modification is performed, and the Ethernet frame is not retransmitted locally, and the Ethernet frame is directly sent to the second computer device.
  • the rate of each Ethernet link is 10G bits per second (bits per second, bps)
  • the transceiver unit of each Ethernet link and the propagation delay T link of the link are 500ns
  • the CUT-Through only The 20 bytes of the Ethernet frame header need to be buffered, and the exchange delay needs to add a fixed delay of 100ns in addition to the delay of storing the Ethernet frame or the Ethernet frame header.
  • the size of the retransmission request packet (NAK packet) is 64 bytes.
  • the payload field carrying user messages in an Ethernet frame is 1500 bytes.
  • T error2 T4+T5+T6
  • T4 is the time required for the second computer device to detect an erroneous Ethernet frame
  • T5 is the required transmission time of the retransmission request packet
  • the total time delay T error3 T7 + T8 , where T7 is an erroneous Ethernet frame transmitted to the first switch, and the first switch then sends a retransmission request
  • T8 is the transmission time required to retransmit the Ethernet frame
  • the delay of the embodiment of the present application is reduced by 76.5%-81.2%; compared with the second prior art, the delay of the embodiment of the present application is reduced by 52.5%.
  • the retransmission efficiency of the Ethernet error frame can be improved.
  • FIG. 10 it is a schematic diagram of another retransmission process of an Ethernet error frame provided by an embodiment of the present application.
  • the transmission process of FIG. 10 is similar to that of FIGS. 9A and 9B, except that the Ethernet frame cannot be partially retransmitted at the first switch.
  • the first switch modifies the first flag of the Ethernet frame to the fifth state (01, indicating that it will not be partially retransmitted), and modifies the second flag to the first state (11, indicating that it is invalid).
  • FIG. 10 the content in FIG. 10 is described by taking “bit error occurs in the Ethernet frame in the Ethernet link “the first computer device - the first switch”” as an example, but it is not limited to one of the two node devices.
  • the Ethernet frames are in the Ethernet links "first switch-second switch”, “second switch-third switch”, and "third switch-second computer device”.
  • a bit error occurs on the road. For other cases where bit errors occur, reference may be made to the description of the above example, and details are not repeated here.
  • the modified Ethernet frame is sent to the second computer device.
  • the second computer device may determine that the Ethernet frame is invalid according to the second identifier in the modified Ethernet frame, and determine that the Ethernet frame is not partially retransmitted according to the first identifier, then the second computer device may report to the first computer
  • the device sends a global retransmission request.
  • the second computer device discards the modified Ethernet frame without uploading to the upper layer.
  • the second computer device waits to receive the retransmitted Ethernet frame. After receiving the retransmitted Ethernet frame, the second computer device verifies that the retransmitted Ethernet frame is successful, and determines that the retransmitted Ethernet frame is valid according to the second identifier in the retransmitted Ethernet frame. Next, the second computer device can upload the retransmitted Ethernet frame to the upper layer for processing.
  • the total time delay T error4 T9+T10+T11, where T9 is the time required for the second computer device to detect the erroneous Ethernet frame, and this time is the shortest to transmit the Ethernet frame.
  • T10 is the required transmission time for the retransmission request packet,
  • T11 is the transmission time required to retransmit the Ethernet frame,
  • the total delay of prior art one is between 14253.6 ns and 17853.6 ns.
  • the total time delay is comparable to that of the embodiment of the present application.
  • the delay of the embodiment of the present application is reduced by 50.6%-60.5%; compared with the second prior art, the delay of the embodiment of the present application is comparable.
  • the retransmission efficiency of the Ethernet error frame can be improved.
  • the above describes how each node device processes the Ethernet frame during the transmission of the Ethernet frame.
  • the destination device handles Ethernet frames.
  • the MAC address of the destination device is the same as the MAC address contained in the destination address field in the Ethernet frame.
  • FIG. 11A it is a flowchart of another method for retransmitting an Ethernet error frame provided by an embodiment of the present application.
  • the method may be implemented based on the Ethernet system shown in FIG. 1 , and the destination device described below may be the second computer device shown in FIG. 1 .
  • the method includes but is not limited to the following steps.
  • a destination device receives an Ethernet frame, and checks the Ethernet frame.
  • the destination device detects whether the Ethernet frame is valid.
  • whether the Ethernet frame is valid can be understood as whether an error has occurred in the Ethernet frame during the transmission process before the Ethernet link between the destination device and the previous node device. Specifically, if the Ethernet frame is valid, it means that no error has occurred in the Ethernet frame in the previous transmission process; if the Ethernet frame is invalid, it means that the Ethernet frame has encountered an error in the previous transmission process.
  • the node device after the node device fails to verify the Ethernet frame, the node device adds the second identifier to the Ethernet frame. Then, the method for the destination device to detect whether the Ethernet frame is valid may be: detecting whether the Ethernet frame contains the second identifier. Specifically, if the Ethernet frame contains the second identifier, it is determined that the Ethernet frame is invalid; if the Ethernet frame does not contain the second identifier, it is determined that the Ethernet frame is valid.
  • the destination device can determine the length of the payload field according to the length field in the Ethernet frame. If the actually detected number of bytes of the payload field is greater than the number of bytes indicated by the length field, it can be determined that the Ethernet frame contains the The second identifier; if the actually detected number of bytes in the payload field is equal to the number of bytes indicated by the length field, it can be determined that the Ethernet frame does not contain the second identifier.
  • the Ethernet frame always includes a second identifier, and the second identifier is used to indicate whether the Ethernet frame is valid.
  • the method for the destination device to detect whether the Ethernet frame is valid may be: determining whether the Ethernet frame is valid according to the second identifier. Specifically, if the second identifier is in the first state, it is determined that the Ethernet frame is invalid; if the second identifier is in the second state, it is determined that the Ethernet frame is valid.
  • the second identifier in the third state is used to indicate that the second identifier is invalid. Then, it indicates that an error occurred in the previous transmission process, and the destination device determines that the Ethernet frame is invalid.
  • the node device may indicate that the Ethernet frame is invalid by inverting the FCS field of the Ethernet frame. Then, if the destination device successfully checks the Ethernet frame, it indicates that the Ethernet frame is valid.
  • the destination device may determine that the Ethernet frame is invalid. If the verification of the Ethernet frame fails, and the reversed CRC value is not the same as the CRC value contained in the Ethernet frame, it indicates that the Ethernet frame is in the Ethernet link between the destination device and the previous node device. An error occurred during transfer.
  • the Ethernet frame check is successful, indicating that there is no error in the transmission process of the Ethernet link "third switch-second computer device"; the Ethernet frame is valid, indicating that the Ethernet frame is in the Ethernet link. There were no errors in the respective transmissions up to the "Third Switch - Second Computer Device”. Therefore, it can be determined that the Ethernet frame is correctly transmitted, and the second computer device can deliver the Ethernet frame to the upper layer for data processing.
  • Ethernet frame is invalid, the destination device detects whether the Ethernet frame will be partially retransmitted.
  • the Ethernet frame includes a first identification for indicating whether the Ethernet frame is to be partially retransmitted.
  • the manner in which the destination device detects whether the Ethernet frame will be partially retransmitted is: determining whether the Ethernet frame will be partially retransmitted according to the first identifier. Specifically, if the first identifier is in the fourth state, it is determined that the Ethernet frame will be partially retransmitted; if the first identifier is in the fifth state, it is determined that the Ethernet frame will not be partially retransmitted. It should be noted that, for the related introduction of the first identifier, reference may be made to the introduction of the first identifier in the foregoing step S104.
  • the destination device may send a global retransmission request for the Ethernet frame to the first computer device.
  • the first computer device is a device that generates the Ethernet frame.
  • the MAC address of the first computer device is the same as the MAC address contained in the source address field of the Ethernet frame.
  • the global retransmission request refers to a retransmission request sent by the destination device of the Ethernet frame to the source device of the Ethernet frame.
  • the destination device waits for receiving the retransmitted Ethernet frame.
  • the Ethernet frame will be partially retransmitted, indicating that in the previous transmission process, the node device that received the erroneous Ethernet frame has the ability to obtain the retransmitted Ethernet frame, and the node device has tried the erroneous Ethernet frame.
  • the network frame is partially retransmitted. In this case, the destination device does not need to rely on itself to obtain the retransmitted Ethernet frame, and can wait to receive the retransmitted Ethernet frame. For example, reference may be made to the description in the embodiment shown in FIG. 9A or FIG. 9B .
  • the destination device if the current time is longer than the time when the Ethernet frame is received, the destination device sends a global retransmission request for the Ethernet frame to the first computer device.
  • the preset duration may be set manually, or may be the transmission duration required to transmit one Ethernet frame calculated by the destination device. In this way, when the node device fails to retransmit the Ethernet frame locally, the destination device can initiate a global retransmission request for the Ethernet frame, so as to improve the reliability of the transmission of the Ethernet frame.
  • the destination device When detecting that the Ethernet frame will not be partially retransmitted, the destination device sends a global retransmission request for the Ethernet frame to the first computer device.
  • Ethernet frame check fails, the destination device determines whether the Ethernet frame can be recovered locally.
  • the failure to check the Ethernet frame indicates that an error has occurred in the Ethernet frame during the transmission process of the Ethernet link between the destination device and the previous node device.
  • the destination device first attempts to recover the Ethernet frame.
  • the manner in which the destination device determines whether the Ethernet frame can be recovered locally may be: the destination device determines whether the Ethernet link between itself and the previous node device has the retransmission capability; or, the destination device determines whether it has the ability to recover the Ethernet frame. Ability.
  • the destination device recovers the Ethernet frame locally.
  • the Ethernet link between the destination device and the previous node device has a retransmission capability.
  • the destination device can obtain the recovered Ethernet frame by sending a partial retransmission request to the previous node device. Afterwards, the destination device performs verification on the recovered Ethernet frame, and for subsequent operations, refer to the description of step S302 and its subsequent steps.
  • the destination device itself has the ability to restore the Ethernet frame.
  • the second node device restores the Ethernet frame to obtain the restored Ethernet frame. After that, the destination device performs verification on the recovered Ethernet frame, and for subsequent operations, refer to the description of step S302 and its subsequent steps.
  • the destination device may send a global retransmission request for the Ethernet frame to the first computer device.
  • the destination device sends a global retransmission request for the Ethernet frame to the first computer device.
  • the destination device may also detect whether the Ethernet frame is valid before determining whether the Ethernet frame can be recovered locally. Exemplarily, for this embodiment, reference may be made to the method flowchart shown in FIG. 11B .
  • the destination device determines that the Ethernet frame Whether it can be restored locally, the steps to be executed afterward can refer to the descriptions in the above-mentioned steps S308-S310.
  • Ethernet frame has an error during the transmission process of the Ethernet link between the destination device and the previous node device, and an error also occurred during the previous transmission process, then the destination device waits to receive retransmission. Ethernet frame.
  • the communication apparatus 120 may be the second node device introduced in the foregoing method embodiments.
  • the communication device 120 may be any form of computer, server, switch, router, or network card, etc.; or a device in any form of computer, server, switch, router, or network card.
  • the communication device 120 includes a receiving unit 1201 , a checking unit 1202 , a modifying unit 1203 and a sending unit 1204 .
  • the receiving unit 1201 , the checking unit 1202 , the modifying unit 1203 and the sending unit 1204 will be introduced below.
  • the receiving unit 1201 is used for receiving Ethernet frames.
  • the verification unit 1202 is configured to verify the Ethernet frame.
  • the modifying unit 1203 is configured to modify the Ethernet frame when the Ethernet frame check fails, and the modified Ethernet frame includes a first identifier, and the first identifier is used to indicate the Ethernet frame Whether it will be retransmitted locally.
  • the sending unit 1204 is configured to send the modified Ethernet frame.
  • the modified Ethernet frame further includes the second identifier, and the second identifier is used to indicate that the modified Ethernet frame is invalid.
  • the communication device further includes an acquisition unit, the acquiring unit is configured to acquire the Ethernet frame in the case that the Ethernet frame is to be partially retransmitted the retransmitted Ethernet frame; the verification unit 1202 is further configured to verify the retransmitted Ethernet frame; the sending unit 1204 is further configured to verify the retransmitted Ethernet frame On success, the retransmitted Ethernet frame is sent.
  • the obtaining unit is specifically configured to: send a partial retransmission request for the Ethernet frame; and receive the retransmitted Ethernet frame sent in response to the partial retransmission request.
  • the obtaining unit is specifically configured to: perform recovery processing on the Ethernet frame to obtain the retransmitted Ethernet frame.
  • the first identification is located after a payload field of the Ethernet frame.
  • the checking unit is specifically configured to: check the Ethernet frame and send some bits in the Ethernet frame; the sending unit is specifically configured to: continue to send the modified bits in the Ethernet frame except the partial bits.
  • each unit of the communication apparatus shown in FIG. 12 may be related to the foregoing method embodiments. It will not be described in detail here.
  • the above-mentioned units may be implemented in hardware, software or a combination of software and hardware.
  • the first identifier can indicate whether the erroneous Ethernet frame will be recovered by local retransmission, and the destination device receiving the erroneous Ethernet frame can choose whether to initiate global retransmission according to the first identifier
  • the request can save the transmission time of error frames and improve the retransmission efficiency of Ethernet error frames.
  • the communication apparatus 130 may be the destination device introduced in the foregoing method embodiments.
  • the communication device 130 may be any form of computer, server, switch, router, or network card, or the like; or a device in any form of computer, server, switch, router, or network card.
  • the communication device 130 includes a checking unit 1301 , a first detecting unit 1302 , a second detecting unit 1303 and a receiving unit 1304 .
  • the verification unit 1301 , the first detection unit 1302 , the second detection unit 1303 and the receiving unit 1304 are introduced below.
  • the verification unit 1301 is configured to receive an Ethernet frame and perform verification on the Ethernet frame.
  • the first detection unit 1302 is configured to detect whether the Ethernet frame is valid when the Ethernet frame is successfully checked.
  • the second detection unit 1303 is configured to detect whether the Ethernet frame will be partially retransmitted if the Ethernet frame is invalid.
  • the receiving unit 1304 is configured to wait for receiving the retransmitted Ethernet frame when it is detected that the Ethernet frame will be partially retransmitted.
  • the second identifier is used to indicate that the Ethernet frame is invalid
  • the first detection unit 1302 is specifically configured to: detect whether the Ethernet frame contains the second identifier; if so, determine the Ethernet frame The network frame is invalid; if not included, it is determined that the Ethernet frame is valid.
  • the Ethernet frame includes a second identifier, and the second identifier is used to indicate whether the Ethernet frame is valid, and the first detection unit 1302 is specifically configured to: determine according to the second identifier Whether the Ethernet frame is valid; if the second identifier is in the first state, it is determined that the Ethernet frame is invalid; if the second identifier is in the second state, it is determined that the Ethernet frame is valid.
  • the Ethernet frame includes a first identifier, where the first identifier is used to indicate whether the Ethernet frame will be partially retransmitted, and the second detection unit 1303 is specifically configured to: according to the The first identifier determines whether the Ethernet frame will be partially retransmitted; if the first identifier is in the fourth state, it is determined that the Ethernet frame will be partially retransmitted; if the first identifier is in the fifth state, then Make sure that Ethernet frames are not partially retransmitted.
  • the communication device further includes a first sending unit, and the first sending unit is configured to: when it is detected that the Ethernet frame will not be partially retransmitted, send a message for the Ethernet frame Global retransmission request.
  • the communication device further includes a determination unit and a recovery unit, the determination unit is configured to determine whether the Ethernet frame can be recovered locally when the Ethernet frame check fails; the The recovery unit is configured to perform local recovery on the Ethernet frame when it is determined that the Ethernet frame can be recovered locally.
  • the determining unit is specifically configured to: when the Ethernet frame check fails, detect whether the Ethernet frame is valid; if the Ethernet frame is valid, determine whether the Ethernet frame is valid Can be restored locally.
  • the receiving unit 1304 is further configured to: if the Ethernet frame is invalid, wait to receive the retransmitted Ethernet frame.
  • the communication device further includes a second sending unit, the second sending unit is configured to: if the current time is more than a preset time period from the time when the Ethernet frame is received, send data for the Ethernet frame Global retransmission request for network frames.
  • each unit of the communication apparatus shown in FIG. 13 may be related to the foregoing method embodiments. It will not be described in detail here.
  • the above-mentioned units may be implemented in hardware, software or a combination of software and hardware.
  • the Ethernet frame is detected to be invalid, it can be detected whether the Ethernet frame will be partially retransmitted. frame. It can be seen that after receiving an erroneous Ethernet frame, if it is detected that the erroneous Ethernet frame will be retransmitted locally, the destination device does not need to send a global retransmission request to the sending device of the Ethernet frame, which can save The transmission time of error frames improves the retransmission efficiency of Ethernet error frames.
  • Communication device 140 may include one or more processors 1401 .
  • the processor 1401 may be a general-purpose processor or a special-purpose processor or the like.
  • the processor 1401 can be used to control communication devices (computers, servers, switches, routers, network cards, etc. in any form), execute software programs, and process data of the software programs.
  • the communication device 140 may include one or more memories 1402, and instructions 1404 may be stored thereon, and the instructions may be executed on the processor 1401, so that the communication device 140 executes the above method methods described in the examples.
  • the memory 1402 may also store data.
  • the processor 1401 and the memory 1402 can be set independently or integrated together.
  • the communication device 140 may further include a transceiver 1405 and an antenna 1406 .
  • the transceiver 1405 may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, etc., for implementing a transceiver function.
  • the transceiver 1405 may include a receiver and a transmitter, the receiver may be called a receiver or a receiving circuit, etc., for implementing a receiving function; the transmitter may be called a transmitter or a transmitting circuit, etc., for implementing a transmitting function.
  • the processor 1401 is configured to receive Ethernet frames through the transceiver 1405 .
  • the processor 1401 is further configured to verify the Ethernet frame; when the Ethernet frame verification fails, modify the Ethernet frame, and the modified Ethernet frame includes a first identifier, and the first identifier Used to indicate whether the Ethernet frame will be partially retransmitted.
  • the processor 1401 is further configured to transmit the modified Ethernet frame through the transceiver 1405 .
  • the communication apparatus 140 may be used to implement the method performed by the second node device in the foregoing method embodiment.
  • the operations performed by the processor 1401 may be related to the foregoing method embodiments. It will not be described in detail here.
  • the processor 1401 is configured to receive Ethernet frames through the transceiver 1405 .
  • the processor 1401 is further configured to verify the Ethernet frame; when the Ethernet frame verification is successful, detect whether the Ethernet frame is valid; if the Ethernet frame is invalid, detect the Ethernet frame Whether the frame will be partially retransmitted; when it is detected that the Ethernet frame will be partially retransmitted, wait to receive the retransmitted Ethernet frame.
  • the communication apparatus 140 can be used to implement the method performed by the destination device in the above method embodiments.
  • the operations performed by the processor 1401 may be related to the foregoing method embodiments. It will not be described in detail here.
  • the transceiver may be a transceiver circuit, or an interface, or an interface circuit.
  • Transceiver circuits, interfaces or interface circuits used to implement receiving and transmitting functions may be separate or integrated.
  • the above-mentioned transceiver circuit, interface or interface circuit can be used for reading and writing code/data, or the above-mentioned transceiver circuit, interface or interface circuit can be used for signal transmission or transmission.
  • the processor 1401 may store instructions 1403, and the instructions 1403 run on the processor 1401, so that the communication apparatus 140 can execute the methods described in the above method embodiments.
  • the instructions 1403 may be hardened in the processor 1401, in which case the processor 1401 may be implemented by hardware.
  • the communication apparatus 140 may include a circuit, and the circuit may implement the functions of sending or receiving or communicating in the foregoing method embodiments.
  • processors and transceivers described in this application can be implemented in integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed-signal ICs, application specific integrated circuits (ASICs), printed circuit boards ( printed circuit board, PCB), electronic equipment, etc.
  • ICs integrated circuits
  • RFICs radio frequency integrated circuits
  • ASICs application specific integrated circuits
  • PCB printed circuit board
  • electronic equipment etc.
  • the communication device described in the above embodiments may be an access point or a station, but the scope of the communication device described in this application is not limited thereto, and the structure of the communication device may not be limited by FIG. 14 .
  • the communication apparatus may be a stand-alone device or may be part of a larger device.
  • the communication means may be:
  • a set with one or more ICs may also include a storage component for storing data and instructions;
  • ASIC such as modem (Modem);
  • Receivers smart terminals, wireless devices, handsets, mobile units, vehicle-mounted devices, cloud devices, artificial intelligence devices, etc.;
  • the communication device may be a chip or a chip system
  • the chip 1500 shown in FIG. 15 includes a processor 1501 and an interface 1502 .
  • the number of processors 1501 may be one or more, and the number of interfaces 1502 may be multiple.
  • the interface 1502 is used for receiving Ethernet frames.
  • the processor 1501 verifies the Ethernet frame; when the Ethernet frame verification fails, modifies the Ethernet frame, and the modified Ethernet frame includes a first identifier, and the first identifier Used to indicate whether the Ethernet frame will be partially retransmitted.
  • the interface 1502 is further configured to send the modified Ethernet frame.
  • the interface 1502 is used for receiving Ethernet frames.
  • the processor 1501 is configured to verify the Ethernet frame; when the Ethernet frame is successfully verified, detect whether the Ethernet frame is valid; if the Ethernet frame is invalid, detect the Ethernet frame Whether the Ethernet frame will be partially retransmitted; when it is detected that the Ethernet frame will be partially retransmitted, wait to receive the retransmitted Ethernet frame.
  • the chip further includes a memory 1503, and the memory 1503 is used to store necessary programs and data of the terminal device.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a computer, the functions of any of the foregoing method embodiments are implemented.
  • the above-mentioned computer-readable storage medium includes, but is not limited to, flash memory, hard disk, and solid-state disk.
  • the present application also provides a computer program product, which implements the functions of any of the above method embodiments when the computer program product is executed by a computer.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer program may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, high-density digital video discs (DVDs)), or semiconductor media (eg, solid state disks, SSD)) etc.
  • At least one in this application may also be described as one or more, and the multiple may be two, three, four or more, which is not limited in this application.
  • the technical features are distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D”, etc.
  • the technical features in the “first”, “second”, “third”, “A”, “B”, “C” and “D” described technical features in no order or order of magnitude.
  • the corresponding relationships shown in each table in this application may be configured or predefined.
  • the values of the information in each table are only examples, and can be configured with other values, which are not limited in this application.
  • the corresponding relationships shown in some rows may not be configured.
  • appropriate deformation adjustments can be made based on the above table, for example, splitting, merging, and so on.
  • the names of the parameters shown in the headings in the above tables may also adopt other names that can be understood by the communication device, and the values or representations of the parameters may also be other values or representations that the communication device can understand.
  • other data structures can also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables, or hash tables. Wait.
  • Predefined in this application may be understood as defining, predefining, storing, pre-storing, pre-negotiating, pre-configuring, curing, or pre-firing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

Les modes de réalisation de la présente invention concernent un procédé de réémission pour une trame Ethernet avec erreur et un appareil associé. Le procédé comporte les étapes consistant à: recevoir une trame Ethernet; vérifier la trame Ethernet; lorsque la vérification sur la trame Ethernet échoue, modifier la trame Ethernet, la trame Ethernet modifiée comportant une première identification qui est utilisée pour indiquer si la trame Ethernet va être partiellement réémise; puis émettre la trame Ethernet modifiée. Au moyen du procédé selon les modes de réalisation de la présente invention, la première identification peut indiquer si une trame Ethernet dans laquelle une erreur survient va être récupérée par réémission partielle, et un dispositif de destination recevant la trame Ethernet erronée peut choisir, selon la première identification, s'il convient de lancer une demande de réémission globale, ce qui permet d'économiser le temps d'émission de la trame avec erreur et d'améliorer le rendement de réémission de la trame Ethernet avec erreur.
PCT/CN2021/114293 2020-08-24 2021-08-24 Procédé de réémission pour trame ethernet avec erreur et appareil associé WO2022042543A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010862001.2A CN114095117A (zh) 2020-08-24 2020-08-24 一种以太网错误帧的重传方法及相关装置
CN202010862001.2 2020-08-24

Publications (1)

Publication Number Publication Date
WO2022042543A1 true WO2022042543A1 (fr) 2022-03-03

Family

ID=80295745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114293 WO2022042543A1 (fr) 2020-08-24 2021-08-24 Procédé de réémission pour trame ethernet avec erreur et appareil associé

Country Status (2)

Country Link
CN (1) CN114095117A (fr)
WO (1) WO2022042543A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115173990A (zh) * 2022-06-15 2022-10-11 杭州海康机器人技术有限公司 一种数据包传输方法
CN115865281A (zh) * 2022-11-17 2023-03-28 重庆川仪自动化股份有限公司 工业仪表通信数据丢包处理方法、系统、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816006A (zh) * 2005-02-03 2006-08-09 华为技术有限公司 T.38网关对非标准帧的处理方法
EP2200228A1 (fr) * 2008-12-22 2010-06-23 Nokia Siemens Network Oy Procédé et système pour transférer des paquets de données
US7983278B1 (en) * 2002-01-18 2011-07-19 Juniper Networks, Inc. Redirect checking in a network device
CN107370674A (zh) * 2016-05-13 2017-11-21 华为技术有限公司 一种数据传输的方法、设备和系统
CN110391992A (zh) * 2019-07-11 2019-10-29 清华大学 基于交换机主动队列管理的拥塞控制方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7983278B1 (en) * 2002-01-18 2011-07-19 Juniper Networks, Inc. Redirect checking in a network device
CN1816006A (zh) * 2005-02-03 2006-08-09 华为技术有限公司 T.38网关对非标准帧的处理方法
EP2200228A1 (fr) * 2008-12-22 2010-06-23 Nokia Siemens Network Oy Procédé et système pour transférer des paquets de données
CN107370674A (zh) * 2016-05-13 2017-11-21 华为技术有限公司 一种数据传输的方法、设备和系统
CN110391992A (zh) * 2019-07-11 2019-10-29 清华大学 基于交换机主动队列管理的拥塞控制方法和装置

Also Published As

Publication number Publication date
CN114095117A (zh) 2022-02-25

Similar Documents

Publication Publication Date Title
JP3634800B2 (ja) パリティチェック結合を用いたハイブリッド自動再送要求を実施するシステム及び方法
JP4703310B2 (ja) 通信方法および通信システム
US20080195912A1 (en) Method of communicatoin
US8897193B2 (en) Multicast packet transmitting method over wireless communication network and wireless communication network system using the method
US7733914B2 (en) Method of, and system for, communicating data, and a station for transmitting data
JP5215413B2 (ja) 再送プロトコルのためのステータス報告
WO2022042543A1 (fr) Procédé de réémission pour trame ethernet avec erreur et appareil associé
US20070259665A1 (en) Error detection and retransmission methods and devices for communication systems
JP2011517162A (ja) Macベースのフィードバックを用いてwlanプロトコルにハイブリッドarqを追加すること
WO2003055122A1 (fr) Procede et systeme de demande de repetition automatique hybride a memoire reduite
CN111030785A (zh) 在无线网络中进行数据重传的方法、系统以及无线接收器
WO2011075973A1 (fr) Procédé et appareil de demande de retransmission de message de données dans une couche physique
US8427951B2 (en) Method, system, and apparatus for reliable data packet recovery in a link layer of a data center ethernet network
CA2333628A1 (fr) Terminal de communication, station de base et procede de radiocommunication
WO2021208694A1 (fr) Procédé de transmission de données et dispositif de réseau
ZA200110464B (en) System and method for implementing hybrid automatic repeat request using parity check combining.
JP3406513B2 (ja) 無線受信装置および無線送信装置
US11996936B2 (en) Bit error correction for Bluetooth low energy
US10205562B1 (en) Method and apparatus for error correction
JP7318033B2 (ja) 無線通信装置および無線通信方法
WO2024016242A1 (fr) Procédé et dispositif de traitement de processus de demande de répétition automatique hybride (harq)
CN115412197A (zh) 一种数据传输的方法及其设备
CN116260553A (zh) 数据重传的方法、装置及系统
Yadav et al. PERFORMANCE ANALYSIS OF SLIDING WINDOW PROTOCOL USING NETz-2.0 SIMULATOR FOR CONNECTED NODE
Lin et al. Improving wireless packet throughput using hybrid-II ARQ and physical layer side information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21860378

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21860378

Country of ref document: EP

Kind code of ref document: A1