Haris Ghauri
Haris Ghauri

Reputation: 597

In the TFTP Client Server application, how does a UDP datagram modify the IP header?

I am building a TFTP(RC1350) application using Java. So far I have been able to make the successful transfers between two different computers whether its for a read request or a write request. As the RC1350 specification suggests, I specify the destination address and the port number by putting this information into a DatagramPacket.

Based on RC1350, the order of headers is the following:

      ---------------------------------------------------
     |  Local Medium  |  Internet  |  Datagram  |  TFTP  |
      ---------------------------------------------------

                  Figure 3-1: Order of Headers

And it also states "TFTP DOES NOT specify any of the values in the Internet header".

Since my TFTP application does not touch the IP header at all, than how does IP determine what to put as an address into an IP header?

Upvotes: 0

Views: 327

Answers (1)

user207421
user207421

Reputation: 311047

TFTP doesn't specify what's in the IP header, but that doesn't mean there's nothing in there.

UDP puts the source and destination ports in the UDP header, and IP puts the source and destination addresses in the IP header.

Upvotes: 1

Related Questions