Chapter 10 Computer Network I
Chapter 10 Computer Network I
COMPUTER NETWORK I
Problem 1:
Suppose there are two computers which exchange data on
regular basis.
Hub
Switch
Router
Repeater
Contd… Components of a Computer Network
Protocol – refers to a set of rules which govern how to devices will communicate with
each other.
Network Services: Application that provide different functionalities over a network, such
as DNS (Domain Name System), File sharing, VoIP (Voice over Internet Protocol), etc.
Contd… Components of a Computer Network
Unguided Media : It is also known as wireless media, in which the signals are
propagated from one device to another device wirelessly. Signals (in the form
of electromagnetic waves of different frequencies) can wave through the air,
water, or vacuum. It is generally used to transmit signals in all directions.
Examples are Microwaves, radio waves, satellites, infrared waves, lasers etc.
Network Criteria
Performance: can be measured in many ways, including transit time and
response time.
o Transit time is the amount of time required for a message to travel from
one device to another.
o Response time is the elapsed time between an enquiry and a response.
Reliability
❖ Accuracy of delivery of packets
❖ Frequency of failure
❖ Time it takes a link to recover from a failure
Security
❖ protecting data from unauthorized access
❖ protecting data from damage and development
Data Communication
are the exchange of data between two devices by some form of transmission
medium such as wired or wireless.
The effectiveness of data communication system depends on three
fundamental characteristics
❖ Delivery:The system must deliver data to the correct destination. Data
must be received by the intended user.
❖ Accuracy: The system must deliver the data accurately. Data should not
be altered in the transmission.
❖ Timeliness: The system must deliver data in a timely manner. Data
delivered late are useless.
❖ Jitter: It is the uneven delay in the packet arrival time that cause uneven
quality.
Components of Data Communication
Resource sharing
Centralized data
Data Security
Demerits of LAN
Setting up a LAN is expensive: It is expensive to set up LAN because there is special software
required to make a server. Also, communication devices like hubs, switches, routers, cables are
costly. The special administrator is required to maintain and troubleshoot LAN for a large
office.
Limitation of Distance: Local area networks are usually made within a building or nearby
building and cannot extend to the wider area.
Data security problem: If the server computer is not set up correctly and there is a leak in
security then unauthorized users can access the data also. So there should be privacy policy
and rules set up correctly on the server.
Server crashes may affect all computers: If any file on the server is corrupted or hard drive
fails then all the attached computers face problems in functioning properly.
MAN
MAN connect users within an area larger than LAN but smaller than a WAN.
MAN usually involves connection of fiber optics cables to boost data transfer
speed.
WAN
It can even be a group of LANs that are spread across several locations
and connected together to look like one big network.
As the name suggests, Each computer controls its own information and
plays role of either a client or a server. There is no in-charge (no
dedicated server) of the network.
Such Networks are popular in home networks, small companies as they are
inexpensive and easy to install. Although the scope is limited.
If one computer stops working but, other computers will not stop working.
Disadvantages of P2P:
In the case of Peer-To-Peer network, it does not contain the centralized system.
Therefore, it cannot back up the data as the data is different in different
locations.
The key point of this model is that client is dependent on server to provide and manage
information.
Task specified servers also exists, e.g. file server, printer server, modem server. Such a server is
known as dedicated server.
The client-server architecture is the most common distributed system architecture which
decomposes the system into two major subsystems or logical processes −
❖ Client − This is the first process that issues a request to the second process i.e. the server.
❖ Server − This is the second process that receives the request, carries it out, and sends a reply
to the client.
A server performs all the major operations such as security and network
management.
A server is responsible for managing all the resources such as files, directories,
printer, etc.
All the clients communicate with each other through a server. For example, if
client1 wants to send some data to client 2, then it first sends the request to
the server for the permission. The server sends the response to the client 1 to
initiate its communication with the client 2.
Advantages Of Client/Server network:
A Client/Server network contains the centralized system. Therefore we can back up
the data easily.
A Client/Server network has a dedicated server that improves the overall
performance of the whole system.
Security is better in Client/Server network as a single server administers the shared
resources.
It also increases the speed of the sharing resources.
Disadvantages Of Client/Server network:
Client/Server network is expensive as it requires the server with large memory.
A server has a Network Operating System(NOS) to provide the resources to the
clients, but the cost of NOS is very high.
It requires a dedicated network administrator to manage all the resources.
2 tier client server architecture
Thin-client model
-Data is all backed up on the main server. -Each computer has to be backed up. Data
can easily be deleted by users.
Transmission Media / Communication Channels
1. Twisted pair cable : It is the most commonly used communication medium. It was invented
by Alexander Graham Bell. Twisted pair cables is a collection of four pairs, each having two
conductors that are generally made up of copper and each conductor has insulation. These two
conductors are twisted together, thus giving the name twisted pair cables. They are preferably
used for local area network.
One of the conductors is used to carry the signal and the other is used as a ground reference only.
The twisting of wires reduces the crosstalk, which is the bleeding (electrical disturbance that can
degrade the communication) of a signal from one wire to another and which can corrupt signal and
cause network errors.
The twisting of wires not only protects the signal from internal crosstalk, but it also protects it
from the other external forms of signal interference.
Contd… Guided Transmission Media
Advantages
• It is very cheap.
• It has a low weight.
• It is flexible.
• It is easy to install and maintain.
Disadvantages
• It is suitable only for short distance communication. It cannot carry the signals over long distances
without the use of repeaters.
• It has low bandwidth.
They are available in various forms such as CAT1, CAT2, CAT3, CAT4, CAT5, CAT6.
They are basically of two types
a. Shielded Twisted Pair (STP)
b. Unshielded Twisted Pair (UTP)
Contd… Guided Transmission Media
2. Coaxial cable : A coaxial cable is an electrical cable with a copper conductor and an
insulator shielding around it and a braided metal mesh that prevents signal interference
and cross talk. Coaxial cable is also known as coax.
The core copper conductor is used for the transmission of signals and the insulator is used
to provide insulation to the copper conductor and the insulator is surrounded by a braided
metal conductor which helps to prevent the interference of electrical signals and prevent
cross talk. This entire setup is again covered with a protective plastic layer to provide
extra safety to the cable.
Coaxial cables, commonly called coax, are copper cables with metal shielding designed to
provide immunity against noise and greater bandwidth. Coax can transmit signals over
larger distances at a higher speed as compared to twisted pair cables.
Contd… Guided Transmission Media
Advantages
Disadvantages
• It is less flexible.
3. Optical fiber cable : OFC stands for Optical Fibre Cable. Optical fibre cables are made
up of thin strands, or optical fibres, of either glass or plastic. One cable may have two or
even hundreds. These optical fibre cables transmit information using light-based or
optical technology between two locations. The light beams will emerge from the other
end of the optical fibre cable (OFC) once they have travelled down from one end. Then, a
photoelectric cell is required in order to convert the light pulses into electrical
information so that the computer can understand it.
Contd… Guided Transmission Media
• Glass Core: It is the material at the center of optical fiber cable through which the
light travels.
• Glass Cladding: It is the covering of the core and reflects the light back to the core.
When light signals are sent through the fiber optic cable, they reflect off the core and cladding in a
series of zig-zag bounces.
Fibre cable has many benefits, including higher bandwidth and greater reach. Fibre cables are more
popular than old copper cables because they offer high-speed broadband service. Copper wires lose
94% of their signal, while optical fibre loses only 3%. Optic fibres last longer than copper wires which
are less fragile. Copper wire is easy to tap, but optical fibres are much more difficult. Optic fibre has
lower latency (the time it takes to transmit data) than copper wires.
Contd… Guided Transmission Media
Advantages Disadvantages
• It has a very high transmission capacity sufficiently robust for an office environment.
thus it is suitable for long distances. • It is more fragile and vulnerable to damage than
copper wires. Optical fiber cannot be twisted or bent too
tightly.
There are two categories of Optical fiber cable • It requires trained and skilled men to place fiber in the
optic cable. As optical fiber is more vulnerable to damage,
i. Single node
trained men can only fix faulty joints.
ii. Multi–node.
Unguided Transmission Media
1. Radio Waves : It is a technique where data is transmitted using radio waves/ frequencies and
therefore energy travels through the air rather than copper or glass. The radio waves can travel
through walls and through an entire building. Depending upon the frequency, they can travel long
distance or short distance.
Radio waves are omnidirectional. When an antenna sends radio waves, they are propagated in all
directions. This defines that the sending and receiving antennas do not have to be aligned.
Contd… Unguided Transmission Media
A sending antenna sends waves that any receiving antenna can receive. It is based on the
wavelength, strength, and purpose of transmission.
Advantages
2. Microwave : The electromagnetic waves having frequencies between 1 and 300 GHz are
known as a microwave. Microwave systems use very high-frequency radio or television signals
to transmit data through space. Therefore, the transmitter and receiver of a microwaves
system, which is mounted on very high towers, should be invisible to each other, i.e., they
both should be in a line-of-sight. Moreover, the signals become weak after travelling a
certain distance and require power amplification.
Advantages
reliable as compared to cable. • It is insecure. Any malicious user can catch the signal in
the air by using its own antenna.
• Microwaves offer communication over very
• Out of phase signal: A signal can be moved out of phase by
long distances.
using microwave transmission.
• It is free from land acquisition as it does not
• It is susceptible to weather condition. This means that any
require any land for the installation of cables. environmental change such as rain, wind can distort the signal.
• Communication over oceans can be achieved • Bandwidth limited: Allocation of bandwidth is limited in
The signal energy propagates through wires in guided The signal energy propagates through the air in
media. unguided media.
It is cost-effective. It is expensive.
Guided media is used for point-to-point Unguided media is generally suited for radio
communication. broadcasting in all directions.
Here, the signals are in the state of current and Here, the signals are in the state of electromagnetic
voltage. waves.
Difference between Guided and Unguided Media
By adding more wires, the transmission capacity can It is not possible to obtain additional capacity in
be increased in guided media. unguided media.
It sends out a signal that indicates which way to go. It does not indicate which way to travel.
For a shorter distance, this is the best option. For longer distances, this method is used.
Network Topology.
or
2. Star topology
3. Linear topology
4. Ring topology
5. Mesh topology
6. Tree topology
Types of Network Topologies
1. Point to point topology: Point to point is a simple topology that directly links two nodes and
reserves the entire bandwidth of the connection for them to communicate with one another.
Physically, point-to-point connections rely on a cable or wire that connects the two endpoints.
Advantages:
• Superior bandwidth, as only two nodes use the link
• High speed when compared to other types of network topologies
• Simple to implement
• Easy to maintain and handle
Disadvantages:
• Only applicable for small areas with nodes physically close to each other
• High dependence on the common link; if the link fails, the network goes down
• Only useful if the network has two nodes; thus, not applicable for many modern use cases
Types of Network Topologies
2. Star topology: It consists of a central node to which all other nodes are connected by a single path. This topology used in most existing information
networks involving data processing or voice communication.
Advantages:
❖ It is easy to install and reconfiguration of the network since each node has its own cable.
❖ Failures affect only one device and problem areas are located swiftly.
❖ Fault diagnosis is easy because central node is connected directly to every other node in the network.
Disadvantages:
❖ Higher Requirements of connectors and cable length because each node is directly connected to the central node.
❖ Difficult to expand.
Contd… Network Topologies
3. Bus or Linear Topology : It consists of a single length of
transmission medium(generally coaxial cable) onto which various
nodes are attached. Transmission from any node travels in both
directions to the whole bus, and can be received by all other
stations. At both ends there are terminators which removes the
travelling data token from the network. Data is transmitted in small
block, known as packets. Each packet has some data bits, plus a
header containing it destination address. The destination device, on Disadvantages:
identifying the address on the packets, copies the data onto its disk. ❖ Entire network shuts down, if main cable fails.
❖ Easy to add new devices and replace or remove existing devices ❖ Fault diagnosis is difficult if entire network shuts down.
without affecting other devices ❖ Nodes must be intelligent- Each node is directly connected to the central
bus. This means that some way of deciding who can use the network at
❖ Failure in a few devices does not affect other devices, or the network
any given time must be performed in each node.
❖ Requires less cable length and simple wiring layout. ❖ Low privacy, as all nodes receive the signal sent by the server
and is transmitted onwards to another. Generally, data tokens travels in one direction(unidirectional ring) from node to node around the
ring. After passing through each node, it returns to the sending node, which removes it or it stops until it has reached destination.
Advantages:
Disadvantages:
❖ Data transferred must pass through each node which makes it slower than star topology.
❖ Hardware needed to connect each workstation to the network is more expensive than hubs/switches and ethernet cards.
Contd… Network Topologies
5. Mesh Topology : Each node is connected to more than one node, which provides and alternative route in the case host is either down or
busy. It's excellent for long distance networking as it provides back-up & rerouting which is ideal for distributed networks.
Advantages:
❖ It can mange high traffic as multiple devices can transmit work simultaneously.
❖ Diagnosis is easy.
Disadvantages:
❖ Chances of redundancy is high which leads to higher cost and lower efficiency.
Contd… Network Topologies
6. Tree or Expanded Star Topology : It's the combination of linear bus and star topologies. Groups of star-configured workstations connected to a linear
bus backbone.
Advantages:
Disadvantages:
Reliability − Network should be designed in such a way that it has minimum down time. Failure
of one node or a segment of cabling should not render the whole network useless.
Scalability − Network topology should be scalable, i.e. it can accommodate load of new devices
and nodes without perceptible drop in performance.
Ease of installation − Network should be easy to install in terms of hardware, software and
technical personnel requirements.
Aim was to create a network that would allow users of a research computer at
one university to “talk to” research computer at other universities.
Intranet Internet
LAN WAN
1. It stands for Local Area Network 1. It stands for Wide Area Network
2. It is a network within a small area such 2. It is a network across cities, countries
as building. and continents.
3. Twisted pair cable is preferably used for 3. Optical fiber or satellite are used for
communication. communication
4. Example: Computer Lab 4. Example: Mobile phone network
Switching Techniques
A computer user experiences switching all the time for example, accessing the
Internet from your computer device, whenever a user requests a webpage to
open, the request is processed through switching of data packets only.
Switching takes place at the Data Link layer of the OSI Model. This means that
after the generation of data packets in the Physical Layer, switching is the
immediate next process in data communication.
Types of Switching
Circuit Switching
In circuit switching circuit is established between the two ends. When two
devices want to communicate in a circuit-switched network, they
establish a connection by setting up a dedicated path between them. This
path is reserved exclusively for the duration of the communication.
Hence, no other devices can use it during that specific time.
Furthermore, we transmit each frame independently through the network. Additionally, each
intermediate node stores the frames until the entire message is received. Finally, the nodes forward
the entire message to its destination.
Circuit switching is more reliable. Packet switching is less reliable. Message switching is less reliable.
There is a physical path between There is no physical path between There is no physical path between
the source and the destination the source and the destination. the source and the destination.
Each packet follows the same route. Packets can follow any route. Packets can follow any route.
1. Simplex Mode
Examples
2. The radio station is a simplex channel since it transmits the signal but never permits
listeners to transmit it back.
Contd… Communication Modes of Operation
sender to receiver but only one at a time. In this mode, the connected
devices can transmit or receive the data but not simultaneously. In half
radio stations can receive as well as transmit the data. The half-duplex
Example
Examples
IPv6 is the most recent version of an IP address, initiated in 1995. It consists of eight
groups of four hexadecimal digits separated by colons. Each digit represents four bits and
allows for a much larger number of IPv6 combinations than IPv4.
MAC Address
To communicate or transfer data from one computer to another, we need an address. In computer networks,
various types of addresses are introduced; each works at a different layer. A MAC address, which stands for
Media Access Control Address, is a physical address that works at the Data Link Layer.
MAC Addresses are unique 48-bit hardware numbers of a computer that are embedded into a network card
(known as a Network Interface Card) during manufacturing. The MAC Address is also known as the Physical
Address / hardware address, or BIA (Burned In Address) of a network device. In the IEEE 802 standard, the data
link layer is divided into two sublayers:
The MAC address is used by the Media Access Control (MAC) sublayer of the Data-Link Layer. MAC Address is
worldwide unique since millions of network devices exist and we need to uniquely identify each.
Contd… MAC Address
MAC address is 12 digits or 6-byte hexadecimal number, which is represented in colon-
hexadecimal notation format. It is divided into six octets, and each octet contains 8 bits.
The last three octets are NIC specific and used by the
manufacturer to each NIC card. Vendors or
manufacturers can use any sequence of digits to the
NIC specific digits, but the prefix should be the same
as provided by the IEEE.
Contd… MAC Address