In order to study the influence of Rayleigh and Brillouin scattering on the performance of bidirectional Wavelength Division Multiplexing (WDM) system. On the VPI simulation platform, a two-way WDM simulation system was built. Rayleigh scattering and Brillouin scattering were generated by setting the parameters of the optical fiber module and system parameters such as Brillouin Scattering, Rayleigh scattering, Rayleigh Distortion, and Rayleigh Distortions. Then, the frequency spectrum of the received signal and the bit error rate were observed and analysed. Experimental results show that Rayleigh and Brillouin scattering will cause the performance of the two-way WDM system to degrade. By separating the back propagation channel, the impact of these two effects on the performance of the two-way WDM system can be reduced.