Lecture-17++
Lecture-17++
1
Basic Concepts
➢ For successful communication, two systems must follow a common set of rules for
generating and interpreting messages
➢ The set of rules to be followed is very complex
➢ Layered approach provides a viable approach to deal with a complex problem
➢ The communication functions are partitioned into a hierarchical set of layers
Layered Approach
➢ A complex problem is divided into a number of pieces of manageable and comprehensible
size
➢ It provides structured modular approach
➢ Each module can be developed and tested independently
➢ Allows easy enhancement and implementation of the functions of a particular layer without
affecting other layers
2
Layers and Interfaces
➢ System interconnection rules are modularized in terms of a series of layers of functions, say N
layers
➢ Each layer contains a group of related functions
➢ A layer below Layer N and a Layer above Layer N are Layer (N-1) and Layer (N+1), respectively
➢ Between each pair of adjacent layers there is an interface
➢ Interface defines which primitive services the lower layer offers to the upper layer
➢ Layer N provides service to the Layer (N+1) through service access points
➢ Each layer adds value to the services provided by lower layers
User A User B
Layer N protocol Layer N Layer N
➢ Quality of Service
▪ Confirmed
▪ Unconfirmed
5
Tasks involved in sending a letter
THE OSI MODEL
➢ Established in 1947, the International Standards Organization (ISO) is a multinational body
dedicated to worldwide agreement on international standards.
➢ An ISO standard that covers all aspects of network communications is the Open Systems
Interconnection (OSI) model. It was first introduced in the late 1970s.
ISO is the organization.
OSI is the model.
Responsibility of
The Host
Responsibility of
The Network
Seven layers of
the OSI model 6
The interaction between layers in the OSI model
Physical Layer
The physical layer is responsible for movements of individual bits from one hop (node) to the next.
The data link layer is responsible for moving frames from one hop (node) to the next.
➢ This layer transforms the physical layer to a
reliable transmission/reception of a structured
stream. The following functions are included:
▪ Framing
▪ Physical Addressing
▪ Synchronization
▪ Error Control
▪ Flow Control
▪ Character/bit-oriented
8
Hop-to-hop delivery ▪ Media Access Control – ALOHA, CSMA, etc.
Network layer
The network layer is responsible for the delivery of
individual packets from the source host to the destination
host.
9
Source-to-destination delivery
Transport layer
➢ Responsible for End-to-End communication:
▪ Quality of service required by the session
layer
▪ Port Addressing
▪ Multiplexes end-user addresses onto
network
▪ Segmentation and Reassembly
The transport layer is responsible for the delivery of ▪ Connection Control
a message from one process to another.
▪ Monitors quality of service
▪ End-to-end error detection/recovery
▪ Multiplexing
▪ Flow control
11
Presentation layer
12
Application layer
➢ Concerned with user applications
➢ Common Application Service Elements
(CASE) - login, password checks
➢ Specific Application Service Elements
(SASE)
➢ File transfer, access and management
➢ Job transfer and Manipulation
➢ Electronic mail
➢ Videotex, Teletex, Telefax, tec.
The application layer is responsible for providing
services to the user. ➢ Message handling
➢ Document Transfer
13
Summary of layers
14
TCP/IP PROTOCOL SUITE
➢ The layers in the TCP/IP protocol suite do not exactly match those in the OSI model.
➢ The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet,
transport, and application.
➢ However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of
five layers: physical, data link, network, transport, and application.
ICMP: Internet control message protocol
IGMP: Internet Group message protocol
RARP: Reverse Address Resolution
Protocol
ARP: Address Resolution Protocol
SCTP: Stream Control Transmission
TCP/IP and Protocol
OSI model TCP: Transmission Control Protocol
UDP: User Datagram Protocol
SMTP: Simple Mail Transfer Protocol
FTP: File Transfer Protocol
HTTP: Hypertext Transfer Protocol
DNS: Domain Name System
SNMP: Simple Network Management
Protocol
TELNET: Telecommunications Network
15
ADDRESSING
Four levels of addresses are used in an internet employing the TCP/IP protocols: physical, logical,
port, and specific.
Addresses in TCP/IP
Relationship of layers
and addresses in TCP/IP
16
Physical Address Example
EX 1. In Figure a node with physical address 10 sends a frame to a node with physical address 87. The two
nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address
10 is the sender, and the computer with physical address 87 is the receiver.
Physical addresses
Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte
(2 hexadecimal digits) is separated by a colon, as shown below:
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
➢ The first 24 bits of a MAC address XX : XX: XX is decided by OUI (Organizationally Unique
Identifier). It represents the identity of the manufacturer.
➢ The next 24 bits of a MAC address YY : YY : YY represents the unique identity of the device. It is
assigned by the manufacturer. 17
Logical Address Example
EX 2: Figure shows a part of an internet
with two routers connecting three LANs.
Each device (computer or router) has a pair
of addresses (logical and physical) for each
connection. In this case, each computer is
connected to only one link and therefore has
only one pair of addresses. Each router,
however, is connected to three networks
(only two are shown in the figure). So each
router has three pairs of addresses, one for
each connection.
18
Difference Between Physical Address and Logical Address
Physical Address Logical Address
Logical address also referred to as IP
Physical Address is the address of a node
(Internet Protocol) address is an universal
which is defined by its LAN or WAN
addressing system
19
Port Address Example
EX 3: Figure shows two computers
communicating via the Internet. The sending
computer is running three processes at this time
with port addresses a, b, and c. The receiving
computer is running two processes at this time
with port addresses j and k. Process a in the
sending computer needs to communicate with
process j in the receiving computer. Note that
although physical addresses change from hop to
hop, logical and port addresses remain the same
from the source to destination.
The physical addresses will change from hop to hop, but the logical addresses usuallyPort addresses
remain the same.
753
A 16-bit port address represented as one single number.
20
Difference Between IP Address and Port Number
IP Address Port Number
Internet Protocol address (IP address) used Port number is used to identify an
to identify a host in network. processes/services on your system
IPv4 is of 32 bits (4 bytes) size and for IPv6 is The Port number is 16 bits numbers.
128 bits (16 bytes).
IP address is the address of the layer-3 IP Port number is the address of the layer-4
protocol. protocols.
IP address is provided by admin of system Port number for application is provided by
or network administrator. kernel of Operating System.
ipconfig command can be used to find IP netstat command can be used to find
address . Network Statistics Including Available TCP
Ports.
IP address identify a host/computer on a Port numbers are logical interfaces used by
computer network. communication protocols.
192.168.0.2, 172.16.0.2 are some of IP 80 for HTTP, 123 for NTP, 67 and 68 for
address examples. DHCP traffic, 22 for SSH etc.
21
Difference Between OSI Model and TCP/IP Model
OSI Model TCP/IP Model
Delivery Delivery of the package is guaranteed in OSI Model Delivery of the package is not guaranteed in TCP/IP Model
Replacement Replacement of tools and changes can easily be done in this model Replacing the tools is not easy as it is in OSI Model
Reliability It is less reliable than TCP/IP Model It is more reliable than OSI Model
Error Handling Built into Data Link and Transport layers Built into protocols like TCP