SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
Q1.

The data rate of channel, that connects two hosts H1 and H2, is C bps.

Let, the time to travel from A to B is I.

The number of bits in the frame header be H

The number of bits in the frame is D.

Let A be the length of ACK frame.

      (i) What is the total length of the frame? D+H bits

      (ii) What is the transmission delay? (D+H) / C

                                                                               I
      (iii) What is the ratio of propagation delay and transmission delay? (D+ H )/C

      (iv) What is the efficiency of Stop-and-Wait protocol, given above data?

Transmition strats at 0.

Transmission finish at (D+H)/C.

Last bit arrives at receiver in I + (D+H)/C sec.

Time to send ACK = A/C

Last bit of ACK arrives at sender = I + A/C

                                                   D+ H   A
Total time spent = I + (D+H)/C + I + A/C = 2*I +    C   + C

Efficiency of a protocol is the maximum fraction of time when the protocl is trasmitting data i.e.

Efficiency = Time to sent Data / Total Time

                     ( D+ H )/C
Efficiency = 2∗ I + ( D+ H )/C + A/C

Q2.

Let the round trip propagation delay be 270ms.

The data rate of channel, that connects two hosts H1 and H2, is 56kbps.

The total length of frame (including header) is 4000 bits

      (i) What is the ratio of propagation delay and transmission delay? = refere to Q1

      (ii) What is the efficiency of Stop-and-Wait protocol, given above data? = refer to Q1.
Q3. (Assume stop and wait protocol is used)

Let the data rate of Lan cable, that connects host A and B, is D bps.

Let the propagation speed, from A to B, is 200,000 Km/sec.

Let the length of the LAN cable, from A to B, is 10 Km.

The size of frame, sent from A to B, is 500 bits (including header)

You can assume that the length of ACK frames is negligible

      (i) What is the ratio of propagation delay and transmission delay for D = 10 Mbps. – refer Q1

      (ii) What is the ratio of propagation delay and transmission delay for D = 100 Mbps. – refer Q1

      (iii) What is the efficiency of Lan for D = 10 Mbps – refer Q1

      (iv) What is the efficiency of Lan for D = 100 Mbps – refer Q1

      (v) What should be the size of frame in the Lan with D=10 Mbps to achieve an efficiency of 80%. – refer Q1

      (vi) What should be the size of frame in the Lan with D=10 Mbps to achieve an efficiency of 100%. – refer Q1



Q4.

      (i) Find the efficiency of Lan, given data in Q3, for Sliding Window Protocol and D = 10 Mbps and window size is 8.

      (ii) Find the efficiency of Lan, given data in Q3, for Sliding Window Protocol and D = 100 Mbps and window size is 8.

Ans:

E = W/(1+2a), where a = PropagationTime/TransmissionTime, and W = window size

You know how to calculate propagation time and transmission time.



Q5. (Assume sliding window protocol is used)

Each frame contains a sequence number S.

The ACK number, K, acknowledges all frames up to K-1 and expects the next frame with sequence number K.

The sequence number is modulo W. i.e. S Modulo W returns the remainder when S is divided by W. This restrains the
value of S to stay between 0 and W-1. For ex: S=2 and W=8, S modulo W = 2. S=10 and W=8, S modulo W = 2.

      a) How many frames a sender can send without getting an acknowledgment, if the initial sequence number is S,
         and Window size is W. W-S

      b) Assume windows size W= 8. The frames with sequence S = 5,6,7,0,1 are sent, but no ACK received yet. What
         frames is sender allowed to send? Frame 2 ,3, 4
c) What is the situation in Q(b) on receiving a frame with

            a. Acknowledgment frame with value 2 arrive: ACK 2, S = 2,3,4,5,6,7,0,1 and Next = 2

            b. Acknowledgment frame with value 6 arrive: ACK 6, S = 6,7,0,1,2,3,4,5, and Next =6

            c. Acknowledgment frame with value 5 arrive ACK 5, S = 5,6,7,0,1,2,3,4, and Next = 5

            For each ACK, write the acknowledged frame and the state of window.

Q6. Fill in the numbers as explained below for the following illustrations.
Ans: Top Left: ACK 6.

