CN105764093A - Method and device for selecting data compression level - Google Patents

Method and device for selecting data compression level Download PDF

Info

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
terminal
data
time interval
level
corresponding
Prior art date
Application number
CN201410797027.8A
Other languages
Chinese (zh)
Inventor
程漠群
赵海涛
王岩
杜峰
赵杨
Original Assignee
中国移动通信集团黑龙江有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国移动通信集团黑龙江有限公司 filed Critical 中国移动通信集团黑龙江有限公司
Priority to CN201410797027.8A priority Critical patent/CN105764093A/en
Publication of CN105764093A publication Critical patent/CN105764093A/en

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

一种选择数据压缩级别的方法和装置 A method and apparatus for selecting a data compression level

技术领域 FIELD

[0001] 本发明涉及移动互联网优化领域,特别涉及一种选择数据压缩级别的方法和装置。 [0001] The present invention relates to optimizing the mobile Internet, and in particular relates to a method and apparatus for data compression level is selected.

背景技术 Background technique

[0002] 移动互联网为一种便捷的通信方式,已经渗透到人们工作和生活的各个领域,成为手机的一项重要业务。 [0002] the mobile Internet as a convenient means of communication, has penetrated into all areas of work and life, become an important business phone. 为了改善用户体验,提高手机用户的网络访问体验,运营商进行了大量的优化分析工作,其中包括引入各类手机无线优化系统对手机业务进行加速。 In order to improve the user experience and improve the experience of mobile phone users access the network, operators have done a lot of work to optimize the analysis, including the introduction of all types of mobile wireless systems optimized for the mobile phone business to accelerate. 手机无线优化系统通常包含数据压缩功能,可以对数据进行不同级别的压缩处理。 Phone wireless enhancement system typically includes data compression, the data can be different levels of compression. 通过实际验证工作表明,基于手机无线优化系统可以提高手机用户访问质量,改善用户使用体验。 Actual validation work suggests that mobile phone-based wireless optimization system can improve the quality of mobile phone users access, improve the user experience.

[0003] 数据压缩是指在不丢失信息的前提下,缩减数据量以减少文件尺寸,提高其传输效率的一种技术方法。 [0003] Data compression refers without loss of information, to reduce the amount of data to reduce the file size, which is a technical method to improve transmission efficiency. 或按照一定的算法对数据进行重新组织,减少数据的冗余和存储的空间。 Or reorganize the data according to certain algorithms to reduce data redundancy and storage space. 手机优化系统的数据压缩功能包括图片压缩、文本压缩等方面。 Mobile-optimized data compression system includes a picture compression, text compression and so on. 手机优化系统支持进行不同级别的数据压缩力度,越高级别的压缩,可以减少更大的文件尺寸。 Mobile-optimized systems support different levels of data compression strength, the higher the level of compression can reduce file size larger.

[0004] 手机优化系统支持不同级别的数据压缩,可以对用户请求的资源进行不同力度的压缩。 [0004] mobile-optimized systems support different levels of data compression, it can be compressed to different dynamics of the resource requested by the user. 数据压缩级别是通过固定的配置值设定的,现有优化方案中,手机优化系统在同一时刻只能对所有用户请求进行相同级别的数据压缩处理,这样不利于针对不同手机用户的网络质量差异进行不同级别的数据压缩处理。 Data compression level is fixed by the configuration of the set value, the conventional optimization scheme, the optimization of the system at the same time the mobile phone can request for all users the same level of data compression processing, so that is not conducive to mass difference for different mobile phone network users different levels of data compression.

发明内容 SUMMARY

[0005] 本发明提供了一种选择数据压缩级别的方法及装置,其目的是为了解决目前手机优化系统在同一时刻只能对所有用户请求进行相同级别的数据压缩处理的问题。 [0005] The present invention provides a method and apparatus for data compression level is selected, its purpose is to address the current mobile phone system optimization at the same time only the same level of data compression processing of requests for all users.

[0006] 为了达到上述目的,本发明的实施例提供了一种选择数据压缩级别的方法,包括: [0006] To achieve the above object, embodiments of the present invention provides a method for selecting a level of data compression, comprising:

