Discussion:
Assignment 3 clarifications needed
(too old to reply)
Swathi Amarala
2009-03-11 17:11:12 UTC
Permalink
Hi,

" The receiver should buffer out-of-order packets. Otherwise, follow the
description of Go-Back-N as outlined on Slides 3.47 - 3.50 and discussed in
class. "

I found the above statement to be confusing. Should I buffer the
out-of-order packets or should I discard them?
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Also in the description below:
"A global object of type System manages and invokes several Action objects.
The class Node is a refinement of class Action and the base class for your
modules. "

by class Action, do you mean class Activity ?
-----------------------------------------------------------------------------------------
According to my understanding, my log output file should contain the
following:
1. The time and the sequence number of the frame sent from the sender
2. The time and the sequence number of the frame received at the receiver
3. The time and sequence number of acknowledgement sent from the reciever
4. The time and sequence number of acknowledgement received at the sender
5. The time and sequence number of a frame when it is dropped
6. The time when we reset the timer

Is my understanding correct?
-----------------------------------------------------------------------------------------
Could you please give us an example of infile?
Martin Karsten
2009-03-11 17:22:50 UTC
Permalink
Post by Swathi Amarala
" The receiver should buffer out-of-order packets. Otherwise, follow the
description of Go-Back-N as outlined on Slides 3.47 - 3.50 and discussed
in class. "
I found the above statement to be confusing. Should I buffer the
out-of-order packets or should I discard them?
In contrast to the description in class, yes, you should buffer out of order
packets. You'll need to implement this for SR anyway, so it shouldn't be an
extra effort.
Post by Swathi Amarala
-------------------------------------------------------------------------------------------------------------------------------------------------------------
"A global object of type System manages and invokes several Action
objects. The class Node is a refinement of class Action and the base
class for your modules. "
by class Action, do you mean class Activity ?
Yes, sorry. I've updated the description.
Post by Swathi Amarala
-----------------------------------------------------------------------------------------
According to my understanding, my log output file should contain the
1. The time and the sequence number of the frame sent from the sender
2. The time and the sequence number of the frame received at the receiver
3. The time and sequence number of acknowledgement sent from the reciever
4. The time and sequence number of acknowledgement received at the sender
5. The time and sequence number of a frame when it is dropped
6. The time when we reset the timer
Is my understanding correct?
This is entirely your design decision.
Post by Swathi Amarala
-----------------------------------------------------------------------------------------
Could you please give us an example of infile?
You mean a file or the C++ object? For the file, there are no restrictions, so
no example. Any file can do. With respect to the C++ interface, see the
documentation for class 'ifstream' in your favourite manual.

Loading...