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. ...................
-
What revenue management opportunities are available to the owner of a warehouse and how can it take advantage of them?
-
What are the differentiating characteristics of chiefdoms and states?
-
Financial statements for Par Corporation and its 75 percent-owned subsidiary, Sal Corporation, for 2012 are summarized as follows (in thousands): Par Corporation acquired its interest in Sal at book...
-
1. Pertimbangkan satu cakera dengan 2000 silinder, bernombor 0 hingga 1999. Anggapkan kedudukan kepala semasa, berada di silinder 500. Giliran permintaan diberi seperti berikut: Consider one disk...
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
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...
-
a) Assume a firm's cash budget has identified a potential cash deficiency in three months time. Discuss three possible courses of action the firm could take to improve its cash position. b) Discuss...
-
A researcher builds a model in which a firm s liquidity ratio depends on the firm s profitability ratio and a dummy variable indicating whether the firm is listed on the stock exchange. In a second...
-
You are wanting to buy a 12 acre site for development of some townhome lots. The quoted price for the land is $2.50 per square foot (p.s.f.). What is the purchase price?
-
A project costs 2 5 0 0 0 pounds for the period of 3 years with an annual income of 3 0 0 0 each year calculate the net present value of at the discount rate of 4 % for each year.
-
A firm has a higher fixed asset turnover ratio than the other firms that operate in the same sector. That means it has a ratio higher than the industry average. It also has a lower total asset...
-
What are financial markets and why do they exist? Is there one particular characteristic that you think is more important than others in making a market "efficient"? Explain.
-
The normal textbook presentation of international trade does not include the international trader. How does including the trader in the model provide a different view of trade than one would get from...
-
You have just begun your summer internship at Omni Instruments. The company supplies sterilized surgical instruments for physicians. To expand sales, Omni is considering paying a commission to its...
-
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.
-
1. Display through your discussion answer an understanding of the four required elements for negligence. 2. Display through your discussion answer an understanding of vicarious liability and...
-
You are the Commander of the Major Crimes Unit at the Kennewick Police Department in Kennewick, Washington. It is a late Sunday afternoon. The on-call Detective sergeant supervising the Major Crimes...
-
As a result of malpractice suits and legal actions, it is generally recognized that a professional relationship or even the perception that the relationship is a professional one constitutes the...
Study smarter with the SolutionInn App