22
CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016

CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

CSC358Tutorial6ShuhaoLiu(TA)Feb29,2016

Page 2: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Agenda

• Problem1,Assignment3Discussion

• TutorialProblem1:Stop-and-waitARQ

• TutorialProblem2:Alternating-bitProtocol

• TutorialProblem3:TransportProtocolDesign

Page 3: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:Go-back-N

Page 4: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:Go-back-N

Page 5: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:Go-back-N

Page 6: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:Go-back-N

Page 7: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:SelectiveRepeat

Page 8: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:SelectiveRepeat

Page 9: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

A3-1:SelectiveRepeat

Page 10: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P1solution

Page 11: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 12: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 13: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 14: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 15: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 16: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 17: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment
Page 18: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P2solution

• Binary-codedsequencenumber

• Cannotdifferentiatethe1st,3rd,5th…message

• Workswellifnoout-of-orderpackets

Page 19: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P3Notes

• Aà B(request)lossy• Bà A(dataresponse)lossless• Delay:unknown&variable

• AslongasBgetstherequest,Awillreceivethecorrespondingdataresponseeventually.• Wedon’tknowiffeedbackmechanismworks…

Page 20: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P3Solution

• Ahastoblindlyresendtherequestifthereplyisnotreceived.• Duplicatedrequestsmightbegenerated.• Bmightreceiveduplicatedrequests,thenAmightreceiveduplicateddata.• Weneedasequencenumber(1bit).

Page 21: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P3Solution

Page 22: CSC358 Tutorial 6 - Department of Computer Science ...ahchinaei/teaching/2016jan/csc358/Tut06-taSli… · CSC358 Tutorial 6 Shuhao Liu (TA) Feb 29, 2016. Agenda • Problem 1, Assignment

Tut6:P3Solution