Five Layer Software Model Overview

image

image

image


Sending message

image

Receiving message

image


Summary

image

Ref: https://microchipdeveloper.com/tcpip:tcp-ip-five-layer-model

Application Layer (Layer 5)

image

Read more at https://microchipdeveloper.com/tcpip:common-tcp-ip-applications (Awesome resource)

Transport Layer (Layer 4)

The first duty of a transport-layer protocol is to provide process-to-process communication. A process is an application-layer entity (running program) that uses the services of the transport layer.

The network layer is responsible for communication at the computer level (host- to-host communication). A network-layer protocol can deliver the message only to the destination computer. However, this is an incomplete delivery. The message still needs to be handed to the correct process. This is where a transport-layer protocol takes over. A transport-layer protocol is responsible for delivery of the message to the appropriate process.

image

More details * The local host and the remote host are defined using IP addresses. * To define the processes, we need second identifiers, called **port numbers**. In the TCP/IP protocol suite, the port numbers are integers between 0 and 65,535 (16 bits). * The client program defines itself with a port number, called the ephemeral port number. The word ephemeral means “short-lived” and is used because the life of a client is normally short. An ephemeral port number is recommended to be greater than 1023 for some client/server programs to work properly. * The server process must also define itself with a port number. This port number, however, cannot be chosen randomly. If the computer at the server site runs a server process and assigns a random number as the port number, the process at the client site that wants to access that server and use its services will not know the port number. TCP/ IP has decided to use universal port numbers for servers; these are called **well-known port numbers**. Every client process knows the well-known port number of the corresponding server process. Communication using Port numbers image image A transport-layer protocol in the TCP suite needs both the IP address and the port number, at each end, to make a connection. The combination of an IP address and a port number is called a **socket address**. Whenever an entity accepts items from more than one source, this is referred to as multiplexing (many to one); whenever an entity delivers items to more than one source, this is referred to as demultiplexing (one to many). The transport layer at the source performs multiplexing; the transport layer at the destination performs demultiplexing. Three client processes are running at the client site: P1, P2, and P3. The processes P1 and P3 need to send requests to the corresponding server process running in a server. image ---

The header added to messages by the Transport layer includes more than just the source and destination port numbers. Here we are showing all the information included in TCP and UDP headers.

Note how the TCP protocol requires more information and overhead to guarantee data delivery.

image

TCP

TCP tries to give a datagram some of the characteristics of a virtual circuit network. The TCP layer will send sequence numbers along with each packet of data, buffer received data in memory so they can be presented to the application in order, acknowledge received packets, and request a retransmission of missing or corrupt packets.

UDP

image

Network Layer (Layer 3)

image

image

All hosts that have an IP address also have a MAC (Media Access Controller) address. Unlike IP addresses which are virtual, MAC addresses are fixed hardware based addresses that never change.

This layer uses a Media Access Controller (MAC) to generate the frames that will be transmitted. As the name suggests, the MAC controls the physical transmission media.

Summary

We can consider the data-link layer as two sublayers.

Data-link control (DLC) deals with the design and procedures for communication between two adjacent nodes: node-to-node communication. This sublayer is responsible for framing and error control. Error control deals with data corruption during transmission.

image

Ethernet and WiFi Frame Format

As you probably guessed, the Data Link layer adds more than just the source and destination MAC addresses to the packet.

Note that the MAC for Ethernet and WiFi are different and generate different frames.

image

Physical Layer (Layer 1)

It sends and receives signals on the physical wire or antenna to transmit the bits found in frames.

There is a PHY found at the end of every network interface (e.g. end of wire or antenna).

Summary

image

image

image

image

Data Communications and Networking by Forouzan

The computer with logical address A and physical address 10 needs to send a packet to the computer with logical address P and physical address 95.

image

The physical addresses(MAC address) will change from hop to hop, but the logical addresses(IP address) usually(there are some exceptions to this rule) remain the same.

image

image

Ref: https://people.cs.rutgers.edu/~pxk/417/notes/pdf/01c-networking-slides.pdf” category: “networking” —

7 Layer vs 5 layer

image

Goal

