RECOMPRESSION SERVER

Abstract: A recompression server (20) that automatically decompresses selected pre-compressed data streams and recompresses the decompressed data to a greater degree than the original pre-compressed data. In one embodiment, the recompression server (20) determines from a request whether a requested file is pre-compressed. In another embodiment, the recompression server (20) determines from a retrieved requested file's name or attributes whether the file is pre-compressed. Optionally, the recompression server (20) may cache frequently requested files in re-compressed form to further optimize the bandwidth of a wide area network (8). Such caching can be done on-line or off-line.

Description: RECOMPRESSION SERVER BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to electronic computers and network systems, and more particularly to a network server for automatically decompressing selected pre-compressed data streams and recompressing the decompressed data to a greater degree than the original pre-compressed data. 2. Description of Related Art FIGURE 1 is a diagram of a prior art wide area public network system, such as the Internet. A first node 2 (which may be a workstation, a terminal, a personal computer, or the like), can communicate with a second node 4 (which may be a network server, a minicomputer or mainframe computer, a personal computer, or the like) by an apparently direct connection 6. In reality, the connection between node 2 and node 4 is made through a network "cloud" of connections 8, generally through one or more "proxy" server computers 10 that help route requests through the network 8. Such proxy server computers 10 generally include storage devices 12 for storing various sorts of data. Each connection between a pair of nodes 2, 4 consumes some amount of communication bandwidth. In order to conserve bandwidth, it is common to pre-compress files to be transmitted from one node 2 to another 4. For example, graphics images may be pre- compressed using commonly available file formats, such as the Graphics Interchange Format (GIF), Tagged Interchange File Format (TIFF), and JPEG. (It should be understood that the term "files" as used herein includes live data streams, collections or archives of files, portions of files, data blocks, etc.) One drawback of the present system is that such pre-compressed files may not be optimally compressed, thus wasting bandwidth. However, a requestor node 2 generally has no ability to cause a provider node 4 to optimize compression of requested files. Another existing problem is that many files on provider nodes 4 are not pre-compressed at all. While some compression may be achieved automatically by use of transport protocols or modems that include a compression function, there is no general solution to this problem. The present invention is based on the inventor's recognition of a need for optimizing bandwidth usage in a network system for pre-compressed data files, and a need for general method of compressing files that are not pre-compressed. The present invention provides a solution to these problems. SUMMARY OF THE INVENTION The present invention is a recompression server that automatically decompresses selected pre-compressed data streams and recompresses the decompressed data to a greater degree than the original pre-compressed data. In one embodiment, the recompression server determines from a request whether a requested file is pre-compressed. In another embodiment, the recompression server determines from a retrieved requested file's name or attributes whether the file is pre-compressed. Optionally, the recompression server may compress requested but previously uncom¬ pressed files. As another option, the recompression server may cache frequently requested files in re-compressed form to further optimize the bandwidth of a wide area network. Such caching can be done on-line or off-line. The details of the preferred embodiment of the present invention are set forth in the accompanying drawings and the description below. Once the details of the invention are known, numerous additional innovations and changes will become obvious to one skilled in the art. BRIEF DESCRIPTION OF THE DRAWINGS FIGURE 1 is a diagram of a prior art wide area network system, such as the Internet. FIGURE 2 is a diagram of the preferred hardware embodiment of the present invention. FIGURE 3 is a block diagram showing the flow of selected data through the recompres- sion server of FIGURE 2. FIGURE 4 is a flowchart showing the method of a first embodiment of the present invention. FIGURE 5 is a flowchart showing the method of a second embodiment of the present invention. Like reference numbers and designations in the various drawings refer to like elements. DETAILED DESCRIPTION OF THE INVENTION Throughout this description, the preferred embodiment and examples shown should be considered as exemplars, rather than as limitations on the present invention. FIGURE 2 is a diagram of the prefened hardware embodiment of the present invention. The diagram shown in FIGURE 2 is similar to the diagram shown in FIGURE 1. A requester 2' (for example, a web browser on the World Wide Web service provided by the Internet) can send file requests to a provider 4' (for example, a web server on the Internet) via a network 8. Each request is processed through a recompression server 20 in accordance with the present invention. The recompression server 20 includes a web proxy server 10' having an optional cache 22. The recompression server 20 also includes a data path from the web proxy server 10' along a first connection 23 through a decompressor 24, along a second connection 25 through a recompressor 26, and along a third connection 27 back to the web proxy server 10'. The components along the data path 23-27 can comprise hardware, a software or firmware programmed dedicated processor, or simply be software routines executed on the general processor(s) of the web proxy server 10', as a matter of design choice. FIGURE 3 is a block diagram showing the flow of selected data through the recompres¬ sion server of FIGURE 2. When a file requested from a provider 4' passes through the recompression server 20, a determination is made in the web proxy server 10' whether the file is pre-compressed. If so, the compressed data 23 is routed along a first connection 23 to a decompressor 24. For example, if a requested data file is a graphics imaged compressed using the GIF standard, the file extension (.GIF) indicates that the file is pre- compressed. The file would be routed through the decompressor 24, which includes conventional decompression code for decompressing the GIF file. The decompressed data is routed along a second connection 25 (either directly or after temporary storage, such as in RAM or a mass storage device) to a recompressor 26. The recompressor 26 re-compresses the decompressed data using any algorithm that provides a better compression ratio than the original compression. More than one recompression algorithm may be used if desired, to provide better compression for different data types. In the preferred embodiment, the algorithm used by the recompressor 26 for graphics files is a variable-loss (which includes no loss) compression algorithm called "GT", available from the former Johnson-Grace, Inc. of Newport Beach, California (now America Online, of Virginia). This algorithm can give file sizes from 15% (for zero loss) to 70% smaller than the GIF standard, depending on desired degree of loss. Other algorithms, or combinations of algorithms, may be used, such as Huffman Coding, Lempel-Ziv '77, Lempel-Ziv '78, and Lempel-Ziv-Welch algorithms for lossless compression, and MPEG, JPEG, wavelet, and fractal algorithms for lossy compression. After passing through the recompressor 26, the recompressed data passes along a third connection 27 back to the web proxy server 10' for transmission to the requester 2'. As an optional step, the recompressed file may be cached in that form within the web proxy server 10' in a mass storage cache 22 (FIGURE 2), so that faster response can be provided to requestors 2' for frequently requested pre-compressed files. Any caching algorithm may be used, such as a conventional "least recently used" (LRU) algorithm, to manage the cache 22. Alternatively, the web proxy server 10' may maintain a log of file requests, and select files to be recompressed and cached based upon logged request frequencies. Caching may be done on-line, while recompressing files, or off-line, using logged request frequencies to retrieve "popular" files and recompress them during idle time for the web proxy server 10'. As another option, the recompression server 20 may compress requested but previously uncompressed files. This aspect of the invention is advantageously used with the caching option, since frequently requested uncompressed files can be compressed and cached within the recompression server 20 so that network bandwidth is conserved each time such a file is requested thereafter. The invention may be implemented as a computer program storable on a media that can be read by a computer system, such as a web proxy server 10', so as to configure the computer system to provide the functions described herein. Again, while the invention has been described as if executed on a separate processor, it may be implemented as a software process executed within the web proxy server 10'. FIGURE 4 is a flowchart showing the method of a first embodiment of the present invention. The web proxy server 10' examines each file request from a requestor 2' to determine from the request itself that the requested file is pre-compressed (for example, by examining the file extension) (STEP 400). If the requested file is not pre-compressed (STEP 402), the web proxy server 10' continues normal processing (STEP 404). If the requested file is pre-compressed (STEP 402), the file is retrieved in conventional fashion from the provider 4' (STEP 406). The file is then decompressed in the decompressor 24 (STEP 408) and recompressed in the recompressor 26 (STEP 410). The recompressed file is then forwarded to the requestor 2' in conventional fashion (STEP 412). As an optional step, the recompressed file may be cached in that form within the web proxy server 10' in a mass storage cache 22 (STEP 414). FIGURE 5 is a flowchart showing the method of a second embodiment of the present invention. In this embodiment, rather than examining a file request from a requestor 2' to determine if a file is pre-compressed, as in the method shown in FIGURE 4, files are retrieved in conventional fashion and then examined within the web proxy server 10' (STEP 500). Whether a file is pre-compressed or not may be determined by examination of the file extension (for example, .GIF or .TEF), or key bytes within a file header, or any other characteristic or attribute of the file that indicates compression. If the requested file is not pre-compressed (STEP 502), the web proxy server 10' continues normal processing (STEP 504). If the requested file is pre-compressed (STEP 502), the file is then decompressed in the decompressor 24 (STEP 506) and recompressed in the recompressor 26 (STEP 508). The recompressed file is then forwarded to the requestor 2' in conventional fashion (STEP 510). As an optional step, the recompressed file may be cached in that form within the web proxy server 10' in a mass storage cache 22 (STEP 512). In an alternative embodiment, rather than recompressing every compressed file or compressing every previously uncompressed file, additional testing may be done to decide whether the inventive process described above provides a time savings in transmission over simply retransmitting a requested file. For example, if a requested compressed file is small, the time required to decompress it and recompress it may exceed the time required to transfer it unchanged. In general, if T τ is the estimated transfer time for a file, T D is the estimated decompression time (zero for an uncompressed file), and T R is the estimated recompression time (initial compression time if the file is originally uncompressed), then the invention should only be used where T R + T D < T τ . Estimates for T τ can be readily obtained by measuring the actual bit rate to a particular requestor, in known fashion. Estimates for T R and T D can be generated by first performing, in a preparation stage, a statistical analysis of actual decompression and recompression times versus file size for each compression type (e.g. , GIF, TIFF, JPEG, etc.). Thus, by knowing the size of a particular requested file, an estimate can be readily determined for T R and T D by extrapolation. Alternatively, an estimate for T R and T D can be generated by decom¬ pressing a portion of a file and concurrently attempting to recompress that portion, timing each action, and extrapolating to the entire file size. Referring to FIGURE 4, this type of testing can be done before STEP 408. If the test indicates that T R + T D is less than T τ , then processing continues at STEP 408. Otherwise, the requested file is directly forwarded to the requestor. Referring to FIGURE 5, this type of testing can be done before STEP 506. If the test indicates that T R + T D is less than T τ , then processing continues at STEP 506. Otherwise, the requested file is directly forwarded to the requestor. In either method, the requested file may still be cached. The invention may be implemented in hardware or software, or a combination of both. However, preferably, the invention is implemented in computer programs executing on programmable computers each comprising a processor, a data storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Program code is applied to input data to perform the functions described herein and generate output information. The output information is applied to one or more output devices, in known fashion. Each program is preferably implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the programs can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or inteφreted language. Each such computer program is preferably stored on a storage media or device (e.g., ROM or magnetic diskette) readable by a general or special purpose programmable computer, for configuring and operating the computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be implemented as a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein. A number of embodiments of the present invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, although the invention has been described in the context of a wide area public network, it can be applied to any network (including private wide area and local area networks) in which files requested from one node by another node pass through an intermediate processor that can be programmed or configured as a recompression server. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrated embodiment, but only by the scope of the appended claims.

