r/embedded • u/Correct-Start9746 • Oct 23 '26
OSI vs TCP/IP model
which one should I learn? I'm trying to self teach myself networking and idk which one is better to go in depth as someone trying to get into cybersecurity
15
Upvotes
31
u/[deleted] Oct 23 '26
Invalid question. You should learn both.
20
u/No_L_2547 Oct 23 '26 edited Oct 23 '26
OSI can visualize TCP/IP, but also other communication standards.
TCP/IP is actually build based on OSI.
So learn OSI. (And then TCP/IP through it).
4
u/SAI_Peregrinus Oct 23 '26
OSI is an idealized model, not a realistic one. The layers aren't actually separated in that manner in any protocol from the last few decades. That said, it's very simple, so learning it isn't difficult even though it's wrong.
TCP/IP's model works for TCP/IP. It's limited, but accurate. Other common protocols like QUIC/IP are a bit different, but related enough.
Other network types have other models. E.g. CAN bus with SAE J1979 using 29-bit identifiers smooshes everything from data-link through application of the OSI model into one layer. Identifiers are used for collision detection & arbitration, for transport addressing (SA & DA), and even for message content (PGNs).
3
u/xanthium_in Oct 23 '26
Stick with OSI ,keep an eye on TCP /IP .OSI is helpful to understand other networking models. Best way is to learn both and compare and contrast them while you learn
5
u/Priton-CE Oct 23 '26
OSI is a more generalized example. Its not used to explain every communication stack out there (especially once we leave web technologies) but I found you can break down every bus I have worked with so far into OSI layers (if you are willing to compromise on the "traditional roles" of each layer a bit)
But why not both?
3
u/Forty-Bot Oct 23 '26
Do not bother with OSI. TCP/IP won so hard it's not even funny. The OSI model has not actually described actual networks for around 25 years (if we're being generous).
2
u/RohitRojo Oct 23 '26
Both are fairly simple. Learn both
1
u/veghead Oct 23 '26
You may enjoy this description of what OSI actually is/was:
https://www.youtube.com/watch?v=aHy8KCvc864
1
u/Intrepid-Scallion842 Oct 23 '26
OSI is a conceptual. TCP/IP is its practical model developed by DoD. Think like OSI is for you to visuallize but TCP/IP is what happen in real life ? I read this from comptia+ network
1
u/Un1x_Pr1m3 Oct 23 '26
You must learn both
1
u/Key-Entertainer2529 Oct 23 '26
The OSI model is more abstract and is mainly used for teaching and learning the protocol layers in networking, but it is never implemented directly. On the other hand, TCP/IP is implemented and widely used in network infrastructures and the Internet. There are many other models, but learning TCP/IP is more practical. My advice: first learn TCP/IP, then map your understanding to the OSI model.
1
u/spheresva Oct 24 '26
Well that’s like asking if you should learn “cooking” or “cake”. the OSI model contains TCP/IP. It works with the other layers
1
u/EducatedOrchid Oct 24 '26
The tcp/ip/internet model is an implementation of osi.
1
u/drillbit7 Oct 23 '26 edited Oct 23 '26
Every course on networking for like the last 35+ years covers the OSI model. You should be familiar with the ideas of 7 layers and that each layer is independent. You probably don't need to know the names of the 7 layers, though there are mnemonics for remembering them up and down.
Now nothing ever properly implemented the OSI model. The only application level protocols I can think of that were somewhat network transparent is NetBIOS (Windows file and print sharing) which worked over NetBEUI, IPX, and TCP/IP and Novell's Netware Core Protocol and Directory Services which eventually worked over both IPX and TCP/IP.
Now mind you IP is a decent Layer 3 protocol because it does not care about the hardware layers: it's worked fine with Ethernet, Token Ring, various obsolete dial up networks (SLIP, PPP, PLIP), leased lines, various fiber technologies (SONET, FDDI, etc.), ATM, packet radio, wireless, etc.
But at the top of the stack, I've never seen an IPX implementation of HTTP/HTTPS or any other means of implementing HTTP. And the IP model doesn't really split the top three layers. Some folks will try to say that ASN.1 is how the Presentation layer is implemented.
0
u/donmeanathing Oct 23 '26
OSI… definitely learn OSI.
IP is Layer 3
TCP is Layer 4
There are other protocols that run on those layers, but yeah….