The embodiments of the invention disclose a port state setting method, and port priority
selection method and device. The setting method comprises the following steps: in the link failure
recovery process, a first LACP message for establishing connection is sent by a transmitting end to a receiving end, wherein the first LACP message comprises
delay selection information; when an
acknowledgement message responding to the first LACP message sent by the receiving end is received by the transmitting end, the
delay timing process is started, and the port state of a corresponding link on the transmitting end is set to the standby state; and when the time of the
delay timing process reaches a default
delay time, if ports of the corresponding link on the transmitting end are normal, then the state of the ports of the corresponding link on the transmitting end is set to the selected state, and a second LACP information of the received
acknowledgement message is sent to the receiving end, so that when the second LACP information is received by the receiving end, the state of the ports of a corresponding link on the receiving end is set to the selected state. According to the invention, the possibility of link repeated shock can be reduced, and the link quality can be improved.