[0007] 获取终端与网络之间的报文往返时间RTT值; [0007] Gets the value of the RTT packets between the terminal and the network;

[0008] 确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; Time interval [0008] RTT values ​​determined for the terminal is located, to select the time interval for the terminal corresponding to the data compression level, wherein a predetermined plurality of successive time intervals do not overlap and each time interval a compression level corresponding to the data;

[0009] 通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 [0009] requested by the terminal data compression processing is performed by a corresponding data compression level.

[0010] 其中,通过对应的数据压缩级别对所述终端请求的数据进行压缩处理之后,所述方法还包括: After [0010] wherein the data requested by the terminal performs compression processing by a corresponding data compression level, the method further comprising:

[0011 ] 将经过处理的数据发送给所述终端。 [0011] transmits to the terminal the processed data.

[0012] 其中,获取终端与网络之间的报文往返时间RTT值包括: [0012] wherein, the packet obtaining the RTT value between the terminal and the network comprising:

[0013] 接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; [0013] receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal, the recording time point tl when the first transmission acknowledgment signal;

[0014] 接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; [0014] According to a second terminal receiving a first acknowledgment signal transmitted acknowledgment signal, and records the point of time when receiving the second acknowledgment signal is a T2;

[0015] 计算tl与t2的差值,获得RTT值。 [0015] calculating the difference tl and t2 to obtain RTT values.

[0016] 其中,确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别: [0016] wherein the time interval is determined RTT values ​​of the terminal is located, the time interval corresponding to selected data compression level for the terminal, wherein a predetermined plurality of continuous and non-overlapping time intervals, each time interval corresponding to a data compression level:

[0017] 在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; [0017] When the RTT values ​​belonging to a first terminal of the time interval, the terminal selects a first time interval corresponding to a first data compression level;

[0018] 在所述终端的RTT值属于第二时间区间时,为所述终端选择第二时间区间对应的第二数据压缩级别; [0018] RTT values ​​when the terminal belongs to the second time interval, the terminal selects a second time interval corresponding to a second data compression level;

[0019] 其中,所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 When [0019] wherein, in the RTT value of the first time interval shorter than the RTT values ​​within the second time interval, the degree of compression of the first data corresponding to the level lower than the level corresponding to the second data compression the degree of compression.

[0020] 本发明实施例还提供一种选择数据压缩级别的装置,包括: [0020] Embodiments of the invention further provides an apparatus for selecting a data compression level, comprising:

[0021] 获取模块,用于获取终端与网络之间的报文往返时间RTT值; [0021] obtaining module, configured to obtain the packet round trip time RTT value between the terminal and the network;

[0022] 选择模块,用于确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; [0022] selection module, for determining a time interval where the RTT of the terminal, the terminal selects a compression level corresponding to the time interval data, wherein a predetermined plurality of continuous and non-overlapping time intervals , each time interval corresponding to a data compression level;

[0023] 处理模块,用于通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 [0023] The processing module, for the data requested by the terminal performs compression processing by a corresponding data compression level.

[0024] 其中,所述装置还包括: [0024] wherein, said apparatus further comprising:

[0025] 发送模块,用于将经过压缩处理的数据发送给所述终端。 [0025] transmitting means for transmitting to the terminal via the data compression processing.

[0026] 其中,所述获取模块包括: [0026] wherein the obtaining module comprises:

[0027] 第一记录子模块,用于接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; [0027] recording a first sub-module, for receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal, the recording time point tl when the first transmission acknowledgment signal;

[0028] 第二记录子模块,用于接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; [0028] The second recording sub-module, configured to receive a second acknowledgment signal from the terminal according to the first acknowledgment signal transmitted, and the recording time point when the received second acknowledgment signal T2;

[0029] 计算子模块,用于计算tl与t2的差值,获得RTT值。 [0029] calculation sub-module, for calculating the difference between tl and t2, the RTT is obtained.

[0030] 其中,所述选择模块包括: [0030] wherein said selection module comprising:

