主权项 |
1. A data processing apparatus, comprising:
an obtaining unit, configured to obtain a to-be-processed optical data packet, wherein the to-be-processed optical data packet comprises an optical label and an optical signal data frame; a control unit, configured to: obtain the optical label from the to-be-processed optical data packet obtained by the obtaining unit, and determine, according to the optical label, whether the optical signal data frame is a data frame of a preset type, wherein if the optical signal data frame is the data frame of the preset type, the optical label comprises a label destination address; and the control unit is further configured to: obtain a port corresponding to the label destination address according to the label destination address, and use the port corresponding to the label destination address as a target port and generate an optical switching instruction, wherein the optical switching instruction comprises the target port; and an optical switching unit, configured to output the to-be-processed optical data packet through the target port according to the optical switching instruction generated by the control unit. |