The optical label switching has been proposed to simplify the packet forwarding process. These methods simplify the design of switch devices in optical domain and speeds up packet forwarding significantly, but packet transmission requires either header modification or any label swapping techniques. Hence, we would like to take advantage of the existing OCDMA coding schemes to encapsulate the labels, which can achieve the same goal, but of ideal switching avoid the O/E/O procedure. The OCDMA codes (labels) are suitable for expressing routing information. Our methodology doesn't need any label swapping/header modification, so that the upper layer, i.e., the label switching layer, can operate on optical networks transparently.