Implementation of the primary state machine of SP for handling messages, both transmitted and received. SPM works together with other components to send messages from the pool when appropriately notified by the SP Neighbor Table or the link protocol.