The encoding and decoding algorithm of a new type of forward error-correcting code was studied in this paper. With a view to the wider bandwidth and higher signal transmission speed in fiber channel, this kind of forward error-correcting code took more redundant bits as its parity bits and had powerful error correcting function. The encoding and decoding process were simulated on the computer. It was concluded in the paper that the forward error-correcting code with more redundant bits could guarantee the reliability and veracity of the communication system and it could be easily achieved by the software and hardware of an optic modem. The characteristics of this kind forward error-correcting code indicated that it would be widely applied in the military fiber communication system.