Claims: CLAIMS What is claimed is: 1. A method for increasing available bandwidth in a network system, including the steps of: (a) for each file requested from a provider node in the network system, determining whether the file is a pre-compressed file; (b) decompressing the pre-compressed file into a decompressed file; (c) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (d) providing the recompressed file to a requester node in the network system. 2. The invention of claim 1 wherein the step of determining whether a file is pre-compressed includes examining a file request from the requestor node before retrieving the pre-compressed file. 3. The invention of claim 1 wherein the step of determining whether a file is pre-compressed includes examining a retrieved file. 4. The invention of claim 1, further including the step of caching the recompressed file. 5. The invention of claim 1, further including the steps of: a. before the step of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; and b. if not, then continuing with the step of decompressing, and if so, then providing the pre-compressed file directly to the requestor node. 6. A method for increasing available bandwidth in a network system, including the steps of: (a) for each file requested from a requestor node in the network system, determining whether the file is an uncompressed file; (b) compressing the uncompressed file into a compressed file; (c) providing the compressed file to a requester node in the network system; and (d) caching the recompressed file. 7. The invention of claim 6, further including the steps of: a. before the step of compressing, determining whether an estimated time required to directly provide the uncompressed file to the requestor node would be less than an estimated time to compress the uncompressed file; and b. if not, then continuing with the step of compressing, and if so, then providing the uncompressed file directly to the requestor node. 8. A method for increasing available bandwidth in a network system, including the steps of: (a) for each file requested from a provider node in the network system, examining a request for the file to determine if the file is pre-compressed; (b) retrieving the requested file from the provider node in the network system; (c) if the requested file is pre-compressed, decompressing the retrieved pre- compressed file into a decompressed file; (d) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (e) providing the recompressed file to a requester node in the network system. 9. The invention of claim 8, further including the step of caching the recompressed file. 10. The invention of claim 8, further including the steps of: a. before the step of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; and b. if not, then continuing with the step of decompressing, and if so, then providing the pre-compressed file directly to the requestor node. 1 1. A method for increasing available bandwidth in a network system, including the steps of: (a) for each file requested from a provider node in the network system, retrieving a file from the provider node; (b) examining the retrieved a file to determine if the file is pre-compressed; (c) if the retrieved file is pre-compressed, decompressing the retrieved pre- compressed file into a decompressed file; (d) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (e) providing the recompressed file to a requester node in the network system. 12. The invention of claim 1 1, further including the step of caching the recompressed file. 13. The invention of claim 1 1, further including the steps of: a. before the step of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; b. if not, then continuing with the step of decompressing, and if so, then providing the pre-compressed file directly to the requestor node. 14. An apparatus for increasing available bandwidth in a network system, including: (a) means for determining whether each file requested from a provider node in the network system is a pre-compressed file; (b) a decompressor for decompressing the pre-compressed file into a decompressed file; (c) a recompressor for recompressing the decompressed file mto a recompressed file, the recompressed file having a greater degree of compression than the pre-compressed file; and (d) means for providing the recompressed file to a requester node in the network system. 15. The invention of claim 14 wherein the means for determining whether a file is pre-compressed includes means for examining a file request from the requestor node before retneving the pre-compressed file. 16. The invention of claim 14 wherem the means for determining whether a file is pre-compressed includes means for examining a retneved file 17. The invention of claim 14, further including a cache for stonng the recompressed file. 18. The invention of claim 14, further including a testing means for determin¬ ing whether an estimated time required to directly provide the pre- compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decompressed file, and if so, then providing the pre-compressed file directly to the requestor node. 19. An apparatus for increasing available bandwidth in a network system, including: (a) means for determining whether each file requested from a provider node in the network system is an uncompressed file; (b) a compressor for compressing the uncompressed file into a compressed file; (c) means for providing the compressed file to a requester node in the network system; and (d) a cache for storing the recompressed file. 20. The invention of claim 19, further including a testing means for determin¬ ing whether an estimated time required to directly provide the uncom¬ pressed file to the requestor node would be less than an estimated time to compress the uncompressed file, and if so, then providing the uncom¬ pressed file directly to the requestor node. 21. An apparatus for increasing available bandwidth in a network system, including: (a) for each file requested from a provider node in the network system, means for examining a request for the file to determine if the file is pre-com- pressed; (b) means for retrieving the requested file from the provider node in the network system; (c) a decompressor for decompressing a retrieved pre-compressed file into a decompressed file; (d) a recompressor for recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre-compressed file; and (e) means for providing the recompressed file to a requester node in the network system. 22. The invention of claim 21, further including a cache for storing the recompressed file. 23. The invention of claim 21, further including a testing means for determin¬ ing whether an estimated time required to directly provide the pre- compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decompressed file, and if so, then providing the pre-compressed file directly to the requestor node. 24. An apparatus for increasing available bandwidth in a network system, including: (a) for each file requested from a provider node in the network system, means for retrieving the file from the provider node ; (b) means for determining that the retrieved file is pre-compressed; (c) a decompressor for decompressing a retrieved pre-compressed file into a decompressed file; (d) a recompressor for recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre-compressed file; and (e) means for providing the recompressed file to a requester node in the network system. 25. The invention of claim 24, further including a cache for storing the recompressed file. 26. The invention of claim 24, further including a testing means for determin¬ ing whether an estimated time required to directly provide the pre- compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decompressed file, and if so, then providing the pre-compressed file directly to the requestor node. 27. A computer program for increasing available bandwidth in a network system, the computer program being tangibly stored on a media readable by a computer system, for configuring the computer system upon being read and executed by the computer system to perform the functions of: (a) for each file requested from a provider node in the network system, determining whether the file is a pre-compressed file; (b) decompressing the pre-compressed file into a decompressed file; (c) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (d) providing the recompressed file to a requester node in the network system. 28. The invention of claim 27 wherein the function of determining whether a file is pre-compressed includes examining a file request from the requestor node before retrieving the pre-compressed file. 29. The invention of claim 27 wherein the function of determining whether a file is pre-compressed includes examining a retrieved file. 30. The invention of claim 27, further including the function of caching the recompressed file. 31. The invention of claim 27, further including the functions of: a. before the function of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; and b. if not, then continuing with the function of decompressing, and if so, then providing the pre-compressed file directly to the requestor node. 32. A computer program for increasing available bandwidth in a network system, the computer program being tangibly stored on a media readable by a computer system, for configuring the computer system upon being read and executed by the computer system to perform the functions of: (a) for each file requested from a requestor node in the network system, determining whether the file is an uncompressed file; (b) compressing the uncompressed file into a compressed file; (c) providing the compressed file to a requester node in the network system; and (d) caching the recompressed file. 33. The invention of claim 32, further including the functions of: a. before the function of compressing, determining whether an estimated time required to directly provide the uncompressed file to the requestor node would be less than an estimated time to compress the uncompressed file; and b. if not, then continuing with the function of compressing, and if so, then providing the uncompressed file directly to the requestor node. 34. A computer program for increasing available bandwidth in a network system, the computer program being tangibly stored on a media readable by a computer system, for configuring the computer system upon being read and executed by the computer system to perform the functions of: (a) for each file requested from a provider node in the network system, examining a request for the file to determine if the file is pre-compressed; (b) retrieving the requested file from the provider node in the network system; (c) if the requested file is pre-compressed, decompressing the retrieved pre- compressed file into a decompressed file; (d) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (e) providing the recompressed file to a requester node in the network system. 35. The invention of claim 34, further including the function of caching the recompressed file. 36. The invention of claim 34, further including the functions of: a. before the function of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; and b. if not, then continuing with the function of decompressing, and if so, then providing the pre-compressed file directly to the requestor node. 37. A computer program for increasing available bandwidth in a network system, the computer program being tangibly stored on a media readable by a computer system, for configuring the computer system upon being read and executed by the computer system to perform the functions of: (a) for each file requested from a provider node in the network system, retrieving a file from the provider node; (b) examining the retrieved a file to determine if the file is pre-compressed; (c) if the retrieved file is pre-compressed, decompressing the retrieved pre- compressed file into a decompressed file; (d) recompressing the decompressed file into a recompressed file, the recompressed file having a greater degree of compression than the pre- compressed file; and (e) providing the recompressed file to a requester node in the network system. 38. The invention of claim 37, further including the function of caching the recompressed file. 39. The invention of claim 37, further including the functions of: a. before the function of decompressing, determining whether an estimated time required to directly provide the pre-compressed file to the requestor node would be less than an estimated time to decompress the pre-compressed file and recompress the decom¬ pressed file; and b. if not, then continuing with the function of decompressing, and if so, then providing the pre-compressed file directly to the requestor node.

Inventors: APPELMAN BARRY, APPELMAN, BARRY
Applicants: AMERICA ONLINE INC, AMERICA ONLINE, INC.
Application year: 1997
Main classification: H01J13
IPC codes: G06F5, G06F12, G06F13, H03M7, H04L29