If I send a file using TCP protocol to a destination in some other country how does it get delivered? For example - Looking at the basic OSI Model,

Application
Presentation
Session
Transport
Network
Data Link Layer
Physical

What happens when it leaves the physical layer? Where does the file data go, i.e. How does it travel to the destination?

link|improve this question
7  
Okay, now we've already had these two today: Data transmission using TCP/IP, and How does data travel through telephone line?. Can we please stop this? – slhck Jan 13 at 0:03
TCP is not a file transfer protocol, it is a transport/session layer protocol. – Paul Jan 13 at 0:03
To stress it again: This question is off topic — it does not solve any practical problem, it does not show research effort, and from the looks of it, it's been asked by the OP two times before. – slhck Jan 13 at 0:05
2  
@Fredrick please do some research and ask specific questions when you get stuck. This question is asking for an essay. – Paul Jan 13 at 0:06
@slhck: Those doesn't seem very helpful but thanks. – Fredrick Jan 13 at 0:32
show 2 more comments
feedback

closed as off topic by slhck, Paul, Simon Sheehan, RedGrittyBrick, haimg Jan 13 at 0:53

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

1 Answer

First, the OSI model has different layers than TCP/IP model; TCP/IP model has just four layers, that is:

  • application layer (this is your application)
  • transport layer (this is where TCP or UDP comes to play, that's where you need port number)
  • internet layer (this is where IP comes to play, that's where you need IP address)
  • link layer (I imagine this as "the cables", but it is probably wrong)

The way I wrote it, every layer uses the layer "below" it to do its tasks.

Now, the concept of "files" is only in application layer. Application sends the file using TCP segments - but the segments themselves don't "know" the rest of the file. The TCP layer then uses IP packets to get to the other computer. And the IP packets need to go to the target computer somehow, so that's where you use Ethernet.

However, the lower layers don't really know they are sending "a file", they are just sending some data; what exactly are those data is up to the application layer.

I hope I was clear (and correct)

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.