Chinese Journal of Network and Information Security ›› 2023, Vol. 9 ›› Issue (6): 46-55.doi: 10.11959/j.issn.2096-109x.2023082

• Papers • Previous Articles    

High speed national secret SM4 optical fiber communication system scheme based on FPGA

Peiyu HUANG, Jiabo SONG, Yangfan JIA   

  1. School of Opto-electronic Engineering, Chongqing University of Posts and Telecommunications, Chongqing 400065, China
  • Revised:2023-07-26 Online:2023-12-01 Published:2023-12-01
  • Supported by:
    The National Natural Science Foundation of China(61801061);Industry-University-Research Innovation Fund for Chinese Universities(2021BCA02004)

Abstract:

With the increasing use of optical fiber communication technology in the Industrial Internet of Things, cryptographic algorithms play a crucial role in ensuring the security of data transmission in embedded device environments.The SM4 packet cipher algorithm, developed independently in our country, is widely applied to wireless LAN and Internet of Things data encryption.However, the software-based encryption and decryption processes are relatively slow, which hampers their application in scenarios requiring high real-time performance, especially for embedded devices.To address this issue, a high-performance and secure optical fiber communication system was designed based on the FPGA platform and the SM4 algorithm.The FPGA was used to implement the MAC layer interface for SM4 algorithm encryption and decryption, as well as data transmission.Besides, an optimization scheme for the hardware implementation architecture of the SM4 algorithm was proposed.The critical path was shortened by employing a pipeline method, thereby improving the system clock frequency.Additionally, parallel processing of S-box transformation was accelerated to enable efficient data replacement.To reduce data reading delays, a dual-cache processing method was combined to facilitate easier processing of cache data and significantly reduce packet loss rates.This scheme greatly enhanced system data throughput.Experimental results demonstrate that compared to similar designs, the throughput of the SM4 algorithm encryption and decryption module in this scheme reaches up to 25.6 Gbit/s, with minimal differences in resource consumption.Due to limitations imposed by the 10-gigabit SFP+ optical module, the throughput of the entire optical fiber communication system reaches 9.4 Gbit/s.For 128-bit data, the average encryption speed is 0.47 μs/bit and the average decryption speed is 0.28 μs/bit, which can be applied to a variety of secure communication scenarios in the internet of things.

Key words: optical fiber communication, FPGA, data encryption, SM4, pipeline

CLC Number: 

No Suggested Reading articles found!