We are storing session keys in the PeerTable. But we need to check if the keys are valid for every message we receive. And requests WhoAreYou messages whenever the keys are invalid.
That means to check if we are being able to decode an ordinary packet (here) and if not, send a WhoAreYou packet.