[0031] 第一选择子模块,用于在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; [0031] The first selecting sub-module, configured to, when the RTT of the terminal belonging to the first time interval, the terminal selects a first time interval corresponding to a first data compression level;

[0032] 第二选择子模块,在所述终端的RTT值属于第二时间区间时,为所述终端请求的数据选择第二时间区间对应的第二数据压缩级别; [0032] The second selecting sub-module, when the value of the RTT terminal belongs to the second time interval, the terminal data request to the data selecting a second time interval corresponding to a second compression level;

[0033] 其中,所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 When [0033] wherein, in the RTT value of the first time interval shorter than the RTT values ​​within the second time interval, the degree of compression of the first data corresponding to the level lower than the level corresponding to the second data compression the degree of compression.

[0034] 本发明的上述方案至少包括以下有益效果: [0034] The embodiment of the present invention comprises at least the following advantages:

[0035] 本发明实施例提出了一种选择数据压缩级别的方法,通过终端与网络建立TCP连接三次握手的过程,测量出终端与网络之间的报文往返时间,即RTT值。 Embodiment [0035] The present invention proposes a method for selecting a level of data compression, TCP connection establishment procedure by a three-way handshake terminal and the network, the packet round-trip time is measured between the terminal and the network, i.e. RTT values. 根据不同终端的RTT值情况,为不同终端选择不同数据压缩级别,将通过对应的数据压缩级别处理终端请求的数据返回给终端,这样可以有效改善网络质量较差的用户的访问体验,同时又不影响网络质量较好的用户获取较清晰较完整的图片资源。 The RTT value or a different terminal, the terminal selecting different data to different compression levels, the level of data compression processing terminal returns the requested data to the terminal through the corresponding, which can improve the quality of poor network access user experience, while not favorable influence on the quality of the network users to obtain a clearer more complete picture of resources. 本发明可以实现针对不同用户请求,提供不同级别压缩处理后的数据,从而实现按需优化,使得手机优化系统的工作运行更贴近实际情况。 The present invention can be implemented for different user requests, provide different levels of processed data compression, to deliver optimized, so that the working operation of the mobile phone system optimization more realistic situation.

附图说明 BRIEF DESCRIPTION

[0036] 图1是本发明实施例所述的选择数据压缩级别的方法的流程图; [0036] FIG. 1 is a flowchart of a method of selecting the data compression level embodiment of the present invention;

[0037]图2是本发明实施例所述的选择数据压缩级别的装置的结构图。 [0037] FIG. 2 is a compressing selection data configuration diagram of the embodiment of the apparatus of the embodiment of the present disclosure level.

具体实施方式 Detailed ways

[0038] 为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。 [0038] For the present invention to solve the technical problem, technical solutions and advantages clearer, the accompanying drawings and will be described in detail specific embodiments.

[0039] 本发明实施例针对现有的问题,提供了一种选择数据压缩级别的方法和装置,通过根据终端与网络之间的报文往返时间RTT值来选择对应的数据压缩级别,根据对应的压缩级别来压缩所述终端的请求,这样可以针对不同网络质量的终端选择不同的压缩级别,实现按需优化,使得手机优化系统的工作运行更贴切实际情况。 [0039] Example embodiments of the present invention is directed to an existing problem, a method and apparatus for selecting a data compression level to select a corresponding data packet according to the value of the RTT between the terminal and the network through the compression level, according to a corresponding compressing the compression level of the requesting terminal, so that different compression levels may be selected for different quality of network terminals, demand-optimized, so that the working operation of the mobile phone system is more appropriate to optimize the actual situation.

[0040] 如图1所示,本发明的实施例提供了一种选择数据压缩级别的方法,包括: [0040] As shown, the embodiment of the present invention provides a method of selecting a level of data compression, comprising:

[0041 ] 步骤10,获取终端与网络之间的报文往返时间RTT值; [0041] Step 10, the packet obtaining the RTT value between the terminal and the network;

[0042] 步骤11,确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; [0042] Step 11, the time interval is determined RTT values ​​of the terminal is located, the terminal selects a compression level corresponding to the time interval data, wherein a predetermined plurality of continuous and non-overlapping time intervals, each time interval corresponding to a data compression level;

