Chapter 01 Introduction
Chapter 01 Introduction
( CS 3022)
(15/30/55)
Text Book:
1. Computer Networks by Andrew S. Tanenbaum 5th edition
2. Data and Computer Communications, 10th edition, William Stallings
3. Computer Networks: A Systems Approach, 4th Edition Larry L.Peterson, Bruce
S. Davie.
Course Aim:
Theory
Summative: Written examination (65%)
Formative: Continuous assessments tests/ quizzes/ MCQ / Viva (35%);
Practical
Summative: Lab test (65%)
Formative: Continuous assessments tests /Home Assignment (35%)
Note:
The final marks will be calculated as (1/2) × Lecture + (1/2) × Practical.
Introduction
What is a Computer Network?
A Computer network is a collection of computers
and communications hardware and software linked
together to allow sharing of resources and provide a
facility for communication.
Components of a network
MAN
Different kinds of networks
Printer
Printer
Peers
All computers on the network communicate and
share resources directly with one another.
Client-server LAN
Print
File Server server
Clients Printer
Easy to add to it
It is easy to set-up and extend bus network.
Cable length required for this topology is the least
compared to other networks.
Bus topology costs very less.
Linear Bus network is mostly used in small networks.
Good for LAN.
Fault tolerance
Disadvantages of Bus Topology
A
B
c
Token Passing
Token contains a piece of information which along with data is
sent by the source computer. This token then passes to next
node, which checks if the signal is intended to it. If yes, it
receives it and passes the empty to into the network, otherwise
passes token along with the data to next node. This process
continues until the signal reaches its intended destination.
The nodes with token are the ones only allowed to send data.
Other nodes have to wait for an empty token to reach them. This
network is usually found in offices, schools and small buildings.
Advantages of Ring Topology
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical
Division of Layers
7. Application
6. Presentation
Upper Layers
5. Session
3. Network
2. Data Link
Lower Layers
1. Physical
The Function of a Layer
• Each layer deals with one aspect of
networking
▫ Layer 1 deals with the communication media
• Each layer communicates with the adjacent
layers
▫ In both directions
▫ Ex: Network layer communicates with:
Transport layer
Data Link layer
• Each layer formats the data packet
▫ Ex: Adds or deletes addresses
Role of Layers
Node A
7. Application
6. Presentation
Data In
To/from
1. Physical Node B
Data Out
Communication Between Layers
7. Application
Data
Encapsulation
6. Presentation
Data
Stripping
5. Session
7. Application Layer
• This provides a mechanism for applications to
access the services provided by OSI environment
for the users.
• Purpose
▫ User application to network service interface
• Examples
▫ File request from server
▫ E-mail services
▫ etc.
6. Presentation Layer
The presentation layer performs:
• Data Reformatting
• Encryption
• Compression
Purpose
▫ Formats data for exchange between points of
communication
5. Session Layer
• The session layer establishes, manages, and
terminates user connections. A session is an
exchange of message between computers. It
synchronizes user tasks.
• Purpose
▫ Oversee a communication session
Establish
Maintain
Terminate
4. Transport Layer
• The transport layer controls the flow of data. It
ensures that message is delivered error free. It divides
large message into small packets for efficient
transmission.
• Purpose
▫ Repackage proper and efficient delivery of packages
Error free
In sequence
Without duplication
Services:
1. Connection oriented service
2. Connection less service
3. Network Layer
• The network layer is responsible for
establishing, maintaining and terminating
network connections. It manages the delivery of
data form source to destination.
• Purpose
▫ Addressing and routing the packets
• Example application at the router
▫ If the packet size is large, splits into small packets
2. Data Link Layer
• The data link layer is responsible for the reliability of the physical link
established at layer 1. Data link must decide the following:
1 Framing: The data link layer divides the stream of bits into manageable
data units called frames.
2 Flow Control: The rate of sending data can be more than the of
receiving data link layer imposes flow control
mechanism to prevent it.
3 Errors Control: The data link layer detects and retransmits damaged
or lost frames. It also prevents the duplication of
frames.
4 Access Control: If two or more devices are connected to the same link,
data link layer determines which device has control
over the link at a given time.
• Purpose
▫ Manages the flow of data over the physical media
▫ Responsible for error-free transmission over the physical media
▫ Assures error-free data submission to the Network Layer
1. Physical Layer
The physical layer is the bottom layer of the OSI model. It transmits stream of
bits and defines how the data is transmitted over the network and what control
signals are used. Its main function is to control how stream of bits is send and
received over the physical medium. Physical layer must decide the following:
1 Characteristic of Media: The physical layer defines the characteristics
and type of transmission medium.
2 Representation of Bits: The bits are encoded into electrical signals for
transmission.
3 Data Rate: physical layer defines the number of that will be sent in each
second.
4 Transmission Mode: The physical layer defines the direction of
transmission between two devices: simple, half-duplex or
full-duplex.
• Purpose
▫ Deals with the transmission of 0s and 1s over the physical media
Translation of bits into signals
53
• Bottom layers
▫ Support for physical connectivity, frame formation,
encoding, and signal transmission
• Middle layers
▫ Establish and maintain a communication session
between two network nodes
▫ Monitor for error conditions
• Uppermost layers
▫ Application/software support for interpretation,
presentation, and encryption of data.
54