Design Article
Guide to Embedded Systems Architecture - Part 2: PPP state pseudocode and Internet Protocol
Tammy Noergaard
4/26/2010 2:51 PM EDT
[Part 1 of this article begins by defining "middleware" and looking at some networking middleware driver examples.]
PPP (LCP) State Pseudocode
Initial: PPP link is in the Initial state, the lower layer is unavailable (Down), and no Open event has occurred. The Restart timer is not running in the Initial state. [10-1]

Starting: The Starting state is the Open counterpart to the Initial state. An administrative Open has been initiated, but the lower layer is still unavailable (Down). The Restart timer is not running in the Starting state. When the lower layer becomes available (Up), a Configure-Request is sent. [10-1]
|
starting() { |
Closed: In the Closed state, the link is available (Up), but no Open has occurred. The Restart timer is not running in the Closed state. Upon reception of Configure-Request packets, a Terminate-Ack is sent. Terminate-Acks are silently discarded to avoid creating a loop. [10-1]
|
closed (){ |

