An apparatus for transporting an optical channel data unit, ODU, service, comprising a first ODU service processing unit, a timeslot allocation unit, a switching output port allocation unit, an Ethernet switching unit, and a second ODU service processing unit, wherein: the first ODU service processing unit is configured to receive a higher-order ODU frame; perform demapping processing on the higher-order ODU frame to obtain an ODUflex frame; encapsulate the ODUflex frame into an Ethernet frame; and send the Ethernet frame to the Ethernet switching unit according to a table of a mapping between output ports of the first ODU service processing unit and timeslots, wherein the table is determined by the timeslot allocation unit; the timeslot allocation unit is configured to determine the table of the mapping between the output ports of the first ODU service processing unit and timeslots; the switching output port allocation unit is configured to determine a table of a mapping between input ports of the Ethernet switching unit and timeslots in a frame period and a table of a mapping between output ports of the Ethernet switching unit and timeslots in a frame period according to the table of the mapping between the output ports of the first ODU service processing unit and timeslots, and determine an allocation forwarding command of the Ethernet switching unit according to the table of the mapping between the input ports of the Ethernet switching unit and timeslots in a frame period and the table of the mapping between the output ports of the Ethernet switching unit and timeslots in a frame period; the Ethernet switching unit is configured to forward the received Ethernet frame to the second ODU service processing unit according to the allocation forwarding command of the Ethernet switching unit; and the second ODU service processing unit is configured to perform decapsulation processing on the received Ethernet frame according to the table of the mapping between the output ports of the Ethernet switching unit and timeslots in a frame period, wherein the table of the mapping between the output ports of the Ethernet switching unit and timeslots is determined by the switching output port allocation unit, to obtain Ethernet payload bit stream data; encapsulate the Ethernet payload bit stream data into the higher-order ODU frame; and send the higher-order ODU frame. the first ODU service processing unit is configured to receive a higher-order ODU frame; perform demapping processing on the higher-order ODU frame to obtain an ODUflex frame; encapsulate the ODUflex frame into an Ethernet frame; and send the Ethernet frame to the Ethernet switching unit according to a table of a mapping between output ports of the first ODU service processing unit and timeslots, wherein the table is determined by the timeslot allocation unit; the timeslot allocation unit is configured to determine the table of the mapping between the output ports of the first ODU service processing unit and timeslots; the switching output port allocation unit is configured to determine a table of a mapping between input ports of the Ethernet switching unit and timeslots in a frame period and a table of a mapping between output ports of the Ethernet switching unit and timeslots in a frame period according to the table of the mapping between the output ports of the first ODU service processing unit and timeslots, and determine an allocation forwarding command of the Ethernet switching unit according to the table of the mapping between the input ports of the Ethernet switching unit and timeslots in a frame period and the table of the mapping between the output ports of the Ethernet switching unit and timeslots in a frame period; the Ethernet switching unit is configured to forward the received Ethernet frame to the second ODU service processing unit according to the allocation forwarding command of the Ethernet switching unit; and the second ODU service processing unit is configured to perform decapsulation processing on the received Ethernet frame according to the table of the mapping between the output ports of the Ethernet switching unit and timeslots in a frame period, wherein the table of the mapping between the output ports of the Ethernet switching unit and timeslots is determined by the switching output port allocation unit, to obtain Ethernet payload bit stream data; encapsulate the Ethernet payload bit stream data into the higher-order ODU frame; and send the higher-order ODU frame.