Networking Basics: Dept. of Computer Science Faculty of Science and Technology
Networking Basics: Dept. of Computer Science Faculty of Science and Technology
Networking Basics: Dept. of Computer Science Faculty of Science and Technology
The purpose of the OSI model is to show how to facilitate communication between different
systems without requiring changes to the logic of the underlying hard ware and software. The OSI
model is not a protocol; it is a model for understanding and designing a network architecture that
is flexible, robust, and interoperable.
OSI Model cont.
OSI & TCP/IP Model
Application Layer
1. Application layer: The application layer of the OSI model provides the first
step of getting data onto the network.
1. Coding and conversion of application layer data to ensure that data from
the source device can be interpreted by the appropriate application on the
destination device
1. Logical Addressing
2. Encapsulation
3. Routing
4. Decapsulation
5. Error handling & Diagnostics
Data Link Layer
The data link layer transforms the physical layer, a raw transmission facility, to a reliable
link. It makes the physical layer appear error-free to the upper layer (network layer). Other
responsibilities of the data link layer include the following:
1. Framing: The data link layer divides the stream of bits received from the network layer
into manageable data units called frames.
3. Flow control: If the rate at which the data are absorbed by the receiver is less than the
rate at which data are produced in the sender, the data link layer imposes a Flow
control mechanism to avoid overwhelming the receiver.
Data Link Layer cont.
4. Error control. The data link layer adds reliability to the physical layer by adding mechanisms to
detect and retransmit damaged or lost frames. It also uses a mechanism to recognize duplicate
frames. Error control is normally achieved through a trailer added to the end of the frame.
5. Access control. When two or more devices are connected to the same link, data link layer
protocols are necessary to determine which device has control over the link at any given time.
Physical Layer
The OSI Physical layer provides the means to transport across the network media the
bits that make up a Data Link layer frame. This layer accepts a complete frame from the
Data Link layer and encodes it as a series of signals that are transmitted onto the local
media. The encoded bits that comprise a frame are received by either an end device or
an intermediate device.
The delivery of frames across the local media requires the following Physical layer
elements:
Application Layer
Only layer which interacts with users
applications
Takes data from users in sending end and
provide the data to user in the receiving end.
Protocols include HTTP, DNS, FTP, SMTP.
Implemented in source and destination devices Fig. 1Layers of TCP/IP protocol suite
Transport Layer
only
gets the message from the application layer, encapsulates it in a
segment and sends it, through the logical connection, to the transport
layer at the destination host.
Message delivery can be reliable but slow (TCP) or unreliable but fast
(UDP)
Provide port addressing to application layer programs
Overview of TCP/IP protocol suite...
Network Layer or Internet Layer
Require for communication between multiple networks
Introduces IP address , perform routing and congestion control
Encapsulate segment into a packet (called IP datagram)
Used in end devices and network layer devices (Router, PC, Layer 3
switch, etc.)
Protocols include IP ICMP, RIP, EIGRP, OSPF etc.
Data-link Layer
Require for communication inside a network
Introduces MAC address, perform error control and flow control
Encapsulating packet into frame
Used in all devices (PC, Router, Switch, Bridge) except hub & repeater
Protocols include ALOHA, CSMA, CSMA/CD, CSMA/CA
Overview of TCP/IP protocol suite….
Physical Layer
Accepts a complete frame from the Data Link layer and encodes it as
a series of signals that are transmitted onto the local media.
Specifies transmission media
Network physical topology [1]
Fig. 2 Encapsulation/Decapsulation
Connecting Devices
Repeater
Repeater
Layer 1 device that takes voltage from the line, amplifies the voltage, and
sends it down the line [3].
Used to extend a network beyond the maximum length of the cable
segment [2]
If there is any “noise” caused by electromagnetic interference on the wire,
it will also amplify the noise and send it [3].
The use of three repeater in a row results in an unusable signal
transmission because of extreme noise [3].
These devices are not in common use anymore; they have been replaced
by hubs, bridges, and switches.
Connecting Devices….
Repeater
switch/hub/bridge
Bridge
A layer 2 device
Used to connect devices of a
single network
It sends the received frame only
to the intended destination based
on the destination MAC address
of the frame.
Better bandwidth usage [3].
Unlike hub, it has error detection
capability
Limited ports (2-4, usually 2 Fig. 5 Filtering of a Bridge [2]
ports)
Connecting Devices….
Switch
Switch D E
A layer 2 device F
Used to connect devices of a single
network
Like a Bridge, it sends the received
frame only to the intended destination
based on the destination MAC address
of the frame.
Unlike hub, it has error detection Frame to F
capability
Hundreds of ports( 2 to more than 100) A B C
Frame forwarding decision is taken
based hardware, hence it is faster than Fig. 6 Filtering of a Switch [2]
bridge [4].
If you have a 10-Mpbs switch with
Connecting Devices….
Router
Router
A layer 3 device
Used to connect multiple networks
Connected networks can have different
protocols and speed.
Forward packets based on destination
IP address
Most intelligent connecting device
Can also be used to forward packet
within a network Fig. 7 Router connecting multiple
Slower than switch because of its networks [6]
routing protocol implementation
Collision Domain
The “collision domain” describes a network where packet collisions can occur when
two devices on a shared network medium send packets simultaneously.
Hub: All ports belong to the same collision domain.
Bridge, Switch, Router: Each port belongs to a separate collision domain.
Broadcast Domain
All the devices in the broadcast domain can reach via broadcast at the data link layer.
A Broadcast Domain can receive any broadcast packet originating from any device
within the network segment.
All ports of hub and switch belong to same broadcast domain but all ports of the router
belong do different broadcast domain [9].
Ethernet Standards
TABLE I Ethernet Standard [7]
Speed Common Informal Formal Cable Type Max.
Name Standard Standar Length
Name d Name
10 Ethernet 10BASE-T 802.3 Cat3 100 m
Mbps
100 Fast 100BASE-T 802.3u Cat5 100 m
Mbps Ethernet
1000 Gigabit 1000BASE- 802.3z Single mode fiber 5000 m
Mbps Ethernet LX
50-micron multimode fiber 550 m
62.5-micron multimode fiber 440 m
1000 Gigabit 1000BASE-T 802.3ab Cat5, Cat5e 100 m
Mbps Ethernet
10 10 Gig bit 10GBASE-T 802.3an Cat6, Cat6a 100 m
Gbps Ethernet
Ethernet Standards
TABLE I Ethernet Standard [7]