Phase encode-spreading optical code division multiplex access (OCDMA) communication system is one of the research focuses in recent years.We have established the system model of such OCDMA system basing on phase mask and analyzed its performance.The calculated result shows that longer code length and shorter initial optical pulse width will lead to better system performance.