Linear network coding scheme is hard to be introduced to optical networks for the reason of lacking optical random access memory.To introduce network coding to optical networks
a two channels optical network coding scheme based on optical logic shift and XOR operations was presented.The scheme can be realized in photonic domain without OEO conversion and more universal than XOR network coding scheme.Moreover
to solve the problem of operations unclosed when performing the scheme
a network coding node structure which can support the scheme was designed.The coding node can ensure the scheme being accomplished in optical networks through the all-optical XOR gate and the all-optical shift register.Experiment results of some key modules of the coding node were presented.The results indicated that the modules can realize the required functions.