Lesson 2
Lesson 2
TRANSMISSION
2 Network Models
Concept of protocol layering
Two principles for the protocol layering
Simple communication:
Simple protocol
Complex communication:
Divide the task between different layers
Protocol layering
3
Scenario 1
Simple communication:
Occurring in only one layer
Face to face in the same language
4
Scenario 1
Rules:
Greeting each other when they meet
Confining their vocabulary to level of their friendship
Refraining from speaking when the other party is speaking
Being a dialog, not a monolog
Exchanging some nice words when they leave
5
Scenario 2
More complex communication:
Maria and Ann are very far from each other
Continue their communication and exchange ideas, using regular mail
through the post office
Requirement: Their ideas are not revealed by other people
Solution:
Using an encryption/decryption technique
Taking place in three layers with three machines on each side
6
Scenario 2
7
Protocol layering
Enabling to divide a complex task into several smaller and
simpler tasks
Modularity: independent layers to do separate tasks
A layer (module): defined as a black box with inputs and outputs
Advantages:
Enabling to separate services from implementation
Internet: requiring intermediate systems that need only some layers, but
not all layers
8
Principles of Protocol Layering
Principle 2:
Two objects under each layer at both sites should be identical
Example: Objects at both sites should be
Layer 3: plaintext letter
Layer 2: ciphertext letter
Layer 1: piece of mail
9
Logical Connections
10
TCP/IP PROTOCOL SUITE
Definition:
A set of protocols organized in different layers
A hierarchical protocol: interactive modules, each of which provides a
specific functionality
11
TCP/IP PROTOCOL SUITE
12
Layered Architecture
13
TCP/IP Protocol Suite > Logical connections
14
TCP/IP Protocol Suite > Logical connections
Duty of each layer:
End-to-end: application, transport, and network layers
Hop-to-hop: data-link and physical layers
Domains of duty: internet and link
15
TCP/IP Protocol Suite > Identical objects
16
TCP/IP Protocol Suite > Identical objects
17
Description of Each Layer
Physical Layer
Data-link Layer
Network Layer
Transport Layer
Application Layer
18
Description > Physical Layer
Responsible for carrying individual bits in a frame across the link
Data-link Layer:
Responsible for taking the datagram and moving it across the link
A link-layer switch: wired/wireless LAN, wired/wireless WAN
Taking a datagram and encapsulates it in a packet called a frame
Different service protocols, e.g., complete error detection and correction
20
Description > Network Layer
Responsible for creating a connection between the source
computer and the destination computer
Several routers from the source to the destination
Routers in the path: choosing the best route for each packet
Network-layer tasks:
Host-to-host communication
Routing the packet through possible routes
Separating the tasks: fewer protocols on the routers
Main protocol: Internet Protocol (IP) defines
Format of the packet, called a datagram
Format and the structure of addresses
Responsible for routing a packet from its source to its destination
21
Description > Transport Layer
Logical connection: End-to-end
Transport layer at the source host:
Getting the message from the application layer
Encapsulating the message: a segment or a user datagram
Sending the message through the logical (imaginary) connection
Separating from end-to-end application layer
Main protocol: Transmission Control Protocol (TCP)
Connection-oriented protocol
Establishing logical connection between transport layers at two hosts
Providing flow control, e.g., matching sending with receiving data rate
Supporting error and congestion control
Others: UDP and SCTP
22
Description > Application Layer
Communication between two processes (two programs)
A process sends a request to the other process and receives a response
Process-to-process communication
24
Source Host: Encapsulation
Datagram
Segment /
User datagram
Frame
25
Router: Decap. And Encap.
Datagram
Frame 26
Destination Host: Decapsulation
Segment /
User datagram
Datagram
Frame
27
Addressing
28
Addressing
29
Multiplexing
30
Demultiplexing
31
THE OSI MODEL
International Organization for Standardization (ISO)
OSI model
Purpose: to facilitate communication between different systems
Not a protocol
A model for understanding and designing a network architecture
32
THE OSI MODEL
33
OSI versus TCP/IP
34
Lack of OSI Model’s Success
35