Recall that after developing the rdt2.1 protocol, we decided that it had a fatal flaw. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Recall that after developing the rdt2.1 protocol, we decided that it had a fatal flaw. The sender and received for rdt2.1 are shown below. Show that the sender and receiver can enter into a deadlock state, where each is waiting for an event that will never occur. (Note: in some cases in the FSMs the variable "sndpkt" is misspelled as "sendpkt". Also, in both the sender and receiver the function make_pkt is being used to initialize sndpkt - the sender and receiver FSMs use different syntax however.) rdt rev (revpkt) && notcorrupt (revpkt) && isACK (revpkt) A rdt_rev (revpkt) 66 (corrupt (revpkt) || isNAK (revpkt)) udt send (sndpkt) rdt send (data) sndpkt-make_pkt (0, data, checksum) udt send (sndpkt) Wait for call 0 from above Wait for ACK or NAK 1 Figure 3.11 rdt2.1 sender Wait for ACK or NAK 0 Wait for call 1 from above rdt send (data) sndpkt-make-pkt (1, data, checksum) udt send (sndpkt) rdt_rev (revpkt) && (corrupt (revpkt) |I isNAK (revpkt)) udt send (sndpkt) rdt_rev (revpkt) && notcorrupt (revpkt) 66isACK (revpkt) A rdt_rev (revpkt) 66 (corrupt (revpkt) || has_seql (revpkt))) compute chksum make_pkt (sndpkt, NAK, chksun) udt send (sndpkt) rdt_rev (revpkt) && notcorrupt (revpkt) 46 has_seq0 (revpkt) extract (revpkt, data) deliver_data (data) compute chksum make_pkt (sendpkt,ACK, chksum) udt_send (sndpkt) Wait for 0 from below Wait for 1 from below rdt_rev (revpkt) && notcorrupt (revpkt) 46 has_seql (revpkt) rdt_rev (revpkt) 66 (corrupt (revpkt) || has_seq0 (revpkt))) compute chksum make_pkt (sndpkt, NAK, ch udt send (sndpkt) extract (revpkt, data) deliver_data (data) compute chksum make_pkt (sendpkt, ACK, chksum) udt send (sndpkt) Figure 3.60 An incorrect receiver for protocol rdt 2.1 Recall that after developing the rdt2.1 protocol, we decided that it had a fatal flaw. The sender and received for rdt2.1 are shown below. Show that the sender and receiver can enter into a deadlock state, where each is waiting for an event that will never occur. (Note: in some cases in the FSMs the variable "sndpkt" is misspelled as "sendpkt". Also, in both the sender and receiver the function make_pkt is being used to initialize sndpkt - the sender and receiver FSMs use different syntax however.) rdt rev (revpkt) && notcorrupt (revpkt) && isACK (revpkt) A rdt_rev (revpkt) 66 (corrupt (revpkt) || isNAK (revpkt)) udt send (sndpkt) rdt send (data) sndpkt-make_pkt (0, data, checksum) udt send (sndpkt) Wait for call 0 from above Wait for ACK or NAK 1 Figure 3.11 rdt2.1 sender Wait for ACK or NAK 0 Wait for call 1 from above rdt send (data) sndpkt-make-pkt (1, data, checksum) udt send (sndpkt) rdt_rev (revpkt) && (corrupt (revpkt) |I isNAK (revpkt)) udt send (sndpkt) rdt_rev (revpkt) && notcorrupt (revpkt) 66isACK (revpkt) A rdt_rev (revpkt) 66 (corrupt (revpkt) || has_seql (revpkt))) compute chksum make_pkt (sndpkt, NAK, chksun) udt send (sndpkt) rdt_rev (revpkt) && notcorrupt (revpkt) 46 has_seq0 (revpkt) extract (revpkt, data) deliver_data (data) compute chksum make_pkt (sendpkt,ACK, chksum) udt_send (sndpkt) Wait for 0 from below Wait for 1 from below rdt_rev (revpkt) && notcorrupt (revpkt) 46 has_seql (revpkt) rdt_rev (revpkt) 66 (corrupt (revpkt) || has_seq0 (revpkt))) compute chksum make_pkt (sndpkt, NAK, ch udt send (sndpkt) extract (revpkt, data) deliver_data (data) compute chksum make_pkt (sendpkt, ACK, chksum) udt send (sndpkt) Figure 3.60 An incorrect receiver for protocol rdt 2.1
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
s1 educated (SSE) student for every three public school educated (PSE) students. Reasoning that students are not very dissimilar from threads, he suggests the following entry and exit routines be...
-
Read each case carefully and, as determined in the Internal Revenue Code of Puerto Rico, identify the deductions, calculate the amount of deductions and what the determined contribution would be. and...
-
Using Hot Dogs, GRAPH the market and the individual supply, demand and costs for Hot dogs side by side. Make sure to include the S.R. and L.R profits!
-
A fully loaded, slow-moving freight elevator has a cab with a total mass of 1200 kg, which is required to travel upward 54 m in 3.0 min, starting and ending at rest. The elevator's counterweight has...
-
A \(1 \mathrm{~g}\) sample of fuel is burned in a bomb calorimeter containing \(1 \mathrm{~kg}\) of water at an initial temperature of \(20^{\circ} \mathrm{C}\). After the reaction, the final...
-
Rework Problem 15-10 using a spreadsheet model. After completing Parts a through d, respond to the following: If Bowers customers began to pay late, collections would slow down, thus increasing the...
-
Required information [The following information applies to the questions displayed below.] Income statements for the current year and one year ago, follow. Assume that all sales are on credit. For...
-
The United States economy is experiencing a moderate economic downturn. The Republican President has addressed the downturn using stereotypical Republican methods. The economy failed to improve...
-
a- Subgraph induced by <1,4,3> b- trail from 6 to 2 of length 6 c- circuit of length 4 d- path from 4 to 5 of length 4 e- odd cycle f-Is the graph bipartite? g- Is the graph complete? h- Is the graph...
-
On Wednesday, February 18, Jim Elsey, cost management specialist at Deere & Company in Moline, Illinois, received a call from Glen Lowery, sales manager in the Agricultural Products Division: Jim, I...
-
Q3: A mass is oscillated on a spring with the function as x= 6 sin 5T t where x is in metre and t is in seconds. i. Sketch the graph of displacement against time. ii. Write the expression for the...
-
Determine the total potential energy for the system of three charges *shown in the picture if QA=-3.5 mC, QB-7.0 mC, QC=1.5 mC, s=2.9 cm and d = 4.1 cm. Express your answer in megajoules.
-
Downsizing 1. In the trailer, Matt Damon and Kirsten Wigg are told that their $52,000 will be worth 12.5 million dollars in Leisure Land. Use a proportion to calculate how much $100,000 would be...
-
Following are some transactions, you are required to show their effect on basic accounting equation. A business is proposed to be started by Mr. Ahmad He brought in a cash of 1,50,000 as his capital...
-
Anna, a high school counselor, devised a program that integrates classroom learning with vocational training to help adolescents at risk for school dropouts stay in school and transition to work...
-
Jim is fired from his job as a waiter and decides to take an extended trip to Europe. After touring Europe for 3 months, Jim returns to look for a new job as a waiter. Are his job-hunting expenses...
-
Quince Interests is a partnership with a tax year that ends September 30, 2012. During that year, Potter, a partner, received $3,000 per month as a guaranteed payment, and his share of partnership...
-
Jason and Mary are married taxpayers in 2012. They are both under age 65 and in good health. For this tax year, they have a total of $41,000 in wages and $500 in interest income. Jason and Mary's...
-
Tania Angus established Anguss Phone App Productions in 2018 and kept her accounting records on a cash basis. During 2018, Tania decided to switch her accounting to the accrual basis and has asked...
-
Mirandas Motor Mechanics analysed the accounting records and other data for the business. The following information is made available for the year ended 30 June 2019. 1. Salaries and wages owing to...
-
The unadjusted trial balance of the general ledger of Antonios Small Appliance Repair Service on 30 June 2019 is presented below (ignore GST). Additional data for adjustment purposes 1. Supplies on...
Study smarter with the SolutionInn App