WO2015165255A1 - Procédé et dispositif de transmission de données - Google Patents

Procédé et dispositif de transmission de données Download PDF

Info

Publication number
WO2015165255A1
WO2015165255A1 PCT/CN2014/091789 CN2014091789W WO2015165255A1 WO 2015165255 A1 WO2015165255 A1 WO 2015165255A1 CN 2014091789 W CN2014091789 W CN 2014091789W WO 2015165255 A1 WO2015165255 A1 WO 2015165255A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
receiving device
communication connection
mac layer
message
Prior art date
Application number
PCT/CN2014/091789
Other languages
English (en)
Chinese (zh)
Inventor
彭本华
吴沛
方洪灿
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015165255A1 publication Critical patent/WO2015165255A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Definitions

  • the present invention relates to the field of communications, and in particular, to a data transmission method and apparatus.
  • FC Fibre Channel
  • PCIE Peripheral Component Interconnect Express
  • the Ethernet data transmission Due to the congestion of the data and the weak error control, the Ethernet data transmission has a slow rate, a link error, a large number of packet loss, or even a network failure.
  • the prior art schedules data transmission through an Ethernet high-layer protocol, and solves the link congestion problem to some extent. For example, PFC (priority-based flow control), ETS (Enhanced Transmission Selection), QCN (Quantized Congestion Notification), etc. can effectively solve link congestion. problem.
  • PFC priority-based flow control
  • ETS Enhanced Transmission Selection
  • QCN Quality Congestion Notification
  • the mechanism for scheduling data transmission in the prior art is implemented in a high-level protocol, such as a TCP (Transmission Control Protocol) layer, when a bit error occurs in the MAC (Media Access Control) layer, a problem occurs.
  • TCP Transmission Control Protocol
  • MAC Media Access Control
  • Embodiments of the present invention provide a data transmission method and apparatus, which can solve the problem that data transmission efficiency is too low and the delay is too long when a bit error occurs in the MAC layer.
  • a data transmission method includes:
  • the sending device sends a data message to the receiving device through a media intervention control MAC layer communication connection established with the receiving device;
  • the transmitting device determines that the data message is not correctly transmitted, the transmitting device resends the data message to the receiving device by using the MAC layer communication connection.
  • the method before the transmitting device sends a data packet to the receiving device by using a media intervention control MAC layer communication connection established by the receiving device, the method further includes:
  • the transmitting device receives a MAC layer communication connection confirmation message sent by the receiving device, and establishes a communication connection with the transmitting device at the MAC layer according to the MAC layer communication connection confirmation message.
  • the sending apparatus determines that the data packet fails to be correctly transmitted, the sending apparatus communicates by using the MAC layer Reconnecting the data message to the receiving device includes:
  • the sending device determines that the response information of the data message is not received within a preset time, the sending device resends the data message to the receiving device by using the MAC layer communication connection.
  • the sending apparatus determines that the data packet fails to be correctly transmitted, the sending apparatus passes the MAC layer
  • the communication connection resending the data message to the receiving device, including:
  • the sending device receives the negative acknowledgement NAK information of the data packet by using the MAC layer communication connection
  • the sending device sends the data to the receiving by using the MAC layer communication connection according to the NAK information of the data packet.
  • the device resends the data packet, and the NAK information of the data packet is used to indicate that the receiving device does not correctly receive the data packet.
  • the data packet includes a sequence number of the data packet, and the method further includes:
  • the transmitting device receives, by using the MAC layer communication connection, a data retransmission message sent by the receiving device, where the data retransmission message includes NAK information and a sequence number of the NAK information;
  • the sending device determines that the NAK information of the data message is received through the MAC layer communication connection.
  • the sending device controls a MAC layer communication connection by using a media intervention established with the receiving device
  • the receiving device sends a data packet, where the sending device sends a data packet to the receiving device by using a predefined extended MAC frame structure;
  • the predefined extended MAC frame structure includes a source MAC address of the packet, a destination MAC address of the packet, an Ethernet data frame type of the packet, a sequence number of the packet, and a packet type.
  • the data packet includes a MAC address of the sending device, a MAC address of the receiving device, an Ethernet data frame type, a sequence number of the data packet, and a type of the data packet.
  • a data transmission method includes:
  • the receiving device controls the MAC layer communication connection, and receives the data message sent by the sending device;
  • the receiving device determines that the received data message has an error, transmitting, by the MAC layer communication connection, the negative acknowledgement NAK information of the data packet to the sending device, and the NAK information of the data packet And is used to indicate that the receiving device does not correctly receive the data message.
  • the method before the receiving, by the MAC layer, the receiving, by the MAC layer, the data packet sent by the sending device, the method further includes:
  • the receiving device transmits the MAC layer communication connection confirmation message to the transmitting device.
  • the data packet includes a sequence number of the data packet, and the method further includes:
  • the receiving device determines, according to the sequence number of the data packet carried in the data packet, whether the data packet has an error.
  • the MAC layer communication connection is performed. Sending the NAK information of the data packet to the sending device, including:
  • the receiving device determines that the received data packet has an error, the receiving device generates a data retransmission packet according to the data packet, where the data retransmission packet includes a NAK information and a a sequence number of the NAK information, the sequence number of the NAK information being consistent with the data message indicated by the sequence number of the data packet, the data retransmission message being used to indicate that the receiving device does not correctly receive the data Message
  • the receiving device sends the data retransmission message to the sending device by using the MAC layer communication connection.
  • the receiving device sends the data retransmission packet to the sending device by using the MAC layer communication connection, including:
  • the receiving device sends the data retransmission message to the receiving device by using a predefined extended MAC frame structure
  • the predefined extended MAC frame structure includes a source MAC address of the packet, a destination MAC address of the packet, an Ethernet data frame type of the packet, a sequence number of the packet, and a packet type.
  • the data retransmission message includes a MAC address of the receiving device, a MAC address of the sending device, an Ethernet data frame type, a sequence number of the data retransmission message, and NAK information.
  • the sending by the MAC layer communication connection, the data to the sending device After the message's negative response to the NAK message, it also includes:
  • a transmitting device includes:
  • a sending unit configured to send a data message to the receiving device by using a media intervention control MAC layer communication connection established by the receiving device;
  • the sending unit is further configured to: when determining that the receiving device does not normally receive the data packet, resend the data packet to the receiving device by using the MAC layer communication connection.
  • the sending unit is further configured to send a MAC layer communication connection request message to the receiving device according to a MAC address of the receiving device;
  • the transmitting device further includes a receiving unit and a connecting unit,
  • the receiving unit is configured to receive a MAC layer communication connection confirmation message sent by the receiving device;
  • the connecting unit is configured to establish a communication connection with the sending device at the MAC layer according to the MAC layer communication connection confirmation message received by the receiving unit.
  • the sending unit is further configured to: when determining that the response information of the data packet is not received within a preset time, Retransmitting the data message to the receiving device over the MAC layer communication connection.
  • the sending unit is further configured to: when the sending device receives the sending by the receiving device by using the MAC layer communication connection When the data message is negatively responsive to the NAK information, the data message is retransmitted to the receiving device by the MAC layer communication connection according to the NAK information of the data message, and the data message is NAK The information is used to indicate that the receiving device does not normally receive the data message.
  • the data packet includes a sequence number of the data packet
  • the receiving unit is further configured to receive, by using the MAC layer communication connection, a data retransmission message sent by the receiving device, where the data retransmission message includes a NAK information and a sequence number of the NAK information;
  • the receiving unit is further configured to: when the sequence number of the NAK information is consistent with the data packet indicated by the sequence number of the data packet, determine that the NAK of the data packet is received by using the MAC layer communication connection. information.
  • the sending unit is further configured to use a predefined extended MAC frame structure to The receiving device sends a data message
  • the predefined extended MAC frame structure includes a source MAC address of the packet, a destination MAC address of the packet, an Ethernet data frame type of the packet, a sequence number of the packet, and a packet type.
  • the data packet includes a MAC address of the sending device, a MAC address of the receiving device, an Ethernet data frame type, a sequence number of the data packet, and a type of the data packet.
  • a receiving apparatus includes:
  • a receiving unit configured to receive, by using a media intervention control MAC layer communication connection established by the sending device, the data message sent by the sending device;
  • a sending unit configured to send, by using the MAC layer communication connection, a negative acknowledgement NAK information of the data packet, and a NAK information of the data packet, when an error occurs in the received data packet And is used to indicate that the receiving device does not correctly receive the data message.
  • the receiving unit is further configured to receive a MAC layer communication connection request message sent by the sending device;
  • the receiving device further includes a control unit, configured to generate a MAC layer communication connection confirmation message
  • the sending unit is configured to connect the MAC layer communication generated by the control unit A confirmation message is sent to the transmitting device.
  • the data packet includes a sequence number of the data packet
  • the control unit is further configured to determine whether an error occurs in the data packet according to the sequence number of the data packet carried in the data packet.
  • control unit is further configured to: when the received data packet has an error, according to the data packet And generating a data retransmission message, where the data retransmission message includes a NAK information and a sequence number of the NAK information, where a sequence number of the NAK information is consistent with a data message indicated by a sequence number of the data packet, The data retransmission message is used to indicate that the receiving device does not correctly receive the data packet;
  • the sending unit is further configured to send, by using the MAC layer communication connection, the data retransmission message generated by the control unit to the sending apparatus.
  • the sending unit is further configured to send the data weight to the receiving device by using a predefined extended MAC frame structure Send a message;
  • the predefined extended MAC frame structure includes a source MAC address of the packet, a destination MAC address of the packet, an Ethernet data frame type of the packet, a sequence number of the packet, and a packet type.
  • the data retransmission message includes a MAC address of the receiving device, a MAC address of the sending device, an Ethernet data frame type, a sequence number of the data retransmission message, and NAK information.
  • the receiving unit is further configured to receive, by using the MAC layer communication connection, Sending the data message retransmitted by the device.
  • the sending device sends a data message to the receiving device through the media intervention control MAC layer communication connection established by the receiving device, and if the sending device determines that the data message is not correctly transmitted, The transmitting device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoiding the prior art only through the high-level association.
  • the scheduling of the transmission of the Ethernet data can retransmit the data packet in time when the MAC layer fails to correctly transmit the data packet, such as the error, the packet loss, and the transmission timeout, thereby solving the MAC layer in the prior art.
  • the problem of data transmission efficiency that is too low and the delay is too long when an error occurs.
  • FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another data transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of still another data transmission method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a transmitting apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a receiving apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another sending apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another receiving apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
  • An embodiment of the present invention provides a data transmission method, which is applied to a transmitting apparatus. Referring to FIG. 1, the method includes the following steps:
  • the transmitting device sends a data packet to the receiving device by using a media intervention control MAC layer communication connection established by the receiving device.
  • the sending device is applied to an Ethernet, and the sending device is The device has established a media intervention control MAC layer communication connection with the receiving device, so the transmitting device can send a data message to the receiving device through a media intervention control MAC layer communication connection established with the receiving device, wherein the MAC layer is located at the OSI
  • the data link layer of the (Open System Interconnection) model is the lower layer protocol of the OSI model, and is mainly responsible for the control and connection of the physical layer physical media.
  • the sending device determines that the data message is not correctly transmitted, the sending device resends the data message to the receiving device by using the MAC layer communication connection.
  • the error may occur, the packet loss, the transmission timeout, and the like may be required by the transmitting device to resend the data packet.
  • the receiving device does not receive the data packet or the received data packet. An error occurred, or it took a long time to receive a data message.
  • the determining when determining that the data packet fails to be correctly transmitted, resending the data packet to the receiving device by using the MAC layer communication connection, thereby establishing a mechanism for data retransmission detection and guarantee at the MAC layer to ensure
  • the error occurs in the MAC layer, such as error, packet loss, and transmission timeout
  • the data packet is retransmitted in time, which effectively reduces the data transmission efficiency caused by the error in the MAC layer.
  • the problem of delay is too long.
  • the case that the data packet is not correctly transmitted may include:
  • the transmitting device After transmitting the data message, the transmitting device receives the NAK (Negative Acknowledgement) information sent by the receiving device, and then retransmits the data message to the transmitting device.
  • the negative acknowledgement NAK information indicates that the receiving device does not correctly receive the data packet, and the receiving device instructs the transmitting device to resend the data packet by sending the NAK information to the transmitting device.
  • the sending device does not receive the ACK (Acknowledgement) information sent by the receiving device or the NAK information sent by the receiving device in the preset time, wherein the ACK information of the data packet is used to indicate that the receiving device correctly receives the data.
  • the sending device starts timing when the data message is sent, and stops receiving the ACK information or the NAK information sent by the receiving device, and further optionally, if the NAK information is not received or received within the preset time.
  • the NAK information also stops timing, that is, the time period of the timer reaches the preset time to stop timing.
  • the response information that the sending device does not receive the data packet within the preset time may be caused by the network congestion or packet loss, and the receiving device does not receive the data packet. Or after a long time to receive the data message, the sending device will resend the data message to ensure the efficiency of data retransmission.
  • the transmitting device sends a data packet to the receiving device through the media intervention control MAC layer communication connection established by the receiving device, and if the sending device determines that the data packet fails to be correctly transmitted, The device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoiding scheduling of Ethernet data transmission only by the upper layer protocol in the prior art.
  • the error occurs in the MAC layer, such as the error, the packet loss, and the transmission timeout
  • the data packet is retransmitted in time, which solves the problem that the data transmission efficiency of the MAC layer in the prior art is too low.
  • the problem is that the delay is too long.
  • An embodiment of the present invention provides another data transmission method, which is applied to a receiving device.
  • the method includes the following steps:
  • the receiving device controls the MAC layer communication connection by using the media established by the sending device, and receives the data packet sent by the sending device.
  • the receiving device receives the data packet sent by the sending device, or may cause the data packet received by the receiving device to be in error due to errors, congestion, packet loss, etc., and the data packet may be received after a long time. Text or unable to receive data messages.
  • the receiving device determines that the received data message has an error, transmitting a negative acknowledgement NAK information of the data message to the transmitting device through the MAC layer communication connection.
  • the NAK information of the data packet is used to indicate that the receiving device does not correctly receive the data packet.
  • the received data packet is determined:
  • the receiving device If the data message has no error, the receiving device generates corresponding ACK information, and sends the ACK information to the sending device through the MAC layer communication connection;
  • the receiving device If the data message is in error, the receiving device generates corresponding NAK information and will The NAK information is sent to the transmitting device through the MAC layer communication connection.
  • the transmitting device sends a data packet to the receiving device through the media intervention control MAC layer communication connection established by the receiving device, and if the receiving device determines that the received data packet has an error, the transmitting device passes The MAC layer communication connection sends a negative acknowledgement NAK information of the data message to the transmitting device, and the transmitting device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, thereby avoiding
  • the high-level protocol is used to schedule the transmission of the Ethernet data, and the data packet can be retransmitted in time when the error occurs in the MAC layer, such as error, packet loss, and transmission timeout.
  • the data transmission efficiency is too low and the delay is too long.
  • the data transmission method provided by the embodiment of the present invention receives the data message sent by the sending device by the receiving device controlling the MAC layer communication connection through the media intervention established by the transmitting device, and if the receiving device determines that the received data message has an error, The NAK information of the data packet is sent to the sending device by using the MAC layer communication connection, and the NAK information of the data packet is used to indicate that the receiving device does not correctly receive the data packet, which solves the problem that the MAC layer in the prior art has an error.
  • the data transmission efficiency is too low and the delay is too long.
  • an embodiment of the present invention provides a data transmission method, and the following steps are included as shown in FIG. 3:
  • the transmitting device sends a MAC layer communication connection request message to the receiving device according to the MAC address of the receiving device.
  • both the transmitting device and the receiving device belong to a network device in an Ethernet.
  • the sending device may establish a MAC layer communication connection with the receiving device by using a MAC layer communication connection entry, and the MAC layer communication connection entry records that a MAC layer communication connection can be established.
  • Information of the opposite end such as a MAC address, so that the transmitting device can acquire the MAC address of the receiving device, and send a MAC layer communication connection request message to the receiving device according to the MAC address of the receiving device to request establishment of the receiving device.
  • MAC layer communication connection such as a MAC address
  • the network device may include multiple network devices, and the sending device may be the first network device in the Ethernet.
  • Table 1 is the MAC address of the first network device.
  • the layer communication connection entry records the MAC layer communication connection relationship between the first network device and other network devices.
  • the first network device establishes a MAC layer communication connection with the network device at the other end of the MAC layer communication connection through a destination address (DA, Destination Address) and a source address (SA, Source Address) in each MAC layer communication connection.
  • the source address is the address of the network device that initiates the MAC layer communication connection request, that is, the address of the first network device
  • the target address is the address of the target network device, that is, the address of the network device that receives the communication connection request.
  • Communication connection number target address source address 0 First target network device First network device 1 Second target network device First network device 2 Third target network device First network device
  • an embodiment of the present invention may further provide a MAC layer frame structure, so that in all embodiments of the present invention, all MAC layer data messages can be sent and received between the sending device and the receiving device.
  • the frame structure for example, the transmitting device transmits the MAC layer communication connection request message to the receiving device using the frame structure, and the transmitting device, for example, transmits the data message to the receiving device using the frame structure.
  • the frame structure includes the following:
  • the destination MAC address for example, can occupy 6 bytes
  • the source MAC address for example, can occupy 6 bytes
  • the different values represent different message types, so that the type of the message can be quickly determined, for example, a message with an acknowledgment message, a message with a NAK message, a mentality message, and the like.
  • a definition is listed here as follows. In this manner, the ACK/NAK information is included in the type field of the message:
  • the type field of the message can also contain other definitions. Here is just a part of the description.
  • ACK Acknowledgement
  • NAK Negative Acknowledgement
  • the ACK information/NAK information sequence number field can occupy 2 bytes.
  • the ACK information sequence number may be the message sequence number of the currently received data message, and is used to indicate that the currently received data message has been correctly received.
  • the NAK information sequence number may be the message sequence number of the last correctly received data message, corresponding to the currently received data message, and used to indicate the currently received data message. An error occurred and needs to be resent.
  • the payload can carry all protocols, including TCP/IP, FCOE and other protocols that require a highly reliable connection, so that the method shown in the embodiment of the present invention can support various communication protocols.
  • the type of the message in the MAC layer communication connection request message sent by the sending device to the receiving device is 0101.
  • the receiving device sends a MAC layer communication connection confirmation message to the sending device.
  • the type of the MAC layer message of the MAC layer communication connection confirmation message transmitted by the receiving device to the transmitting device is 0110.
  • the transmitting device establishes a communication connection with the sending device at the MAC layer according to the MAC layer communication connection confirmation message.
  • the sending device initiates a synchronization message to the receiving device, and after receiving the synchronization message, the receiving device returns a synchronization confirmation message to the sending device and enters a synchronization state, and prepares to receive the data message sent by the sending device. After receiving the synchronization confirmation message of the receiving device, the sending device enters the synchronization state and starts to send data packets. Then, the transmitting device establishes a MAC layer communication connection with the receiving device.
  • the communication connection information can be monitored and managed through Table 2.
  • Table 2 is the MAC layer communication connection management entry, and the MAC layer communication connection between the plurality of network devices is recorded. status.
  • the MAC layer communication connection management entry may include a communication connection between multiple source network devices and multiple target network devices, and each communication connection may also include multiple pieces of information, where only three source network devices and two are used.
  • the switch state of the MAC layer communication connection between the target network devices is exemplified, which does not mean that the MAC layer communication connection management entry of the present invention must contain the information in Table 2 or only the information in Table 2.
  • the transmitting device sends a data packet to the receiving device by using a media intervention control MAC layer communication connection established by the receiving device.
  • the sending device stores the data message in the cache, so as to be resent when the receiving device does not correctly receive the data message. After the receiving device correctly receives the data message, the sending device can clear the message from the cache.
  • the receiving device determines, according to the sequence number of the data packet carried in the data packet, whether the data packet has an error.
  • the transmitting device can number the message during the data transmission process, and the number starts from 0. Each time one is sent, the serial number of the data message is incremented by 1.
  • the sequence number of the message can also be 0 starts counting.
  • the receiving device parses the data packet at the MAC layer to obtain the packet sequence number of the data packet.
  • the correct packet sequence number should be the sequence number of the last received data packet plus one. That is, it is continuous with the message sequence number of the last received data message, otherwise it represents an error in the received data message.
  • the receiving device may generate the ACK information, and send the ACK information to the sending device by using the MAC layer communication connection, where the ACK information includes a sequence number of the data packet, and is used to indicate that the sequence is carried. The data packet of the number has been received correctly.
  • the sending device deletes the cached data packet according to the received ACK information.
  • the receiving device discards the error data and generates corresponding NAK information.
  • the sequence number of the NAK information is the sequence number of the last packet that has been correctly received, and is used to instruct the sending device to resend the currently received error message.
  • the receiving device sends the NAK information to the sending device by using a data retransmission message, where the NAK information is used to indicate that the receiving device does not correctly receive the data packet.
  • determining whether the message is erroneous according to the message sequence number is only a specific implementation manner provided by this embodiment, and may also verify whether the data packet is in error by using other forms such as a check code, and how to determine whether the data packet is in error or not.
  • the invention is not limited.
  • the sending device resends the data packet to the receiving device by using a MAC layer communication connection.
  • the sending device starts timing when the data packet is sent, and stops receiving the ACK information or the NAK information sent by the receiving device, and further, if the confirmation message is not received within the preset time.
  • the non-confirmation information also stops timing, that is, the time length of the timing reaches the preset time.
  • the preset time can be set according to the specific circumstances.
  • the sending device resends the data message to the receiving device through the MAC layer communication connection, including two cases:
  • the transmitting device determines that neither the ACK information of the data packet nor the NAK information of the data packet is received within the preset time, the representative data packet is lost or the ACK/NAK information is lost or transmitted. In case of timeout or the like, the transmitting device retransmits the data message to the receiving device through the MAC layer communication connection.
  • the transmitting device if the transmitting device receives the negative acknowledgement NAK information of the data packet through the MAC layer communication connection within the preset time, the transmitting device resends the data to the receiving device through the MAC layer communication connection according to the NAK information of the data packet. Message.
  • the receiving device receives the data packet retransmitted by the sending device by using a MAC layer communication connection.
  • the receiving device determines whether the data packet is in error at the MAC layer, and sends corresponding ACK/NAK information to the receiving device through the MAC layer communication connection according to the judgment result, respectively, that the data packet has been correctly received, or the data packet is not correctly received.
  • the NAK information is used to instruct the transmitting device to resend the data message. In this way, the delay caused by the high-level protocol implementation judgment and retransmission is reduced.
  • the receiving device can transmit data to the transmitting device, and the transmitting device can receive the data transmitted by the receiving device.
  • the transmitting device and the receiving device can simultaneously transmit and receive data to each other.
  • the transmitting device can receive the receiving device while transmitting the data message Ta.
  • the data packet Ra is sent, and then the MAC layer determines whether the data packet Ra is in error, and sends ACK information or NAK information to the receiving device according to the judgment result.
  • the ACK information or the NAK information may be directly included in the frame structure of the data packet of the data packet Tb sent by the transmitting device to the receiving device.
  • the type of the packet of the MAC layer data packet may be 0001 or 0011, where 0001 Represents data with an ACK acknowledgment message, and 0011 represents data with a NAK unacknowledged message.
  • the transmitting device sends a data packet to the receiving device through the media intervention control MAC layer communication connection established by the receiving device, and if the sending device determines that the data packet fails to be correctly transmitted, The device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoiding scheduling of Ethernet data transmission only by the upper layer protocol in the prior art.
  • the error occurs in the MAC layer, such as the error, the packet loss, and the transmission timeout
  • the data packet is retransmitted in time, which solves the problem that the data transmission efficiency of the MAC layer in the prior art is too low.
  • the problem is that the delay is too long.
  • An embodiment of the present invention provides a transmitting apparatus 401.
  • the transmitting apparatus 401 includes a transmitting unit 4011.
  • the sending unit 4011 is configured to send a data message to the receiving device by using a media intervention control MAC layer communication connection established by the receiving device.
  • the sending unit 4011 is further configured to: when determining that the receiving device does not normally receive the data packet, resend the data packet to the receiving device by using the MAC layer communication connection.
  • the sending unit 4011 is further configured to send a MAC layer communication connection request message to the receiving device according to the MAC address of the receiving device.
  • the sending device 401 further includes a receiving unit 4012 and a connecting unit 4013,
  • the receiving unit 4012 is configured to receive a MAC layer communication connection confirmation message sent by the receiving device.
  • the connecting unit 4013 is configured to establish a communication connection with the sending device at the MAC layer according to the MAC layer communication connection confirmation message received by the receiving unit 4012.
  • the sending unit 4011 is further configured to: when the sending device determines that the preset time is within a preset time When the response information of the data message is not received, the data message is retransmitted to the receiving device through the MAC layer communication connection.
  • the sending device 401 further includes a receiving unit 4012,
  • the receiving unit 4012 is configured to receive the negative acknowledgement NAK information of the data message sent by the receiving device by using the MAC layer communication connection.
  • the sending unit 4011 is further configured to: when the sending device receives the negative acknowledgement NAK information of the data packet sent by the receiving device by using the MAC layer communication connection, resending the data to the receiving device by using the MAC layer communication connection according to the NAK information of the data packet.
  • the NAK information of the data packet is used to indicate that the receiving device does not receive the data packet normally.
  • the data packet includes a sequence number of the data packet
  • the sending device 401 further includes a receiving unit 4012.
  • the receiving unit 4012 is further configured to receive, by using a MAC layer communication connection, a data retransmission message sent by the receiving device, where the data retransmission message includes a sequence number of the NAK information and the NAK information.
  • the receiving unit 4012 is further configured to determine, when the sequence number of the NAK information is consistent with the data packet indicated by the sequence number of the data packet, the NAK information that is received by the MAC layer communication connection.
  • the sending unit 4011 is further configured to send a data packet to the receiving device by using a predefined extended MAC frame structure.
  • the predefined extended MAC frame structure includes the source MAC address of the packet, the destination MAC address of the packet, the Ethernet data frame type of the packet, the sequence number of the packet, and the type of the packet.
  • the data message includes the MAC address of the sending device, the MAC address of the receiving device, the Ethernet data frame type, the serial number of the data packet, and the type of the data packet.
  • a transmitting apparatus provided by the embodiment of the present invention sends a data packet to a receiving apparatus by a media intervention control MAC layer communication connection established by the receiving apparatus. If the transmitting apparatus determines that the data packet is not correctly transmitted, the transmitting apparatus passes the MAC. The layer communication connection retransmits the data packet to the receiving device, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoids scheduling the transmission of the Ethernet data only through the upper layer protocol in the prior art, and can be at the MAC layer. Errors, packet loss, and transmission timeouts are not correct. When the data packet is transmitted, the data packet is retransmitted in time, which solves the problem that the data transmission efficiency of the MAC layer in the prior art is too low and the delay is too long.
  • the receiving apparatus 501 includes a receiving unit 5011 and a transmitting unit 5012.
  • the receiving unit 5011 is configured to receive, by using a media intervention control MAC layer communication connection established by the sending device, the data packet sent by the sending device.
  • the sending unit 5012 is configured to: when the received data packet has an error, send a negative acknowledgement NAK information of the data packet to the sending device by using the MAC layer communication connection, where the NAK information of the data packet is used to indicate that the receiving device 501 does not receive the packet correctly. Data message.
  • the receiving unit 5011 is further configured to receive a MAC layer communication connection request message sent by the sending device.
  • the sending unit 5012 is configured to send a MAC layer communication connection confirmation message generated by the control unit 5013 to the sending apparatus.
  • the data packet includes a sequence number of the data packet
  • the control unit 5013 is further configured to determine whether the data packet has an error according to the sequence number of the data packet carried in the data packet.
  • control unit 5013 is further configured to: when the received data packet has an error, generate a data retransmission packet according to the data packet, where the data retransmission packet includes a NAK information and a sequence number of the NAK information, and the data The sequence number of the retransmission message is consistent with the sequence number of the data packet, and the data retransmission message is used to indicate that the receiving device 501 does not correctly receive the data message.
  • the sending unit 5012 is further configured to send, by using a MAC layer communication connection, a data retransmission message generated by the control unit 5013 to the transmitting device.
  • the sending unit 5012 is further configured to send a data retransmission message to the receiving device 501 by using a predefined extended MAC frame structure.
  • the predefined extended MAC frame structure includes the source MAC address of the packet, the destination MAC address of the packet, the Ethernet data frame type of the packet, the sequence number of the packet, and the packet.
  • the type of text includes the source MAC address of the packet, the destination MAC address of the packet, the Ethernet data frame type of the packet, the sequence number of the packet, and the packet. The type of text.
  • the data retransmission message includes the MAC address of the receiving device 501, the MAC address of the transmitting device, the Ethernet data frame type, the serial number of the data retransmission message, and the NAK information.
  • the receiving unit 5011 is further configured to receive, by using a MAC layer communication connection, a data message that is retransmitted by the sending device.
  • the receiving apparatus provides a receiving apparatus, and sends a data packet to the receiving apparatus by using a media intervention control MAC layer communication connection established by the sending apparatus, and if the receiving apparatus determines that the received data packet has an error, the MAC layer communication is performed.
  • a negative acknowledgement NAK message is sent to the transmitting device, and the transmitting device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, thereby avoiding the prior art.
  • Only the high-level protocol can be used to schedule the transmission of the Ethernet data, and the data packet can be retransmitted in time when the error occurs in the MAC layer, such as error, packet loss, and transmission timeout. In the technology, when the error occurs in the MAC layer, the data transmission efficiency is too low and the delay is too long.
  • An embodiment of the present invention provides another transmitting device 601.
  • the device may be embedded or itself a microprocessor computer, such as a general-purpose computer, a custom machine, a mobile terminal, or a tablet device, and an Ethernet device.
  • a terminal device such as a terminal, a storage device terminal, and the like
  • the transmitting device 601 includes: at least one processor 6011, a memory 6012, a bus 6013, a transmitter 6014, and a receiver 6015, the at least one processor 6011, the memory 6012, the transmitter 6014, and the receiving device
  • the units 6015 are connected by a bus 6013 and complete communication with each other.
  • the bus 6013 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, a PCIe bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus 6013 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 6012 is for executing application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 6011 for execution.
  • the memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable.
  • These memories are connected to the processor via a bus.
  • the processor 6011 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. Integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • a transmitting apparatus provided by the embodiment of the present invention sends a data packet to a receiving apparatus by a media intervention control MAC layer communication connection established by the receiving apparatus. If the transmitting apparatus determines that the data packet is not correctly transmitted, the transmitting apparatus passes the MAC. The layer communication connection retransmits the data packet to the receiving device, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoids scheduling the transmission of the Ethernet data only through the upper layer protocol in the prior art, and can be at the MAC layer.
  • a data packet When a data packet is incorrectly transmitted, such as a bit error, a packet loss, or a transmission timeout, the data packet is retransmitted in time to solve the problem that the data transmission efficiency of the MAC layer in the prior art is too low and the delay is low. Too long a problem.
  • An embodiment of the present invention provides another receiving device 701.
  • the device may be embedded or itself a micro-processing computer, such as a general-purpose computer, a custom machine, a mobile phone terminal, or a tablet device.
  • the apparatus 701 includes: at least one processor 7011, a memory 7012, a bus 7013, a transmitter 7014, and a receiver 7015.
  • the at least one processor 7011, the memory 7012, the transmitter 7014, and the receiver 7015 are connected by a bus 7013 and complete each other. Communication.
  • the bus 7013 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus 7013 can be divided into an address bus, a data bus, and a control Bus, etc. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 7012 is for executing application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 7011 for execution.
  • the memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable.
  • These memories are connected to the processor via a bus.
  • the processor 7011 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. Integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the processor 7011 is configured to invoke the program code in the memory 7012 to perform the operation of the control unit in the device embodiment corresponding to FIG. 5, and the device embodiment corresponding to FIG. 5 is specifically described, and details are not described herein again.
  • the receiving apparatus provides a receiving apparatus, and sends a data packet to the receiving apparatus by using a media intervention control MAC layer communication connection established by the sending apparatus, and if the receiving apparatus determines that the received data packet has an error, the MAC layer communication is performed.
  • a negative acknowledgement NAK message is sent to the transmitting device, and the transmitting device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, thereby avoiding the prior art.
  • Only the high-level protocol can be used to schedule the transmission of the Ethernet data, and the data packet can be retransmitted in time when the error occurs in the MAC layer, such as error, packet loss, and transmission timeout. In the technology, when the error occurs in the MAC layer, the data transmission efficiency is too low and the delay is too long.
  • Embodiments of the present invention provide a data transmission system 801, as shown in FIG. 8, which includes a transmitting device 8011 and a receiving device 8012.
  • the transmitting device 8011 is the transmitting device described in the embodiment corresponding to FIG. 4, and the receiving device 8012 is the receiving device described in the embodiment corresponding to FIG. 5;
  • the transmitting device 8011 is the transmitting device described in the embodiment corresponding to FIG. 6, and the receiving device 8012 is the receiving device described in the embodiment corresponding to FIG. 7;
  • the transmitting device sends a data packet to the receiving device through the media intervention control MAC layer communication connection established by the receiving device, and if the sending device determines that the data packet is not correctly transmitted, The device retransmits the data packet to the receiving device through the MAC layer communication connection, thereby implementing a mechanism for ensuring reliable transmission of the Ethernet data at the MAC layer, and avoiding scheduling of Ethernet data transmission only by the upper layer protocol in the prior art.
  • the error occurs in the MAC layer, such as the error, the packet loss, and the transmission timeout
  • the data packet is retransmitted in time, which solves the problem that the data transmission efficiency of the MAC layer in the prior art is too low.
  • the problem is that the delay is too long.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium may include a RAM (Random Access Memory), a ROM (Read Only Memory), and an EEPROM (Electrically Erasable Programmable Read Only Memory).
  • CD-ROM Compact Disc Read Only Memory
  • CD-ROM Compact Disc Read Only Memory
  • Any connection may suitably be a computer readable medium.
  • coaxial cable, fiber optic cable, twisted pair, DSL (Digital Subscriber Line), or wireless technologies such as infrared, radio, and microwave
  • coaxial cable, fiber optic cable, twisted pair, DSL or Wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated medium.
  • the disc and the disc include a CD (Compact Disc), a laser disc, a compact disc, a DVD disc (Digital Versatile Disc), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied,
  • the disc uses a laser to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

