Data transmission method and device, equipment and storage medium

A data transmission method and data technology, applied in the field of data transmission, can solve problems such as the inability to meet the fast transmission requirements of data to be transmitted, the inability to determine the time of data to be transmitted by a data switch, and the inability to transmit data to be transmitted, so as to meet real-time requirements, The effect of reducing dwell time

Pending Publication Date: 2022-03-25
BEIJING CO WHEELS TECH CO LTD
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] However, when the data sending device needs to transmit a large amount of data, based on the current data transmission method, the data transmission device cannot transmit the received data to be transmitted to the data receiving device in time, so that the data to be transmitted stays in the data transmission device. It takes a long time to meet the fast transmission requirements of the data to be transmitted with high real-time requirements, and it is also impossible to dete...
View more

Abstract

The invention relates to a data transmission method and device, equipment and a storage medium. The method comprises the following steps: receiving to-be-transmitted data through a target queue at an entrance opening time of the target queue; based on the entrance opening time of the target queue and the residence time of the to-be-transmitted data in the target queue, calculating the exit opening time of the target queue; and sending the to-be-transmitted data to the data receiving equipment through the target queue at the exit opening time of the target queue. According to the embodiment of the invention, the method achieves the timely transmission of the received to-be-transmitted data to the data receiving equipment, reduces the residence time of the to-be-transmitted data in the data transmission equipment, and further meets the rapid transmission demands of the to-be-transmitted data with high real-time requirements.

Application Domain

Transmission

Technology Topic

Data transmissionEngineering +2

Image

  • Data transmission method and device, equipment and storage medium
  • Data transmission method and device, equipment and storage medium
  • Data transmission method and device, equipment and storage medium

Examples

  • Experimental program(1)

Example Embodiment

