0% found this document useful (0 votes)
9 views

lecture 1

Uploaded by

Abdullah Abbasi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

lecture 1

Uploaded by

Abdullah Abbasi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Department of Electrical Engineering.

COMSATS University, Islamabad.

Data Communication and


Computer Networks
(CPE314)

Dr. Ahmad Naseem Alvi


Room#216
Communication
• The sharing of information from one party (source) to another
party (destination) is called communication. The word data refers
to information presented in whatever form is agreed upon by the
parties creating and using the data.
• Data communication is the exchange of data between two
devices via some form of transmission medium such as a wire
cable.

Data communication and Computer Networks 2


Components of Data Communication
Data communication composed of five components.
1. Message (Information)
2. Source (Sender)
3. Destination (Receiver)
4. Medium (wired or wireless)
5. Protocol (Set of rules that govern data communication like TCP,
FTP, UDP,HTTP etc)

Data communication and Computer Networks 3


Data communication and Computer Networks 4
NETWORKS

• A Computer network is a set of devices (often referred to as


nodes) connected by communication links/channels. A node can
be a computer, printer, or any other device capable of sending
and/or receiving data generated by other nodes on the network.

Data communication and Computer Networks 5


LAYERED TASK
• We use the concept of layers in our daily life. As an
example, let us consider two friends who
communicate through postal mail. The process of
sending a letter to a friend would be complex if there
were no services available from the post office.

Data communication and Computer


Networks 6
Task Involved in Sending a letter

Data communication and Computer


Networks 7
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.

Data communication and Computer


Networks 8
OSI MODEL
• An open system is a set of protocols that allows any
two different systems to communicate regardless of
their underlying architecture.
• Purpose of the OSI model is to show how to facilitate
communication between different systems without
requiring changes to the logic of the underlying
hardware and software.
• OSI model is not a protocol; it’s a model for
understanding and designing a network architecture
that is flexible, robust and interoperable.

Data communication and Computer


Networks 9
Note

ISO is the organization.


OSI is the model.

Data communication and Computer


Networks 10
SEVEN LAYER OF OSI MODEL

Data communication and Computer


Networks 11
The Interaction between layers in OSI Model

Data communication and Computer


Networks 12
An Exchange using OSI Model

Data communication and Computer


Networks 13
Physical Layer

Data communication and Computer


Networks 14
Physical Layer
• The physical layer is responsible for movements of individual bits
from one hop (node) to the next.
• It deals with the following :
• Physical characteristics of interfaces and medium.
• Representation of bits.
• Data rate.
• Synchronization of bits
• Line configuration
• Physical topology.
• Transmission mode.

Data communication and Computer Networks 15


Data Link Layer

Data communication and Computer


Networks 16
Data Link Layer
• The data link layer is responsible for moving
frames from one hop (node) to the next.
• Other Responsibilities:
• makes the physical layer appear error-free to the upper layer (network
layer)
• Framing.
• Physical addressing
• Flow control.
• Error control.
• Access control

Data communication and Computer


Networks 17
Hop-to-Hop Delivery

Data communication and Computer


Networks 18
Network Layer

Data communication and Computer


Networks 19
Network Layer
• The network layer is responsible for the
delivery of individual packets from
• the source host to the destination host.
• Other Responsibilities
• Logical addressing
• Routing.

Data communication and Computer


Networks 20
Source-to-Destination Delivery

Data communication and Computer


Networks 21
Transport Layer
• The transport layer is responsible for the delivery
of a message from one process to another.
• Process is an application program running on a host
• Other Responsibilities:
• Service-point addressing
• Segmentation and reassembly.
• Connection control
• Flow control.
• Error control

Data communication and Computer


Networks 22
Transport Layer

Data communication and Computer


Networks 23
Reliable process-to-process delivery of a message

Data communication and Computer


Networks 24
Session Layer
• The session layer is responsible for dialog
control and synchronization.
• It establishes, maintains, and synchronizes the interaction among
communicating systems.

• Other Responsibilities
• Dialog control
• Synchronization

Data communication and Computer


Networks 25
Session Layer

Data communication and Computer


Networks 26
Presentation Layer
• The presentation layer is responsible for the following functions.
• Translation
• Encryption.
• Compression.

Data communication and Computer


Networks 27
Presentation Layer

Data communication and Computer


Networks 28
Application Layer
• The application layer is responsible for
providing services to the user.
• Services:
• File transfer, access, and management
• Mail services
• Directory services

Data communication and Computer


Networks 29
Application Layer

Data communication and Computer


Networks 30
Summary of OSI Layers

Data communication and Computer


Networks 31
TCP/IP PROTOCOL SUITE
The TCP/IP protocol suite was developed prior to OSI. 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.

Data communication and Computer


Networks 32
TCP/IP and OSI Model

Data communication and Computer


Networks 33
Addresses in TCP/IP

Data communication and Computer


Networks 34
Relationship of Layers and addresses in TCP/IP

Data communication and Computer


Networks 35
Physical Address
Local Area Networks, LANs 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.


Data communication and Computer
Networks 36
Physical Addresses

Data communication and Computer


Networks 37
Logical Address
• Also Called IP (Internetworking Protocol) address.
• IP Address uniquely defines a host on the internet.
• IPv4 and IPv6
• IPv4 is 32-bit address

Data communication and Computer


Networks 38
IP Addresses

Data communication and Computer


Networks 39
Port Address
A port address is a 16-bit address represented by one decimal
number as shown.
753

A 16-bit port address represented


as one single number.

Data communication and Computer


Networks 40
PORT Addresses

Data communication and Computer


Networks 41
Note

The physical addresses change from hop to hop,


but the logical and port addresses usually remain the same.

Data communication and Computer


Networks 42
Specific Addresses

A specific address is a user-friendly address.


• Email Address.
• URL (Universal Resource Locator)

Data communication and Computer


Networks 43

You might also like