Elementary data link protocols
Some Listed Procedures + more:
- wait_for_event waits in a loop for events to occur. For example when a frame is sent by DLL, it starts a timer (in order to account for lost frames/replies). wait_for_event returns event = timeout.
- to_network_layer, from_network_layer used to pass packets between network layer and DLL
- to_physical_layer, from_physical_layer used to pass frames between DLL and physical layer.
- Frame number is counted from 0 - MAX_SEQ