TFTP
-
Upload
akshay-thakur -
Category
Documents
-
view
554 -
download
0
description
Transcript of TFTP
![Page 1: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/1.jpg)
Akshay Thakur
1
![Page 2: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/2.jpg)
TFTP Usage and DesignTransfer files between processes.
Minimal overhead (no security).
Designed for UDP, although could be used with many transport protocols.
2
![Page 3: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/3.jpg)
TFTP Usage and Design (cont.)Easy to implement
Small - possible to include in firmware
Used to bootstrap workstations and network devices.
3
![Page 4: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/4.jpg)
Diskless Workstation Booting 1The call for help
4
DisklessWorkstation
Help! I don't know who I am!My Ethernet address is:4C:23:17:77:A6:03
RARP
![Page 5: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/5.jpg)
5
The answer from the all-knowing
DisklessWorkstation
I know all! You are to be know as: 128.113.45.211
RARP REPLY
RARPServer
![Page 6: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/6.jpg)
6
DisklessWorkstation
I need the file named boot-128.113.45.211
TFTP Request (Broadcast)
The request for instructions
![Page 7: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/7.jpg)
7
The dialog
DisklessWorkstation
TFTP File Transfer
TFTPServer
here is part 1
I got part 1
here is part 2
boot file
![Page 8: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/8.jpg)
TFTP Protocol5 message types:
Read requestWrite requestDataACK (acknowledgment)Error
8
![Page 9: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/9.jpg)
MessagesEach is an independent UDP Datagram
9
![Page 10: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/10.jpg)
TFTP Error Codes (16 bit int)0 - not defined1 - File not found2 - Access violation3 - Disk full4 - Illegal TFTP operation5 - Unknown port6 - File already exists7 - No such user
10
![Page 11: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/11.jpg)
TFTP transfer modes“netascii” : for transferring text files.
all lines end with \r\n (CR,LF).provides standard format for transferring text files.both ends responsible for converting to/from netascii
format.“octet” : for transferring binary files.
no translation done.
11
![Page 12: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/12.jpg)
NetAscii Transfer ModeUnix - end of line marker is just '\n'
receiving a file you need to remove '\r' before storing data.
sending a fileyou need to replace every '\n' with "\r\n" before sending
12
![Page 13: TFTP](https://reader031.fdocuments.in/reader031/viewer/2022020217/5491e81eb479594c728b459e/html5/thumbnails/13.jpg)
Thank You…!
13