Patent ID: 11894991
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A rate negotiation method, comprising:
switching, by a first device, a fiber transmission rate of a first port of the first device to a first fiber transmission rate based on a preset switching direction within a rotation period of a first fiber transmission rate set, wherein the first fiber transmission rate set is a set of fiber transmission rates supported by the first device, and the first fiber transmission rate set comprises the first fiber transmission rate, wherein the rotation period of the first fiber transmission rate set is a sum of time after each fiber transmission rate in the first fiber transmission rate set runs once, and wherein the preset switching direction is an order of the fiber transmission rates within the rotation period of the first fiber transmission rate set;
sending, by the first device, a negotiation packet to a second device adjacent to the first device through the first port of the first device within a duration of the first fiber transmission rate, wherein the duration of the first fiber transmission rate is greater than or equal to a sum of a duration of all fiber transmission rates before the fiber transmission rate is switched to the first fiber transmission rate and a preset negotiation time, and wherein the duration of all fiber transmission rates before the fiber transmission rate is switched to the first fiber transmission rate is related to locations of all fiber transmission rates within the rotation period of the first fiber transmission rate set before the fiber transmission rate is switched to the first fiber transmission rate; and
in response to a response packet being received from the second device through the first port of the first device within the duration of the first fiber transmission rate, controlling, by the first device, the first port of the first device to communicate with the second device based on the first fiber transmission rate.