Movatterモバイル変換


[0]ホーム

URL:


CN110430168A - A kind of method and apparatus of data compression - Google Patents

A kind of method and apparatus of data compression
Download PDF

Info

Publication number
CN110430168A
CN110430168ACN201910606239.6ACN201910606239ACN110430168ACN 110430168 ACN110430168 ACN 110430168ACN 201910606239 ACN201910606239 ACN 201910606239ACN 110430168 ACN110430168 ACN 110430168A
Authority
CN
China
Prior art keywords
data
view
server
decompression
compression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910606239.6A
Other languages
Chinese (zh)
Inventor
李明亮
沈军
杨传坤
付林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co LtdfiledCriticalVisionvera Information Technology Co Ltd
Priority to CN201910606239.6ApriorityCriticalpatent/CN110430168A/en
Publication of CN110430168ApublicationCriticalpatent/CN110430168A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a kind of method and apparatus of data compression, are applied to view networking, which comprises receive the first view networking protocol data that the view networked clients are sent;Wherein, the first view networking protocol data include the first header data and the first message solid data;According to the first header data, the first message solid data is compressed, obtains the second message solid data, and by the second message solid data and the first header data organization at the second view networking protocol data;It is sent to the decompression server depending on networking protocol data by described second depending on networking Core server by described, the compression in view networking to view networking protocol data and decompression is realized, reduces the volume of data in transmission process, improve data transmission efficiency.

Description

