{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Link Layer Programming (R2)

Link Layer Programming (R2) - CSCI 232 Computer Networking...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 232 - Computer Networking Link Layer Programming George Blankenship 1 Programming George Blankenship 1 CSCI 232 Computer Networking: Link Layer Programming George Blankenship Programming George Blankenship 2 Communication Environment Computer Modem Telephone Telephone circuit Parallel/Serial Interface Physical Layer Interface Link Layer Interface Physical Layer Interface (invisible) Programming George Blankenship 3 Lecture Outline Programming concepts – General concepts – Programming constructs Physical components – Modem interface – Modem/telephone interface – System-to-system messages Programming examples
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSCI 232 - Computer Networking Link Layer Programming George Blankenship 2 Programming George Blankenship 4 Programming Concepts Basic concepts – Finite state machine – Interrupts Programming constructs – Server programming – Client programming – State variable processing – Messages •Concepts –FSM –Switch •Programming –Server/Client –State variable –PDU/SDU •Physical –Modem –Dialer •Example Programming George Blankenship 5 Finite State Machine Problem is decomposed – Tasks – Events State is a task with an input and output Events are the input or output of a task •Concepts –FSM –Switch •Programming –Server/Client –State variable –PDU/SDU •Physical –Modem –Dialer •Example Programming George Blankenship 6 FSM Definition •Concepts –FSM –Switch •Programming –Server/Client –State variable –PDU/SDU •Physical –Modem –Dialer •Example Initial ~DTR ~DSR Initial ~DTR ~DSR WaitConnect Dial OK WaitOK WaitOK Reset CTS WaitCTS WaitCTS IF setup RTS DSR WaitDSR WaitDSR DTR Initialize Initial Next state Output Input State
Background image of page 2