Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3002


This forum is provided to promote discussion amongst students enrolled in Computer Networks (CITS3002).
 
Before posting a question here, you may like to read the article How To Ask Questions The Smart Way.
 
Options:
RSS cloud
Jump to:

Lab 3: stop and wait still wins?

3 of 695 articles shown, currently no other people reading this forum.
photo
From: Edward A.
Date: Thu 2nd Apr, 6:01pm
Actions: 
        Login-to-reply
I am currently doing lab 3 (very behind, I know) and I am comparing the plots for how many messages delivered in 1 hour for my piggybacking protocol vs the stopandwait protocol and my protocol loses (see plot.html).

My nodes are pretty talkative, and messages take a while to get between them. This scenario would be reasonably ideal for piggybacking. Messages take a long time to get between nodes and so sending an ack and a data frame separately would potentially be slower than waiting for the application layer to generate a frame, piggybacking the ack with the data frame and sending a single frame. 

However, as you can see from my results the stop and wait protocol beats my implementation only slightly. I was wondering if anyone else had similar results?

I have played with increasing the propagation delay more and the piggybacking protocol does send more messages than the stop and wait protocol under those circumstances, but the difference is not as pronounced as I would have expected. 

Lab 3: stop and wait still wins?

photo
From: Edward A.  O.P.
Date: Thu 2nd Apr, 6:02pm
Actions: 
        Login-to-reply
My parameters:

messagerate             = 100ms,
bandwidth               = 56Kbps,
propagationdelay        = 2500ms,

Lab 3: stop and wait still wins?

photo
From: Edward A.  O.P.
Date: Thu 2nd Apr, 6:03pm
Actions: 
        Login-to-reply
Cloudflare hates plots apparently, so just imagine two very close lines. 
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020