Embodiments of the present disclosure relate to the field of optical communications technologies, and in particular, to a mapping and
multiplexing method and apparatus for an
optical transport network, an electronic device, and a storage medium. The mapping and
multiplexing method for the
optical transport network includes: first providing a mapping opportunity generated by an Optical Channel
Payload Unit (OPU) in a current transport window to one or more Optical Service Unit (OSU) services, which satisfy a first scheduling condition, in a first
queue, and performing in-
queue scheduling on the one or more OSU services, which satisfy the first scheduling condition, in the first
queue; in a case where there is no OSU service satisfying the first scheduling condition in the first queue, providing the mapping opportunity to one or more OSU services, which satisfy a second scheduling condition, in a second queue, and performing in-queue scheduling on the one or more OSU services, which satisfy the second scheduling condition, in the second queue; updating a remaining service mapping opportunity quantity of the OSU service which gets the mapping opportunity, wherein a service mapping opportunity quantity of respective OSU service in one transport window is independently set; and dynamically allocating OSU services entering mapping and
multiplexing in the current transport window to the first queue and the second queue according to the remaining service mapping opportunity quantity of respective OSU service.