[0043] 步骤12,通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 [0043] Step 12, the terminal requests the data compression processing is performed by a corresponding data compression level.

[0044] 在本发明的具体实施例中,所述终端表示手机,网络指手机优化系统,位于通信系统中基站或中继站一端,本发明实施例主要解决手机优化系统对不同手机请求的数据进行不同级别的压缩处理的问题,当然可以理解的是,终端和网络不只局限于手机和手机优化系统。 [0044] In a particular embodiment of the present invention, the terminal indicates a mobile phone, the network refers to a mobile-optimized system, at one end of a communication system, a base station or a relay station, embodiments of the present invention is mainly to solve the data on the phone optimize the system for different phone request different question compression processing level, of course, be understood that the terminal and the network is not limited to cell phones and mobile-optimized systems.

[0045] 在本发明的具体实施例中,首先获取终端与网络之间的报文往返时间RTT值,然后通过确定终端的RTT值所在的时间区间,确定所述终端的网络质量等级,每个时间区间对应一个网络质量等级,预先定义终端的RTT值低于200ms则表明终端的网络质量较好,RTT值介于200ms与500ms之间对应终端网络质量一般,RTT值高于500ms对应终端网络质量较差,当然可以理解的是,时间区间可以根据实际需要设定多个,分别对应不同的网络质量等级。 [0045] In a particular embodiment of the invention, the first acquired value of the RTT packets between the terminal and the network, then the time interval determined by the RTT of the terminal is located, to determine the quality level of the network terminals, each time interval corresponding to a level of network quality, pre-defined terminal value below 200ms RTT indicates a better quality of the terminal network, the RTT between the terminal corresponding to the general quality of the network between 200ms and 500ms, 500ms RTT values ​​higher than the corresponding terminal network quality poor, of course, be appreciated that the time interval can be set according to actual needs a plurality, corresponding to different network quality levels. 然后根据终端不同网络质量等级选择不同的数据压缩级别,对于网络质量较好的终端,对终端请求的数据不经过压缩;对于网络质量一般的终端,对终端请求的数据选择低级别压缩处理;对于网络质量较差的终端,对终端请求的数据选择中级别压缩处理,在本发明实施例中,压缩级别越高压缩程度越大。 Depending on the network and select a different quality levels of data compression level terminal, a terminal for better network quality, data requested by the terminal is not compressed; general network quality for the terminal, the terminal requests data compression processing low-level selection; for poor quality of the network terminal, terminal data selection level compression processing of the request, in the embodiment of the present invention, the greater the higher the compression degree of the compression level.

[0046] 在本发明的上述实施例中,通过对应的数据压缩级别对所述终端请求的数据进行压缩处理之后,所述方法还包括: After [0046] In the above embodiment of the present invention, the terminal requests data compression processing is performed by a corresponding data compression level, the method further comprising:

[0047] 将经过压缩处理的数据发送给所述终端。 [0047] transmits to the terminal via the data compression processing.

[0048] 在本发明的上述实施例中,获取终端与网络之间的报文往返时间RTT值包括: [0048] In the above embodiment of the present invention, obtaining the value of the RTT packets between the terminal and the network comprising:

[0049] 接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; [0049] receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal, the recording time point tl when the first transmission acknowledgment signal;

[0050] 接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; [0050] According to a second terminal receiving a first acknowledgment signal transmitted acknowledgment signal, and records the point of time when receiving the second acknowledgment signal is a T2;

[0051] 计算tl与t2的差值,获得RTT值。 [0051] calculating the difference tl and t2 to obtain RTT values.

[0052] 在本发明的具体实施例中,通过终端与网络建立TCP连接三次握手的过程,测量出终端与网络之间的报文往返时间,当然测量终端与网络之间的报文往返时间可以通过现有其他技术实现,在这里不做详述。 [0052] In a particular embodiment of the invention, the terminal and the network through the process of establishing a TCP connection three-way handshake, the measured packet round-trip time between the terminal and the network, of course, a round trip time measurement message between the terminal and the network may by other existing technology, not detailed here.

