A configuration method, comprising: determining, according to optical access network, called OAN, service types, information of at least one OAN slice for transmitting an OAN service flow of each OAN service type; determining, according to optical transmission network, called OTN, service types, information of at least one OTN slice for transmitting an OTN service flow of each OTN service type; and establishing, according to a correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of at least one end-to-end slice, wherein each of the at least one end-to-end slice comprises a set of OAN slice and OTN slice having a mapping relationship, the configuration method characterized in that wherein determining, according to the OAN service types, information of the at least one OAN slice comprises: determining information of an OAN slot for transmitting each OAN service flow as information of each OAN slice, determining, according to the OTN service types, information of the at least one OTN slice comprises: determining information of an OTN slot for transmitting each OTN service flow as information of each OTN slice, and establishing, according to the correspondence relationship of the OAN service types and the OTN service types, the mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of the at least one end-to-end slice comprises: establishing, according to the correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the OAN slot for transmitting each OAN service flow and the OTN slot for transmitting each OTN service flow, to obtain information of the at least one end-to-end slice. determining, according to optical access network, called OAN, service types, information of at least one OAN slice for transmitting an OAN service flow of each OAN service type; determining, according to optical transmission network, called OTN, service types, information of at least one OTN slice for transmitting an OTN service flow of each OTN service type; and establishing, according to a correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of at least one end-to-end slice, wherein each of the at least one end-to-end slice comprises a set of OAN slice and OTN slice having a mapping relationship, the configuration method characterized in that wherein determining, according to the OAN service types, information of the at least one OAN slice comprises: determining information of an OAN slot for transmitting each OAN service flow as information of each OAN slice, determining, according to the OTN service types, information of the at least one OTN slice comprises: determining information of an OTN slot for transmitting each OTN service flow as information of each OTN slice, and establishing, according to the correspondence relationship of the OAN service types and the OTN service types, the mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of the at least one end-to-end slice comprises: establishing, according to the correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the OAN slot for transmitting each OAN service flow and the OTN slot for transmitting each OTN service flow, to obtain information of the at least one end-to-end slice. determining information of an OAN slot for transmitting each OAN service flow as information of each OAN slice, determining, according to the OTN service types, information of the at least one OTN slice comprises: determining information of an OTN slot for transmitting each OTN service flow as information of each OTN slice, and establishing, according to the correspondence relationship of the OAN service types and the OTN service types, the mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of the at least one end-to-end slice comprises: establishing, according to the correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the OAN slot for transmitting each OAN service flow and the OTN slot for transmitting each OTN service flow, to obtain information of the at least one end-to-end slice. determining information of an OTN slot for transmitting each OTN service flow as information of each OTN slice, and establishing, according to the correspondence relationship of the OAN service types and the OTN service types, the mapping relationship between the at least one OAN slice and the at least one OTN slice to obtain information of the at least one end-to-end slice comprises: establishing, according to the correspondence relationship of the OAN service types and the OTN service types, a mapping relationship between the OAN slot for transmitting each OAN service flow and the OTN slot for transmitting each OTN service flow, to obtain information of the at least one end-to-end slice.