The network spec defines limits for the number of pending message bytes in each state of each protocol. Add support for each protocol to specify these limits and checking pending messages against these limits. A violation of the limit should result in the connection getting torn down.