ROLLBACK undoes a transaction's changes, and in the MySQL protocol it is simply another query packet with an OK response. The capture shows transactions started, statements executed and then either committed or rolled back. It is tagged with transactions and commit as well; the transactions page describes the full sequence.
MySQL transactions ending in ROLLBACK as well as COMMIT, showing how the protocol carries transaction control statements and their results.
MySQL Transactions with COMMIT and ROLLBACK
MySQL transaction lifecycle: START TRANSACTION, multiple INSERTs, SELECT within transaction, COMMIT. Then a second transaction with INSERT followed by ROLLBACK. Shows how transaction boundaries appear in the MySQL wire protocol and the difference between committed and rolled-back operations.