In response to the communication delay and delay jitter issues of existing differential protection methods for distribution network with distributed generation (DG), a differential protection structure for distribution network based on 5th-Generation (5G) communication technology has been proposed, combining 5G communication technology with improved time dynamic bending algorithm for differential protection in distribution network with distributed power sources. The dynamic time warping algorithm is optimized by introducing weighted functions and global path constraint strategies, improving protection reliability and calculation speed. The superiority of the proposed protection method is verified through example analysis. The results indicate that, the proposed method can quickly perform protection in differential protection, effectively reducing communication delay, delay jitter and protection action time, which is capable of adapting to future complex distribution network structures with distributed power sources, providing certain assistance for the development of 5G + smart electricity.