Chapter 2
Chapter 2
Faculty of
Computer and
Information
Sciences
Information Technology
Department
Computer Networks Fundamentals
IT 221 T
1.3
2.1 PROTOCOL LAYERING
1.4
2.1 PROTOCOL LAYERING
2.1.1 SCENARIOS
Communication between Maria and Ann takes place in one layer, face to face, in the same language
1.5
2.1 PROTOCOL LAYERING
A layer (module): is a black box with inputs and outputs without concerns
about the conversion of inputs to outputs.
A layer needs to be able to receive a set of services from the lower
layer and to give the services to the upper layer.
1.7
2.1 PROTOCOL LAYERING
1.8
2.1 PROTOCOL LAYERING
First Principle:
Each layer is able to perform two opposite tasks, one in each direction.
Example:
3rd layer task is to talk (in one direction) and listen (in other
direction),
2nd layer task encrypt (in one direction) and decrypt (in other
direction),
1st layer send and receive email.
1.9
2.1 PROTOCOL LAYERING
Second Principle
Two objects under each layer at both sites should be identical.
Example:
1.10
2.1 PROTOCOL LAYERING
1.12
2.2 TCP/IP PROTOCOL SUITE
1.13
2.2 TCP/IP PROTOCOL SUITE
a link-layer switch is involved only in one data-link and one physical layer.
1.14
2.2 TCP/IP PROTOCOL SUITE
1.15
2.2 TCP/IP PROTOCOL SUITE
1.16
2.2 TCP/IP PROTOCOL SUITE
1.17
2.2 TCP/IP PROTOCOL SUITE
1.18
2.2 TCP/IP PROTOCOL SUITE
Data-link Layer
Data-link layer is responsible for taking the datagram and moving it across the
link.
Data-link layer takes a datagram and encapsulates it in a packet called a frame.
Link layer address.
Data-link layer is responsible for hop-to-hop delivery.
1.19
2.2 TCP/IP PROTOCOL SUITE
Network Layer
Network layer is responsible for creating a connection between source computer
and the destination computer.
Network layer is responsible for host-to-host communication and routing the
packet through possible routes.
Routers in the path are responsible for choosing the best route for each packet.
1.20
2.2 TCP/IP PROTOCOL SUITE
Network Layer
IP (Internet Protocol) is responsible for routing a packet from its source
to its destination.
IP is a connectionless protocol.
A routing protocol creates forwarding tables for routers to help them in
the routing process.
1.21
2.2 TCP/IP PROTOCOL SUITE
Network Layer
The Network layer has some protocols that help IP in its delivery and
routing tasks.
*IP is a connectionless protocol that provides no flow control, no error control, and
no congestion control services.
The net- work layer also includes unicast (one-to-one) and multicast (one-to-many)
routing pro- tocols.
1.22
2.2 TCP/IP PROTOCOL SUITE
Transport Layer
The Transport layer is responsible for giving services to the application
layer.
We have more than one protocol in the Transport layer, which means that
each application programs can use the protocol that best matches its
requirement.
1.23
2.2 TCP/IP PROTOCOL SUITE
1.24
UDP TCP
Advantages Advantage
Less overhead in the connection
established.
Lower delay in the connection Connection oriented; that first establishes
established. a logical connection between transport
Disadvantages layers at two hosts before transferring
1-It is a connectionless protocol that data.
transmits user datagrams without first Provides flow control, error control, and
creating a logical connection. congestion control.
2-No flow control ,no error control Disadvantage
Connection overhead
Connection Delay
1.25
2.2 TCP/IP PROTOCOL SUITE
Application Layer
Communication at the Application layer is between two processes (two
programs running at this layer).
Process-to-process communication is the duty of the Application layer.
The two Application layers exchange messages between each other as
though there were a bridge between two layers.
Application Responsibility
Network virtual terminal
File transfer, access, and management
Mail services
Directory services
1.26
2.2 TCP/IP PROTOCOL SUITE
1.27
2.2 TCP/IP PROTOCOL SUITE
1.28
EXPLAIN Encapsulation at the Source Host?
1.29
2.2 TCP/IP PROTOCOL SUITE
2.2.5 ADDRESSING
1.30
2.2 TCP/IP PROTOCOL SUITE
2.2.5 ADDRESSING
1.31
Physical adress (link layer
Logical address Port address Specific address or names
address)
1.32
1.33
2.2 TCP/IP PROTOCOL SUITE
1.34
2.3 THE OSI MODEL
1.35
2.3 THE OSI MODEL
1.36
2.3 THE OSI MODEL
1.37
2.3 THE OSI MODEL
responsibilities
•Dialog control
•Synchronization
1.38
2.3 THE OSI MODEL
1.39
2.3 THE OSI MODEL
1.40
2.3 THE OSI MODEL
First, OSI model was completed when TCP/IP was fully in place;
changing it would cost a lot.
Second, some layers in OSI model were never fully defined.
Third, OSI did not show a high enough level of performance to
switch from TCP/IP protocol suite to the OSI model.
1.41
1.42
Reference
Chapter 2
THANK YOU