Optical White Box: Modeling and Implementation