CSE309_L1
CSE309_L1
Network
Wireless
Devices
Computers
Wired
Advantages of Computer Network
Better Communication
Entertainment
Advantages of Computer Network
Network
Navagam
Morbi
Rajkot
Shapar
Wide Area Network
A wide area network (WAN) is a computer network that exists over a large-scale
geographical area.
A WAN connects different networks, including local area networks (LAN) and metropolitan
area networks (MAN).
It may be located with in a state or a country or it may be interconnected around the world.
Asia
America
Africa
Types of Computer Networks - Summary
Types of Computer Networks - Summary
Comparison LAN MAN WAN
Full Name Local Area Network Metropolitan Area Network Wide Area Network
Meaning A network that connects a It covers relatively large region It spans large locality &
group of computers in a small such as cities, towns connects countries together.
geographical area e.g. Internet
Equipment Used NIC, Switch, Hub Modem, Router Microwave, Radio Transmitter
& Receiver
Range(Approximately) 1 to 10 km 10 to 100 km Beyond 100 km
Used for College, School, Hospital Small towns, City State, Country, Continent
What is Internet?
The internet is a type of world-wide computer network.
The internet is the collection of infinite numbers of connected computers that are spread
across the world.
Mobile Network
PC
Home
Network
server wireless Regional ISP
links
smartphone
router
Institutional
Network
What is Protocol?
Human Protocol(Language) Network Protocol
“what’s the time?” Set of rules
“I have a question” Machines rather than humans.
Introduction Talk All communication activity in Internet
governed by protocols.
Protocol is define format,
order of message that sent
and received among
network entities, and
actions taken on message
transmission and reception.
The Network Edge
Computers and other devices are connected at the edge (end) of the network.
These computers are known as hosts or end systems. Router is known as edge router.
mobile network
Global ISP
Home
Network
Regional ISP
Institutional
Network
Peer to Peer Network
Computers are connected together so that users can share resources and information.
There is no central server for authenticating users, each of them works as both client and
server.
e.g. Bit Torrent
Client – Server Network
Client: Request servers for a task.
Generally called desktop PCs or workstations.
Server: Receive requests from the clients. Process and response them.
e.g. Web Server, Email Server
The Network Core
Defines the connection of different network segments together and process to transmit data
packets across the network.
It is implemented through the use of switching techniques.
Switched
Networks
Circuit-Switched Packet-Switched
Networks Networks
Circuit Switched Network
A dedicated channel has to be established before the call is made between users.
The channel is reserved between the users till the connection is active.
For half duplex(one way) communication, one channel is allocated and for full duplex(two
way) communication, two channels are allocated.
It is mainly used for voice communication requiring real time services without delay.
Circuit Switched Network – Cont…
Communication via circuit switching involves three phases:
1. Circuit Establishment
2. Data Transfer
3. Circuit Disconnect
Packet Switched Network
It is not required to establish the connection initially.
The connection/channel is available to use by users. But when traffic or number of users
increases then it will lead to congestion in the network.
Packet switched networks are mainly used for data and voice applications requiring non-real
time scenarios.
Differences
Circuit Switching Packet Switching
Dedicated path between source and No dedicated path
destination
All packets use same path Packets travel independently
Reserve the entire bandwidth in advance Does not reserve bandwidth
Bandwidth wastage No bandwidth wastage
No store and forward transmission Supports store and forward
transmission
Switching Network
TRANSMISSION MEDIA
Transmission Media
A transmission media can be defined as any medium that can carry information from a
source to a destination.
Transmission Media
The degree of reduction in noise interference is determined by the number of turns per foot.
Increasing the number of turns per foot decreases noise interference.
Twisted Pair Cable - Cont.
Separately insulated
It is widely used in different kinds of data and voice infrastructure.
The use of two wires twisted together helps to reduce crosstalk and electromagnetic
induction.
Two types of twisted pair cable:
UTP STP
(Unshielded Twisted Pair) (Shielded Twisted Pair)
Unshielded Twisted Pair Cable
An unshielded twisted pair is widely used in telecommunication.
Ordinary telephone wires.
Weak immunity against noise & interferences.
Following are the categories of UTP:
Category 1: Used for telephone lines that have low-speed data.
Category 2 & 3 : It can support upto 4Mbps & 16Mbps.
Category 4: It can support upto 20Mbps.
Therefore, it can be used for long-distance communication.
Category 5: It can support upto 200Mbps.
Advantages:
It is cheap.
Installation of the unshielded twisted pair is easy.
It can be used for high-speed LAN.
Disadvantage:
This cable can only be used for shorter distances because of attenuation
Shielded Twisted Pair Cable
A shielded twisted pair is a cable that contains the mesh surrounding the wire that allows
the higher transmission rate.
An installation of STP is easy.
It has a higher attenuation.
Inner
Plastic cover Conductor
Outer conductor
(shield)
Outer conductor is braided shield.
Inner conductor is solid metal.
Separated by insulating material, and whole cover by plastic cover.
The middle core is responsible for the data transferring whereas the copper mesh prevents
from the EMI(Electromagnetic interference).
Coaxial Cable – Cont.
Used in television, long distance telephone transmission.
It has excellent noise immunity.
It has a higher frequency as compared to Twisted pair cable.
Coaxial cable is of two types:
1. Baseband transmission:
It is defined as the process of transmitting a single signal at high speed.
2. Broadband transmission:
It is defined as the process of transmitting multiple signals simultaneously.
Coaxial Cable – Cont.
Advantages Of Coaxial cable:
The data can be transmitted at high speed.
It has better shielding as compared to twisted pair cable.
It provides higher bandwidth.
Disadvantages Of Coaxial cable:
It is more expensive as compared to twisted pair cable.
If any fault occurs in the cable causes the failure in the entire network.
Fiber Optic Cable
A fiber-optic cable is made of glass or plastic and transmits signals in the form of light.
Antennas are mounted on the towers to send a beam to another antenna which is km away.
It works on the line of sight transmission.
The antennas mounted on the towers are the direct sight of each other.
Satellite Microwave Communication
A satellite is a physical object that revolves around the earth at a known height.
Satellite communication is more reliable nowadays as it offers more flexibility than cable and
fibre optic systems.
We can communicate with any point on the globe by using satellite communication.
How Does Satellite work?
The satellite accepts the signal that is transmitted from the earth station, and it amplifies the signal. The
amplified signal is retransmitted to another earth station.
Satellite Microwave Communication – Cont.
Advantages Of Satellite Microwave Communication:
The coverage area of a satellite microwave is more than the terrestrial microwave.
The transmission cost of the satellite is independent of the distance from the centre of the coverage area.
Satellite communication is used in mobile and wireless communication applications.
It is easy to install.
It is used in a wide variety of applications such as weather forecasting, radio/TV signal broadcasting,
mobile communication, etc.
Disadvantages Of Satellite Microwave Communication:
Satellite designing and development requires more time and higher cost.
The Satellite needs to be monitored and controlled on regular periods so that it remains in orbit.
The life of the satellite is about 12-15 years. Due to this reason, another launch of the satellite has to be
planned before it becomes non-functional.
Infrared wave
An infrared transmission is a wireless technology used for communication over short ranges.
The frequency of the infrared in the range from 300 GHz to 400 THz.
It is used for short-range communication.
For Example, the data transfer between two cell phones, TV remote operation, data transfer
between a computer and cell phone resides in the same closed area.
Infrared Wave - Characteristics
Infrared waves cannot penetrate the walls.
Therefore, the infrared communication in one room cannot be interrupted by the nearby
rooms.
An infrared communication provides better security with minimum interference.
Infrared communication is unreliable outside the building because the sun rays will interfere
with the infrared waves.
NETWORK TOPOLOGIES
Network Topologies
Network topology is the arrangement of the various components (links, nodes, etc.)
of a computer network.
Types of network topologies :
1. Bus
2. Ring
3. Star
4. Mesh
5. Tree
6. Hybrid
Bus Topology
Every computer and network device is connected to single cable.
It transmits data only in one direction.
When a node wants to send a message over the network, it puts a message over the
network.
All the stations available in the network will receive the message whether it has been
addressed or not.
Used in small networks.
Easy to expand joining two cables together.
It is used in early LAN connection.
Bus Topology – Advantages
Low-cost cable:
In this, nodes are directly connected to the cable without passing through a hub. Therefore, the initial
cost of installation is low.
Moderate data speeds:
Coaxial or twisted pair cables are mainly used in bus-based networks that support upto 10 Mbps.
Familiar technology:
Bus topology is a familiar technology as the installation and troubleshooting techniques are well known,
and hardware components are easily available.
Limited failure:
A failure in one node will not have any effect on other nodes.
Bus Topology – Disadvantages
Extensive cabling:
A bus topology is quite simpler, but still it requires a lot of cabling.
Difficult troubleshooting:
It requires specialized test equipment to determine the cable faults. If any fault occurs in the cable, then it
would disrupt the communication for all the nodes.
Signal interference:
If two nodes send the messages simultaneously, then the signals of both the nodes collide with each
other.
Reconfiguration difficult:
Adding new devices to the network would slow down the network.
Attenuation:
Attenuation is a loss of signal leads to communication issues. Repeaters are used to regenerate the signal.
Ring Topology
It forms a ring as each computer is connected to another computer, with the last one
connected to the first.
Transmission is unidirectional & sequential way that is bit by bit.
The data flows in a single loop continuously known as an endless loop.
The data in a ring topology flow in a clockwise direction.
Transmitting network is not affected by high traffic or by adding more nodes, as only the
nodes having tokens can transmit data.
Cheap to install and expand.
Ring Topology – Advantages
Network Management:
Faulty devices can be removed from the network without bringing the network down.
Product availability:
Many hardware and software tools for network operation and monitoring are available.
Cost:
Twisted pair cabling is inexpensive and easily available. Therefore, the installation cost is very low.
Reliable:
It is a more reliable network because the communication system is not dependent on the single host
computer.
Ring Topology – Disadvantages
Difficult troubleshooting:
It requires specialized test equipment to determine the cable faults. If any fault occurs in the cable, then it
would disrupt the communication for all the nodes.
Failure:
The breakdown in one station leads to the failure of the overall network.
Reconfiguration difficult:
Adding new devices to the network would slow down the network.
Delay:
Communication delay is directly proportional to the number of nodes. Adding new devices increases the
communication delay.
Star Topology
Computers are connected to a single central hub through
a cable.
Fast performance with few nodes and low network
traffic.
Easy to troubleshoot & Easy to setup and modify.
Only that node is affected which has failed rest of the
nodes can work smoothly.
Hub can be upgraded easily.
Star Topology - Advantages
Efficient troubleshooting:
All the stations are connected to the centralized network. Therefore, the network administrator has to go
to the single station to troubleshoot the problem.
Network control:
Complex network control features can be easily implemented in the star topology. Any changes made in
the star topology are automatically accommodated.
Limited failure:
As each station is connected to the central hub with its own cable, therefore failure in one cable will not
affect the entire network.
Easily expandable:
It is easily expandable as new stations can be added to the open ports on the hub.
Cost effective:
Star topology networks are cost-effective as it uses inexpensive coaxial cable.
High data speeds:
It supports a bandwidth of approx 100Mbps. Ethernet 100BaseT is one of the most popular Star topology
networks.
Star Topology - Disadvantages
A Central point of failure:
If the central hub or switch goes down, then all the connected nodes will not be able to communicate
with each other.
Cable:
Sometimes cable routing becomes difficult when a significant amount of routing is required.
Mesh Topology
Point-to-point connection to other devices or fully connected.
Traffic is carried only between two connected devices.
Robust, costly but not flexible.
Fault is diagnosed easily.
More cable resource used in setup.
Mesh Topology - Advantages
Reliable:
The mesh topology networks are very reliable as if any link breakdown will not affect the communication
between connected computers.
Fast Communication:
Communication is very fast between the nodes.
Easier Reconfiguration:
Adding new devices would not disrupt the communication between other devices.
Mesh Topology - Disadvantages
Cost:
A mesh topology contains a large number of connected devices such as a router and more transmission
media than other topologies.
Management:
Mesh topology networks are very large and very difficult to maintain and manage. If the network is not
monitored carefully, then the communication link failure goes undetected.
Efficiency:
In this, redundant connections are high that reduces the efficiency of the network.
Tree Topology
It has a root node and all other nodes are connected to it forming a hierarchy.
Also called hierarchical topology.
Mostly used in Wide Area Network – WAN.
Expansion of nodes is possible and easy.
Easily managed and maintained.
Tree Topology - Advantages
Support for broadband transmission:
Tree topology is mainly used to provide broadband transmission, i.e., signals are sent over long distances
without being attenuated.
Easily expandable:
We can add the new device to the existing network. Therefore, we can say that tree topology is easily
expandable.
Easily manageable:
In tree topology, the whole network is divided into segments known as star networks which can be easily
managed and maintained.
Error detection:
Error detection and error correction are very easy in a tree topology.
Limited failure:
The breakdown in one station does not affect the entire network.
Point-to-point wiring:
It has point-to-point wiring for individual segments.
Tree Topology - Disadvantages
Difficult troubleshooting:
If any fault occurs in the node, then it becomes difficult to troubleshoot the problem.
High cost:
Devices required for broadband transmission are very costly.
Failure:
A tree topology mainly relies on main bus cable and failure in main bus cable will damage the overall
network.
Reconfiguration difficult:
If new devices are added, then it becomes difficult to reconfigure.
Hybrid Topology
A network structure whose design contains more than one topology is said to be hybrid
topology.
It is a combination of two or more topologies.
Flexible & reliable as error detection and easy to troubleshoot.
Scalable as size can be increased easily.
Comparison of Topologies
Bus Ring Star Mesh Tree
Means every computer Each computer All the All the network It has a root
and network is connected to computers are nodes are node and all
device is another, with connected to a connected to other nodes are
connected to the last one single hub each other. connected to it
single cable. connected to through a forming a
the first. cable. hierarchy.
Departure Arrival
airplane routing
How OSI Layer Works?
Open Systems Interconnect (OSI) OSI Reference Model
Physical Layer
The physical layer is responsible for movements of individual bits from one hop (node) to the
next.
Physical Layer
It is the lowest layer of the OSI model.
It is responsible for the actual physical connection between the devices.
It establishes, maintains and deactivates the physical connection.
The physical layer contains information in the form of bits.
The main functionality of the physical layer is to transmit the individual bits from one
node to another node.
This layer will get the signal and send it to the Data Link layer.
Hub, Repeater, Modem, Cables are Physical Layer devices
Functions of a Physical layer
Line Configuration:
It defines the way how two or more devices can be connected physically.
Signals:
It determines the type of the signal used for transmitting the information.
Bit synchronization:
It provides the synchronization of the bits by providing a clock. This clock controls both sender and
receiver thus providing synchronization at bit level.
Bit rate control:
It also defines the transmission rate i.e. the number of bits sent per second.
Physical topologies:
It specifies the way in which the different, devices/nodes are arranged in a network i.e. bus, star, or mesh
topology.
Transmission mode:
It also defines the way in which the data flows between the two connected devices.
The various transmission modes possible are Simplex, half-duplex and full-duplex.
Physical Layer – Cont…
Carries the bit stream over a physical media.
Physical Layer is concerned with:
Interface and Medium like guided cables
Representation of bits
Data rate
Synchronization of bits
Line configuration
Physical topology
Transmission mode
Data Link Layer
The data link layer is responsible for moving frames from one hop (node) to the next.
Data-Link Layer
This layer is responsible for the error-free transfer of data frames.
It provides hop-to-hop delivery.
It defines the format of the data on the network.
It provides a reliable and efficient communication.
It is mainly responsible for the unique identification of each device that resides on a local
network.
When a packet arrives in a network, it is the responsibility of DLL to transmit it to the Host
using its MAC address
Packet in Data Link layer is referred to as Frame
Data Link layer is handled by the NIC (Network Interface Card) and device drivers of host
machines
Switch & Bridge are Data Link Layer devices.
Data-Link Layer
Data Link Layer is divided into two sublayers:
Logical Link Control Layer
It is responsible for transferring the packets to the Network layer.
It identifies the address of the network layer protocol from the header.
It also provides flow control.
Error detection, using Ethernet trailer field frame check sequence (FCS).
Media Access Control Layer
Provides physical addressing
A Media access control layer is a link between the Logical Link Control layer and the network's physical
layer.
It is used for transferring the packets over the network.
The packet received from the Network layer is further divided into frames depending on the
frame size of NIC (Network Interface Card).
DLL also encapsulates Sender and Receiver’s MAC address in the header.
Functions of the Data-link layer
Framing:
Framing is a function of the data link layer.
The data link layer translates the physical's raw bit stream into packets known as Frames.
Breaks messages into frames and reassembles frames into messages
Attaching special bit patterns to the beginning and end of the frame.
The Data link layer adds the header and trailer to the frame.
Physical Addressing:
The Data link layer adds a header to the frame that contains destination and source addresses.
The frame is transmitted to the destination address mentioned in the header.
Functions of the Data-link layer
Flow Control:
It is the main functionality of the Data-link layer.
It is the technique through which the constant data rate is maintained on both the sides so that no data
get corrupted.
It keeps a fast transmitter from flooding a slow receiver.
Error Control:
Adding a calculated value CRC (Cyclic Redundancy Check) that is placed to the Data link layer's trailer.
The CRC is added to the message frame before it is sent to the physical layer.
If any error seems to occur, then the receiver sends the acknowledgment for the retransmission of the
corrupted frames.
Data link layer provides the mechanism of error control in which it detects and retransmits damaged or
lost frames.
Access Control:
When two or more devices are connected to the same communication channel, then
The data link layer protocols are used to define which device has control over the communication link at
a given time.
Data Link Layer – Cont…
Data link layer is concerned with:
Framing – divide bits stream into data unit (frame)
Physical addressing
Flow control – avoid over overwhelming
Error control – bit loses, retransmission
Access control
Network Layer
The network layer is responsible for the delivery of individual packets from the source host
to the destination host.
Functions of Network Layer
Internetworking:
An internetworking is the main responsibility of the network layer.
It provides a logical connection between different devices.
Addressing:
In order to identify each device on internetwork uniquely, the network layer defines an addressing
scheme.
A Network layer adds the source and destination IP addresses to the header of the frame.
Addressing is used to identify the device uniquely and universally on the internet.
Routing:
Routing is the major component of the network layer, and it determines the best optimal path out of the
multiple paths from source to the destination.
Packetizing:
A Network Layer receives the packets from the upper layer and converts them into packets.
This process is known as Packetizing.
It is achieved by internet protocol (IP).
Network Layer – Cont…
In this layer, packet is combined with header and data.
In case of data link layer, packet delivers on the same network.
If two different networks are connected then packet is concern with network layer.
Network layer is concerned with:
Logical addressing e.g. 192.168.1.1 (IP Address)
Routing
Transport Layer
The transport layer is responsible for the delivery of a message from one process to another.
Functions of Transport Layer
At sender’s side:
Transport layer receives the formatted data from the upper layers, performs Segmentation,
Implements Flow & Error control to ensure proper data transmission.
It also adds Source and Destination port numbers (which is associated with the receiver’s
application) in its header and forwards the segmented data to the Network Layer.
Generally, this destination port number is configured, either by default or manually.
For example, a web server typically uses port number 80 by default.
At receiver’s side:
Transport Layer reads the port number from its header and forwards the Data that it has received
to the respective application.
It also performs sequencing and reassembling of the segmented data.
Transport Layer – Cont…
This layer ensures that the whole message arrives intact and in order.
Transport layer is concerned with:
Service-point addressing (port address)
Segmentation and Reassembly
Connection Control
Flow and Error Control
Session Layer
To allow access to
Application network resource
To translate, encrypt
and compress data Presentation
To establish, manage
Session and terminate sessions
To provide reliable process-
to-process message
delivery and error recovery Transport
To move packets from
source to destination; To
Network provide internetworking
To organize bits into
frames; To provide hop- Data link
to-hop delivery To transmit bits over a
medium; To provide
Physical
mechanical & electrical
specification
TCP/IP Reference Model
(Transmission Control Protocol/Internet Protocol)
It was originally defined as having five layers:
TCP/IP is a set of protocols developed to allow cooperating computers to share resources
across the network.
1. Application Layer
2. Transport Layer
3. Network Layer
4. Data Link Layer
5. Physical Network
TCP/IP Model Architecture
Comparison
Difference - OSI Model and TCP/IP Protocol Layers
OSI TCP/IP
(Open System Interconnection) (Transmission Control Protocol/ Internet Protocol)
OSI model has a separate presentation layer TCP/IP doesn’t have a separate
presentation layer
OSI model has a problem of fitting the TCP/IP model does not fit any protocol
protocols in the model
Majors between OSI Model and TCP/IP Protocol Layers
OSI TCP/IP
(Open System Interconnection) (Transmission Control Protocol/ Internet Protocol)
Network layer of OSI model provide both The Network layer in TCP/IP model provides
OSI Model connection oriented and connectionless
service
connectionless service
&
OSI provides layer functioning and also TCP/IP model is more based on protocols
TCP/IP Protocol defines functions of all the layers and protocols are not flexible with other
layers
Layer
Protocols are hidden in OSI model and are In TCP/IP, replacing protocol is not easy
easily replaced as the technology changes
OSI model defines services, interfaces and In TCP/IP, it is not clearly separated its
protocols very clearly and makes clear services, interfaces and protocols
distinction between them
In OSI model the transport layer guarantees In TCP/IP model the transport layer does not
the delivery of packets guarantees delivery of packets
Protocol Layers: Summary
Delay, Loss & Throughput
Delay
As a packet travels from one node (host or router) to the subsequent node (host or router) along
this path, the packet suffers from several types of delays at each node along the path.
Tp +Dtrans+Tprop
= 7+0.224+10
= 17.224 ms
Packet Loss
Packet loss is the failure of one or more transmitted packets to arrive at their destination.
The loss of data packets depends on the switch queue/buffer. The loss of data packets
increases with the increases in the traffic intensity.
It affects the performance
of the network.
Throughput
Throughput or Network Throughput is the rate of successful message delivery over a
communication channel.
Throughput is measured in bits(data) per second (bit/s or bps)