0

As I understand it:

A switch (layer 2) seems to define a LAN and a router (layer 3) enables communication between distant LANs.

A device on a LAN will give it's MAC address to the switch upon broadcast, which passes it off to the router to assign an IP address to that connection before sending its message across the internet to the router of the distant LAN. So the message travels across the physical layer (layer 1) and reaches the destination router (layer 3) which converts the recipient IP address into a MAC address for the switch (layer 2) so the correct device receives it.

I am confused about the picture(s) I painted above -- it seems that the OSI model is out of sequence. We move from layers 1 to 3 to 2. What am I missing? Can the OSI model occur out of sequence?

8
  • The OSI model is just a model, and nothing in the real world has actually implemented it. The IP Services model is much closer to reality, but your understanding of what actually happens is flawed. See the above linked question and answers for a detail of what really happens.
    – Ron Maupin
    Oct 19 '20 at 14:03
  • @RonMaupin What it the "IP Services model"? Do you mean TCP/IP Protocol Stack?
    – Albin
    Oct 19 '20 at 18:40
  • @Albin, the TCP/IP name is misleading because it also applies to protocols other than TCP. It revolves around IP, and it can use any of the transport protocols, such as TCP, UDP, SCTP, etc.
    – Ron Maupin
    Oct 19 '20 at 18:49
  • Ah, ok, but "IP Services model" is not an "official" term, right? (I couldn't find it anywhere but your comments)
    – Albin
    Oct 19 '20 at 19:28
  • @Albin, I believe I got that from Vint Cerf (the father of IP) at a Global IPv6 conference,
    – Ron Maupin
    Oct 19 '20 at 20:42