CN116017567A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN116017567A
CN116017567A CN202211623773.6A CN202211623773A CN116017567A CN 116017567 A CN116017567 A CN 116017567A CN 202211623773 A CN202211623773 A CN 202211623773A CN 116017567 A CN116017567 A CN 116017567A
Authority
CN
China
Prior art keywords
data
filtering
preset
service data
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211623773.6A
Other languages
Chinese (zh)
Inventor
孟伟
王存刚
钟广海
王明慧
李辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202211623773.6A priority Critical patent/CN116017567A/en
Publication of CN116017567A publication Critical patent/CN116017567A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data transmission method and a data transmission device, which are used for filtering service data to be transmitted by a terminal through the transmission resource quantity scheduled by a network side for the terminal, so that the transmission strategy of the service data of the terminal is changed along with the change of network conditions, and the transmission quality of the service data with high priority is ensured. The data transmission method provided by the application comprises the following steps: determining service data to be sent by a terminal; when the preset condition is met, filtering the service data to be sent according to a preset rule, and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by a network side for the terminal.

Description

Data transmission method and device
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a data transmission method and apparatus.
Background
The wireless transmission of the cellular network has the characteristic of time variability, the rate of data transmission can be influenced by the long distance from the base station, interference noise and network busyness caused by excessive user use, and the change of the transmission rate has a great influence on the service of video streaming media, which needs to pay attention to uplink transmission. In video monitoring service, multiple service data are often transmitted simultaneously, for example, video, voice and picture are triggered to be transmitted simultaneously, which tends to cause burst increase of transmission flow, and at the moment, if bandwidth limitation caused by external environment such as channel interference or network congestion is encountered simultaneously, data transmission delay is caused, and even transmission reliability is affected.
Disclosure of Invention
The embodiment of the application provides a data transmission method and device, which are used for filtering service data to be sent by a terminal through the transmission resource quantity scheduled by a network side for the terminal, so that the transmission strategy of the service data of the terminal is changed along with the change of network conditions, and the transmission quality of the service data with high priority is ensured.
The embodiment of the application provides a data transmission method, which comprises the following steps:
determining service data to be sent by a terminal;
when the preset condition is met, filtering the service data to be sent according to a preset rule, and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by a network side for the terminal.
By the method, the service data to be sent by the terminal is determined; when the preset condition is determined to be met, filtering the service data to be sent according to a preset rule, and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by the network side for the terminal, so that the transmission strategy of the service data of the terminal is changed along with the change of the network condition, and the transmission quality of the service data with high priority is ensured.
In some embodiments, the determining that the preset condition is met, filtering the service data to be sent according to a preset rule includes:
determining the ratio of the transmission resource quantity scheduled by the network side for the terminal to the resource request quantity sent by the terminal in the latest statistics period;
and when the ratio is smaller than a preset threshold, filtering the service data to be sent according to a preset rule.
By the method, the resource state is evaluated according to the ratio of the transmission resource quantity scheduled by the terminal to the transmitted resource request quantity.
In some embodiments, the filtering the service data to be sent according to a preset rule includes:
and filtering the service data to be transmitted according to the preset priority of the service data to be transmitted and a preset data filtering threshold.
In some embodiments, filtering the service data to be sent according to the preset priority of the service data to be sent and a preset data filtering threshold includes:
determining the current data filtering level by comparing the ratio with a preset data filtering threshold;
and filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent.
In some embodiments, the following six priorities are set for the service data in order of priority from high to low in advance: priority one, priority two, priority three, priority four, priority five, and priority six.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is greater than a preset data filtering threshold four, determining a current data filtering level as a data filtering level five;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the priority five from the service data to be sent.
By the method, the service data which needs to be filtered and has the preset priority lower than the priority five is determined, so that the transmission quality and efficiency of the service data with the priorities of one, two, three, four and five are ensured.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold IV and larger than a preset data filtering threshold III, determining the current data filtering level as a data filtering level IV;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the fourth priority from the service data to be sent.
By the method, the service data which needs to be filtered and has the preset priority lower than the priority four is determined, so that the transmission quality and efficiency of the service data with the priorities of one, two, three and four are ensured.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold III and larger than a preset data filtering threshold II, determining the current data filtering level as a data filtering level III;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the third priority from the service data to be sent.
By the method, the service data which needs to be filtered and has the preset priority lower than the priority III is determined, so that the transmission quality and efficiency of the service data with the priorities I, II and III are ensured.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold II and larger than a preset data filtering threshold I, determining that the current data filtering level is the data filtering level II;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the second priority from the service data to be sent.
By the method, the service data which needs to be filtered and has the preset priority lower than the priority II is determined, so that the transmission quality and efficiency of the service data with the priority I and the service data with the priority II are ensured.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold, determining the current data filtering level as a data filtering level I;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the first priority from the service data to be sent.
By the method, the service data which needs to be filtered and is lower than the first priority is determined, so that the transmission quality and efficiency of the service data of the first priority are ensured.
Another embodiment of the present application provides a data transmission device, which includes a memory and a processor, where the memory is configured to store program instructions, and the processor is configured to call the program instructions stored in the memory, and execute any one of the methods according to the obtained program.
Furthermore, according to an embodiment, for example, a computer program product for a computer is provided, comprising software code portions for performing the steps of the method defined above, when said product is run on a computer. The computer program product may include a computer-readable medium having software code portions stored thereon. Furthermore, the computer program product may be directly loaded into the internal memory of the computer and/or transmitted via the network by at least one of an upload procedure, a download procedure and a push procedure.
Another embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform any of the methods described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a PDCP data message format with an SN length of 12BIT according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a PDCP data message format with an SN length of 18BIT BITs according to an embodiment of the present application;
fig. 3 is a schematic diagram of a priority transmission flow based on a scheduling resource status according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a specific process of priority transmission based on a resource status according to an embodiment of the present application;
fig. 5 is an overall flow chart of a data transmission method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings of the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a data transmission method and device, which are used for filtering service data to be sent by a terminal through the transmission resource quantity scheduled by a network side for the terminal, so that the transmission strategy of the service data of the terminal is changed along with the change of network conditions, and the transmission quality of the service data with high priority is ensured.
The method and the device are based on the same application, and because the principles of solving the problems by the method and the device are similar, the implementation of the device and the method can be referred to each other, and the repetition is not repeated.
The terms first, second and the like in the description and in the claims of the embodiments and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following examples and embodiments are to be construed as illustrative only. Although the specification may refer to "an", "one", or "some" example or embodiment(s) at several points, this does not mean that each such reference is related to the same example or embodiment, nor that the feature is applicable to only a single example or embodiment. Individual features of different embodiments may also be combined to provide further embodiments. Furthermore, terms such as "comprising" and "including" should be understood not to limit the described embodiments to consist of only those features already mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.
Various embodiments of the present application are described in detail below with reference to the drawings attached hereto. It should be noted that, the display sequence of the embodiments of the present application only represents the sequence of the embodiments, and does not represent the advantages or disadvantages of the technical solutions provided by the embodiments.
It should be noted that, the technical solution provided in the embodiment of the present application is described by taking the link layer and application layer cooperative transmission optimization of the video code stream as an example, but is not limited thereto.
Some terms appearing hereinafter are explained:
1. The term "TCP", transmission Control Protocol, transmission control protocol in the embodiments of the present application, refers to a connection-oriented, reliable, byte stream based transport layer communication protocol;
2. in the embodiment of the application, the term "I frame", intra picture, key frame, I frame occupies the largest memory resource due to less compression, and one I frame is a complete image; p frame, predictive frame, forward Predictive coding frame, according to the information of I frame before it, restore a complete image, it is less than the memory resource that I frame occupies; b frame, bi-ditectional interpolated prediction frame, the interpolation coding frame of Bi-directional prediction, need to restore a complete picture according to the information of I frame or P frame before it and P frame after it, the memory resource occupied is minimum;
3. the term "PDCP", packet Data Convergence Protocol, packet data convergence protocol in the embodiments of the present application, is mainly used for processing packet data, such as IP data flows, of a bearer network layer on an air interface;
4. in the embodiment of the application, the term "SDAP", service Data Adaptation Protocol, service data adaptation protocol is a newly added sub-layer in the 5G/NR user plane, and one of the functions of the layer is to map QoS flows and DRB;
5. The term RLC, radio Link Control in the embodiment of the present application is a radio link control layer protocol in a radio communication system such as GPRS/WCDMA/TD-SCDMA/LTE;
6. the term "MAC" Multiple Access Channel in this embodiment refers to a multiple access channel having multiple channels of input signals, but only one channel of output signals.
For video monitoring devices, besides basic streaming video streaming, other data service transmission capabilities, such as picture transmission, voice transmission and other customized services with higher priority, are required. For wireless video monitoring equipment using a cellular network, transmission of the wireless video monitoring equipment has uncertainty and time-varying property shared by the wireless network, such as excessive number of access users in the network, overlarge burst peak service data, noise interference or channel quality variation caused by base station coverage, which can affect the transmission quality of the video monitoring equipment.
When the cellular network transmits data, the base station firstly requests the resources, and the base station is used for the terminal to transmit a large amount of data at which time point according to the current resource condition, the combined terminal request amount, the channel environment condition and other comprehensive decisions, so that the terminal does not have the capability of preempting the transmission resources, and when the transmission bandwidth is limited due to the reasons, only the service data can adapt to the bandwidth. However, for a terminal having multiple service data transmission capabilities, the simultaneous burst of multiple service data inevitably results in an increase in bandwidth demand, and if the bandwidth is just limited, the transmission delay and packet loss of the terminal are only worsened, so that how to guarantee the transmission and delay of key service data by using limited transmission resources is more important.
In order to solve the above-mentioned problems, the embodiment of the present application proposes a data transmission method, which can be applied to any terminal device, and in the embodiment of the present application, a monitoring device is used for illustration. According to the embodiment of the application, the data transmission optimization is carried out cooperatively from the link layer and the application layer, the service layer sets the priority of various service data in advance, and the link layer carries out data transmission optimization and control adjustment according to the real-time resource allocation condition so as to ensure the priority scheduling of high-priority key data.
And adding a service priority field for the service data message of the service layer for optimizing use by matching with the link layer. The service layer is characterized in that each service module only needs to add the priority of the service data message, does not need to stream control (i.e. flow control) on the transmission of the service data, does not need to pay attention to the transmission condition of other service data, only needs to pay attention to TCP socket cache, and adjusts the respective transmission strategy according to the cache feedback in time.
In some embodiments, the priority of traffic data is pre-designed into three levels: highest priority, medium priority, lowest priority. For each level of service data, it is further divided into a key frame (i.e. key data) and a non-key frame (i.e. non-key data), for example, a certain video data is coded, an I frame is regarded as a non-missing key frame, and a B frame and/or a P frame is regarded as a non-key frame, so that the service data can be designed into 6 priorities, respectively 1, 2, 3, 4, 5 and 6, for example, as shown in table 1, for example, if the reserved field in the current data packet includes 000 BITs (BIT), it is indicated that the service data in the data packet is the highest priority key data. Therefore, when bandwidth resources are limited (for example, the number of terminal devices accessed to a base station is too large, noise interference or signal coverage of the position of the terminal devices is poor, and the like), the link layer can carry out different filtering processing on different priority data according to the tension degree of the bandwidth resources so as to ensure that service data with high priority is scheduled preferentially.
Priority order BIT 1 BIT 2 BIT 3 Paraphrasing meaning
1 0 0 0 Highest priority critical data
2 0 0 1 Highest priority non-critical data
3 0 1 0 Medium priority critical data
4 0 1 1 Medium priority non-critical data
5 1 0 0 Low priority critical data
6 1 0 1 Low priority non-critical data
Undefined 1 1 0 Reservation of
Undefined 1 1 1 Reservation of
TABLE 1 filling design for setting priority of service data in reserved field
The camera of the monitoring device will collect the encoded service data, transmit to the 5G network through USB, after the 5G network receives the service data, send the service data into PDCP layer first, then reach the physical layer through RLC layer last, the transmission 3GPP protocol of each layer stipulates the transmission format, the transmission of each layer will increase the control message corresponding to each layer, some fields (i.e. reserved fields) or BIT BIT in these control messages have not been used at present, therefore can pack the service data priority information based on the unused field or BIT BIT at present.
According to the priority design rule of the service data, the priority information of the service data is filled in the reserved field in the PDCP message format, and the priority information field is used throughout the whole link layer, so that the PDCP layer and the RLC layer can conveniently perform service data transmission control optimization. The PDCP layer has two formats according to SN (sequence Number) length, one is a PDCP data message format of 12BIT, for example, as shown in fig. 1, and one is a PDCP data message format of 18BIT, for example, as shown in fig. 2, but both formats have at least 3BIT reserved positions, for example, 3R in the rectangular frame shown in fig. 1 and 2 are reserved positions, and the priority information of the service data can be filled with the reserved positions of 3 BIT. For example, as shown in table 1, where BIT1 and BIT2 are used to mark the priority of the service data, BIT3 is used to mark whether the service data is a key frame, e.g., BIT1 and BIT2 are all filled with 0, indicating that the priority of the service data is the highest priority; BIT1 fills 0 and BIT2 fills 1, indicating that the priority of the service data is medium priority; BIT1 fills 1 and BIT2 fills 0, indicating that the priority of the service data is low priority; BIT3 fills 0, indicating that the service data is a key frame; BIT3 fills in 1 indicating that the traffic data is a non-key frame.
After the service data carrying the priority information enters the buffer memory of the PDCP layer through the SDAP layer, the PDCP layer firstly generates PDCP message heads (service segments of initial and unique identification messages) from the original service data, and fills the priority information carried by the PDCP message heads into reserved positions according to the filling design rule, so that the whole link layer (RLC layer and MAC layer) can carry out optimal control on service data transmission according to the marked priority information of the service data. It should be noted that, since the PDCP layer needs to filter the service data according to the subsequent resource scheduling state, in order to avoid invalid padding, the SN field of the PDCP layer is not padded at this time, and the SN field of the PDCP layer is padded when it is determined that the service data is to be sent to the buffer of the RLC layer.
The PDCP layer, the RLC layer and the MAC layer are protocol stacks of the cellular network, the PDCP layer is the uppermost layer, the RLC layer is the middle layer, the MAC layer is the lowermost layer, the service data sent by the camera is sent to the PDCP layer (responsible for receiving the service data sent by the service layer and transmitting the service data), and then sent to the RLC layer (responsible for segmenting and encrypting the service data) after being processed, and then sent to the MAC layer (responsible for sending the service data to the physical layer).
After the service data enters the buffer memory of the PDCP layer, the link layer performs transmission optimization according to the bandwidth resource condition, for example, as shown in fig. 3. The PDCP layer receiving the service data sends the service data to the buffer memory of the RLC layer according to the sequence of entering the PDCP layer, and the MAC layer counts the service data quantity to be transmitted at this time according to the buffer memory service data quantity of the RLC layer and requests the transmission resource to the base station. The base station allocates transmission resources to the link layer according to the channel condition of the terminal and the number of network users, after the link layer receives and analyzes the transmission resources allocated by the current scheduling, the priority transmission decision module of the terminal equipment calculates the ratio of the transmission resource amount allocated by the current time to the service data amount (namely, the service data amount sent to the link layer by the camera) requested to be transmitted last time, when the ratio is smaller than a preset priority transmission starting threshold, the base station starts a high priority data priority transmission strategy when the transmission resource amount allocated by the current scheduling is too small, at the moment, the original service data in the RLC layer cache allocates the transmission resources according to the priority of the service data from high to low, namely, the service data is filled into limited transmission resources according to the priority of the service data from high to low until all the transmission resources are occupied, so that the service data priority of the highest priority is scheduled, the transmission time delay is ensured, and the service data of the low priority is allocated to the transmission resources in the next scheduling. Otherwise, when the ratio is greater than or equal to a preset priority transmission starting threshold, a high priority data priority transmission strategy is not started, and the original business data in the buffer memory of the RLC layer is distributed with transmission resources according to the buffer memory arrangement sequence (namely the sequence of entering the RLC layer) of the original business data, so as to carry out transmission scheduling.
The base station performs transmission scheduling on service data, which is comprehensively determined by combining the current resource request amount, the current terminal equipment access amount and the network environment, and if the wireless communication quality between the terminal equipment and the base station is poor at the current moment, the data amount allowed to be transmitted at the time is possibly small, so that single scheduling has no statistical significance.
To solve the above problem, in some embodiments, a statistics period (for example, 500ms, 1 s, 2 s) is preset, and the amount of transmission scheduling resources allocated to the base station at the single time slot level (ms) is accumulated and counted by the resource allocation status statistics module of the terminal according to the statistics period. An accumulated sum is calculated for all the transmission resource amounts allocated by the scheduling of the slot level in the statistical period, and an accumulated sum is calculated for all the resource request amounts (i.e., traffic data transmission request amounts) in the period. For example, the traffic data transmission request amount and the allocated transmission resource amount of each time period are counted with one time period T (e.g., t=500 ms) as a segment, for example, from 0 point, 0-500ms,500ms-1000ms,1000ms-1500ms, and so on. When the statistics period is full, the resource allocation status statistics module can calculate the ratio of the total allocated transmission resource amount in one period to the total resource request amount in the period, and the ratio is defined as a resource measurement value, wherein the lower the value is, the smaller the allocated transmission resource amount is, the worse the current channel environment is or the network is busy, so that the transmission resource amount allocated by the base station cannot meet the transmission requirement of service data. If it is desired to preferentially guarantee the transmission of high-priority traffic data and critical traffic data, it is necessary to sacrifice the transmission of some low-priority traffic data and non-critical traffic data according to the tension of transmission resources.
In some embodiments, the resource status is evaluated according to the resource metric value by a flow control policy decision module of the terminal device. And when the resource metric value is lower than a preset data filtering starting threshold, starting a data filtering function of the PDCP layer, and otherwise, closing the data filtering function of the PDCP layer, thereby ensuring the transmission of high-priority service data and key service data. For example, as shown in fig. 4, the PDCP layer determines a data filtering level of the PDCP layer according to the resource metric value, and the PDCP layer filters the service data in its buffer memory with a service data priority corresponding to the data filtering level, for example, a data filtering level 1 corresponds to a data priority 1, and if the current data filtering level is 1, it is necessary to delete the service data with a data priority less than 1 from the PDCP layer buffer memory. For example, 4 data filtering thresholds are preset, namely data filtering thresholds 1, 2, 3 and 4;5 data filtering grades, namely 1, 2, 3, 4 and 5; when the resource metric value is smaller than the data filtering starting threshold and larger than the data filtering threshold 4, setting the current data filtering level of the PDCP layer to be 5; when the resource metric value is smaller than the data filtering threshold 4 and larger than the data filtering threshold 3, setting the current data filtering level of the PDCP layer as 4; when the resource metric value is smaller than the data filtering threshold 3 and larger than the data filtering threshold 2, setting the current data filtering level of the PDCP layer to be 3; when the resource metric value is smaller than the data filtering threshold 2 and larger than the data filtering threshold 1, setting the current data filtering level of the PDCP layer as 2; when the resource metric value is smaller than the data filtering threshold 1, setting the current data filtering level of the PDCP layer to be 1.
After receiving the message of starting the data filtering function sent by the flow control policy module, the PDCP layer filters the service data according to the received data filtering level, wherein the filtered service data comprises the original service data which has already entered into the PDCP layer buffer and the service data which has entered the PDCP layer but has not yet completely entered into the PDCP layer buffer (i.e. the service data in transmission), meanwhile, the data filtering policy needs to be adjusted in real time according to the newly received message about the change of the data filtering level, for example, the current data filtering level is 3, if the flow control policy module sends a new message, the new message indicates that the data filtering level is 1, the PDCP layer needs to adjust the current data filtering level from 3 to 1 according to the indication of the new message until the message of closing the data filtering function is received, so that the link layer can perform different filtering treatments on the service data with different priorities according to the tension level of resources, thereby guaranteeing that the service data with high priority is preferentially transmitted. For example, as shown in fig. 4, for example, when the data filtering level is 5, the PDCP layer needs to discard all service data having a priority of less than 5, i.e., delete all low priority non-critical data from the buffer; when the data filtering level is 4, all service data with priority less than 4 need to be discarded, namely all low-priority data are deleted from the cache; when the data filtering level is 3, all service data with the priority less than 3 are required to be discarded, namely all low-priority data and medium-priority non-critical data are deleted from the cache; when the data filtering level is 2, all service data with the priority less than 2 need to be discarded, namely all low-priority data and medium-priority data are deleted from the cache; when the data filtering level is 1, all service data with priority less than 1 needs to be discarded, namely all low-priority data, medium-priority data and high-priority non-critical data are deleted from the cache.
In summary, referring to fig. 5, a data transmission method provided in the embodiment of the present application includes:
step S101, determining service data to be sent by a terminal;
the terminal can be any terminal equipment, such as the monitoring equipment; the business data such as the pictures and the voice; the service data to be sent, such as the original service data which has entered the PDCP layer buffer and the service data which is entering but not completely entering the PDCP layer buffer;
step S102, when the preset condition is determined to be met, filtering the service data to be sent according to a preset rule (for example, filtering according to the priority of the service data), and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by a network side for the terminal;
the preset condition, for example, the resource quantity ratio is smaller than a preset data filtering starting threshold and/or a data filtering threshold;
through step S102, the link transmission policy is implemented to follow the network condition change in real time, so as to ensure the transmission quality of the high-priority service data.
In order to evaluate the resource status according to the ratio of the amount of transmission resources scheduled by the terminal to the amount of resource requests sent, in some embodiments, the determining meets a preset condition, and filtering the service data to be sent according to a preset rule includes:
Determining a ratio (for example, the above-mentioned resource metric value) of the transmission resource quantity scheduled by the network side for the terminal and the resource request quantity sent by the terminal in the latest statistics period;
and when the ratio is smaller than a preset threshold (for example, the preset data filtering starting threshold), filtering the service data to be sent according to a preset rule.
In some embodiments, the filtering the service data to be sent according to a preset rule includes:
and filtering the service data to be sent according to the preset priority (such as the priorities 1, 2, 3, 4, 5 and 6) of the service data to be sent and the preset data filtering threshold (such as the data filtering thresholds 1, 2, 3 and 4).
In some embodiments, filtering the service data to be sent according to the preset priority of the service data to be sent and a preset data filtering threshold includes:
determining a current data filtering level (e.g., data filtering levels 1, 2, 3, 4, 5 described above) by comparing the ratio to a preset data filtering threshold;
and filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent.
In some embodiments, the following six priorities are set for the service data in order of priority from high to low in advance: priority one, priority two, priority three, priority four, priority five, and priority six.
To ensure the transmission quality and efficiency of the traffic data of priority one, two, three, four, five, in some embodiments, determining the current data filtering level by comparing the ratio with a preset data filtering threshold includes: when the ratio is greater than a preset data filtering threshold four, determining a current data filtering level as a data filtering level five;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the priority five from the service data to be sent.
To ensure the transmission quality and efficiency of the traffic data of priority one, two, three, four, in some embodiments, determining the current data filtering level by comparing the ratio with a preset data filtering threshold includes: when the ratio is smaller than a preset data filtering threshold IV and larger than a preset data filtering threshold III, determining the current data filtering level as a data filtering level IV;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the fourth priority from the service data to be sent.
To ensure the transmission quality and efficiency of the service data of priority one, two, and three, in some embodiments, determining the current data filtering level by comparing the ratio with a preset data filtering threshold includes: when the ratio is smaller than a preset data filtering threshold III and larger than a preset data filtering threshold II, determining the current data filtering level as a data filtering level III;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the third priority from the service data to be sent.
To ensure the transmission quality and efficiency of the service data of priority one and two, in some embodiments, determining the current data filtering level by comparing the ratio with a preset data filtering threshold includes: when the ratio is smaller than a preset data filtering threshold II and larger than a preset data filtering threshold I, determining that the current data filtering level is the data filtering level II;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the second priority from the service data to be sent.
To ensure the transmission quality and efficiency of the priority one traffic data, in some embodiments, determining the current data filtering level by comparing the ratio with a preset data filtering threshold includes: when the ratio is smaller than a preset data filtering threshold, determining the current data filtering level as a data filtering level I;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the first priority from the service data to be sent.
Referring to fig. 6, a data transmission apparatus provided in this embodiment of the present application may be any kind of terminal device, or may be a device in a terminal device, where the apparatus includes:
the processor 600, configured to read the program in the memory 620, performs the following procedures:
Determining service data to be sent by a terminal;
when the preset condition is met, filtering the service data to be sent according to a preset rule, and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by a network side for the terminal.
In some embodiments, the determining that the preset condition is met, filtering the service data to be sent according to a preset rule includes:
determining the ratio of the transmission resource quantity scheduled by the network side for the terminal to the resource request quantity sent by the terminal in the latest statistics period;
and when the ratio is smaller than a preset threshold, filtering the service data to be sent according to a preset rule.
In some embodiments, the filtering the service data to be sent according to a preset rule includes:
and filtering the service data to be transmitted according to the preset priority of the service data to be transmitted and a preset data filtering threshold.
In some embodiments, filtering the service data to be sent according to the preset priority of the service data to be sent and a preset data filtering threshold includes:
Determining the current data filtering level by comparing the ratio with a preset data filtering threshold;
and filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent.
In some embodiments, the following six priorities are set for the service data in order of priority from high to low in advance: priority one, priority two, priority three, priority four, priority five, and priority six.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is greater than a preset data filtering threshold four, determining a current data filtering level as a data filtering level five;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the priority five from the service data to be sent.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold IV and larger than a preset data filtering threshold III, determining the current data filtering level as a data filtering level IV;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the fourth priority from the service data to be sent.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold III and larger than a preset data filtering threshold II, determining the current data filtering level as a data filtering level III;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the third priority from the service data to be sent.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold II and larger than a preset data filtering threshold I, determining that the current data filtering level is the data filtering level II;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the second priority from the service data to be sent.
In some embodiments, determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold, determining the current data filtering level as a data filtering level I;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the first priority from the service data to be sent.
In some embodiments, the data transmission apparatus provided in the embodiments of the present application further includes a transceiver 610 for receiving and transmitting data under the control of the processor 600.
Wherein in fig. 6, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by processor 600 and various circuits of memory represented by memory 620, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. Transceiver 610 may be a number of elements, including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium.
In some embodiments, the data transmission apparatus provided in the embodiments of the present application further includes a user interface 630, where the user interface 630 may be an interface capable of externally connecting and inscribing a desired device, and the connected device includes, but is not limited to, a keypad, a display, a speaker, a microphone, a joystick, and the like.
The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 may store data used by the processor 600 in performing operations.
In some embodiments, the processor 600 may be a CPU (Central processing Unit), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable Gate array), or CPLD (Complex Programmable Logic Device ).
The embodiment of the application provides a terminal device, which comprises a priority transmission decision module, a resource allocation state statistics module and a flow control strategy module, for example, which are provided by the embodiment of the application.
Embodiments of the present application provide a computing device, which may be specifically a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), and the like. The computing device may include a central processing unit (Center Processing Unit, CPU), memory, input/output devices, etc., the input devices may include a keyboard, mouse, touch screen, etc., and the output devices may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), cathode Ray Tube (CRT), etc.
The memory may include Read Only Memory (ROM) and Random Access Memory (RAM) and provides the processor with program instructions and data stored in the memory. In the embodiments of the present application, the memory may be used to store a program of any of the methods provided in the embodiments of the present application.
The processor is configured to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions by calling the program instructions stored in the memory.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method of any of the above embodiments. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The present embodiments provide a computer readable storage medium for storing computer program instructions for use with an apparatus provided in the embodiments of the present application described above, which includes a program for executing any one of the methods provided in the embodiments of the present application described above. The computer readable storage medium may be a non-transitory computer readable medium.
The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including, but not limited to, magnetic storage (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor storage (e.g., ROM, EPROM, EEPROM, nonvolatile storage (NAND FLASH), solid State Disk (SSD)), etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (14)

1. A method of data transmission, the method comprising:
determining service data to be sent by a terminal;
when the preset condition is met, filtering the service data to be sent according to a preset rule, and sending the filtered service data to be sent, wherein the preset condition is determined according to the transmission resource quantity scheduled by a network side for the terminal.
2. The method of claim 1, wherein the determining that the preset condition is met, and filtering the service data to be sent according to a preset rule, comprises:
determining the ratio of the transmission resource quantity scheduled by the network side for the terminal to the resource request quantity sent by the terminal in the latest statistics period;
and when the ratio is smaller than a preset threshold, filtering the service data to be sent according to a preset rule.
3. The method of claim 2, wherein the filtering the service data to be sent according to a preset rule includes:
and filtering the service data to be transmitted according to the preset priority of the service data to be transmitted and a preset data filtering threshold.
4. A method according to claim 3, wherein filtering the service data to be transmitted according to the preset priority of the service data to be transmitted and a preset data filtering threshold comprises:
determining the current data filtering level by comparing the ratio with a preset data filtering threshold;
and filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent.
5. The method of claim 4, wherein the following six priorities are set for the service data in the order of priority from high to low, respectively: priority one, priority two, priority three, priority four, priority five, and priority six.
6. The method of claim 5, wherein determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is greater than a preset data filtering threshold four, determining a current data filtering level as a data filtering level five;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the priority five from the service data to be sent.
7. The method of claim 5, wherein determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold IV and larger than a preset data filtering threshold III, determining the current data filtering level as a data filtering level IV;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the fourth priority from the service data to be sent.
8. The method of claim 5, wherein determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold III and larger than a preset data filtering threshold II, determining the current data filtering level as a data filtering level III;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the third priority from the service data to be sent.
9. The method of claim 5, wherein determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold II and larger than a preset data filtering threshold I, determining that the current data filtering level is the data filtering level II;
Filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the second priority from the service data to be sent.
10. The method of claim 5, wherein determining the current data filtering level by comparing the ratio to a preset data filtering threshold comprises: when the ratio is smaller than a preset data filtering threshold, determining the current data filtering level as a data filtering level I;
filtering the service data to be sent according to the current data filtering level and the preset priority of the service data to be sent, including: and filtering the service data with preset priority lower than the first priority from the service data to be sent.
11. A data transmission apparatus, comprising:
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory to perform the method of any of claims 1 to 10 in accordance with the obtained program.
12. A terminal device comprising the apparatus of claim 11.
13. A computer program product for a computer, characterized in that it comprises software code portions for performing the method according to any of claims 1 to 10 when the product is run on the computer.
14. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 10.
CN202211623773.6A 2022-12-16 2022-12-16 Data transmission method and device Pending CN116017567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211623773.6A CN116017567A (en) 2022-12-16 2022-12-16 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211623773.6A CN116017567A (en) 2022-12-16 2022-12-16 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN116017567A true CN116017567A (en) 2023-04-25

Family

ID=86024089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211623773.6A Pending CN116017567A (en) 2022-12-16 2022-12-16 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN116017567A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116614449A (en) * 2023-07-19 2023-08-18 中国电子科技集团公司第二十九研究所 Application layer-oriented self-adaptive flow control device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116614449A (en) * 2023-07-19 2023-08-18 中国电子科技集团公司第二十九研究所 Application layer-oriented self-adaptive flow control device and method
CN116614449B (en) * 2023-07-19 2023-10-31 中国电子科技集团公司第二十九研究所 Application layer-oriented self-adaptive flow control device and method

Similar Documents

Publication Publication Date Title
US20190334834A1 (en) Data processing method, apparatus, and system
US10187819B2 (en) Access network congestion control method, base station device, and policy and charging rules function network element
US20060140115A1 (en) Resource allocation management
CN110474854B (en) Resource allocation method and device
CN101494877B (en) Admittance control method and apparatus of radio communication system
CN108667573B (en) Data processing method and device and related equipment
WO2018171651A1 (en) Resource scheduling method and device
CN105471763B (en) Control message transmission method and device
CN108391289B (en) Congestion control method and base station
CN112543508A (en) Wireless resource allocation method and network architecture for 5G network slice
CN113556785A (en) Method for controlling service quality flow and related equipment
CN110677854A (en) Method, apparatus, device and medium for carrier frequency capacity adjustment
CN116017567A (en) Data transmission method and device
CN109803313B (en) Congestion control method, terminal and computer readable storage medium
CN104956733A (en) Admission control method and device for wireless communication network
WO2022188686A1 (en) Communication method and device
JP7099537B2 (en) Communication equipment, communication methods and programs
CN111726379B (en) Communication method and device
CN108809510B (en) Data transmission processing method and device
CN107846702B (en) Resource allocation method for enhanced physical downlink control channel
CN114828050A (en) Method, device, equipment and medium for determining service capacity
CN113490281A (en) Method and device for scheduling optimization of 5G NR (noise generation and noise reduction) system
WO2019214553A1 (en) Resource allocation method and apparatus
CN111526583A (en) Resource allocation method, resource acquisition method, network device and terminal
CN111385902A (en) Data scheduling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination