CN108989244A - Data processing method, device, storage medium and electronic equipment - Google Patents
Data processing method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108989244A CN108989244A CN201810949914.0A CN201810949914A CN108989244A CN 108989244 A CN108989244 A CN 108989244A CN 201810949914 A CN201810949914 A CN 201810949914A CN 108989244 A CN108989244 A CN 108989244A
- Authority
- CN
- China
- Prior art keywords
- data
- sent
- priority class
- layer
- application
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application discloses a kind of data processing method, device, storage medium and electronic equipments.This method comprises: the data of application layer are sent to network layer when current network conditions meet preset condition;In network layer, the type of data is determined, and send data to data link layer;Data in the correspondence priority class of transmit queue are sent to physical layer by the transmission sequence that in data link layer, data are divided into the correspondence priority class of transmit queue according to the type of data, and are determined according to transmit queue.The application can reduce the queuing delay of the data of specific application, improve user to the Experience Degree of specific application.
Description
Technical field
The application belongs to field of terminal technology more particularly to a kind of data processing method, device, storage medium and electronics are set
It is standby.
Background technique
With the continuous development of terminal technology, the application in terminal is also more and more abundant.But it with increasing for application, needs
The data being sent in network are also more and more.Currently, terminal before sending data in network, needs uniformly to put data
In enqueue, data are then taken out from queue, are sent it in network.And mass data is generated in a certain application and needs to send out
When sending into network, or when current network is second-rate, often make the data of some applications pass through in the queue compared with
Prolonged queuing process brings bad application to experience so that it can not be sent in network in time to user.
Summary of the invention
The embodiment of the present application provides a kind of data processing method, device, storage medium and electronic equipment, it is possible to reduce specific
The queuing delay of the data of application.
The embodiment of the present application provides a kind of data processing method, comprising:
When current network conditions meet preset condition, the data of application layer are sent to network layer;
In the network layer, the type of the data is determined, and the data are sent to data link layer;
In the data link layer, the correspondence that the data are divided into transmit queue according to the type of the data is preferential
In grade classification, and the transmission sequence determined according to the transmit queue, it will be in the correspondence priority class of the transmit queue
Data are sent to physical layer.
The embodiment of the present application provides a kind of data processing equipment, comprising:
Application layer sending module, for when current network conditions meet preset condition, the data of application layer to be sent to
Network layer;
Network layer sending module, for determining the type of the data, and the data are sent in the network layer
Data link layer;
Data link layer sending module, in the data link layer, according to the type of the data by the data
The transmission sequence for being divided into the correspondence priority class of transmit queue, and being determined according to the transmit queue, by the transmission
Data in the correspondence priority class of queue are sent to physical layer.
The embodiment of the present application provides a kind of storage medium, is stored thereon with computer program, when the computer program exists
When being executed on computer, so that the computer executes the step in data processing method provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute
The computer program stored in memory is stated, for executing the step in data processing method provided by the embodiments of the present application.
In the embodiment of the present application, when current network conditions meet preset condition, terminal can pass through the class of determining data
The data of specific application are divided into the first priority class by type, and the data of other application are divided into the second priority class
In not, and the other transmission sequence of the first priority class is higher than the second priority class, therefore can be excellent by the data of specific application
It is first sent in network, reduces the queuing delay of the data of specific application, improve user to the Experience Degree of specific application.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made
And its advantages are apparent.
Fig. 1 is the flow diagram of data processing method provided by the embodiments of the present application.
Fig. 2 is another flow diagram of data processing method provided by the embodiments of the present application.
Fig. 3 is the another flow diagram of data processing method provided by the embodiments of the present application.
Fig. 4 is the schematic diagram of a scenario of data processing method provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of data processing equipment provided by the embodiments of the present application.
Fig. 6 is another structural schematic diagram of data processing equipment provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Diagram is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
It is understood that the executing subject of the embodiment of the present application can be the end of smart phone or tablet computer etc.
End equipment.
Referring to Fig. 1, Fig. 1 is the flow diagram of data processing method provided by the embodiments of the present application, process be can wrap
It includes:
101, when current network conditions meet preset condition, the data of application layer are sent to network layer.
102, it in network layer, determines the type of data, and sends the data to data link layer.
103, in data link layer, which is divided into the correspondence priority class of transmit queue according to the type of data
In, and the transmission sequence determined according to transmit queue, the data in the correspondence priority class of transmit queue are sent to physics
Layer.
It is understood that data can by application layer application generate, then terminal can by the data of application layer into
Row encapsulation, is sent to network layer via transport layer, is then packaged by network layer to data, be sent to data link layer, then
Data are packaged by data link layer, are sent to physical layer, so that physical layer is sent data in network.And current
When network quality is poor or when a certain application needs to be sent in network there are mass data, often make other application
The data of generation cannot be sent in network in time.
In the present embodiment, when current network conditions meet preset condition, the data of application layer can be sent to net
Network layers.Wherein, when current network quality is lower than preset threshold, then it can determine that current network conditions meet preset condition;Or
Person can determine current network conditions when detecting there is currently needing to be sent to physical layer more than the data for presetting size
Meet preset condition.Wherein, preset threshold and default size can be configured according to the actual situation, not limited specifically herein
System.
When data reach network layer, in addition to the process of traditional encapsulation of data, it is also necessary to determine the type of data.Specifically
, each application has a corresponding application numbers, which can uniquely refer to the application.And it is produced when applying
Data when needing to send the data in network, can carry this using corresponding number in data.In this way, working as
When data are sent to network layer, network layer can be determined by what is carried in identification data using corresponding number
The type of the data.
Such as, if it is desired to the high priority data of a certain specific application is sent, then can data be sent to network layer it
Afterwards, by identification data number identify the data whether be the specific application data, if the data be specific application number
According to, it is determined that the data are the data of the first kind, can be marked to the data, be then forwarded to data link layer;If
The data are not the data of specific application, it is determined that the data are the data of Second Type, then the data are not marked, directly
It receives and sends to data link layer.It is worth noting that the data of the first kind are the data being preferentially sent in network, the data
It may come from an application, can be from multiple applications;The data of Second Type are without being preferentially sent in network
Data, the data can be from applying in one, or from multiple applications, specifically be subject to actual demand, herein not
Make concrete restriction.
In the present embodiment, transmit queue may include the first priority class and the second priority class, wherein first
The transmission sequence of data in priority class is higher than the second priority class.
In data link layer, data can be divided into the correspondence priority class of transmit queue according to the type of data
In.For example, can check that data with the presence or absence of label, mark if it exists, it is determined that the data are the after receiving the data
Then the data can be divided into the first priority class of transmit queue by the data of one type;It marks if it does not exist, then
It determines that the data are the data of Second Type, then can be divided into the data in the second priority class of transmit queue.
When needing the data in transmit queue being sent to physical layer, so that the network interface card of physical layer sends the data to net
When in network, the data in the correspondence priority class of transmit queue can be sent according to the transmission sequence that transmit queue determines
To physical layer, then sent the data in network by the network interface card of physical layer.In the present embodiment, due to the first priority class
The transmission sequence of data in not is higher than the second priority class, therefore can first send the data in the first priority class,
The data in the second priority class are sent and then sent to the data in the first priority class.
Particularly, transmit queue can also include third priority classification, wherein data in the first priority class
Transmission sequence is higher than the second priority class, and the transmission sequence of the data in the second priority class is higher than third priority class
Not.Due to that there can be a default queue in terminal, and since the data volume generated when terminal booting is less, can open
The default queue is deleted when machine, transmit queue is then added.Due to delete default queue and be added transmit queue need when
Between it is shorter, and the data generated between can be sent directly in network, therefore will not be affected greatly to terminal.And
When current network quality is unsatisfactory for preset condition, the second priority class placed data into transmit queue can be defaulted
In, directly data are sent according to the rule of first in first out;And when current network quality meets preset condition, according to the present embodiment
In step send data;Or following steps can be executed after transmit queue is added in terminal: the data of application layer are sent out
It send to network layer;In network layer, the type of data is determined, and send the data to data link layer;In data link layer, root
The data are divided into the correspondence priority class of transmit queue according to the type of data;In data link layer, according to transmission team
Determining transmission sequence is arranged, the data in the correspondence priority class of transmit queue are sent to physical layer, can be not required in this way
Consider current network conditions, after transmit queue is added in terminal, the high priority data of specific application can be sent.
In the present embodiment, when current network conditions meet preset condition, terminal can be by the type of determining data, will
The data of specific application are divided into the first priority class, and the data of other application are divided into the second priority class,
And the other transmission sequence of the first priority class is higher than the second priority class, therefore the high priority data of specific application can be sent
Into network, reduce the queuing delay of the data of specific application, improves user to the Experience Degree of specific application.
Referring to Fig. 2, Fig. 2 is another flow diagram of data processing method provided by the embodiments of the present application, process can
To include:
201, when current network conditions meet preset condition, the data of application layer are sent to network layer.
When current network conditions meet preset condition, before the step of data of application layer are sent to network layer, also
May include:
Whether detection current network quality is lower than preset threshold;
If detecting current network quality lower than preset threshold, it is determined that current network conditions meet preset condition.
When current network conditions meet preset condition, before the step of data of application layer are sent to network layer, also
May include:
Detection currently needs to be sent to physical layer with the presence or absence of the data for being more than default size;
If detecting, there is currently the data for being more than default size to need to be sent to physical layer, it is determined that current network conditions
Meet preset condition.
Specifically, whether preset threshold can be lower than based on network quality parameters detection current network quality.
Wherein, network quality parameters can be network signal intensity, network transfer delay or network packet loss rate etc..It is based on
This, terminal determines whether network quality is lower than preset threshold in accordance with the following methods;
(1), whether the network signal intensity of terminal real-time monitoring current network is lower than preset signal strength threshold, is supervising
When measuring network signal intensity lower than preset signal strength threshold, determine current network quality lower than preset threshold;
(2), whether the network transfer delay of terminal real-time monitoring current network is greater than preset network transfer delay threshold value,
When detecting that network transfer delay is greater than preset network transfer delay threshold value, determine that current network quality is lower than default threshold
Value;
(3), whether the network packet loss rate of terminal real-time monitoring current network is greater than preset network packet loss rate threshold value, is examining
When measuring network packet loss rate greater than preset network packet loss rate, determine current network quality lower than preset threshold.
It is worth noting that detection network quality whether be lower than preset threshold method be not limited only to it is described above.
It is understood that in a certain application that current network is second-rate or application layer is current, there are mass data to need
When being sent in network, it be sent to the data of other application can not in network in time, other application caused to go out
Existing Caton refreshes the problems such as failing.In order to avoid the generation of this phenomenon, default threshold can be lower than in current network quality
Value or when needing to be sent to physical layer there is currently the data for being more than default size, terminal can be by the number of some specific applications
According to being preferentially sent in network herein, wherein default size can be 10MB, 30MB or 50MB, etc., not limit specifically
System, is subject to actual demand.Therefore, terminal can first detect whether current network quality is lower than preset threshold or detection is current
It needs to be sent to physical layer with the presence or absence of the data for being more than default size, if current network quality is lower than preset threshold, or work as
It is preceding to need to be sent to physical layer in the presence of the data for being more than default size, it is determined that current network conditions meet preset condition;If really
To determine current network conditions and is unsatisfactory for preset condition, then the rule that can first send according to the data of advanced enqueue sends data,
Without certain high priority datas are sent.It is worth noting that when determining that current network conditions are unsatisfactory for preset condition, such as
Where reason data are not limited only to above description.
When current network conditions meet preset condition, then the data of application layer can be sent to network layer.
202, in network layer, whether detection data meets preset requirement, if the data meet preset requirement, enters 203,
If the data are unsatisfactory for preset requirement, enter 205.
Wherein, as shown in figure 3, the step of whether detection data meets preset requirement, may include:
2021, the first coding of data is obtained.
2022, code set is obtained, code set includes at least one second coding.
2023, judge in code set whether to include identical second coding with the first coding, if including in code set
Identical second coding, then enter 2024 with the first coding;If not including being compiled with the first coding identical second in code set
Code then enters 2025.
2024, determine that data meet preset requirement.
2025, determine that data are unsatisfactory for preset requirement.
203, it determines that data are the data of the first kind, and sends the data to data link layer.
204, in data link layer, the data of the first kind are divided into the first priority class.
205, it determines that data are the data of Second Type, and sends the data to data link layer.
206, in data link layer, the data of Second Type are divided into the second priority class.
After network layer receives data, the first coding of the data can be first obtained.Wherein, first coding is unique
Refer to application belonging to the data.Each application in terminal can have its corresponding coding, and the coding of each application is not
Together, which can uniquely refer to the application.For example, the coding of X letter application can be able to be for the coding of the Baoying County 0001, X
The coding that this live streaming application is broadcast live in 0002 or X fish can be 0003, etc..
In some embodiments, the high priority data that can preset certain applications in terminal is sent in network.
For example, each application has corresponding unique encodings;The available needs selected of terminal are preferential to send answering for data
Then coding gets up to form code set these code sets;And after application generates data, it can be in the number
This is added using corresponding coding according to middle.After data reach network layer, by the coding and code set by the data
Coding be compared, can determine in code set whether to include the coding of the data, if including the number in code set
According to coding, can determine that the data meet preset requirement, i.e., the data are the data for needing preferentially to be sent in network;If
Do not include the coding of the data in code set, can determine that the data are unsatisfactory for preset requirement, i.e., the data are not need
The data being preferentially sent in network.
Specifically, always generating more or less data when application is opened and needing to be sent in network.Assuming that setting in advance
The data for setting live streaming class application can be preferentially sent in network, therefore, the coding of all live streaming class applications can be formed and be compiled
Code collection is closed.After data reach network layer, so that it may detect in code set whether include the data coding, if the data
Belong to the data of live streaming class application, then must include the coding of the data in code set, thus may determine that the data are full
Sufficient preset requirement, the i.e. data are the data of the first kind;If the data belong to the data of non-live streaming class application, then coded set
It must not include the coding of the data in conjunction, thus may determine that the data are unsatisfactory for preset condition, i.e., the data are the second class
The data of type.
Particularly, the high priority data that can also preset shopping class application is sent in network, then can be by terminal
In it is all shopping classes application code sets get up to form code set, after receiving data so as to network layer, by the data
Coding be compared with the coding in code set, and then determine whether the data are to need preferentially to be sent to number in network
According to.Wherein, preset any class application or which application high priority data be sent in network can according to the actual situation and
It is fixed, it is not specifically limited herein.
When network layer determines that data are the data of the first kind, which can be marked, then by the number
According to being sent to data link layer;And when network layer determines that data are the data of Second Type, then the data are not marked,
Directly send the data to data link layer.
After data link layer receives data, then it can detect whether the data deposit by the filter of transmit queue
It is marking, is identifying that the data are the data of the first kind or the data of Second Type with this.Specifically, if detecting data
There are labels, it is determined that the data are the data of the first kind, which can be divided into the first priority class;If inspection
Measuring data, there is no labels, it is determined that the data are the data of Second Type, which can be divided into the second priority
In classification.Wherein, the function of filter are as follows: corresponding data are divided into the correspondence of transmit queue according to the division rule of setting
It in priority class, can be not specifically limited herein by user configuration, be subject to actual demand.
207, the data in the first priority class are sent to physical layer.
208, when the data in the first priority class of detection are sent, the data in the second priority class are sent
To physical layer.
In the present embodiment, the transmission sequence of the data in the first priority class is higher than the second priority class.Therefore
Data in first priority class can be sent to physical layer, be sent it to the data in the first priority class
Afterwards, the data in the second priority class are sent to physical layer.
In some embodiments, terminal can be configured according to the following steps, so that the data of a certain application
Preferentially it is sent in network.For example, the live streaming class application that user opens in mobile phone is broadcast live, and it is inevitable that the data generated are broadcast live
Immediately it to upload in network, spectators could watch live content glibly, therefore this sentences and preferentially sends a certain live streaming class and answer
Data instance.
The coding of live streaming class application is assumed to be 10010, and the data markers mark value to live streaming class application is 0x100,
It is as follows:
iptables-t mangle-I OUTPUT-m owner-uid-owner 10010-j MARK-set-mark
0x100。
The queue defaulted on network card interface is deleted, it is assumed that the entitled wlan0 of the corresponding interface of network interface card when booting (due to producing
Raw data are fewer, can delete the default queue in booting), as follows:
tc qdisc del dev wlan0root。
Transmit queue is added on wlan interface, transmit queue default has 3 subclasses, respectively classid 1:1,
Classid 1:2, classid 1:3;Height is respectively corresponded, in, lower priority class, wherein the data in high priority class
Transmission sequence be higher than middle priority class, it is (right that the transmission sequence of the data in middle priority class is higher than lower priority class
Answer, the transmit queue can be added at once after default queue deletion), as follows:
tc qdisc add dev wlan0root handle 1:prio。
The data marked with 0x100mark value are divided into high priority class by the configurating filtered device, as follows:
tc filter add dev wlan0parent 1:protocol ip prio 1handle 0x100fw
classid 1:1。
After terminal is set according to above step, the high priority data which applies can be sent to network
In.
In the present embodiment, when current network conditions meet preset condition, terminal can be by the type of determining data, will
The data of specific application are divided into the first priority class, and the data of other application are divided into the second priority class,
And the other transmission sequence of the first priority class is higher than the second priority class, therefore the high priority data of specific application can be sent
Into network, reduce the queuing delay of the data of specific application, improves user to the Experience Degree of specific application.
Referring to Fig. 4, Fig. 4 is the schematic diagram of a scenario of data processing method provided by the embodiments of the present application.
In some embodiments, one trigger button can be set in terminal, whether which selects certain to answer for triggering
High priority data is sent.For example, user can click the trigger button, it can show a list of application, the application column
Table includes application all in terminal.After user clicks certain application, a prompting message can be generated, which uses
In prompting the user whether to select to send the high priority data of the application, if user's selection is, then it represents that user selects the application
High priority data be sent in network.
In some embodiments, terminal can preset some target applications.Once terminal detects some target
When using being currently running, so that it may when terminal current network conditions meet preset condition, by the high priority data of the target application
It is sent in network.The application that the data of generation can be sent in network by these target applications immediately for needs.For example, with
The live streaming class application that family is opened in mobile phone is broadcast live, and the data generated, which are broadcast live, to be uploaded in network immediately, spectators
Live content could be watched glibly.
As shown in figure 4, below with the preferential data instance for sending live streaming class application, wherein it includes that X fish is straight that live streaming class, which is applied,
Broadcast application.Come in detail below with the data and the non-data instance that data and X treasured that class application X believes are broadcast live that send the live streaming of X fish
Aid in illustrating the solution of the present invention.
Firstly, terminal can obtain the coding of live streaming class application in advance, it is then combined into code set, wherein assuming that X fish
Live streaming be encoded to 0001, X letter be encoded to 0002, X it is precious be encoded to 0003.Therefore also include in code set 0001 this
Coding.
Assuming that current network conditions meet preset condition, and the live streaming of X fish, X letter and X treasured all produce data needs and are uploaded to
Physical layer.Therefore, the data for data, the data of X treasured and X the fish live streaming that the X of application layer believes can be sent to network layer.Its
In, the data of application layer need to be sent to network layer by transport layer, but the processing of transport layer is also only merely to seal to data
Dress, therefore do not repeat specifically herein.
After network layer receives data, the data received can be identified.Be specifically as follows: obtaining should
The coding and code set of data, whether include with the coding of the data identical coding, if coded set if detecting in code set
It include coding identical with the coding of the data in conjunction, it is determined that the data meet preset requirement, i.e., the data are the first kind
Data, then the data can be marked;If in code set not including coding identical with the coding of the data,
Determine that the data are unsatisfactory for preset requirement, i.e. the data are the data of Second Type, then the data can not be marked;Its
The data needs of the middle first kind are preferentially sent in network.Therefore, after the data of X fish live streaming reach network layer, network
Layer can determine that it is the data of the first kind by identification, therefore the data can be marked;When the number of X letter and X treasured
After reaching network layer, network layer can determine that it is the data of Second Type by identification, therefore can not be to the data
It is marked.After network layer determines the type of the data received, data link layer can be sent it to.
After data link layer receives data, so that it may the data are detected with the presence or absence of label using filter, if
There is label in the data, it is determined that the data are the data of the first kind, therefore the data can be divided into transmit queue
In first priority class;If there is no labels for the data, it is determined that the data are the data of Second Type, therefore can should
Data are divided into the second priority class of transmit queue.Therefore, after the data of X fish live streaming reach data link layer,
Filter can detect that the data have label, it is thus determined that the data are the data of the first kind, therefore can should
Data are divided into the first priority class;And after the data of X letter and X treasured reach data link layer, filter detects
There is no labels for the data, so that it is determined that the data are the data of Second Type, therefore it is excellent the data can be divided into second
In first grade classification.In the present embodiment, the transmission sequence of the data in the first priority class is higher than the second priority class, because
Data in first priority class can be sent to physical layer by this, be sent it to the data in the first priority class
Afterwards, the data in the second priority class are sent to physical layer.Since the data of X fish live streaming are divided into the first priority class
In not, and the data of X letter and X treasured are divided into the second priority class, therefore can guarantee that the data of X fish live streaming can be excellent
It is first sent in network, reduces the queuing delay of the data of X fish live streaming, to improve user to including the live streaming of X fish
Live streaming class application Experience Degree.
In some embodiments, before the data in the second priority class are sent, if there is data to be drawn again
It assigns in the first priority class, can first suspend the data sent in the second priority class at this time, wait the first priority
Data in classification are sent and then send the data in the second priority class, so that the data of specific application
The phenomenon that being preferentially sent in network, avoid Caton, frequently occurs, and brings preferably application experience to user.
In some embodiments, by taking data is forms as multiple data packets as an example, and the data in transmit queue
Bao Ze is sent in network in such a way that a data packet is sent and retransmits as another data packet.Therefore, exist
Before multiple data packets in second priority class are sent, if there is data packet to be divided into the first priority class again
In, the data packet that the data packet sent can also be sent and then be sent at this time in the first priority class.
In the present embodiment, when current network conditions meet preset condition, terminal can be by the type of determining data, will
The data of specific application are divided into the first priority class, and the data of other application are divided into the second priority class,
And the other transmission sequence of the first priority class is higher than the second priority class, therefore the high priority data of specific application can be sent
Into network, reduce the queuing delay of the data of specific application, improves user to the Experience Degree of specific application.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of data processing equipment provided by the embodiments of the present application.Data processing dress
Setting 300 may include: application layer sending module 301, network layer sending module 302 and data link layer sending module 303.
Application layer sending module 301, for when current network conditions meet preset condition, the data of application layer to be sent
To network layer.
Network layer sending module 302, for determining the type of the data, and the data are sent in network layer
Data link layer.
Data link layer sending module 303, for being drawn the data according to the type of the data in data link layer
The transmission sequence assigned in the correspondence priority class of transmit queue, and determined according to the transmit queue, by the transmission team
Data in the correspondence priority class of column are sent to physical layer.
In some embodiments, the network layer sending module 302, can be specifically used for:
Detect whether the data meet preset requirement;
If the data meet preset requirement, it is determined that the data are the data of the first kind.
The data link layer sending module 303, can be specifically used for:
The data of the first kind are divided into the first priority class.
The network layer sending module 302, can also be specifically used for:
If the data are unsatisfactory for preset requirement, it is determined that the data are the data of Second Type.
The data link layer sending module 303, can also be specifically used for:
The data of the Second Type are divided into the second priority class.
The transmission sequence of data in first priority class is higher than the second priority class, the data link layer
Sending module 303 can be specifically used for:
Data in first priority class are sent to physical layer;
When the data in detection first priority class are sent, send in second priority class
Data are to physical layer.
In some embodiments, the network layer sending module 302, can also be specifically used for:
Obtain the first coding of the data;
Code set is obtained, the code set includes at least one second coding;
Judge in the code set whether to include identical second coding with first coding;
If in the code set including with first coding identical second coding, it is determined that the data meet pre-
If it is required that;
If in the code set not including with first coding identical second coding, it is determined that the data are discontented
Sufficient preset requirement.
As shown in fig. 6, in some embodiments, described device can also include:
Detection module 304, for detecting whether current network quality is lower than preset threshold;If detecting current network quality
Lower than preset threshold, it is determined that current network conditions meet preset condition.
In some embodiments, the detection module 304, can be also used for: detection is currently with the presence or absence of more than default
The data of size need to be sent to physical layer;If detecting, there is currently the data for being more than default size to need to be sent to physics
Layer, it is determined that current network conditions meet preset condition.
In the present embodiment, when current network conditions meet preset condition, terminal can be by the type of determining data, will
The data of specific application are divided into the first priority class, and the data of other application are divided into the second priority class,
And the other transmission sequence of the first priority class is higher than the second priority class, therefore the high priority data of specific application can be sent
Into network, reduce the queuing delay of the data of specific application, improves user to the Experience Degree of specific application.
The embodiment of the present application provides a kind of computer-readable storage medium, computer program is stored thereon with, when described
When computer program executes on computers, so that the computer is executed as in data processing method provided in this embodiment
Step.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute
The computer program stored in memory is stated, for executing the step in data processing method provided in this embodiment.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet computer or smart phone.Referring to Fig. 7,
Fig. 7 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
The mobile terminal 400 may include the components such as microphone 401, memory 402, processor 403.Those skilled in the art
Member is appreciated that mobile terminal structure shown in Fig. 7 does not constitute the restriction to mobile terminal, may include more than illustrating
Or less component, perhaps combine certain components or different component layouts.
Microphone 401 can be used for picking up the voice etc. of user's sending.
Memory 402 can be used for storing application program and data.It include that can hold in the application program that memory 402 stores
Line code.Application program can form various functional modules.Processor 403 is stored in the application journey of memory 402 by operation
Sequence, thereby executing various function application and data processing.
Processor 403 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the application program being stored in memory 402, and is called and is stored in memory 402
Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
In the present embodiment, the processor 403 in mobile terminal can be according to following instruction, will be one or more
The corresponding executable code of the process of application program is loaded into memory 402, and is run by processor 403 and be stored in storage
Application program in device 402, to realize step:
When current network conditions meet preset condition, the data of application layer are sent to network layer;
In network layer, the type of the data is determined, and the data are sent to data link layer;
In data link layer, the data are divided into the correspondence priority class of transmit queue according to the type of the data
In not, and the transmission sequence determined according to the transmit queue, by the data in the correspondence priority class of the transmit queue
It is sent to physical layer.
Referring to Fig. 8, mobile terminal 500 may include microphone 501, memory 502, processor 503, input unit
504, the components such as output unit 505, loudspeaker 506.
Microphone 501 can be used for picking up the voice etc. of user's sending.
Memory 502 can be used for storing application program and data.It include that can hold in the application program that memory 502 stores
Line code.Application program can form various functional modules.Processor 503 is stored in the application journey of memory 502 by operation
Sequence, thereby executing various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the application program being stored in memory 502, and is called and is stored in memory 502
Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
Input unit 504 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.
Output unit 505 can be used for showing information input by user or the information and mobile terminal that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Output unit may include display panel.
In the present embodiment, the processor 503 in mobile terminal can be according to following instruction, will be one or more
The corresponding executable code of the process of application program is loaded into memory 502, and is run by processor 503 and be stored in storage
Application program in device 502, to realize step:
When current network conditions meet preset condition, the data of application layer are sent to network layer;
In network layer, the type of the data is determined, and the data are sent to data link layer;
In data link layer, the data are divided into the correspondence priority class of transmit queue according to the type of the data
In not, and the transmission sequence determined according to the transmit queue, by the data in the correspondence priority class of the transmit queue
It is sent to physical layer.
In some embodiments, it when processor 503 executes the step of the type of the determination data, can hold
Row: detect whether the data meet preset requirement;If the data meet preset requirement, it is determined that the data are the first kind
The data of type.Then processor 503 executes the correspondence that the data are divided into transmit queue by the type according to the data
When step in priority class, it can execute: the data of the first kind are divided into the first priority class.
In some embodiments, processor 503 can also be performed: if the data are unsatisfactory for preset requirement, it is determined that
The data are the data of Second Type.Then processor 503 executes the type according to the data and divides the data
When to step in the correspondence priority class of transmit queue, it can execute: the data of the Second Type are divided into second
In priority class.
In some embodiments, the transmission sequence of the data in first priority class is higher than the second priority class
Not, processor 503 executes the transmission sequence determined according to the transmit queue, by the correspondence priority of the transmit queue
It when data in classification are sent to the step of physical layer, can execute: send data in first priority class to object
Manage layer;When the data in detection first priority class are sent, the number in second priority class is sent
According to physical layer.
In some embodiments, processor 503 executes the step of whether the detection data meet preset requirement
When, it can execute: obtain the first coding of the data;Obtain code set, the code set include at least one second
Coding;Judge in the code set whether to include identical second coding with first coding;If in the code set
Including the second coding identical with first coding, it is determined that the data meet preset requirement;If in the code set
It does not include identical second coding with first coding, it is determined that the data are unsatisfactory for preset requirement.
In some embodiments, processor 503 executes described when current network conditions meet preset condition, will apply
Before the step of data of layer are sent to network layer, can also be performed: whether detection current network quality is lower than preset threshold;If
Detect current network quality lower than preset threshold, it is determined that current network conditions meet preset condition.
In some embodiments, processor 503 executes described when current network conditions meet preset condition, will apply
Before the step of data of layer are sent to network layer, can also be performed: detection is currently with the presence or absence of the data for being more than default size
It needs to be sent to physical layer;If detecting, there is currently the data for being more than default size to need to be sent to physical layer, it is determined that when
Preceding Network status meets preset condition.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the detailed description above with respect to data processing method, details are not described herein again.
Data processing method in the data processing equipment provided by the embodiments of the present application and foregoing embodiments belongs to together
One design can run either offer method in the data processing method embodiment on the data processing equipment,
Specific implementation process is detailed in the data processing method embodiment, and details are not described herein again.
It should be noted that those of ordinary skill in the art can for the data processing method described in the embodiment of the present application
With understand realize the embodiment of the present application described in data processing method all or part of the process, be can by computer program come
Relevant hardware is controlled to complete, the computer program can be stored in a computer-readable storage medium, such as be stored in
It in memory, and is executed by least one processor, in the process of implementation may include the embodiment such as the data processing method
Process.Wherein, the storage medium can be magnetic disk, CD, read-only memory (ROM, Read Only Memory), random
Access/memory body (RAM, Random Access Memory) etc..
For the data processing equipment of the embodiment of the present application, each functional module be can integrate in a processing core
In piece, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module.On
It states integrated module both and can take the form of hardware realization, can also be realized in the form of software function module.The collection
If at module realized in the form of software function module and when sold or used as an independent product, also can store
In one computer-readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
Above to a kind of data processing method, device, storage medium and electronic equipment provided by the embodiment of the present application
It is described in detail, used herein a specific example illustrates the principle and implementation of the invention, the above reality
The explanation for applying example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art,
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (10)
1. a kind of data processing method characterized by comprising
When current network conditions meet preset condition, the data of application layer are sent to network layer;
In the network layer, the type of the data is determined, and the data are sent to data link layer;
In the data link layer, the data are divided into the correspondence priority class of transmit queue according to the type of the data
In not, and the transmission sequence determined according to the transmit queue, by the data in the correspondence priority class of the transmit queue
It is sent to physical layer.
2. data processing method according to claim 1, which is characterized in that the step of the type of the determination data
Suddenly, comprising:
Detect whether the data meet preset requirement;
If the data meet preset requirement, it is determined that the data are the data of the first kind;
The data are divided into the step in the correspondence priority class of transmit queue by the type according to the data, packet
It includes:
The data of the first kind are divided into the first priority class.
3. data processing method according to claim 2, which is characterized in that the method also includes:
If the data are unsatisfactory for preset requirement, it is determined that the data are the data of Second Type;
The data are divided into the step in the correspondence priority class of transmit queue by the type according to the data, packet
It includes:
The data of the Second Type are divided into the second priority class.
4. data processing method according to claim 3, which is characterized in that data in first priority class
Transmission sequence is higher than the second priority class, the transmission sequence determined according to the transmit queue, by the transmit queue
Correspondence priority class in data the step of being sent to physical layer, comprising:
Data in first priority class are sent to the physical layer;
When the data in detection first priority class are sent, the data in second priority class are sent
To the physical layer.
5. data processing method according to claim 2, which is characterized in that it is default whether the detection data meet
It is required that the step of, comprising:
Obtain the first coding of the data;
Code set is obtained, the code set includes at least one second coding;
Judge in the code set whether to include identical second coding with first coding;
If in the code set including with first coding identical second coding, it is determined that the data meet default want
It asks;
If in the code set not including with first coding identical second coding, it is determined that the data are unsatisfactory for pre-
If it is required that.
6. data processing method according to any one of claims 1 to 5, which is characterized in that described in current network conditions
When meeting preset condition, before the step of data of application layer are sent to network layer, further includes:
Whether detection current network quality is lower than preset threshold;
If detecting current network quality lower than preset threshold, it is determined that current network conditions meet preset condition.
7. data processing method according to any one of claims 1 to 5, which is characterized in that described in current network conditions
When meeting preset condition, before the step of data of application layer are sent to network layer, further includes:
Detection currently needs to be sent to the physical layer with the presence or absence of the data for being more than default size;
If detecting, there is currently the data for being more than default size to need to be sent to the physical layer, it is determined that current network conditions
Meet preset condition.
8. a kind of data processing equipment characterized by comprising
Application layer sending module, for when current network conditions meet preset condition, the data of application layer to be sent to network
Layer;
Network layer sending module, for determining the type of the data, and the data are sent to data in the network layer
Link layer;
Data link layer sending module, for being divided the data according to the type of the data in the data link layer
Into the correspondence priority class of transmit queue, and the transmission sequence determined according to the transmit queue, by the transmit queue
Correspondence priority class in data be sent to physical layer.
9. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer program
When running on computers, so that the computer perform claim requires 1 to 7 described in any item data processing methods.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory
Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory
Benefit requires 1 to 7 described in any item data processing methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810949914.0A CN108989244B (en) | 2018-08-20 | 2018-08-20 | Data processing method, data processing device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810949914.0A CN108989244B (en) | 2018-08-20 | 2018-08-20 | Data processing method, data processing device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108989244A true CN108989244A (en) | 2018-12-11 |
CN108989244B CN108989244B (en) | 2022-08-05 |
Family
ID=64554161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810949914.0A Active CN108989244B (en) | 2018-08-20 | 2018-08-20 | Data processing method, data processing device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989244B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112752284A (en) * | 2020-12-30 | 2021-05-04 | 惠州Tcl移动通信有限公司 | Application network optimization method, device, equipment and medium under double WIFI |
CN113949674A (en) * | 2020-06-29 | 2022-01-18 | 成都鼎桥通信技术有限公司 | Data transmission method, system, network equipment, media equipment and receiving equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101309195A (en) * | 2008-06-18 | 2008-11-19 | 华为技术有限公司 | Method and apparatus for guarantee quality of service of secure socket layer of virtual private network |
CN101557386A (en) * | 2008-04-10 | 2009-10-14 | 华为技术有限公司 | Method and device for sending data and method and device for receiving data |
CN103929490A (en) * | 2014-04-28 | 2014-07-16 | 中国科学院微电子研究所 | Data transmission method of body area network system |
CN107612846A (en) * | 2017-11-01 | 2018-01-19 | 北京天创凯睿科技有限公司 | A kind of business datum adaptive transmission method and device |
CN107743096A (en) * | 2017-10-13 | 2018-02-27 | 北京小米移动软件有限公司 | Network optimized approach, device, terminal and storage medium |
CN107846363A (en) * | 2017-09-06 | 2018-03-27 | 天津大学 | Space flight Ethernet time triggered compatible bus business multiplexing of transmission method |
-
2018
- 2018-08-20 CN CN201810949914.0A patent/CN108989244B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557386A (en) * | 2008-04-10 | 2009-10-14 | 华为技术有限公司 | Method and device for sending data and method and device for receiving data |
CN101309195A (en) * | 2008-06-18 | 2008-11-19 | 华为技术有限公司 | Method and apparatus for guarantee quality of service of secure socket layer of virtual private network |
CN103929490A (en) * | 2014-04-28 | 2014-07-16 | 中国科学院微电子研究所 | Data transmission method of body area network system |
CN107846363A (en) * | 2017-09-06 | 2018-03-27 | 天津大学 | Space flight Ethernet time triggered compatible bus business multiplexing of transmission method |
CN107743096A (en) * | 2017-10-13 | 2018-02-27 | 北京小米移动软件有限公司 | Network optimized approach, device, terminal and storage medium |
CN107612846A (en) * | 2017-11-01 | 2018-01-19 | 北京天创凯睿科技有限公司 | A kind of business datum adaptive transmission method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949674A (en) * | 2020-06-29 | 2022-01-18 | 成都鼎桥通信技术有限公司 | Data transmission method, system, network equipment, media equipment and receiving equipment |
CN112752284A (en) * | 2020-12-30 | 2021-05-04 | 惠州Tcl移动通信有限公司 | Application network optimization method, device, equipment and medium under double WIFI |
Also Published As
Publication number | Publication date |
---|---|
CN108989244B (en) | 2022-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10853099B2 (en) | System, method, and apparatus for rendering interface elements | |
US10554805B2 (en) | Information processing method, terminal, and computer-readable storage medium | |
CN104584513B (en) | Select the apparatus and method for sharing the device of operation for content | |
CN104598513B (en) | A kind of method of data flow control and system based on web page frame | |
CN108132735B (en) | Terminal and application control method | |
CN106778117A (en) | Authority open method, apparatus and system | |
CN110162353A (en) | Multi-page switching method and equipment, storage medium, terminal | |
CN114830080B (en) | Data distribution flow configuration method and device, electronic equipment and storage medium | |
CN109086814A (en) | A kind of data processing method, device and the network equipment | |
CN104516890B (en) | Method for processing business, device and electronic equipment | |
CN108769234A (en) | Using method for down loading, device, storage medium and electronic equipment | |
CN109376015A (en) | Solution and system are blocked in log for task scheduling system | |
CN102637127A (en) | Method for controlling mouse modules and electronic device | |
CN109240573A (en) | A kind of folder management method thereof, terminal device and computer readable storage medium | |
CN108984142A (en) | Multi-screen display method, device, storage medium and electronic equipment | |
CN107370661A (en) | Message sending method and device based on contact list and electronic equipment | |
CN107111491A (en) | For by the universal interaction of content capture to persistent storage | |
CN108989244A (en) | Data processing method, device, storage medium and electronic equipment | |
CN114726947A (en) | Message display method and device, user terminal and readable storage medium | |
CN108287647A (en) | A kind of application operation method and device | |
CN109544665A (en) | Generation method, device and the storage medium of animation poster | |
CN110442819A (en) | Data processing method, device, storage medium and terminal | |
CN107800776A (en) | A kind of document handling method, terminal, server and computer-readable medium | |
CN114830615A (en) | Data distribution system and data distribution method | |
CN103888423A (en) | Information processing method and information processing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |