CN105764093A - Method and device for selecting data compression level - Google Patents
Method and device for selecting data compression level Download PDFInfo
- Publication number
- CN105764093A CN105764093A CN201410797027.8A CN201410797027A CN105764093A CN 105764093 A CN105764093 A CN 105764093A CN 201410797027 A CN201410797027 A CN 201410797027A CN 105764093 A CN105764093 A CN 105764093A
- Authority
- CN
- China
- Prior art keywords
- time interval
- data compression
- terminal
- data
- described terminal
- 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
Links
Abstract
The invention provides a method and device for selecting a data compression level. The method includes obtaining a message RTT value between a terminal and a network; determining the time interval of the RTT value of the terminal and selecting a data compression level corresponding to the time interval for the terminal, wherein a plurality of continuous time intervals that are not overlapped with each other are determined in advance and each time interval is corresponding to one data compression level; and performing compression treatment on data request by the terminal through the corresponding data compression level. According to the method and device provided by the invention, access experience of users with poor network quality can be improved effectively and users with good network quality are not influenced and can also obtain high-definition and complete picture resources. Data subjected to compression treatment of different levels can be provided according to different user requests, so that customized optimization is realized and the operation of a cell phone optimization system becomes more practical in use.
Description
Technical field
The present invention relates to mobile Internet and optimize field, select data compression level method for distinguishing and device particularly to one.
Background technology
Mobile Internet is one communication mode easily, has penetrated into the every field of people's work and life, has become an important service of mobile phone.In order to improve Consumer's Experience, the network improving cellphone subscriber accesses experience, and operator has carried out substantial amounts of optimization analytical work, including introducing all kinds of mobile phone wireless optimization system, mobile phone business is accelerated.Mobile phone wireless optimizes system and generally comprises data compression function, it is possible to the compression that data carry out different stage processes.Shown by actual verification work, cellphone subscriber can be improved based on mobile phone wireless optimization system and access quality, improve user's experience.
Data compression refers under the premise not losing information, and reduction data volume, to reduce document size, improves a kind of technical method of its efficiency of transmission.Or according to certain algorithm, data are reorganized, reduce the redundancy of data and the space of storage.Mobile phone optimizes the data compression function of system and includes the aspect such as picture compression, Text compression.Mobile phone optimizes system support and carries out the data compression dynamics of different stage, more high level compression, it is possible to reduce bigger document size.
Mobile phone optimizes system and supports the data compression of different stage, it is possible to the resource that user is asked carries out the compression of different dynamics.Data compression rank is to be set by fixing Configuration Values, in existing prioritization scheme, mobile phone optimizes system can only carry out the data compression process of same levels at synchronization to all users request, is so unfavorable for carrying out the data compression process of different stage for the network quality difference of different cellphone subscribers.
Summary of the invention
The invention provides a kind of selection data compression level method for distinguishing and device, its purpose is to solve current mobile phone and optimize the problem that all users request can only be carried out the data compression process of same levels by system at synchronization.
In order to achieve the above object, The embodiment provides a kind of selection data compression level method for distinguishing, including:
Obtain the message RTT two-way time value between terminal and network;
Determine the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
It is compressed processing to the data of described terminal request by corresponding data compression rank.
Wherein, after being compressed processing to the data of described terminal request by corresponding data compression rank, described method also includes:
Treated data are sent to described terminal.
Wherein, the message RTT two-way time value obtained between terminal and network includes:
Receiving the handshake of self terminal, and send the first confirmation signal to terminal, time point when recording described transmission the first confirmation signal is t1;
Receive the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculate the difference of t1 and t2, it is thus achieved that RTT value.
Wherein, determine the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval:
When the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
When the RTT value of described terminal belongs to the second time interval, select, for described terminal, the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
The embodiment of the present invention also provides for a kind of selection other device of data compression level, including:
Acquisition module, for obtaining the message RTT two-way time value between terminal and network;
Select module, for determining the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
Processing module, for being compressed processing to the data of described terminal request by corresponding data compression rank.
Wherein, described device also includes:
Sending module, for being sent to described terminal by the data processed through overcompression.
Wherein, described acquisition module includes:
First record sub module, for receiving the handshake of self terminal, and sends the first confirmation signal to terminal, and time point when recording described transmission the first confirmation signal is t1;
Second record sub module, for receiving the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculating sub module, for calculating the difference of t1 and t2, it is thus achieved that RTT value.
Wherein, described selection module includes:
First selects submodule, for when the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
Second selects submodule, and when the RTT value of described terminal belongs to the second time interval, the data for described terminal request select the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
The such scheme of the present invention at least includes following beneficial effect:
The embodiment of the present invention proposes a kind of selection data compression level method for distinguishing, sets up TCP by terminal with network and is connected the process of three-way handshake, measures the message two-way time between terminal and network, i.e. RTT value.RTT value situation according to different terminals, different pieces of information compression level is selected for different terminals, terminal will be returned to by the data of corresponding data compression level reason terminal request, the access that so can be effectively improved the poor user of network quality is experienced, and not affecting again the good user of network quality obtains more visible more complete picture resource simultaneously.The present invention can realize asking for different user, it is provided that the data after different stage compression process, thus realizing on-demand optimization so that mobile phone optimizes the work of system and runs closer to practical situation.
Accompanying drawing explanation
Fig. 1 is the flow chart of the selection data compression level method for distinguishing described in the embodiment of the present invention;
Fig. 2 is the structure chart of the other device of selection data compression level described in the embodiment of the present invention.
Detailed description of the invention
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, it is described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The embodiment of the present invention is for existing problem, provide a kind of selection data compression level method for distinguishing and device, by selecting corresponding data compression rank according to the message RTT two-way time value between terminal with network, the request of described terminal is compressed according to corresponding compression level, so can select different compression levels for the terminal of heterogeneous networks quality, realize on-demand optimization so that mobile phone optimizes the work of system and runs properer practical situation.
As it is shown in figure 1, The embodiment provides a kind of selection data compression level method for distinguishing, including:
Step 10, obtains the message RTT two-way time value between terminal and network;
Step 11, determine the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
The data of described terminal request are compressed processing by step 12 by corresponding data compression rank.
In a particular embodiment of the present invention, described terminal represents mobile phone, network refers to that mobile phone optimizes system, it is arranged in communication system base station or relay station one end, the embodiment of the present invention mainly solves mobile phone and optimizes the problem that the system data to different handset requests carry out the compression process of different stage, of course, it should be understood that terminal and network are not limited solely to mobile phone and mobile phone optimizes system.
In a particular embodiment of the present invention, first the message RTT two-way time value between terminal and network is obtained, then pass through the time interval at the RTT value place determining terminal, determine the network quality levels of described terminal, the corresponding network quality levels of each time interval, the RTT value of pre-defined terminal then shows that lower than 200ms the network quality of terminal is better, RTT value counterpart terminal network quality between 200ms and 500ms is general, RTT value is poor higher than 500ms counterpart terminal network quality, it is appreciated of course that, time interval can set multiple according to actual needs, network quality levels corresponding different respectively.Then different data compression rank is selected according to terminal heterogeneous networks credit rating, for the good terminal of network quality, to the data of terminal request without compression;For the terminal that network quality is general, low level compression is selected to process the data of terminal request;For the terminal that network quality is poor, level compression in the data selection of terminal request being processed, in embodiments of the present invention, compression level more high compression degree is more big.
In the above embodiment of the present invention, after being compressed processing to the data of described terminal request by corresponding data compression rank, described method also includes:
The data processed through overcompression are sent to described terminal.
In the above embodiment of the present invention, the message RTT two-way time value obtained between terminal and network includes:
Receiving the handshake of self terminal, and send the first confirmation signal to terminal, time point when recording described transmission the first confirmation signal is t1;
Receive the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculate the difference of t1 and t2, it is thus achieved that RTT value.
In a particular embodiment of the present invention, set up TCP by terminal with network and be connected the process of three-way handshake, measuring the message two-way time between terminal and network, the message between certain measuring terminals and network can be realized by existing other technologies two-way time, is here not detailed.
In the above embodiment of the present invention, determine the time interval at the RTT value place of described terminal, the data compression rank corresponding to this time interval is selected for described terminal, wherein, presetting multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval includes:
When the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
When the RTT value of described terminal belongs to the second time interval, the data for described terminal request select the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
In a particular embodiment of the present invention, the RTT value of terminal is more little, it was shown that terminal network quality is more good, then need the data compression rank that selection compression degree is more low to compress the data of this terminal request.
According to another aspect of the present invention, the embodiment of the present invention also provides for a kind of selection other device of data compression level, as in figure 2 it is shown, include:
Acquisition module 20, for obtaining the message RTT two-way time value between terminal and network;
Select module 21, for determining the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
Processing module 22, for being compressed processing to the data of described terminal request by corresponding data compression rank.
Wherein, described device also includes:
Sending module, for being sent to described terminal by the data through overcompression.
Wherein, described acquisition module includes:
First record sub module, for receiving the handshake of self terminal, and sends the first confirmation signal to terminal, and time point when recording described transmission the first confirmation signal is t1;
Second record sub module, for receiving the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculating sub module, for calculating the difference of t1 and t2, it is thus achieved that RTT value.
Wherein, described selection module includes:
First selects submodule, for when the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
Second selects submodule, and when the RTT value of described terminal belongs to the second time interval, the data for described terminal request select the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
It should be noted that this device is the device corresponding with above-mentioned selection data compression level method for distinguishing embodiment, in said method embodiment, all implementations are all suitable in the embodiment of this device, also can reach identical technique effect.
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from principle of the present invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (8)
1. one kind selects data compression level method for distinguishing, it is characterised in that including:
Obtain the message RTT two-way time value between terminal and network;
Determine the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
It is compressed processing to the data of described terminal request by corresponding data compression rank.
2. as claimed in claim 1 select data compression level method for distinguishing, it is characterised in that after being compressed processing to the data of described terminal request by corresponding data compression rank, described method also includes:
The data processed through overcompression are sent to described terminal.
3. selection data compression level method for distinguishing as claimed in claim 1, it is characterised in that the message RTT two-way time value obtained between terminal and network includes:
Receiving the handshake of self terminal, and send the first confirmation signal to terminal, time point when recording described transmission the first confirmation signal is t1;
Receive the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculate the difference of t1 and t2, it is thus achieved that RTT value.
4. selection data compression level method for distinguishing as claimed in claim 1, it is characterized in that, determine the time interval at the RTT value place of described terminal, the data compression rank corresponding to this time interval is selected for described terminal, wherein, presetting multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval includes:
When the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
When the RTT value of described terminal belongs to the second time interval, the data for described terminal request select the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
5. one kind selects the other device of data compression level, it is characterised in that including:
Acquisition module, for obtaining the message RTT two-way time value between terminal and network;
Select module, for determining the time interval at the RTT value place of described terminal, select the data compression rank corresponding to this time interval for described terminal, wherein, preset multiple continuous and non-overlapping copies time interval, the corresponding data compression level of each time interval;
Processing module, for being compressed processing to the data of described terminal request by corresponding data compression rank.
6. the selection other device of data compression level as claimed in claim 5, it is characterised in that described device also includes:
Sending module, for being sent to described terminal by the data processed through overcompression.
7. the selection other device of data compression level as claimed in claim 5, it is characterised in that described acquisition module includes:
First record sub module, for receiving the handshake of self terminal, and sends the first confirmation signal to terminal, and time point when recording described transmission the first confirmation signal is t1;
Second record sub module, for receiving the second confirmation signal that self terminal sends according to the first confirmation signal, and time point when record receives the second confirmation signal is t2;
Calculating sub module, for calculating the difference of t1 and t2, it is thus achieved that RTT value.
8. the selection other device of data compression level as claimed in claim 5, it is characterised in that described selection module includes:
First selects submodule, for when the RTT value of described terminal belongs to very first time interval, for the first data compression rank that described terminal selection very first time interval is corresponding;
Second selects submodule, and when the RTT value of described terminal belongs to the second time interval, the data for described terminal request select the second data compression rank that the second time interval is corresponding;
Wherein, when the RTT value in described very first time interval is less than RTT value in described second time interval, the compression degree that compression degree corresponding to described first data compression rank is corresponding lower than described second data compression rank.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410797027.8A CN105764093A (en) | 2014-12-19 | 2014-12-19 | Method and device for selecting data compression level |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410797027.8A CN105764093A (en) | 2014-12-19 | 2014-12-19 | Method and device for selecting data compression level |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105764093A true CN105764093A (en) | 2016-07-13 |
Family
ID=56339236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410797027.8A Pending CN105764093A (en) | 2014-12-19 | 2014-12-19 | Method and device for selecting data compression level |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105764093A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110875916A (en) * | 2018-09-04 | 2020-03-10 | 大唐移动通信设备有限公司 | Voice data transmission method and network equipment |
CN116962376A (en) * | 2023-09-20 | 2023-10-27 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
CN117202259A (en) * | 2023-11-07 | 2023-12-08 | 深圳市丰禾原电子科技有限公司 | Data processing method and system of Bluetooth headset |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545783A (en) * | 2001-06-27 | 2004-11-10 | ��˹��ŵ�� | Transmission of compression identifier of headers on data packet connection |
US7640362B2 (en) * | 2001-01-31 | 2009-12-29 | Interdigital Technology Corporation | Adaptive compression in an edge router |
CN102394993A (en) * | 2011-11-02 | 2012-03-28 | 上海市共进通信技术有限公司 | Method for automatically adjusting and improving RTP (Realtime Transport Protocol) flow quality based on voice coding in VoIP (Voice over Internet Portocol) network |
US8417833B1 (en) * | 2006-11-29 | 2013-04-09 | F5 Networks, Inc. | Metacodec for optimizing network data compression based on comparison of write and read rates |
-
2014
- 2014-12-19 CN CN201410797027.8A patent/CN105764093A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7640362B2 (en) * | 2001-01-31 | 2009-12-29 | Interdigital Technology Corporation | Adaptive compression in an edge router |
CN1545783A (en) * | 2001-06-27 | 2004-11-10 | ��˹��ŵ�� | Transmission of compression identifier of headers on data packet connection |
US8417833B1 (en) * | 2006-11-29 | 2013-04-09 | F5 Networks, Inc. | Metacodec for optimizing network data compression based on comparison of write and read rates |
CN102394993A (en) * | 2011-11-02 | 2012-03-28 | 上海市共进通信技术有限公司 | Method for automatically adjusting and improving RTP (Realtime Transport Protocol) flow quality based on voice coding in VoIP (Voice over Internet Portocol) network |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110875916A (en) * | 2018-09-04 | 2020-03-10 | 大唐移动通信设备有限公司 | Voice data transmission method and network equipment |
CN116962376A (en) * | 2023-09-20 | 2023-10-27 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
CN116962376B (en) * | 2023-09-20 | 2024-04-05 | 季华实验室 | NB-IOT terminal upgrading method, device, electronic equipment and storage medium |
CN117202259A (en) * | 2023-11-07 | 2023-12-08 | 深圳市丰禾原电子科技有限公司 | Data processing method and system of Bluetooth headset |
CN117202259B (en) * | 2023-11-07 | 2024-02-06 | 深圳市丰禾原电子科技有限公司 | Data processing method and system of Bluetooth headset |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101636842B1 (en) | Techniques for improved multicast content delivery | |
CN102438318B (en) | Method, equipment and system for adjusting feedback cycle of channel quality indicator (CQI) | |
CN105635180A (en) | Message pushing method and device | |
CN109756940B (en) | Network switching method and mobile terminal | |
CN109309943B (en) | Multi-card multi-standby terminal, data card switching control method and device thereof, and storage medium | |
CN101930439B (en) | The Website processing device of the various model mobile phone of a kind of adaptation and application thereof | |
CN104753882A (en) | Method, system and server for verifying network services | |
CN104284397A (en) | Network selection method and device based on communication terminal and terminal | |
CN102625001A (en) | System and method for acquiring weather situation of home location of calling/called party based on cell phone communication | |
CN105282709A (en) | LTE-based cluster communication system reconstruction restoration method and user terminal | |
CN104219788A (en) | Access method and access device of Internet-of-Things terminal | |
EP2573999A1 (en) | A transmission method for supporting data compression | |
CN105764093A (en) | Method and device for selecting data compression level | |
CN104205988A (en) | Connection setup with an access selection of a terminal | |
CN107995613A (en) | A kind of method, mobile terminal and server for obtaining virtual SIM card | |
CN108513320B (en) | Method and device for coding and decoding negotiation | |
CN103916964A (en) | Wireless communication method and access point device | |
CN103442256B (en) | A kind of method and system that electric program menu is realized based on HTML5 | |
US9705660B1 (en) | Aggregating spectrum chunks for maximum bandwidth utilization | |
CN109819482B (en) | Data processing method and device | |
EP2999248B1 (en) | Information obtaining method and device | |
CN102802197A (en) | Method and device for transmitting application data | |
CN113630766B (en) | Network access method and base station | |
CN111314124B (en) | Network problem analysis method, device, equipment and storage medium for high-speed rail network | |
CN111918417B (en) | Voice call connection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160713 |
|
WD01 | Invention patent application deemed withdrawn after publication |