A kind of method and apparatus of data compression
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of method and apparatus of data compression.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet.It is used as real-time network depending on networking,It can be realized the whole network HD video real-time Transmission that current internet cannot achieve, push numerous Internet applications to HD videoChange, high definition is face-to-face, and the distance for realizing person to person in global range is the distance of a screen.
In the prior art, it will do it frequent data transmission depending on networked terminals, however, the number of each view networked terminals interactionAccording to being all the data without overcompression, when transmitted data amount is larger or bandwidth is limited, data transmission bauds is restricted, transmissionEfficiency decline.
Summary of the invention
In view of the above problems, the present invention is proposed in order to provide overcoming the above problem or at least being partially solved above-mentioned askA kind of method and apparatus of data compression of topic, comprising:
A kind of method of data compression is applied to view networking, described to be related to regarding networked clients depending on networking, join with the viewThe compression service device of net client connection, the view networking Core server connecting with the compression service device are networked with the viewThe decompression server of Core server connection, and the view networked server being connect with the decompression server;
The described method includes:
The compression service device receives the first view networking protocol data that the view networked clients are sent;Wherein, describedFirst view networking protocol data include the first header data and the first message solid data;
The compression service device presses the first message solid data according to the first header dataContracting, obtains the second message solid data, and by the second message solid data and the first header data organization atSecond view networking protocol data;
The compression service device is sent to described second depending on networking protocol data by described depending on networking Core serverThe decompression server;Wherein, the decompression server is used for according to the first message in the second view networking protocol dataHeader data decompresses the second message solid data, and the second message solid data after the decompression is sentTo the view networked server.
Optionally, described according to the first header data, the first message solid data is compressed, is obtainedInclude: to the step of the second message solid data
Compression algorithm instruction is obtained from the first header data;
It searches the compression algorithm and indicates corresponding targeted compression algorithm;
Using the targeted compression algorithm, the first message solid data is compressed, generates the second message solid data.
It is optionally, described before obtaining the step of compression algorithm indicates in the first header data, further includes:
Parse the first header data;
Whether judge in the first header data comprising compressing mark;
When in the first header data including the compressing mark, execute described from first headerThe step of compression algorithm instruction is obtained in data.
Optionally, the first header data include following one or more:
Compressing mark, compression algorithm instruction, virtual terminal number, virtual physical address.
A kind of method of data compression is applied to view networking, described to be related to regarding networked clients depending on networking, join with the viewThe compression service device of net client connection, the view networking Core server connecting with the compression service device are networked with the viewThe decompression server of Core server connection, and the view networked server being connect with the decompression server;
The described method includes:
The decompression server receives the second view that the compression service device is sent by the view networking Core serverNetworking protocol data;Wherein, the second view networking protocol data include the second message solid data and the first header numberIt is used to receive the first view networking protocol data that the view networked clients are sent according to, the compression service device, according to described theThe first header data in one view networking protocol carry out the first message solid data in the first view networking protocolCompression, obtains the second message solid data, and by the second message solid data and the first header data organizationAt the second view networking protocol data, institute is sent to depending on networking protocol data by described second depending on networking Core server by describedState decompression server;
The decompression server solves the second message solid data according to the first header dataPressure, the second message solid data after being decompressed;
The second message solid data after the decompression is sent to view networked server by the decompression server.
Optionally, described according to the first header data, the second message solid data is decompressed, is obtainedThe step of the second message solid data after to decompression includes:
Compression algorithm instruction is obtained from the first header data;
It searches the compression algorithm and indicates corresponding target decompression algorithm;
The second message solid data is decompressed using the target decompression algorithm, the second message entity after generating decompressionData.
It is optionally, described before obtaining the step of compression algorithm indicates in the first header data, further includes:
Parse the first header data;
Whether judge in the first header data comprising compressing mark;
When in the first header data including the compressing mark, execute described from first headerThe step of compression algorithm instruction is obtained in data.
Optionally, the first header data include following one or more:
Compressing mark, compression algorithm instruction, virtual terminal number, virtual physical address.
A kind of device of data compression is applied to view networking, described to be related to regarding networked clients depending on networking, join with the viewThe compression service device of net client connection, the view networking Core server connecting with the compression service device are networked with the viewThe decompression server of Core server connection, and the view networked server being connect with the decompression server;
Described device includes:
First view networking protocol data reception module, the first view networking association sent for receiving the view networked clientsDiscuss data;Wherein, the first view networking protocol data include the first header data and the first message solid data;
Second view networking protocol data organisation module, for being reported to described first according to the first header dataLiterary solid data is compressed, and obtains the second message solid data, and the second message solid data and described first are reportedLiterary header data is organized into the second view networking protocol data;
Second view networking protocol data transmission blocks, for being joined second view by view networking Core serverFidonetFido data are sent to the decompression server;Wherein, the decompression server is used for according to the second view networking protocolFirst header data in data decompress the second message solid data, and second after the decompression is reportedLiterary solid data is sent to the view networked server.
A kind of device of data compression is applied to view networking, described to be related to regarding networked clients depending on networking, join with the viewThe compression service device of net client connection, the view networking Core server connecting with the compression service device are networked with the viewThe decompression server of Core server connection, and the view networked server being connect with the decompression server;
Described device includes:
Second view networking protocol data reception module passes through view networking core clothes for receiving the compression service deviceThe second view networking protocol data that business device is sent;Wherein, the second view networking protocol data include the second message solid dataWith the first header data, the compression service device is used to receive the first view networking protocol that the view networked clients are sentData, according to the first header data in the first view networking protocol, to first in the first view networking protocolMessage solid data is compressed, and obtains the second message solid data, and by the second message solid data and described firstHeader data organization networks second view at the second view networking protocol data, by view networking Core serverProtocol data is sent to the decompression server;
Data acquisition module is decompressed, is used for according to the first header data, to the second message solid dataIt is decompressed, the second message solid data after being decompressed;
Data transmission blocks are decompressed, for the second message solid data after the decompression to be sent to view the Internet servicesDevice.
The embodiment of the present invention has the advantage that
In the embodiment of the present application, the first view networking protocol data sent by receiving view networked clients, wherein theOne view networking protocol data include the first header data and the first message solid data, according to the first header data,First message solid data is compressed, obtains the second message solid data, and the second message solid data and first are reportedLiterary header data is organized into the second view networking protocol data, regards networking protocol number for second by view networking Core serverAccording to being sent to decompression server, wherein decompression server can be according to the first header in the second view networking protocol dataData decompress the second message solid data, and the second message solid data after decompression is sent to view the Internet servicesDevice realizes the compression in view networking to view networking protocol data and decompression, reduces the volume of data in transmission process, mentionHigh data transmission efficiency.
Detailed description of the invention
It, below will be attached needed in the description of this invention in order to illustrate more clearly of technical solution of the present inventionFigure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this fieldFor those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attachedFigure.
Fig. 1 is a kind of networking schematic diagram for view networking that one embodiment of the invention provides;
Fig. 2 is a kind of hardware structural diagram for node server that one embodiment of the invention provides;
Fig. 3 is a kind of hardware structural diagram for access switch that one embodiment of the invention provides;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association that one embodiment of the invention provides turns gateway;
Fig. 5 is a kind of step flow chart of the method for data compression that one embodiment of the invention provides;
Fig. 6 is a kind of connection schematic diagram for view networked devices that one embodiment of the invention provides;
Fig. 7 is the structural block diagram of the method for another data compression that one embodiment of the invention provides;
Fig. 8 is a kind of structural block diagram of the device for data compression that one embodiment of the invention provides;
Fig. 9 is the structural block diagram of the device for another data compression that one embodiment of the invention provides.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific realApplying mode, the present invention is described in further detail.Obviously, described embodiments are some of the embodiments of the present invention, withoutIt is whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative workEvery other embodiment obtained is put, shall fall within the protection scope of the present invention.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required serviceClear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoringField live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publicationAll be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV orComputer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on networkVideo flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice networkSwitching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technologyFlexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch typeThe seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lackIt falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basisIt is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutuallyThe whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platformTransmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energyEnough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming MediaComplexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow andUsing state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, mediaContent is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizesSector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, butThe concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every timeThe network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented blackThe attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a netThe sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain richThe multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. classType, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machinesTop box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phasesEven, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serveDevice.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet endPoint, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serveDevice.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan areaThe network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flatPlatform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
1, view networked devices classification
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including etherNet association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking(or national net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including etherNet association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk arrayModule 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engineModule 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is closeIt is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditionsIt is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, includingThe operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mouldWhether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mouldThe packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 304 is come in enters switching engineModule 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packetNavigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 308 is configured by CPU module 304, to all downlink networks in programmable intervalInterface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao HuanStorage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examinedEthernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packetDA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meetingIdentifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao ZeAddress D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gatewaySA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including networkMouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engineModule, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includesNetwork Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DASAReservedPayloadCRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packetDiscuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipmentIt can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node serverConnection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipmentSystem, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specificationChange) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B justThere are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet entersThe label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point withThe label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DASAReservedLabelPayloadCRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.ItsIn, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its positionSet is between the reserve bytes and payload of data packet.
Referring to Fig. 5, a kind of step flow chart of the method for data compression of one embodiment of the invention offer is shown, it can be withIt networks applied to view, depending on multiple terminals can be related in networking, such as regards networked clients, compression service device, view networking core clothesBusiness device, decompression server and view networked server.
In communication connection, depending on view networked clients, compression service device, the view networking Core server, decompression in networkingServer, and can be sequentially connected depending on networked server, as shown in fig. 6, can connect with compression service device depending on networked clientsIt connects, compression service device can be connect by view networking Core server with decompression server, and decompression server can network with viewServer connection.
As an example, compression service device can be used for carrying out data compression to view networking protocol data, depending on core of networkingServer can receive the compressed data of compression service device generation and be forwarded to decompression server, and decompression server can be used for pairIt is compressed to be decompressed depending on networking protocol data, and it is sent to view networked server, such as view networking command scheduling server, viewNetworking streaming media server, view networking monitoring Resource Server etc..
Specifically, may include steps of:
Step 501, the compression service device receives the first view networking protocol data that the view networked clients are sent;
Wherein, first may include the first header data and the first message solid data depending on networking protocol data, andOne message solid data can be in the first view networking protocol data, the data in addition to the first header data.
When sending data using view networked clients, user can be operated, as clicking operation key is regarded to instructionNetworked clients send the first view networking protocol data can be to compression service device depending on networked clients in response to user's operationThe first view networking protocol data are sent, so that compression service device receives the data.
Step 502, the compression service device is according to the first header data, to the first message solid dataIt is compressed, obtains the second message solid data, and by the second message solid data and the first header dataIt is organized into the second view networking protocol data;
As an example, the first header data include following one or more:
Compressing mark, compression algorithm instruction, virtual terminal number, virtual physical address.
Specifically, compressing mark can indicate to compress to depending on networking protocol data, compression algorithm instruction can be identifiedThe compression algorithm used in compression, virtual terminal number and virtual physical address can identify the logical address of virtual terminal, withDistinguish different virtual terminals.
After receiving the first view networking protocol data, compression service device can be according to the pressure in the first header dataCompression algorithm mark, compresses the first message solid data, generates the second message solid data, and by the first header numberIt is packaged according to being encapsulated with the second message solid data, generates the second view networking protocol data.
It is described according to the first header data in one embodiment of the application, to the first message entity numberAccording to being compressed, the step of obtaining the second message solid data may include following sub-step:
Sub-step 11 obtains compression algorithm instruction from the first header data;
Compression service device can obtain pressure after receiving the first view networking protocol data from the first header dataCompression algorithm instruction, to determine targeted compression algorithm.
Sub-step 12 searches the compression algorithm and indicates corresponding targeted compression algorithm;
In practical applications, a variety of compression algorithms can be stored in advance in compression service device in the database, and are eachCompression algorithm is arranged compression algorithm and indicates, to distinguish different compression algorithms, when compression service device is from the first header dataAfter middle acquisition compression algorithm instruction, the compression algorithm can be searched and indicate corresponding targeted compression algorithm.
Sub-step 13 compresses the first message solid data using the targeted compression algorithm, and it is real to generate the second messageVolume data
After determining target algorithm, compression service device can using the targeted compression algorithm to the first message solid data intoRow compression, and data will be obtained after compression as the second message solid data.
In one embodiment of the application, before sub-step 11, can with the following steps are included:
Parse the first header data;Whether judge in the first header data comprising compressing mark;When in the first header data including the compressing mark, execution is described to be obtained from the first header dataThe step of pressure compression algorithm indicates.
In practical applications, compression service device and it is non-required to it is all receive all pressed depending on networking protocol dataContracting.Compression service device can be to compressing depending on networking protocol data for compression be instructed to, and the view without being instructed to compression joinsThis can be forwarded directly to Core server depending on networking protocol data by fidonetFido data, compression service device, be based on this, receivedAfter first view networking protocol data, compression service device can pass through compressing mark, it is determined whether join to the first view receivedFidonetFido data are compressed.
For example, view networked clients when transmission first regards networking protocol data, can regard networking protocol data in advanceIn header add compressing mark, the first data of instruction need to be compressed, and first are sent to depending on networking protocol dataCompression service device.
After receiving the first view networking protocol data, compression service device can be solved the first header dataWhether analysis, acquisition include the information in the first header data, and judge in the first header data with compression markKnow, if in the first header data include compressing mark, compression service device can determine the first view networking protocol numberAccording to being instructed to be compressed, and compression algorithm instruction is obtained from the first header data;If in the first header dataWhen not comprising compressing mark, then it can determine that this first does not need to compress depending on networking protocol data, and directly send it toDepending on Core server of networking.
Step 503, the compression service device regards networking protocol number for described second by view networking Core serverAccording to being sent to the decompression server, wherein the decompression server is used for according in the second view networking protocol dataFirst header data decompress the second message solid data, and by the second message entity after the decompressionData are sent to the view networked server.
After generation second regards networking protocol data, compression service device can be sent to view depending on networking protocol data for secondNetworking Core server can decompress the data forwarding to decompression server depending on networking Core server.
Server is decompressed after receiving the second view networking protocol data, it can be from second depending on being obtained in networking protocol dataFirst header data and the second message solid data, and according to the first header data, to the second message solid dataIt is decompressed, the data after decompression is sent to view networked server.
In one embodiment of the application, server is decompressed according to the first header data, to the second message solid dataIt is decompressed, the step of the second message solid data after being decompressed may include:
Compression algorithm instruction is obtained from the first header data;It searches the compression algorithm and indicates corresponding meshMark decompression algorithm;The second message solid data is decompressed using the target decompression algorithm, the second message after generating decompressionSolid data.
Since different compression algorithms can correspond to different decompression algorithms, it can be deposited in advance in decompression serverA variety of different decompression algorithms are stored up, these decompression algorithms can be corresponding with the compression algorithm in compression service device, so that solution is forced to submitDecompression calculation in business device can be decompressed to what is compressed through compression service device depending on networking protocol data.
Server is decompressed after getting the second view networking protocol data, pressure can be obtained from the first header dataCompression algorithm instruction determines that compression service device is used when compressing the first message solid data, generating the second message solid dataCompression algorithm, then can in the database, search it is corresponding with the compression algorithm, the second message entity number can be decompressedAccording to target decompression algorithm, after determining target decompression algorithm, compression service device can be decompressed using targeted compression algorithm,The second message solid data after generating decompression.
In another embodiment of the application, decompression server obtains compression algorithm from the first header dataBefore the step of instruction, it can also include the following steps:
Parse the first header data;Whether judge in the first header data comprising compressing mark;When in the first header data including the compressing mark, execution is described to be obtained from the first header dataThe step of pressure compression algorithm indicates.
In practice, depending on networking Core server be sent to decompression server be all not depending on networking protocol data byThe data of compression, therefore, decompression server can not to it is all receive all compressed depending on networking protocol data.
Due to may include compressing mark in header depending on networking protocol data through overcompression, it is receivingTo after the second view networking protocol data, decompression server can first be parsed the first header data, and acquisition is included inWhether the information in the first header data judges with compressing mark in the first header data, if the first headingWhen containing compressing mark in portion's data, then it can determine that second depending on networking protocol data is the data through overcompression, solution is forced to submitBeing engaged in device can the further acquisition compression algorithm instruction from the first header data;If not wrapped in the first header dataWhen containing compressing mark, can then determine received view networking protocol data not through overcompression, and decompressing server can not be to thisIt is carried out depending on networking protocol data, directly sends it to view networked server.
In the embodiment of the present application, the first view networking protocol number that view networked clients are sent is received by compression service deviceAccording to;Wherein, the first view networking protocol data include the first header data and the first message solid data, according to the first messageHeader data compresses the first message solid data, obtains the second message solid data, and by the second message solid dataWith the first header data organization at the second view networking protocol data, the second view is joined by view networking Core serverFidonetFido data are sent to decompression server, wherein decompression server can be according to first in the second view networking protocol dataHeader data decompress the second message solid data, and the second message solid data after decompression is sent to viewNetworked server realizes the compression in view networking to view networking protocol data and decompression, reduces data in transmission processVolume, improve data transmission efficiency.
Referring to Fig. 7, a kind of step flow chart of the method for data compression of one embodiment of the invention offer is shown, it can be withIt networks applied to view, depending on the compression service device for regarding networked clients, connecting with depending on networked clients and pressure can be related in networkingThe view networking Core server of contracting server connection, with depending on the decompression server that connect of Core server of networking, and with decompressionThe view networked server of server connection.
Specifically, may include steps of:
Step 701, the decompression server receives the compression service device and is sent by view networking Core serverSecond view networking protocol data;Wherein, the second view networking protocol data include the second message solid data and the first reportLiterary header data, the compression service device are used to receive the first view networking protocol data that the view networked clients are sent, rootAccording to the first header data in the first view networking protocol, to the first message entity in the first view networking protocolData are compressed, and obtain the second message solid data, and by the second message solid data and first headerData organization regards networking protocol data for described second at the second view networking protocol data, by view networking Core serverIt is sent to the decompression server;
Step 702, the decompression server is according to the first header data, to the second message solid dataIt is decompressed, the second message solid data after being decompressed;
Step 703, the second message solid data after the decompression is sent to view the Internet services by the decompression serverDevice.
In the embodiment of the present application, the first view networking protocol number that view networked clients are sent is received by compression service deviceAccording to;Wherein, the first view networking protocol data include the first header data and the first message solid data, according to the first messageHeader data compresses the first message solid data, obtains the second message solid data, and by the second message solid dataWith the first header data organization at the second view networking protocol data, the second view is joined by view networking Core serverFidonetFido data are sent to decompression server, and decompression server is according to the first header number in the second view networking protocol dataAccording to, the second message solid data is decompressed, and the second message solid data after decompression is sent to view networked server,The compression in view networking to view networking protocol data and decompression are realized, the volume of data in transmission process is reduced, is improvedData transmission efficiency.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the methodIt closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according toAccording to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also shouldKnow, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implementedNecessary to example.
Referring to Fig. 8, a kind of structural block diagram of the device of data compression of one embodiment of the invention offer, Ke Yiying are shownIt networks for regarding, is taken depending on the compression service device that can be related to regarding networked clients, connecting with depending on networked clients of networking, with compressionThe view networking Core server of business device connection, the decompression server being connect with depending on networking Core server, and serviced with decompressionThe view networked server of device connection
Specifically, may include following module:
First view networking protocol data reception module 801, the first view connection sent for receiving the view networked clientsFidonetFido data;Wherein, the first view networking protocol data include the first header data and the first message solid data;
Second view networking protocol data organisation module 802, is used for according to the first header data, to described firstMessage solid data is compressed, and obtains the second message solid data, and by the second message solid data and described firstHeader data organization is at the second view networking protocol data;
Second view networking protocol data transmission blocks 803, for passing through view networking Core server for described secondThe decompression server is sent to depending on networking protocol data;Wherein, the decompression server is used to be networked according to second viewFirst header data in protocol data decompress the second message solid data, and by after the decompressionTwo message solid datas are sent to the view networked server.
In one embodiment of the application, second depending on networking protocol data organisation module 802 may include following submodule:
Compression algorithm instruction compression acquisition submodule, refers to for obtaining compression algorithm from the first header dataShow;
Targeted compression algorithm searches submodule, indicates corresponding targeted compression algorithm for searching the compression algorithm;
Second message solid data generates submodule, for using the targeted compression algorithm, compresses first messageSolid data generates the second message solid data.
In one embodiment of the application, second depending on networking protocol data organisation module 802 can also include following submodule:
First header data compression analyzing sub-module, for parsing the first header data;
Whether compressing mark compresses judging submodule, for judging in the first header data comprising compression markKnow;
Submodule is searched in compression algorithm instruction compression, is marked for working as in the first header data comprising the compressionWhen knowledge, compression algorithm instruction compression acquisition submodule is called.
In one embodiment of the application, the first header data include following one or more:
Compressing mark, compression algorithm instruction, virtual terminal number, virtual physical address.
Referring to Fig. 9, a kind of structural block diagram of the device of data compression of one embodiment of the invention offer is provided, is applied toDepending on networking, depending on the compression service device that can be related to regarding networked clients, connecting with depending on networked clients and the compression service device of networkingThe view networking Core server of connection, the decompression server being connect with depending on networking Core server, and connect with decompression serverThe view networked server connect;
Specifically, may include following module:
Second view networking protocol data reception module 901 passes through view networking core for receiving the compression service deviceThe second view networking protocol data that central server is sent;Wherein, the second view networking protocol data include the second message entityData and the first header data, the compression service device are used to receive the first view networking that the view networked clients are sentProtocol data, according to the first header data in the first view networking protocol, in the first view networking protocolFirst message solid data is compressed, and obtains the second message solid data, and by the second message solid data and describedFirst header data organization is regarded depending on networking Core server by described second at the second view networking protocol data by describedNetworking protocol data are sent to the decompression server;
Data acquisition module 902 is decompressed, is used for according to the first header data, to the second message entity numberAccording to being decompressed, the second message solid data after being decompressed;
Data transmission blocks 903 are decompressed, for the second message solid data after the decompression to be sent to view networking clothesBusiness device.
In one embodiment of the application, decompression data acquisition module 902 may include following submodule:
Compression algorithm instruction decompression acquisition submodule, refers to for obtaining compression algorithm from the first header dataShow;
Target decompression algorithm searches submodule, calculates for searching the corresponding target decompression of the compression algorithm signMethod;
Second message solid data decompresses submodule, real for decompressing second message using the target decompression algorithmVolume data, the second message solid data after generating decompression.
In one embodiment of the application, decompression data acquisition module 902 can also include following submodule:
First header data decompression analyzing sub-module, for parsing the first header data;
Whether compressing mark decompresses judging submodule, for judging in the first header data comprising compression markKnow;
Compression algorithm instruction decompression searches submodule, marks for working as in the first header data comprising the compressionWhen knowledge, compression algorithm instruction decompression acquisition submodule is called.
In one embodiment of the application, the first header data include following one or more:
Compressing mark, compression algorithm instruction, virtual terminal number, virtual physical address.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simplePlace illustrates referring to the part of embodiment of the method.
One embodiment of the invention additionally provides electronic equipment, may include processor, memory and storage on a memoryAnd the computer program that can be run on a processor, the side of data compression as above is realized when computer program is executed by processorThe step of method.
One embodiment of the invention additionally provides computer readable storage medium, stores and calculates on computer readable storage mediumMachine program, the step of method of data compression as above is realized when computer program is executed by processor.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are withThe difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculateMachine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software andThe form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer canWith in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program codeThe form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer programThe flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructionsIn each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide theseComputer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminalsStandby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devicesCapable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagramThe device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devicesIn computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packetThe manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagramThe function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so thatSeries of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thusThe instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchartAnd/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows basesThis creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted asIncluding preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrapThose elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, articleOr the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limitedElement, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of method and apparatus of data compression provided by the present invention, it is described in detail, answers hereinWith a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manageSolve method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, InThere will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hairBright limitation.

