Are ports/sockets considered layer 4?

m00ndoggm00ndogg Posts: 25Member ■□□□□□□□□□
What layer are ports and sockets?
Smooth sailing!
~~~ _/) ~~~~

"...it's not my boat, it's my boss' boat..." (Capt. Ron)

Comments

  • fmitawapsfmitawaps Posts: 261Banned
    I assume you mean the ports / sockets of a router that connect to the internet or other routers?

    I don't know.
  • SlowhandSlowhand MCSE: Cloud Platform and Infrastructure, MCSA: Windows Server 2003/2012/2016, CCNA Routing & Switchi Bay Area, CaliforniaPosts: 5,163Mod Mod
    TCP and UDP ports live on layer 4 of the OSI model, but sockets get a little trickier. I've seen put them on layer 4 or layer 5, depending on who you listen to. Just keep in mind that the OSI and DOD models are not concrete rules for how networking technologies function and sometimes things don't fit neatly into the layers.

    You can also try Googling where you'd put physical NICs: on layer 1 or layer 2. That's a debate that turns colorful in a hurry.

    Free Microsoft Training: Microsoft Learn
    Free PowerShell Resources: Top PowerShell Blogs
    Free DevOps/Azure Resources: Visual Studio Dev Essentials

    Let it never be said that I didn't do the very least I could do.
Sign In or Register to comment.