This application provides a data compression method, a data decompression method, and a related apparatus. The method includes: obtaining N to-be-compressed data blocks and N pieces of protection information PI, where the N to-be-compressed data blocks are in a one-to-one correspondence with the N pieces of PI, and N is a positive integer greater than or equal to 2; compressing the N to-be-compressed data blocks to obtain a compressed data block; and compressing the N pieces of PI to obtain compressed PI. The foregoing technical solution can improve a compression effect of the to-be-compressed data block.
展开▼