Top Right: copies discarded

Bottom Left: ACK 3, Frames in Black are discarded.

Bottom Right : Frames in Black are discarded, NAK 2.




Above: Frames 3, 4, and 5 are not discarded but kept at receiver.

Weitere ähnliche Inhalte

Was ist angesagt?

第四次课程 Chap8
第四次课程 Chap8第四次课程 Chap8
第四次课程 Chap8
Emma2013
 
IOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_presentIOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_present
Shubham Joshi
 
4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting
kavish dani
 

Was ist angesagt? (20)

TRANSPORT LAYER - Process-to-Process Delivery: UDP, TCP and SCTP
TRANSPORT LAYER - Process-to-Process Delivery: UDP, TCP and SCTPTRANSPORT LAYER - Process-to-Process Delivery: UDP, TCP and SCTP
TRANSPORT LAYER - Process-to-Process Delivery: UDP, TCP and SCTP
 
29 Multimedia
29 Multimedia29 Multimedia
29 Multimedia
 
A tabu search algorithm for the min max k-chinese postman problem
A tabu search algorithm for the min max k-chinese postman problemA tabu search algorithm for the min max k-chinese postman problem
A tabu search algorithm for the min max k-chinese postman problem
 
第四次课程 Chap8
第四次课程 Chap8第四次课程 Chap8
第四次课程 Chap8
 
Gq3511781181
Gq3511781181Gq3511781181
Gq3511781181
 
IOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_presentIOEfficientParalleMatrixMultiplication_present
IOEfficientParalleMatrixMultiplication_present
 
Chroma from Luma Intra Prediction for AV1
Chroma from Luma Intra Prediction for AV1Chroma from Luma Intra Prediction for AV1
Chroma from Luma Intra Prediction for AV1
 
Attacks on signature schemes based on the FFI problem
Attacks on signature schemes based on the FFI problemAttacks on signature schemes based on the FFI problem
Attacks on signature schemes based on the FFI problem
 
bask, bfsk, bpsk
bask, bfsk, bpskbask, bfsk, bpsk
bask, bfsk, bpsk
 
Lecture04
Lecture04Lecture04
Lecture04
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Dynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devicesDynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devices
 
R04605106110
R04605106110R04605106110
R04605106110
 
B0311219
B0311219B0311219
B0311219
 
4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting
 
Breaking the Softmax Bottleneck via Learnable Monotonic Pointwise Non-lineari...
Breaking the Softmax Bottleneck via Learnable Monotonic Pointwise Non-lineari...Breaking the Softmax Bottleneck via Learnable Monotonic Pointwise Non-lineari...
Breaking the Softmax Bottleneck via Learnable Monotonic Pointwise Non-lineari...
 
Programming Actor-based Collective Adaptive Systems
Programming Actor-based Collective Adaptive SystemsProgramming Actor-based Collective Adaptive Systems
Programming Actor-based Collective Adaptive Systems
 
Mat lab for bplc
Mat lab for bplcMat lab for bplc
Mat lab for bplc
 
12 Multiple Access
12 Multiple Access12 Multiple Access
12 Multiple Access
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 

Andere mochten auch (13)

Assignment cn subnetting
Assignment cn subnettingAssignment cn subnetting
Assignment cn subnetting
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
 
Solution3
Solution3Solution3
Solution3
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2
 
Violinphoenix
ViolinphoenixViolinphoenix
Violinphoenix
 
Introduction
IntroductionIntroduction
Introduction
 
Solution2
Solution2Solution2
Solution2
 
Ie project
Ie projectIe project
Ie project
 
Assignment3
Assignment3Assignment3
Assignment3
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 sol
 
Mid-
Mid-Mid-
Mid-
 
Assignment uplaodfile
Assignment uplaodfileAssignment uplaodfile
Assignment uplaodfile
 

Ähnlich wie Assignment sw solution

Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tl
H K
 
Notes mid uet solution
Notes mid uet solutionNotes mid uet solution
Notes mid uet solution
Ali Jt
 
B2 b fc credits performance deadlocks
B2 b fc credits performance deadlocksB2 b fc credits performance deadlocks
B2 b fc credits performance deadlocks
Barry Wright
 
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
keiko277
 
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338qCisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
keiko277
 

