This document has some interesting ideas! I especially liked the grammar which defines the accessors for a TCP IP header by feeding in an ascii art image of the header.
what would it make it _much_ cooler would be some way to tie in protocol-state-transitions with packet-structure to have machine generated protocol-parsers.