Patent attributes
A method, a controller, and a system for processing a data packet are disclosed. The method includes receiving, by a controller, a data packet that is reported by a switch and does not match a forwarding rule; after it is determined that a type of the data packet is a broadcast data packet, generating a forwarding rule for the data packet, where the forwarding rule includes an action attribute being discarded; and sending the forwarding rule of the data packet to the switch, so that when receiving the data packet again, the switch discards the data packet according to the action attribute of the forwarding rule. In the present invention, a broadcast storm on a network can be avoided without shielding a port of a switch. Therefore, for a fully-connected network, a forwarding capability of a port and a quantity of available transmission links on the network are ensured.