Next generation networks demand quick access of data from all around the globe, thus populating backbone network with heavy data traffic. All-optical network is capable to handle such ever increasing load with reduced complexity. In this paper, the processing is done completely in optical domain employing pure optical devices. The optical packet includes the control information (header) and data bits (payload). Semiconductor optical amplifier and optical couplers are employed for header extraction. Header and routing table information is converted in pulse position format for ease of processing.