Goal: Enable computers to communicate with each other; create the machine-to-machine and process-to-process communication channels.

image


Five Layer Software Model Overview

image


image

image


Sending message

image

Receiving message

image


Summary

image

Ref: https://microchipdeveloper.com/tcpip:tcp-ip-five-layer-model

Application Layer (Layer 5)

image

Read more at https://microchipdeveloper.com/tcpip:common-tcp-ip-applications (Awesome resource)

Transport Layer (Layer 4)

The first duty of a transport-layer protocol is to provide process-to-process communication. A process is an application-layer entity (running program) that uses the services of the transport layer.

The network layer is responsible for communication at the computer level (host- to-host communication). A network-layer protocol can deliver the message only to the destination computer. However, this is an incomplete delivery. The message still needs to be handed to the correct process. This is where a transport-layer protocol takes over. A transport-layer protocol is responsible for delivery of the message to the appropriate process.

image

More details * The local host and the remote host are defined using IP addresses. * To define the processes, we need second identifiers, called **port numbers**. In the TCP/IP protocol suite, the port numbers are integers between 0 and 65,535 (16 bits). * The client program defines itself with a port number, called the ephemeral port number. The word ephemeral means “short-lived” and is used because the life of a client is normally short. An ephemeral port number is recommended to be greater than 1023 for some client/server programs to work properly. * The server process must also define itself with a port number. This port number, however, cannot be chosen randomly. If the computer at the server site runs a server process and assigns a random number as the port number, the process at the client site that wants to access that server and use its services will not know the port number. TCP/ IP has decided to use universal port numbers for servers; these are called **well-known port numbers**. Every client process knows the well-known port number of the corresponding server process. Communication using Port numbers image image A transport-layer protocol in the TCP suite needs both the IP address and the port number, at each end, to make a connection. The combination of an IP address and a port number is called a **socket address**. Whenever an entity accepts items from more than one source, this is referred to as multiplexing (many to one); whenever an entity delivers items to more than one source, this is referred to as demultiplexing (one to many). The transport layer at the source performs multiplexing; the transport layer at the destination performs demultiplexing. Three client processes are running at the client site: P1, P2, and P3. The processes P1 and P3 need to send requests to the corresponding server process running in a server. image ---

The header added to messages by the Transport layer includes more than just the source and destination port numbers. Here we are showing all the information included in TCP and UDP headers.

Note how the TCP protocol requires more information and overhead to guarantee data delivery.

image

TCP

TCP tries to give a datagram some of the characteristics of a virtual circuit network. The TCP layer will send sequence numbers along with each packet of data, buffer received data in memory so they can be presented to the application in order, acknowledge received packets, and request a retransmission of missing or corrupt packets.

UDP

image

Network Layer (Layer 3)

image

image

All hosts that have an IP address also have a MAC (Media Access Controller) address. Unlike IP addresses which are virtual, MAC addresses are fixed hardware based addresses that never change.

This layer uses a Media Access Controller (MAC) to generate the frames that will be transmitted. As the name suggests, the MAC controls the physical transmission media.

Summary

We can consider the data-link layer as two sublayers.

Data-link control (DLC) deals with the design and procedures for communication between two adjacent nodes: node-to-node communication. This sublayer is responsible for framing and error control. Error control deals with data corruption during transmission.

image

Ethernet and WiFi Frame Format

As you probably guessed, the Data Link layer adds more than just the source and destination MAC addresses to the packet.

Note that the MAC for Ethernet and WiFi are different and generate different frames.

image

Physical Layer (Layer 1)

It sends and receives signals on the physical wire or antenna to transmit the bits found in frames.

There is a PHY found at the end of every network interface (e.g. end of wire or antenna).

Summary

image

image

image

image

Data Communications and Networking by Forouzan

The computer with logical address A and physical address 10 needs to send a packet to the computer with logical address P and physical address 95.

image

The physical addresses(MAC address) will change from hop to hop, but the logical addresses(IP address) usually(there are some exceptions to this rule) remain the same.

image

image

Ref: https://people.cs.rutgers.edu/~pxk/417/notes/pdf/01c-networking-slides.pdf