Link Layer Programming - Slides (R2)

Link Layer Programming - Slides (R2) - CSCI 232 CSCI 232...

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

View Full Document Right Arrow Icon
SCI 232 CSCI 232 Computer Networking: Link Layer Programming George Blankenship Programming George Blankenship 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Communication Environment h sical La er Physical Layer Interface Physical Layer Interface nvisible) (invisible) Computer Modem Telephone Telephone circuit Parallel/Serial Interface Link Layer Interface Programming George Blankenship 2
Background image of page 2
Lecture Outline • Programming concepts – General concepts – Programming constructs • Physical components odem interface Modem interface – Modem/telephone interface ystem stem messages – System-to-system messages • Programming examples Programming George Blankenship 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
Programming Concepts •Concepts • Basic concepts –FSM –Switch – Finite state machine – Interrupts •Programming –Server/Client • Programming constructs erver programming –State variable –PDU/SDU Server programming – Client programming tate variable processing •Physical –Modem – State variable processing – Messages –Dialer •Example Programming George Blankenship 4
Background image of page 4
Finite State Machine •Concepts SM • Problem is decomposed –FSM –Switch rogramming – Tasks – Events •Programming –Server/Client tate variable • State is a task with an input and output –State variable –PDU/SDU hysical • Events are the input or output of a sk •Physical –Modem ialer task –Dialer •Example Programming George Blankenship 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
FSM Definition •Concepts SM –FSM –Switch rogramming State Input Output Next state •Programming –Server/Client tate variable Initial Initialize DTR WaitDSR setup –State variable –PDU/SDU hysical DSR IF setup RTS WaitCTS itCTS TS t itOK •Physical –Modem ialer CTS Reset WaitOK ~DSR ~DTR Initial –Dialer •Example OK Dial WaitConnect Programming George Blankenship 6 ~DSR ~DTR Initial
Background image of page 6
FSM Map •Concepts SM –FSM –Switch rogramming •Programming –Server/Client tate variable S R –State variable –PDU/SDU hysical ~ D T •Physical –Modem ialer –Dialer •Example Programming George Blankenship 7
Background image of page 7

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

View Full DocumentRight Arrow Icon
Interrupts •Concepts SM • Inputs are capture and processed by ad –FSM –Switch rogramming hoc processes • Current state defines applicability of •Programming –Server/Client tate variable the interrupt urrent state defines processing –State variable –PDU/SDU hysical Current state defines processing associated with the interrupt terrupt processing centered on •Physical –Modem ialer • Interrupt processing centered on current state –Dialer •Example Programming George Blankenship 8
Background image of page 8
Programming •Concepts SM • Two components to each I/O ecipient waiting entity server –FSM –Switch rogramming – Recipient, waiting entity, server – Generator, active entity, client •Programming –Server/Client tate variable • Server – Device or service provider –State variable –PDU/SDU hysical – Must wait for service request lient •Physical –Modem ialer Client – Requestor of service erforms read/write as needed –Dialer •Example Programming George Blankenship 9 – Performs read/write as needed
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/03/2010 for the course CS 232 taught by Professor Susan during the Summer '09 term at GWU.

Page1 / 29

Link Layer Programming - Slides (R2) - CSCI 232 CSCI 232...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online