Ähnlich wie Assignment sw solution (20)

Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
 
Data and computer communication exam i
Data and computer communication exam iData and computer communication exam i
Data and computer communication exam i
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tl
 
Networks quiz #1
Networks quiz #1 Networks quiz #1
Networks quiz #1
 
Notes mid uet solution
Notes mid uet solutionNotes mid uet solution
Notes mid uet solution
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
CS547 Wireless Networking and Security Exam 1 Questio.docx
CS547 Wireless Networking and Security Exam 1  Questio.docxCS547 Wireless Networking and Security Exam 1  Questio.docx
CS547 Wireless Networking and Security Exam 1 Questio.docx
 
tutorial 3.pptx
tutorial 3.pptxtutorial 3.pptx
tutorial 3.pptx
 
EE402B Radio Systems and Personal Communication Networks notes
EE402B Radio Systems and Personal Communication Networks notesEE402B Radio Systems and Personal Communication Networks notes
EE402B Radio Systems and Personal Communication Networks notes
 
Switching Problems.pdf
Switching Problems.pdfSwitching Problems.pdf
Switching Problems.pdf
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrol
 
B2 b fc credits performance deadlocks
B2 b fc credits performance deadlocksB2 b fc credits performance deadlocks
B2 b fc credits performance deadlocks
 
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
Cisco.actualtests.200 120.v2013-12-10.by.watson.314q (2 new q)
 
CCNA Exam Question
CCNA Exam QuestionCCNA Exam Question
CCNA Exam Question
 
Cn mid feb 2014
Cn mid feb 2014Cn mid feb 2014
Cn mid feb 2014
 
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338qCisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
Cisco.exactquestions.200 120.v2014-12-23.by.konrad.338q
 
CISCO Exact Questions By: Konard
CISCO Exact Questions By: KonardCISCO Exact Questions By: Konard
CISCO Exact Questions By: Konard
 
iMinds' course: preceding exercises
iMinds' course: preceding exercisesiMinds' course: preceding exercises
iMinds' course: preceding exercises
 
Dc assignment 2
Dc assignment 2Dc assignment 2
Dc assignment 2
 
Data linklayer
Data linklayerData linklayer
Data linklayer
 

Mehr von H K (15)

Induction
InductionInduction
Induction
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment4
Assignment4Assignment4
Assignment4
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3
 
Proof
ProofProof
Proof
 
Resolution
ResolutionResolution
Resolution
 
Assignment description
Assignment descriptionAssignment description
Assignment description
 
Set
SetSet
Set
 
Logic
LogicLogic
Logic
 
Assignment sw
Assignment swAssignment sw
Assignment sw
 
Assignment sw
Assignment swAssignment sw
Assignment sw
 
Mid term exam
Mid term examMid term exam
Mid term exam
 
Week32
Week32Week32
Week32
 
Week32
Week32Week32
Week32
 
Week31
Week31Week31
Week31
 

Kürzlich hochgeladen

Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 

Kürzlich hochgeladen (20)

Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRLBhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
 
Hire 💕 8617697112 North Sikkim Call Girls Service Call Girls Agency
Hire 💕 8617697112 North Sikkim Call Girls Service Call Girls AgencyHire 💕 8617697112 North Sikkim Call Girls Service Call Girls Agency
Hire 💕 8617697112 North Sikkim Call Girls Service Call Girls Agency
 
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
 
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034 Independent Chenna...
 
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
 
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
Hotel And Home Service Available Kolkata Call Girls Howrah ✔ 6297143586 ✔Call...
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
 
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
 
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
 
(TOP CLASS) Call Girls In Chengalpattu Phone 7427069034 Call Girls Model With...
(TOP CLASS) Call Girls In Chengalpattu Phone 7427069034 Call Girls Model With...(TOP CLASS) Call Girls In Chengalpattu Phone 7427069034 Call Girls Model With...
(TOP CLASS) Call Girls In Chengalpattu Phone 7427069034 Call Girls Model With...
 

