Question

In: Computer Science

If you have two machines belonging to David and Tom are connected by a perfect bidirectional...

If you have two machines belonging to David and Tom are connected by a perfect bidirectional channel (i.e., no corruption or loss of packets) for exchanging notes about Computer study. David and Tom designed the system to deliver data messages to each other’s machines in an alternating manner: First, David’s machine must deliver a message to Tom’s machine, then Tom’s must deliver a message to David’s, then David’s must deliver a message to Tom’s and so on. If a machine is in a state where it should not attempt to deliver a message to the other side, and there is an event like rdt_send(data) call from above that attempts to pass data down for transmission to the other side, this call from above can simply be ignored with a call to rdt_unable_to_send(data), which informs the higher layer that it is currently not able to send data. Draw a finite state machine (FSM) specification for this protocol, i.e., one FSM for David’s, and one FSM for Tom’s. You should use the following events and actions that have the same meaning as protocol rdt1.0: rdt_send(data), packet = make_pkt(data), udt_send(packet), rdt_rcv(packet), extract (packet, data), deliver_data(data). Make sure your protocol reflects the strict alternation of sending between the two machines. Also, make sure to indicate the initial states for David and Tom’s machines in your FSM descriptions

Solutions

Expert Solution

Hey! here is my answer...please give  positive rating  to appreciate my work.....

We have two machines belonging to David and Tom are connected by a perfect bidirectional channel (i.e., Reliable connection) for exchanging notes about Computer study.

David and Tom designed the system to deliver data messages to each other’s machines in an alternating manner: First, David’s machine must deliver a message to Tom’s machine, then Tom’s must deliver a message to David’s, then David’s must deliver a message to Tom’s and so on.

here the basic FSM for David and Tom

For building a Reliable Data Transfer of protocol over a layer we firstly take the simple case of transferring data over a completely reliable channel, the RDT 1.0 is a trivial protocol.
This transfer of data is shown by using FSM (finite state machine) which consist of FSM of sender and receiver separately.
In RDT 1.0 there is only one state each for sender and receiver, here arrow indicates the transition of protocol from one state to another.

Sending Side:
RDT is simple it takes the data from the above layer in the for of segments it remove the segment header and make the data in the form of packet using make_pkt and sends the packet into the channel using udt_send (unreliable data transfer).


Receiving Side
RDT receives a packet from the underlying channel via the rdt_rcv (packet) removes the data from the packet using extract (packet, data) and passes the data up to the upper-layer. The rdt_rcv (packet) event result from a procedure call i.e. from rdt_rcv() packet from the lower layer of the protocol.

IN FSM Specification

Sender:

If the upper layer is called, the rdt_send event is generated, the packet activity is created and the check box is added, and udt_send() on the channel is called to send the packet. At the same time, it enters the waiting ACK/NAK state. If it is NAK, it retransmits the packet and continues to wait for ACK/NAK. It remains in this state until it returns the ACK and enters the waiting for calling state

.
Receiver:

When a packet is passed in, rdt_rcv receives and judges. If there is no error extract extraction, it is delivered to the upper deliver_data and returns ACK. If an error occurs, it directly returns NAK and is waiting for receiving.

Initial state of bos David and tom FSM is waiting... they wait for call from upper layer at sender side and at Reciving side Waiting for call from lower layer...

thanks...........for any query please ask me in comment box...


Related Solutions

Consider that you have two blocks and they are connected to each other with a spring....
Consider that you have two blocks and they are connected to each other with a spring. Block AA  has mass 1.00 kgkg, and block BB has mass 3.00 kgkg. The blocks are compressed with a spring SS between them; then the system is released from rest on a level, frictionless surface. The spring, which has negligible mass, is not fastened to either block and drops to the surface after it has expanded. The spring has force constant 720 N/mN/m and is...
You have two carts, a force probe connected to a computer, a motion detector, and an...
You have two carts, a force probe connected to a computer, a motion detector, and an assortment of objects of different masses. Design three experiments to test whether momentum is a conserved quantity. Describe carefully what data you will collect and how you will analyze the data.
There are two alternative machines for a manufacturing process. Both machines have the same output rate,...
There are two alternative machines for a manufacturing process. Both machines have the same output rate, but they differ in costs. Machine A costs $20,000 to set up and $8,000 per year to operate. It must be completely replaced every 3 years, and it has no salvage value. Machine B costs $50,000 to set up and $2,160 per year to operate. It should last for 5 years and has no salvage value. The costs of two machines are shown below....
Your clients, David and Charlene Thomas, (David is 65 and Charlene is 45) have hired you...
Your clients, David and Charlene Thomas, (David is 65 and Charlene is 45) have hired you to complete their 2017 tax return (2017 tax year). They wish to pay the minimum amount of taxes possible in this tax year. Disregard AMT; BUT DO CONSIDER ALL OTHER available credits). They have provided you with the following information.          General information They reside in Austin, Texas at 555 Lookout Dr., zip 78725. Their SS numbers are 111-11-1111 and 222-22-2222 respectively. They provide...
Suppose you have a connected network of two-way streets. Show that you can drive along these...
Suppose you have a connected network of two-way streets. Show that you can drive along these streets so that you visit all streets and you drive along each side of every street exactly once. Further, show that you can do this such that, at each intersection, you do not leave by the street you first used to enter that intersection unless you have previously left via all other streets from that intersection
You have been asked to evaluate two machines. The benefits from ownership are identical. Machine A...
You have been asked to evaluate two machines. The benefits from ownership are identical. Machine A costs $300 to buy and install, lasts for 5 years, and costs $160 per year to operate. Machine B costs $500, lasts for 7 years, and costs $120 per year to operate. Both machines have zero salvage value. Assuming that this is a one-time acquisition, which machine do you recommend if the cost of capital is 15%? A. Machine A, the PV is $163...
3.         Lisa and David have been married for two years. They have just decided that summer...
3.         Lisa and David have been married for two years. They have just decided that summer of 2022 should be spent in Switzerland. They figured out that in order to meet the cost of the entire vacation they would only have to dedicate what they already have in their saving account now ($ 5,859.37) for that vacation, keeping their regular monthly saving during the next two years for different purposes. Given that the annual compound interest rate is 8.5%, how...
Consider two machines both of which have an exponential lifetime with rate λ. There is a...
Consider two machines both of which have an exponential lifetime with rate λ. There is a single repairman that can service machines at an exponential rate μ. – Set up the Kolmogorov backward equations in the matrix format P′(t) = RP(t). You do not need to solve the system. – Find the proportion of time that 0, 1, or 2 machines are down
In your garden, you have a hose with a radius of 3 cm connected to a...
In your garden, you have a hose with a radius of 3 cm connected to a sprinkler with twelve openings, each of which has a radius of 0.2 cm. The sprinkler openings are aimed 25• above the horizon, and the water travels a distance of 4 m before hitting your flowers. a) What is the exit velocity at the sprinkler openings? b) What is the flow rate of the sprinkler? c) What must the water pressure in the hose be?
If you find that everyone you test passes the posture test (perceiving that they have perfect...
If you find that everyone you test passes the posture test (perceiving that they have perfect posture) you need to go one step farther. Observe the person in everyday activity. How does the person stand while waiting for something? Does the person slouch? Is the person tilting the pelvis or rounding the shoulders? Perfect posture is quite rare; be sure your assessment is thorough.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT