CN106603476A - Data compression method and device - Google Patents
Data compression method and device Download PDFInfo
- Publication number
- CN106603476A CN106603476A CN201510683019.5A CN201510683019A CN106603476A CN 106603476 A CN106603476 A CN 106603476A CN 201510683019 A CN201510683019 A CN 201510683019A CN 106603476 A CN106603476 A CN 106603476A
- Authority
- CN
- China
- Prior art keywords
- compression
- data
- frame
- compressed
- customer service
- 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
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
-
- 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/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data compression method and a data compression device. The data compression method comprises the steps that: PE equipment selects user service flow data to be compressed; whether a current predetermined frame number of data frames in the user service flow data to be compressed meet a compression requirement is prejudged; if the current predetermined frame number of data frames meet the compression requirement, subsequent data frames of the predetermined frame number of data frames meeting the compression requirement are compressed, and the compressed data frames are marked as ''compressed''; and if the current predetermined frame number of data frames does not meet the compression requirement, a next predetermined frame number of data frames in the user service flow data to be compressed are selected as a current predetermined frame number of data frames, and the compression and prejudgment are continued. The data compression method and the data compression device are capable of automatic selection, compression and prejudgment, and improve the bandwidth utilization rate; and the data compression method disclosed by the invention avoids the transmission delay caused by compressing all the data.
Description
Technical field
The present invention relates to technical field of data transmission, more particularly to a kind of data compression method and dress
Put.
Background technology
PTN (Packet Transport Network, Packet Transport Network) technology is that one kind is based on
The route framework of packet, using the teaching of the invention it is possible to provide multi-service technical support.It is that one kind is more suitable for IP
The technology of business transmission, current transmission technology combine MPLS (Multi-Protocol Label
Switching, multiprotocol label switching) T-MPLS (packet tranmission techniques) in operator
Large-scale application is obtained.Data compression has had been widely used the ordinary file pressure of personal PC
Contracting, and the compression of image, audio frequency, PTN grouping conveying networks have gradually obtained commercialization,
But the total bandwidth of a set of Transmission system is certain, and the method for generally saving bandwidth is compression strap
Data in width.At present, data compression is not also applied in PTN grouping conveying networks,
The compression method mentioned in some discussions is that data are all compressed, but not all
Data have compression value, the transmission time taken after some data compressions is more, to data
Transmission brings delay.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes above-mentioned
Content is prior art.
The content of the invention
Present invention is primarily targeted at a kind of data compression method and device are provided, can be automatic
Anticipation is selected and compressed, bandwidth availability ratio is improved, it is to avoid the transmission that compression total data is brought
Time delay.
For achieving the above object, the present invention provides a kind of data compression method, including:
S10, network side edge device PE equipment chooses customer service flow data to be compressed;
S20, the data of current predetermined frame number in customer service flow data to be compressed described in anticipation
Whether frame reaches compression requires;
S30, when the Frame of the current predetermined frame number reaches compression to be required, reaches to described
The subsequent data frame of the Frame of the predetermined frame number required to compression is compressed, and identifies compression
Frame to compress;
S40, when the Frame of the current predetermined frame number is not reaching to compression to be required, chooses
In the customer service flow data, the Frame of next predetermined frame number is used as current predetermined frame number
Frame, and return execution step S20.
Preferably, the subsequent data frame of the described pair of Frame for reaching the predetermined frame number that compression is required
During being compressed, including:
The Frame of setting value is near or below in judging compression process with the presence or absence of compression ratio, if
Exist, then the Frame after the Frame of setting value is near or below to the compression ratio to be carried out
Compression anticipation;
If in compression process, the flow of the customer service flow data of compression is not up to setting value,
Or not when being set type of service, then stop compression.
Preferably, the step of PE equipment chooses customer service flow data to be compressed includes:
PE equipment chooses the customer service flow data that data traffic reaches setting value, or selectes
The customer service flow data of intended service type, as customer service flow data to be compressed.
Preferably, in customer service flow data to be compressed described in the anticipation predetermined frame number number
Include according to whether frame is reached the step of compression is required:
The Frame of the predetermined frame number of the user traffic flow to be compressed chosen by the PE equipment
Anticipation is compressed, when compression ratio exceedes setting value, then starts compression.
Preferably, it is characterised in that described when the Frame of the current predetermined frame number reaches pressure
When contracting is required, the subsequent data frame of the Frame for reaching the predetermined frame number that compression is required is entered
After the step of going and compress, and identify the Frame of compression to compress, also include:
According to the compressing mark, compressed user service data flow data is decompressed
Contracting.
Data decimation module, for choosing customer service flow data to be compressed;
Anticipation module, for current predetermined frame in customer service flow data to be compressed described in anticipation
Whether several Frames reaches compression requires;
Compression module, for when the Frame of the current predetermined frame number reaches compression and requires,
The subsequent data frame of the Frame for reaching the predetermined frame number that compression is required is compressed, and
The Frame of mark compression is to compress;
Control module, for requiring when the Frame of the current predetermined frame number is not reaching to compression
When, the Frame of next predetermined frame number in the customer service flow data is chosen as current pre-
The Frame of framing number, and return user to be compressed by described in the compression anticipation module anticipation
In traffic data, whether the Frame of current predetermined frame number reaches compression and requires.
Preferably, the compression module includes:
First judges compression unit, for judge in compression process with the presence or absence of compression ratio be close to or
Less than the Frame of setting value, if existing, setting value is near or below to the compression ratio
Frame after Frame is compressed anticipation;
Second judges compression unit, if in compression process, the customer service fluxion of compression
According to flow be not up to setting value, or when not being set type of service, then stop compression.
Preferably, the data decimation mould, is additionally operable to:
Choose the customer service flow data that data traffic reaches setting value, or selected intended service
The customer service flow data of type, as customer service flow data to be compressed.
Preferably, the anticipation module, is additionally operable to:
The Frame of the predetermined frame number of the user traffic flow to be compressed chosen by the PE equipment
Anticipation is compressed, when compression ratio exceedes setting value, then starts compression.
Preferably, it is characterised in that the device also includes:
Decompression module, for the compressing mark according to, to compressed user's industry
Business data flow data is decompressed.
The invention discloses a kind of data compression method and device, PE equipment is chosen to be compressed
Customer service flow data;Current predetermined frame number in customer service flow data to be compressed described in anticipation
Frame whether reach compression require;When the Frame of the current predetermined frame number reaches compression
During requirement, the subsequent data frame of the Frame for reaching the predetermined frame number that compression is required is carried out
Compression, and the Frame of compression is identified to compress;When the Frame of the current predetermined frame number
When being not reaching to compression and requiring, next predetermined frame number in the customer service flow data is chosen
Frame of the Frame as current predetermined frame number, proceeds to compress anticipation process, thus leads to
The compression anticipation automatically selected with data is crossed, improve bandwidth availability ratio, it is to avoid compression is all
The transmission delay that data are brought.
Description of the drawings
Fig. 1 is the schematic flow sheet of data compression method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of data compression method second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of data compression method 3rd embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of data compression device first embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of data compression device second embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of data compression device 3rd embodiment of the present invention;
The realization of the object of the invention, functional characteristics and advantage will be done in conjunction with the embodiments referring to the drawings
Further illustrate.
Specific embodiment
It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
The primary solutions of the embodiment of the present invention are:PE equipment chooses user's industry to be compressed
Business flow data;The data of current predetermined frame number in customer service flow data to be compressed described in anticipation
Whether frame reaches compression requires;It is when the Frame of current predetermined frame number reaches compression to be required, right
The subsequent data frame for reaching the Frame of the predetermined frame number that compression is required is compressed, and identifies pressure
The Frame of contracting is to compress;Want when the Frame of the current predetermined frame number is not reaching to compression
When asking, the Frame of next predetermined frame number in the customer service flow data is chosen as current
The Frame of predetermined frame number, proceeds to compress anticipation process, with by automatically selecting and compressing
Anticipation, improves bandwidth availability ratio, while it also avoid compressing the transmission delay that total data is brought.
As, in prior art, the method for improving bandwidth availability ratio is to carry out the data in bandwidth
Compression, but not all data have compression value, the transmission taken after some data compressions
Time is more, brings time delay to data transfer.
The present invention provides a solution, can accomplish to improve bandwidth availability ratio, while the party
Case avoids the transmission delay that compression total data is brought.
With reference to Fig. 1, first embodiment of the invention provides a kind of data compression method, including:
Step S10, PE equipment chooses customer service flow data to be compressed.
This embodiment scheme is mainly used in PTN grouping conveying networks, is also not necessarily limited to certainly which
He needs the transmission network of data compression, the present embodiment to be lifted with PTN grouping conveying networks
Example.
First, the customer service flow data that PE monitoring of tools is transmitted in equipment.
Then, have more than setting and flow threshold or reach setting data stream when PE equipment is detected
The customer service flow data of amount, or intended service type customer service flow data when, by this
A little user traffic flow data records are got off, used as customer service flow data to be compressed.
It should be noted that user traffic flow data traffic threshold values and type of service all can be with
The needs of user and change, be the standard for monitoring network traffic flow situation.
Wherein, on PTN technological essences it is a kind of packet-based routing framework, using the teaching of the invention it is possible to provide many
Service technique is supported.It is a kind of technology for being more suitable for IP operation transmission.In current net
Under network and technical conditions, all in all, PTN can be divided into Ethernet enhancement techniques and transmission technology
With reference to two big class of MPLS, the former is with PBT (Provider Backbone Transport, operation
The key transmission of business) for representative, the latter is with T-MPLS as representative.PBT technologies need multilamellar to seal
Dress, it is higher to the requirement of the hardware configurations such as chip, so gradually being thrown by operator and manufacturer
Abandon.T-MPLS has obtained large-scale application in world's top-notch operator at present.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
For the T-MPLS comprising E1 speech datas, user traffic flow (Customer Frame)
Into after PE equipment, E1 language data streams are not compressed, with original data transmissions.Other
Data service is compressed transmission according to method of the present invention step, meets the carrying out of anticipation condition
Compression, does not meet not compressing for anticipation condition.Ensure that E1 transmitting voice signals do not have time delay.
Current predetermined frame number in customer service flow data to be compressed described in step S20, anticipation
Whether Frame reaches compression requires.
Specifically, PE equipment needs the user traffic flow of the big flow to the PE equipment choices
Frame in data or the Frame in the customer service flow data of intended service type are carried out
Compression anticipation.
PE equipment is pressed successively by the continuous several frame data frames to customer service flow data
Contracting, it is when the compression ratio of all Frames for participating in compression anticipation exceedes the numerical value of setting, then described
Customer service flow data has reached compression and has required, otherwise, customer service flow data is not reaching to pressure
Contracting is required.
Wherein, compressing anticipation is carried out on the backstage of PE equipment, is not real by user's industry
Frame in business flow data is compressed.To avoid transmission delay, the Frame of anticipation is compressed
Still with original data transmissions, identify uncompressed.
It should be noted that in PTN Packet Transport Network, can be improved using data compression
Bandwidth availability ratio, but not all data have compression value, some data very little itself
But if the more transmission times of occupancy are comprehended to its place of being compressed, cause transmission delay.
Step S30, when the Frame of the current predetermined frame number reaches compression and requires, to institute
The subsequent data frame for stating the Frame for reaching the predetermined frame number that compression is required is compressed, and identifies
The Frame of compression is to compress.
Specifically, PE equipment detects customer service flow data and reaches and compresses requirement, will be right
The user traffic flow is compressed process, and in compression user traffic flow data procedures,
Customer service flow data after labelling compression is to compress, user's industry that labelling is not compressed
Business flow data is uncompressed, and the user traffic flow Frame for participating in compression anticipation does not compress, with original
Beginning data transfer.
It should be noted that LZW (Lempel-Ziv-Welch Encoding, string list compression calculation
Method), Deffate/Inflate (lossless compression algorithm) algorithm be a kind of lossless pressure based on dictionary
Compression algorithm, this kind of lossless compression algorithm calculating speed are fast, it is easy to accomplish, with the algorithm as base
The compression algorithm of plinth is relatively specific for the network data transmission with real-time.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
The first step, PE equipment choose the customer service larger more than certain flow threshold or flow
Stream, or select the user traffic flow of some types of service;
Second step, by being compressed to continuous a few framed user's Business Streams, when compression ratio is more than one
Definite value, then start compression, otherwise do not start, carry out the user traffic flow of anticipation still with original number
According to transmission;
3rd step, is compressed to subsequent user Business Stream according to anticipation result;
4th step, compresses to compressed data frame identification, to unpressed Frame mark
Knowledge is uncompressed, has only carried out the Business Stream of anticipation still with original data transmissions, has identified uncompressed.
5th step, when service traffics are not in selected range of flow, or is not set
Type of service, abandon compression;
6th step, when compression ratio is near or below certain value, abandons compression, again to follow-up industry
Business stream is compressed anticipation;
7th step, in receiving terminal, according to compressing mark, decompresses to compressed Frame
Contracting, the Frame of uncompressed mistake keep initial data.
It should be noted that being identified to the Frame in compressed customer service flow data
The purpose of process is to facilitate follow-up decompression, and PE equipment can be carried out according to mark
Decompression, it is time-consuming.
Step S40, when the Frame of the current predetermined frame number does not reach compression and requires, choosing
The Frame of next predetermined frame number in the customer service flow data is taken as current predetermined frame
Several Frames, and return execution step S20.
Wherein, when there is the Frame for not reaching compression requirement in the Frame of predetermined frame number, PE
Equipment continues to choose the Frame of next predetermined frame number and is compressed anticipation.
Specifically, the Frame of the current predetermined frame number will entirely reach compression and require, just enter
Row next step, if the Frame of the predetermined frame number does not entirely reach compression and requires, that
PE equipment continues to choose the Frame of next predetermined frame number and is compressed anticipation.
It should be noted that being not reaching to when PE equipment detects the customer service flow data
Compression requirement, then illustrate that the user traffic flow efficiency of data compression is not high, data volume after compression
Significantly reduction is not had, the time that compression is used is added, when may take more transmission
Between, cause transmission delay.
In the present embodiment, customer service flow data to be compressed is chosen by PE equipment;In advance
Whether the Frame for sentencing current predetermined frame number in the customer service flow data to be compressed reaches
Compression is required;When the Frame of the current predetermined frame number reaches compression to be required, reach to described
The subsequent data frame of the Frame of the predetermined frame number required to compression is compressed, and identifies compression
Frame to compress;Require when the Frame of the current predetermined frame number is not reaching to compression
When, the Frame of next predetermined frame number in the customer service flow data is chosen as current pre-
The Frame of framing number, and return execution compression anticipation process.The present embodiment realizes user's industry
What business flow data compressed automatically selects, and intelligent anticipation improves bandwidth availability ratio.
Further, with reference to Fig. 2, second embodiment of the invention provides a kind of data compression method,
Based on the embodiment shown in above-mentioned Fig. 1, during execution step S30, including:
Step S31, judge compression process in be near or below setting value with the presence or absence of compression ratio
Frame, if existing, after being near or below the Frame of setting value to the compression ratio
Frame is compressed anticipation.
Wherein, while PE equipment is compressed to the Frame in customer service flow data,
PE equipment will monitor the compression ratio of the Frame in the customer service flow data, if user
The compression ratio of the Frame in traffic data is not up to setting value, then stop to user's industry
Business flow data compression.
It should be noted that in PTN Packet Transport Network, can be improved using data compression
Bandwidth availability ratio, but not all data have compression value, account for after some data compressions
Time with transmission is more, reduces bandwidth availability ratio.
If step S32, in compression process, the flow of the customer service flow data of compression does not reach
To setting value, or when not being set type of service, then stop compression.
It should be noted that PE equipment needs to carry out monitor in real time to customer service flow data,
If it find that flow threshold or data traffic that customer service flow data not up to sets are not up to
Setting value, or be not set type of service, then stop to the customer service flow data
Compression.
In the present embodiment, monitoring number of the PE equipment by monitor in real time customer service flow data
Whether value reaches the setting numerical value of PE equipment, meanwhile, in monitoring user traffic data
Whether the compression ratio of Frame reaches the setting numerical value of PE equipment, determines whether to continue compression
Frame in the customer service flow data, it is ensured that the compression ratio of customer service flow data,
Guarantee to improve bandwidth availability ratio by the compression of PE equipment.
Further, with reference to Fig. 3, third embodiment of the invention provides a kind of data compression method,
Based on the embodiment shown in above-mentioned Fig. 2, also include after step S30:
Step S50, according to compressing mark, to compressed user service data fluxion
Frame according in is decompressed.
Wherein, for the user service data flow data of uncompressed mistake, according to uncompressed mark,
Original data transmissions are kept to which.
Wherein, customer service flow data enter opposite end PE equipment after according to mark to the user
Frame in traffic data is decompressed, and is reduced initial data, is designated unpressed
User data flow data keeps initial data.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
(1), after user traffic flow Customer Frame enters PE equipment, choose user's stream
Measure the user traffic flow in Top20;
(2) anticipation is analyzed to the Frame in the customer service flow data of selection, if even
Continuous three frame data compression ratios are compressed to subsequent user traffic data more than 10%;
(3) when the user traffic for being compressed jumps out Top20 or compression ratio less than 10%,
Compression switch is closed then;
(4) in the outlet addition compressing mark Compress Lable of PE equipment;
(5) Business Stream after encapsulating enters P equipment, only changes when transmitting in multiple P equipment
Become new TMPLS Lable, the Business Stream of compression no longer changes, until entering opposite end
PE equipment;
(6) Business Stream is decapsulated into after the PE equipment of opposite end, is then pressed to being designated
The Business Stream of contracting is decompressed, and reduces initial data Customer Frame, is finally reached and is used
Family equipment.
In the present embodiment, PE equipment is decompressed to customer service flow data according to mark,
The time is saved, bandwidth availability ratio is improve.
With reference to Fig. 4, first embodiment of the invention provides a kind of data compression device, including:Number
According to selection module 100, anticipation module 200, compression module 300 and control module 400, its
In:
Data decimation module 100, chooses customer service flow data to be compressed for PE equipment.
This embodiment scheme is mainly used in PTN grouping conveying networks, is also not necessarily limited to certainly which
He needs the transmission network of data compression, the present embodiment to be lifted with PTN grouping conveying networks
Example.
First, the customer service flow data that PE monitoring of tools is transmitted from equipment.
Then, have more than setting and flow threshold or reach setting data stream when PE equipment is detected
The customer service flow data of amount, or the customer service flow data of intended service type, data choosing
These user traffic flow data records are got off by delivery block 100, used as user traffic flow to be compressed
Data.
It should be noted that user traffic flow data traffic threshold values.Data flow value and service class
Type all can be to change with the needs of user, be the mark for monitoring traffic in network situation
It is accurate.
Wherein, on PTN technological essences it is a kind of packet-based routing framework, using the teaching of the invention it is possible to provide many
Service technique is supported.It is a kind of technology for being more suitable for IP operation transmission.In current net
Under network and technical conditions, all in all, PTN can be divided into Ethernet enhancement techniques and transmission technology
With reference to two big class of MPLS,, with PBT as representative, the latter is with T-MPLS as representative for the former.
PBT technologies need multilayer encapsulation, higher to the requirement of the hardware configurations such as chip, so gradually
Abandoned by operator and manufacturer.T-MPLS has obtained big rule in world's top-notch operator at present
Mould application.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
For the T-MPLS transmission means comprising E1 speech datas, user traffic flow enters PE
After equipment, E1 audio data streams are not compressed, with original data transmissions, anticipation module 200
Anticipation is carried out to other data services, if reaching compression requires that compression module 300 is then to institute
State other data services to be compressed, it is ensured that E1 transmitting voice signals do not have time delay.
Anticipation module 200, for current pre- in customer service flow data to be compressed described in anticipation
Whether the Frame of framing number reaches compression requires.
Specifically, anticipation module 200 needs the user of the big flow to the PE equipment choices
Frame in traffic data or the data in the customer service flow data of intended service type
Frame is compressed anticipation.
Anticipation module 200 is entered successively by the continuous several frame data frames to customer service flow data
Row compression, when the compression ratio of all Frames for participating in compression anticipation exceedes the numerical value of setting, then
The customer service flow data has reached compression and has required that otherwise, customer service flow data does not reach
Require to compression.
Wherein, the compression anticipation of anticipation module 200 is carried out on the backstage of PE equipment, not
It is that really the Frame in customer service flow data is compressed,.To avoid transmission delay,
The Frame of compression anticipation is identified uncompressed still with original data transmissions.
It should be noted that in PTN Packet Transport Network, can be improved using data compression
Bandwidth availability ratio, but not all data have compression value, some data very little itself
But if the more transmission times of occupancy are comprehended to its place of being compressed, cause transmission delay.
Compression module 300, for requiring when the Frame of the current predetermined frame number reaches compression
When, the subsequent data frame of the Frame for reaching the predetermined frame number that compression is required is pressed
Contracting, and the Frame of compression is identified to compress.
Specifically, PE equipment detects customer service flow data and reaches and compresses requirement, compresses mould
Block 300 will be compressed process to the Frame in the customer service flow data, and
User traffic flow during Frame in compression customer service flow data, after labelling compression
Frame in data is to compress, in the customer service flow data that labelling is not compressed
Frame is uncompressed, and the user traffic flow Frame for participating in compression anticipation does not compress, with original
Data transfer.
It should be noted that LZW, Deffate/Inflate algorithm is a kind of nothing based on dictionary
Compression algorithm is damaged, this kind of lossless compression algorithm calculating speed is fast, it is easy to accomplish, with the algorithm
Based on compression algorithm be relatively specific for the network data transmission with real-time.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
The first step, PE equipment are chosen more than certain flow threshold according to data decimation module 100
Or the user traffic flow that flow is larger, or the user traffic flow for selecting some types of service;
Second step, is compressed by 200 pairs of continuous a few frame Business Streams of anticipation module, works as compression
Rate exceedes certain value, then start compression, otherwise do not start, carry out the Business Stream of anticipation still with original
Beginning data transfer;
3rd step, compression module 300 are compressed to follow-up business stream according to anticipation result;
4th step, 300 pairs of compressed data frame identifications of compression module are compressed, to not pressing
The data frame identification of contracting is uncompressed, and the Business Stream for only having carried out anticipation is still passed with initial data
It is defeated, identify uncompressed.
5th step, second judges compression unit 320 when service traffics are less than the flow threshold chosen
Or not in selected range of flow, or be not set type of service, abandon compression;
6th step, first judges that compression unit 310 is near or below certain value when compression ratio, puts
Compression is abandoned, control module 400 is compressed anticipation to Business Stream again;
7th step, in receiving terminal, according to compressing mark, decompression module 500 is to compressed
Frame is decompressed, and the data of uncompressed mistake keep initial data.
It should be noted that being identified to the Frame in compressed customer service flow data
The purpose of process is to facilitate follow-up decompression, and PE equipment can be carried out according to mark
Decompression, it is time-consuming.
Control module 400, for being not reaching to compression when the Frame of the current predetermined frame number
During requirement, the Frame of next predetermined frame number in the customer service flow data is chosen as working as
The Frame of front predetermined frame number, and return to be compressed by described in the compression anticipation module anticipation
In customer service flow data, whether the Frame of current predetermined frame number reaches compression and requires.
Wherein, when there is the Frame for not reaching compression requirement in the Frame of predetermined frame number, PE
Equipment continues to choose the Frame of next predetermined frame number and is compressed anticipation.
Specifically, the Frame of the current predetermined frame number will entirely reach compression and require, just enter
Row next step, if the Frame of the predetermined frame number does not entirely reach compression and requires, that
PE equipment continues to choose the Frame of next predetermined frame number and is compressed anticipation.
It should be noted that being not reaching to when PE equipment detects the customer service flow data
Compression requirement, then illustrate that the user traffic flow efficiency of data compression is not high, data volume after compression
Significantly reduction is not had, the time that compression is used is added, when may take more transmission
Between, cause transmission delay.
In the present embodiment, choose to be compressed from PE equipment by data decimation module 100
Customer service flow data;In customer service flow data to be compressed described in 200 anticipation of anticipation module
Whether the Frame of current predetermined frame number reaches compression requires;When the number of the current predetermined frame number
When compression is reached according to frame and requiring, reach the predetermined frame number that compression is required described in compression module 300 pairs
The subsequent data frame of Frame be compressed, the Frame of the mark compression of compression module 300 is
Compress;When the Frame of the current predetermined frame number is not reaching to compression to be required, mould is controlled
Block 400 chooses the Frame of next predetermined frame number in the customer service flow data as working as
The Frame of front predetermined frame number, and return to be compressed by described in the compression anticipation module anticipation
In customer service flow data, whether the Frame of current predetermined frame number reaches compression and requires.This enforcement
Example realizes automatically selecting for user traffic flow data compression, and intelligent anticipation improves bandwidth usage
Rate.
Further, with reference to Fig. 5, second embodiment of the invention provides a kind of data compression device,
Based on the embodiment shown in above-mentioned Fig. 4, the compression module 300 includes:
First judges compression unit 310, for judging to connect with the presence or absence of compression ratio in compression process
Closely or less than the Frame of setting value, if existing, setting is near or below to the compression ratio
Frame after the Frame of value is compressed anticipation.
Wherein, while PE equipment is compressed to the Frame in customer service flow data,
First judges that compression unit 310 will monitor the pressure of the Frame in the customer service flow data
Shrinkage, if the compression ratio of the Frame in customer service flow data is not up to setting value, stops
Only to the user traffic flow data compression.
It should be noted that in PTN Packet Transport Network, can be improved using data compression
Bandwidth availability ratio, but not all data have compression value, account for after some data compressions
Time with transmission is more, reduces bandwidth availability ratio.
Second judges that compression unit 320 pairs is reached in the customer service flow data that compression is required
Frame is compressed process.
It should be noted that PE equipment needs to carry out monitor in real time to customer service flow data,
If second judges that compression unit 320 finds that user traffic flow data traffic is not up to setting value,
Or be not set type of service, then stop to the user traffic flow data compression.
In the present embodiment, monitoring number of the PE equipment by monitor in real time customer service flow data
Whether value reaches the setting numerical value of PE equipment, meanwhile, customer service is monitored in compression process
Whether the compression ratio of the Frame in flow data reaches the setting numerical value of PE equipment, and determining is
The no Frame continued in the compression customer service flow data, it is ensured that customer service flow data
Compression ratio, it is ensured that by PE equipment compression improve bandwidth availability ratio.
Further, with reference to Fig. 6, third embodiment of the invention provides a kind of data compression device,
Based on the embodiment shown in above-mentioned Fig. 4, the data compression device also includes:
Decompression module 500, for the compressing mark according to, to compressed user's industry
Frame in business data flow data is decompressed, according to the uncompressed mark, uncompressed
The user service data flow data crossed keeps initial data.
Wherein, customer service flow data enter opposite end PE equipment after decompression module 500 according to
Mark is decompressed to the customer service flow data, reduces initial data.
When being embodied as, by taking PTN Packet Transport Network as an example, comprise the following steps that:
(1) after user traffic flow Customer Frame enters PE equipment, data decimation mould
Block 100 chooses user traffic flow of the customer flow in Top20;
(2) Frame in the customer service flow datas of the selection of anticipation module 200 pairs is carried out point
Analysis anticipation, if continuous three frame data compression ratio is more than 10%, compression module 300 is to subsequent user
Traffic data is compressed;
(3) when the user traffic for being compressed jumps out Top20 or compression ratio less than 10%,
Compression switch is closed then;
(4) outlet addition compressing mark Compress of the compression module 300 in PE equipment
Lable;
(5) Business Stream after encapsulating enters P equipment, only changes when transmitting in multiple P equipment
Become new TMPLS Lable, the Business Stream of compression no longer changes, until entering opposite end
PE equipment;
(6) Business Stream is decapsulated into after the PE equipment of opposite end, then decompression module
500 pairs are designated the Business Stream for having compressed and decompress, and reduce initial data Customer
Frame, finally reaches user equipment.
In the present embodiment, decompression unit 500 is carried out to customer service flow data according to mark
Decompression, time-consuming, bandwidth availability ratio.
The preferred embodiments of the present invention are these are only, the patent model of the present invention is not thereby limited
Enclose, the equivalent structure or equivalent process made by every utilization description of the invention and accompanying drawing content becomes
Change, or be directly or indirectly used in other related technical fields, be included in the present invention in the same manner
Scope of patent protection in.
Claims (10)
1. a kind of data compression method, it is characterised in that include:
S10, network side edge device PE equipment chooses customer service flow data to be compressed;
S20, in customer service flow data to be compressed described in anticipation, whether the Frame of current predetermined frame number
Reach compression to require;
S30, when the Frame of the current predetermined frame number reaches compression to be required, reaches compression to described
The subsequent data frame of the Frame of the predetermined frame number for requiring is compressed, and identifies the Frame of compression for
Compression;
S40, when the Frame of the current predetermined frame number is not reaching to compression to be required, chooses the use
Frame of the Frame of next predetermined frame number as current predetermined frame number in the traffic data of family, and return
Return execution step S20.
2. data compression method as claimed in claim 1, it is characterised in that described pair reach compression will
During the Frame and its subsequent data frame of the predetermined frame number asked are compressed, including:
The Frame of setting value is near or below in judging compression process with the presence or absence of compression ratio, if existing,
The Frame after the Frame of setting value is then near or below to the compression ratio and is compressed anticipation;
If in compression process, the flow of the customer service flow data of compression is not up to setting value, or not
When being set type of service, then stop compression.
3. data compression method as claimed in claim 1, it is characterised in that the PE equipment is chosen
The step of customer service flow data to be compressed, includes:
PE equipment chooses the customer service flow data that data traffic reaches setting value, or selected intended service
The customer service flow data of type, as customer service flow data to be compressed.
4. data compression method as claimed in claim 1, it is characterised in that wait to press described in the anticipation
In the customer service flow data of contracting, whether the Frame of predetermined frame number reaches the step of compression is required and includes:
The Frame of the predetermined frame number of the user traffic flow to be compressed chosen to the PE equipment is pressed
Contracting anticipation, when compression ratio exceedes setting value, then starts compression.
5. the data compression method as any one of claim 1-4, it is characterised in that described to work as
When the Frame of the current predetermined frame number reaches compression and requires, the predetermined frame that compression is required is reached to described
The subsequent data frame of several Frames is compressed, and the step of identify the Frame of compression to compress it
Afterwards, also include:
According to the compressing mark, compressed user service data flow data is decompressed.
6. a kind of device of data compression, it is characterised in that the device includes:
Data decimation module, for choosing customer service flow data to be compressed;
Anticipation module, for the number of current predetermined frame number in customer service flow data to be compressed described in anticipation
Require according to whether frame reaches compression;
Compression module, for when the Frame of the current predetermined frame number reaches compression and requires, to described
The subsequent data frame for reaching the Frame of the predetermined frame number that compression is required is compressed, and identifies the number of compression
It is to compress according to frame;
Control module, for when the Frame of the current predetermined frame number is not reaching to compression and requires, choosing
Take the data of the Frame as current predetermined frame number of next predetermined frame number in the customer service flow data
It is current pre- in frame, and return customer service flow data to be compressed by described in the compression anticipation module anticipation
Whether the Frame of framing number reaches compression requires.
7. data compression device as claimed in claim 6, it is characterised in that the compression module bag
Include:
First judges compression unit, sets for judging to be near or below with the presence or absence of compression ratio in compression process
The Frame of definite value, if existing, after being near or below the Frame of setting value to the compression ratio
Frame is compressed anticipation;
Second judges compression unit, if in compression process, the stream of the customer service flow data of compression
Amount is not up to setting value, or when not being set type of service, then stops compression.
8. data compression device as claimed in claim 7, it is characterised in that the data decimation module,
It is additionally operable to:
Choose data traffic and reach the customer service flow data of setting value, or selected intended service type
Customer service flow data, as customer service flow data to be compressed.
9. data compression device as claimed in claim 8, it is characterised in that the anticipation module, also
For:
The Frame of the predetermined frame number of the user traffic flow to be compressed chosen to the PE equipment is pressed
Contracting anticipation, when compression ratio exceedes setting value, then starts compression.
10. the data compression device as any one of claim 6-9, it is characterised in that the dress
Putting also includes:
Decompression module, for the compressing mark according to, to the compressed user service data
Flow data is decompressed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510683019.5A CN106603476B (en) | 2015-10-19 | 2015-10-19 | Data compression method and device |
PCT/CN2016/096239 WO2017067313A1 (en) | 2015-10-19 | 2016-08-22 | Data compression method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510683019.5A CN106603476B (en) | 2015-10-19 | 2015-10-19 | Data compression method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106603476A true CN106603476A (en) | 2017-04-26 |
CN106603476B CN106603476B (en) | 2021-02-12 |
Family
ID=58555195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510683019.5A Active CN106603476B (en) | 2015-10-19 | 2015-10-19 | Data compression method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106603476B (en) |
WO (1) | WO2017067313A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683603A (en) * | 2018-05-14 | 2018-10-19 | 广州经传多赢投资咨询有限公司 | A kind of efficient binary transmissions agreement based on real-time streams compress technique |
CN109218214A (en) * | 2018-10-31 | 2019-01-15 | 中盈优创资讯科技有限公司 | Carrier-class universal flow compression method and device |
CN110719577A (en) * | 2019-10-08 | 2020-01-21 | 浙江大学 | Wireless data acquisition system based on data frame format optimization and data compression |
CN112069141A (en) * | 2020-08-25 | 2020-12-11 | 广东华风海洋信息系统服务有限公司 | Special compression method for meteorological forecast lattice point data |
CN113609429A (en) * | 2021-08-10 | 2021-11-05 | 广州至真信息科技有限公司 | Data processing method and device based on message queue, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816182A (en) * | 2005-02-02 | 2006-08-09 | 华为技术有限公司 | Method of transmitting data to base station by base station controller |
US20110051815A1 (en) * | 2009-08-25 | 2011-03-03 | Samsung Electronics Co., Ltd. | Method and apparatus for encoding data and method and apparatus for decoding data |
CN102291398A (en) * | 2011-08-05 | 2011-12-21 | 中兴通讯股份有限公司 | Data compression and decompression method, device and system in wireless communication system |
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1157653C (en) * | 1994-04-22 | 2004-07-14 | 索尼公司 | Device and method for transmitting data, and device and method for recording data |
CN101552652A (en) * | 2009-05-13 | 2009-10-07 | 北京交大思源科技有限公司 | A document transmission method and transmission device |
CN102437854B (en) * | 2011-11-03 | 2014-03-26 | 电子科技大学 | Industrial real-time data compression method with high compression ratio |
CN103117958B (en) * | 2013-01-08 | 2015-11-25 | 北京百度网讯科技有限公司 | Network data packet aggregation method, system and device |
-
2015
- 2015-10-19 CN CN201510683019.5A patent/CN106603476B/en active Active
-
2016
- 2016-08-22 WO PCT/CN2016/096239 patent/WO2017067313A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816182A (en) * | 2005-02-02 | 2006-08-09 | 华为技术有限公司 | Method of transmitting data to base station by base station controller |
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 |
US20110051815A1 (en) * | 2009-08-25 | 2011-03-03 | Samsung Electronics Co., Ltd. | Method and apparatus for encoding data and method and apparatus for decoding data |
CN102291398A (en) * | 2011-08-05 | 2011-12-21 | 中兴通讯股份有限公司 | Data compression and decompression method, device and system in wireless communication system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683603A (en) * | 2018-05-14 | 2018-10-19 | 广州经传多赢投资咨询有限公司 | A kind of efficient binary transmissions agreement based on real-time streams compress technique |
CN109218214A (en) * | 2018-10-31 | 2019-01-15 | 中盈优创资讯科技有限公司 | Carrier-class universal flow compression method and device |
CN110719577A (en) * | 2019-10-08 | 2020-01-21 | 浙江大学 | Wireless data acquisition system based on data frame format optimization and data compression |
CN112069141A (en) * | 2020-08-25 | 2020-12-11 | 广东华风海洋信息系统服务有限公司 | Special compression method for meteorological forecast lattice point data |
CN113609429A (en) * | 2021-08-10 | 2021-11-05 | 广州至真信息科技有限公司 | Data processing method and device based on message queue, computer equipment and storage medium |
CN113609429B (en) * | 2021-08-10 | 2024-04-05 | 广州至真信息科技有限公司 | Data processing method and device based on message queue, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017067313A1 (en) | 2017-04-27 |
CN106603476B (en) | 2021-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106603476A (en) | Data compression method and device | |
RU2310283C2 (en) | System and method for bi-directional packet data transmission | |
US20040133702A1 (en) | Method of processing data packets | |
CN107635252B (en) | Data packet header compression method and communication device thereof | |
CN101483595B (en) | Data forwarding method and system based on T-MPLS network | |
CN107196816B (en) | Abnormal flow detection method and system and network analysis equipment | |
CN100452897C (en) | System and method for communicating traffic between a cell site and a central office in a telecommunications network | |
US9392082B2 (en) | Communication interface and method for robust header compression of data flows | |
CN104468391A (en) | Method and system for achieving load balance according to user information of tunnel message | |
CN101257456A (en) | Method and apparatus for enhancing compressing message forwarding performance | |
CN101534291A (en) | Method for sending and receiving IP message and device thereof | |
CN107645391B (en) | Port configuration method and device of interface expansion equipment | |
US8345080B2 (en) | Method of monitoring 3G video telephony through DM port | |
CN100505756C (en) | Method for recognizing RTP media stream in network | |
EP2445160A1 (en) | Method for automatically negotiating type of service and aggregation apparatus therefor | |
CN101258722B (en) | Efficient encoding out of order data packets in a network | |
CN101489093B (en) | Code stream transmission method, terminal and system for conference communication | |
CN105703967A (en) | Method and apparatus for detecting label switching path connectivity | |
CN107547444B (en) | Traffic statistical method and switching equipment | |
CN107404506A (en) | A kind of compression of data transfer, decompression method and system | |
CN102638391B (en) | Method and equipment for transmission of frame relay compressed messages | |
CN102577262B (en) | Communication system | |
KR20190054171A (en) | Method and device for evaluating video quality | |
US9584410B2 (en) | System and method for selecting layer-2 adapter | |
US9313247B2 (en) | Method of transmitting data in a communication system |
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 |