Rate negotiation method and apparatus thereof
AssigneeHuawei Technologies Co., Ltd.
InventorPing Dong
Life of this patent
Estimating the term…
Abstract
A rate negotiation method is provided. A first device switches 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. The first device sends a negotiation packet to a second device through the first port of the first device within a duration of the first fiber transmission rate. If a response packet is received from the second device through the first port of the first device within the duration of the first fiber transmission rate, the first port of the first device is controlled to communicate with the second device based on the first fiber transmission rate.
Claims20
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.
A first device, comprising a processor and a transceiver, wherein:
- The processor is configured to switch 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;
- the transceiver is configured to send 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
- wherein in response to the transceiver receiving a response packet from the second device through the first port of the first device within the duration of the first fiber transmission rate, the processor is further configured to control the first port of the first device to communicate with the second device based on the first fiber transmission rate.
A second device, comprising a processor and a transceiver, wherein:
- the processor is configured to switch a fiber transmission rate of a first port of the second device to a first fiber transmission rate based on a preset switching direction within a rotation period of a second fiber transmission rate set, wherein the second fiber transmission rate set is a set of fiber transmission rates supported by the second device, and the second fiber transmission rate set comprises the first fiber transmission rate, wherein the rotation period of the second fiber transmission rate set is a sum of time after each fiber transmission rate in the second 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 second fiber transmission rate set;
- within a duration of the first fiber transmission rate, in response to the transceiver receiving a negotiation packet from a first device adjacent to the second device through the first port of the second device, and the processor successfully decoding the negotiation packet, control the first port of the second device to communicate with the first device based on 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 s 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 second fiber transmission rate set before the fiber transmission rate is switched to the first fiber transmission rate;
- and
- the transceiver is further configured to send a response packet to the first device through the first port of the second device.
Dependencies are inferred from the claim text.