The invention discloses a method and a device for peer-to-peer optical
cross connection configuration, and relates to the field of
wavelength division
multiplexing (WDM) and
optical transport network (OTN) equipment management. The method comprises the following steps of: 1, collecting and creating a unit disk
management object dataset and an optical
port management object dataset in an OTN; 2, collecting and creating an internodal
optical fiber connection management object dataset; 3, collecting and creating an intra-node
optical fiber connection management object dataset; 4, collecting and creating an optical
channel management object dataset; 5, checking whether the same
wavelength of different
light source positions forms a
wavelength conflict or not by analyzing an
optical fiber connection object sequence and optical port information, and directly finishing the method if the same wavelength of the different
light source positions forms the wavelength conflict; and 6, automatically searching for an optical port and wavelength information required by the configuration of a reconfigurable optical add-drop
multiplexing optical
cross processing unit disk by analyzing an optical
fiber connection management object sequence, and creating optical
cross connection configuration data. By the method and the device, errors caused by artificial memory, manual parameter collection and manual operation are avoided, and the running cost of a network is decreased.