It's UWAweek 47

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message. How do I ask a good question?

Displaying selected article
Showing 1 of 503 articles.
Currently 42 other people reading this forum.


 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

👍x1
helpful
2:40pm Tue 26th Mar, Christopher M.

"Henry Hewgill" <23*1*7*8@s*u*e*t*u*a*e*u*a*> wrote:
> Instead of testing if you're an outstanding (unacknowledged) sender by checking if 'nextdatatosend != ackexpected' I'm testing if 'lasttimer != NULLTIMER', and updating 'lasttimer = NULLTIMER' when I stop it after receiving a valid acknowledgement.
Yes, such approaches work as well - you're using the fact that a timer is still 'running' as a Boolean value, which is the same as checking the equivalence of two integer values. However, as those integer values have a *value* that reflects how future frames should be numbered, you'll need to also keep updating it. Don't forget to set the value of your timer to NULLTIMER, both when the ack arrives AND when/if the timer times-out.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy