logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

you will be implementing a simple reliable transport protocol Host A will be sending segments, and Host B will be receiving and acknowledging those segments

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Programming Assignment 02 – Implementing a Reliable Transport Protocol

For the second programming assignment you will be implementing a simple reliable transport protocol. The protocol will be unidirectional. Host A will be sending segments, and Host B will be receiving and acknowledging those segments, but Host B will not be sending any application data of its own. Host A is the sender, Host B is the receiver.

 

  1. First, read section 3.4.1 – "Building a Reliable Data Transfer Protocol" of Kurose and Ross, Computer Networking: A Top-Down Approach. You will be implementing the Alternating Bit protocol, which they call 0.
  2. Read the directions, descriptions, and suggestions in the attached assignment description from the textbook authors
  3. Examine the files prog2.c and prog2.py carefully. All of your code will be added to one of these files to fill in the function stubs. That is how you will implement 0 as a part of this network simulation program.
  4. You must implement the following functions in prog2.py or prog2.c, please read their descriptions in the assignment description
    1. A_init
    2. A_output
    3. A_input
    4. A_timerinterrupt
    5. B_init
    6. B_input
  5. Do not implement either B_output or B_timerinterrupt. Those functions are only required for a bi-directional version of the protocol. Please ignore these two function
  6. Your implementation should include some output to STDOUT describing events that occur and protocol actions that are taken during the simulation. For example, message arrival, packet arrival, timer interrupt, or data corruption detection, etc. should all be reported to STDOUT. In addition, describe the actions your functions take in response. For example, building a packet, sending a packet, retransmitting a message, restarting the timer, etc. Part of your submission will be a trace of your program—we need output for the
  7. Try running the simulation program first – to see what it looks like before you start adding your own
  8. Submit your source code, which should consist of a single file—your modified py or prog2.c
  9. Submit a README that briefly explains your strategy for implementing each of the functions required 0.
  10. Submit a trace of your completed program running to the point where about 10 messages have been sent and correctly acknowledged. Use the following settings: loss probability
(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Atharva PatilComputer science

940 Answers

Hire Me
expert
Chrisantus MakokhaComputer science

736 Answers

Hire Me
expert
AyooluwaEducation

535 Answers

Hire Me
expert
RIZWANAMathematics

677 Answers

Hire Me

Get Free Quote!

285 Experts Online