[0074] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments may be combined with each other under the condition of no conflict.
[0075] Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, and Not all examples.
[0076] The data switch can be a data transmission device, which communicates with the data sending device and the data receiving device respectively through the Ethernet network, and can be applied to the vehicle to perform data transmission on the vehicle data.
[0077] The data transmission method of the current data transmission device is as follows: the entrance of the data transmission device is always open, and the data to be transmitted sent by the data transmission device is received through the entrance, and a fixed time window is set at the exit, so that the data to be transmitted sent by the data transmission device is The transmission data is shaped, that is, the current of the data to be transmitted is limited, and the data to be transmitted is sent to the data receiving device. However, when the data transmission device needs to transmit a large amount of data, the Ethernet network will generate flood peaks, and the data transmission device needs to receive a large amount of data. In each time window, because the data transmission device transmits a fixed amount of data, the data The switch cannot transmit the received data to the data receiving device in time. Therefore, the data to be transmitted has a long residence time in the data transmission device, which cannot meet the fast transmission requirements of the data to be transmitted with high real-time requirements; The device cannot accurately determine the transmission time of the data to be transmitted, so that the data to be transmitted corresponding to each priority has the risk of unstable transmission in the data transmission device; in addition, because the entrance of the data transmission device is always open, the data transmission The device needs to receive and store a large amount of data, therefore, the data transmission device needs more random access memory (Random Access Memory, RAM) resources.
[0078] In order to solve the above problems, the embodiments of the present disclosure provide a data transmission method, apparatus, device, and storage medium that can reduce the residence time of data to be transmitted in a data transmission device.
[0079] figure 1 An architecture diagram of a data transmission system provided by an embodiment of the present disclosure is shown.
[0080] like figure 1 As shown, the architecture diagram may include a data sending device 101 , a data transmitting device 102 and a data receiving device 103 . The data transmission device 102 can be respectively connected to the data transmission device 101 and the data reception device 103 in communication through the Ethernet network.
[0081] in, figure 1 The data transmission system corresponding to the shown architecture diagram can be applied to in-vehicle applications, industrial fields, cloud communication fields, etc., which is not limited here.
[0082] Specifically, the data transmission device 102 includes four ports, namely Port0, Port1, Port2, and Port3. When the data transmission device 101 needs to transmit data to the data reception device 103, if the port Port0 of the data transmission device 102 is in an open state, the data transmission device 102 receives the data to be transmitted sent by the data transmission device 101 through Port0, and the port Port0 will transmit the data to be transmitted. The data is transmitted to the port Port3. If the port Port3 of the data transmission device 102 is in an open state, the data transmission device 102 sends the data to be transmitted to the data receiving device 103 through the Port3. Through the above process, the data to be transmitted can be transmitted from the data transmission device 101 to the data reception device 103 through the data transmission device 102 to complete a data transmission process.
[0083] According to the above structure, the following combination Figure 2 to Figure 5 The data transmission method provided by the embodiments of the present disclosure will be described. In an embodiment of the present disclosure, the data transmission method may be performed by a data transmission device. The specific form of the data transmission device may be a data switch.
[0084] figure 2 A schematic flowchart of a data transmission method provided by an embodiment of the present disclosure is shown.
[0085] like figure 2 As shown, the data transmission method may include the following steps.
[0086] S210: Receive data to be transmitted through the target queue at the time when the entry of the target queue is opened.
[0087] In the embodiment of the present disclosure, when the data sending device needs to transmit data, the data sending device may send the data to be transmitted to the target ingress of the data receiving device based on the port mapping relationship. The data receiving device can detect the data to be transmitted in real time. When detecting the data to be transmitted sent by the data sending device, it can monitor the entry opening time of the target queue, and receive the data to be transmitted through the target queue at the entry opening time.
[0088] In this embodiment of the present disclosure, the data to be transmitted may be any type of data received by the data transmission device and used for transmission to the data reception device.
[0089] Optionally, the data to be transmitted may be packet data of any priority. The priority may include a total of 8 levels: level 0, level 1, level 2, level 3, level 4, level 5, level 6, and level 7.
[0090] In this embodiment of the present disclosure, the data sending device may be any data sending end capable of sending data.
[0091] In this embodiment of the present disclosure, the port mapping relationship may be a predetermined address mapping relationship between the data transmission device and the data transmission device, so that different ports of the data transmission device receive data sent by different data transmission devices.
[0092] In an embodiment of the present disclosure, the target ingress port may be a port for receiving data to be transmitted.
[0093] Specifically, the target ingress can correspond to multiple queues, and each queue can be used to receive data.
[0094] In this embodiment of the present disclosure, the target queue may be a queue corresponding to the target ingress port and used for transmitting data to be transmitted. Specifically, the ingress of the target queue may correspond to the target ingress port.
[0095] In this embodiment of the present disclosure, the entry open time may be the time when the entry state of the target queue is in the open state.
[0096] In some embodiments, the inlet opening time may be a predetermined fixed time as desired.
[0097] In other embodiments, the entry opening time may be determined according to the amount of data sent by the data sending device.
[0098] In yet other embodiments, the entry open time may be the full dequeue time of the transmitted data.
[0099] Specifically, a timing window can be set at the entry end of each queue, so that at the entry opening time, the entry state value of the target queue is determined to be 1, and the entry opening time of the target queue is monitored; otherwise, the entry state value of the target queue is If it is 0, the entry opening time of the target queue is not monitored.
[0100] Therefore, in the embodiment of the present disclosure, the data to be transmitted is received at the time when the entry of the target queue is open, and therefore, the receiving time of the data to be transmitted can be controlled to prevent the target queue from continuously receiving data.
[0101] S220, based on the entry opening time of the target queue and the retention time of the data to be transmitted in the target queue, calculate the exit opening time of the target queue.
[0102] In the embodiment of the present disclosure, after the data transmission device receives the data to be transmitted through the target queue, it can determine the retention time of the data to be transmitted in the target queue, and calculate the outlet opening time of the target queue according to the ingress opening time and the retention time.
[0103] In the embodiment of the present disclosure, the retention time may be a time period from the ingress end to the egress end of the target queue for the data to be transmitted.
[0104] In the embodiment of the present disclosure, the exit opening time may be the time when the exit state of the target queue is in the open state.
[0105] Specifically, the data transmission device can calculate the retention time of the data to be transmitted in the target queue according to the transmission rate of the target queue, the packet size of the data to be transmitted, and the transmission status of the target queue, and calculate the retention time of the data to be transmitted in the target queue according to the entry opening time, retention time and target queue. The transmission status of the queue, calculate the exit opening time of the target queue.
[0106]Therefore, in this embodiment of the present disclosure, the exit opening time for sending the data to be transmitted can be calculated based on the entry opening time and the dwell time of the target queue, and therefore, the exit opening time of the target queue can be controlled according to the entry opening time and the dwell time The opening time of the exit end can be dynamically changed according to the opening time of the entrance and the residence time. Compared with setting a fixed timing window at the exit end, the opening time of the exit end can be dynamically adjusted. In addition, since the ingress opening time and the egress opening time are determined, the forwarding time of the data to be transmitted in the data transmission device of any priority tends to be constant. There is a risk of unstable transmission of data in the data exchange.
[0107] S230. At the time when the exit of the target queue is opened, send the data to be transmitted to the data receiving device through the target queue.
[0108] In the embodiment of the present disclosure, after the data transmission device calculates and obtains the exit opening time of the target queue, it can monitor the exit opening time of the target queue. If the exit opening time of the target queue is monitored, the exit opening time of the target queue is determined at the exit opening time. The terminal state is the open state. Further, the data transmission device can send the data to be transmitted to the data receiving device through the target queue according to the target address corresponding to the data to be transmitted, thereby completing the transmission process of the data to be transmitted.
[0109] Specifically, a timing window can be set at the egress end of each queue, so that at the egress opening time, the egress state value of the target queue is determined to be 1, and the egress opening time of the target queue is monitored; otherwise, the egress state value of the target queue is determined. If it is 0, the exit opening time of the target queue is not monitored.
[0110] In some embodiments of the present disclosure, S230 may specifically include the following steps:
[0111] Based on the target address carried by the data to be transmitted, the data to be transmitted is sent to the data receiving device corresponding to the target address.
[0112] The target address may be an address corresponding to the data receiving device.
[0113] Optionally, the target address may be a medium access control (Medium Access Control, MAC) address, or may be an address in other forms, which is not limited herein.
[0114] Specifically, the data transmission device can extract the target address carried by the data to be transmitted from the data packet corresponding to the data to be transmitted, determine the data receiving device corresponding to the target address, and send the data to be transmitted to the data receiving device to complete the to-be-transmitted data. data transfer process.
[0115] In other embodiments of the present disclosure, S230 may specifically include the following steps:
[0116] Determine the destination address based on the source address of the data to be transmitted and the pre-stored address mapping relationship;
[0117] Send the data to be transmitted to the data receiving device corresponding to the target address.
[0118] The source address of the data to be transmitted may be the address of the data sending device. Optionally, the source address of the data to be transmitted may be a MAC address or an address in other forms, which is not limited herein.
[0119] The pre-stored address mapping relationship may be an address mapping relationship between the data sending device and the data receiving device.
[0120] Specifically, the data transmission device can determine the destination address corresponding to the source address from the source address of the data to be transmitted and according to the pre-stored address mapping relationship, and then send the data to be transmitted to the data receiving device corresponding to the destination address.
[0121] In the embodiment of the present disclosure, the data to be transmitted can be received through the target queue at the entry opening time of the target queue, so that the receiving time of the data to be transmitted can be controlled through the entry opening time of the target queue, and then based on the entry opening time of the target queue and The retention time of the data to be transmitted in the target queue, calculate the exit opening time of the target queue, and further at the exit opening time of the target queue, send the data to be transmitted to the data receiving device through the target queue, so that the exit opening time through the target queue, Control the sending time of the data to be transmitted, so that the data transmission device can synchronously control the entry opening time and the exit opening time of the target queue. Therefore, the received data to be transmitted can be transmitted to the data receiving device in time to reduce the amount of data to be transmitted. The residence time in the data transmission device further satisfies the fast transmission requirements of the data to be transmitted with high real-time requirements.
[0122] In another embodiment of the present disclosure, the data to be transmitted may be received through a target queue corresponding to a queue priority equal to the data priority of the data to be transmitted. Moreover, before calculating the exit opening time of the target queue, the entry opening time of the target queue can be monitored in different ways.
[0123] In the embodiment of the present disclosure, the data to be transmitted may be received through a target queue corresponding to a queue priority equal to the data priority of the data to be transmitted.
[0124] In the embodiment of the present disclosure, optionally, receiving the data to be transmitted through the target queue in S210 may specifically include the following steps:
[0125] S2101. Parse the data priority corresponding to the data to be transmitted;
[0126] S2102. Determine a queue priority equal to the data priority;
[0127] S2103. Receive the data to be transmitted through the target queue corresponding to the queue priority.
[0128] Specifically, when the data receiving device detects the data to be transmitted sent by the data transmitting device, it can parse the data header of the data packet corresponding to the data to be transmitted, determine the data priority corresponding to the data to be transmitted, and then search for the data priority corresponding to the data to be transmitted. The queue priority is equal to the queue priority, and the data to be transmitted is received through the target queue corresponding to the queue priority.
[0129] The data priority may be a transmission level corresponding to the data to be transmitted.
[0130] Specifically, the data priority may be predetermined by the data sending device.
[0131] Optionally, the data priority may include: 0, 1, 2, 3, 4, 5, 6, and 7, a total of 8 transmission priority levels.
[0132] Wherein, the queue priority may be a transmission level of each queue that is predetermined according to needs.
[0133] Specifically, the queue priority may be predetermined by the data transmission device.
[0134] Optionally, the queue priority may include: 0, 1, 2, 3, 4, 5, 6, and 7, a total of 8 transmission priority levels.
[0135] image 3 A schematic diagram of a port of a data transmission device provided by an embodiment of the present disclosure is shown.
[0136] like image 3 As shown, the data transmission device 300 includes four ports, namely Port0, Port1, Port02, and Port3, and each port includes an ingress port and an egress port respectively.
[0137] Figure 4 A transmission principle diagram of a data transmission device provided by an embodiment of the present disclosure is shown.
[0138] like Figure 4 As shown, the data transmission device 400 includes 4 ports, each of which includes an ingress port and an egress port respectively, and the ingress port and the egress port respectively correspond to seven queues, which are queue 0, queue 1, queue 2, queue 3, and queue 4 respectively. , Queue 5, Queue 6, Queue 7, each of which corresponds to a different queue priority.
[0139] combine Figure 4 Specifically explain the process of receiving the data to be transmitted.
[0140] When the data transmission device sends data to the data transmission device 400, the data transmission device 400 can detect the data to be transmitted in real time. If the data to be transmitted is detected, the ingress port corresponding to the data to be transmitted is the Port0 port, the egress port is the Port3 port, and the to-be-transmitted data is detected. The data priority corresponding to the transmitted data is 7, then it is determined that the target queue corresponding to the data to be transmitted is queue 7, and then, according to the entry opening time and the retention time of the data to be transmitted in the target queue, calculate the exit opening time of the target queue, and at the same time , at the entry opening time, the data to be transmitted is received through the queue 7 corresponding to the entry end of the Port0 port, and further, at the exit opening time, the data to be transmitted is sent to the data receiving device through the queue 7 corresponding to the exit end of the Port3 port, by This completes the data transfer process.
[0141] Therefore, in the embodiment of the present disclosure, at the time of opening the portal, the data to be transmitted can be received through the target queue corresponding to the queue priority equal to the data priority of the data to be transmitted, so as to further send the received data to the data receiving The device, for high-priority data, can transmit data through the queue matching the high-priority data, so that the high-priority data can be transmitted to the data receiving device in time, and the high-priority data can be reduced in the data transmission device. dwell time in .
[0142] In the embodiment of the present disclosure, before calculating the exit opening time of the target queue, the entry opening time of the target queue may be monitored in different ways.
[0143] In this embodiment of the present disclosure, optionally, before S220, the data transmission method may further include the following steps:
[0144] Monitor the entry opening time of the target queue corresponding to the data to be transmitted.
[0145] Specifically, when the data transmission device detects the data to be transmitted, it can monitor the entry opening time of the target queue corresponding to the to-be-transmitted data in real time, so that the to-be-transmitted data is received through the target queue at the entry opening time.
[0146] In the embodiment of the present disclosure, optionally, monitoring the entry opening time of the target queue corresponding to the data to be transmitted may specifically include the following steps:
[0147] S201, when detecting the data to be transmitted, if the entry state of the target queue is the closed state, monitor the entry state switching time of the target queue, and use the entry state switching time as the entry opening time of the target queue;
[0148] S202. If the entry state of the target queue is an open state, the time when the data to be transmitted is detected is taken as the entry opening time of the target queue.
[0149] The ingress state switching time may be the time for the ingress to switch from the closed state to the open state.
[0150] Specifically, the data receiving device can detect the data to be transmitted in real time. When detecting the data to be transmitted sent by the data sending device, it can determine the timing status of the entry port of the target queue. If the timing status of the entry port is 0, then determine the entry point of the target queue. If the state is closed, continue to monitor the entry state switching time of the target queue. If the entry state switching time is detected, the entry state switching time will be used as the entry opening time of the target queue, so that the target queue receives the data to be transmitted at the entry opening time. , if the timing state of the entry port is 1, it is determined that the entry state of the target queue is the open state, and the time when the data to be transmitted is detected is taken as the entry opening time of the target queue.
[0151] Table 1 shows an ingress gating sequence diagram of eight queues corresponding to Port0 of a data transmission device provided by an embodiment of the present disclosure.
[0152] t0 t1 t2 t3 t4 t5 t6 q0 1 0 1 1 1 1 1 q1 0 0 0 0 0 0 0 q2 1 1 0 0 0 0 0 q3 1 1 0 0 0 0 0 q4 0 0 1 1 1 1 1 q5 0 1 1 1 1 1 1 q6 0 1 0 0 0 0 0 q7 1 0 0 0 0 0 0
[0153] Table 1: Ingress gating sequence diagram of 8 queues corresponding to Port0
[0154] As shown in Table 1, for the Port0 port, the entry opening time of the queue q0 to the queue q7 can be controlled through the sequence in Table 1. Specifically, the timing control period of the entry end of each queue may be t0-t7.
[0155] Therefore, in the embodiment of the present disclosure, the entrance opening time of the target queue can be monitored in different ways, which improves the flexibility of the entrance opening time monitoring method to adapt to monitoring scenarios with different entrance opening times.
[0156] In yet another embodiment of the present disclosure, the outlet opening time of the target queue may be calculated according to the size of the data packet corresponding to the data to be transmitted, the transmission rate of the target queue, and the transmission status of the target queue.
[0157] Figure 5 A schematic flowchart of another data transmission method provided by an embodiment of the present disclosure is shown.
[0158] like Figure 5 As shown, the data transmission method may include the following steps.
[0159] S510: Receive data to be transmitted through the target queue at the time when the entry of the target queue is opened.
[0160] Among them, S510 is similar to S210, and details are not described here.
[0161] S520. Calculate the retention time of the data to be transmitted in the target queue based on the packet size corresponding to the data to be transmitted and the transmission rate of the target queue.
[0162] In the embodiment of the present disclosure, after detecting the data to be transmitted, the data transmission device may divide the length of the data frame corresponding to the size of the data packet corresponding to the data to be transmitted by the transmission rate of the target queue to obtain the data to be transmitted in the target queue. residence time.
[0163] The data packet size may be the length of the data frame corresponding to the data to be transmitted.
[0164] S530 , at the entry opening time of the target queue, determine whether there is already queued data in the target queue.
[0165] In the embodiment of the present disclosure, the data transmission device may detect other data in the target queue at the time when the entry of the target queue is opened, so as to determine whether there is enqueued data in the target queue.
[0166] In this embodiment of the present disclosure, the queued data may be data that is being transmitted by the target queue when the data to be transmitted is received.
[0167] S540. If there is enqueued data in the target queue, determine the complete dequeue time of the enqueued data.
[0168] In the embodiment of the present disclosure, if the data transmission device detects that the queued data exists in the target queue, it determines the complete dequeue time of the queued data according to the packet size of the queued data and the transmission rate of the target queue.
[0169] The complete dequeue time may be the time when the data packet corresponding to the enqueued data completely leaves the exit of the target queue, so that at the complete dequeue time, no enqueued data exists in the target queue.
[0170] S550. Calculate the exit opening time of the target queue based on the entry opening time, the residence time, and the complete dequeuing time.
[0171] In the embodiment of the present disclosure, after determining the complete dequeue time of the enqueued data, the data transmission device may calculate the exit open time of the target queue in combination with the entry open time, the retention time and the complete dequeue time.
[0172] In this embodiment of the present disclosure, optionally, S550 may specifically include the following steps:
[0173] S1. Add the entry opening time and the residence time to obtain the waiting time of the data to be transmitted in the target queue;
[0174] S2. If the waiting time for leaving the team is greater than the complete leaving time, the waiting time for leaving the team will be used as the exit opening time;
[0175] S3. If the time to leave the team is less than or equal to the time to leave the team, the time to leave the team will be taken as the opening time of the exit.
[0176] The queue-to-be-queue time may be an estimated queue-out time of the data to be transmitted in the target queue.
[0177] Specifically, after the data transmission device calculates the entry opening time and the dwell time, it can add the entry opening time and the dwell time to obtain the pending dequeue time of the data to be transmitted in the target queue, and treat the dequeue time and the queued time. Compare the complete dequeuing time of the data. If the waiting time is greater than the complete dequeuing time, it can be determined that the entered data has been completely dequeued before the waiting time is reached, and the waiting time is used as the exit opening time. In order to further send the data to be transmitted to the data receiving device at the time of opening the exit, if the time to be dequeued is less than or equal to the time of complete dequeue, it can be determined that when the time to be dequeued is reached, the data that has entered the queue has not been completely dequeued. Then, the complete dequeue time of the enqueued data is taken as the exit opening time, so that after the enqueued data is completely dequeued, the data to be transmitted is controlled to be dequeued, and the data to be transmitted is sent to the data receiving device.
[0178] Therefore, in this embodiment of the present disclosure, if it is detected that there is already enqueued data in the target queue, the exit opening time can be determined according to the entry opening time, the retention time, and the complete dequeuing time of the enqueued data, so that the entry opening time can be determined according to the entry time. The open time, retention time and actual transmission situation of the target queue can accurately calculate the complete dequeue time.
[0179] S560. If there is no queued data in the target queue, add the entry opening time and the residence time to obtain the exit opening time.
[0180] In the embodiment of the present disclosure, when the data transmission device detects the data to be transmitted, it calculates the entry opening time and the residence time, and at the same time, detects whether there is already enqueued data in the target queue. data, add the inlet opening time and the residence time to obtain the outlet opening time.
[0181] Therefore, in the embodiment of the present disclosure, if it is not detected that there is already enqueued data in the target queue, the entry opening time and the dwell time are directly added to obtain the complete dequeue time, so that the opening time of the entry target queue can be calculated according to the , the retention time and the actual transmission situation, and accurately calculate the complete dequeuing time.
[0182] S570 , at the time when the exit of the target queue is opened, send the data to be transmitted to the data receiving device through the target queue.
[0183] Among them, the S570 is similar to the S130, and will not be repeated here.
[0184] The embodiments of the present disclosure also provide a data transmission device for implementing the above-mentioned data transmission processing method, which is combined with the following Image 6 Be explained. In this embodiment of the present disclosure, the data transmission apparatus may be a data transmission device. Wherein, the data transmission device may be a switch.
[0185] Image 6 A schematic structural diagram of a data transmission apparatus provided by an embodiment of the present disclosure is shown.
[0186] like Image 6 As shown, the data transmission apparatus 600 may include: a data to be transmitted receiving module 610 , an exit opening time calculation module 620 and a to-be-transmitted data sending module 630 .
[0187] The data-to-be-transmitted receiving module 610 is used to receive the data to be transmitted through the target queue at the entry opening time of the target queue;
[0188] The exit open time calculation module 620 is used to calculate the exit open time of the target queue based on the entrance open time of the target queue and the retention time of the data to be transmitted in the target queue;
[0189] The to-be-transmitted data sending module 630 is configured to send the to-be-transmitted data to the data receiving device through the target queue at the time when the exit of the target queue is open.
[0190] In the embodiment of the present disclosure, the data to be transmitted can be received through the target queue at the entry opening time of the target queue, so that the receiving time of the data to be transmitted can be controlled through the entry opening time of the target queue, and then based on the entry opening time of the target queue and The retention time of the data to be transmitted in the target queue, calculate the exit opening time of the target queue, and further at the exit opening time of the target queue, send the data to be transmitted to the data receiving device through the target queue, so that the exit opening time through the target queue, Control the sending time of the data to be transmitted, so that the data transmission device can synchronously control the entry opening time and the exit opening time of the target queue. Therefore, the received data to be transmitted can be transmitted to the data receiving device in time to reduce the amount of data to be transmitted. The residence time in the data transmission device further satisfies the fast transmission requirements of the data to be transmitted with high real-time requirements.
[0191] In some embodiments of the present disclosure, the data transmission device further includes: an entrance opening time monitoring module;
[0192] The entry opening time monitoring module is used to monitor the entry opening time of the target queue corresponding to the data to be transmitted.
[0193] In some embodiments of the present disclosure, the inlet opening time monitoring module includes:
[0194] The first entrance opening time monitoring unit is used to monitor the entry state switching time of the target queue when detecting the data to be transmitted, if the entry state of the target queue is a closed state, and use the entry state switching time as the entry opening time of the target queue;
[0195] The second entry opening time monitoring unit is configured to use the time when the data to be transmitted is detected as the entry opening time of the target queue if the entry state of the target queue is an open state.
[0196] In some embodiments of the present disclosure, the to-be-transmitted data receiving module 610 includes:
[0197] A data priority parsing unit, used to parse the data priority corresponding to the data to be transmitted;
[0198] The queue priority determination unit is used to determine the queue priority equal to the data priority;
[0199] The to-be-transmitted data receiving unit is configured to receive the to-be-transmitted data through the target queue corresponding to the queue priority.
[0200] In some embodiments of the present disclosure, the apparatus may further include: a residence time calculation module;
[0201] The retention time calculation module is configured to calculate the retention time of the data to be transmitted in the target queue based on the size of the data packet corresponding to the data to be transmitted and the transmission rate of the target queue.
[0202] In some embodiments of the present disclosure, the outlet opening time calculation module 620 includes:
[0203] The queued data judgment unit is used to determine whether there is queued data in the target queue at the entry opening time of the target queue;
[0204] The complete dequeue time determination unit is used to determine the complete dequeue time of the enqueued data if there is already enqueued data in the target queue;
[0205] The exit opening time calculation unit is configured to calculate the exit opening time of the target queue based on the entry opening time, the residence time and the complete dequeue time.
[0206] In some embodiments of the present disclosure, the outlet opening time calculation unit includes:
[0207]Dequeue time determination subunit, which is used to add the entrance opening time and the residence time to obtain the waiting time of the data to be transmitted in the target queue;
[0208] The first exit opening time determination subunit is used for taking the waiting time out as the exit opening time if the waiting time is greater than the complete leaving time;
[0209] The second exit opening time determining subunit is configured to use the complete exiting time as the exit opening time if the waiting time for exiting the queue is less than or equal to the complete exiting time.
[0210] In some embodiments of the present disclosure, the outlet opening time calculation module further includes:
[0211] The second complete dequeue time determining unit is configured to determine the complete dequeue time of the queued data if there is already queued data in the target queue.
[0212] In some embodiments of the present disclosure, the to-be-transmitted data sending module 630 is specifically configured to, based on the target address carried by the to-be-transmitted data, send the to-be-transmitted data to a data receiving device corresponding to the target address.
[0213] It should be noted, Image 6 The data transfer apparatus 600 shown may perform Figure 2 to Figure 5 The various steps in the method embodiment shown, and realize Figure 2 to Figure 5 The various processes and effects in the shown method embodiments will not be repeated here.
[0214] Embodiments of the present disclosure also provide a data transmission device, where the data transmission device may include a processor and a memory, and the memory may be used to store executable instructions. The processor may be configured to read executable instructions from the memory and execute the executable instructions to implement the data transmission method in the above-mentioned embodiment.
[0215] Figure 7 A schematic structural diagram of a data transmission device provided by an embodiment of the present disclosure is shown.
[0216] like Figure 7 As shown, the data transmission device may include a processor 701 and a memory 702 storing computer program instructions.
[0217] Specifically, the above-mentioned processor 701 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0218] Memory 702 may include mass storage for information or instructions. By way of example and not limitation, memory 702 may include a Hard Disk Drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape or Universal Serial Bus (USB) drive or both and a combination of the above. Memory 702 may include removable or non-removable (or fixed) media, where appropriate. Where appropriate, memory 702 may be internal or external to the integrated gateway device. In certain embodiments, memory 702 is non-volatile solid state memory. In certain embodiments, the memory 702 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask programmed ROM, a programmable ROM (Programmable ROM, PROM), an erasable PROM (Electrical Programmable ROM, EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM) , Electrically rewritable ROM (Electrically Alterable ROM, EAROM) or flash memory, or a combination of two or more of these.
[0219] The processor 701 reads and executes the computer program instructions stored in the memory 702 to execute the steps of the data transmission method provided by the embodiments of the present disclosure.
[0220] Optionally, the data transmission device may also include a field programmable gate array (Field Programmable Gate Array, FPGA), and the data transmission method is controlled and executed by the FPGA.
[0221] In one example, the data transmission device may also include a transceiver 703 and a bus 704 . Among them, such as Figure 7 As shown, the processor 701 , the memory 702 and the transceiver 703 are connected through the bus 704 and communicate with each other.
[0222] Bus 704 includes hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), HyperTransport (Hyper Transport, HT) interconnect, Industrial Standard Architecture (Industrial Standard Architecture, ISA) bus, Infiniband interconnect, Low Pin Count (Low Pin Count, LPC) bus, Memory bus, MicroChannel Architecture (MicroChannel Architecture, MCA) ) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local Bus, VLB) bus or other suitable bus or a combination of two or more of the above. Bus 704 may include one or more buses, where appropriate. Although embodiments of this application describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.
[0223] The following are embodiments of the computer-readable storage medium provided by the embodiments of the present disclosure. The computer-readable storage medium and the data transmission methods of the above-mentioned embodiments belong to the same inventive concept, and the embodiments of the computer-readable storage medium are not exhaustive. For the details of the description, reference may be made to the above-mentioned embodiments of the data transmission method.
[0224] This embodiment provides a storage medium containing computer-executable instructions. The computer-executable instructions are used to execute a data transmission method when executed by a computer processor, and the method includes:
[0225] At the entry opening time of the target queue, the data to be transmitted is received through the target queue;
[0226] Calculate the exit opening time of the target queue based on the entry opening time of the target queue and the retention time of the data to be transmitted in the target queue;
[0227] At the exit opening time of the target queue, the data to be transmitted is sent to the data receiving device through the target queue.
[0228] Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present disclosure, the computer-executable instructions of which are not limited to the above method operations, and can also perform related operations in the data transmission method provided by any embodiment of the present disclosure. .
[0229] From the above description of the embodiments, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software and necessary general-purpose hardware, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner . Based on this understanding, the technical solutions of the present disclosure essentially or the parts that make contributions to the prior art can be embodied in the form of software products, and the computer software products can be stored in a computer-readable storage medium, such as a computer floppy disk , read-only memory (Read-Only Memory, ROM), RAM, flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer cloud platform (can be a personal computer, server, or network cloud platform, etc.) The data transmission methods provided by the various embodiments of the present disclosure are executed.
[0230] Note that the above are only preferred embodiments of the present disclosure and applied technical principles. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present disclosure. Therefore, although the present disclosure has been described in detail through the above embodiments, the present disclosure is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present disclosure. The scope is determined by the scope of the appended claims.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Routing intrusion detection system for mobile Ad-Hoc network

