Write a program to simulate the sending-site FSMs for the Selective Repeat protocol (Figure 23.34). Figure 23.34
Question:
Write a program to simulate the sending-site FSMs for the Selective Repeat protocol (Figure 23.34).
Transcribed Image Text:
Figure 23.34 FSMS for SR protocol Sender Time-out. Resend all outstanding packets in window. Reset the timer. Request came from process. Make a packet (seqNo = S,). Store a copy and send the packet. Start the timer for this packet. Set Sy = S, + 1. Window full (S = Sy+ Saize? Time-out. Resend all outstanding packets in window. Reset the timer. [true] [false] Start Ready [true] Blocking A corrupted ACK or an ACK about a non- outstanding packet arrived. [false] Window slides? A corrupted ACK or an ACK about a non- outstanding packet arrived. Discard it. An error-free ACK arrived that acknowledges one of the outstanding packets. Discard it. Mark the corresponding packet. If ackNo = Sp slide the window over all consecutive acknowledged packets. If there are outstanding packets, restart the timer. Otherwise, stop the timer. Note: All arithmetic equations are in modulo 2". Receiver Error-free packet with seq No inside window arrived. Note: All arithmetic equations are in modulo 2". If duplicate, discard; otherwise, store the packet. Send an ACK with ackNo = seqNo. If seqNo = R, deliver the packet and all consecutive previously arrived and stored packets to application, and slide window. Ready Corrupted packet arrived. Error-free packet with segNo outside window boundaries arrived. Discard the packet. Start Discard the packet. Send an ACK with ackNo = --
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 54% (11 reviews)
The fourth program simulates the SelectiveRepeat protocol at the s...View the full answer
Answered By
Akshay Agarwal
I am a Post-Graduate with a specialization in Finance. I have been working in the Consulting industry for the past 8 years with a focus on the Corporate and Investment Banking domain. Additionally, I have been involved in supporting student across the globe in their academic assignments and always strive to provide high quality support in a timely manner. My notable achievements in the academic field includes serving more than 10,000 clients across geographies on various courses including Accountancy, Finance, Management among other subjects. I always strive to serve my clients in the best possible way ensuring high quality and well explained solutions, which ensures high grades for the students along-with ensuring complete understanding of the subject matter for them. Further, I also believe in making myself available to the students for any follow-ups and ensures complete support and cooperation throughout the project cycle. My passion in the academic field coupled with my educational qualification and industry experience has proved to be instrumental in my success and has helped me stand out of the rest. Looking forward to have a fruitful experience and a cordial working relationship.
5.00+
179+ Reviews
294+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program to simulate the sending-site FSMs for the simple protocol (Figure 23.18). Figure 23.18 FSMS for the simple protocol Request came from application. Packet arrived. Make a packet and...
-
Write a program to simulate the sending-site FSMs for the Stop-and-Wait protocol (Figure 23.21). Figure 23.21 FSMS for the Stop-and-Wait protocol Sender Request came from application. Make a packet...
-
Write a program to simulate the sending-site FSMs for the Go-Back-N protocol (Figure 23.27).
-
Use lHospitals rule where applicable to find each limit. lim In(ex + 1) 5x
-
During 20Y8, its first year of operations, Galileo Company purchased two available-for-sale investments as follows: Security ___________ Shares Purchased _________ Cost Hawking Inc. ...................
-
Draw the graph of the NRZ-L scheme using each of the following data streams, assuming that the last signal level has been positive. From the graphs, guess the bandwidth for this scheme using the...
-
Females Rating Males on OKCupid The OKCupid dating site provides lots of very interesting data. Figure 2.61 shows a scatterplot of the age of males that females find most attractive, based on the age...
-
As the manager of a monopoly, you face potential government regulation. Your inverse demand is P = 25 Q, and your costs are C(Q) = 5Q. a. Determine the monopoly price and output. b. Determine the...
-
Explain the two different ways to measure the real interest rate? Why can the nominal and real interest rates move in different directions?
-
Reba Dixon is a fifth-grade school teacher who earned a salary of $38,000 in 2019. She is 45 years old and has been divorced for four years. She receives $1,200 of alimony payments each month from...
-
A sender sends a series of packets to the same destination using 5-bit sequence numbers. If the sequence numbers start with 0, what is the sequence number of the 100th packet?
-
Assume a new organization needs to create a new server process and allow its customers to access the organization site using that process. How should the port number for the server process be...
-
Describe the data that is being used by CVS Health to forecast and to plan its strategy for the future.
-
Christa Clothing International is a well-known international company headquartered in Blusen City, North Carolina in the United States. Christa specializes in fashion clothing for men and women. In...
-
Suppose the Vehicle class is defined to keep track of vehicles in a household. What kinds of instance data members, variables and constants, would be defined for such Vehicle objects? Do any useful...
-
Given two numbers, the largest divisor among all the integers that divide the two numbers is known as the greatest common divisor. For example, the positive divisors of 36 are \(1,2,3,4,6,9,12,18\),...
-
In 2009, after four decades of rapid growth, China surpassed the US to become the worlds largest car market in number of vehicles sold (Waldmeir, 2010a). China is currently the largest single market...
-
Determine the return value for each of these expressions, assuming the following declaration: String org; org = new String ("American Quarter Horse Association"); A. org.substring (5, 8) *B....
-
What is the difference between a percentage and a percentile?
-
This problem continues the Draper Consulting, Inc., situation from Problem 12-45 of Chapter 12. In October, Draper has the following transactions related to its common shares: Oct 1 Draper...
-
We say that a router in DVMRP creates a shortest-path tree on demand. What is the meaning of this statement? What is the advantage of creating shortest path trees only on demand?
-
In the network of Figure 21.17, find the shortest path trees for router R if the network is using MOSPF with the source connected to the router marked as S. Assume that all routers have interest in...
-
Does RPF actually create a shortest path tree? Explain.
-
a) Give examples of low, medium and high strain rate test types. [4 marks] b) A plot of log (stress) against log (strain rate) provides a straight line relationship. Based on this, provide an...
-
3- Let the density of the pyramid material be p = 2000 kg/m. Determine the average normal stress at a cross section located at x measured from the apex. Express the stress as a function of x. Assume...
-
You are designing a wing with no aerodynamic twist based on the airfoil camber given by: N C 3.1 (H-H) = 0.1 The wing will have an aspect ratio of 10, a taper ratio of 0.8, and a constant geometric...
Study smarter with the SolutionInn App