CN108092745A - Data transmission method, device, equipment and the storage medium of point-to-point equipment - Google Patents

Data transmission method, device, equipment and the storage medium of point-to-point equipment Download PDF

Info

Publication number
CN108092745A
CN108092745A CN201711404903.6A CN201711404903A CN108092745A CN 108092745 A CN108092745 A CN 108092745A CN 201711404903 A CN201711404903 A CN 201711404903A CN 108092745 A CN108092745 A CN 108092745A
Authority
CN
China
Prior art keywords
data packet
data
packet
mark
bag
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.)
Pending
Application number
CN201711404903.6A
Other languages
Chinese (zh)
Inventor
马洪伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
Beijing Dongtu Jinyue Technology Co Ltd
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 Beijing Dongtu Jinyue Technology Co Ltd filed Critical Beijing Dongtu Jinyue Technology Co Ltd
Priority to CN201711404903.6A priority Critical patent/CN108092745A/en
Publication of CN108092745A publication Critical patent/CN108092745A/en
Pending legal-status Critical Current

Links

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/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • H04L47/365Dynamic adaptation of the packet size

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a kind of data transmission method, device, equipment and the storage medium of point-to-point equipment, wherein this method includes:Determine that the priority of the first data packet to be sent is higher than the priority for the second data packet being currently transmitted;Determine that the second data packet meets default truncation condition;The second data packet is blocked, obtains the first truncated data bag and the second truncated data bag;According to default frame structure header tag is added in the first data packet and the second truncated data bag respectively;After sending the first truncated data bag, the first data packet and the second truncated data bag after addition header tag are sent successively.In the embodiment of the present invention, when the data packet for having priority high needs transmission, the long data packet being currently transmitted can be blocked, prioritised transmission significant data ensures the low delay transmission of significant data in a manner that disconnected bag resumes;And the reception state of data packet can be fed back to transmitting terminal by receiving terminal, and packet loss is supported to retransmit, and ensure the reliability of data transmission.

Description

