CN103973414B - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN103973414B CN103973414B CN201410178081.4A CN201410178081A CN103973414B CN 103973414 B CN103973414 B CN 103973414B CN 201410178081 A CN201410178081 A CN 201410178081A CN 103973414 B CN103973414 B CN 103973414B
- Authority
- CN
- China
- Prior art keywords
- message
- data
- data message
- reception device
- mac layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements 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
Abstract
A kind of data transmission method and device provided in an embodiment of the present invention, are related to the communications field.When can solve the problem that error code occurs in MAC layer in Ethernet, the problem of data transmission efficiency is too low, time delay is oversize.Concrete scheme is:Dispensing device is communicated to connect to reception device by the media intervention mac layer established with reception device and sent datagram, if dispensing device determines that data message fails correctly to transmit, then dispensing device is communicated to connect to reception device by MAC layer and resends data message, so as to realize the mechanism for ensureing Ethernet data transmitting in MAC layer.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of data transmission method and device.
Background technology
FC (Fibre Channel, optical-fibre channel) data, PCIE (Peripheral Component interconnect
Express, quick Peripheral Component Interconnect) etc. data have individual transmission physical channel, in order to realize various data same
One exchange plane is shared, and data are transmitted in ethernet networks in the prior art.
Because the congestion of data, error code control are weaker, cause Ethernet data transmission exist relatively slow speed, link error code,
The problems such as a large amount of packet losses or even obstructed network.Prior art is scheduled by Ethernet upper-layer protocol to data transfer, necessarily
Solves the problems, such as link congestion in degree.For example, PFC (priority-based Flow Control, the stream based on priority
Control), ETS (Enhanced Transmission Selection, enhancing transmission selection), QCN (Quantized
Congestion Notification, quantization congestion notification) etc. technology, can effectively solve the problems, such as link congestion.But
Because the mechanism of schedule data transmission in the prior art is all realized in upper-layer protocol, such as TCP (Transmission Control
Protocol, transmission control protocol) layer, so as to be missed when MAC (Media Access Control, media intervention control) layer
During code, a large amount of packet losses can be produced, are retransmitted in TCP contour levels not only extremely inefficient, and time delay is oversize, has to bandwidth larger
Influence.
The content of the invention
Embodiments of the invention provide a kind of data transmission method and device, can solve the problem that the number when error code occurs in MAC layer
According to efficiency of transmission it is too low, time delay is oversize the problem of.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, a kind of data transmission method, including:
Send device to intervene mac layer by the media established with reception device to communicate to connect to reception device transmission
Data message;
If the dispensing device determines that the data message fails correctly to transmit, the dispensing device passes through described
MAC layer communicates to connect to the reception device and resends the data message.
With reference in a first aspect, in the first possible implementation, the dispensing device with reception device by establishing
Media intervention mac layer communicate to connect and sent datagram to the reception device before, methods described also includes:
The dispensing device sends MAC layer communication connection according to the MAC Address of the reception device to the reception device
Request message;
The dispensing device receives the MAC layer communication connection confirmation message that the reception device is sent, and according to the MAC
Layer communication connection confirmation message is established in the MAC layer and the dispensing device and communicated to connect.
With reference to the first possible implementation of first aspect, in second of possible mode, if the transmission
When device determines that the data message fails correctly to transmit, then the dispensing device is communicated to connect to described by the MAC layer
Reception device, which resends the data message, to be included:
If the dispensing device determines not receiving the response message of the data message in preset time, described
Dispensing device is communicated to connect to the reception device by the MAC layer and resends the data message.
With reference to the first possible implementation of first aspect, in the third possible implementation, if described
When dispensing device determines that the data message fails correctly to transmit, then the dispensing device by the MAC layer communicate to connect to
The reception device resends the data message, including:
If the dispensing device receives the negative response NAK of the data message by the MAC layer
Information, then the dispensing device communicated to connect according to the NAK information of the data message by the MAC layer to described and receive dress
Put and resend the data message, the NAK information of the data message is used to indicate that the reception device is not properly received
The data message.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, the data
Message includes the sequence number of the data message, and methods described also includes:
The data that the dispensing device receives the reception device transmission by MAC layer communication connection retransmit message,
The data, which retransmit message, includes the sequence number of NAK information and the NAK information;
It is described when the sequence number of the NAK information is consistent with the data message that the sequence number of the data message indicates
Dispensing device determines to receive the NAK information of the data message by the MAC layer.
Any of the 4th kind of possible implementation with reference to first aspect to first aspect, it is possible at the 5th kind
In implementation, the dispensing device is communicated to connect to described by the media intervention mac layer established with reception device and connect
Receiving apparatus sends datagram, including:The dispensing device is by predefined extended MAC frame structure, to the reception device
Send datagram;
Wherein, the source MAC of the predefined extended MAC frame structure including message, message target MAC (Media Access Control) address,
The ethernet data frame type of message, the sequence number of message, the type of message;
Then the data message includes the MAC Address of the dispensing device, the MAC Address of the reception device, Ethernet
The type of data frame type, the sequence number of data message and the data message.
Second aspect, a kind of data transmission method, including:
Reception device intervenes mac layer by the media established with dispensing device and communicated to connect, and receives described send and fills
Put the data message of transmission;
If mistake occurs in the data message that the reception device determines to receive, communicated by the MAC layer
The negative response NAK information that the data message is sent to the dispensing device is connected, the NAK information of the data message is used for
Indicate that the reception device is not properly received the data message.
With reference to second aspect, in the first possible implementation, the reception device passes through the MAC layer communication link
Before receiving the data message that the dispensing device is sent, in addition to:
The reception device receives the MAC layer communication connection request message that the dispensing device is sent;
The reception device sends the MAC layer to the dispensing device and communicates to connect confirmation message.
With reference to the first possible implementation of second aspect, in second of possible implementation, the data
Message includes the sequence number of the data message, and methods described also includes:
The sequence number for the data message that the reception device carries according to the data message, determines the datagram
Whether text there is mistake.
With reference to second of possible implementation of second aspect, in the third possible implementation, if described
There is mistake in the data message that the reception device determines to receive, then is communicated to connect by the MAC layer to the hair
Device is sent to send the NAK information of the data message, including:
If there is mistake, the reception device root in the data message that the reception device determines to receive
According to the data message, generation data retransmit message, and the data, which retransmit message, includes NAK information and the NAK information
Sequence number, the sequence number of the NAK information is consistent with the data message that the sequence number of the data message indicates, the data weight
Message is passed to be used to indicate that the reception device is not properly received the data message;
The reception device is communicated to connect to the dispensing device by the MAC layer and sends the data re-transmission message.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation, the reception
Device is communicated to connect to the dispensing device by the MAC layer and sends the data re-transmission message, including:
The reception device is sent the data to the reception device and retransmitted by predefined extended MAC frame structure
Message;
Wherein, the source MAC of the predefined extended MAC frame structure including message, message target MAC (Media Access Control) address,
The ethernet data frame type of message, the sequence number of message, the type of message;
Then the data retransmit message include the MAC Address of the reception device, the dispensing device MAC Address, with
Too net data frame type, the data retransmit the sequence number and NAK information of message.
Any of the 4th kind of possible implementation with reference to second aspect to second aspect, it is possible at the 5th kind
It is described that the negative response that the data message is sent to the dispensing device is communicated to connect by the MAC layer in implementation
After NAK information, in addition to:
The datagram that the reception device is resend by the MAC layer communication connection reception dispensing device
Text.
The third aspect, a kind of dispensing device, including:
Transmitting element, intervene mac layer for the media by being established with reception device and communicate to connect to the reception
Device sends datagram;
The transmitting element, it is additionally operable to when it is determined that the reception device does not normally receive the data message, pass through
The MAC layer communicates to connect to the reception device and resends the data message.
With reference to the third aspect, in the first possible implementation, the transmitting element, it is additionally operable to according to the reception
The MAC Address of device, MAC layer communication connection request message is sent to the reception device;
The dispensing device also includes receiving unit and connection unit,
The receiving unit, confirmation message is communicated to connect for receiving the MAC layer that the reception device is sent;
The connection unit, the MAC layer for being received according to the receiving unit communicate to connect confirmation message in institute
State MAC layer and establish communication connection with the dispensing device.
With reference to the first possible implementation of the third aspect, in second of possible implementation, the transmission
Unit, when being additionally operable to determine not receiving the response message of the data message in preset time, communicated by the MAC layer
Connect to the reception device and resend the data message.
With reference to the first possible implementation of the third aspect, in the third possible implementation, the transmission
Unit, it is additionally operable to work as the number that the dispensing device receives the reception device transmission by the MAC layer
According to message negative response NAK information when, according to the NAK information of the data message, communicated to connect by the MAC layer to institute
State reception device and resend the data message, the NAK information of the data message is used to indicate the reception device not just
Often receive the data message.
With reference to the third possible implementation of the third aspect, in the 4th kind of possible implementation, the data
Message includes the sequence number of the data message;
The receiving unit, it is additionally operable to the data weight for receiving the reception device by MAC layer communication connection and sending
Message is passed, the data, which retransmit message, includes the sequence number of NAK information and the NAK information;
The receiving unit, it is additionally operable to what is indicated when the sequence number of the NAK information with the sequence number of the data message
When data message is consistent, it is determined that receiving the NAK information of the data message by the MAC layer.
Any of the 4th kind of possible implementation with reference to the third aspect to the third aspect, it is possible at the 5th kind
In implementation, the transmitting element, it is additionally operable to by predefined extended MAC frame structure, number is sent to the reception device
According to message;
Wherein, the source MAC of the predefined extended MAC frame structure including message, message target MAC (Media Access Control) address,
The ethernet data frame type of message, the sequence number of message, the type of message;
Then the data message includes the MAC Address of the dispensing device, the MAC Address of the reception device, Ethernet
The type of data frame type, the sequence number of data message and the data message.
Fourth aspect, a kind of reception device, including:
Receiving unit, intervene mac layer communication connection for the media by being established with dispensing device and receive the hair
The data message for sending device to send;
Transmitting element, for when the data message that receives occurs wrong, by the MAC layer communicate to connect to
The dispensing device sends the negative response NAK information of the data message, and the NAK information of the data message is used to indicate institute
State reception device and be not properly received the data message.
With reference to fourth aspect, in the first possible implementation, the receiving unit, it is additionally operable to receive the transmission
The MAC layer communication connection request message that device is sent;
The reception device also includes control unit, for generating MAC layer communication connection confirmation message;
The transmitting element, for described control unit is generated the MAC layer communication connection confirmation message send to
The dispensing device.
With reference to the first possible implementation of fourth aspect, in second of possible implementation, the data
Message includes the sequence number of the data message,
Described control unit, the sequence number of the data message carried according to the data message is additionally operable to, determines institute
State whether data message mistake occurs.
With reference to second of possible implementation of fourth aspect, in the third possible implementation, the control
Unit, it is additionally operable to when the data message received occurs wrong, according to the data message, generation data retransmit report
Text, the data, which retransmit message, includes the sequence number of NAK information and the NAK information, the sequence number of the NAK information and institute
It is consistent to state the data message of the sequence number instruction of data message, the data retransmit message and are used to indicate that the reception device does not have
It is properly received the data message;
The transmitting element, it is additionally operable to communicate to connect to the dispensing device transmission control list by the MAC layer
The data of member generation retransmit message.
With reference to the third possible implementation of fourth aspect, in the 4th kind of possible implementation, the transmission
Unit, it is additionally operable to by predefined extended MAC frame structure, sending the data to the reception device retransmits message;
Wherein, the source MAC of the predefined extended MAC frame structure including message, message target MAC (Media Access Control) address,
The ethernet data frame type of message, the sequence number of message, the type of message;
Then the data retransmit message include the MAC Address of the reception device, the dispensing device MAC Address, with
Too net data frame type, the data retransmit the sequence number and NAK information of message.
Any of the 4th kind of possible implementation with reference to fourth aspect to fourth aspect, it is possible at the 5th kind
In implementation, the receiving unit, it is additionally operable to receive what the dispensing device was resend by MAC layer communication connection
The data message.
A kind of data transmission method and device provided in an embodiment of the present invention, dispensing device with reception device by establishing
Media intervention mac layer communicates to connect to send datagram to reception device, if dispensing device determines that data message fails
During correct transmission, then dispensing device is communicated to connect to reception device by MAC layer and resends data message, so as in MAC layer
The mechanism for ensureing Ethernet data transmitting is realized, is avoided in the prior art only by upper-layer protocol to Ethernet data
Transmission be scheduled, the situation that error code, packet loss and transmission time-out etc. fail correct data message transmission can occur in MAC layer
When, retransmit data message in time, solve MAC layer in the prior art occur existing data transmission efficiency during error code it is too low, when
Prolong the problem of oversize.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, embodiment will be described below
In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also be attached according to these
Figure obtains other accompanying drawings.
Fig. 1 is a kind of data transmission method schematic flow sheet that embodiments of the invention provide;
Fig. 2 is another data transmission method schematic flow sheet that embodiments of the invention provide;
Fig. 3 is another data transmission method schematic flow sheet that embodiments of the invention provide;
Fig. 4 is a kind of dispensing device structural representation that embodiments of the invention provide;
Fig. 5 is a kind of reception device structural representation that embodiments of the invention provide;
Fig. 6 is the structural representation for another dispensing device that embodiments of the invention provide;
Fig. 7 is the structural representation for another reception device that embodiments of the invention provide;
Fig. 8 provides a kind of structural representation of data transmission system for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of data transmission method, applied to dispensing device, shown in reference picture 1, including with
Lower step:
101st, dispensing device is intervened mac layer by the media established with reception device and communicated to connect to reception device hair
Send data message.
In embodiments of the present invention, the dispensing device is applied in Ethernet, and the dispensing device connects with described
Receiving apparatus establishes media intervention mac layer communication connection, therefore the dispensing device can be by establishing with reception device
Media intervention mac layer communicate to connect and sent datagram to reception device, wherein, MAC layer is located at OSI (Open
System Interconnection, Open System Interconnection) model data link layer, be the lower floor of osi model agreement, it is main
It is responsible for the control and connection of physical layer medium.
The 102nd, if dispensing device determines that data message fails correctly to transmit, dispensing device is led to by the MAC layer
Letter connection resends data message to reception device.
Fail correctly to transmit for data message, can be that there occurs error code, packet loss, transmission time-out etc. to need dispensing device
The situation of data message is resend, such as reception device is not received by data message, or the data message error received,
Or by being lot more time to receive data message.The dispensing device is it is determined that the data message fails correctly to transmit
When, it can be communicated to connect by the MAC layer to reception device and resend data message, so as to establish data in MAC layer
Transmission and the mechanism ensured, it ensure that error code, packet loss and transmission time-out etc. occur in MAC layer fails correctly to transmit datagram
During the situation of text, retransmit data message in time, effectively reduce the MAC layer data transmission efficiency that occurs bringing during error code it is too low, when
Prolong the problem of oversize.
Specifically, the situation that data message fails correctly to transmit can include:
Dispensing device receives the NAK (Negative of reception device transmission after data message is sent
Acknowledgement, negative response) information, then resend data message to dispensing device.Wherein, negative response NAK believes
Breath represents reception device and is not properly received data message, and reception device is sent by sending the instruction of NAK information to dispensing device
Device resends data message;
Dispensing device had not both received ACK (Acknowledgement, the affirmative of reception device transmission in preset time
Response) information do not receive the NAK information of reception device transmission yet, wherein, the ACK information of data message is used to indicate to receive dress
Put and be properly received data message.Optionally, dispensing device starts timing when data message is sent, and receives reception device transmission
ACK information or NAK information then stop timing, further alternative, if both not received NAK information or not in preset time
Receive NAK information and also stop timing, be i.e. the time span of timing reaches preset time and then stops timing.Specifically, passed in information
During defeated, response message that dispensing device does not receive data message in preset time be probably because network congestion or
The situation of packet loss causes reception device to be not received by data message or by just receiving data message for a long time, at this moment,
Dispensing device can all resend data message, ensure that the efficiency that data retransmit.
So, judge whether data message is correctly received by being realized in MAC layer, and in case of need to data
Message is resend, and is effectively reduced and is realized judgement by upper-layer protocol and resend caused time delay.
A kind of data transmission method provided in an embodiment of the present invention, dispensing device are situated between by the media established with reception device
Enter mac layer and communicate to connect and sent datagram to reception device, if dispensing device determines that data message fails correctly to pass
When defeated, then dispensing device is communicated to connect to reception device by MAC layer and resends data message, so as to be realized in MAC layer
Ensure the mechanism of Ethernet data transmitting, avoid in the prior art only by transmission of the upper-layer protocol to Ethernet data
Be scheduled, can when there is error code, packet loss and transmission time-out etc. and fails the situation of correct data message transmission in MAC layer, and
Shi Chongchuan data messages, solve MAC layer in the prior art and occur that existing data transmission efficiency is too low during error code, time delay is oversize
The problem of.
Embodiments of the invention provide another data transmission method, applied to reception device, shown in reference picture 2, including
Following steps:
201st, reception device intervenes mac layer by the media established with dispensing device and communicated to connect, and receives and sends dress
Put the data message of transmission.
Optionally, reception device receives the data message of dispensing device transmission, or, because error code, congestion, packet loss etc.
Problem, the data message that reception device receives may be caused to malfunction, by being lot more time to receive data message or nothing
Method receives data message.
If the 202, mistake occurs in the data message that reception device determines to receive, communicated to connect by MAC layer to hair
Send the negative response NAK information that device sends datagram.
Wherein, the NAK information of data message is used to indicate that reception device is not properly received data message.
Optionally, if reception device receives data message, the data message received is judged:
If data message does not malfunction, reception device generates corresponding ACK information, and the ACK information is passed through into MAC
Layer communication connection is sent to dispensing device;
If data message malfunctions, reception device generates corresponding NAK information, and the NAK information is led to by MAC layer
Believe linkup transmit to dispensing device.
A kind of data transmission method provided in an embodiment of the present invention, dispensing device are situated between by the media established with reception device
Enter mac layer and communicate to connect and sent datagram to reception device, if the data message that reception device determines to receive goes out
Existing mistake, then communicate to connect the negative response NAK information to be sent datagram to dispensing device, dispensing device leads to by MAC layer
Cross MAC layer and communicate to connect to reception device and resend data message, ensure that Ethernet data is reliable so as to be realized in MAC layer
The mechanism of transmission, avoid and be only scheduled in the prior art by transmission of the upper-layer protocol to Ethernet data, can be in MAC
When layer error code, packet loss and transmission time-out etc. occurs and fails the situation of correct data message transmission, data message is retransmitted in time, is solved
There is the problem of existing data transmission efficiency is too low, time delay is oversize during error code in MAC layer in the prior art.
The data transmission method that embodiments of the invention provide, the media established with dispensing device are passed through by reception device
Mac layer communication connection, the data message that transmission and reception apparatus is sent are intervened, if reception device determines the data received
There is mistake in message, then communicates to connect the negative response NAK information to be sent datagram to dispensing device, data by MAC layer
The NAK information of message is used to indicate that reception device is not properly received data message, solves MAC layer in the prior art and misses
The problem of existing data transmission efficiency is too low, time delay is oversize during code.
Based on embodiment corresponding to above-mentioned Fig. 1 and Fig. 2, the embodiment provides a kind of data transmission method, ginseng
Comprise the following steps according to shown in Fig. 3:
301st, dispensing device sends MAC layer communication connection request to reception device and disappeared according to the MAC Address of reception device
Breath.
In the present embodiment, the dispensing device and the reception device belong to the network equipment in Ethernet.In order to
The data-message transmission of MAC layer is realized, the dispensing device can utilize MAC layer communication connection list item to be built with the reception device
Vertical MAC layer communication connection, the MAC layer communicate to connect the letter that the opposite end that can establish MAC layer communication connection is have recorded in list item
Breath, such as MAC Address, so as to which the dispensing device can get the MAC Address of reception device, and according to reception device
MAC Address, MAC layer communication connection request message is sent to reception device, to establish MAC layer communication to reception device request
Connection.
Specifically, multiple network equipments can be included in ethernet networks, the dispensing device can be the in Ethernet
One network equipment, with reference to table one, table one communicates to connect list item, MAC layer communication connection list item for the MAC layer of first network equipment
It has recorded first network equipment and the MAC layer communication connection relation of other LA Management Rooms.First network equipment passes through every MAC
Destination address (DA, Destination Address) and source address (SA, Source Address) in layer communication connection is with being somebody's turn to do
The network equipment of the bar MAC layer communication connection other end establishes MAC layer communication connection.Wherein, source address is initiation MAC layer communication link
The address of the address of the network equipment of request, i.e. first network equipment is connect, destination address is the address of destination network device, that is, is connect
Receive the address of the network equipment of communication connection request.
Table one
Communication connection numbering | Destination address | Source address |
0 | The first object network equipment | First network equipment |
1 | Second destination network device | First network equipment |
2 | 3rd destination network device | First network equipment |
Further, a kind of MAC layer frame structure that embodiments of the invention can also provide so that in all implementations of the present invention
In example, sending and receiving for all MAC layer data messages can use the frame between the dispensing device and reception device
Structure, such as dispensing device send MAC layer communication connection request message using the frame structure to reception device, in another example sending dress
Put and sent datagram using the frame structure to reception device.The frame structure includes herein below:
1) target MAC (Media Access Control) address, for example, 6 bytes can be taken;
2) source MAC, for example, 6 bytes can be taken;
3)Etype:That is Ethernet Type, ethernet data frame type is represented, such as Etype=can be defined
During 0X2000, lossless ethernet data frame is represented;Etype can be defined and take 2 bytes.
4) sequence number of message, confirm for receiving and be managed to resending;It can define and take 2 bytes,
5) type of message, different numerical value represent different type of messages, so as to quickly determine the type of the message, example
The message of confirmation message, the message with NAK message, phychology message etc. are carried in this way.Optionally, a kind of definition is enumerated herein such as
Under, in this fashion, ACK/NAK information is contained in the type field of message:
0000:There is no ACK/NAK message;
0001:Data with ACK message;
0010:Pure ACK message;
0011:Data with NAK message;
0100:Pure NAK message;
0101:Synchronization message;
0110:Synchronous ACK message;
0111:Heartbeat message;
1000:Configuration message;
1001:Echo the message answered without opposite end;
1011:Opposite end is needed to echo the message answered;
Certainly, the type field of message can also include other definition, and simply enumerating a part herein illustrates.
Wherein, ACK (Acknowledgement), represents confirmation;NAK (Negative Acknowledgement),
Represent unacknowledged information;
ACK information/NAK information sequence fields, can take 2 bytes.With reference to the type field of message, if message
Type field includes ACK information, then ACK information sequence number can be the sequence of message number of currently received data message, be used for
Indicate that currently received data message is correctly received.If the type field of message includes NAK information, NAK information sequences
Row number can be the sequence of message number of a upper data message being properly received, corresponding with currently received data message, use
In the currently received data message error of instruction, it is necessary to resend.
6) payload, all agreements can be carried, other associations of highly reliable connection is needed including TCP/IP, FCOE etc.
View so that the method shown in the embodiment of the present invention can support various types of communication agreement.
Herein, optionally, the class of the message in the MAC layer communication connection request message that dispensing device is sent to reception device
Type is 0101.
302nd, reception device sends MAC layer communication connection confirmation message to dispensing device.
Herein, the type for the MAC layer message that reception device communicates to connect confirmation message to the MAC layer that dispensing device is sent is
0110。
303rd, dispensing device communicates to connect confirmation message according to MAC layer and establishes communication connection in MAC layer and dispensing device.
Dispensing device initiates synchronization message to reception device, and receiving device is after synchronization message is received to transmission device replied
Confirmation of synchronization message simultaneously enters synchronous regime, prepares the data message that transmission and reception apparatus is sent.Transmission equipment receives reception and set
Enter synchronous regime after standby confirmation of synchronization message, start to send datagram.Then dispensing device is set up with reception device
MAC layer communicates to connect.
Dispensing device and reception device, can be by tables two to communication connection information after MAC layer establishes communication connection
It is monitored and manages, table two is MAC layer communication connection management list item, have recorded the MAC layer communication between multiple network equipments
Connection status.MAC layer communication connection management list item can be included between multiplicity of source networks equipment and multiple destination network devices
Communication connection, every communication connection can also include multinomial information, herein only with 3 source network devices and 2 objective networks
The on off state that MAC layer communicates to connect between equipment is illustrative, and this does not represent the MAC layer communication connection of the present invention
Managing list item must be comprising the information in table two or only comprising the information in table two.
Table two
304th, dispensing device is intervened mac layer by the media established with reception device and communicated to connect to reception device hair
Send data message.
Optionally, dispensing device stores data message in the buffer, in order to be not properly received number in reception device
Resend during according to message.After reception device is properly received data message, dispensing device can by the message from caching it is clear
Remove.
305th, the sequence number for the data message that reception device carries according to data message, determines whether data message mistake occurs
By mistake.
Message can be numbered in data transmission procedure for dispensing device, number since No. 0, often send one,
The sequence number of data message adds 1, and during the data that reception device transmission and reception apparatus is sent, sequence of message number can also be since 0
Count.After reception device receives message, data message is parsed in MAC layer to obtain the sequence of message number of data message,
Correct sequence of message number should be the sequence of message number plus 1 of the data message of a upper reception, the i.e. number with upper one reception
It is continuous according to the sequence of message number of message, otherwise just represent the data message error received.
If data message does not malfunction, reception device can generate ACK information, and the ACK information is passed through into MAC layer
Communication connection is sent to dispensing device, wherein, the ACK information includes the sequence number of the data message, for indicating to carry the sequence
The data message of row number is correctly received.
Optionally, dispensing device deletes the data message of caching according to the ACK information received;
If the sequence of message number that receiving device receives is incorrect, reception device abandons error data, and generates corresponding
NAK information.The sequence number of a correctly received message in the Serial No. of the NAK information, for indicating to send equipment
Resend currently received error message.The NAK information is retransmitted message by data and sent to transmission equipment by receiving device,
The NAK information is used to indicate that reception device is not properly received data message.
Certainly, judged message whether to malfunction a kind of specific embodiment party that simply the present embodiment provides according to sequence of message number
Formula, it can also verify whether data message malfunctions by other forms such as check codes, for how whether to judge data message
Error, the present invention are not limited.
306th, dispensing device is communicated to connect to reception device by MAC layer and resends data message.
Optionally, dispensing device starts timing when data message is sent, receive reception device transmission ACK information or
NAK information then stops timing, further alternative, if both not received confirmation in preset time or not received non-acknowledgement
Information also stops timing, i.e. the time span of timing reaches preset time.Wherein, preset time can as the case may be voluntarily
Setting.
Dispensing device is communicated to connect by MAC layer to be resend data message to reception device and includes two kinds of situations:
The first situation, if dispensing device determines both not receiving the ACK information of data message in preset time,
The NAK information of data message is not received, representing possible data message dropping, either ACK/NAK information is lost or transmission is overtime
Situations such as, now dispensing device is communicated to connect to reception device by MAC layer and resends data message.
Second of situation, if dispensing device receives data message in preset time by MAC layer
Negative response NAK information, then dispensing device communicated to connect according to the NAK information of data message by MAC layer to reception device weight
Newly send datagram.
307th, the data message that reception device is resend by MAC layer communication connection transmission and reception apparatus.
Reception device is communicated to connect by judging whether packet malfunctions in MAC layer according to judged result by MAC layer
Corresponding ACK/NAK information is sent to reception device, it is correctly received to represent data message respectively, or data message fails
It is properly received.NAK information is used to indicate that dispensing device resends data message.So, reduce and sentenced by upper-layer protocol realization
It is disconnected and resend caused time delay.
In the present invention, in dispensing device and reception device after MAC layer establishes communication connection, reception device can be to hair
Device is sent to send data, dispensing device can receive the data of reception device transmission.Dispensing device can be with reception device simultaneously
Mutually send, receive data.By taking dispensing device as an example, dispensing device can receive reception while data message Ta is sent
The data message Ra that device is sent, then judges whether data message Ra malfunctions, and set to reception according to judged result in MAC layer
Preparation send ACK information or NAK information.The ACK information or NAK information can be directly contained in dispensing device and be sent to reception device
Data message Tb data message frame structure in, now, the type of the message of MAC layer packet can be 0001 or
0011, wherein 0001 represents the data with ACK confirmation messages, 0011 represents the data with NAK non-acknowledgement message.
A kind of data transmission method provided in an embodiment of the present invention, dispensing device are situated between by the media established with reception device
Enter mac layer and communicate to connect and sent datagram to reception device, if dispensing device determines that data message fails correctly to pass
When defeated, then dispensing device is communicated to connect to reception device by MAC layer and resends data message, so as to be realized in MAC layer
Ensure the mechanism of Ethernet data transmitting, avoid in the prior art only by transmission of the upper-layer protocol to Ethernet data
Be scheduled, can when there is error code, packet loss and transmission time-out etc. and fails the situation of correct data message transmission in MAC layer, and
Shi Chongchuan data messages, solve MAC layer in the prior art and occur that existing data transmission efficiency is too low during error code, time delay is oversize
The problem of.
Embodiments of the invention provide a kind of dispensing device 401, and shown in reference picture 4, the dispensing device 401 includes sending list
Member 4011.
Transmitting element 4011, intervene mac layer for the media by being established with reception device and communicate to connect to described
Reception device sends datagram.
Transmitting element 4011, it is additionally operable to when it is determined that the reception device does not normally receive the data message, pass through
The MAC layer communicates to connect to the reception device and resends the data message.
Optionally, transmitting element 4011, the MAC Address according to reception device is additionally operable to, sending MAC layer to reception device leads to
Believe connection request message.
Dispensing device 401, in addition to receiving unit 4012 and connection unit 4013,
Receiving unit 4012, the MAC layer for receiving reception device transmission communicate to connect confirmation message.
Connection unit 4013, for received according to receiving unit 4012 MAC layer communication connection confirmation message MAC layer with
Dispensing device establishes communication connection.
Optionally, transmitting element 4011, it is additionally operable to when dispensing device determines not receive data message in preset time
Response message when, communicated to connect by MAC layer to reception device and resend data message.
Optionally, dispensing device 401, in addition to receiving unit 4012,
Receiving unit 4012, for receiving the negative for the data message that reception device is sent by MAC layer
Response NAK information.
Transmitting element 4011, it is additionally operable to work as the number that dispensing device receives reception device transmission by MAC layer
According to message negative response NAK information when, according to the NAK information of data message, communicated to connect by MAC layer to reception device weight
Newly send datagram, the NAK information of data message is used to indicate that reception device does not normally receive data message.
Optionally, data message includes the sequence number of data message, and dispensing device 401 also includes receiving unit 4012.
Receiving unit 4012, it is additionally operable to communicate to connect the data re-transmission message for receiving reception device transmission, number by MAC layer
Include the sequence number of NAK information and NAK information according to message is retransmitted.
Receiving unit 4012, it is additionally operable to when the data message of the sequence number instruction of the sequence number and data message of NAK information
When consistent, it is determined that receiving the NAK information of data message by MAC layer.
Optionally, transmitting element 4011, it is additionally operable to by predefined extended MAC frame structure, number is sent to reception device
According to message.
Wherein, predefined extended MAC frame structure includes the source MAC of message, the target MAC (Media Access Control) address of message, message
Ethernet data frame type, the sequence number of message, the type of message.
Then data message includes the MAC Address of dispensing device, the MAC Address of reception device, ethernet data frame type, number
According to the sequence number of message and the type of data message.
A kind of dispensing device provided in an embodiment of the present invention, mac layer is intervened by the media established with reception device
Communicate to connect and sent datagram to reception device, if dispensing device determines that data message fails correctly to transmit, sent
Device is communicated to connect to reception device by MAC layer and resends data message, ensures ether netting index so as to be realized in MAC layer
According to the mechanism of transmitting, avoid and be only scheduled in the prior art by transmission of the upper-layer protocol to Ethernet data, energy
It is enough when there is error code, packet loss and transmission time-out etc. and fails the situation of correct data message transmission in MAC layer, retransmit datagram in time
Text, solve the problems, such as that MAC layer occurs that existing data transmission efficiency is too low during error code, time delay is oversize in the prior art.
Embodiments of the invention provide a kind of reception device, and shown in reference picture 5, the reception device 501 includes receiving unit
5011 and transmitting element 5012.
Wherein, receiving unit 5011, intervene mac layer for the media by being established with dispensing device and connect
Transmit and receive the data message of device transmission.
Transmitting element 5012, for when the data message received occurs wrong, being communicated to connect by MAC layer to transmission
The negative response NAK information that device sends datagram, the NAK information of data message are used to indicate reception device 501 without just
Really receive data message.
Optionally, receiving unit 5011, it is additionally operable to the MAC layer communication connection request message of transmission and reception apparatus transmission.
Reception device 501 also includes control unit 5013, for generating MAC layer communication connection confirmation message.
Transmitting element 5012, the MAC layer communication connection confirmation message for control unit 5013 to be generated are sent to transmission
Device.
Optionally, data message includes the sequence number of data message, control unit 5013, is additionally operable to be taken according to data message
The sequence number of the data message of band, determines whether data message mistake occurs.
Optionally, control unit 5013, it is additionally operable to when the data message that receives occurs wrong, according to data message,
Generate data and retransmit message, data, which retransmit message, includes the sequence number of NAK information and NAK information, and data retransmit the sequence of message
Row number is consistent with the sequence number of data message, and data retransmit message and are used to indicate that reception device 501 is not properly received data message.
Transmitting element 5012, it is additionally operable to communicate to connect what is generated to dispensing device transmission control unit 5013 by MAC layer
Data retransmit message.
Optionally, transmitting element 5012, it is additionally operable to, by predefined extended MAC frame structure, send to reception device 501
Data retransmit message.
Wherein, predefined extended MAC frame structure includes the source MAC of message, the target MAC (Media Access Control) address of message, message
Ethernet data frame type, the sequence number of message, the type of message.
Then data, which retransmit message, includes the MAC Address of reception device 501, the MAC Address of dispensing device, ethernet data frame
Type, data retransmit the sequence number and NAK information of message.
Optionally, receiving unit 5011, the data for communicating to connect transmission and reception apparatus by MAC layer and resending are additionally operable to
Message.
A kind of reception device provided in an embodiment of the present invention, mac layer is intervened by the media established with dispensing device
Communicate to connect and sent datagram to reception device, if mistake occurs in the data message that reception device determines to receive, led to
Cross MAC layer and communicate to connect the negative response NAK information to be sent datagram to dispensing device, dispensing device is communicated by MAC layer
Connect to reception device and resend data message, so as to realize the mechanism for ensureing Ethernet data transmitting in MAC layer,
Avoid and be only scheduled in the prior art by transmission of the upper-layer protocol to Ethernet data, can MAC layer occur error code,
When packet loss and transmission time-out etc. fail the situation of correct data message transmission, data message is retransmitted in time, solves prior art
There is the problem of existing data transmission efficiency is too low, time delay is oversize during error code in middle MAC layer.
Embodiments of the invention provide another dispensing device 601, and shown in reference picture 6, the equipment can be embedded in or itself
It is exactly microprocessor computer, such as:The portable equipments such as all-purpose computer, customization machine, mobile phone terminal or purl machine, Ethernet
The terminal device such as terminal, storage device terminal, the dispensing device 601 include:At least one processor 6011, memory 6012,
Bus 6013, transmitter 6014 and receiver 6015, at least one processor 6011, memory 6012, the and of transmitter 6014
Receiver 6015 is connected by bus 6013 and completes mutual communication.
The bus 6013 can be ISA (Industry Standard Architecture, industry standard architecture)
Bus, PCI (Peripheral Component, external equipment interconnection) bus, PCIe buses or EISA (Extended
Industry Standard Architecture, extended industry-standard architecture) bus etc..The bus 6013 can be divided into
Address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Fig. 6 with a thick line, it is not intended that only
A piece bus or a type of bus.Wherein:
Memory 6012 is used for the application code for performing the present invention program, performs the application program generation of the present invention program
Code preserves in memory, and is performed by processor 6011 to control.
The memory can be read only memory ROM or can store the other kinds of static storage of static information and instruction
Equipment, random access memory ram or can storage information and instruction other kinds of dynamic memory or electricity
EPROM EEPROM, read-only optical disc CD-ROM or other optical disc storages, laser disc storage (including squeezed light
Dish, laser disc, laser disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus, FPGA
(field programmable gate array) or it can be used in carrying or store the desired journey with instruction or data structure form
Sequence code simultaneously can be by any other medium of computer access, but not limited to this.These memories pass through bus and processor
It is connected.
Processor 6011 is probably that a central processing unit 6011 (Central Processing Unit, is referred to as
CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC),
Or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
A kind of dispensing device provided in an embodiment of the present invention, mac layer is intervened by the media established with reception device
Communicate to connect and sent datagram to reception device, if dispensing device determines that data message fails correctly to transmit, sent
Device is communicated to connect to reception device by MAC layer and resends data message, ensures ether netting index so as to be realized in MAC layer
According to the mechanism of transmitting, avoid and be only scheduled in the prior art by transmission of the upper-layer protocol to Ethernet data, energy
It is enough when there is error code, packet loss and transmission time-out etc. and fails the situation of correct data message transmission in MAC layer, retransmit datagram in time
Text, solve the problems, such as that MAC layer occurs that existing data transmission efficiency is too low during error code, time delay is oversize in the prior art.
Embodiments of the invention provide another reception device 701, and shown in reference picture 7, the equipment can be embedded in or itself
It is exactly microprocessor computer, such as:The portable equipments such as all-purpose computer, customization machine, mobile phone terminal or purl machine, the transmission
Device 701 includes:At least one processor 7011, memory 7012, bus 7013, transmitter 7014 and receiver 7015, should
At least one processor 7011, memory 7012, transmitter 7014 and receiver 7015 are connected by bus 7013 and complete phase
Communication between mutually.
The bus 7013 can be ISA (Industry Standard Architecture, industry standard architecture)
Bus, PCI (Peripheral Component, external equipment interconnection) buses or EISA (Extended Industry
Standard Architecture, extended industry-standard architecture) bus etc..The bus 7013 can be divided into address bus,
Data/address bus, controlling bus etc..Only represented for ease of representing, in Fig. 7 with a thick line, it is not intended that an only bus or
A type of bus.Wherein:
Memory 7012 is used for the application code for performing the present invention program, performs the application program generation of the present invention program
Code preserves in memory, and is performed by processor 7011 to control.
The memory can be read only memory ROM or can store the other kinds of static storage of static information and instruction
Equipment, random access memory ram or can storage information and instruction other kinds of dynamic memory or electricity
EPROM EEPROM, read-only optical disc CD-ROM or other optical disc storages, laser disc storage (including squeezed light
Dish, laser disc, laser disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or energy
Be enough in carry or storage with instruction or data structure form desired program code and can by computer access times
What his medium, but not limited to this.These memories are connected by bus with processor.
Processor 7011 is probably that a central processing unit 7011 (Central Processing Unit, is referred to as
CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC),
Or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
Processor 7011, it is real to perform equipment corresponding to above-mentioned Fig. 5 for calling the program code in memory 7012
The operation of control unit in example is applied, apparatus embodiments corresponding to specific descriptions reference picture 5, is repeated no more here.
A kind of reception device provided in an embodiment of the present invention, mac layer is intervened by the media established with dispensing device
Communicate to connect and sent datagram to reception device, if mistake occurs in the data message that reception device determines to receive, led to
Cross MAC layer and communicate to connect the negative response NAK information to be sent datagram to dispensing device, dispensing device is communicated by MAC layer
Connect to reception device and resend data message, so as to realize the mechanism for ensureing Ethernet data transmitting in MAC layer,
Avoid and be only scheduled in the prior art by transmission of the upper-layer protocol to Ethernet data, can MAC layer occur error code,
When packet loss and transmission time-out etc. fail the situation of correct data message transmission, data message is retransmitted in time, solves prior art
There is the problem of existing data transmission efficiency is too low, time delay is oversize during error code in middle MAC layer.
Embodiments of the invention provide a kind of data transmission system 801, and shown in reference picture 8, the system includes dispensing device
8011 and reception device 8012.
Wherein dispensing device 8011 is the dispensing device described in embodiment corresponding to Fig. 4, and reception device 8012 is Fig. 5
Reception device described in corresponding embodiment;
Or dispensing device 8011 is the dispensing device described in embodiment corresponding to Fig. 6, reception device 8012 is Fig. 7
Reception device described in corresponding embodiment;
A kind of data transmission system provided in an embodiment of the present invention, dispensing device are situated between by the media established with reception device
Enter mac layer and communicate to connect and sent datagram to reception device, if dispensing device determines that data message fails correctly to pass
When defeated, then dispensing device is communicated to connect to reception device by MAC layer and resends data message, so as to be realized in MAC layer
Ensure the mechanism of Ethernet data transmitting, avoid in the prior art only by transmission of the upper-layer protocol to Ethernet data
Be scheduled, can when there is error code, packet loss and transmission time-out etc. and fails the situation of correct data message transmission in MAC layer, and
Shi Chongchuan data messages, solve MAC layer in the prior art and occur that existing data transmission efficiency is too low during error code, time delay is oversize
The problem of.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
Realized with hardware, or firmware realize, combinations thereof mode come realize or software and hardware combining realize or hardware programming, logic
Deng realization.When implemented in software, above-mentioned function can be stored in computer-readable medium or as computer-readable
One or more instructions or code on medium are transmitted.Computer-readable medium includes computer-readable storage medium and communication is situated between
Matter, wherein communication media include being easy to any medium that computer program is transmitted from a place to another place.Storage is situated between
Matter can be any usable medium that computer can access.As example but it is not limited to:Computer-readable medium can include
RAM (Random Access Memory, random access memory), ROM (Read Only Memory, read-only memory), EEPROM
(Electrically Erasable Programmable Read Only Memory, EEPROM),
CD-ROM (Compact Disc Read Only Memory, i.e. read-only optical disc) or other optical disc storages, magnetic disk storage medium or
Other magnetic storage apparatus of person or can be used in carrying or store with instruction or data structure form desired program code
And can be by any other medium of computer access.In addition.Any connection can be suitably turn into computer-readable medium.Example
Such as, if software is that (Digital Subscriber Line, numeral are used using coaxial cable, optical fiber cable, twisted-pair feeder, DSL
Family special line) either such as infrared ray, radio and microwave etc wireless technology from website, server or other remote sources pass
Defeated, then the wireless technology of coaxial cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave etc
Medium belonging to being included in it is fixing in.As used in the present invention, plate and dish include CD (Compact Disc, compress laser disc),
Laser disc, laser disc, DVD dish (Digital Versatile Disc, digital universal light), floppy disk and Blu-ray Disc, which disk lead to
The replicate data of normal magnetic, and dish is then with laser come optical replicate data.Above combination above should also be as being included in computer can
Within the protection domain for reading medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.
Claims (20)
- A kind of 1. data transmission method, it is characterised in that including:Dispensing device intervenes mac layer communication connection by the media established with reception device and uses predefined extended MAC Frame structure sends datagram to the reception device, and the predefined extended MAC frame structure includes the type of message, described Data message includes the type of the data message;If the dispensing device determines that the data message fails correctly to transmit, the dispensing device passes through the MAC Layer, which is communicated to connect to the reception device, resends the data message;The dispensing device intervenes mac layer communication connection by the media established with reception device and uses predefined extension Before mac frame structure sends datagram to the reception device, methods described also includes:The dispensing device sends MAC layer communication connection request according to the MAC Address of the reception device to the reception device Message;The dispensing device receives the MAC layer communication connection confirmation message that the reception device is sent, and is led to according to the MAC layer Letter connection confirmation message is established in the MAC layer and the dispensing device and communicated to connect.
- 2. according to the method for claim 1, it is characterised in that then the dispensing device is communicated to connect by the MAC layer Resending the data message to the reception device includes:If the dispensing device determines not receiving the response message of the data message, the transmission in preset time Device is communicated to connect to the reception device by the MAC layer and resends the data message.
- 3. according to the method for claim 1, it is characterised in that then the dispensing device is communicated to connect by the MAC layer The data message is resend to the reception device, including:If the dispensing device receives the negative response NAK information of the data message by the MAC layer, Then the dispensing device is communicated to connect to the reception device weight according to the NAK information of the data message by the MAC layer The data message is newly sent, the NAK information of the data message is for indicating that it is described that the reception device is not properly received Data message.
- 4. according to the method for claim 3, it is characterised in that the data message includes the sequence of the data message Number, methods described also includes:The data that the dispensing device receives the reception device transmission by MAC layer communication connection retransmit message, described Data, which retransmit message, includes the sequence number of NAK information and the NAK information;When the sequence number of the NAK information is consistent with the data message that the sequence number of the data message indicates, the transmission Device determines to receive the NAK information of the data message by the MAC layer.
- 5. according to the method described in claim any one of 1-4, it is characterised in that the predefined extended MAC frame structure is also The target MAC (Media Access Control) address of source MAC, message including message, the ethernet data frame type of message, the sequence number of message;The data message also includes the MAC Address of the dispensing device, the MAC Address of the reception device, Ethernet data The sequence number of frame type, data message.
- A kind of 6. data transmission method, it is characterised in that including:Reception device intervenes mac layer by the media established with dispensing device and communicated to connect, and receives the dispensing device hair The data message sent;If mistake occurs in the data message that the reception device determines to receive, communicated to connect by the MAC layer Data are sent to the dispensing device using predefined extended MAC frame structure and retransmit message, the predefined extended MAC frame Structure includes the type of message, and the data, which retransmit message, includes negative response NAK information, and the NAK information is used to indicate institute State reception device and be not properly received the data message, the data retransmit message and are used to indicate the reception device without just Really receive the data message;Before the reception device receives the data message that the dispensing device is sent by MAC layer communication connection, also wrap Include:The reception device receives the MAC layer communication connection request message that the dispensing device is sent;The reception device sends the MAC layer to the dispensing device according to the MAC Address of the dispensing device and communicated to connect Confirmation message.
- 7. according to the method for claim 6, it is characterised in that the data message includes the sequence of the data message Number, methods described also includes:The sequence number for the data message that the reception device carries according to the data message, determine that the data message is It is no mistake occur.
- 8. according to the method for claim 7, it is characterised in that if the reception device determine receive it is described There is mistake in data message, then is communicated to connect by the MAC layer and filled using predefined extended MAC frame structure to described send Put and send data re-transmission message, including:If mistake occurs in the data message that the reception device determines to receive, the reception device is according to institute Data message is stated, generation data retransmit message, and the data, which retransmit message, includes the sequence number of the NAK information, the NAK letters The sequence number of breath is consistent with the data message that the sequence number of the data message indicates;The reception device is communicated to connect to the dispensing device by the MAC layer and sends the data re-transmission message.
- 9. according to the method for claim 8, it is characterised in that the predefined extended MAC frame structure also includes message Source MAC, the target MAC (Media Access Control) address of message, the ethernet data frame type of message, the sequence number of message;The data, which retransmit message, also includes the MAC Address of the reception device, the MAC Address of the dispensing device, Ethernet Data frame type, data retransmit the sequence number of message.
- 10. according to the method described in claim any one of 6-9, it is characterised in that described to be adopted by MAC layer communication connection Data are sent to the dispensing device retransmit message with predefined extended MAC frame structure, in addition to:The data message that the reception device is resend by the MAC layer communication connection reception dispensing device.
- A kind of 11. dispensing device, it is characterised in that including:Transmitting element, intervene mac layer communication connection for the media by being established with reception device and use predefined expansion Exhibition mac frame structure sends datagram to the reception device, and the predefined extended MAC frame structure includes the class of message Type, the data message include the type of the data message;The transmitting element, it is additionally operable to when it is determined that the reception device does not normally receive the data message, by described MAC layer communicates to connect to the reception device and resends the data message;The transmitting element, the MAC Address according to the reception device is additionally operable to, MAC layer communication is sent to the reception device Connection request message;Receiving unit, confirmation message is communicated to connect for receiving the MAC layer that the reception device is sent;Connection unit, for received according to the receiving unit the MAC layer communication connection confirmation message the MAC layer with The dispensing device establishes communication connection.
- 12. device according to claim 11, it is characterised in thatThe transmitting element, it is additionally operable to when the dispensing device determines not receiving the sound of the data message in preset time When answering information, communicated to connect by the MAC layer to the reception device and resend the data message.
- 13. device according to claim 11, it is characterised in thatThe transmitting element, it is additionally operable to when the dispensing device receives the reception device by the MAC layer During the negative response NAK information of the data message sent, according to the NAK information of the data message, pass through the MAC layer Communicate to connect to the reception device and resend the data message, the NAK information of the data message is described for indicating Reception device does not normally receive the data message.
- 14. device according to claim 13, it is characterised in that the data message includes the sequence of the data message Number;The receiving unit, it is additionally operable to the data re-transmission report for receiving the reception device by MAC layer communication connection and sending Text, the data, which retransmit message, includes the sequence number of NAK information and the NAK information;The receiving unit, it is additionally operable to the data indicated when the sequence number of the NAK information with the sequence number of the data message When message is consistent, it is determined that receiving the NAK information of the data message by the MAC layer.
- 15. according to the device described in claim any one of 11-14, it is characterised in thatThe predefined extended MAC frame structure also include the source MAC of message, the target MAC (Media Access Control) address of message, message with Too net data frame type, the sequence number of message;The data message also includes the MAC Address of the dispensing device, the MAC Address of the reception device, Ethernet data The sequence number of frame type, data message.
- A kind of 16. reception device, it is characterised in that including:Receiving unit, intervene mac layer communication connection for the media by being established with dispensing device and receive the transmission dress Put the data message of transmission;Transmitting element, for when the data message received occurs wrong, being used by MAC layer communication connection pre- The extended MAC frame structure of definition sends data to the dispensing device and retransmits message, the predefined extended MAC frame knot Structure includes the type of message, and the data, which retransmit message, includes negative response NAK information, and the NAK information is described for indicating Reception device is not properly received the data message, and the data retransmit message and are used to indicate that the reception device is not correct Receive the data message;The receiving unit, it is additionally operable to receive the MAC layer communication connection request message that the dispensing device is sent;Control unit, for generating MAC layer communication connection confirmation message;The transmitting element, for the MAC Address according to the dispensing device, the MAC layer that described control unit is generated Communication connection confirmation message is sent to the dispensing device.
- 17. device according to claim 16, it is characterised in that the data message includes the sequence of the data message Number,Described control unit, the sequence number of the data message carried according to the data message is additionally operable to, determines the number Whether there is mistake according to message.
- 18. device according to claim 17, it is characterised in thatDescribed control unit, it is additionally operable to when the data message received occurs wrong, according to the data message, generation Data retransmit message, and the data, which retransmit message, includes the sequence number of the NAK information, the sequence number of the NAK information and institute The data message for stating the sequence number instruction of data message is consistent;The transmitting element, it is additionally operable to communicate to connect to dispensing device transmission described control unit by the MAC layer and gives birth to Into the data retransmit message.
- 19. device according to claim 18, it is characterised in thatThe predefined extended MAC frame structure also include the source MAC of message, the target MAC (Media Access Control) address of message, message with Too net data frame type, the sequence number of message;The data, which retransmit message, also includes the MAC Address of the reception device, the MAC Address of the dispensing device, Ethernet Data frame type, data retransmit the sequence number of message.
- 20. according to the device described in claim any one of 16-19, it is characterised in thatThe receiving unit, it is additionally operable to the number for receiving the dispensing device by MAC layer communication connection and resending According to message.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410178081.4A CN103973414B (en) | 2014-04-29 | 2014-04-29 | A kind of data transmission method and device |
PCT/CN2014/091789 WO2015165255A1 (en) | 2014-04-29 | 2014-11-20 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410178081.4A CN103973414B (en) | 2014-04-29 | 2014-04-29 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103973414A CN103973414A (en) | 2014-08-06 |
CN103973414B true CN103973414B (en) | 2018-03-09 |
Family
ID=51242493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410178081.4A Active CN103973414B (en) | 2014-04-29 | 2014-04-29 | A kind of data transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103973414B (en) |
WO (1) | WO2015165255A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108712373B (en) * | 2018-03-30 | 2022-01-11 | 深圳市风云实业有限公司 | Unidirectional communication method, device, user terminal and computer readable storage medium |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973414B (en) * | 2014-04-29 | 2018-03-09 | 华为技术有限公司 | A kind of data transmission method and device |
CN104243111B (en) * | 2014-09-01 | 2017-12-26 | 广州华多网络科技有限公司 | A kind of method and apparatus of packet transmission |
EP3229393A4 (en) | 2014-12-29 | 2017-12-20 | Huawei Technologies Co. Ltd. | Error code information transfer method, network device and communication system |
CN113541874A (en) * | 2020-04-15 | 2021-10-22 | 华为技术有限公司 | Data transmission method and network equipment |
CN112398567B (en) * | 2020-11-17 | 2021-10-29 | 珠海格力电器股份有限公司 | Clock synchronization method and device in encryption communication process and multi-device system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101018108A (en) * | 2006-02-10 | 2007-08-15 | 华为技术有限公司 | The data transmission method and system and data transmission and receiving device |
CN102802263A (en) * | 2011-05-25 | 2012-11-28 | 中兴通讯股份有限公司 | MAC (media access control) layer uplink dynamic scheduling method and device |
US9007904B2 (en) * | 2011-11-17 | 2015-04-14 | International Business Machines Corporation | System to improve an ethernet network |
US9584384B2 (en) * | 2012-09-19 | 2017-02-28 | Intel Corporation | Methods for retransmitting reverse link data and apparatuses using the same |
CN103973414B (en) * | 2014-04-29 | 2018-03-09 | 华为技术有限公司 | A kind of data transmission method and device |
-
2014
- 2014-04-29 CN CN201410178081.4A patent/CN103973414B/en active Active
- 2014-11-20 WO PCT/CN2014/091789 patent/WO2015165255A1/en active Application Filing
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108712373B (en) * | 2018-03-30 | 2022-01-11 | 深圳市风云实业有限公司 | Unidirectional communication method, device, user terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2015165255A1 (en) | 2015-11-05 |
CN103973414A (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103973414B (en) | A kind of data transmission method and device | |
US10826654B2 (en) | Method and system for improving wireless link efficiency | |
US7746786B2 (en) | Retransmission control method and device | |
JP5053986B2 (en) | Enhanced polling method to avoid deadlock in wireless communication systems | |
CN106559739B (en) | Lightweight data transmission method suitable for Bluetooth low-power wireless communication system | |
CN106788911A (en) | A kind of method and apparatus of message retransmission | |
US9037935B2 (en) | Apparatus and method for retransmitting message in message transmission system | |
RU2701523C1 (en) | System and method of providing synchronization in transmissions in a mode without connection | |
WO2013075666A1 (en) | Rlc data packet transmission acknowledgement method and rlc am entity sending party | |
KR102046792B1 (en) | Method of transporting data from sending node to destination node | |
CN104093170A (en) | TCP-based data transmission method and TCP agent apparatus | |
CN104780028A (en) | Method and equipment for retransmitting TCP (transmission control protocol) data messages | |
JP5037633B2 (en) | RLC PDU transmission method, radio resource allocation method, and RLC entity of mobile communication system in mobile communication system | |
CN107172649A (en) | A kind of data transmission method and equipment | |
CN107612841A (en) | A kind of method, apparatus and computer equipment for transmitting data | |
CN102315923B (en) | Radio link control method of 3G (The 3rd Generation) satellite communication system | |
US7995517B2 (en) | System and method for transmitting units of messages in a mobile communication system | |
BR112019015070A2 (en) | METHOD AND APPLIANCES FOR DATA TRANSMISSION AND EQUIPMENT OF CUSTOMER FACILITIES | |
CN109525374A (en) | Method, wireless access point, user equipment and the transmission device of data transmission | |
JP2014192811A (en) | Relay device and communication method | |
CN116963175A (en) | Data transmission method, device and system | |
CN108988994A (en) | The repeating method and device of message | |
CN109067497B (en) | Efficient networking method suitable for ultrashort wave TDMA wireless channel | |
KR100855347B1 (en) | Message transmitting system based on udp control and method for the same | |
JP3148733B2 (en) | Signal processing device and signal processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |