Data Communication Lecture 2
Data Communication Lecture 2
Network Models
1. Layered Tasks
2. The OSI Model
3. Layers in the OSI Model
4. TCP/IP Protocol Suite
5. Addressing
2-1
Layered Model: Sending a Letter
2-2
OSI Model
• ISO is the organization. OSI is the model
2-3
Interaction between layers in the OSI model
• Layer and interface
2-4
An exchange using the OSI model:
Encapsulation
5
An exchange using the OSI model
6
An exchange using the OSI model
• Encapsulation with header and possibly trailer
2-7
Physical Layer
• The physical layer is responsible for movements of individual bits
from one hop (node) to the next
• Mechanical and electrical specification, the procedures and functions
2-8
Physical Layer: Duties
• Physical characteristics of interfaces and media
• Representation of bits
• Encoded into signals – electrical or optical
• Data rate
• Synchronization of bits
• Line configuration
• Physical topology
• Transmission mode
2-9
Data Link Layer
• The data link layer is responsible for moving frames from
one hop (node) to the next
• Transform the physical layer to a reliable (error-free) link
2-10
Data Link Layer: Duties
• Framing
• Physical addressing
• Flow control
• Error control
• Access control
2-11
Hop-to-Hop Delivery
2-12
Network Layer
• The network layer is responsible for the delivery of packets
from the source host to the destination host
2-13
Network Layer: Duties
• Logical addressing and routing
2-14
Transport Layer
• The transport layer is responsible for delivery of a message
from one process to another
2-15
Transport Layer: Duties
• Service-point (port) addressing
• Segmentation and reassembly
• Connection control
• Flow control
• Error control
2-16
Reliable Process-to-Process Delivery of a Message
2-17
Session Layer
• Session layer is responsible for dialog control and
synchronization
2-18
Presentation Layer
• Presentation layer is responsible for translation,
compression, and encryption
2-19
Application Layer
• Application layer is responsible for providing services to
the user
2-20
Application Layer: Services
2-21
Summary of Layers
2-22
TCP/IP and OSI Model
2-23
TCP/IP Protocol Suite
• Host-to-network : Physical and data link layer
• No specific protocol
• Network layer
• IP(Internet Protocl), ARP(Address Resolution Protocol),
RARP(Reverse ARP), ICMP(Internet Control Message Protocol),
IGMO(Internet Group Message Protocol)
• Transport layer
• TCP(Transmission Control Protocol), UDP(User Datagram
Protocl), SCTP(Stream Control Transmission Protocol),
• Application Layer
• Combined session, presentation, and application layers
2-24
OSI vs TCP/IP model
• TCP/IP model given prior to OSI model (in 1970s)
• OSI model would be better – not the case in real world
afterwards
• TCP/IP protocol suite became the dominant commercial
architecture because it was used and tested extensively in
the Internet
• Big companies operated only on the TCP/IP suite
• Hence OSI was never fully implemented – thus the lack of
success of the OSI model
2-25
Addressing
• Four levels of addresses in TCP/IP protocols
• Physical (link), logical (IP, network), port, and specific addresses
2-26
Relationship of Layers and
Addresses
2-27
Physical Address
• 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.
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
2-28
Logical (IP) Address
• The physical addresses will change from hop to hop, but the logical
addresses usually remain the same 2-29
Port Address
• The physical addresses change from hop to hop, but the logical and
port addresses usually remain the same
2-30
Port address
2-31
Specific Address
• Some application have user-friendly addresses that are designed for that
specific address
• Example 1: e-mail address: [email protected]
• Defines the recipient of an e-mail
• Example 2: URL (Universal Resource Locator) : www.cse.univdhaka.edu
• Used to find a document on the WWW
2-32
TCP/IP Protocol
VERSIONS and Addressing
33
Versions:
• Version 4 (current): 32-bit IP
address
• Version 5
• Version 6 (in promotion): 128-bit
IP address
34
IP Addresses:
Classful Addressing
An IP address is a
32-bit
address.
The IP addresses
are
unique.
One IP address points to one computer.
But a computer may have many IP addresses.
Address Space
…………..
addr1 …………..
addr15
addr2 ………….. …………..
…………..
addr41 addr226
addr31
………….. …………..
RULE:
…………..
addr1 …………..
If a protocol uses N bits to
addr15
define an…………..
addr2 address, …………..
N
the address space is 2
…………..
because each bitaddr41
can have addr226
two
addr31
different values (0 and
………….. 1)
…………..
and N bits can have 2N values.
The address space of IPv4 is
232
or
4,294,967,296.
Binary Notation
0x75951DEA
Example 1
Solution
129.11.11.239
Example 2
Solution
Solution
Solution
In dotted-decimal notation,
each number is less than or
equal to 255; 301 is outside this range.
Example 4
Solution
0X810B0BEF or 810B0BEF16
CLASSFUL
ADDRESSING
In classful addressing,
the address space is
divided into five classes:
A, B, C, D, and E.
Figure 4-3
Solution
Solution
Solution
Solution
4-61
The number of addresses in
a class C block
is smaller than
the needs of most organizations.
Class D addresses
are used for multicasting;
there is only
one block in this class.
Solution
Solution
Solution
2-69