Data transmission method, device, equipment and the storage medium of point-to-point equipment
Technical field
The present embodiments relate to data transmission technology more particularly to a kind of data transmission method of point-to-point equipment, dresses It puts, equipment and storage medium.
Background technology
Existing ethernet technology is carried out data transmission by frame, point-to-point to set since the transmission delay of ether network packet is shaken Data transmission between standby (such as interchanger, router), the maximum delay under gigabit Ethernet is 12 μ s, in 100,000,000 ether Maximum delay off the net is 120 μ s, can not meet the needs of special screne is to low delay.Above-mentioned delay causes the finger that message carries Order reaches the time of purpose equipment there are larger uncertainty, reduces the precision that purpose equipment performs.
The content of the invention
The embodiment of the present invention provides a kind of data transmission method, device, equipment and the storage medium of point-to-point equipment, with reality The low delay transmission of existing significant data.
In a first aspect, an embodiment of the present invention provides a kind of data transmission method of point-to-point equipment, including:
Determine that the priority of the first data packet to be sent is higher than the priority for the second data packet being currently transmitted;
Determine that second data packet meets default truncation condition;
Second data packet is blocked, obtains the first truncated data bag and the second truncated data bag;
According to default frame structure header tag is added in first data packet and the second truncated data bag respectively;
After sending the first truncated data bag, the first data packet and second after addition header tag is sent successively and is blocked Data packet.
Further, determine that second data packet meets default truncation condition, including:
Compare the length that data have been sent in second data packet and preset length and second data packet In do not send the length of data and the preset length;
If the length for having sent data and the length for not sending data are more than the preset length, really Fixed second data packet meets the default truncation condition;
If the length for having sent data not less than the preset length and it is described do not send data length be more than The preset length then waits after the length for having sent data reaches the preset length, number is not sent described in judgement According to length whether be more than the preset length;
If the length for not sending data is not less than the preset length, it is determined that second data packet is unsatisfactory for The default truncation condition.
Further, the header tag includes:Frame type blocks mark, resumes mark, retransmit mark, support packet loss Retransmit mark, current data packet sequence number, feedback sequence number and packet loss mark;
Wherein, the mark of blocking is described to resume mark for representing to work as representing whether a upper data packet is truncated Whether preceding data packet is to resume message, described to retransmit mark for representing whether current data packet is to retransmit message, the feedback Sequence number is used for the data packet sequence number from opposite equip. that feedback reception arrives, and the packet loss mark is for expression from the opposite end Whether the data packet of equipment has packet loss.
Further, the first data packet after addition label is sent, including:
If there is the priority of data packet is higher than the priority of first data packet, then meet in first data packet On the premise of the default truncation condition, first data packet is blocked.
Further, after data packet is sent, further include:
Receive the 3rd data packet that opposite equip. is sent;
The header tag of the 3rd data packet is parsed, feedback sequence number and packet loss mark in the header tag, Determine to be sent to the reception state of the data packet of the opposite equip.;
If data-bag lost, the re-transmission mark in the header tag of the data packet of loss is configured, and is sent out again Send the data packet of the loss.
Further, after the 3rd data packet that opposite equip. is sent is received, further include:
The reception state of the 3rd data packet is fed back to the opposite equip..
Further, after the 3rd data packet that opposite equip. is sent is received, further include:
If the frame type of the 3rd data packet is data frame, according to next data packet of the 3rd data packet Mark of blocking in header tag determines whether the 3rd data packet is truncated;
If the 3rd data packet is truncated, receive the 3rd data packet resume data packet after, merge institute It states the 3rd data packet and resumes data packet with described.
Further, after the 3rd data packet that opposite equip. is sent is received, further include:
If having determined data-bag lost according to the data packet sequence number of reception, the opposite equip. is waited to retransmit the number lost According to bag, then stop waiting retransmitting until meeting either condition in the default condition abandoned wait and retransmitted;
Wherein, it is described to abandon that the condition retransmitted is waited to include:
Receive the data packet of re-transmission;
Stand-by period is more than preset time;And
It is more than predetermined number to wait the data packet number retransmitted.
Second aspect, the embodiment of the present invention additionally provide a kind of data transmission device of point-to-point equipment, including:
Priority Determination module, for determining that the first data packet to be sent is more excellent than the second data packet being currently transmitted First grade is high;
Determining module is blocked, for determining that second data packet meets default truncation condition;
Data truncation module for blocking second data packet, obtains the first truncated data bag and the second truncated data Bag;
Label add module, for according to default frame structure respectively in first data packet and second truncated data Header tag is added in bag;
Data transmission blocks after sending the first truncated data bag, send the after addition header tag successively One data packet and the second truncated data bag.
Further, the header tag includes:Frame type blocks mark, resumes mark, retransmit mark, support packet loss Retransmit mark, current data packet sequence number, feedback sequence number and packet loss mark;
Wherein, the mark of blocking is described to resume mark for representing to work as representing whether a upper data packet is truncated Whether preceding data packet is to resume message, described to retransmit mark for representing whether current data packet is to retransmit message, the feedback Sequence number is used for the data packet sequence number from opposite equip. that feedback reception arrives, and the packet loss mark is for expression from the opposite end Whether the data packet of equipment has packet loss.
Further, described device further includes:
Data reception module, for after data packet is sent, receiving the 3rd data packet that opposite equip. is sent;
Tag resolution module, it is anti-in the header tag for parsing the header tag of the 3rd data packet Sequence number and packet loss mark are presented, determines to be sent to the reception state of the data packet of the opposite equip.;
Data retransmission module, in the case of data-bag lost, to the weight in the header tag of the data packet of loss It passes mark to be configured, and resends the data packet of the loss.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, and the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing Device realizes the data transmission method of the point-to-point equipment as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the transmission side data of the point-to-point equipment as described in any embodiment of the present invention when the program is executed by processor Method.
The technical solution of the embodiment of the present invention when the data packet for having priority high needs transmission, can block currently just In the long data packet of transmission, prioritised transmission significant data ensures the low delay transmission of significant data in a manner that disconnected bag resumes;Separately Outside, the reception state of data packet is fed back to transmitting terminal by receiving terminal in the embodiment of the present invention, and packet loss is supported to retransmit, and ensures that data pass Defeated reliability.
Description of the drawings
Fig. 1 is the flow chart of the data transmission method for the point-to-point equipment that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram for the data frame structure that the embodiment of the present invention one provides;
Fig. 3 is the schematic diagram of data transmission between the point-to-point equipment that the embodiment of the present invention three provides;
Fig. 4 is the structure diagram for the point-to-point equipment that the embodiment of the present invention three provides;
Fig. 5 is the structure diagram of the data transmission device for the point-to-point equipment that the embodiment of the present invention four provides;
Fig. 6 is another structure diagram of the data transmission device for the point-to-point equipment that the embodiment of the present invention four provides;
Fig. 7 is the structure diagram for the equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Embodiment one
Fig. 1 is the flow chart of the data transmission method for the point-to-point equipment that the embodiment of the present invention one provides, and the present embodiment can Suitable for the situation of the low delay data transmission of point-to-point equipment room, this method can be performed by data transmission device, the dress Putting can be integrated in by software and/or hardware realization, the device in point-to-point equipment.As shown in Figure 1, this method is specifically wrapped Include following steps:
Step 110, determine the priority of the first data packet to be sent higher than the second data packet being currently transmitted Priority.
Wherein, the priority of data packet can determine that the embodiment of the present invention is to this without retouching in detail according to request is sent It states and limits.
Step 120, determine that second data packet meets default truncation condition.
Wherein, truncation condition is preset for determining whether the second data packet being currently transmitted is long data packet, this hair Long data packet is blocked in the support of bright embodiment, with the high data packet of timely transmission priority, ensures the low delay of significant data Transmission.If the second data packet is unsatisfactory for default truncation condition, represents that the second data packet is not long data packet, wait the second data Bag is sent, and retransmits the first data packet of high priority.
Step 130, second data packet is blocked, obtains the first truncated data bag and the second truncated data bag.
Step 140, added respectively in first data packet and the second truncated data bag according to default frame structure Header tag.
Wherein, header tag includes data packet sequence number and for representing that data packet blocks the field of state so that opposite end is set It is whether complete for the data packet that can know reception, to carry out the merging of data packet or other processing.It should be noted that this In inventive embodiments, sending device, can be in each data packet of its transmission before data packet is sent to opposite equip. Add header tag.
Step 150, after sending the first truncated data bag, send successively the first data packet after addition header tag and Second truncated data bag.
Wherein, the second data packet is as long data packet, is truncated as two parts, and the first truncated data bag is being sent Part data after the first truncated data bag is sent, first send the first data packet of high priority, then followed by supervention The second truncated data bag is sent, it is possible thereby to ensure the low delay transmission of significant data.
The technical solution of the present embodiment when the data packet for having priority high needs transmission, can be blocked and currently sent out The long data packet sent, prioritised transmission significant data ensure the low delay transmission of significant data in a manner that disconnected bag resumes.
Based on the above technical solutions, default truncation condition includes:Sent in data packet data length whether More than do not sent in preset length and data packet data length whether be more than preset length.Wherein, preset length can root It is configured according to actual demand, for example, being arranged to 64 byte of minimum frame length of Ethernet.
Specifically, step 120 includes:
Compare the length that data have been sent in second data packet and preset length and second data packet In do not send the length of data and the preset length;
If the length for having sent data and the length for not sending data are more than the preset length, really Fixed second data packet meets the default truncation condition;
If the length for having sent data not less than the preset length and it is described do not send data length be more than The preset length then waits after the length for having sent data reaches the preset length, number is not sent described in judgement According to length whether be more than the preset length;
If the length for not sending data is not less than the preset length, it is determined that second data packet is unsatisfactory for The default truncation condition.
By the judgement of above-mentioned default truncation condition, the data packet that can ensure to block meets Ethernet requirement, so as to protect Demonstrate,proving data packet being capable of normal transmission.
Further, above-mentioned header tag includes:Frame type blocks mark, resumes mark, retransmit mark, support packet loss Retransmit mark, current data packet sequence number, feedback sequence number and packet loss mark.Wherein, it is described to block mark for representing a upper data Whether bag is truncated, and the mark that resumes is for representing whether current data packet is to resume message, and the mark that retransmits is for table Show whether current data packet is to retransmit message, and the feedback sequence number is used for the data packet sequence from opposite equip. that feedback reception arrives Number, whether the packet loss mark has packet loss for data packet of the expression from the opposite equip..It blocks mark and resumes mark For representing that data packet blocks state.Sequence number and packet loss mark are fed back for feeding back the number transmitted by opposite equip. to opposite equip. According to the reception state of bag.For an equipment, the data packet sequence number sent can add up always.
Fig. 2 be the embodiment of the present invention one provide data frame structure schematic diagram, as shown in Fig. 2, the frame structure with it is existing Ethernet frame structure is compared, and new field includes:Length is the head_sign of 1 byte (Byte), length is 2 bytes The Sequence Number and Confirm Number that length is 1 byte.New field (can claim for the head of data packet For header tag), the meaning of 8 bits is as follows in head_sign fields:
Bit7:Frame_type represents frame type, i.e. management frame or data frame;
Bit6:Preframe represents whether a upper data packet is truncated;
Bit5:Thisframe represents whether notebook data bag is to resume message;
Bit4:Re_send represents whether notebook data bag is to retransmit message;
Bit3:Confirm_en indicates whether to support packet loss functions of retransmission;
Bit2:Confirm_loss represents that Comfirm Number are unreceived data packet sequence number or paid-in number According to bag sequence number;Illustratively, value 1, it is unreceived sequence number to represent Comfirm Number;Value is 0, is represented Comfirm Number are the sequence number received;
Bit1 and Bit0 is reservation bit.
Sequence Number represent notebook data bag sequence number.
Confirm Number represent the data packet sequence number fed back to opposite equip., can specifically be sent using opposite equip. Data packet in Sequence Number low byte.
Ethernet Frame Data without FCS32 represent the data of data frame.
Mange Information Data represent the data of management frame, and the length of management frame is 64 bytes, it is to send out It after having sent or having received a normal Ethernet data bag, is asked if sent without other data packets, needs insertion so One management frame.
The data packet that FCS32 (Frame Check Sequence, Frame Check Sequence) receives for opposite equip. verification It is whether correct.The first two field in frame structure shown in Fig. 2 is existing field, and the present embodiment is to its length and function without detailed Thin description.
Based on the above technical solutions, truncated data bag and then the data packet of secondary transmission may be preferential by higher The data packet of grade is blocked, i.e., nesting blocks transmission.Specifically, the first data packet after addition label is sent, including:If there is number It is higher than the priority of first data packet according to the priority of bag, then meets the default truncation condition in first data packet On the premise of, block first data packet.
Embodiment two
On the basis of above-described embodiment, present embodiments provide receiving terminal and the reception state of data packet is fed back into transmission The embodiment at end packet loss to be supported to retransmit, ensures the reliability of data transmission.Above-described embodiment is sent for point-to-point equipment The process of data packet is described, and the present embodiment will be illustrated for the process of point-to-point equipment received data packet.With it is above-mentioned Embodiment is identical or corresponding term is explained, the present embodiment repeats no more.
Specifically, after data packet (such as the first truncated data bag, the first data packet or the second truncated data bag) is sent, The above method further includes:Receive the 3rd data packet that opposite equip. is sent;The header tag of the 3rd data packet is parsed, according to Feedback sequence number and packet loss mark in the header tag, determine to be sent to the reception state of the data packet of the opposite equip.. If data-bag lost, the re-transmission mark in the header tag of the data packet of loss is configured, and is resend described The data packet of loss.
Wherein, the frame type of the 3rd data packet can be management frame or data frame.Opposite equip. often receives one Data packet can feed back the reception state of the data packet to source device.If opposite equip. just has data packet, needs are sent to Source device then carries confirmation message in the header tag of the data packet, to save bandwidth, for example, in the data packet header mark Write-in needs the data packet sequence number of feedback reception state in the Confirm Number of label, and accordingly sets Confirm_loss); If opposite equip. does not have data packet to need to send, using management frame feedback reception state, i.e., a management is sent to source device Frame carries confirmation message in the header tag of management frame.
Likewise, the 3rd data packet of opposite equip. transmission is received afterwards, it is necessary to feed back the 3rd data to opposite equip. The reception state of bag.If the frame type of the 3rd data packet is data frame, except feedback reception state, it is also necessary to according to data packet Header tag is handled or merged to data packet, specifically, the head according to next data packet of the 3rd data packet Mark of blocking in label determines whether the 3rd data packet is truncated;If the 3rd data packet is truncated, receive 3rd data packet resume data packet after, merge the 3rd data packet and resume data packet with described.It results in Complete data packet.
In practical applications, after receiving the 3rd data packet, preset duration can be waited, if it exceeds the preset duration Next data packet is not received also, then it is complete to give tacit consent to the 3rd data packet.The preset duration can be set by agreement, example Such as, it is up to 30 byte times.
Based on the above technical solutions, if there is data-bag lost, then need that opposite equip. is waited to retransmit what is lost Data packet, to ensure the reliability of data transmission.Specifically, after the 3rd data packet that opposite equip. is sent is received, also wrap It includes:If having determined data-bag lost according to the data packet sequence number of reception, the opposite equip. is waited to retransmit the data packet lost, Then stop waiting retransmitting until meeting either condition in the default condition abandoned wait and retransmitted.
Wherein, abandon that the condition retransmitted is waited to include:Receive the data packet of re-transmission;Stand-by period is more than preset time; And it is more than predetermined number to wait the data packet number retransmitted.Wherein, if waiting the data packet number retransmitted more, represent multiple Data packet does not receive, it may be possible to which Network Abnormal is then abandoned waiting re-transmission.In present embodiment, retransmitted according to abandoning waiting Condition abandon in time wait retransmit, in order to avoid occupy excess resource.
Embodiment three
Fig. 3 is the schematic diagram of data transmission between the point-to-point equipment that the embodiment of the present invention three provides, as shown in figure 3, setting For standby A there are three port a1, a2 and b, equipment B includes port c, and device A sends data packet to equipment B.Device A is every in port b The frame head of a data packet increases header tag, which includes data packet sequence number, for the order of transmission of identification data packet.
Port a1 and a2 are respectively to port b transmission packets, when the data packet sent from port a1 and a2 reaches end simultaneously During mouth b, device A can select sequencing of the data packet by port b according to priority.If the number that port a1 and a2 are sent It is not to reach port b simultaneously according to bag, then the first transmission arrived first, such as the data packet S1 of port a1 are first transferred to port b, then port B starts transmission packet S1;If the data packet S2 (deriving from port a2) for reaching port b afterwards is high priority packets, together When the data packet S1 that is sending in sent data length and do not send data length more than 64 bytes, then block and sending out The data packet S1 sent is blocked as two segment data bag of S1_1 and S1_2.After port b transfers data packet S1_1, start transmission and come from The high priority packets S2 of port a2, then transmission packet S1_2 again.Each data packet (S1_1, S1_2, S2) can Header tag is added in frame head, is used to indicate sequence number, oneself state and the upper data bag-like state of itself.
The frame head of data packet S2 can add mark (Preframe, for representing whether upper data packet S1_1 is truncated, 1 Expression is truncated, and 0 represents not to be truncated), for notifying the state of blocking of the upper data packets of equipment B, equipment B can be according to the mark Know the data packet S1_1 that storage previous frame receives, after data packet S1_2 is received, equipment B recombination data bags S1_1 and S1_ 2.Wherein, equipment B receives a data packet just to device A feedback reception state.
It should be noted that interchanger has multiple port multiple priorities, after truncated data bag, the number that sends again It may be blocked according to bag by the data packet of higher priority.In sending side and receiving side, each port can be come using multiple queues This nesting is supported to block transmission.
The specific implementation structure of equipment is illustrated with reference to Fig. 4.Fig. 4 is the point pair that the embodiment of the present invention three provides The structure diagram of point device, as shown in figure 4, the sending port of point-to-point equipment includes:Send arbitration modules, gate region and Framing module, receiving port include:Frame parsing module, entry queue and reception assembling module.In Fig. 4, Send_req and Tx_ Req is represented to send and asked, and Tx_Data represents the data sent, and Ethernet_tx represents to send Ethernet data bag, Ethernet_rx represents reception Ethernet data bag, and Rx_info represents the frame information in the data packet received, and Rx_Data is represented The data of reception, Receive represent to receive, and Confirm_info represents confirmation message.
Structure based on shown in Fig. 4, the transmission process of data packet are as follows:
It sends arbitration modules to be asked according to multiple send, data will be sent and be written in gate region;Meanwhile send arbitration Data of the module in the priority of request, gate region and the confirmation message from receiving port, output send request To framing module.Framing module adds header tag according to request is sent to the data in gate region, and sends.
Wherein, truncation condition judgement is carried out to the data packet that is currently transmitted by transmission arbitration modules, at the same meet with Lower condition, which then generates, blocks:The length that data have been sent in the data packet being currently transmitted is more than 64 bytes, if less than 64 words Section then waits and meets this condition;The length for not sending data in the data packet being currently transmitted is more than 64 bytes.
When there are Confirm_loss marks in the confirmation message received, gate region is gone according to Confirm Number In find corresponding data packet, retransmitted.Original sequence number is used during re-transmission and indicates that the data packet is retransmission frame.Its middle outlet Data in queue can be deleted periodically, to support the re-transmission of data packet.
Structure based on shown in Fig. 4, the receive process of data packet are as follows:
The header tag of data packet of the frame parsing module to receiving parses, and writes the data packet to entry queue In.After receiving a data packet, if the frame type of the data packet is data frame, the head according to its next data packet is needed Portion's label determines whether data packet is complete, can set the stand-by period herein, for example, it is up to 30 byte times, with etc. Treat the header tag of next data packet.
The frame information that assembling module is parsed according to frame parsing module is received, judges whether the data packet of entry queue is complete Whole (being judged with specific reference to Preframe and Thisframe fields), and complete data packet is obtained from entry queue.
If receive framing module when judging the data packet discarding of some sequence number (for example, Confirm_loss values is 0, Represent that packet loss occurs for the data packet shown in Confirm Number), then wait re-transmission.Meet following either condition, then abandon It waits to retransmit:(1) retransmission frame is had received;(2) stand-by period time-out;(3) the data packet number waited is more than to specify number.
Example IV
Fig. 5 is the structure diagram of the data transmission device for the point-to-point equipment that the embodiment of the present invention four provides, such as Fig. 5 institutes Show, which includes:
Priority Determination module 510, for determining the first data packet to be sent than the second data for being currently transmitted Packet priority is high;
Determining module 520 is blocked, for determining that second data packet meets default truncation condition;
Data truncation module 530 for blocking second data packet, obtains the first truncated data bag and the second truncation number According to bag;
Label add module 540, for being blocked respectively in first data packet and described second according to default frame structure Header tag is added in data packet;
Data transmission blocks 550, after sending the first truncated data bag, after sending addition header tag successively First data packet and the second truncated data bag.
Further, blocking determining module 520 includes:
Length comparing unit, for sent in second data packet length of data and preset length and Compare the length for not sending data in second data packet and the preset length;
Determination unit is blocked, is used for:
It is more than the situation of the preset length in the length for having sent data and the length for not sending data Under, determine that second data packet meets the default truncation condition;
Not less than the preset length and the length for not sending data it is more than institute in the length for having sent data In the case of stating preset length, wait after the length for having sent data reaches the preset length, do not sent out described in judgement Whether the length for sending data is more than the preset length;And
In the case where the length for not sending data is not less than the preset length, second data packet is determined not Meet the default truncation condition.
Optionally, the header tag includes:Frame type blocks mark, resumes mark, retransmit mark, support packet loss weight Pass mark, current data packet sequence number, feedback sequence number and packet loss mark;Wherein, it is described to block mark for representing a upper data packet Whether it is truncated, the mark that resumes is described to retransmit mark for representing for representing whether current data packet is to resume message Whether current data packet is to retransmit message, and the feedback sequence number is used for the data packet sequence from opposite equip. that feedback reception arrives Number, whether the packet loss mark has packet loss for data packet of the expression from the opposite equip..
Further, the data transmission blocks 550 are additionally operable to:It is higher than first data in the priority for having data packet In the case of the priority of bag, on the premise of first data packet meets the default truncation condition, described first is blocked Data packet.
Optionally, as shown in fig. 6, above device 500 further includes:
Data reception module 560, for after data packet is sent, receiving the 3rd data packet that opposite equip. is sent;
Tag resolution module 570, for parsing the header tag of the 3rd data packet, according in the header tag Sequence number and packet loss mark are fed back, determines to be sent to the reception state of the data packet of the opposite equip.;
Data retransmission module 580, in the case of data-bag lost, in the header tag of the data packet of loss It retransmits mark to be configured, and resends the data packet of the loss.
Further, above device further includes:
Feedback of status module, for receive opposite equip. send the 3rd data packet after, it is anti-to the opposite equip. Present the reception state of the 3rd data packet.
Further, above device further includes:
Block judgment module, for receive opposite equip. send the 3rd data packet after, in the 3rd data packet Frame type be data frame in the case of, block mark in the header tag of next data packet of the 3rd data packet Know and determine whether the 3rd data packet is truncated;
Data combiners block in the case of being truncated in the 3rd data packet, receives the 3rd data packet Resume data packet after, merge the 3rd data packet and resume data packet with described.
Further, above device further includes:Retransmission module is waited, for receiving the 3rd data of opposite equip. transmission After bag, if having determined data-bag lost according to the data packet sequence number of reception, the opposite equip. is waited to retransmit the number lost According to bag, then stop waiting retransmitting until meeting either condition in the default condition abandoned wait and retransmitted;Wherein, it is described to abandon Condition to be retransmitted includes:Receive the data packet of re-transmission;Stand-by period is more than preset time;And wait the data packet retransmitted Number is more than predetermined number.
The data transmission device for the point-to-point equipment that the embodiment of the present invention is provided can perform any embodiment institute of the present invention The data transmission method of the point-to-point equipment provided, possesses the corresponding function module of execution method and advantageous effect.Not in this reality The technical detail of detailed description in example is applied, reference can be made to the transmission side data for the point-to-point equipment that any embodiment of the present invention provides Method.It should be noted that the data transmission device of above-mentioned point-to-point equipment can be based on field programmable logic device ((Field Programmable Gate Array, FPGA) it realizes.
Embodiment five
A kind of equipment is present embodiments provided, including:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing Device realizes the data transmission method of the point-to-point equipment as described in any embodiment of the present invention.
Fig. 7 is the structure diagram for the equipment that the embodiment of the present invention five provides.Fig. 7 shows to be used for realizing the present invention The block diagram of the example devices 12 of embodiment.The equipment 12 that Fig. 7 is shown is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in fig. 7, equipment 12 is showed in the form of universal computing device.The component of equipment 12 can include but unlimited In:One or more processor or processing unit 16, system storage 28, connection different system component (are deposited including system Reservoir 28 and processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises various computing systems readable medium.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile medium, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, it is not removable to can be used for read-write for queue management system 34 Dynamic, non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive "), realizes the write-in and reading of data packet.To the greatest extent Not shown in pipe Fig. 7, it can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, with And the CD drive to moving anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.At this In the case of a little, each driver can be connected by one or more data media interfaces with bus 18.System storage 28 It can include at least one program product, which has one group of (for example, at least one) program module, these program moulds Block is configured to perform the function of various embodiments of the present invention.
Equipment 12 can also communicate with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication and/or with enable the equipment 12 with Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device communicates.This communication It can be carried out by input/output (I/O) interface 22 and/or network adapter 20.Equipment 12 can pass through network adapter 20 With one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication. As shown in the figure, network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although do not show in figure Go out, can other hardware and/or software module be used with bonding apparatus 12, included but not limited to:It is microcode, device driver, superfluous Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various functions application and Data processing, such as realize the data transmission method for the point-to-point equipment that the embodiment of the present invention is provided.
Embodiment six
The embodiment of the present invention six provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The data transmission method of the point-to-point equipment as described in any embodiment of the present invention is realized when sequence is executed by processor.
The arbitrary of one or more computer-readable media may be employed in the computer storage media of the embodiment of the present invention Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device or arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or storing program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but it is unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can realize that the data of the point-to-point equipment of the embodiment of the present invention are passed with use site programmable logic device (FPGA) Transmission method writes to perform the computer journey that operates of the present invention with one or more programming languages or its combination Sequence code, described program design language include object oriented program language-such as Java, Smalltalk, C++, also Including conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete It performs, partly performed on the user computer on the user computer entirely, the software package independent as one performs, part Part performs or performs on a remote computer or server completely on the remote computer on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or wide Domain net (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as is provided using Internet service Business passes through Internet connection).
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (13)

1. a kind of data transmission method of point-to-point equipment, which is characterized in that including:
Determine that the priority of the first data packet to be sent is higher than the priority for the second data packet being currently transmitted;
Determine that second data packet meets default truncation condition;
Second data packet is blocked, obtains the first truncated data bag and the second truncated data bag;
According to default frame structure header tag is added in first data packet and the second truncated data bag respectively;
After sending the first truncated data bag, the first data packet and the second truncated data after addition header tag are sent successively Bag.
2. according to the method described in claim 1, it is characterized in that, determine that second data packet meets default truncation condition, Including:
Compare in the length that data have been sent in second data packet and preset length and second data packet not Send the length of data and the preset length;
If the length for having sent data and the length for not sending data are more than the preset length, it is determined that institute It states the second data packet and meets the default truncation condition;
If the length for having sent data is more than described not less than the preset length and the length for not sending data Preset length then waits after the length for having sent data reaches the preset length, data is not sent described in judgement Whether length is more than the preset length;
If the length for not sending data is not less than the preset length, it is determined that second data packet is unsatisfactory for described Default truncation condition.
3. according to the method described in claim 1, it is characterized in that, the header tag includes:Frame type blocks mark, is continuous Mark is passed, mark is retransmitted, packet loss is supported to retransmit mark, current data packet sequence number, feedback sequence number and packet loss mark;
Wherein, the mark of blocking is described to resume mark for representing current number for representing whether a upper data packet is truncated Whether it is to resume message according to bag, it is described to retransmit mark for representing whether current data packet is to retransmit message, the feedback sequence number For the data packet sequence number from opposite equip. that feedback reception arrives, the packet loss mark is for expression from the opposite equip. Data packet whether have packet loss.
4. according to the method described in claim 1, it is characterized in that, send addition label after the first data packet, including:
If there is the priority of data packet is higher than the priority of first data packet, then described in first data packet satisfaction On the premise of default truncation condition, first data packet is blocked.
5. method according to any one of claim 1 to 4, which is characterized in that after data packet is sent, further include:
Receive the 3rd data packet that opposite equip. is sent;
The header tag of the 3rd data packet is parsed, feedback sequence number and packet loss mark in the header tag determine It is sent to the reception state of the data packet of the opposite equip.;
If data-bag lost, the re-transmission mark in the header tag of the data packet of loss is configured, and resends institute State the data packet of loss.
6. according to the method described in claim 5, it is characterized in that, receive opposite equip. send the 3rd data packet after, It further includes:
The reception state of the 3rd data packet is fed back to the opposite equip..
7. according to the method described in claim 5, it is characterized in that, receive opposite equip. send the 3rd data packet after, It further includes:
If the frame type of the 3rd data packet is data frame, according to the head of next data packet of the 3rd data packet Mark of blocking in label determines whether the 3rd data packet is truncated;
If the 3rd data packet is truncated, receive the 3rd data packet resume data packet after, merge described the Three data packets resume data packet with described.
8. according to the method described in claim 5, it is characterized in that, receive opposite equip. send the 3rd data packet after, It further includes:
If having determined data-bag lost according to the data packet sequence number of reception, the opposite equip. is waited to retransmit the data lost Bag then stops waiting retransmitting until meeting either condition in the default condition abandoned wait and retransmitted;
Wherein, it is described to abandon that the condition retransmitted is waited to include:
Receive the data packet of re-transmission;
Stand-by period is more than preset time;And
It is more than predetermined number to wait the data packet number retransmitted.
9. a kind of data transmission device of point-to-point equipment, which is characterized in that including:
Priority Determination module, for determining the first data packet to be sent than the second packet priority for being currently transmitted It is high;
Determining module is blocked, for determining that second data packet meets default truncation condition;
Data truncation module for blocking second data packet, obtains the first truncated data bag and the second truncated data bag;
Label add module, for according to default frame structure respectively in first data packet and the second truncated data bag Add header tag;
Data transmission blocks after sending the first truncated data bag, send the first number after addition header tag successively According to bag and the second truncated data bag.
10. device according to claim 9, which is characterized in that the header tag includes:Frame type blocks mark, is continuous Mark is passed, mark is retransmitted, packet loss is supported to retransmit mark, current data packet sequence number, feedback sequence number and packet loss mark;
Wherein, the mark of blocking is described to resume mark for representing current number for representing whether a upper data packet is truncated Whether it is to resume message according to bag, it is described to retransmit mark for representing whether current data packet is to retransmit message, the feedback sequence number For the data packet sequence number from opposite equip. that feedback reception arrives, the packet loss mark is for expression from the opposite equip. Data packet whether have packet loss.
11. the device according to claim 9 or 10, which is characterized in that described device further includes:
Data reception module, for after data packet is sent, receiving the 3rd data packet that opposite equip. is sent;
Tag resolution module, for parsing the header tag of the 3rd data packet, the feedback sequence in the header tag Number and packet loss mark, determine to be sent to the reception state of the data packet of the opposite equip.;
Data retransmission module, in the case of data-bag lost, to the re-transmission mark in the header tag of the data packet of loss Knowledge is configured, and resends the data packet of the loss.
12. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors are real Now such as the data transmission method of point-to-point equipment described in any item of the claim 1 to 8.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The data transmission method such as point-to-point equipment described in any item of the claim 1 to 8 is realized during execution.
CN201711404903.6A 2017-12-22 2017-12-22 Data transmission method, device, equipment and the storage medium of point-to-point equipment Pending CN108092745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711404903.6A CN108092745A (en) 2017-12-22 2017-12-22 Data transmission method, device, equipment and the storage medium of point-to-point equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711404903.6A CN108092745A (en) 2017-12-22 2017-12-22 Data transmission method, device, equipment and the storage medium of point-to-point equipment

Publications (1)

Publication Number Publication Date
CN108092745A true CN108092745A (en) 2018-05-29

Family

ID=62178611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711404903.6A Pending CN108092745A (en) 2017-12-22 2017-12-22 Data transmission method, device, equipment and the storage medium of point-to-point equipment

Country Status (1)

Country Link
CN (1) CN108092745A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933532A (en) * 2019-10-24 2020-03-27 北京邮电大学 TDM-PON mobile forward optical network data transmission method and device based on frame preemption
CN111277319A (en) * 2020-01-20 2020-06-12 中国电子科技集团公司电子科学研究院 Inter-satellite-ground data transmission method and device
CN113301535A (en) * 2020-02-24 2021-08-24 荣耀终端有限公司 Data transmission method, device and system
CN114884937A (en) * 2022-05-27 2022-08-09 宁夏中宁县京能新能源有限公司 Data breakpoint continuous transmission method of new energy centralized control system
CN116155831A (en) * 2022-12-28 2023-05-23 河南辉煌科技股份有限公司 Data transmission method and system for railway production management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264234A (en) * 1999-01-27 2000-08-23 摩托罗拉公司 Priority enhanced information transfer device and its method
CN1351439A (en) * 2000-10-26 2002-05-29 摩托罗拉公司 Method and device for packet transmission in packet data system
CN1705295A (en) * 2004-05-29 2005-12-07 华为技术有限公司 Packet transmission system having priority and method therefor
WO2006111788A1 (en) * 2005-04-21 2006-10-26 Intel Corporation Interrupting transmission of low priority ethernet packets
CN103929371A (en) * 2013-01-15 2014-07-16 欧姆龙株式会社 Control Device And Control Method
CN107147481A (en) * 2017-07-19 2017-09-08 北京数码视讯科技股份有限公司 Packet loss repeating method, device and electronic equipment
CN107258076A (en) * 2015-02-26 2017-10-17 西门子公司 Data transfer in communication network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264234A (en) * 1999-01-27 2000-08-23 摩托罗拉公司 Priority enhanced information transfer device and its method
CN1351439A (en) * 2000-10-26 2002-05-29 摩托罗拉公司 Method and device for packet transmission in packet data system
CN1705295A (en) * 2004-05-29 2005-12-07 华为技术有限公司 Packet transmission system having priority and method therefor
WO2006111788A1 (en) * 2005-04-21 2006-10-26 Intel Corporation Interrupting transmission of low priority ethernet packets
CN103929371A (en) * 2013-01-15 2014-07-16 欧姆龙株式会社 Control Device And Control Method
CN107258076A (en) * 2015-02-26 2017-10-17 西门子公司 Data transfer in communication network
CN107147481A (en) * 2017-07-19 2017-09-08 北京数码视讯科技股份有限公司 Packet loss repeating method, device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933532A (en) * 2019-10-24 2020-03-27 北京邮电大学 TDM-PON mobile forward optical network data transmission method and device based on frame preemption
CN111277319A (en) * 2020-01-20 2020-06-12 中国电子科技集团公司电子科学研究院 Inter-satellite-ground data transmission method and device
CN113301535A (en) * 2020-02-24 2021-08-24 荣耀终端有限公司 Data transmission method, device and system
CN113301535B (en) * 2020-02-24 2022-08-02 荣耀终端有限公司 Data transmission method, device and system
CN114884937A (en) * 2022-05-27 2022-08-09 宁夏中宁县京能新能源有限公司 Data breakpoint continuous transmission method of new energy centralized control system
CN114884937B (en) * 2022-05-27 2024-01-09 宁夏中宁县京能新能源有限公司 New energy centralized control system data breakpoint continuous transmission method
CN116155831A (en) * 2022-12-28 2023-05-23 河南辉煌科技股份有限公司 Data transmission method and system for railway production management system
CN116155831B (en) * 2022-12-28 2024-05-03 河南辉煌科技股份有限公司 Data transmission method and system for railway production management system

Similar Documents

Publication Publication Date Title
CN108092745A (en) Data transmission method, device, equipment and the storage medium of point-to-point equipment
EP1155370B1 (en) Method and apparatus for extending the range of the universal serial bus protocol
US9985749B2 (en) Method and system for improving wireless link efficiency
EP1472145B1 (en) Method and apparatus for concatenating and piggybacking data packets
US20040213243A1 (en) Transmission components for processing VLAN tag and priority packets supported by using single chip's buffer structure
CN112015161A (en) Vehicle diagnostic communication device and method and system comprising same
CN111669835B (en) Communication method, device and system
KR20040045169A (en) Data transmission method on the mac layer of mobile telecommunication system
US7212546B2 (en) Access control method and system
US8144733B2 (en) Partitioned medium access control implementation
EP2660726A1 (en) Method and device for emulating a bus system
CN104426866B (en) A kind of data transmission method and device
JP2008028430A (en) Transmitter apparatus
CN110048865A (en) A kind of bus data transmission method, device, electronic equipment and storage medium
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
CN107708206A (en) A kind of data transmission method and terminal
US9661110B2 (en) System and method for enabling channel access enhancements in existing communication networks
JP3148733B2 (en) Signal processing device and signal processing system
CN112788771B (en) Data transmission method, device, related equipment and storage medium
US20240137805A1 (en) Method and apparatus for reporting buffered data
WO2021140960A1 (en) Communication device and communication method
US20220360651A1 (en) Method and system for sequencing user data packets
US20240236759A9 (en) Method and apparatus for reporting buffered data
CN108255770B (en) Processing method based on 1394 bus event message response mechanism
JP2006107095A (en) Data communication equipment using tcp/ip socket, and data communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529