La présente invention se rapporte au domaine des communications, et concerne un procédé et un dispositif de transmission de données, qui peuvent résoudre les problèmes selon lesquels l'efficacité de transmission de données est trop faible et le retard de temps est trop long lorsqu'une erreur binaire se produit dans une couche de contrôle d'accès au support (MAC) dans l'Ethernet. Le procédé comprend les opérations suivantes : un dispositif d'envoi envoie un paquet de données à un dispositif de réception par l'intermédiaire d'une connexion de communication d'une couche MAC établie entre le dispositif d'envoi et le dispositif de réception (101), et si le dispositif d'envoi détermine que le paquet de données ne parvient pas à être transmis correctement, le dispositif d'envoi envoie à nouveau le paquet de données au dispositif de réception par l'intermédiaire de la connexion de communication de la couche MAC (102). Par conséquent, un mécanisme qui garantit la transmission fiable de données Ethernet est obtenu sur la couche MAC.
PCT/CN2014/091789 2014-04-29 2014-11-20 Procédé et dispositif de transmission de données WO2015165255A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410178081.4A CN103973414B (zh) 2014-04-29 2014-04-29 一种数据传输方法及装置
CN201410178081.4 2014-04-29

Publications (1)

Publication Number Publication Date
WO2015165255A1 true WO2015165255A1 (fr) 2015-11-05

