Question

In: Computer Science

For each state below, spell out plausible responses for a TFTP receiver upon receipt of a...

For each state below, spell out plausible responses for a TFTP receiver upon receipt of a Data[N] packet. Your answers may depend on N and the packet size. Indicate the events that cause a transition from one state to the next. The TFTP states were proposed in 16.4.2   TFTP States.

(a). UNLATCHED

(b). ESTABLISHED

(c). DALLYING

Example: upon receipt of an ERROR packet, TFTP would in all three states exit.

Solutions

Expert Solution

I would like to answer this to my best interpretation of the qquestion. Please let me know if I misunderstood your question.

Whenever a receiver client sends a read request message (RRQ), initially it has no knowledge about the port from which the sender will send the packet. We will call this state UNLATCHED. It will remain in this state until he is aware of the correct port from which the sender will send the packets. Then after sometime, let's suppose, it receives a packet from the sender. It will then check whether that packet looks like a Data[1] packet, i.e, it is from the sender's IP address. It will also check if it has the length of a Data[N] packet and whether it's block number is 1 or not.

Only after confirming all these things will it go into the next state called the ESTABLISHED state. When in an ESTABLISHED state, the receiver continues to receive all the packets and for each packet, it confirms whether it is coming from the correct sender's port or not. If it receives any packet from some other port number, then it sends it back with an errror message and continues with it's original transfer.

You can consider the above process (ESTABLISHED state) as a loop which goes on until a packet marking the end of data is received. Once the last packet is received, the receiver transitions into the DALLY (or DALLYING) state.

I've tried to answer this question in a easier yet informative way. Please give it a like if this helps you.


Related Solutions

(TCOB) State taxation of out-of-state businesses is based upon establishment of "minimum contacts." Describe the theory...
(TCOB) State taxation of out-of-state businesses is based upon establishment of "minimum contacts." Describe the theory of minimum contacts and explain how that theory affects whether or not a state can tax goods sold or services rendered.
Determine the oxidation state for each of the elements below. The oxidation state of ... iodine...
Determine the oxidation state for each of the elements below. The oxidation state of ... iodine ... in ... diiodine pentoxide I2O5 ... is ... ___ . The oxidation state of sulfur in sulfur trioxide SO3 is __ The oxidation state of bromine in bromine trifluoride BrF3 is ___.
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function. 
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function. 
For each graph below, state whether it represents a function.
For each graph below, state whether it represents a function.
For each of the scenarios below: a) state why evolution is occurring b) state whether mutation,...
For each of the scenarios below: a) state why evolution is occurring b) state whether mutation, natural selection, genetic drift or gene flow appears to be the mechanism of evolution c) and describe why you picked a particular mechanism of evolution Scenario 1: Researchers have been studying an isolated, small population of wolves (fewer than 30 individuals) on Isle Royale in Lake Superior for the past 30 years. This year they find that there are only 16 individuals left in...
Q9. For each of the following chemical and physical changes carried out at constant pressure, state...
Q9. For each of the following chemical and physical changes carried out at constant pressure, state whether work is done by the system on the surroundings or by the surroundings on the system, or whether the amount of work is negligible. State whether process or reaction is endothermic or exothermic. A.benzene (l) → benzene (g)   B. ½ N2(g) + 3/2 H2(g) → NH3(g) ΔH = -92 kJ/mol C. 2NH4NO3(s) → 2N2(g) + 4H2O(g) + O2(g) + heat D. H2(g) +...
Q9. For each of the following chemical and physical changes carried out at constant pressure, state...
Q9. For each of the following chemical and physical changes carried out at constant pressure, state whether work is done by the system on the surroundings or by the surroundings on the system, or whether the amount of work is negligible. State whether process or reaction is endothermic or exothermic. A.benzene (l) → benzene (g)   B. ½ N2(g) + 3/2 H2(g) → NH3(g) ΔH = -92 kJ/mol C. 2NH4NO3(s) → 2N2(g) + 4H2O(g) + O2(g) + heat D. H2(g) +...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT