Data transmission method, data transmission device and storage medium
By classifying IP packets in wireless communication and prioritizing the transmission discontinuity and resource waste caused by IP packet loss or failure, the efficiency and continuity of data transmission are achieved.
Patent Information
- Application Number
- CN202180002143.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-16
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-07-16
AI Technical Summary
In wireless communication, IP packets may be lost or failed during transmission, resulting in discontinuity of data transmission and waste of resources. Especially when multiple IP packets are required to arrive at the receiving end within a specified time, other packets are also discarded when the critical packet is lost.
By determining the number of IP packets and dividing the data into different types and data of different importance is placed in different number of IP packets, and sent according to the transmission cycle, ensuring that the critical data packet is sent first, and sending non-critical data packets after the critical data packet is successfully sent, or postponing the sending of non-critical data packets if they are not successful.
It improves the efficiency of IP packet transmission, reduces data packet waste, ensures the continuity of data transmission and the timely arrival of key data.
Smart Images

Figure CN115836508B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technology, and in particular to a data transmission method, a data transmission device, and a storage medium. Background Art
[0002] In wireless environments, Internet Protocol (IP) packets may be discarded during transmission. For example, some IP packets may be lost due to transmission failure, or IP packets may become invalid due to excessive transmission delay.
[0003] When a service requires large amounts of data to be transmitted, multiple IP packets are required to arrive at the receiving end within a specified timeframe. If even one IP packet fails to arrive within that timeframe, all of the IP packets are invalidated. Alternatively, if a packet carrying critical data is lost, the remaining IP packets that reach the receiving end must be discarded, resulting in a waste of transmission resources. Summary of the Invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a data transmission method, a data transmission device and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided, characterized in that it is applied to a data generation end, and the method includes:
[0006] Determine the number of Internet Protocol (IP) data packets, where the number of IP data packets includes a first number and a second number; transmit first type data based on the first number and transmit second type data based on the second number within a first data transmission cycle.
[0007] In one embodiment, the importance of the first type of data is greater than the importance of the second type of data.
[0008] In one embodiment, the sending order of the IP data packets corresponding to the first quantity is before the sending order of the IP data packets corresponding to the second quantity.
[0009] In one embodiment, transmitting the second type of data based on the second quantity includes:
[0010] In response to the first number of IP data packets being all successfully sent within a first time, the second type of data is sent; wherein the first time is the time for sending the first type of data.
[0011] In one embodiment, the method further comprises:
[0012] In response to the first number of IP data packets not all being successfully sent within the first time, the first number of IP data packets are sent based on a next transmission data cycle of the first transmission data cycle.
[0013] In one embodiment, the IP data packet includes an identifier, and the identifier is used to indicate the type of data being transmitted.
[0014] In one embodiment, the number of IP data packets, the first number, and the second number are determined based on a protocol or a predefined rule.
[0015] According to a second aspect of an embodiment of the present disclosure, there is provided a data transmission device, applied to a data generation end, the device comprising:
[0016] A determination module is used to determine the number of Internet Protocol IP data packets, where the number of IP data packets includes a first number and a second number; a transmission module is used to transmit a first type of data based on the first number and a second type of data based on the second number during a first transmission data cycle.
[0017] In one embodiment, the importance of the first type of data is greater than the importance of the second type of data.
[0018] In one embodiment, the sending order of the IP data packets corresponding to the first quantity is before the sending order of the IP data packets corresponding to the second quantity.
[0019] In one embodiment, the transmission module is configured to:
[0020] In response to the first number of IP data packets being all successfully sent within a first time, the second type of data is sent; wherein the first time is the time for sending the first type of data.
[0021] In one embodiment, the transmission module is further configured to:
[0022] In response to the first number of IP data packets not all being successfully sent within the first time, the first number of IP data packets are sent based on a next transmission data cycle of the first transmission data cycle.
[0023] In one embodiment, the IP data packet includes an identifier, and the identifier is used to indicate the type of data being transmitted.
[0024] In one embodiment, the number of IP data packets, the first number, and the second number are determined based on a protocol or a predefined rule.
[0025] According to a third aspect of an embodiment of the present disclosure, there is provided a data transmission device, including:
[0026] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the data transmission method described in the first aspect or any one of the embodiments of the first aspect.
[0027] According to the fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the data transmission method described in the first aspect or any one of the embodiments of the first aspect.
[0028] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects: Through the present disclosure, a fixed period can be determined based on data transmission, data to be transmitted can be periodically transmitted, the data to be transmitted can be classified and placed in corresponding IP data packets, and the IP data packets can be sent based on the transmission data period. The periodic transmission of IP data packets can regularly transmit the transmission data stream, while ensuring data continuity, and can also improve the transmission efficiency of IP data packets.
[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0031] Figure 1 The figure is a schematic diagram showing an IP datagram format according to an exemplary embodiment.
[0032] Figure 2 The present invention is a diagram showing an architecture of a communication system between a network device and a terminal according to an exemplary embodiment.
[0033] Figure 3 The figure is a flowchart of a data transmission method according to an exemplary embodiment.
[0034] Figure 4 The figure is a flow chart showing another data transmission method according to an exemplary embodiment.
[0035] Figure 5 The figure is a flow chart showing another data transmission method according to an exemplary embodiment.
[0036] Figure 6 The figure is a block diagram showing a data transmission device according to an exemplary embodiment.
[0037] Figure 7The figure is a block diagram showing a data transmission device according to an exemplary embodiment.
[0038] Figure 8 is a block diagram showing another device for data transmission according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0040] The IP protocol is generally used for various data transmissions in the Internet, and can also be applied in mobile communications. The protocol unit that the IP protocol controls transmission is called an IP datagram (IP datagram, IP packet, or IP group). Because the IP protocol masks the differences between the various physical subnets in the lower layer, it can provide IP datagrams of a unified format to the upper layer. IP datagrams use datagram packet transmission and provide connectionless services. The format of the IP datagram can determine the functions of the IP packet protocol. For example, an IPv4 datagram consists of two parts: a header and data. The data is the data that the higher layer needs to transmit, and the header is control information added to ensure the correct transmission of the higher layer data. The first part of the header is fixed in length, totaling 20 bytes, and is required for all IP datagrams. Following the fixed part of the header is the optional field, which has a variable length. Figure 1 FIG. 1 is a schematic diagram of an IP datagram format according to an exemplary embodiment. Figure 1 As shown, the fixed part includes: version, header length, differentiated services, total length, identification, flag, fragment offset, lifetime, protocol, header checksum, source address and destination address.
[0041] Among them, (1) Version, which occupies 4 bits, refers to the version of the IP protocol. The IP protocol version used by both communicating parties must be the same. The widely used IP protocol version number is 4 (i.e. IPv4).
[0042] (2) The header length occupies 4 bits, and the maximum decimal value that can be represented is 15. It should be noted that the unit of the number represented by this field is 32-bit word length (1 32-bit word length is 4 bytes). Therefore, when the IP header length is 1111 (i.e., 15 in decimal), the header length reaches 60 bytes. When the header length of the IP packet is not an integer multiple of 4 bytes, it must be padded with the final padding field. Therefore, the data part always starts at an integer multiple of 4 bytes, which is more convenient when implementing the IP protocol. The disadvantage of limiting the header length to 60 bytes is that it may sometimes be insufficient. However, this is done in the hope that users will minimize overhead. The most commonly used header length is 20 bytes (i.e., the header length is 0101), and no options are used at this time.
[0043] (3) Differentiated Services (DTS) takes up 8 bits and is used to obtain better service. It can also be called the type of service. This field is used when using differentiated services.
[0044] (4) Total length: The total length is the sum of the header and data, expressed in bytes. The total length field is 16 bits, so the maximum length of a datagram is 2^16-1 = 65535 bytes.
[0045] Each data link layer below the IP layer has its own frame format, including a maximum length for the data field within the frame, called the Maximum Transfer Unit (MTU). When a datagram is encapsulated into a link layer frame, the total length of the datagram (i.e., the header plus the data portion) must not exceed the MTU value of the underlying data link layer.
[0046] (5) Identification occupies 16 bits. The IP software maintains a counter in memory. Every time a datagram is generated, the counter is incremented by 1 and this value is assigned to the identification field. However, this "identification" is not a sequence number, because IP is a connectionless service and there is no problem of receiving datagrams in order. When a datagram must be fragmented because its length exceeds the network's MTU, the value of this identification field is copied to the identification field of all datagrams. The same value of the identification field allows the fragmented datagram fragments to be correctly reassembled into the original datagram.
[0047] (6) Flag, occupies 3 bits, 2 of which are meaningful.
[0048] The lowest bit in the flags field is denoted as MF (More Fragments). MF = 1 indicates that there are more fragments of the datagram to come. MF = 0 indicates that this is the last fragment of a datagram. The middle bit in the flags field is denoted as DF (Don't Fragment), meaning "Don't fragment." Fragmentation is only allowed when DF = 0.
[0049] (7) Fragment offset, 13 bits. The fragment offset indicates the relative position of a fragment in the original packet after the fragmentation of a longer packet. It indicates where the fragment begins relative to the start of the user data field. The fragment offset is in units of 8 bytes. That is, except for the last fragment, the length of each fragment must be an integer multiple of 8 bytes (64 bits).
[0050] (8) Time to Live, occupies 8 bits. The commonly used abbreviation for the time to live field is TTL (Time To Live), which indicates the lifespan of the datagram in the network. This field is set by the source point that sends the datagram. Its purpose is to prevent undeliverable datagrams from circling around the Internet indefinitely, thereby wasting network resources. The original design used seconds as the unit of TTL. Every time a datagram passes through a router, the TTL is subtracted from the time the datagram spends in the router. If the time the datagram spends in the router is less than 1 second, the TTL value is reduced by 1. When the TTL value is 0, the datagram is discarded. Later, the function of the TTL field was changed to "hop limit" (but the name remains unchanged). The router reduces the TTL value by 1 before forwarding the datagram. If the TTL value is reduced to zero, the datagram is discarded and no longer forwarded. Therefore, the unit of TTL is no longer seconds, but hops. The meaning of TTL is to indicate how many routers a datagram can pass through at most in the network. Obviously, the maximum value of routers that a datagram passes through on the network is 255. If the initial value of TTL is set to 1, it means that this datagram can only be transmitted within this local area network.
[0051] (9) Protocol, occupies 8 bits. The protocol field indicates which protocol is used for the data carried by this datagram, so that the IP layer of the destination host knows which processing process the data part should be handed over to.
[0052] (10) Header checksum, occupies 16 bits. This field only checks the header of the datagram, but does not include the data portion. Since the router must recalculate the header checksum every time the datagram passes through it (including some fields such as the time to live, flags, and fragment offset, which may change), omitting the data portion can reduce the computational workload.
[0053] (11) Source address, 32 bits.
[0054] (12) Destination address, 32 bits.
[0055] Variable part
[0056] The variable portion of the IP header is an option field. This field supports troubleshooting, measurement, and security measures. The length of this field varies, ranging from 1 to 40 bytes, depending on the selected options. Some options require only a single byte, consisting of a single-byte option code. Other options, however, require multiple bytes. These options are concatenated without separators, and then padded with all-zeros to create an integer multiple of 4 bytes.
[0057] The addition of a variable header section increases the functionality of IP datagrams, but this also makes the length of the IP datagram header variable. This increases the overhead of each router processing the datagram. The new IP version, IPv6, makes the length of the IP datagram header fixed. These options are defined as follows:
[0058] (1) Security and processing restrictions (used in military fields).
[0059] (2) Record the path (have each router write down its IP address).
[0060] (3) Timestamp (let each router record the IP address and local time of each router the IP datagram passes through).
[0061] (4) Loose Source Route (specify a series of IP addresses that the datagram must pass through).
[0062] (5) Strict Source Route (similar to loose source routing, but requires that only the specified addresses can be passed through and no other addresses can be passed through).
[0063] In wireless communication environments, IP packets are subject to packet loss during transmission. For example, during data transmission from a network device to a terminal, not all IP packets reach the terminal. Some IP packets may be lost due to excessive latency or packet failure, preventing them from reaching the terminal.
[0064] Exemplary, for real-time video services, after a frame image on the screen generates data, it needs to be transmitted by multiple IP data packets, and these multiple IP data packets need to arrive at the receiving end within the time of image display. If the multiple IP data packets corresponding to the frame image do not arrive at the receiving end within the display time, it is determined that the multiple IP data packets are invalid because they cannot be displayed. In addition, the IP data packets required for a frame image include key IP data packets, that is, if the frame image is to be displayed, the key IP data packets must reach the receiving end. If the key IP data packets do not arrive at the receiving end, it is determined that the frame image cannot be displayed, and then the other IP data packets need to be discarded. The other IP data packets can be non-key IP data packets.
[0065] In some services, data transmission exhibits a certain regularity. For example, in video services, a fixed number of IP packets can be used to transmit a single frame of an image. This fixed number of IP packets can be N IP packets, where N is a positive integer. These N IP packets include a fixed number of critical data packets, while the remaining number of IP packets are non-critical IP packets. Based on this, the present disclosure proposes a data transmission method that determines a data transmission cycle based on the regularity of data transmission and periodically transmits the regular service data. This method can improve data transmission efficiency.
[0066] Figure 2 This is a diagram showing a communication system architecture of a network device and a terminal according to an exemplary embodiment. The communication method provided by the present disclosure can be applied to Figure 2 As shown in the communication system architecture diagram. Figure 2 As shown, the network side equipment can be based on Figure 2 The architecture shown sends signaling.
[0067] It is understandable that Figure 2 The communication system of the network equipment and the terminal shown is only for schematic illustration. The wireless communication system may also include other network equipment, such as core network equipment, wireless relay equipment and wireless backhaul equipment. Figure 2 The embodiment of the present disclosure does not limit the number of network devices and terminals included in the wireless communication system.
[0068] It can be further understood that the wireless communication system of the embodiment of the present disclosure is a network that provides wireless communication functions. The wireless communication system can adopt different communication technologies, such as code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division multiple access (TDMA), frequency division multiple access (FDMA), orthogonal frequency-division multiple access (OFDMA), single carrier frequency division multiple access (SC-FDMA), carrier sense multiple access / collision avoidance (Carrier Sense Multiple Access with Collision Avoidance). According to factors such as the capacity, rate, and latency of different networks, the network can be divided into 2G (English: generation) network, 3G network, 4G network or future evolution network, such as 5G network, which can also be called New Radio (NR). For the convenience of description, the present disclosure sometimes refers to the wireless communication network as simply a network.
[0069] Furthermore, the network devices involved in the present disclosure may also be referred to as wireless access network devices. The wireless access network devices may be: base stations, evolved node Bs (base stations), home base stations, access points (APs) in wireless fidelity (WIFI) systems, wireless relay nodes, wireless backhaul nodes, transmission points (TPs) or transmission and reception points (TRPs), etc. They may also be gNBs in NR systems, or they may be components or part of devices constituting base stations. In the case of a vehicle-to-everything (V2X) communication system, the network devices may also be vehicle-mounted devices. It should be understood that in the embodiments of the present disclosure, there is no limitation on the specific technology and specific device form used by the network devices.
[0070] Furthermore, the terminal involved in the present disclosure may also be referred to as a terminal device, user equipment (UE), mobile station (MS), mobile terminal (MT), etc., which is a device that provides voice and / or data connectivity to users. For example, the terminal can be a handheld device with wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: smart phones (Mobile Phones), pocket personal computers (PPCs), handheld computers, personal digital assistants (PDAs), laptops, tablet computers, wearable devices, or vehicle-mounted devices, etc. In addition, when it is a vehicle-to-everything (V2X) communication system, the terminal device can also be a vehicle-mounted device. It should be understood that the embodiments of the present disclosure do not limit the specific technology and specific device form adopted by the terminal.
[0071] Figure 3 FIG. 1 is a flow chart showing a data transmission method according to an exemplary embodiment. Figure 3 As shown, the data transmission method is used in a data sending end and includes the following steps.
[0072] In step S11, the number of IP data packets is determined.
[0073] The number of IP data packets includes a first number and a second number.
[0074] In step S12, within a first data transmission period, first type data is transmitted based on the first quantity, and second type data is transmitted based on the second quantity.
[0075] In an embodiment of the present disclosure, the number of IP packets included in a transmission cycle is determined, where the number of IP packets is fixed. For example, N IP packets are determined to be included in a transmission cycle. Furthermore, M IP packets are determined to be used to transmit first-type data among the N IP packets, and the number of these M IP packets may also be fixed. Among the N IP packets, except for the M IP packets used to transmit the first-type data, the remaining IP packets are used to transmit second-type data, i.e., a second number of IP packets.
[0076] The data sending end fixes the data to be transmitted in the N IP data packets, and fixes the data to be transmitted in the N IP data packets in the manner of placing the first type of data in the first number of IP data packets and the second type of data in the second number of IP data packets. During the first transmission data cycle, the first type of data is transmitted based on the first number, and the second type of data is transmitted based on the second number.
[0077] Through the data transmission method provided by the embodiment of the present disclosure, different types of data are placed in corresponding IP data packets, and IP data packets are sent based on the transmission data cycle. By placing different types of data in IP data packets at different positions, IP data packets can be sent purposefully and the sending efficiency of IP data packets can be improved.
[0078] In some embodiments of the present disclosure, the importance of the first type of data is greater than that of the second type of data. That is, the data to be transmitted is divided into relatively important first type of data and relatively unimportant second type of data according to its importance.
[0079] In some embodiments of the present disclosure, data to be transmitted is placed in a fixed number of IP packets. Based on the data type, relatively important data is placed in a first number of IP packets, and relatively unimportant data is placed in a second number of IP packets. Within a data transmission cycle, the first number of IP packets precedes the second number of IP packets. The first number of IP packets are then sent before the second number of IP packets.
[0080] Figure 4 FIG. 1 is a flow chart showing a data transmission method according to an exemplary embodiment. Figure 4 As shown, the data transmission method is used in a data sending end and includes the following steps.
[0081] In step S21, in response to the first number of IP data packets being all successfully sent within the first time, the second type of data is sent.
[0082] The first time is the time when the first type of data is sent.
[0083] In an embodiment of the present disclosure, the data sending end sends data packets within the first transmission data cycle based on the first transmission data cycle, and first starts to send the first number of IP data packets. After all the IP data packets of the first data are successfully sent, that is, after all the first type of data are successfully sent, it is determined to send the IP data packets of the second data.
[0084] Figure 5 FIG. 1 is a flow chart showing a data transmission method according to an exemplary embodiment. Figure 5 As shown, the data transmission method is used in a data sending end and includes the following steps.
[0085] In step S31, in response to the first number of IP data packets not all being successfully sent within the first time, the first number of IP data packets are sent based on a next transmission data cycle of the first transmission data cycle.
[0086] In an embodiment of the present disclosure, if a data transmitter sends a fixed number of IP packets in a first transmission data cycle in the order of first sending a first number of IP packets and then sending a second number of IP packets, and if all first-type data is successfully sent within a required time within the first transmission data cycle, it is determined to stop sending the second-type data, that is, stop sending the second number of IP packets. Then, based on the next transmission data cycle, the first number of IP packets will be started.
[0087] For example, taking a video service as an example, a frame of video service is fixedly transmitted within a transmission data cycle, wherein one transmission data cycle includes N IP data packets. The relatively important data of the frame (i.e., the first type of data) is placed in a first number of IP data packets, where the first number can be M, and the relatively unimportant data (i.e., the second type of data) is placed in a second number of IP data packets, where the second number is NM. The first N IP data packets are sent first. If the first N IP data packets are successfully sent within the required first time, the NM IP data packets following the frame of image are continued to be sent. If the first N IP data packets are not successfully sent within the required first time, the sending of the NM IP data packets following the frame of image is abandoned, and the IP data packets of the next frame of image are started based on the transmission data cycle.
[0088] Through the data transmission method provided by the present disclosure, when the first type of data is not all sent successfully, the sending of the IP data packet after the current transmission data cycle is abandoned, which can reduce the waste of IP data packets and improve the transmission efficiency of IP data packets.
[0089] In some embodiments of the present disclosure, an IP data packet includes an identifier, and the identifier is used to indicate the type of data being transmitted. That is, the data sending end can identify a first number of IP data packets and a second number of IP data packets to identify the IP data packets of the transmission data type. As mentioned above, a transmission data cycle includes N IP data packets, and the first number is M. Then, the first number M IP data packets can be identified as N*X, N*X+1, N*X+2, ..., N*X+M-1 respectively. The second number, and NM IP data packets are identified as N*X+M, N*X+M+1, N*X+M+2, ..., N*X+N-1 respectively. Wherein X represents the order of data being transmitted. For example, if X is 1, then the transmission data cycle transmits the first frame image of the video service. If X is 2, then the transmission data cycle transmits the second frame image of the video service, and so on.
[0090] When all IP data packets identified as N*X, N*X+1, N*X+2, ..., N*X+M-1 are sent successfully, it is determined to send IP data packets identified as N*X+M, N*X+M+1, N*X+M+2, ..., N*X+N-1.
[0091] In some embodiments of the present disclosure, the number of IP data packets, the first number, and the second number are determined based on a protocol or a predefined rule.
[0092] In the embodiments of the present disclosure, the above embodiments can be applied to services with strong regularity, such as video services, and can certainly also be applied to other services.
[0093] In the embodiments of the present disclosure, the data sending end may be a terminal or a network device, which is not specifically limited here.
[0094] Based on the same concept, an embodiment of the present disclosure also provides a data transmission device.
[0095] It is understandable that the data transmission device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0096] Figure 6 FIG. 1 is a block diagram of a data transmission device according to an exemplary embodiment. Figure 6 The data transmission device 100 is applied to a data generation end and includes a determination module 101 and a transmission module 102.
[0097] The determining module 101 is configured to determine the number of Internet Protocol (IP) data packets, where the number of IP data packets includes a first number and a second number. The transmitting module 102 is configured to transmit a first type of data based on the first number and a second type of data based on the second number within a first data transmission period.
[0098] In the embodiment of the present disclosure, the importance of the first type of data is greater than the importance of the second type of data.
[0099] In the embodiment of the present disclosure, the first number of corresponding IP data packets are sent in an order before the second number of corresponding IP data packets are sent in an order.
[0100] In the embodiment of the present disclosure, the transmission module 102 is configured to transmit the second type of data in response to the first number of IP data packets being all successfully transmitted within a first time, wherein the first time is the time for transmitting the first type of data.
[0101] In the embodiment of the present disclosure, the transmission module 102 is further configured to send the first number of IP data packets based on the next transmission data cycle of the first transmission data cycle in response to the first number of IP data packets not all being sent successfully within the first time.
[0102] In the embodiment of the present disclosure, the IP data packet includes an identifier, and the identifier is used to indicate the type of data being transmitted.
[0103] In the embodiment of the present disclosure, the number of IP data packets, the first number, and the second number are determined based on a protocol or a predefined rule.
[0104] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0105] Figure 7 FIG2 is a block diagram of an apparatus 200 for data transmission according to an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0106] Reference Figure 7 , apparatus 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0107] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0108] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0109] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 200.
[0110] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0111] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC) that is configured to receive external audio signals when the device 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio signals.
[0112] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0113] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200. The sensor assembly 214 can also detect changes in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and temperature changes of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0114] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0115] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0116] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 204 including instructions, which can be executed by the processor 220 of the apparatus 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0117] Figure 8 3 is a block diagram of a device 300 for data transmission according to an exemplary embodiment. For example, the device 300 can be provided as a server. Figure 8The apparatus 300 includes a processing component 322, which further includes one or more processors, and a memory resource represented by a memory 332 for storing instructions, such as an application, that can be executed by the processing component 322. The application stored in the memory 332 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 322 is configured to execute the instructions to perform the above-described method.
[0118] The device 300 may also include a power supply component 326 configured to perform power management of the device 300, a wired or wireless network interface 350 configured to connect the device 300 to a network, and an input / output (I / O) interface 358. The device 300 may operate based on an operating system stored in the memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0119] It is further understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0120] It will be further understood that the terms "first," "second," and the like are used to describe various types of information, but such information should not be limited to these terms. These terms are used solely to distinguish information of the same type from one another and do not indicate a particular order or level of importance. In fact, the terms "first," "second," and the like are fully interchangeable. For example, first information could be referred to as second information, and similarly, second information could be referred to as first information without departing from the scope of this disclosure.
[0121] It is further understood that although operations are described in a particular order in the drawings in the embodiments of the present disclosure, this should not be construed as requiring that the operations be performed in the particular order shown or in a serial order, or that all of the operations shown be performed to obtain the desired results. In certain circumstances, multitasking and parallel processing may be advantageous.
[0122] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0123] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A data transmission method, characterized in that: Applied to a data sending end, the method includes: Determining a number of Internet Protocol (IP) data packets, the number of IP data packets comprising a first number and a second number; In a first data transmission period, transmitting first type data based on the first quantity, and transmitting second type data based on the second quantity; The transmitting the second type of data based on the second quantity includes: In response to all of the first number of IP data packets being successfully sent within the first time, sending the second type of data; In response to the first number of IP data packets not all being successfully sent within the first time, sending the first number of IP data packets based on a transmission data cycle next to the first transmission data cycle; The first time is the time for sending the first type of data.
2. The data transmission method according to claim 1, wherein: The importance of the first type of data is greater than the importance of the second type of data.
3. The data transmission method according to claim 2, wherein: The sending order of the IP data packets corresponding to the first number is before the sending order of the IP data packets corresponding to the second number.
4. The data transmission method according to claim 1, wherein: The IP data packet includes an identifier, and the identifier is used to indicate the type of data being transmitted.
5. The data transmission method according to claim 1, wherein: The number of IP data packets, the first number, and the second number are determined based on a protocol or a predefined rule.
6. A data transmission device, characterized in that: Applied to a data generation end, the device includes: a determining module, configured to determine a quantity of Internet Protocol (IP) data packets, wherein the quantity of IP data packets includes a first quantity and a second quantity; a transmission module, configured to transmit, within a first data transmission period, first type data based on the first quantity, and transmit second type data based on the second quantity; The transmission module transmits the second type of data based on the second quantity in the following manner: In response to all of the first number of IP data packets being successfully sent within the first time, sending the second type of data; In response to the first number of IP data packets not all being successfully sent within the first time, sending the first number of IP data packets based on a transmission data cycle next to the first transmission data cycle; The first time is the time for sending the first type of data.
7. A data transmission device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the data transmission method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the data transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data transmitting method, device, equipment and medium
CN108616449A
Data transmission method and device, computer readable medium and electronic equipment
CN112804710A