Embodiments of the present application provide a
packet forwarding method and related device, and relate to the field of
network communication. A spine switch determines a sub-buffer
pool in a pre-congestion state on each leaf switch according to a usage ratio of each sub-buffer
pool sent by each leaf switch obtained by the spine switch, and determines a next-hop leaf switch corresponding to a to-be-forwarded packet and a
traffic characteristic. The spine switch adjusts the next-hop leaf switch corresponding to the to-be-forwarded packet according to the next-hop leaf switch and the
traffic characteristic, a corresponding relationship, and the sub-buffer
pool in the pre-congestion state, and forwards the to-be-forwarded packet through the adjusted next-hop leaf switch. The method has universality. Through the method, the distribution of the to-be-forwarded packet on the leaf switch can be adjusted to avoid triggering the PFC mechanism due to congestion of the leaf switch, so that the
throughput bandwidth of the RDMA network and the performance of networking can be improved, the computing consumption of the controller can be reduced, and the problem of
packet loss can be avoided.