[0053] 在本发明的上述实施例中,确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别包括: [0053] In the above embodiment of the present invention, the time interval is determined RTT values ​​of the terminal is located, select the time interval corresponding to the data compression level for the terminal, wherein a predetermined plurality of consecutive and mutually overlapping time intervals, each time interval corresponding to a data compression level comprises:

[0054] 在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; [0054] When the RTT values ​​belonging to a first terminal of the time interval, the terminal selects a first time interval corresponding to a first data compression level;

[0055] 在所述终端的RTT值属于第二时间区间时,为所述终端请求的数据选择第二时间区间对应的第二数据压缩级别; [0055] RTT values ​​when the terminal belongs to the second time interval, the terminal data request to the data selecting a second time interval corresponding to a second compression level;

[0056] 其中,所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 When [0056] wherein, in the RTT value of the first time interval shorter than the RTT values ​​within the second time interval, the degree of compression of the first data corresponding to the level lower than the level corresponding to the second data compression the degree of compression.

[0057] 在本发明的具体实施例中,终端的RTT值越小,表明终端网络质量越好,则需要选择压缩程度越低的数据压缩级别来压缩该终端请求的数据。 [0057] In a particular embodiment of the present invention, the RTT value of the termination of the smaller, the better the quality of the network indicates that the terminal is required to select a lower degree of compression of the data compression level of the compressed data is requested by the terminal.

[0058] 依据本发明的另一个方面,本发明实施例还提供一种选择数据压缩级别的装置,如图2所示,包括: [0058] According to another aspect of the present invention, embodiments of the present invention further provides an apparatus for selecting a data compression level, shown in Figure 2, comprising:

[0059] 获取模块20,用于获取终端与网络之间的报文往返时间RTT值; [0059] The obtaining module 20, configured to obtain the packet round trip time RTT value between the terminal and the network;

[0060] 选择模块21,用于确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; [0060] The selection module 21, the time interval for determining the RTT of the terminal is located, the terminal selects the time interval of the corresponding data compression level, wherein a predetermined plurality of continuous and non-overlapping time intervals, each time interval corresponding to a data compression level;

[0061] 处理模块22,用于通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 [0061] The processing module 22, a compression level corresponding to the data through the data requested by the terminal performs compression processing.

[0062] 其中,所述装置还包括: [0062] wherein, said apparatus further comprising:

[0063] 发送模块,用于将经过压缩的数据发送给所述终端。 [0063] transmitting means for transmitting to the terminal the compressed data.

[0064] 其中,所述获取模块包括: [0064] wherein the obtaining module comprises:

[0065] 第一记录子模块,用于接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; [0065] recording a first sub-module, for receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal, the recording time point tl when the first transmission acknowledgment signal;

[0066] 第二记录子模块,用于接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; [0066] The second recording sub-module, configured to receive a second acknowledgment signal from the terminal according to the first acknowledgment signal transmitted, and the recording time point when the received second acknowledgment signal T2;

[0067] 计算子模块,用于计算tl与t2的差值,获得RTT值。 [0067] calculation sub-module, for calculating the difference between tl and t2, the RTT is obtained.

[0068] 其中,所述选择模块包括: [0068] wherein said selection module comprising:

[0069] 第一选择子模块,用于在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; [0069] The first selecting sub-module, configured to, when the RTT of the terminal belonging to the first time interval, the terminal selects a first time interval corresponding to a first data compression level;

[0070] 第二选择子模块,在所述终端的RTT值属于第二时间区间时,为所述终端请求的数据选择第二时间区间对应的第二数据压缩级别; [0070] The second selecting sub-module, when the value of the RTT terminal belongs to the second time interval, the terminal data request to the data selecting a second time interval corresponding to a second compression level;

[0071 ] 其中,所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 When [0071] wherein, in the RTT value of the first time interval shorter than the RTT values ​​within the second time interval, the degree of compression of the first data corresponding to the level lower than the level corresponding to the second data compression the degree of compression.

