Computing
Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Lesson Video

69

Lesson Tasks

  • Watch the Lesson video
    Make notes if needed.
  • Open your Learning Journal
    Complete Task 1 in your Learning Journal
  • Complete the learning activities
    Make sure you complete the book tasks in your Unit Booklet
  • Complete End of Task Assessment
    Update your learning objectives

What do I need to Learn?

0 results forGuest
I need to learn how to describe the 4 layers of the TCP/IP model: application layer, transport layer, internet layer, link layer
I need to learn how to understand that the HTTP, HTTPS, SMTP, IMAP and FTP protocols operate at the application layer.
I need to learn how to understand that the TCP and UDP protocols operate at the transport layer.
I need to learn how to understand that the IP protocol operates at the internet layer

Key Terms

Ethernet RJ45 connector Application Layer Transport Layer Network Layer Data Link Layer fiber-optic

Task 1 - The TCP-IP protocol model Click to see more


The TCP-IP protocol model

Network Layers

Networks are very complicated in the way they work. There are physical parts to them, such as the cables and wires, and there is also software. To make the process simpler a standard was created which splits up the different functions of a network into layers.

The TCP/IP model and the Data Link / Network Access Layer

To transport data across a large network, such as a WAN, the data may travel across lots of different connections. These connections are called links because they ‘link’ the devices together. Each type of link has a different frame structure, and uses different addresses and protocols.

The process of encapsulating data, transporting it across a link, and decapsulating at the end of the link, is repeated time and time again as the data makes its journey.

Animation showing data being encapsulated and decapsulated as it traverses several links.

The ‘special envelope’ analogy

Imagine a world in which we send letters by placing them in different kinds of envelopes for different transportation systems (i.e. types of links); the addresses we write on the envelopes only get the envelope across a particular section of the transportation system.

  • The transport system between houses and post offices uses white envelopes. The only things that can be written on white envelopes is a house number, a street, and the name of a local post office.

  • The transport system between post offices use red envelopes. The only things that can be written on red envelopes are the names of post offices.

  • The sender writes a letter with the full address of the person they want to send it to.
  • They then place it in a white envelope, just addressed to the local post office.
  • The post office opens the envelope to look at the full address at the top of the letter to see where it is going. It then puts the letter back in a new red envelope addressed to the next post office.
  • This may repeat through several post offices.
  • When the letter gets to a post office that recognises the full address as being local, it puts the letter in a white envelope addressed the destination house and the street.

At each stage, the envelope is in the correct wrapper for that section of the journey and just has the local addresses to get it across that section or link.

Note that unlike what it looks like here, the post offices don’t get to read the contents of our letter - more on this later in the course.


Task 2 - The Data Link Layer Click to see more


How does this connect to real world networks? How do we transport data across one link?

  1. The data to be transported comes from the sender’s network layer. This is the part of a device’s network operating system that deals with external communications — you will learn more about it next week.
  2. The data must be encapsulated in a frame, converted into the appropriate electrical, wireless, or optical signal for the type of transmission media, and finally transmitted via the media.
  3. When the data is received, this process is reversed: the signal is decoded, and the data is decapsulated from the frame and passed to the receivers’ network layer.

We refer to the set of processes above as part of the data link layer. This is a combination of software and hardware built into the network interface card (NIC) or network adapter. A modern computer typically has three separate data link layer for Ethernet, wireless, and Bluetooth, and switches in the appropriate layer as needed.

In the part of a device’s operating system that deals with networking, the data link layer sits between the network layer and the physical connectors that connect the device to the transmission media.

Representing the Data Link Layer

The data link layer in action

You may be imagining that the data link layer on one device communicates directly with the data link layer on another device. However, the connection is via the physical media.

  • The network layer in one device wants to send some data to the network layer in another device, across some type of connection.

An animation of the Network Layer in one device sending some data to the Network Layer in another device

  • On the sending device, the network layer passes the data to the appropriate data link layer. This layer encapsulates the data to create a frame, and passes the frame to the media.

An animation. Data from the network layer on the first device is passed down to the data link layer. A frame from this device goes to the data link layer on a second device, and data is passed up from this data link layer to the network layer.

  • The final part of the data link layer converts the bits of the frames into the electrical, wireless, or optical signals that are sent along the link medium.

  • When the frame is received, the receiving device’s data link layer decapsulates the data from the frame and passes it up to the receiver’s network layer.

Animation showing the data being encapsulated into a frame, this frame transmitted as a signal over the transmission media, and the data being decapsulated in the second device.

We say that the data link layer is providing a service to the network layer by transporting its data in frames across the link.


Task 3 - The Network Layer Click to see more


In the same way the data link layer provides a service to the network layer by transporting its data in frames, the network layer also provides a service to the transport layer by transporting its data.

  1. One device’s transport layer wants to send some data to the equivalent transport layer on a distant device.

  2. The transport layer uses the services of the network layer to transport the data inside IP packets.

  3. The network layer uses the services of the data link layer to transport the IP packets as frames across the local links. In practice this involves intermediary devices (e.g. routers) that check each IP packet’s destination address and choose the next link.

  4. The data link layers connect to the media and transmit the frames as bits encoded into electrical, optical, or electromagnetic (wireless) signals. If the media is Ethernet, a switch will be involved.

The journey of the data from one Transport Layer to the Transport Layer on a distant device, via a switch.


Task 4 - The Transport Layer Click to see more


The transport layer identifies the type of data being transported. It offers two protocols, depending on the need for reliable or unreliable delivery. It is the connection between the network and application layers.

Reliable delivery uses the transmission control protocol (TCP) and creates TCP segments. It’s typically used when re-transmission delays are acceptable. TCP is a connection-orientated protocol, meaning the two ends require a connection to keep track of the numbers of each sent IP packet.

Unreliable delivery uses the User Datagram Protocol (UDP) and creates UDP datagrams. It’s typically used for real-time audio and video. UDP is a connectionless protocol, meaning data is sent to the destination with no additional dialogue.


Task 5 - The application Layer Click to see more


The top layer of the TCP/IP stack is not the transport layer, where TCP resides, it’s the application layer.

Protocols such as HTTP, FTP, SMTP, POP, and IMAP are all application layer protocols.

The application uses the services of the TCP/IP model to encapsulate its message in various layers of protocols. Ultimately, the data is transferred over the media to the internet.

Task 6 - Book Task Click to see more

Tasks:

Open your student workbook at page 28 Complete the tasks in your book.
  1. Task 14 & 15

  • When you are finished screenshot your answer into your Learning Journal

  • Task 7 - End of Task Assessment Click to see more

    Task 8 - Revision Tasks Click to see more