CSE 123 Lecture Notes - Lecture 1: Sliding Window Protocol, Link Layer, Master Sergeant

54 views2 pages

Document Summary

P1 due 6pm oct, 29th (right before midterm!) End-to-end argument - functionality should be implemented at a lower layer iff it can be correctly and completely implemented there. Sliding window protocol - single mechanism that supports: Flow control - prevent overrunning the receiver. Often used in the data link layer (2) Main. c - handle command line options and initializing data structures. Communicate. c - transporting messages between the sender and receiver threads. Input. c - handling messages inputted by the user. These first three files you do not need to change. Spawn an input thread to receive your input command. Puts input command into a input cmd queue . For sender, you just read the command. Also needs to handle the incoming msg from the receiver in order to update your ds. Put to the output queue (automatically sends to receiver) Create an acknowledgement frame and send it back to the sender. Initializes 1 sender and 2 receivers msg 0 1 hello.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers