DOC PREVIEW
UCLA COMSCI 118 - Jonathan Nguy 603799761 HW 4

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Jonathan'Nguy'603'799'761'Homework'4'1.'These'ACK'packets'do'not'need'sequence'numbers'because'the'rdt3.0'protocol'uses'a'stopEandEwait'procedure,'so'all'the'packets'must'be'in'order'when'they'are'sent'and'ACK’d.'''2.''a)'If'the'receiver'is'expecting'the'sequence'k,'and'the'window'size'is'3,'the'latest'ACK'is'must’ve'sent'could'have'been'k"#1.'Because'the'window'size'is'3,'the'earliest'ACK'that'could'be'sent'is'k"–"3"–"1,'which'is'k"–"4.'With'these'two,'we'know'that'the'possible'ACK’s'being'sent'back'is'between'k"–"4"and'k"–"1."'b)'If'the'receiver'is'expecting'the'sequence'k'next,'that'means'it'must'have'sent'ACK’s'up'until'k"–"1.'If'none'of'those'ACK’s'have'been'received'by'the'sender,'the'sender’s'sequence'numbers'would'be'between'k"–"N"="k"–"3"and'k"–"1.'Next,'if'the'sender'received'all'of'those'ACK’s,'that'means'that'the'next'sequence'numbers'would'be'between'k"and'k"+"N"–"1="k"+"2.''3.''a)'The'minimum'possible'latency'='2'RTT’s'+'size'of'object/transmission'rate.''The'minimum'W'that'achieves'that'is:'!"" + !/!!/!''Plugging'in'28'kbps'to'the'first'equation,'we'get:'2 ∗ .1 +1000003500= 28.77!!"#$%&!!''To'get'the'minimum'W,'we'plug'in'the'values'to'the'second'equation:'. 1 + 536/(280008)536/(280008)= 1.6'So'the'minimum'window'size'is'2.''b)'The'minimum'latency'for'100'kbps'is:'2 ∗ .1 +1000001000008= 2 ∗ .1 + 8 = 8.2!!"#$%&!'To'get'the'minimum'window'size:'. 1 + 536/(1000008)536/(1000008)= 3.33'So'the'minimum'window'is'4.''''c)'The'minimum'latency'for'10'Mbps'is:'2 ∗ .1 +100000100000008= 2 ∗ .1 + .08 = .28!!"#$%&!'To'get'the'minimum'window'size:'. 1 + 536/(100000008)536/(100000008)=


View Full Document

UCLA COMSCI 118 - Jonathan Nguy 603799761 HW 4

Download Jonathan Nguy 603799761 HW 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Jonathan Nguy 603799761 HW 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Jonathan Nguy 603799761 HW 4 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?