Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH Lectures notes for 2010 - KTH

20.01.2014 Views

IP header UDP header 20 bytes 8 bytes IP datagram UDP datagram TFTP message opcode 1=RRQ 2=WRQ Filename opcode block 3=data number data 2 bytes 2 bytes 0-512 bytes opcode block 4=ACK number 0 Mode 0 opcode block 5=error number error message 0 Figure 2: TFTP messages (see Stevens, Vol. 1, figure 15.1, pg. 210) Filename and Mode (“netascii” or “octet”) are both N bytes sequences terminated by a null byte. Widely used for bootstrapping diskless systems (such as X terminals) and for dumping the configuration of routers (this is where the write request is used) Maguire Trivial File Transfer Procotol (TFTP) 4: 42 of 74 maguire@kth.se 2010.03.21 Internetworking/Internetteknik

Mapping names to IP addresses Host name: string “ccslab1.kth.se” Name Resolution: DNS IP address 32 bit 130.237.15.254 ARP RARP HW address: 48 bit Ethernet MAC address “08:00:2B:00:EE:0B” Figure 3: mapping between host names and IP address(es) Addr. Resolution Maguire Mapping names to IP addresses 4: 43 of 74 maguire@kth.se 2010.03.21 Internetworking/Internetteknik

IP header<br />

UDP<br />

header<br />

20 bytes 8 bytes<br />

IP datagram<br />

UDP datagram<br />

TFTP message<br />

opcode<br />

1=RRQ<br />

2=WRQ<br />

Filename<br />

opcode block<br />

3=data number data<br />

2 bytes 2 bytes 0-512 bytes<br />

opcode block<br />

4=ACK number<br />

0<br />

Mode<br />

0<br />

opcode block<br />

5=error number error message 0<br />

Figure 2: TFTP messages (see Stevens, Vol. 1, figure 15.1, pg. 210)<br />

Filename and Mode (“netascii” or “octet”) are both N bytes sequences terminated<br />

by a null byte.<br />

Widely used <strong>for</strong> bootstrapping diskless systems (such as X terminals) and <strong>for</strong><br />

dumping the configuration of routers (this is where the write request is used)<br />

Maguire Trivial File Transfer Procotol (TFTP) 4: 42 of 74<br />

maguire@kth.se <strong>2010</strong>.03.21 Internetworking/Internetteknik

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!