Assignment sw solution

  • 1. Q1. The data rate of channel, that connects two hosts H1 and H2, is C bps. Let, the time to travel from A to B is I. The number of bits in the frame header be H The number of bits in the frame is D. Let A be the length of ACK frame. (i) What is the total length of the frame? D+H bits (ii) What is the transmission delay? (D+H) / C I (iii) What is the ratio of propagation delay and transmission delay? (D+ H )/C (iv) What is the efficiency of Stop-and-Wait protocol, given above data? Transmition strats at 0. Transmission finish at (D+H)/C. Last bit arrives at receiver in I + (D+H)/C sec. Time to send ACK = A/C Last bit of ACK arrives at sender = I + A/C D+ H A Total time spent = I + (D+H)/C + I + A/C = 2*I + C + C Efficiency of a protocol is the maximum fraction of time when the protocl is trasmitting data i.e. Efficiency = Time to sent Data / Total Time ( D+ H )/C Efficiency = 2∗ I + ( D+ H )/C + A/C Q2. Let the round trip propagation delay be 270ms. The data rate of channel, that connects two hosts H1 and H2, is 56kbps. The total length of frame (including header) is 4000 bits (i) What is the ratio of propagation delay and transmission delay? = refere to Q1 (ii) What is the efficiency of Stop-and-Wait protocol, given above data? = refer to Q1.
  • 2. Q3. (Assume stop and wait protocol is used) Let the data rate of Lan cable, that connects host A and B, is D bps. Let the propagation speed, from A to B, is 200,000 Km/sec. Let the length of the LAN cable, from A to B, is 10 Km. The size of frame, sent from A to B, is 500 bits (including header) You can assume that the length of ACK frames is negligible (i) What is the ratio of propagation delay and transmission delay for D = 10 Mbps. – refer Q1 (ii) What is the ratio of propagation delay and transmission delay for D = 100 Mbps. – refer Q1 (iii) What is the efficiency of Lan for D = 10 Mbps – refer Q1 (iv) What is the efficiency of Lan for D = 100 Mbps – refer Q1 (v) What should be the size of frame in the Lan with D=10 Mbps to achieve an efficiency of 80%. – refer Q1 (vi) What should be the size of frame in the Lan with D=10 Mbps to achieve an efficiency of 100%. – refer Q1 Q4. (i) Find the efficiency of Lan, given data in Q3, for Sliding Window Protocol and D = 10 Mbps and window size is 8. (ii) Find the efficiency of Lan, given data in Q3, for Sliding Window Protocol and D = 100 Mbps and window size is 8. Ans: E = W/(1+2a), where a = PropagationTime/TransmissionTime, and W = window size You know how to calculate propagation time and transmission time. Q5. (Assume sliding window protocol is used) Each frame contains a sequence number S. The ACK number, K, acknowledges all frames up to K-1 and expects the next frame with sequence number K. The sequence number is modulo W. i.e. S Modulo W returns the remainder when S is divided by W. This restrains the value of S to stay between 0 and W-1. For ex: S=2 and W=8, S modulo W = 2. S=10 and W=8, S modulo W = 2. a) How many frames a sender can send without getting an acknowledgment, if the initial sequence number is S, and Window size is W. W-S b) Assume windows size W= 8. The frames with sequence S = 5,6,7,0,1 are sent, but no ACK received yet. What frames is sender allowed to send? Frame 2 ,3, 4
  • 3. c) What is the situation in Q(b) on receiving a frame with a. Acknowledgment frame with value 2 arrive: ACK 2, S = 2,3,4,5,6,7,0,1 and Next = 2 b. Acknowledgment frame with value 6 arrive: ACK 6, S = 6,7,0,1,2,3,4,5, and Next =6 c. Acknowledgment frame with value 5 arrive ACK 5, S = 5,6,7,0,1,2,3,4, and Next = 5 For each ACK, write the acknowledged frame and the state of window. Q6. Fill in the numbers as explained below for the following illustrations.
  • 4. Ans: Top Left: ACK 6. Top Right: copies discarded Bottom Left: ACK 3, Frames in Black are discarded. Bottom Right : Frames in Black are discarded, NAK 2. Above: Frames 3, 4, and 5 are not discarded but kept at receiver.