The embodiment of the invention provides an
explicit congestion notification marking method, a switch, a
system and a storage medium, and the method comprises the steps: obtaining the exit
queue length of the switch, determining the marking probability of a message according to a preset PID parameter, a preset exit
queue reference length and the exit
queue length, and performing
explicit congestion notification ECN marking on the message according to the marking probability. According to the embodiment of the invention, the marking probability of the message is determined through the PID parameter, and ECN marking is carried out according to the marking probability, so that the
message queue of the switch can be stabilized at a certain queue depth, invalid and excessive ECN marking is reduced, blind excessive speed increase or
speed reduction is avoided, and the accuracy and timeliness of flow control marking are improved, thereby improving the network
throughput and improving the flow control marking efficiency. The problem of
network congestion easily caused by a many-to-one communication mode in related technologies is solved.