Restructuring state machine for layers.
  - packets
  - transactions
  - transfers