A technique for switching all-optical packet switching is disclosed. In one
embodiment, the technique is realized by receiving at least one data
packet over a network, disassociating a payload portion from a first
header in the data packet, forming a second header based on a first
information in the first header, associating the payload portion with the
second header to form a modified packet and switching the modified packet
based on a second information contained in the first header.