ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 06 Jun 2017 My Price 9.00

Programming Assignment 2COEN 233

*C is the required programming language for this assignment

 

 Reliable Transfer over an Unreliable Channel with Bit Errors that can also loose packets 

This project is a continuation of the 1st programming assignment. You should make the changes and add the new requirements on top of it. 

It consists of building a Stop and Wait (S&W) reliable protocol. The S&W is going to be built on top of UDP, and it is supposed to provide a reliable transport service to the SFTP application (developed in part 1, which needs to change to call your new send and receive functions). Messages are sent one at a time, and each message needs to be acknowledged when received, before a new message can be sent. 

The S&W consists of a client and a server. Communication is unidirectional, i.e., data flows from the client to the server. The server starts first and waits for messages. The client starts the communication. Messages have sequence number 0 or 1. Before sending each message, a checksum is calculated and added to the S&W header. After sending each message, the client starts a timer (use alarm or sleep). When the timer goes off, the client tries to read a corresponding ACK message. If the corresponding ACK is not there, or it is not the corresponding ACK (or if the checksum does not match), the message is sent again and the timer is started again. If the corresponding ACK is there, the client changes the state and returns to the application which can now send one more message. This means that the program blocks on writes. 

The server, after receiving a message, checks its checksum. If the message is correct and has the right sequence number, the server sends an ACK0 or ACK1 message (according to the sequence number) to the client, changes state accordingly, and deliver data to the application. 

If the message is not correct, the server repeats the last ACK message. 

The protocol should deal properly with duplicate data messages and duplicate ACK messages. 

The S&W message contains the header and the application data. No reordering is necessary, since the S&W is sending the exact message given by the application, one by one. 

To verify your protocol, use the result of a random function to decide to send or skip a message, to decide to send or skip an ACK message, and to decide whether to send the right checksum or just zero. This will fake the packet error and loss of a packet effect. 

 

* i attached the question.

 

Programming Assignment 2COEN 233 Computer Networks - Winter Quarter 2016Part 2: Reliable Transfer over an Unreliable Channel with Bit Errors thatcan also loose packetsThis project is a continuation of the 1st programming assignment. You should make thechanges and add the new requirements on top of it.It consists of building a Stop and Wait (S&W) reliable protocol. The S&W is going to be built ontop of UDP, and it is supposed to provide a reliable transport service to the SFTP application(developed in part 1, which needs to change to call your new send and receive functions).Messages are sent one at a time, and each message needs to be acknowledged whenreceived, before a new message can be sent.The S&W consists of a client and a server. Communication is unidirectional, i.e., data flows fromthe client to the server. The server starts first and waits for messages. The client starts thecommunication. Messages have sequence number 0 or 1. Before sending each message, achecksum is calculated and added to the S&W header. After sending each message, the clientstarts a timer (use alarm or sleep). When the timer goes off, the client tries to read acorresponding ACK message. If the corresponding ACK is not there, or it is not thecorresponding ACK (or if the checksum does not match), the message is sent again and thetimer is started again. If the corresponding ACK is there, the client changes the state andreturns to the application which can now send one more message. This means that the programblocks on writes.The server, after receiving a message, checks its checksum. If the message is correct and hasthe right sequence number, the server sends an ACK0 or ACK1 message (according to thesequence number) to the client, changes state accordingly, and deliver data to the application.If the message is not correct, the server repeats the last ACK message.The protocol should deal properly with duplicate data messages and duplicate ACK messages.The S&W message contains the header and the application data. No reordering is necessary,since the S&W is sending the exact message given by the application, one by one.

Answers

(11)
Status NEW Posted 06 Jun 2017 08:06 AM My Price 9.00

-----------

Not Rated(0)