Family

ID=51242493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091789 WO2015165255A1 (fr) 2014-04-29 2014-11-20 Procédé et dispositif de transmission de données

Country Status (2)

Country Link
CN (1) CN103973414B (fr)
WO (1) WO2015165255A1 (fr)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973414B (zh) * 2014-04-29 2018-03-09 华为技术有限公司 一种数据传输方法及装置
CN104243111B (zh) * 2014-09-01 2017-12-26 广州华多网络科技有限公司 一种数据包传输的方法和装置
WO2016106482A1 (fr) 2014-12-29 2016-07-07 华为技术有限公司 Procédé de transfert d'informations de code d'erreur, dispositif de réseau et système de communication
CN108712373B (zh) * 2018-03-30 2022-01-11 深圳市风云实业有限公司 单向通信方法、装置、用户终端及计算机可读存储介质
CN113541874A (zh) * 2020-04-15 2021-10-22 华为技术有限公司 一种数据传输方法及网络设备
CN112398567B (zh) * 2020-11-17 2021-10-29 珠海格力电器股份有限公司 加密通信过程中时钟同步方法和装置以及多设备系统
CN116248231A (zh) * 2022-12-29 2023-06-09 成都赛力斯科技有限公司 一种应用于汽车的报文传输方法、装置、设备和介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013072801A1 (fr) * 2011-11-17 2013-05-23 International Business Machines Corporation Système pour améliorer un réseau ethernet
CN103490868A (zh) * 2012-09-19 2014-01-01 开曼群岛威睿电通股份有限公司 反向链路数据重传方法以及使用该方法的装置
CN103973414A (zh) * 2014-04-29 2014-08-06 华为技术有限公司 一种数据传输方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018108A (zh) * 2006-02-10 2007-08-15 华为技术有限公司 数据传输方法和系统及数据发送和接收装置
CN102802263A (zh) * 2011-05-25 2012-11-28 中兴通讯股份有限公司 一种mac层上行动态调度的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013072801A1 (fr) * 2011-11-17 2013-05-23 International Business Machines Corporation Système pour améliorer un réseau ethernet
CN103490868A (zh) * 2012-09-19 2014-01-01 开曼群岛威睿电通股份有限公司 反向链路数据重传方法以及使用该方法的装置
CN103973414A (zh) * 2014-04-29 2014-08-06 华为技术有限公司 一种数据传输方法及装置

