The embodiment of the invention provides a port cache dynamic adjustment method and device and switching equipment, and relates to the technical field of digital communication. According to the method, multi-dimensional indexes such as used caches, current and historical cache utilization rates and
time delays of
multicast ports are collected in real time, and the comprehensive
perception capability of the port running state is constructed. Redundant resources are dynamically released based on actual cache occupation conditions, and congestion risks are identified in advance in combination with load
trend prediction, so that dynamic addition and allocation and cross-port on-demand allocation of cache resources are realized. According to the mechanism, resource stiffness caused by traditional static allocation is broken through, and the
resource utilization efficiency and forwarding stability of the switching equipment in a
video multicast scene are improved. Through
dynamic capacity expansion, the capability of a port to deal with burst traffic is obviously enhanced, the
packet loss probability caused by insufficient buffer areas is effectively reduced, the interruption or lagging of
multicast video streams is reduced, the fluency and definition of
video transmission are guaranteed, and the user experience and the
network service quality are comprehensively improved.