Claims (10)

The decompression server receives the second view networking that the compression service device is sent by the view networking Core serverProtocol data;Wherein, the second view networking protocol data include the second message solid data and the first header data, instituteThe first view networking protocol data that compression service device is sent for receiving the view networked clients are stated, are joined according to first viewThe first header data in fidonetFido are compressed to described first depending on the first message solid data in networking protocol,The second message solid data is obtained, and by the second message solid data and the first header data organization at secondDepending on networking protocol data, the decompression is sent to depending on networking protocol data by described second depending on networking Core server by describedServer;
Second view networking protocol data reception module passes through view networking Core server for receiving the compression service deviceThe the second view networking protocol data sent;Wherein, the second view networking protocol data include the second message solid data and theOne header data, the compression service device are used to receive the first view networking protocol number that the view networked clients are sentAccording to according to the first header data in the first view networking protocol, to the first report in the first view networking protocolLiterary solid data is compressed, and obtains the second message solid data, and the second message solid data and described first are reportedLiterary header data is organized into the second view networking protocol data, is assisted the second view networking by view networking Core serverView data are sent to the decompression server;
CN201910606239.6A2019-07-052019-07-05A kind of method and apparatus of data compressionPendingCN110430168A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910606239.6ACN110430168A (en)2019-07-052019-07-05A kind of method and apparatus of data compression

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910606239.6ACN110430168A (en)2019-07-052019-07-05A kind of method and apparatus of data compression

