Methods and systems for implementing self-testing of packet-processing devices are disclosed. For example, a packet-processing device includes a plurality of ports each having a receive media access controller (RX MAC) and a transmit media access controller (TX MAC), and a switching engine that includes a traffic control table coupled to the plurality of ports. The traffic control table is configured to: provide one or more first test packets to a first port, and enable the first port to perform a packet storming operation so as to create a stream of repeated first packets that are transmitted from the first port to one or more selected second ports.