WO2019183987A1 - 传输数据的方法和转发设备 - Google Patents
传输数据的方法和转发设备 Download PDFInfo
- Publication number
- WO2019183987A1 WO2019183987A1 PCT/CN2018/081495 CN2018081495W WO2019183987A1 WO 2019183987 A1 WO2019183987 A1 WO 2019183987A1 CN 2018081495 W CN2018081495 W CN 2018081495W WO 2019183987 A1 WO2019183987 A1 WO 2019183987A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- segment
- transmitted
- value
- forwarding device
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0076—Distributed coding, e.g. network coding, involving channel coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0057—Block codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0072—Error control for data other than payload data, e.g. control data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0079—Formats for control data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/66—Layer 2 routing, e.g. in Ethernet based MAN's
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
Definitions
- the present application relates to the field of mobile communications and, more particularly, to a method and a forwarding device for transmitting data in the field of communications.
- Industrial IoT and car networking often include many forwarding devices.
- the data sent by the source device is forwarded through multiple forwarding devices to reach the destination device.
- Multiple forwarding devices can form a chained network or a ring network.
- each forwarding device may introduce some delay.
- the above delays make the end-to-end delay of the delay not meet the requirements of some application scenarios.
- Cut-through forwarding technology reduces end-to-end latency.
- the forwarding device can start transmitting the received segment to the next hop forwarding device without receiving the complete Ethernet frame.
- Ethernet frame 1 includes segment 1, segment 2, and segment 3.
- the forwarding device 1 can transmit the segment 1 to the forwarding device 2 when only the segment 1 is received and the segment 2 and the segment 3 have not been received.
- Ethernet frames may have errors during transmission.
- the destination device may not detect the Ethernet frame inclusion error by performing a cyclic redundancy check (CRC) check on the received Ethernet frame.
- CRC cyclic redundancy check
- the present application provides a method for transmitting data, which helps to improve the success rate of the destination device detecting an error in the Ethernet frame.
- a method for transmitting data comprising: a first forwarding device receiving a plurality of segments of an Ethernet frame, the plurality of segments including a first segment and a first segment, the first segment including a destination medium An access control (MAC) address field; the first forwarding device determines a frame check sequence (FCS) value of the Ethernet frame according to the plurality of segments; the first forwarding device determines the based on the FCS value An error occurs in the Ethernet frame.
- FCS frame check sequence
- the first forwarding device modifies the first segment to a second segment in response to the erroneous determination of the Ethernet frame, the first segment including the first type indication information and the The second segment includes the second type of indication information and the second to-be-transmitted data, the first type of indication information is used to indicate the type of the first data to be transmitted, and the second type of indication information And indicating that the type of the second to-be-transmitted data is a control word, the value of the first to-be-transmitted data is not equal to a value of the second to-be-transmitted data, and the second to-be-transmitted data is used to indicate that the An error occurs in the Ethernet frame; the first forwarding device sends the second fragment to the destination device, where the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the destination device is not equal to The MAC address of the first forwarding device.
- the forwarding device performs an CRC check on the Ethernet frame to find that the Ethernet frame is faulty.
- the forwarding device modifies the segment of the received Ethernet frame, so that the modified segment (second segment) indicates that the Ethernet frame has an error.
- the second segment can contain an error control word.
- the error control word is used to indicate that an error has occurred in the Ethernet frame.
- the forwarding device sends the second segment to the destination device.
- the above causes the PHY circuit of the destination device to determine that an error has occurred in the received Ethernet frame based on the second segment.
- the PHY circuit of the destination device includes a PCS receiver.
- the second segment contains an error control word.
- the PCS receiver determines that an Ethernet frame has an error based on the error control word. For example, the PCS receiver enters the RX_E state based on the error control word. The PCS receiver in the RX_E state generates a signal. The signal contains an RxC field with a value equal to one and an RxD field with a value equal to 0xFE. The PCS receiver transmits the signal to the MAC circuit of the destination device through the MII. The MAC circuit of the destination device can determine that an Ethernet frame has an error based on the signal. Furthermore, the MAC circuit of the destination device can discard the Ethernet frame. That is to say, the MAC circuit of the destination device does not need to perform CRC check on the received Ethernet frame, so that an error occurs in the Ethernet frame.
- the above technical solution helps to improve the success rate of the Ethernet frame containing the error in the Ethernet frame by determining the CRC of the Ethernet frame to determine the error of the Ethernet frame.
- the characteristics of the CRC algorithm determine that when the Ethernet frame contains fewer errors, the CRC check is easier to detect the error of the Ethernet frame.
- the CRC check may not detect the error of the Ethernet frame.
- the process of transmitting Ethernet frames from the source device to the destination device may introduce more errors. In particular, when an Ethernet frame needs to be forwarded via multiple forwarding devices, there is a high possibility of occurrence of many errors.
- the forwarding device may recalculate the FCS value of the Ethernet frame and carry the recalculated FCS value in the FCS field of the Ethernet frame.
- the forwarding device may recalculate the FCS value of the Ethernet frame, the domain outside the FCS domain in the Ethernet frame is taken as a parameter. The above means that if an error occurs in the Ethernet frame, these errors will also be used as parameters for recalculating the FCS value of the Ethernet frame. This makes it impossible for the next hop forwarding device or the destination device to detect that the received Ethernet frame contains an error through the CRC check.
- the PHY circuit of the destination device may determine that an Ethernet frame has an error based on the modified domain.
- the destination device does not need to rely on the CRC check to determine if an Ethernet frame has an error. Therefore, the technical solution of the present application helps to improve the destination device to detect the success rate of the error contained in the Ethernet frame. .
- the first forwarding device in response to the erroneous determination that the Ethernet frame is incorrect, modifying the first segment to the second segment includes: When the value of the first type indication information is not equal to the value of the second type indication information, the first forwarding device sets the first type indication information in the first fragment and the first to The transmission data is respectively modified into the second type indication information and the second to-be-transmitted data; or, when the value of the first type indication information is equal to the value of the second type indication information, the first forwarding The device modifies the first to-be-transmitted data in the first segment to the second to-be-transmitted data.
- the modified value of the data to be transmitted can be used to indicate to the destination device that an error occurs in the transmission of the Ethernet frame, so that the destination device receives the Ethernet frame according to the modified first segment (second segment). , to determine that the Ethernet frame has an error during transmission.
- the second segment includes an RxC domain and an RxD domain, where the RxC domain is configured to carry the second type indication information, where the RxD domain is The value is the second data to be transmitted.
- the value of the RxC field Indicates, by using the value of the RxC field, the value of the RxD field to the control byte, and causes the value of the RxD field to indicate to the destination device that the Ethernet frame has an error during transmission, so that the destination device determines the RxD domain.
- the value is a control byte
- the value of the control code of the RxD domain is further checked, and finally, according to the value of the control code of the RxD domain, it is determined that an error occurs in the transmission of the Ethernet frame, and the Ethernet is discarded. frame.
- the value of the RxC field is 1, and the value of the RxD field is equal to 0xFE.
- the second segment includes a synchronization header field, a block type domain, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the first
- the second type of indication information includes the synchronization header field and the block type field, and the second type indication information is used to indicate that the type of the second data to be transmitted is a control word,
- the second type indication information is further used to indicate a location of the second to-be-transmitted data in the plurality of to-be-transmitted data.
- the value of the data to be transmitted corresponding to the location is further checked, and finally, according to the value of the data to be transmitted corresponding to the location, it is determined that an error occurs in the transmission of the Ethernet frame, and then the Ethernet is discarded. frame.
- the value of the second data to be transmitted is equal to 0x1e.
- the data to be transmitted in the first segment includes an FCS domain, or the first segment does not include an FCS domain.
- the first forwarding device determines that the Ethernet frame has an error based on the FCS value, including: the FCS value is not equal to the When the value of the FCS field is reached, the first forwarding device determines that an error has occurred in the Ethernet frame.
- a second aspect provides a method for transmitting data, including: a second forwarding device receives a first segment and a first segment, where the first segment includes type indication information and data to be transmitted, and the type indication information is used to indicate The type of the data to be transmitted, the type of the data to be transmitted is a control word, the data to be transmitted is used to indicate that an error occurs in the Ethernet frame, and the Ethernet frame includes the first fragment, the first The fragment includes a destination MAC address field, the value of the destination MAC address field is equal to the MAC address of the destination device, the MAC address of the second forwarding device is not equal to the value of the destination MAC address field, and the second forwarding device is The destination device sends the first segment.
- the forwarding device performs an CRC check on the Ethernet frame to find that the Ethernet frame is faulty.
- the forwarding device modifies the segment of the received Ethernet frame, so that the modified segment (second segment) indicates that the Ethernet frame has an error.
- the second segment can contain an error control word.
- the error control word is used to indicate that an error has occurred in the Ethernet frame.
- the forwarding device sends the second segment to the destination device.
- the above causes the PHY circuit of the destination device to determine that an error has occurred in the received Ethernet frame based on the second segment.
- the PHY circuit of the destination device includes a PCS receiver.
- the second segment contains an error control word.
- the PCS receiver determines that an Ethernet frame has an error based on the error control word. For example, the PCS receiver enters the RX_E state based on the error control word. The PCS receiver in the RX_E state generates a signal. The signal contains an RxC field with a value equal to one and an RxD field with a value equal to 0xFE. The PCS receiver transmits the signal to the MAC circuit of the destination device through the MII. The MAC circuit of the destination device can determine that an Ethernet frame has an error based on the signal. Furthermore, the MAC circuit of the destination device can discard the Ethernet frame. That is to say, the MAC circuit of the destination device does not need to perform CRC check on the received Ethernet frame, so that an error occurs in the Ethernet frame.
- the above technical solution helps to improve the success rate of the Ethernet frame containing the error in the Ethernet frame by determining the CRC of the Ethernet frame to determine the error of the Ethernet frame.
- the characteristics of the CRC algorithm determine that when the Ethernet frame contains fewer errors, the CRC check is easier to detect the error of the Ethernet frame.
- the CRC check may not detect the error of the Ethernet frame.
- the process of transmitting Ethernet frames from the source device to the destination device may introduce more errors. In particular, when an Ethernet frame needs to be forwarded via multiple forwarding devices, there is a high possibility of occurrence of many errors.
- the forwarding device may recalculate the FCS value of the Ethernet frame and carry the recalculated FCS value in the FCS field of the Ethernet frame.
- the forwarding device may recalculate the FCS value of the Ethernet frame, the domain outside the FCS domain in the Ethernet frame is taken as a parameter. The above means that if an error occurs in the Ethernet frame, these errors will also be used as parameters for recalculating the FCS value of the Ethernet frame. This makes it impossible for the next hop forwarding device or the destination device to detect that the received Ethernet frame contains an error through the CRC check.
- the PHY circuit of the destination device may determine that an Ethernet frame has an error based on the modified domain.
- the destination device does not need to rely on the CRC check to determine if an Ethernet frame has an error. Therefore, the technical solution of the present application helps to improve the destination device to detect the success rate of the error contained in the Ethernet frame.
- the Ethernet frame further includes a second segment, and before the second forwarding device receives the first segment, The Ethernet frame performs a CRC check to determine that an error has occurred in the Ethernet frame, and the second segment is modified to the first segment.
- the method further includes: the second forwarding device determines, according to the destination MAC address field, that a MAC address of the second forwarding device is not equal to a value of the destination MAC address field; the second forwarding The sending, by the device, the first fragment to the destination device includes: determining, by the second forwarding device, that the MAC address of the second forwarding device is not equal to a value of the destination MAC address field, the second forwarding device Sending the first segment to the destination device.
- the second forwarding device includes a physical coding sublayer receiver PCS receiver, and after the second forwarding device receives the first segment, the The method also includes, in response to the data to be transmitted, the PCS receiver entering an RX_E state.
- the first segment includes an RxC domain and an RxD domain, where the RxC domain carries the type indication information, where the RxD domain carries the to-be-transmitted data.
- the value of the RxC field Indicates, by using the value of the RxC field, the value of the RxD field to the control byte, and causes the value of the RxD field to indicate to the destination device that the Ethernet frame has an error during transmission, so that the destination device determines the RxD domain.
- the value is a control byte
- the value of the control code of the RxD domain is further checked, and finally, according to the value of the control code of the RxD domain, it is determined that an error occurs in the transmission of the Ethernet frame, and the Ethernet is discarded. frame.
- the value of the RxC field is equal to 1, and the value of the RxD field is equal to 0xFE.
- the first segment includes a synchronization header field, a block type domain, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the to-be-transmitted data Transmitting data
- the type indication information includes the synchronization header field and the block type field
- the type indication information is used to indicate that the type of the data to be transmitted is a control word
- the type indication information is further used to indicate Determining the location of the transmission data in the plurality of data to be transmitted.
- the value of the data to be transmitted corresponding to the location is further checked, and finally, according to the value of the data to be transmitted corresponding to the location, it is determined that an error occurs in the transmission of the Ethernet frame, and then the Ethernet is discarded. frame.
- the value of the synchronization header field is equal to 0x10, and the value of the data to be transmitted is equal to 0x1E.
- the data to be transmitted in the second segment includes a frame check sequence FCS field of an Ethernet frame, or the second segment does not include an Ethernet The frame check sequence FCS field of the net frame.
- a forwarding device comprising means for performing the steps of the method of transmitting data in the first aspect and the implementations of the first aspect described above.
- a fourth aspect provides a forwarding device, including a receiving circuit, a processing circuit, and a transmitting circuit, where the receiving circuit is configured to receive multiple segments of an Ethernet frame, where the multiple segments include a first segment and a first segment
- the first segment includes a destination media access control MAC address field; processing circuitry for determining a frame check sequence FCS value of the Ethernet frame according to the plurality of segments; determining the Ethernet based on the FCS value An error occurs in the frame; and, in response to the erroneous determination of the Ethernet frame, the first segment is modified into a second segment, the first segment including the first type indication information and the first data to be transmitted,
- the second segment includes second type indication information and a second data to be transmitted, the first type indication information is used to indicate a type of the first data to be transmitted, and the second type indication information is used to indicate the
- the type of the second data to be transmitted is a control word, the value of the first data to be transmitted is not equal to the value of the second data to be transmitted, and
- a forwarding device comprising a processor and a memory, the processor being configured to invoke a program stored by the memory to perform a first aspect or a possible implementation manner of any aspect of the first aspect The method of transferring data.
- a computer program product comprising: computer program code, when the computer program code is run by a processing module, a communication module or a processor, and a transceiver of the forwarding device, causing the forwarding device to perform the above A method of transmitting data in any of the first aspect and its various implementations.
- a computer readable storage medium in a seventh aspect, storing a program causing the forwarding device to perform the method of transmitting data in any of the first aspect and various implementations thereof.
- a chip system comprising a memory and a processor, the memory for storing a computer program, the processor for calling and running the computer program from the memory, such that the forwarding device mounted with the chip system performs the above A method of transmitting data in any of the first aspect and its various implementations.
- a forwarding apparatus comprising means for performing the steps of the method of transmitting data in the implementations of the second aspect and the second aspect described above.
- a tenth aspect provides a forwarding device, including a receiving circuit and a transmitting circuit, the receiving circuit configured to receive a first segment and a first segment, where the first segment includes type indication information and data to be transmitted, the type The indication information is used to indicate the type of the data to be transmitted, the type of the data to be transmitted is a control word, the data to be transmitted is used to indicate that an error occurs in an Ethernet frame, and the Ethernet frame includes the first fragment.
- the first fragment includes a destination MAC address field, the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the second forwarding device is not equal to the value of the destination MAC address field;
- a circuit configured to send the first segment to the destination device.
- a forwarding device comprising a processor and a memory, the processor for invoking a program stored by the memory to perform a possible implementation of any of the second aspect or the second aspect The method of transferring data in the way.
- a computer program product comprising: computer program code, when the computer program code is executed by a processing module, a communication module or a processor of the destination device, and a transceiver, causing the destination device to execute A method of transmitting data in any of the above second aspects and various implementations thereof.
- a thirteenth aspect a computer readable storage medium storing a program for causing a destination device to perform the method of transmitting data according to any of the second aspect and various implementations thereof .
- a chip system comprising a memory and a processor for storing a computer program for calling and running the computer program from the memory such that the destination device on which the chip system is installed executes A method of transmitting data in any of the above second aspects and various implementations thereof.
- a system comprising the forwarding device of the third aspect, and the forwarding device of the ninth aspect, or the system includes the forwarding device of the fourth aspect and the forwarding device of the tenth aspect, or The system includes the forwarding device of the fifth aspect and the forwarding device of the eleventh aspect.
- FIG. 1 is a schematic block diagram of an Ethernet system 100 suitable for use in an embodiment of the present application.
- FIG. 2 is a schematic structural diagram of a forwarding device or a destination device according to an embodiment of the present disclosure.
- FIG. 3 is a schematic flowchart of a method for transmitting data according to an embodiment of the present application.
- FIG. 4 is another schematic flowchart of a method for transmitting data according to an embodiment of the present application.
- FIG. 5 is a schematic block diagram of a forwarding device according to an embodiment of the present application.
- FIG. 6 is another schematic block diagram of a forwarding device according to an embodiment of the present application.
- FIG. 7 is a schematic block diagram of a forwarding device according to an embodiment of the present application.
- FIG. 8 is another schematic block diagram of a forwarding device according to an embodiment of the present application.
- the PHY circuit in this application refers to a circuit for performing the functions of the physical layer defined by the Ethernet standard.
- the Ethernet standard can be an Ethernet standard published by the IEEE.
- the Ethernet standard can be IEEE802.3-2015.
- the functions of the physical layer may include the functions of a physical coding sublayer (PCS) and the functions of a physical medium attachment (PMA) sublayer.
- PCS physical coding sublayer
- PMA physical medium attachment
- the MAC circuit in the present application refers to a circuit for performing the function of media access control (MAC) defined by the Ethernet standard.
- the Ethernet standard can be an Ethernet standard published by the IEEE.
- the Ethernet standard can be IEEE802.3-2015.
- the function of the MAC is located at the data link layer.
- the function of logical link control (LLC) is also located at the data link layer.
- the MAC circuit and the PHY circuit can communicate through a media independent interface (MII).
- MII can be a ten gigabit media independent interface (XGMII).
- XGMII ten gigabit media independent interface
- the functionality of the physical layer may also include the functionality of a reconciliation sublayer (RS).
- the MAC circuit can communicate with the PHY circuit via the RS circuit and MII.
- the RS circuit refers to a circuit for performing the function of the RS.
- the Ethernet frame in this application includes a frame header, a payload, and an FCS domain.
- the frame header starts from the destination MAC address field and ends in an Ethernet type (Ethertype) field or a length (length) field.
- the frame header does not include a preamble field and a Start of frame delimiter (SFD) field.
- Ethernet frames do not include preamble fields and SFD fields.
- the FCS field is used to perform CRC check on Ethernet frames.
- the fields outside the FCS field in the Ethernet frame are the parameters that need to be used to calculate the FCS value of the Ethernet frame. When the calculated FCS value is not equal to the value of the FCS field, an Ethernet frame is considered to have an error.
- For the format of the Ethernet frame refer to the description of IEEE802.3.
- a fragment in this application refers to a fragment of an Ethernet frame. After the Ethernet frame is encoded by the physical layer, a block can be obtained.
- the fragment in the present application may be a block obtained by physical layer encoding processing. For example, the fragment can be a 64B/66B block.
- the PHY circuit transmits an Ethernet frame to the MAC circuit through the MII
- the RxC domain and the RxD domain can be transmitted to the MAC circuit through the MII.
- the fragments in this application may also be an RxC domain and an RxD domain associated with the RxC domain.
- IEEE802.3 For the meaning of the technical terms involved in the present application and specific implementation manners, reference may be made to the description of IEEE802.3. For example, reference can be made to the description of IEEE802.3-2015.
- the above technical terms include but are not limited to a control character, a data character, a control octet, a data octet, a control code, and a synchronization header.
- Sync header 64B/66B block (64B/66B block), control block, data block, PCS receiver, block type field, receive control ( Receive control, RxC) domain and receive data (RxD) domain.
- the Ethernet system 100 includes a source device 101, a forwarding device 102, a forwarding device 103, and a destination device 104.
- the source device 101, the forwarding device 102, the forwarding device 103, and the destination device 104 are serially connected.
- the Ethernet frame to be transmitted is sent by the source device 101, passes through the forwarding device 102 and the forwarding device 103, and finally reaches the destination device 104.
- FIG. 1 only shows two forwarding devices: the forwarding device 102 and the forwarding device 103.
- at least 3 forwarding devices may be included between the source device 101 and the destination device 104.
- the Ethernet frame to be transmitted is sent by the source device 101, forwarded via at least three forwarding devices, and finally reaches the destination device 104.
- the Ethernet system 100 is applied in a through-transfer Cut-through application scenario.
- the Cut-through technique will be described below in conjunction with the Ethernet system 100 of FIG.
- the source device 101 issues an Ethernet frame, and when the forwarding device 102 receives a portion of the Ethernet frame instead of all, it forwards the received portion of the Ethernet frame.
- a portion of an Ethernet frame can be a fragment of an Ethernet frame.
- the forwarding device there is no need to wait until a complete Ethernet frame is received before forwarding. The above solution causes the Ethernet frame to pass through the forwarding device to the destination device 104 with a small delay.
- FIG. 2 shows a possible structural diagram of the forwarding device 102 or the forwarding device 103 shown in FIG. 1.
- the forwarding device includes a Physical Layer (PHY) circuit 201, a MAC circuit 202, a MAC circuit 203, and a PHY circuit 204.
- PHY circuit 201 and MAC circuit 202 can be included in the same chip.
- PHY circuit 201 and MAC circuit 202 can each be in different chips.
- the forwarding device may also include other components.
- the forwarding device can also include a network processor (not shown).
- the network processor can be implemented by an ASIC or an FPGA.
- the receive port of the network processor is coupled to the transmit port of the MAC circuit 202.
- the transmit port of the network processor is coupled to the transmit port of the MAC circuit 203.
- the network processor can obtain the destination MAC address from the Ethernet frame provided by the MAC circuit 202.
- the network processor may look up the destination port for forwarding the Ethernet frame in the MAC table with the destination MAC address as the lookup key.
- the transmit port includes a MAC circuit 203 and a PHY circuit 204.
- the network processor can provide an Ethernet frame to the MAC circuit 203 such that the PHY circuit 204 transmits an Ethernet frame to the next hop device.
- the PHY circuit 201 and the MAC circuit 202 are configured to receive a segment sent by a neighboring device (for example, a source device or a forwarding device), and the MAC circuit 203 and the PHY circuit 204 are configured to send the segment received from the MAC circuit 202. To the next neighbor (for example, the next hop forwarding device or destination device).
- a neighboring device for example, a source device or a forwarding device
- the MAC circuit 203 and the PHY circuit 204 are configured to send the segment received from the MAC circuit 202.
- the next neighbor for example, the next hop forwarding device or destination device.
- the PHY circuit 201 can send the received segments to the MAC circuit 202 in two transmission formats, which are respectively described below:
- the PHY circuit 201 parses the received bit stream, and obtains a plurality of segments including 66 bits from the bit stream.
- Each segment containing 66 bits includes a 2-bit sync header field, a 1-byte block type field, and n bytes (n ⁇ 7) of data to be transmitted.
- the 2-bit synchronization header field is used to indicate whether the n-byte data to be transmitted in the 66-bit fragment contains data to be transmitted of the type control word, and the block type field is used to indicate the n bytes.
- the type of data to be transmitted in the data to be transmitted is the position of the data to be transmitted of the control word in the n bytes of data to be transmitted.
- the 66-bit fragment in this application may be a 64B/66B block.
- the data to be transmitted in this application may be an 8-bit data byte.
- the data to be transmitted in this application may also be a 7-bit control word.
- the PHY circuit 201 formats the 66-bit segment before transmitting the 66-bit segment to the MAC circuit 202. Specifically, the 66-bit fragment is converted into a fragment conforming to a media independent interface (MII) format. The 66-bit segment is converted to 8 segments by format conversion. Each segment includes a 1-bit RxC field and an 8-bit RxD field. And the value of the RxC field in each segment indicates the type of the RxD field in the segment, for example, the value of the RxC field can indicate that the type of the value of the RxD field is a control word or a data word. The PHY circuit 201 transmits the eight segments to the MAC circuit 202 in a serial or parallel transmission method.
- MII media independent interface
- the PHY circuit 201 parses the received bit stream, and obtains a plurality of segments including 66 bits from the bit stream.
- Each 66-bit segment contains a 2-bit sync header field, a 1-byte block type field, and n bytes of data to be transmitted.
- the 2-bit synchronization header field is used to indicate whether the n-byte data to be transmitted in the 66-bit fragment contains data to be transmitted of the type control word.
- the block type field is used to indicate the location of the n-byte data to be transmitted in the n-byte data to be transmitted in the n-byte data to be transmitted.
- the PHY circuit 201 does not perform format conversion on the 66-bit segment before transmitting the 66-bit segment to the MAC circuit 202, but directly to the MAC circuit. 202 sends the 66-bit segment.
- FIG. 3 is a schematic flowchart of a method 300 for transmitting data according to an embodiment of the present application, where the method includes 301 to 304.
- the method 300 can be performed by the forwarding device 102 shown in FIG. 1 or 2.
- the first forwarding device receives multiple segments of an Ethernet frame, where the multiple segments include a first segment and a first segment, where the first segment includes a destination media access control MAC address field.
- Ethernet frames can be transmitted to the forwarding device 102 through the transmission medium.
- Ethernet frames can be transmitted in the form of a bit stream in a transmission medium.
- the PHY circuit 201 in the forwarding device 102 can receive the bitstream through the transmission medium. The plurality of segments are included in the bitstream.
- the PHY circuit 201 can be located in the receive Ethernet port of the forwarding device 102.
- the receiving Ethernet port may also include a MAC circuit 202.
- the transmission medium can be a cable or an optical fiber.
- the first forwarding device determines an FCS value of the Ethernet frame according to the multiple segments.
- the PHY circuit 201 of the forwarding device 102 receives from the previous device (eg, the previous device may be the source device 101 or is located between the source device 101 and the forwarding device 102).
- the other forwarding device transmits a plurality of segments of the Ethernet frame and transmits the plurality of segments to the MAC circuit 202.
- the plurality of segments includes a first segment of the Ethernet frame and a first segment.
- the first segment is any one of the plurality of segments except the first segment.
- the first fragment includes the destination MAC address field.
- the value of the destination MAC address field is equal to the MAC address of the destination device 103.
- the MAC circuit 202 calculates the FCS value of the Ethernet frame based on the received plurality of segments from the PHY circuit 201.
- the MAC circuit 202 can calculate the FCS value of the Ethernet frame using a CRC algorithm.
- the CRC algorithm can be a CRC32 algorithm.
- the multiple segments arrive at the MAC circuit 202 of the forwarding device 102 at different times.
- the MAC circuit 202 may begin to calculate the FCS value of the Ethernet frame upon receiving the first of the plurality of segments. After the forwarding device 102 receives all segments (eg, the plurality of segments) of the Ethernet frame, the MAC circuit 202 can complete the calculation of the FCS value, thereby determining the FCS value of the Ethernet frame. As can be seen from the above description, the MAC circuit 202 needs to use all segments of the Ethernet frame when calculating the FCS value of the Ethernet frame. Each segment participates in the calculation of the FCS value and provides parameters for the calculation of the FCS value.
- the MAC circuit 202 can forward the segment. Alternatively, the MAC circuit 202 may also save the segment and then forward the segment. . When the MAC circuit 202 forwards a segment of an Ethernet frame, it can forward it according to the principle of first in, first out. That is, the earlier received segment needs to be forwarded earlier than the later received segment.
- the first segment in the embodiment of the present application includes six RxC/RxD pairs.
- the RxC/RxD pair in this application refers to a signal consisting of one RxC domain and one RxD domain.
- One RxC field contains 1 bit.
- One RxD field contains 8 bits.
- the RxC domain in the RxC/RxD pair has a corresponding relationship with the RxD domain. Specifically, the RxC field in the RxC/RxD pair is used to indicate the type of the RxD field in the RxC/RxD pair. Therefore, the first fragment contains 6 RxC/RxD pairs.
- the first fragment contains a 6-bit RxC field and a 6-byte RxD field.
- the 6-byte RxD field is used to carry the value of the destination MAC address field. Except for the first fragment, all other fragments include an RxC/RxD pair.
- each of the plurality of segments includes type indication information and data to be transmitted, and the value of the type indication information is used to indicate whether the type of the data to be transmitted is a control word.
- the first forwarding device determines that an error occurs in the Ethernet frame based on the FCS value.
- the MAC circuit 202 determines that the Ethernet frame has an error during transmission according to the FCS value of the Ethernet frame determined in 301.
- the FCS field is included in the Ethernet frame.
- the first forwarding device may determine that an error has occurred in the Ethernet frame.
- Ethernet frames may be interfered with and an error occurs.
- Ethernet frames may be subject to electromagnetic interference during transmission.
- the error of the Ethernet frame may be that the value of one bit or multiple bits included in the Ethernet frame has changed. For example, the value of one bit in an Ethernet frame changes from 0 to 1. Or, the value of one bit in the Ethernet frame changes from 1 to 0.
- the MAC circuit 202 will determine the FCS value of the determined Ethernet frame and the value of the FCS field included in the last segment. Compare.
- the MAC circuit 202 determines that the Ethernet frame has an error during transmission.
- the MAC circuit 202 determines that the Ethernet frame has not occurred an error during transmission.
- the MAC circuit 202 calculates the FCS value of the Ethernet frame according to the received multiple segments from the PHY circuit 201, the plurality of segments does not include the last segment.
- the first forwarding device modifies the first segment to a second segment, where the second segment includes second type indication information and second to-be-transmitted data, in response to the erroneous determination of the Ethernet frame.
- the type indication information is used to indicate that the type of the second data to be transmitted is a control word, and the second data to be transmitted is used to indicate that an error occurs in the Ethernet frame.
- the first segment includes first type indication information and a first to-be-transmitted data, where the first type indication information is used to indicate a type of the first to-be-transmitted data, where the value of the first to-be-transmitted data is not equal to the second The value of the data to be transmitted.
- the MAC circuit 202 determines that an error occurs in the transmission of the Ethernet frame, the MAC circuit 202 treats one of the at least two segments of the plurality of to-be-segments that have not been transmitted (for example, The first segment is modified to obtain the second segment.
- the type of the data to be transmitted (for example, the second data to be transmitted) in the second segment indicated by the type indication information (for example, the second type indication information) in the second segment is a control word
- the value of the second to-be-transmitted data is not equal to the value of the data to be transmitted (for example, the first to-be-transmitted data) in the first segment
- the type indication information (for example, the first type indication information) in the first segment is used for Indicates that the type of the first data to be transmitted is a control word or data.
- the MAC circuit 202 When the value of the first type indication information is not equal to the value of the second type information, that is, the type of the first data to be transmitted indicated by the first type indication information is data, the MAC circuit 202 respectively determines the first type.
- the indication information is modified with the first to-be-transmitted data, the value of the first type indication information is modified to the value of the second type indication information, and the value of the first to-be-transmitted data is modified to the second to-be-transmitted data.
- the MAC circuit 202 When the value of the first type indication information is equal to the value of the second type information, that is, the type of the first data to be transmitted indicated by the first type indication information is a control word, the MAC circuit 202 only treats the first to The data is modified to modify the value of the first data to be transmitted to the value of the second data to be transmitted, thereby obtaining the second segment.
- the first forwarding device sends the second segment to the destination device.
- the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the destination device is not equal to the MAC address of the first forwarding device.
- the MAC circuit 202 may send the second segment to the destination device 104, where the destination MAC address is equal to the MAC address of the destination device 104, and the MAC address of the destination device 104 is not equal to The MAC address of the forwarding device 102.
- the first forwarding device transmits the second segment to the destination device via other forwarding devices.
- the other forwarding device may be a forwarding device or multiple forwarding devices. Other forwarding devices do not modify the second segment.
- the other forwarding device transparently transmits the second segment.
- the first forwarding device directly transmits the second segment to the destination device. The second segment does not need to reach the destination device via other forwarding devices.
- the MAC circuit 202 first transmits the second segment to the MAC circuit 203, which transmits the second segment to the PHY circuit 204, and finally the PHY circuit 204 transmits the second segment to the destination device 104.
- the first segment is any segment of the plurality of segments of the Ethernet frame except the first segment, for example, the first segment is the last segment of the plurality of segments of the Ethernet frame, At this time, the first segment includes the FCS domain.
- the second segment includes an RxC domain and an RxD domain, and the value of the RxC domain is used to carry the second type. Indicates that the value of the RxD field is the second data to be transmitted.
- the value of the RxC field when the value of the RxC field is 0x0, it indicates that the data to be transmitted is a data byte, that is, the type indicating the data to be transmitted is a data word.
- the value of the RxC field is 0x1
- it indicates that the data to be transmitted is a control byte, that is, the type indicating that the data to be transmitted is a control word
- the value of the RxD field is 0xFE, indicating that the Ethernet frame is in the transmission process. An error has occurred in the middle.
- the MAC circuit 202 of the forwarding device 102 needs to modify the value of the first type indication information to 1, and the first data to be transmitted is to be transmitted.
- the value of the second fragment is changed to 0xFE, so that the value of the second type indication information of the second fragment is 1 and the value of the second data to be transmitted is 0xFE.
- the destination device 104 receives the second segment, according to the value (0x1) of the RxC field in the second segment, the RxD field is determined to be a control byte, and the value of the data byte of the RxD field is further viewed ( 0xFE), finally determining that a new Ethernet frame has an error during transmission based on the value of the data byte of the RxD field.
- the MAC circuit 202 of the forwarding device 102 only needs to modify the value of the first data to be transmitted to 0xFE, thereby obtaining the second fragment. That is, the value of the second type indication information of the second fragment is 1 and the value of the second data to be transmitted is 0xFE.
- the destination device 104 receives the second segment, according to the value (0x1) of the RxC field in the second segment, the RxD field is determined to be a control byte, and the value of the data byte of the RxD field is further viewed ( 0xFE), finally determining that a new Ethernet frame has an error during transmission based on the value of the data byte of the RxD field.
- the second segment is obtained by modifying the first type indication information and/or the first to-be-transmitted data in the first segment, so that the next forwarding device determines, according to the second segment, that the Ethernet frame is in the An error occurred during the transfer.
- the destination device 104 may further view the second data to be transmitted.
- the value of the data is determined based on the value of the second data to be transmitted to determine that the Ethernet frame has an error during transmission. Therefore, when the type of the second to-be-transmitted data indicated by the value of the second type indication information is data, the MAC circuit 202 needs to simultaneously perform the value of the second type indication information and the value of the second to-be-transmitted data. Modifying; when the type of the second data to be transmitted indicated by the value of the second type indication information is a control word, the MAC circuit 202 only needs to modify the value of the second data to be transmitted.
- the second segment When the PHY circuit 201 transmits to the MAC circuit 202 that the format used by the first segment conforms to the above-described transmission format 2, the second segment includes a synchronization header field, a block type field, and n (n ⁇ 7) bytes of to-be.
- the second type of indication information includes the synchronization header field and the block type field, and the second type indication information is used to indicate the second to-be-received data.
- the type of the transmission data is a control word, and the second type indication information is further used to indicate the location of the second to-be-transmitted data in the plurality of to-be-transmitted data.
- the format of the first segment received by the MAC circuit 202 from the PHY circuit 201 conforms to the above-described transmission format 2. That is, the second segment includes a 2-bit sync header field, a 1-byte block type field, and n bytes of data to be transmitted, and the second indication information is used to indicate that the type of the second data to be transmitted is a control word, The second type indication information is further used to indicate a location of the second to-be-transmitted data in the plurality of to-be-transmitted data.
- the specific implementation is: the synchronization header field indicates whether the n-byte data to be transmitted includes data to be transmitted of the type control word, and the block type field is used to indicate that the second data to be transmitted is in the n bytes. The location in the data to be transferred.
- the synchronization header field when the value of the synchronization header field is 01, it indicates that the synchronization header includes 8 bytes of data to be transmitted, and the 8 bytes of data to be transmitted. All of the data bytes, the 8 data bytes are D 0 to D 7 respectively ; when the value of the synchronization header field is 10, and the value of the block type field is 0x1e, it indicates that the block type field includes 8 after Bytes of data to be transmitted, and the 8 bytes of data to be transmitted are control codes, and the 8 control codes are respectively C 0 to C 7 , and the value of any one of the C 0 to C 7 control codes When it is 0x1e, it indicates that the Ethernet frame has an error during transmission; when the value of the synchronization header field is 10, and the value of the block type field is 0x33, it indicates that the block type field includes 8 bytes after the transmission.
- Data to be transmitted, and the 8 data to be transmitted includes 4 control codes and 3 data bytes, and the 4 control codes are respectively C 0 to C 3 , and the 3 data bytes are D 5 to D 7 respectively.
- the value of any one of C 0 to C 3 is 0x1e, it indicates that an error has occurred in the transmission of the Ethernet frame.
- the MAC circuit 202 of the forwarding device 102 needs to modify the value of the first type indication information to 10, and 8 subsequent to the synchronization header field.
- D 3 of the data bytes D 0 to D 7 is modified to the control code C 3 , and the value of the control code C 3 is 0x1e, thereby obtaining the second segment, that is, the value of the synchronization header field of the second segment is 10.
- the eight data to be transmitted after the synchronization header field are D 0 , D 1 , D 2 , C 3 , D 4 , D 5 , D 6 , D 7, respectively, where C 3 is the second data to be transmitted. .
- the destination device 104 when receiving the second segment, determines, according to the value (10) of the synchronization header field in the second segment, that the control data is included in the eight data to be transmitted after the synchronization header field, and further views the The value of the control code (0x1e), and finally based on the value of the control code, determines that a new Ethernet frame has an error during transmission.
- the source device generates an Ethernet frame and transmits the Ethernet frame to the destination device via at least one forwarding device.
- the forwarding device performs a CRC check on the received Ethernet frame to determine that an error has occurred in the Ethernet frame.
- the forwarding device modified the received Ethernet frame.
- the modified Ethernet frame contains the second segment.
- the Ethernet frame received by the destination device is different from the Ethernet frame generated by the source device.
- the present application refers to an Ethernet frame received by a destination device as a new Ethernet frame.
- the MAC circuit 202 of the forwarding device 102 only needs to be in C 0 to C 3 or D 5 to D 7 after the block type field.
- any modification to a value 0x1e e.g., in the C 0 ⁇ C 3 C 2 is 0x1e modified value, or the D 5 ⁇ D 7 D 6 C modify the control codes. 6
- the second segment that is, the value of the synchronization header field of the second segment is 10
- the value of C 2 in the 8 data to be transmitted after the synchronization header field is 0x1e, and the values of the remaining data to be transmitted are unchanged, C 2 For the second data to be transmitted.
- the destination device 104 when receiving the second segment, determines, according to the value (10) of the synchronization header field in the second segment, that the control data is included in the eight data to be transmitted after the synchronization header field, and according to the block.
- the value of the type field is 0x33, and the data to be transmitted at the positions C 0 to C 3 after the block type field is determined as a control code, and the value of the control code is further checked (0x1e), and finally the new value is determined according to the value of the control code.
- the Ethernet frame has an error during the transfer.
- the block type field is used to indicate the position of the control code in the 8 bytes of data to be transmitted in the 8 bytes to be transmitted, when in the D 5 to D 7 When D 6 is modified to control code C 6 , the value of the block type field is also modified accordingly.
- the new Ethernet frame includes the second segment and an Ethernet frame of the plurality of segments except the first segment.
- the second segment is obtained by modifying the first type indication information and/or the first to-be-transmitted data in the first segment, so that the next forwarding device determines, according to the second segment, that the Ethernet frame is in the An error occurred during the transfer.
- the destination device 104 may further view the second data to be transmitted.
- the value of the data is determined based on the value of the second data to be transmitted to determine that the Ethernet frame has an error during transmission. Therefore, when the type of the second to-be-transmitted data indicated by the value of the second type indication information is data, the MAC circuit 202 needs to simultaneously perform the value of the second type indication information and the value of the second to-be-transmitted data. Modifying; when the type of the second data to be transmitted indicated by the value of the second type indication information is a control word, the MAC circuit 202 only needs to modify the value of the second data to be transmitted.
- the destination device 104 receives the second segment and a segment of the plurality of segments except the first segment; the destination device 104 determines that a new Ethernet frame has an error based on the second segment, the new Ethernet frame includes The second segment, and a segment of the plurality of segments except the first segment; the destination device 104 discards the new Ethernet frame in response to the erroneous determination of the Ethernet frame.
- the PHY circuit 201 of the destination device 104 includes a physical coding sublayer receiver (PCS receiver), and the destination device determines that a new Ethernet frame has occurred based on the second fragment:
- PCS receiver physical coding sublayer receiver
- the destination device 104 is responsive to the second data to be transmitted in the second segment, the PCS receiver of the PHY circuit 201 enters the RX_E state, and the PCS receiver of the PHY circuit 201 in the RX_E state sends a signal to the MAC circuit 202:
- the signal includes an RxC field having a value equal to 1, and an RxD field having a value equal to 0xFE, the MAC circuit 202 determining that the new Ethernet frame sent an error based on the value of the RxC field in the signal and the value of the RxD field; or
- the signal comprises a sync header field having a value equal to 10, a block type field having a value equal to 0x33, and C 0 - C 3 and D 5 - D 7 , wherein the value of C 2 is 0x1e, and the MAC circuit 202 is based on synchronization in the signal
- the value of the header field, the value of the block type field, and the value of C 2 determine that the new Ethernet frame sent an error.
- the new Ethernet frame is discarded, including:
- the MAC circuit 202 in the destination device 104 discards the new Ethernet frame.
- the modified segment is directly sent by the forwarding device 102.
- the second segment is sent by the forwarding device 102 to the forwarding device located thereafter, and then A subsequent forwarding device (eg, forwarding device 103) sends to destination device 104.
- a method 400 for the forwarding device 103 to transmit a plurality of segments of an Ethernet frame received from the forwarding device 102 to the destination device 104 is described below.
- FIG. 4 is a schematic flowchart of a method 400 for transmitting data according to an embodiment of the present application, where the method includes 401 and 402.
- the method 400 can be performed by the forwarding device 103 shown in FIG. 1 or 2.
- the second forwarding device receives the first segment and the first segment, where the first segment includes type indication information and data to be transmitted, where the type indication information is used to indicate a type of the data to be transmitted, and the type of the data to be transmitted is controlled. Word, the data to be transmitted is used to indicate that an error has occurred in the Ethernet frame.
- the Ethernet frame includes the first fragment, and the first fragment includes a destination MAC address field, the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the second forwarding device is not equal to the destination MAC address.
- the value of the field is equal to the MAC address of the destination device.
- the second forwarding device includes a receiving Ethernet port.
- the receiving Ethernet port contains the PHY circuit.
- the second forwarding device can receive the first segment and the first segment by using a PHY circuit included in the receiving Ethernet port.
- a specific implementation of the 401 reference may be made to the description of the 301 in the embodiment shown in FIG. 3, and details are not described herein again.
- the PHY circuit 201 of the forwarding device 103 receives the modified segment (e.g., the first segment) in the method 300 transmitted by the PHY circuit 204 of the forwarding device 102, and transmits the modified segment.
- the modified segment e.g., the first segment
- the modified segment includes type indication information and data to be transmitted, the type indication information is used to indicate that the type of the data to be transmitted is a control word, and the data to be transmitted is used to indicate that the Ethernet frame is in the An error occurs during transmission, wherein the Ethernet frame includes the first fragment, the first fragment includes a destination MAC address field, the value of the destination MAC address field is equal to the MAC address of the destination device 104, and the MAC of the forwarding device 103 The address is not equal to the value of the destination MAC address field.
- the second forwarding device sends the first segment to the destination device.
- the second forwarding device includes a transmitting Ethernet port.
- a transmitting Ethernet port For a specific implementation of 402, reference may be made to the description of 305 in the embodiment shown in FIG. 3, and details are not described herein again.
- the method 400 further includes:
- the forwarding device 103 determines, based on the destination MAC address field, that the MAC address of the forwarding device 103 is not equal to the value of the destination MAC address field.
- the forwarding device 103 sends the first segment to the destination device 104, including:
- the forwarding device 103 sends the first segment to the destination device 104 in response to the determination that the MAC address of the forwarding device 103 is not equal to the value of the destination MAC address field.
- the forwarding device 103 determines that the MAC address is not equal to the value of the destination MAC address field included in the first fragment, and further determines that the forwarding device 103 is not the destination device, and determines to The first segment is sent to the destination device 104.
- the Ethernet frame further includes a second segment, and before the forwarding device 103 receives the first segment, determining that the Ethernet frame has an error in response to performing a CRC check on the Ethernet frame, The second segment is modified to the first segment.
- the Ethernet frame further includes a second segment.
- the forwarding device 102 determines that an error occurs in the Ethernet frame
- the forwarding device 102 determines that the Ethernet frame has occurred by performing a CRC check on the Ethernet frame.
- the second segment is modified to the first segment and the first segment is sent to the forwarding device 103.
- the PHY circuit 201 of the forwarding device 103 includes a physical coding sublayer (PCS) receiver. After receiving the first segment, the PHY circuit 201 of the forwarding device 103 responds to the data to be transmitted in the first segment, and the PCS receiver enters the RX_E state. Further, the PHY circuit 201 can determine that the Ethernet frame has an error during transmission.
- PCS physical coding sublayer
- the first fragment includes an RxC domain and an RxD domain, the RxC domain carrying the type indication information, the RxD domain carrying the data to be transmitted.
- the value of the RxC field is equal to 1, and the value of the RxD field is equal to 0xFE.
- the first segment includes a synchronization header field, a block type field, and a plurality of data to be transmitted, where the plurality of data to be transmitted includes the data to be transmitted, and the synchronization header field and the block type domain carry the type.
- the value of the sync header field is equal to 0x10 and the value of the data to be transmitted is equal to 0x1e.
- the data to be transmitted in the second segment includes a frame check sequence FCS field of an Ethernet frame, or the second segment does not include a frame check sequence FCS field of an Ethernet frame.
- the method for transmitting data provided by the embodiment of the present application is described above with reference to FIG. 1 to FIG. 4 .
- the forwarding device, the forwarding device, the destination device, and the destination device provided by the embodiments of the present application are described below with reference to FIG. 5 to FIG.
- FIG. 5 is a schematic block diagram of a forwarding device 500 according to an embodiment of the present disclosure.
- the forwarding device 500 includes a receiving module 510, a processing module 520, and a sending module 530.
- forwarding device 500 can be forwarding device 102 as shown in FIG. 1 or 2.
- the forwarding device 500 can be used to perform the method illustrated in FIG.
- the receiving module 510 is configured to receive multiple segments of an Ethernet frame, where the multiple segments include a first segment and a first segment, where the first segment includes a destination media access control MAC address field.
- the receiving module 510 can be used to perform 301.
- the receiving module 510 can be used to perform 301.
- the processing module 520 is configured to determine, according to the plurality of segments, a frame check sequence FCS value of the Ethernet frame; determine, according to the FCS value, that an error occurs in the Ethernet frame; and determine an error in response to the Ethernet frame Modifying the first segment into a second segment, the first segment includes first type indication information and first to-be-transmitted data, the second segment includes second type indication information and second to-be-transmitted data, the first type The indication information is used to indicate the type of the first data to be transmitted, and the second type indication information is used to indicate that the type of the second data to be transmitted is a control word, and the value of the first data to be transmitted is not equal to the second to be transmitted. The value of the data to be used to indicate that an error has occurred in the Ethernet frame.
- processing module 520 can be used to execute 302, 303, and 304.
- processing module 520 reference may be made to the description of the corresponding embodiments 302, 303, and 304 of FIG.
- the sending module 530 is configured to send the second fragment to the destination device, where the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the destination device is not equal to the MAC address of the forwarding device.
- the sending module 530 can be used to perform 305.
- the sending module 530 reference may be made to the description of the embodiment 305 corresponding to FIG.
- the processing module 520 is configured to: when the value of the first type indication information is not equal to the value of the second type indication information, the first type indication information in the first fragment and the first to Transmitting data is respectively modified into the second type indication information and the second to-be-transmitted data; or, when the value of the first type indication information is equal to the value of the second type indication information, the first one of the first fragments The data to be transmitted is modified into the second data to be transmitted.
- the second segment includes an RxC domain and an RxD domain, where the RxC domain carries the second type indication information, where the RxD domain carries the second to-be-transmitted data.
- the value of the RxC field is 1, and the value of the RxD field is equal to 0xFE.
- the second segment includes a synchronization header field, a block type field, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the second to-be-transmitted data, and the second type indication information includes the synchronization header field and The block type field, the second type indication information is used to indicate that the type of the second data to be transmitted is a control word, and the second type of indication information is further used to indicate that the second data to be transmitted is in the plurality of data to be transmitted. s position.
- the value of the second data to be transmitted is equal to 0x1e.
- the data to be transmitted in the first segment includes an FCS domain, or the first segment does not include an FCS domain.
- the processing module 520 is configured to: when the FCS value is not equal to the value of the FCS domain, determine that an error occurs in the Ethernet frame.
- processing module 520 in the embodiment of the present invention may be implemented by a processor or a processor related circuit component
- receiving module 510 and the transmitting module 530 may be implemented by a transceiver or a transceiver related circuit component.
- FIG. 6 is a schematic block diagram of a forwarding device 600 according to an embodiment of the present disclosure.
- the forwarding device 600 includes a receiving module 610 and a sending module 620.
- the forwarding device 600 can be the forwarding device 103 shown in FIG. 1 or 2.
- the forwarding device 600 can be used to perform the method illustrated in FIG.
- the receiving module 610 is configured to receive the first segment and the first segment, where the first segment includes type indication information and data to be transmitted, where the type indication information is used to indicate the type of the data to be transmitted, and the type of the data to be transmitted is controlled. a word, the data to be transmitted is used to indicate that an error occurs in the Ethernet frame, the Ethernet frame includes the first fragment, and the first fragment includes a destination MAC address field, and the value of the destination MAC address field is equal to the MAC address of the destination device. The MAC address of the forwarding device is not equal to the value of the destination MAC address field.
- the receiving module 610 can be used to execute 401.
- the receiving module 610 can be used to execute 401.
- the sending module 620 is configured to send the first segment to the destination device.
- the sending module 620 can be used to perform 402.
- the sending module 620 reference may be made to the description of 402 in the embodiment corresponding to FIG.
- the Ethernet frame further includes a second segment, and before the receiving device receives the first segment, determining that the Ethernet frame has an error by performing a CRC check on the Ethernet frame, the second segment Modified to the first fragment.
- the destination device 600 further includes a processing module 630, where the processing module 630 is configured to:
- the receiving module 610 receives the first segment and the first segment, and before the sending module 620 sends the first segment to the destination device, determining, according to the destination MAC address field, that the MAC address of the forwarding device is not equal to the destination.
- the sending module 620 is configured to:
- the first segment is sent to the destination device in response to determining that the MAC address of the forwarding device is not equal to the value of the destination MAC address field.
- the receiving module 610 includes a PCS receiver, and after the receiving module 610 receives the first segment, the PCS receiver enters an RX_E state in response to the data to be transmitted.
- the first segment includes an RxC domain and an RxD domain, where the RxC domain carries the type indication information, where the RxD domain carries the data to be transmitted.
- the value of the RxC field is equal to 1, and the value of the RxD field is equal to 0xFE.
- the first segment includes a synchronization header field, a block type field, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the to-be-transmitted data, and the type indication information includes the synchronization header field and the block type domain.
- the type indication information is used to indicate that the type of the data to be transmitted is a control word, and the type indication information is further used to indicate a location of the to-be-transmitted data in the plurality of to-be-transmitted data.
- the value of the synchronization header field is equal to 0x10, and the value of the data to be transmitted is equal to 0x1E.
- the data to be transmitted in the second segment includes a frame check sequence FCS field of the Ethernet frame, or the second segment does not include a frame check sequence FCS field of the Ethernet frame.
- processing module 630 in the embodiment of the present invention may be implemented by a processor or a processor related circuit component
- receiving module 610 and the transmitting module 620 may be implemented by a transceiver or a transceiver related circuit component.
- FIG. 7 is a schematic block diagram of a forwarding device 700 according to an embodiment of the present disclosure.
- the forwarding device 700 includes a receiving circuit 710, a processing circuit 720, and a sending circuit 730.
- the forwarding device 700 can be the forwarding device 102 shown in FIG. 1 or 2.
- the forwarding device 700 can be used to perform the method illustrated in FIG.
- the receiving circuit 710 is configured to receive multiple segments of an Ethernet frame, where the multiple segments include a first segment and a first segment, where the first segment includes a destination MAC address field.
- the receiving circuit 710 can be used to perform 301.
- the receiving circuit 710 can be used to perform 301.
- the processing circuit 720 is configured to determine, according to the plurality of segments, a frame check sequence FCS value of the Ethernet frame; determine, according to the FCS value, that an error occurs in the Ethernet frame; and determine an error in response to the Ethernet frame Modifying the first segment into a second segment, the first segment includes first type indication information and first to-be-transmitted data, the second segment includes second type indication information and second to-be-transmitted data, the first type The indication information is used to indicate the type of the first data to be transmitted, and the second type indication information is used to indicate that the type of the second data to be transmitted is a control word, and the value of the first data to be transmitted is not equal to the second to be transmitted. The value of the data to be used to indicate that an error has occurred in the Ethernet frame.
- processing circuit 720 can be used to execute 302, 303, and 304.
- processing circuit 720 reference may be made to the description of the corresponding embodiments 302, 303, and 304 of FIG.
- the sending circuit 730 is configured to send the second fragment to the destination device, where the value of the destination MAC address field is equal to the MAC address of the destination device, and the MAC address of the destination device is not equal to the MAC address of the forwarding device.
- the transmit circuit 730 can be used to perform 305.
- the transmitting circuit 730 reference may be made to the description of the embodiment 305 corresponding to FIG.
- the processing circuit 720 is configured to: when the value of the first type indication information is not equal to the value of the second type indication information, the first type indication information in the first fragment and the first to Transmitting data is respectively modified into the second type indication information and the second to-be-transmitted data; or, when the value of the first type indication information is equal to the value of the second type indication information, the first one of the first fragments The data to be transmitted is modified into the second data to be transmitted.
- the second segment includes an RxC domain and an RxD domain, where the RxC domain carries the second type indication information, where the RxD domain carries the second to-be-transmitted data.
- the value of the RxC field is 1, and the value of the RxD field is equal to 0xFE.
- the second segment includes a synchronization header field, a block type field, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the second to-be-transmitted data, and the second type indication information includes the synchronization header field and The block type field, the second type indication information is used to indicate that the type of the second data to be transmitted is a control word, and the second type of indication information is further used to indicate that the second data to be transmitted is in the plurality of data to be transmitted. s position.
- the value of the second data to be transmitted is equal to 0x1e.
- the data to be transmitted in the first segment includes an FCS domain, or the first segment does not include an FCS domain.
- the processing circuit 720 is configured to: when the FCS value is not equal to the value of the FCS domain, determine that an error occurs in the Ethernet frame.
- FIG. 8 is a schematic block diagram of a forwarding device 800 according to an embodiment of the present disclosure.
- the forwarding device 800 includes a receiving circuit 810, a sending circuit 820, and a processing circuit 830.
- the forwarding device 800 can be the forwarding device 103 shown in FIG. 1 or 2. Forwarding device 800 can be used to perform the method illustrated in FIG. For a specific implementation manner of the forwarding device 800, reference may be made to the description of the embodiment corresponding to FIG. 4, and details are not described herein again.
- the receiving circuit 810 is configured to receive the first segment and the first segment, where the first segment includes type indication information and data to be transmitted, where the type indication information is used to indicate the type of the data to be transmitted, and the type of the data to be transmitted is controlled. a word, the data to be transmitted is used to indicate that an error occurs in the Ethernet frame, the Ethernet frame includes the first fragment, and the first fragment includes a destination MAC address field, and the value of the destination MAC address field is equal to the MAC address of the destination device. The MAC address of the forwarding device is not equal to the value of the destination MAC address field.
- receiving circuit 810 can be used to perform 401.
- receiving circuit 810 reference may be made to the description of 401 in the embodiment corresponding to FIG.
- the sending circuit 820 is configured to send the first segment to the destination device.
- the transmit circuit 820 can be used to perform 402.
- the transmitting circuit 820 reference may be made to the description of 402 in the embodiment corresponding to FIG.
- the Ethernet frame further includes a second segment, and before the receiving device receives the first segment, determining that the Ethernet frame has an error by performing a CRC check on the Ethernet frame, the second segment Modified to the first fragment.
- the destination device 600 further includes a processing circuit 830, the processing circuit 830 is configured to:
- the receiving circuit 810 After the receiving circuit 810 receives the first segment and the first segment, and before the sending circuit 820 sends the first segment to the destination device, determining, according to the destination MAC address field, that the MAC address of the forwarding device is not equal to the purpose The value of the MAC address field;
- the transmitting circuit 820 is configured to:
- the first segment is sent to the destination device in response to determining that the MAC address of the forwarding device is not equal to the value of the destination MAC address field.
- the receiving circuit 810 includes a physical coding sublayer receiver PCS receiver, and the PCS receiver is configured to: after the receiving circuit 810 receives the first segment, in response to the data to be transmitted, the PCS receiver enters an RX_E state.
- the first segment includes an RxC domain and an RxD domain, where the RxC domain carries the type indication information, where the RxD domain carries the data to be transmitted.
- the value of the RxC field is equal to 1, and the value of the RxD field is equal to 0xFE.
- the first segment includes a synchronization header field, a block type field, and a plurality of to-be-transmitted data, where the plurality of to-be-transmitted data includes the to-be-transmitted data, and the type indication information includes the synchronization header field and the block type domain.
- the type indication information is used to indicate that the type of the data to be transmitted is a control word, and the type indication information is further used to indicate a location of the to-be-transmitted data in the plurality of to-be-transmitted data.
- the value of the synchronization header field is equal to 0x10, and the value of the data to be transmitted is equal to 0x1E.
- the data to be transmitted in the second segment includes a frame check sequence FCS field of the Ethernet frame, or the second segment does not include a frame check sequence FCS field of the Ethernet frame.
- processors mentioned in the embodiment of the present invention may be a central processing unit (CPU), and may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits ( Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the memory referred to in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
- the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
- the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
- RAM Random Access Memory
- many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM). SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (DR RAM).
- processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.
- memories described herein are intended to comprise, without being limited to, these and any other suitable types of memory.
- the disclosed systems, devices, and methods may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
- the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (34)
- 一种传输数据的方法,其特征在于,包括:第一转发设备接收以太网帧的多个片段,所述多个片段包括首个片段以及第一片段,所述首个片段包括目的媒体访问控制MAC地址域;所述第一转发设备根据所述多个片段确定所述以太网帧的帧校验序列FCS值,;所述第一转发设备基于所述FCS值确定所述以太网帧发生了错误;所述第一转发设备响应于所述以太网帧发生了错误的确定,将所述第一片段修改为第二片段,所述第一片段包括第一类型指示信息以及第一待传输数据,所述第二片段包括第二类型指示信息以及第二待传输数据,所述第一类型指示信息用于指示所述第一待传输数据的类型,所述第二类型指示信息用于指示所述第二待传输数据的类型为控制字,所述第一待传输数据的值不等于所述第二待传输数据的值,所述第二待传输数据用于指示所述以太网帧发生了错误;所述第一转发设备向目的设备发送所述第二片段,所述目的MAC地址域的值等于所述目的设备的MAC地址,所述目的设备的MAC地址不等于所述第一转发设备的MAC地址。
- 根据权利要求1所述的方法,其特征在于,所述第一转发设备响应于所述以太网帧发生了错误的确定,将所述第一片段修改为第二片段包括:当所述第一类型指示信息的值不等于所述第二类型指示信息的值时,所述第一转发设备将所述第一片段中的所述第一类型指示信息以及所述第一待传输数据分别修改为所述第二类型指示信息以及所述第二待传输数据;或,当所述第一类型指示信息的值等于所述第二类型指示信息的值时,所述第一转发设备将所述第一片段中的所述第一待传输数据修改为所述第二待传输数据。
- 根据权利要求1或2所述的方法,其特征在于,所述第二片段包含RxC域与RxD域,所述RxC域携带所述第二类型指示信息,所述RxD域携带所述第二待传输数据。
- 根据权利要求3所述的方法,其特征在于,所述RxC域的值为1,所述RxD域的值等于0xFE。
- 根据权利要求1或2所述的方法,其特征在于,所述第二片段包含同步头域,块类型域以及多个待传输数据,所述多个待传输数据中包括所述第二待传输数据,所述第二类型指示信息包括所述同步头域与所述块类型域,所述第二类型指示信息用于指示所述第二待传输数据的类型为控制字,所述第二类型指示信息还用于指示所述第二待传输数据在所述多个待传输数据中的位置。
- 根据权利要求5所述的方法,其特征在于,所述第二待传输数据的值等于0x1e。
- 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一片段中的待传输数据包括FCS域,或,所述第一片段不包括FCS域。
- 根据权利要求7所述的方法,其特征在于,所述第一转发设备基于所述FCS值确定所述以太网帧发生了错误,包括:在所述FCS值不等于所述FCS域的值时,所述第一转发设备确定所述以太网帧发生 了错误。
- 一种传输数据的方法,其特征在于,包括:第二转发设备接收首个片段以及第一片段,所述第一片段包括类型指示信息以及待传输数据,所述类型指示信息用于指示所述待传输数据的类型,所述待传输数据的类型为控制字,所述待传输数据用于指示以太网帧发生了错误,所述以太网帧包括所述首个片段,所述首个片段包括目的MAC地址域,所述目的MAC地址域的值等于目的设备的MAC地址,所述第二转发设备的MAC地址不等于所述目的MAC地址域的值;所述第二转发设备向所述目的设备发送所述第一片段。
- 根据权利要求9所述的方法,其特征在于,所述以太网帧还包括第二片段,所述第二转发设备接收到所述第一片段前,响应于通过对所述以太网帧进行CRC校验确定所述以太网帧发生了错误,所述第二片段被修改为所述第一片段。
- 根据权利要求9或10所述的方法,其特征在于,所述第二转发设备接收首个片段以及第一片段之后,以及,所述第二转发设备向所述目的设备发送所述第一片段之前,所述方法还包括:所述第二转发设备基于所述目的MAC地址域确定所述转发设备的MAC地址不等于所述目的MAC地址域的值;所述第二转发设备向所述目的设备发送所述第一片段包括:所述第二转发设备响应于所述第二转发设备的MAC地址不等于所述目的MAC地址域的值的确定,所述第二转发设备向所述目的设备发送所述第一片段。
- 根据权利要求9至11中任一项所述的方法,其特征在于,所述第二转发设备包括物理编码子层接收机PCS receiver,所述第二转发设备接收所述第一片段之后,所述方法还包括:响应于所述待传输数据,所述PCS receiver进入RX_E状态。
- 根据权利要求9至12中任一项所述的方法,其特征在于,所述第一片段包含RxC域与RxD域,所述RxC域携带所述类型指示信息,所述RxD域携带所述待传输数据。
- 根据权利要求13所述的方法,其特征在于,所述RxC域的值等于1,所述RxD域的值等于0xFE。
- 根据权利要求9至12中任一项所述的方法,其特征在于,所述第一片段包含同步头域,块类型域以及多个待传输数据,所述多个待传输数据中包括所述待传输数据,所述类型指示信息包括所述同步头域与所述块类型域,所述类型指示信息用于指示所述待传输数据的类型为控制字,所述类型指示信息还用于指示所述待传输数据在所述多个待传输数据中的位置。
- 根据权利要求15所述的方法,其特征在于,所述同步头域的值等于0x10,所述待传输数据的值等于0x1E。
- 根据权利要求10至16中任一项所述的方法,其特征在于,所述第二片段中的待传输数据包括以太网帧的帧校验序列FCS域,或,所述第二片段不包括以太网帧的帧校验序列FCS域。
- 一种转发设备,其特征在于,包括:接收电路,用于接收以太网帧的多个片段,所述多个片段包括首个片段以及第一片段, 所述首个片段包括目的媒体访问控制MAC地址域;处理电路,用于根据所述多个片段确定所述以太网帧的帧校验序列FCS值;基于所述FCS值确定所述以太网帧发生了错误;以及,响应于所述以太网帧发生了错误的确定,将所述第一片段修改为第二片段,所述第一片段包括第一类型指示信息以及第一待传输数据,所述第二片段包括第二类型指示信息以及第二待传输数据,所述第一类型指示信息用于指示所述第一待传输数据的类型,所述第二类型指示信息用于指示所述第二待传输数据的类型为控制字,所述第一待传输数据的值不等于所述第二待传输数据的值,所述第二待传输数据用于指示所述以太网帧发生了错误;发送电路,用于向目的设备发送所述第二片段,所述目的MAC地址域的值等于所述目的设备的MAC地址,所述目的设备的MAC地址不等于所述转发设备的MAC地址。
- 根据权利要求18所述的转发设备,其特征在于,所述处理电路用于:当所述第一类型指示信息的值不等于所述第二类型指示信息的值时,将所述第一片段中的所述第一类型指示信息以及所述第一待传输数据分别修改为所述第二类型指示信息以及所述第二待传输数据;或,当所述第一类型指示信息的值等于所述第二类型指示信息的值时将所述第一片段中的所述第一待传输数据修改为所述第二待传输数据。
- 根据权利要求18或19所述的转发设备,其特征在于,所述第二片段包含RxC域与RxD域,所述RxC域携带所述第二类型指示信息,所述RxD域携带所述第二待传输数据。
- 根据权利要求20所述的转发设备,其特征在于,所述RxC域的值为1,所述RxD域的值等于0xFE。
- 根据权利要求18或19所述的转发设备,其特征在于,所述第二片段包含同步头域,块类型域以及多个待传输数据,所述多个待传输数据中包括所述第二待传输数据,所述第二类型指示信息包括所述同步头域与所述块类型域,所述第二类型指示信息用于指示所述第二待传输数据的类型为控制字,所述第二类型指示信息还用于指示所述第二待传输数据在所述多个待传输数据中的位置。
- 根据权利要求22所述的转发设备,其特征在于,所述第二待传输数据的值等于0x1e。
- 根据权利要求18至23中任一项所述的转发设备,其特征在于,所述第一片段中的待传输数据包括FCS域,或,所述第一片段不包括FCS域。
- 根据权利要求24所述的转发设备,其特征在于,所述处理电路用于:在所述FCS值不等于所述FCS域的值时,确定所述以太网帧发生了错误。
- 一种转发设备,其特征在于,包括:接收电路,用于接收首个片段以及第一片段,所述第一片段包括类型指示信息以及待传输数据,所述类型指示信息用于指示所述待传输数据的类型,所述待传输数据的类型为控制字,所述待传输数据用于指示以太网帧发生了错误,所述以太网帧包括所述首个片段,所述首个片段包括目的MAC地址域,所述目的MAC地址域的值等于目的设备的MAC地址,所述转发设备的MAC地址不等于所述目的MAC地址域的值;发送电路,用于向所述目的设备发送所述第一片段。
- 根据权利要求26所述的转发设备,其特征在于,所述以太网帧还包括第二片段,所述转发设备接收到所述第一片段前,响应于通过对所述以太网帧进行CRC校验确定所述以太网帧发生了错误,所述第二片段被修改为所述第一片段。
- 根据权利要求26或27所述的转发设备,其特征在于,所述处理电路用于:在所述接收电路接收首个片段以及第一片段之后,以及,在所述发送电路向所述目的设备发送所述第一片段之前,基于所述目的MAC地址域确定所述转发设备的MAC地址不等于所述目的MAC地址域的值;所述发送电路用于:响应于所述转发设备的MAC地址不等于所述目的MAC地址域的值的确定,向所述目的设备发送所述第一片段。
- 根据权利要求26至28中任一项所述的转发设备,其特征在于,所述接收电路包括物理编码子层接收机PCS receiver,所述PCS receiver用于:在所述接收电路接收所述第一片段之后,响应于所述待传输数据,所述PCS receiver进入RX_E状态。
- 根据权利要求26至29中任一项所述的转发设备,其特征在于,所述第一片段包含RxC域与RxD域,所述RxC域携带所述类型指示信息,所述RxD域携带所述待传输数据。
- 根据权利要求30所述的转发设备,其特征在于,所述RxC域的值等于1,所述RxD域的值等于0xFE。
- 根据权利要求26至29中任一项所述的转发设备,其特征在于,所述第一片段包含同步头域,块类型域以及多个待传输数据,所述多个待传输数据中包括所述待传输数据,所述类型指示信息包括所述同步头域与所述块类型域,所述类型指示信息用于指示所述待传输数据的类型为控制字,所述类型指示信息还用于指示所述待传输数据在所述多个待传输数据中的位置。
- 根据权利要求32所述的转发设备,其特征在于,所述同步头域的值等于0x10,所述待传输数据的值等于0x1E。
- 根据权利要求27至33中任一项所述的转发设备,其特征在于,所述第二片段中的待传输数据包括以太网帧的帧校验序列FCS域,或,所述第二片段不包括以太网帧的帧校验序列FCS域。
Priority Applications (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
BR112020019811-0A BR112020019811A2 (pt) | 2018-03-31 | 2018-03-31 | Método de transmissão de dados e dispositivo de encaminhamento |
CN202210006728.XA CN114374476A (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
JP2020552816A JP7087106B2 (ja) | 2018-03-31 | 2018-03-31 | データ送信方法および転送デバイス |
CN201880091993.4A CN111937329B (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
CN202210006674.7A CN114374475A (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
EP18911405.1A EP3767851B1 (en) | 2018-03-31 | 2018-03-31 | Frame error indication |
PCT/CN2018/081495 WO2019183987A1 (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
US17/038,790 US11387940B2 (en) | 2018-03-31 | 2020-09-30 | Transmitting fragments of ethernet frame with indicating error occurring in ethernet frame |
JP2022092991A JP7346662B2 (ja) | 2018-03-31 | 2022-06-08 | データ送信方法および転送デバイス |
US17/850,027 US11799587B2 (en) | 2018-03-31 | 2022-06-27 | Transmitting fragments of ethernet frame with indicating error occurring in ethernet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/081495 WO2019183987A1 (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/038,790 Continuation US11387940B2 (en) | 2018-03-31 | 2020-09-30 | Transmitting fragments of ethernet frame with indicating error occurring in ethernet frame |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019183987A1 true WO2019183987A1 (zh) | 2019-10-03 |
Family
ID=68059486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/081495 WO2019183987A1 (zh) | 2018-03-31 | 2018-03-31 | 传输数据的方法和转发设备 |
Country Status (6)
Country | Link |
---|---|
US (2) | US11387940B2 (zh) |
EP (1) | EP3767851B1 (zh) |
JP (2) | JP7087106B2 (zh) |
CN (3) | CN111937329B (zh) |
BR (1) | BR112020019811A2 (zh) |
WO (1) | WO2019183987A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043355A (zh) * | 2006-05-19 | 2007-09-26 | 华为技术有限公司 | 一种防止mac地址欺骗的方法 |
US20110222490A1 (en) * | 2010-03-09 | 2011-09-15 | Broadcom Corporation | Bandwidth mechanisms and successive channel reservation access within multiple user, multiple access, and/or MIMO wireless communications |
CN102668432A (zh) * | 2009-12-18 | 2012-09-12 | 日本电气株式会社 | 判定装置、转发装置、判定方法、计算机程序 |
CN105871502A (zh) * | 2015-01-22 | 2016-08-17 | 华为技术有限公司 | 一种利用以太网信道传输业务信号的方法及通信设备 |
CN107428294A (zh) * | 2015-01-20 | 2017-12-01 | 松下电器(美国)知识产权公司 | 不正常检测规则更新方法、不正常检测电子控制单元以及车载网络系统 |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7089485B2 (en) * | 2000-02-03 | 2006-08-08 | Agere Systems Inc. | Simple link protocol providing low overhead coding for LAN serial and WDM solutions |
JP3471288B2 (ja) * | 2000-04-18 | 2003-12-02 | 日本電信電話株式会社 | 通信システムの監視方法 |
CN100388700C (zh) * | 2002-10-18 | 2008-05-14 | 华为技术有限公司 | 一种在同步数字网上传送数据业务的方法 |
JP2005006036A (ja) * | 2003-06-12 | 2005-01-06 | Nec Corp | ネットワーク、伝送装置及びそれに用いるトランスペアレント転送方法 |
DE112006001165T5 (de) * | 2005-05-09 | 2008-02-28 | Mitsubishi Electric Corp. | Kommunikationsvorrichtung und Schalteinrichtung |
US7440513B2 (en) * | 2005-05-24 | 2008-10-21 | Avago Technologies General Ip (Singapore) Pte. Ltd. | Coding and decoding packetized data |
CN101488827B (zh) | 2008-01-14 | 2015-07-08 | 华为技术有限公司 | 实现数据报错的方法和装置 |
US8402343B2 (en) | 2009-12-04 | 2013-03-19 | St-Ericsson Sa | Reliable packet cut-through |
JP2012253528A (ja) * | 2011-06-02 | 2012-12-20 | Hitachi Ltd | パケットトランスポート用再生中継装置 |
CN104580011B (zh) * | 2013-10-23 | 2017-12-15 | 新华三技术有限公司 | 一种数据转发装置和方法 |
US10404625B2 (en) * | 2013-10-29 | 2019-09-03 | Intel Corporation | Ethernet enhancements |
US9692715B2 (en) * | 2014-02-21 | 2017-06-27 | Cavium, Inc. | Multiple ethernet ports and port types using a shared data path |
US9515694B1 (en) * | 2014-07-29 | 2016-12-06 | nusemi inc. | Adaptable rate transceiver |
CN107370674B (zh) * | 2016-05-13 | 2020-12-01 | 华为技术有限公司 | 一种数据传输的方法、设备和系统 |
US11075836B2 (en) * | 2016-05-31 | 2021-07-27 | 128 Technology, Inc. | Reverse forwarding information base enforcement |
CN107566075B (zh) * | 2016-07-01 | 2019-10-25 | 华为技术有限公司 | 一种发送和接收业务的方法、装置和网络系统 |
CN106788894A (zh) * | 2016-12-20 | 2017-05-31 | 中核控制系统工程有限公司 | 分段独立传输校验方法 |
CN110366841B (zh) * | 2017-03-06 | 2021-09-17 | 三菱电机株式会社 | 传送装置、传送方法和传送系统 |
JP2017121091A (ja) * | 2017-04-10 | 2017-07-06 | 日立オートモティブシステムズ株式会社 | Ecu、及び車用ネットワーク装置 |
-
2018
- 2018-03-31 CN CN201880091993.4A patent/CN111937329B/zh active Active
- 2018-03-31 WO PCT/CN2018/081495 patent/WO2019183987A1/zh unknown
- 2018-03-31 EP EP18911405.1A patent/EP3767851B1/en active Active
- 2018-03-31 CN CN202210006674.7A patent/CN114374475A/zh active Pending
- 2018-03-31 JP JP2020552816A patent/JP7087106B2/ja active Active
- 2018-03-31 BR BR112020019811-0A patent/BR112020019811A2/pt unknown
- 2018-03-31 CN CN202210006728.XA patent/CN114374476A/zh active Pending
-
2020
- 2020-09-30 US US17/038,790 patent/US11387940B2/en active Active
-
2022
- 2022-06-08 JP JP2022092991A patent/JP7346662B2/ja active Active
- 2022-06-27 US US17/850,027 patent/US11799587B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043355A (zh) * | 2006-05-19 | 2007-09-26 | 华为技术有限公司 | 一种防止mac地址欺骗的方法 |
CN102668432A (zh) * | 2009-12-18 | 2012-09-12 | 日本电气株式会社 | 判定装置、转发装置、判定方法、计算机程序 |
US20110222490A1 (en) * | 2010-03-09 | 2011-09-15 | Broadcom Corporation | Bandwidth mechanisms and successive channel reservation access within multiple user, multiple access, and/or MIMO wireless communications |
CN107428294A (zh) * | 2015-01-20 | 2017-12-01 | 松下电器(美国)知识产权公司 | 不正常检测规则更新方法、不正常检测电子控制单元以及车载网络系统 |
CN105871502A (zh) * | 2015-01-22 | 2016-08-17 | 华为技术有限公司 | 一种利用以太网信道传输业务信号的方法及通信设备 |
Also Published As
Publication number | Publication date |
---|---|
EP3767851A1 (en) | 2021-01-20 |
EP3767851B1 (en) | 2023-08-30 |
US20220329352A1 (en) | 2022-10-13 |
BR112020019811A2 (pt) | 2021-01-05 |
JP2021517428A (ja) | 2021-07-15 |
CN111937329B (zh) | 2021-12-31 |
CN111937329A (zh) | 2020-11-13 |
CN114374476A (zh) | 2022-04-19 |
US11799587B2 (en) | 2023-10-24 |
EP3767851A4 (en) | 2021-03-17 |
CN114374475A (zh) | 2022-04-19 |
JP7346662B2 (ja) | 2023-09-19 |
JP2022120060A (ja) | 2022-08-17 |
US11387940B2 (en) | 2022-07-12 |
US20210014000A1 (en) | 2021-01-14 |
JP7087106B2 (ja) | 2022-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7519080B2 (en) | Fibre channel frame-mode GFP with distributed delimiter | |
US20090190595A1 (en) | Method, system and device for transmitting overhead information | |
TWI650967B (zh) | 乙太網路的連線方法及其乙太網路裝置 | |
JP2004173271A (ja) | 誤り検出を改善するローリングcrc機構 | |
EP2365657B1 (en) | Data transfer device and data transfer system | |
US11251905B2 (en) | Method for receiving code block stream, method for transmitting code block stream, and communications apparatus | |
EP2201740B1 (en) | High speed packet processing in a wireless network | |
WO2019183987A1 (zh) | 传输数据的方法和转发设备 | |
WO2022193767A1 (zh) | 一种以太报文的处理方法以及相关设备 | |
JP2021533691A (ja) | サービスビットストリームを処理する方法及び装置 | |
US20080267281A1 (en) | Method, device and network element for decoding an information word from a coded word | |
JP4419867B2 (ja) | データ処理装置 | |
CN116455516A (zh) | 编码方法、解码方法、装置、设备、系统及可读存储介质 | |
WO2020029893A1 (zh) | 接收码块流的方法、发送码块流的方法和通信装置 |
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: 18911405 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2020552816 Country of ref document: JP Kind code of ref document: A |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112020019811 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 2018911405 Country of ref document: EP Effective date: 20201014 |
|
ENP | Entry into the national phase |
Ref document number: 112020019811 Country of ref document: BR Kind code of ref document: A2 Effective date: 20200928 |