What is OSI Model | Real World Examples — Transcript
Full transcript
- 0:07How is data sent over the internet?
- 0:09What does that have to do with the OSI model?
- 0:11How does TCP/IP fit into this?
- 0:14Let’s take a look.
- 0:16The OSI model, or the Open Systems Interconnect model,
- 0:19is a theoretical framework that provides one way of thinking about networking.
- 0:24It splits the network communication between two
- 0:27devices on a network into seven abstraction layers.
- 0:31The physical layer is the bottom-most layer.
- 0:34It is responsible for transmitting raw bits of data across a physical connection.
- 0:39The data link layer is the second layer. It takes the raw bits from
- 0:43the physical layer and organizes them into frames.
- 0:47It ensures that the frames are delivered to the correct destination.
- 0:50The Ethernet primarily lives in this layer.
- 0:55The network layer is the third layer.
- 0:57It is responsible for routing data frames across different networks.
- 1:01The IP part of TCP/IP is a well-known example of this layer.
- 1:06The transport layer is the fourth layer.
- 1:09It handles end-to-end communication between two nodes.
- 1:12This is the layer where TCP and UDP live.
- 1:16TCP provides reliable, end-to-end communication between devices.
- 1:21It does this by dividing the data into small,
- 1:23manageable segments and sending each segment individually.
- 1:28Each segment has a sequence number attached to it.
- 1:30The receiving end uses the sequence numbers to reassemble the data in the correct order.
- 1:36TCP also provides error checking to make sure that the data was not corrupted during transmission.
- 1:43UDP is another popular protocol in the transport layer.
- 1:46It is similar to TCP, but it is simpler and faster.
- 1:51Unlike TCP, UDP does not provide the same level of error-checking and reliability.
- 1:57It simply sends packets of data from one device to another.
- 2:00The receiving end is responsible for determining whether the packets were received correctly.
- 2:05If an error is detected, the receiving end simply discards the packet.
- 2:10The remaining layers are the session, presentation, and application layers.
- 2:15This is where the OSI model loses its usefulness in practice.
- 2:18They are too fine-grained and do not really reflect reality.
- 2:23In general, it is sufficient to collapse them into a single
- 2:27layer and consider application protocols like HTTP as simply layer 7 protocols.
- 2:34Let’s go through an example and examine how data
- 2:36moves through the layers when transmitting over the network.
- 2:40When a user sends an HTTP request to a web server over the network,
- 2:44the HTTP header is added to the data at the application layer.
- 2:50Then, a TCP header is added to the data.
- 2:53It is encapsulated into TCP segments at the transport layer.
- 2:57The header contains the source port, destination port, and sequence number.
- 3:02The segments are then encapsulated with an IP header at the network layer.
- 3:07The IP header contains the source and destination IP addresses.
- 3:11A MAC header is added at the data link layer, with the source and destination MAC addresses.
- 3:17It is worth noting that in the real world this is a bit nuanced.
- 3:20The MAC addresses are usually not the MAC address of the sending and receiving ends.
- 3:26They are the MAC address of the routing devices in
- 3:29the next hop of a usually long journey across the internet.
- 3:35The encapsulated frames are sent over the network in raw bits in the physical layer.
- 3:39When the web server receives the raw bits from the network, it reverses the process.
- 3:44The headers are removed layer by layer,
- 3:46and eventually, the web server processes the HTTP request.
- 3:51To conclude, the OSI model is one way of thinking about networks.
- 3:55Its primary purpose is educational.
- 3:57Even though the layers don’t fit the real-world use cases perfectly,
- 4:01they are still widely used by networking vendors and cloud providers as a shorthand
- 4:07to describe where their networking products sit in the OSI model.
- 4:11For example, cloud load balancers are broadly divided into two categories - L4 or L7.
- 4:18An L7 load balancer is a shorthand to mean that the load balancer operates at
- 4:23the application protocol layer like HTTP or HTTPS.
- 4:27An L4 load balancer, on the other hand, operates at the TCP level.
- 4:32If you’d like to learn more about system design, check out our books and weekly newsletter.
- 4:38Please subscribe if you learned something new.
- 4:40Thank you so much, and we’ll see you next time.
About this transcript
This page contains the full transcript of What is OSI Model | Real World Examples by ByteByteGo, generated from the public captions YouTube serves with the video. The transcript has 708 words across 67 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.