Patent ID: 8645551

Claim:
An auto-negotiation method comprising the following steps of: comparing a service type capability set of a local device with that of a peer device to select a communal service type capability set; configuring a service type of an optical transmission network chip as a service type with the highest priority in the communal service type capability set; the service type capability set of the local device including service types supported by the local device and priorities corresponding to the service types supported by the local device, and the service type capability set of the peer device including service types supported by the peer device and priorities corresponding to the service types supported by the peer device; thereby implementing the auto-negotiation method of service types; wherein the step of selecting the communal service type capability set comprises: comparing the service type capability set of the local device with that of the peer device to obtain service types supported by both the local device and the peer device; and comparing an ID of the local device with that of the peer device, and in combination with the service types supported by both the local device and the peer device, obtaining the communal service type capability set of the local device and the peer device by taking priorities corresponding to service types in the service type capability set of one of the local device and the peer device with a smaller ID as priorities of the service types supported by both the local device and the peer device.