[0072] 需要说明的是,该装置是与上述选择数据压缩级别的方法实施例对应的装置,上述方法实施例中所有实现方式均适用于该装置的实施例中,也能达到相同的技术效果。 [0072] Incidentally, the apparatus is a diagram corresponding to a device method the selection of data compression level embodiment, the above-described embodiments of the method for all implementations are applied to the embodiment of the apparatus, can achieve the same technical effect .

[0073] 以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 [0073] The above embodiment is a preferred embodiment of the present invention, it should be noted that those of ordinary skill in the art, in the present invention without departing from the principles of the premise, further improvements and modifications may be made, these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims (8)

1.一种选择数据压缩级别的方法,其特征在于,包括: 获取终端与网络之间的报文往返时间RTT值; 确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; 通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 A method for selecting a data compression level method comprising: obtaining the value of the RTT packets between the terminal and the network; determining the time intervals where the terminal RTT values, select the time for the terminal interval corresponding to the data compression level, wherein a predetermined plurality of successive time intervals do not overlap and each time interval corresponds to a data compression level; via a corresponding data compression level of the data requested by the terminal performs compression processing .
2.如权利要求1所述的选择数据压缩级别的方法,其特征在于,通过对应的数据压缩级别对所述终端请求的数据进行压缩处理之后,所述方法还包括: 将经过压缩处理的数据发送给所述终端。 2. The method of selecting the data compression level to claim 1, characterized in that, after the data requested by the terminal performs compression processing by the compression level corresponding to the data, the method further comprising: processing the compressed data to the terminal.
3.如权利要求1所述的选择数据压缩级别的方法,其特征在于,获取终端与网络之间的报文往返时间RTT值包括: 接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; 接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; 计算tl与t2的差值,获得RTT值。 Data as claimed in claim 1 selected compression level method claims, wherein obtaining the value of the RTT packets between the terminal and the network comprises: receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal recording the point in time when a first acknowledgment signal is transmitted tl; receiving a second acknowledgment signal from the terminal according to the first acknowledgment signal, and the recording time point when receiving the second acknowledgment signal is t2; tl and t2 calculated difference obtained RTT values.
4.如权利要求1所述的选择数据压缩级别的方法,其特征在于,确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别包括: 在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; 在所述终端的RTT值属于第二时间区间时,为所述终端请求的数据选择第二时间区间对应的第二数据压缩级别; 其中,在所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 Data as claimed in claim 1 selected compression level method claims, wherein determining the time interval RTT values ​​of the terminal is located, select the time interval corresponding to the data compression level for the terminal, wherein the pre- setting a plurality of continuous and non-overlapping time intervals, each time interval corresponding to a data compression level comprising: RTT values ​​when the terminal belongs to the first time interval, selecting a first time interval corresponding to said first terminal a data compression level; RTT values ​​when the terminal belongs to the second time interval, the terminal data request to the data selecting a second time interval corresponding to a second compression level; wherein within the first time interval when the value of the RTT RTT values ​​is less than the second time interval, the degree of compression of the first data corresponding to the level lower than the level of the second compressed data corresponding to the level.
5.一种选择数据压缩级别的装置,其特征在于,包括: 获取模块,用于获取终端与网络之间的报文往返时间RTT值; 选择模块,用于确定所述终端的RTT值所在的时间区间,为所述终端选择该时间区间所对应的数据压缩级别,其中,预先设定多个连续且互不重叠的时间区间,每个时间区间对应一个数据压缩级别; 处理模块,用于通过对应的数据压缩级别对所述终端请求的数据进行压缩处理。 A level selection data compression apparatus characterized by comprising: an obtaining module, configured to obtain the packet round trip time RTT value between the terminal and the network; selecting means for determining the terminal where the RTT values time interval, the terminal selects the time interval corresponding to the data compression level, wherein a predetermined plurality of successive time intervals do not overlap and each time interval corresponds to a data compression level; processing module, configured by data compression level corresponding to the data requested by the terminal performs compression processing.
6.如权利要求5所述的选择数据压缩级别的装置,其特征在于,所述装置还包括: 发送模块,用于将经过压缩处理的数据发送给所述终端。 6. The selection data level of Claim 5, wherein the compression means, characterized in that said apparatus further comprises: a sending module, configured to send to the terminal via the data compression processing.
7.如权利要求5所述的选择数据压缩级别的装置,其特征在于,所述获取模块包括: 第一记录子模块,用于接收来自终端的握手信号,并发送第一确认信号给终端,记录所述发送第一确认信号时的时间点为tl ; 第二记录子模块,用于接收来自终端根据第一确认信号发送的第二确认信号,并记录接收到第二确认信号时的时间点为t2 ; 计算子模块,用于计算tl与t2的差值,获得RTT值。 7. The selection data level of Claim 5, wherein the compression means, characterized in that said acquisition module comprises: a first recording sub-module, for receiving a handshake signal from the terminal, and transmits a first acknowledgment signal to the terminal, record time point tl when a first acknowledgment signal to the transmitting; second recording sub-module, configured to receive a second acknowledgment signal from the terminal according to the first acknowledgment signal transmitted, and the recording time point when the received second acknowledgment signal to t2; calculation sub-module, for calculating the RTT value of the difference between tl and t2, is obtained.
8.如权利要求5所述的选择数据压缩级别的装置,其特征在于,所述选择模块包括: 第一选择子模块,用于在所述终端的RTT值属于第一时间区间时,为所述终端选择第一时间区间对应的第一数据压缩级别; 第二选择子模块,在所述终端的RTT值属于第二时间区间时,为所述终端请求的数据选择第二时间区间对应的第二数据压缩级别; 其中,所述第一时间区间内的RTT值小于所述第二时间区间内的RTT值时,所述第一数据压缩级别对应的压缩程度低于所述第二数据压缩级别对应的压缩程度。 8. The selection data level of Claim 5, wherein the compression device, wherein said selection module comprising: a first selection sub-module, the terminal for the RTT value belongs to a first time interval, of the selecting a first terminal of said first time interval corresponding to the data compression level; second selecting sub-module, when the value of the RTT terminal belongs to the second time interval, the terminal data request for selecting a second time interval corresponding to a first second data compression level; wherein, RTT values ​​within the first time interval shorter than the RTT values ​​within the second time interval, the degree of compression of the first data corresponding to the level lower than the second level of data compression corresponding to the degree of compression.
CN201410797027.8A 2014-12-19 2014-12-19 Method and device for selecting data compression level CN105764093A (en)

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 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)

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Similar Documents

