Computer Networks
© Oxford University Press 2014. All rights
Computer Networks
• A collection of computers and
devices interconnected to
facilitate sharing of memory,
information, and electronic
documents
© Oxford University Press 2014. All rights
Communication Media
• Computers and other computing devices are connected by
different kinds of media
• Three types of cables
Twisted-pair Wires
Coaxial cables
Fibre optic cables
© Oxford University Press 2014. All rights
Twisted-pair Wires
•Consist of two copper wires that are twisted into pairs
•Widely used medium for telecommunication
•Transmission speed varies from 2 Mbps to 100 Mbps
•Cheap and easy to install and use
•However, they easily pick up noise signals, and thus become
prone to error when their length extends beyond 100 m
© Oxford University Press 2014. All rights
Coaxial Cables
• Preferred for cable TV and for connecting the computers within
short distances to form a network
• Highly resistant to signal interference and can support greater
cable lengths between network devices
• Transmission speed varies from 200 Mbps to 500 Mbps
© Oxford University Press 2014. All rights
Fibre Optic Cables
• Carry data as pulses of light
• Transmit light that can travel over extended distances
• Transmission speed is hundreds of times more than that of coaxial
cables, and thousands of times more than that of twisted-pair
wires
© Oxford University Press 2014. All rights reserved.
Wireless Technologies
• Terrestrial microwaves use earth-based transmitters and
receivers.
• In satellite communication, signals are transferred between the
sender and the receiver using a satellite that is stationed in space,
typically 35,400 km (for geosynchronous satellites) above the
equator.
• Infrared technology enables computing devices to communicate
via short-range wireless signals.
© Oxford University Press 2014. All rights
Data Transmission Modes
• Simplex,
• Half-duplex, and
• Full-duplex Connections
© Oxford University Press 2014. All rights
Simplex, Half-duplex, and Full-duplex
Connections
The data transmission mode refers to the direction of flow of data.
•In simplex mode, data flows in only one direction. It is used where
data need not flow in both directions like at certain POS terminals,
radio and TV transmissions.
•In half-duplex mode, there is only one communication channel to
carry data. Devices can share the channel, but only one of them can
transmit at a time.
•In a full-duplex connection, data flows in both the directions
simultaneously. It is widely applied in telephone systems, where both
the caller and the receiver can talk at the same time.
© Oxford University Press 2014. All rights
Data Multiplexing
• A technique to combine multiple analogue signals or digital data
streams into one signal for transmission over a shared medium
• The reverse of multiplexing is demultiplexing. In this process, a single
analogue signal or data stream is extracted and broken into several
streams or signals, which are then transferred simultaneously over
several communication channels to the receiving devices.
• Without multiplexing, sending and receiving devices would have to be
connected through several communication channels. With multiplexing,
only a single high-speed communication channel is used, which is easy
to manage.
© Oxford University Press 2014. All rights
Multiplexing
© Oxford University Press 2014. All rights
• Frequency-division Multiplexing (FDM)
• Wavelength Division Multiplexing (WDM)
• Time Division Multiplexing
© Oxford University Press 2014. All rights
Frequency-Division Multiplexing
(FDM)
• It is a scheme in which numerous signals are
combined for transmission on a single
communications line or channel.
• It is analog multiplexing technique.
• FDM requires that the bandwidth of a link
should be greater than the combined
bandwidths of the various signals to be
transmitted.
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
FDM
© Oxford University Press 2014. All rights
TDM
© Oxford University Press 2014. All rights
Wavelength division multiplexing
(WDM)
• It is a technique of multiplexing multiple
optical carrier signals through a single optical
fiber channel by varying the wavelengths of
laser lights. WDM allows communication in
both the directions in the fiber cable.
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
Data Switching
• Circuit Switching
• Message Switching
• Packet Switching
© Oxford University Press 2014. All rights
Circuit Switching
• An end-to-end path is set up before any data can be sent.
• If no circuit can be established between the sender and the
receiver due to lack of resources, the connection is said to be
blocked.
© Oxford University Press 2014. All rights
Message Switching
• If a device (sender) wants to transmit data, it attaches the destination
address to the message.
• Between the sender and the receiver, there may be n number of
intermediate nodes which accept the data, store it temporarily, check
for any error, and then transmit it to one of its directly connected
device.
© Oxford University Press 2014. All rights
Packet Switching
• Similar to message switching
• However, in message switching, the message can have unlimited
length, whereas in packet switching, a message is split into packets
of fixed size
© Oxford University Press 2014. All rights
Network Topologies
• It refers to the actual geometric layout of computers and other
devices connected to the network.
Bus Topology
Star Topology
Mesh Topology
Hybrid Topology
Ring Topology
© Oxford University Press 2014. All rights
Bus Topology
• Each computer or server is connected to a single cable
Advantages
Easy to install and connect a new device to the network
Requires less cable length, so inexpensive
Failure of a single node does not affect the network
Disadvantages
Failure in the cable shuts the entire network
In case of network shutdown, difficult to identify problem
As the number of nodes increases, speed slows down
© Oxford University Press 2014. All rights
Star Topology
• Each node is connected to a central hub with a point-to-point
connection
Advantages
Easy to install and detect faults
New nodes can be connected easily
Failure of node (except the hub) does not affect the network
Disadvantages
Requires more cable length than bus topology, so expensive
If the central hub fails, the entire network is shut down
© Oxford University Press 2014. All rights
Ring Topology
• All nodes are connected to each other, so that every node is
connected directly to nodes on either side of it
Advantages
Best suited for networks that do not have a hub
More reliable, easy to install, can span over larger distances
Disadvantages
Causes delay in communication
Difficult to diagnose the fault; if one node fails, the entire
network is shut down
Difficult to add or remove nodes from the network
© Oxford University Press 2014. All rights
Mesh Topology
• Every node is connected to every other node on the network using a
separate physical link
Advantages
Failure of a node does not affect the entire network
Communication is fast. No traffic problem
Ensures security of data. Easy to detect network errors
Disadvantages
Most expensive network and difficult to install
© Oxford University Press 2014. All rights
Hybrid Topology
• In real world, a pure star, pure ring, or pure bus is rarely used.
Rather, a combination of two or more topologies is preferred like a
star–ring and the star–bus networks.
• The exact configuration of a hybrid network depends on the needs
and structure of the organization where it is deployed.
© Oxford University Press 2014. All rights
Types of Network
• Local Area Network
• Wide Area Network
• Metropolitan Area Network
© Oxford University Press 2014. All rights
Local Area Network
• Used to connect computers and devices in a limited geographical
area such as home, school, computer laboratory, office building, or
a closely positioned group of buildings
© Oxford University Press 2014. All rights
Wide Area Network
• Span a large geographic area such as a city, country, or even
intercontinental distances, using a communication channel that
combines many types of media such as telephone lines, cables, and
air waves
• The Internet is a public WAN, but organizations can also form private
WANs, which are basically two or more LANs connected to each
other
© Oxford University Press 2014. All rights
Metropolitan Area Network
• A network that interconnects computers and other devices in a
geographical area or region larger than that covered by even a large
LAN, but smaller than the area covered by a WAN
• Usually not owned by a single individual or an organization but by
either a consortium of users or by a network service provider who
sells the service to the users
© Oxford University Press 2014. All rights
Networking Devices
• Hub: Device to which different devices are
connected so that they can communicate
with each other
• Repeaters: regenerate incoming electrical,
wireless, or optical signals
• Switch: is an intelligent device that can be
used in all places where a hub is used
It has a switching table that stores the
address of every computer or device
connected to it and sends the data only to
the destined device rather than broadcast
the data to all the devices connected to it.
© Oxford University Press 2014. All rights
Bridge
• Device that connects two or more LANs
• When a bridge receives data from one LAN to forward it to another
LAN, it first regenerates and then forwards it
© Oxford University Press 2014. All rights
• Network Interface Card: Network services can
be used through a Network Interface Card,
also known as the network adapter or the
LAN card
© Oxford University Press 2014. All rights
Router
• An intelligent device that routes data to destination computers
• Basically used to connect two different networks like two LANs, two
WANs, and a LAN with WAN
• Uses special software known as routing table that stores the
addresses of devices connected to the network
• Routes the data packets between two networks based on the best
possible path for fast data transmission
© Oxford University Press 2014. All rights
• Given by the International Organization for Standardization (ISO) in
1984
• An abstract model that provides a networking framework of standards
to enable diverse equipment and applications from different vendors
to communicate with each other.
• Divides the complex task of computer-to-computer communications
(also known as internetworking) into a series of seven layers
© Oxford University Press 2014. All rights
Application Layer and Presentation Layer
• Application layer provides services to support end-user
applications such as email, file transfer, user interface, database
access, and remote printer access
• Commonly used protocols include http, ftp, telnet, smtp
• Presentation layer, also called the syntax layer , formats and
encrypts data to be sent across a network, providing freedom from
compatibility problems.
• Also responsible for data compression
© Oxford University Press 2014. All rights
Session Layer and Transport Layer
• Session layer establishes, coordinates, manages, and terminates
connections between applications
• Also acts as a dialog controller to decide which device will be
transmitted
• Transport layer is responsible for reliable data transfer between
two systems
• Also provides error control and flow control mechanisms
© Oxford University Press 2014. All rights
Network Layer and Data Link Layer
• Network layer is in charge of all the addressing issues
– Determines the best path(routing technologies), and sends the packets on
that route
– Also manages network problems such as data congestion
• Data link layer converts the data packets into a stream of 0s and 1s
– Also responsible for error control, flow control, and reliable data transfer
© Oxford University Press 2014. All rights
Physical Layer
• Physical layer converts the raw stream of bits into electrical
signals, optical signals, or electromagnetic signals depending on
whether the underlying network uses a cable circuit (using coaxial
cable), fibre optic circuit, or microwave circuit, respectively
• Concerned with all the physical aspects of data transmission
• Establishes, maintains, and terminates physical connections
between computers
• Decides how many volts should be used to represent 0 and 1
• Decides how many bits should be transmitted in a second
© Oxford University Press 2014. All rights
OSI Layers
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
Port no tells to connect correct application of received data
Seq no for arrangement of sequence of segments
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights
© Oxford University Press 2014. All rights