Also Published As

Publication number Publication date
CN103973414A (zh) 2014-08-06
CN103973414B (zh) 2018-03-09

Similar Documents

Publication Publication Date Title
WO2015165255A1 (fr) Procédé et dispositif de transmission de données
JP6987428B2 (ja) 通信システムにおける方法および装置
US10430374B2 (en) Selective acknowledgement of RDMA packets
JP5523350B2 (ja) Tcpフロー制御のための方法及び装置
US9577791B2 (en) Notification by network element of packet drops
US7496038B2 (en) Method for faster detection and retransmission of lost TCP segments
CN104025525A (zh) 网络元件关于分组丢弃的通知
WO2019001042A1 (fr) Procédé de transmission de données et dispositifs associés
KR102046792B1 (ko) 송신 노드로부터 목적지 노드로의 데이터 전송 방법
JP6806411B2 (ja) コネクションレス伝送における同期維持のためのシステムおよび方法
US10932159B2 (en) Data transmission method, data receiving device, and data sending device
US8738984B2 (en) Apparatus for processing retransmission failure in radio link control (RLC) layer
CN104780028A (zh) 一种实现tcp数据报文重传的方法及设备
US11258721B2 (en) Radio link control (RLC) acknowledged mode (AM) data reception
CN105245271A (zh) 卫星通信网络加速装置以及方法
KR101018685B1 (ko) 광대역 무선통신시스템에서 자동 재송 요구 리셋을제어하기 위한 장치 및 방법
US8769137B2 (en) Systems and methods for negotiated accelerated block option for trivial file transfer protocol (TFTP)
US20160182608A1 (en) Retransmission control network node and related method
AU2014231331B2 (en) System and method for reliable messaging between application sessions across volatile networking conditions
WO2020259277A1 (fr) Procédé et appareil d'optimisation de paramètres, station de base, serveur et support d'enregistrement
US20120072520A1 (en) System and Method for Establishing Reliable Communication in a Connection-Less Environment
KR102609328B1 (ko) 무선 통신 방법 및 디바이스
JP6268027B2 (ja) 通信システム、送信装置、及び通信方法
EP3574600A1 (fr) Retransmission de paquets de protocole de communication

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: 14890544

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14890544

Country of ref document: EP

Kind code of ref document: A1