Publication Publication Date Title
US8732810B2 (en) IP push platform and connection protocol in a push notification framework
US9749143B2 (en) Web real-time communication call transferring method and apparatus
RU2549521C2 (en) Indirect communication between devices
CN103493517A (en) Handling large volumes of internet live unicast content streams
JP2014534674A (en) Wireless local area network authentication method and mobile terminal
CN102067660A (en) Optimizing the usage of radio resources by cross-layer reading of information from higher level control plane protocol layer
JP2014512156A5 (en)
EP3021556A1 (en) Transmission method and device for media stream in video conference
CN101155331B (en) Method and system for group sending short messages
CN102752792A (en) Method, device and system for monitoring internet service quality of mobile terminal
CN101400130A (en) Method, system and device for system information block mapping
CN101932068A (en) Method, system and device for realizing machine-to-machine service
CN102149215B (en) The method of transmitting information, and keep alive the terminal and network equipment
CN102752748B (en) Based data transmission method and system for a mobile terminal and a mobile terminal
CN103561479A (en) Bluetooth device communication method and device
CN103118417A (en) Information transmission method and user device
CN102916854A (en) Traffic statistical method and device and proxy server
CN103533604A (en) Scanning access point in wireless fidelity network, channel selecting method, equipment and system
CN103023930A (en) Webpage sharing method and device
CN103501486B (en) A messaging method and pushing the push server
CN102685699B (en) Method and system for transmitting messages
US10116791B2 (en) Methods and apparatus for transmitting data
US10063708B2 (en) System and method for transferring or rejoining a call from any device
CN103297395B (en) Implementation of an Internet service, the system and means
CN104754286B (en) The method and apparatus of the calling terminal to join

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination