In order to solve the hardware dependent in optical access network, a method of optimization code is proposed for optical access network.
According to this method to construct multiple virtual private network, it will get rid of the hardware dependent in optical access network.
Under a single virtual private network and multiple virtual private network conditions,
we test the integrity and accuracy of the data transmission in
optical access network.
Simulation results show that virtual private network which is constructed by code optimization can replace the function of hardware devices in the optical access
network .
It can save the cost of optical access network.
This conclusion has the important realistic and theoretical significance to improve the development of optical access networks.