InactiveCN104702610AReduce resource overheadReduce dwell time
Owner:GUANGXI UNIV +1

Blown film device with melt pump

InactiveCN105216256AReduce dwell timeStabilize the plasticizing process
Owner:YIXING GUANGHUI PACKAGE +1

Plate-strip type single quick freezing machine

InactiveCN109737673Areduce dwell timeIncrease productivity
Owner:ANHUI XINONG AGRI DEV

Batch attachment method for electronic paper

ActiveCN109795200AReduce dwell timeReduce the defective rate of finished products
Owner:江西兴泰科技有限公司

Security identity verification equipment capable of avoiding personnel retention

ActiveCN111047760Aincrease parallelismreduce dwell time
Owner:重庆特斯联智慧科技股份有限公司

Classification and recommendation of technical efficacy words

  • Reduce dwell time
  • Meet real-time requirements

A dos/ddos attack detection method

InactiveCN102271068AMeet real-time requirementsavoid harm
Owner:UNIV OF ELECTRONIC SCI & TECH OF CHINA

Satellite telemetry data intelligent interpretation method based on BP neural network

ActiveCN105320987AImprove model accuracyMeet real-time requirements
Owner:AEROSPACE DONGFANGHONG SATELLITE

Anti-deviation alarm device for automobile

InactiveCN102133876AMeet real-time requirementsEasy for web applications
Owner:郭长有
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products