Publications (1)

Publication NumberPublication Date
CN110430168Atrue CN110430168A (en)2019-11-08

Family

ID=68410307

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910606239.6APendingCN110430168A (en)2019-07-052019-07-05A kind of method and apparatus of data compression

Country Status (1)

CountryLink
CN (1)CN110430168A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114172968A (en)*2021-10-262022-03-11阿里云计算有限公司Data decompression method, device, electronic equipment, medium and program product
CN114500668A (en)*2021-12-292022-05-13深圳市广和通无线股份有限公司Data transmission method and device, electronic equipment and storage medium
CN120010794A (en)*2025-04-222025-05-16山东云海国创云计算装备产业创新中心有限公司 A data storage method, device, medium and product for software disk array

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102291398A (en)*2011-08-052011-12-21中兴通讯股份有限公司Data compression and decompression method, device and system in wireless communication system
CN104038307A (en)*2013-03-052014-09-10鸿富锦精密工业(深圳)有限公司Data stream transmission system and method
CN105187370A (en)*2015-06-052015-12-23北京奇虎科技有限公司Data processing method and data processing system
CN102638579B (en)*2012-03-292016-05-04深圳市高正软件有限公司A kind of data processing method and system based on mobile device data transmission
WO2017070750A1 (en)*2015-10-292017-05-04VTX Holdings (Singapore) Pte. Ltd.A network communication system
CN106936441A (en)*2017-02-272017-07-07深圳国泰安教育技术股份有限公司A kind of data compression method and device
CN108696899A (en)*2017-04-072018-10-23北京京东尚科信息技术有限公司Sip message transmits and method of reseptance and transmission and reception device
CN108880875A (en)*2018-06-062018-11-23新华三技术有限公司The transmission method and device of log message
CN109672855A (en)*2018-11-122019-04-23视联动力信息技术股份有限公司A kind of data transmission method and device based on view networking

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102291398A (en)*2011-08-052011-12-21中兴通讯股份有限公司Data compression and decompression method, device and system in wireless communication system
CN102638579B (en)*2012-03-292016-05-04深圳市高正软件有限公司A kind of data processing method and system based on mobile device data transmission
CN104038307A (en)*2013-03-052014-09-10鸿富锦精密工业(深圳)有限公司Data stream transmission system and method
CN105187370A (en)*2015-06-052015-12-23北京奇虎科技有限公司Data processing method and data processing system
WO2017070750A1 (en)*2015-10-292017-05-04VTX Holdings (Singapore) Pte. Ltd.A network communication system
CN106936441A (en)*2017-02-272017-07-07深圳国泰安教育技术股份有限公司A kind of data compression method and device
CN108696899A (en)*2017-04-072018-10-23北京京东尚科信息技术有限公司Sip message transmits and method of reseptance and transmission and reception device
CN108880875A (en)*2018-06-062018-11-23新华三技术有限公司The transmission method and device of log message
CN109672855A (en)*2018-11-122019-04-23视联动力信息技术股份有限公司A kind of data transmission method and device based on view networking

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114172968A (en)*2021-10-262022-03-11阿里云计算有限公司Data decompression method, device, electronic equipment, medium and program product
CN114172968B (en)*2021-10-262024-10-01阿里云计算有限公司Data decompression method, device, electronic equipment, medium and program product
CN114500668A (en)*2021-12-292022-05-13深圳市广和通无线股份有限公司Data transmission method and device, electronic equipment and storage medium
CN120010794A (en)*2025-04-222025-05-16山东云海国创云计算装备产业创新中心有限公司 A data storage method, device, medium and product for software disk array
CN120010794B (en)*2025-04-222025-07-11山东云海国创云计算装备产业创新中心有限公司Data storage method, equipment, medium and product of software disk array

