摘要 |
In the invention, a method for establishing topology structure of switching equipments, a switching equipment and a stacking system are provided. The invention relates to the field of stacking systems in data communication, and the problem of a topology discovery error caused by different starting times of switching equipments is solved. The method comprises the following steps: Step 1, when any one of the following two requirements is met, the switching equipment turns to Step 2, otherwise, the switching equipment executes the Step 1 again, wherein the first one of the two requirements is that the current time exceeds a predetermined time, which is the time for the initialization of all the switching equipments in the stacking system; and the second one of the two requirements is that the switching equipment receives a topology discovery message from another switching equipment in the stacking system; Step 2, the switching equipment sends topology discovery messages to all the other switching equipments in the stacking system; and Step 3, the switching equipment performs a topology discovery. The invention can be applied to a stacking system where switching equipments have different starting times. |