Internet History Fun Facts

OSI Model

The OSI (Open Systems Interconnection) model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven abstraction layers. Each layer in the OSI model performs specific functions, and together they facilitate communication between different systems. Here’s a brief overview of what each layer does:

1. Physical Layer (Layer 1):

2. Data Link Layer (Layer 2):

3. Network Layer (Layer 3):

4. Transport Layer (Layer 4):

OSI Model in a network

1. Physical Layer (Layer 1):
Layer 1

Layer 1 is how devices transmit information to each other (ethernet, network adaptors)

When we send information, we send it “physically” hence the name physical layer

2. Data Link Layer (Layer 2):

When we send information, we send it in binary, frames are the units of binary data, they are the information we send from one device to another (in the same network network)

For example, if i want to send the message “Hello” to my brother on the same network, the frame will be sent within the network to the corresponding MAC address(Media Access Control) address, sometimes referred to as a hardware or physical address, is a unique, 12-character alphanumeric attribute that is used to identify individual electronic devices on a network.

Frames can only be sent on the same network

A switch is a fundamental networking device that operates at the Data Link Layer (Layer 2) of the OSI model. Its primary function is to connect devices within the same local area network (LAN) and facilitate communication between them. Here’s how switches work and why they are crucial in network setups:

Layer 2

3. Network Layer (Layer 3):

Layer 3

If I wanted to play Valorant with a friend, I would need to connect to the WiFi, why?

Unlike frames, my friend is not on the same network as me, which means MAC Addresses aren’t enough to locate the device so they cannot communicate with eachother

So we need to identify Hanlun Li on a specific network, how do we do that? IP addresses

IP Addresses are supposedly a unique identifier for each device on the network, to access a seperate device on the network, we must give a destination IP address.

Packets are basically just frames, but with an IP address included in them

4. Transport Layer (Layer 4):
Layer 4 Layer 4

Layer 4 has two protocols UDP and TCP, you can think of it as UDP you just spam packets to the other network without acknowledgement whereas TCP you need to acknowledge everything sent to the other network.

In other words, TCP is slower but more reliable, while UDP is faster but less reliable

For example:

If I’m sending an important email to my boss, I would use TCP because I wouldn’t want the data to be corrupted or lost.

But, If I’m playing a FPS game, I would use UDP because I need speed to load in whats happening within the game

Application Layer (Layer 7) The Application Layer is the topmost layer in the OSI (Open Systems Interconnection) model, which is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven abstraction layers. The Application Layer (Layer 7) is the layer closest to end-users and provides network services directly to applications.

  1. HTTP (Hypertext Transfer Protocol):
  2. HTTPS (Hypertext Transfer Protocol Secure):
  3. FTP (File Transfer Protocol):
  4. DNS (Domain Name System):
  5. SSH (Secure Shell):

1. Physical Layer (Layer 1) Example:

Key Terms: Ethernet

Data Link Layer (Layer 2) Example:

Switches

Network Layer (Layer 3) Example:

Routers - How frames are encapsulated into packets IPV4 Addresses/IPV6 Addresses - Unique Identifiers on Internet

Transport Layer (Layer 4) Example:

Transport Layer (Layer 4) - TCP vs. UDP

TCP (Transmission Control Protocol)

UDP (User Datagram Protocol)

TCP and UDP are two different approaches to data transport, each suited to specific application requirements. The choice between them depends on the priorities of the application: reliability (TCP) or speed (UDP).

Multiple-Choice Questions (MCQs):

  1. What does the Data Link Layer (Layer 2) focus on in a network?
  2. Which device operates at the Data Link Layer and uses MAC addresses for forwarding frames?
  3. In networking, what does a MAC address uniquely identify?
  4. What is the main function of switches in a network?
  5. Which layer of the OSI model deals with physical transmission, like Ethernet and network adaptors?
  6. What does Layer 3 (Network Layer) use for unique device identification between different networks?
  7. Which protocol operates at Layer 4 and ensures reliable communication by acknowledging data receipt?
  8. What is the main difference between UDP and TCP in Layer 4?
  9. In a network, what does the Transport Layer manage?
  10. Why would you choose UDP over TCP for a real-time application like online gaming?

ANSWER KEY ƃuᴉssǝɹppɐ ʅɐɔᴉsʎɥԀ .q :ɹǝʍsu∀ ɥɔʇᴉʍS .ɔ :ɹǝʍsu∀ ʞɹoʍʇǝu ǝɯɐs ǝɥʇ uo sǝɔᴉʌǝᗡ .ɐ :ɹǝʍsu∀ ƃuᴉpɹɐʍɹoⅎ ǝɯɐɹᖵ .q :ɹǝʍsu∀ (⇂ ɹǝʎɐ⅂) ɹǝʎɐ⅂ ʅɐɔᴉsʎɥԀ .q :ɹǝʍsu∀ sǝssǝɹppɐ ԀI .ɐ :ɹǝʍsu∀ (ʅoɔoʇoɹԀ ʅoɹʇuoϽ uoᴉssᴉɯsuɐɹꓕ) ԀϽꓕ .ɔ :ɹǝʍsu∀ .ʇ╻usǝop ԀᗡՈ ǝʅᴉɥʍ ʻʇdᴉǝɔǝɹ ɐʇɐp sǝƃpǝʅʍouʞɔɐ ԀϽꓕ .ɔ :ɹǝʍsu∀ sʞɹoʍʇǝu uǝǝʍʇǝq ʍoʅⅎ ɔᴉⅎⅎɐɹꓕ .ɔ :ɹǝʍsu∀ .uoᴉʇɐɔᴉunɯɯoɔ ɹǝʇsɐⅎ sǝpᴉʌoɹd ԀᗡՈ .ɔ :ɹǝʍsu∀

HW: Answer all HW questions with a line of reasoning WILL BE GRADED ON ACCURACY AND REASONING

Question 1

As stated, the data link layer consists of the communications sent between networked devices, so it should focus on network flow and routing. The answer is C.

Question 2

As stated, network coordination in this layer is conducted by switches. The answer is C.

Question 3

MAC addresses identify specific devices in a network. The answer is A.

Question 4

Switches facilitate routing within a local network. The answer is D.

Question 5

Physical links, as is logical, belong with the physical layer. The answer is B.

Question 6

Between different networks, devices are identified by IP addresses. The answer is A.

Question 7

As stated in the examples, TCP requires the receiver to acknowledge all packet transmissions. The answer is C.

Question 8

TCP confirms all packet transmissions while UDP sends an uninterrupted stream of packets without confirmation. The answer is C.

Question 9

As stated, transport layer handles data transfer between a sender and receiver across a network. The answer is C.

Question 10

UDP, though packet loss can occur, is much faster since you do not need to wait for confirmation. The answer is C.