Similar Documents

PublicationPublication DateTitle
CN108965040A (en)A kind of business monitoring method and device of view networking
CN108965224A (en)A kind of method and apparatus of video on demand
CN108880926A (en)A kind of method and apparatus of server monitoring
CN110022295A (en)A kind of method and view networked system of data transmission
CN108965223A (en)It is a kind of based on view networking web page processing method, proxy server and view networked terminals
CN109818776A (en)Micro services module exception localization method and device
CN109743536A (en)A kind of method and apparatus of video data access
CN108307212B (en)A kind of file order method and device
CN109889779A (en)A kind for the treatment of method and apparatus of packet out-ordering
CN107888401A (en)A kind of method and system of the monitoring regarding networked terminals cpu busy percentage in real time
CN110048903A (en)A kind of association turns gateway status monitoring method and device
CN110049346A (en)A kind of method and system of net cast
CN108243343A (en)A kind of point bit distribution statistical method and its server based on regarding networking
CN110430168A (en)A kind of method and apparatus of data compression
CN109068148A (en)A kind of method and apparatus of video processing
CN109729184A (en)A kind of method and apparatus of view networking service processing
CN109491783A (en)A kind of acquisition methods and system of memory usage
CN110505107A (en)A kind of monitoring method and view networking management system
CN108989831A (en)A kind of network REC method and apparatus of multi-code stream
CN109525635A (en)A kind of acquisition methods and system of memory usage
CN109698790A (en)A kind of storage method and system regarding networking data
CN109067895A (en)A kind of method and apparatus remotely controlled
CN110049069A (en)A kind of data capture method and device
CN108881148A (en)A kind of data capture method and device
CN108881140A (en)A kind of document down loading method and device based on view networking

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20191108

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp