Tanenbaum sections 1.3, 1.4
The Trivial File Transfer Protocol contains 5 types of PDUs.
PDU means protocol data unit
- the generic term unit of data exchanged in any protocol [OSI]
RFC 1350 TFTP Revision 2 July 1992
Appendix
TFTP Formats
Type Op # Format without header
2 bytes string 1 byte string 1 byte
---------------------------------------------
RRQ/ | 01/02 | Filename | 0 | Mode | 0 |
WRQ ---------------------------------------------
2 bytes 2 bytes n bytes
---------------------------------
DATA | 03 | Block # | Data |
---------------------------------
2 bytes 2 bytes
-------------------
ACK | 04 | Block # |
--------------------
2 bytes 2 bytes string 1 byte
----------------------------------------
ERROR | 05 | ErrorCode | ErrMsg | 0 |
----------------------------------------
The exchange of PDUs follows sequences defined by the protocol.
For example
client RRQ *ACK.1 *ACK.2
\ / \ / \
\ / \ / \
\ / \ / \
\ / \ / \
server * DATA.1 * DATA.2 *
client WRQ *DATA.1 *
\ / \ /
\ / \ /
\ / \ /
\ / \ /
server *ACK.0 *ACK.2
Some of the functions required for client and server to communicate over an internetwork:
Combining these and many other functions into one mass of software is very difficult.
The software functions are best structured in layers.
The OSI reference model defines 7 layers.
Fig 12.1 from Comer Computer Networks and Internets.
Each layer has a well defined function.
The layer boundaries are chosen to minimise information flow across the boundaries.
A layer is used where a different level of abstraction is required.
Transmit stream of bits over one link: volts, microseconds
- includes electrical/mechanical interfaces to comms media.
Data-flow division into frames; error detection and recovery, flow control.
Form and route packets across internetworks between host computers (understand addresses); manage congestion.
Transparent, reliable transfer of data between multiple endpoints - truly end to end.
OSI lower layers
OSI upper layers
Session administration of "conversation"; managing "turns"; checkpoint recovery.
Enabling exchange of data with possibly different endpoint representations.
Support for application services; remote procedure call; file transfer, email exchange, virtual terminals etc.
The implementation of a combination of particular protocols on a particular computer is called a protocol stack.
Internetworking requires a short stack of lower layers at the intermediate gateway computers between networks.
They may provide protocol translation as well as routing.
The OSI reference model and the 7 layers are rarely used in practice.
The alternative model is derived from the earlier implementation of the Dept of Defense (USA) ARPANET
Called

Chris Johnson
Last modified: Tue Mar 30 11:25:57 EST 1999
Queries to : infs2052.iwaki.anu.edu.au