Unit 1
Unit 1
Computer Networks
Unit-1
Introduction to
Computer Networks &
Internet
Prof. Maulik D. Trivedi
9998265805
[email protected]
What is Computer Network?
▪ Computer Network is a system in which multiple computers are
connected to each other to share information and resources.
Network
Wireless
Devices
Computers
Wired
Unit: 1 - Introduction to Computer Networks and Internet 2 Darshan Institute of Engineering & Technology
Advantages of Computer Network
File Sharing Flexible Access
Unit: 1 - Introduction to Computer Networks and Internet 3 Darshan Institute of Engineering & Technology
Advantages of Computer Network
Internet Access Inexpensive System
Unit: 1 - Introduction to Computer Networks and Internet 4 Darshan Institute of Engineering & Technology
Applications of Computer Network
Email Services Teleconferencing
Unit: 1 - Introduction to Computer Networks and Internet 6 Darshan Institute of Engineering & Technology
Local Area Network
▪ A local area network (LAN) is a computer network that
interconnects computers within a limited area such as a residence,
school, laboratory, university campus or office building.
Unit: 1 - Introduction to Computer Networks and Internet 7 Darshan Institute of Engineering & Technology
Metropolitan Area Network
▪ A metropolitan area network (MAN) is a computer network that
interconnects with computer in a metropolitan area like city.
▪ MAN is a larger than LAN but smaller than the area covered by a WAN.
▪ It is also used to interconnection of several local area network.
Navagam
Morbi
Rajkot
Shapar
Unit: 1 - Introduction to Computer Networks and Internet 8 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 9 Darshan Institute of Engineering & Technology
Types of Computer Networks - Summary
Unit: 1 - Introduction to Computer Networks and Internet 10 Darshan Institute of Engineering & Technology
Types of Computer Networks - Summary
Basis Of
LAN MAN WAN
Comparison
Full Name Local Area Network Metropolitan Area Wide Area Network
Network
Meaning A network that It covers relatively It spans large locality
connects a group of large region such as & connects countries
computers in a small cities, towns together. e.g. Internet
geographical area
Ownership of Network Private Private or Public Private or Public
(VPN)
Design and Easy Difficult Difficult
Maintenance
Propagation Delay Short Moderate Long
PC
Home
Network
server wireless Regional ISP
links
smartphone
router
Institutional
Network
Unit: 1 - Introduction to Computer Networks and Internet 12 Darshan Institute of Engineering & Technology
NETWORK EDGE & NETWORK CORE
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
mobile
edge router. network
Global ISP
Home
Network
Regional ISP
Institutional
Network
Unit: 1 - Introduction to Computer Networks and Internet 14 Darshan Institute of Engineering & Technology
Peer to Peer Network
▪ Computers are connected together so that users can
share resources and information.
Unit: 1 - Introduction to Computer Networks and Internet 15 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 16 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 17 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 18 Darshan Institute of Engineering & Technology
Circuit Switched Network – Cont…
▪ Communication via circuit switching involves three phases:
1. Circuit Establishment
2. Data Transfer
3. Circuit Disconnect
Unit: 1 - Introduction to Computer Networks and Internet 19 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 20 Darshan Institute of Engineering & Technology
Differences
Circuit Switching Packet Switching
✔ Dedicated path between ✔ No dedicated path
source and destination
✔ All packets use same ✔ Packets travel independently
path
✔ Reserve the entire ✔ Does not reserve bandwidth
bandwidth in advance
✔ Bandwidth wastage ✔ No bandwidth wastage
✔ No store and forward ✔ Supports store and forward
transmission transmission
Unit: 1 - Introduction to Computer Networks and Internet 21 Darshan Institute of Engineering & Technology
Switching Network
Unit: 1 - Introduction to Computer Networks and Internet 22 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 24 Darshan Institute of Engineering & Technology
Guided Media
▪ Guided media are those that provide a wired - channel from one
device to another.
▪ Three Guided media commonly used for data transmission are:
Unit: 1 - Introduction to Computer Networks and Internet 25 Darshan Institute of Engineering & Technology
Twisted Pair Cable
▪ Separately insulated
▪ Twisted together
▪ 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)
Unit: 1 - Introduction to Computer Networks and Internet 26 Darshan Institute of Engineering & Technology
Twisted Pair Cable – Cont…
▪ UTP(Unshielded Twisted Pair)
✔ Ordinary telephone wires
✔ Less expensive
✔ Weak immunity against noise & interferences
✔ Most used in two categories: Cat-3 & Cat-5
✔ Used in laboratory
▪ STP(Shielded Twisted Pair)
✔ An extra metallic shield on each pair
✔ Relatively more expensive
✔ Better performance than UTP
✔ Used in exterior network(outside of building).
Unit: 1 - Introduction to Computer Networks and Internet 27 Darshan Institute of Engineering & Technology
Coaxial Cable
Insulator
Inner
Plastic cover Outer conductor Conductor
(shield)
▪ Outer conductor is braided shield
▪ Inner conductor is solid metal
▪ Separated by insulating material, and whole cover by plastic cover
▪ Used in television, long distance telephone transmission
▪ High bandwidth and excellent noise immunity
Unit: 1 - Introduction to Computer Networks and Internet 28 Darshan Institute of Engineering & Technology
Fiber Optic Cable
▪ Glass or plastic core
▪ Laser or light emitting diode
▪ Small size & weight
▪ Used in high bandwidth network
▪ High data rate & lower attenuation
Unit: 1 - Introduction to Computer Networks and Internet 29 Darshan Institute of Engineering & Technology
Unguided Media
▪ Unguided media transmit electromagnetic waves without using a
physical conductor.
▪ This type of communication is often referred to as wireless
communication.
1. Radio wave
2. Microwave
3. Infrared Wave
Unit: 1 - Introduction to Computer Networks and Internet 30 Darshan Institute of Engineering & Technology
Radio wave
▪ Highly regulated
▪ Omni directional antennas
▪ Radio waves are used for multicast communications, such as radio
and television, and paging systems
▪ Penetrate through walls
Unit: 1 - Introduction to Computer Networks and Internet 31 Darshan Institute of Engineering & Technology
Microwave
▪ Use directional antennas - point to point line of sight
communications
▪ Microwave communication
▪ Used for unicast communication such as cellular telephones,
satellite networks
▪ Higher frequency ranges cannot efficiently penetrate walls
Unit: 1 - Introduction to Computer Networks and Internet 32 Darshan Institute of Engineering & Technology
Infrared wave
▪ Infrared signals can be used for short-range communication in a
closed area using line-of-sight propagation
▪ Used on televisions, VCRs, and stereos all use infrared
communication.
▪ Relatively directional
▪ Cheap, easy to build but they do not pass through solid objects
Unit: 1 - Introduction to Computer Networks and Internet 33 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 35 Darshan Institute of Engineering & Technology
Bus Topology
Unit: 1 - Introduction to Computer Networks and Internet 36 Darshan Institute of Engineering & Technology
Ring Topology
Unit: 1 - Introduction to Computer Networks and Internet 37 Darshan Institute of Engineering & Technology
Star Topology
Unit: 1 - Introduction to Computer Networks and Internet 38 Darshan Institute of Engineering & Technology
Mesh Topology
Unit: 1 - Introduction to Computer Networks and Internet 39 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 40 Darshan Institute of Engineering & Technology
Hybrid Topology
Unit: 1 - Introduction to Computer Networks and Internet 41 Darshan Institute of Engineering & Technology
Comparison of Topologies
Bus Ring Star Mesh Tree
Means every Each All the All the It has a root
computer computer is computers network node and all
and network connected are nodes are other nodes
device is to another, connected connected are
connected with the last to a single to each connected
to single one hub through other. to it forming
cable. connected a cable. a hierarchy.
to the first.
Cost Average Cheap High High High
Used in Small Expand Small Expand Expand
Network Network Network Network Network
Troublesho Easy, But Difficult; Easy; Difficult; Easy;
ot Cables fail Failure of one If the hub Installation Central root
then whole computer fails then the and hub fails,
network fails. disturbs the whole configuration network fails.
whole network is is difficult.
network. down.
Unit: 1 - Introduction to Computer Networks and Internet 42 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 43 Darshan Institute of Engineering & Technology
PROTOCOL LAYERS
Protocols Layers
▪ To deals with connecting systems that are open for
communication with other systems.
▪ OSI Layer Model (Open Systems Interconnection)
▪ Developed by the International Standards Organization (ISO) with
seven different layers.
1. Physical Layer
2. Data Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Unit: 1 - Introduction to Computer Networks and Internet 45 Darshan Institute of Engineering & Technology
Example – Air Plane Travel
Departure Arrival
airplane routing
Unit: 1 - Introduction to Computer Networks and Internet 46 Darshan Institute of Engineering & Technology
How OSI Layer Works?
Unit: 1 - Introduction to Computer Networks and Internet 47 Darshan Institute of Engineering & Technology
Physical Layer
Unit: 1 - Introduction to Computer Networks and Internet 48 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 49 Darshan Institute of Engineering & Technology
Data Link Layer
▪ The data link layer is responsible for moving frames from one hop
(node) to the next.
Unit: 1 - Introduction to Computer Networks and Internet 50 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 51 Darshan Institute of Engineering & Technology
Network Layer
Unit: 1 - Introduction to Computer Networks and Internet 52 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 53 Darshan Institute of Engineering & Technology
Transport Layer
Unit: 1 - Introduction to Computer Networks and Internet 54 Darshan Institute of Engineering & Technology
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
Unit: 1 - Introduction to Computer Networks and Internet 55 Darshan Institute of Engineering & Technology
Session Layer
Unit: 1 - Introduction to Computer Networks and Internet 56 Darshan Institute of Engineering & Technology
Session Layer – Cont…
▪ This layer is network dialog controller – establishes, maintains,
synchronizes the interaction among computers.
▪ Session layer is concerned with:
✔ Dialog control
✔ Synchronization
Unit: 1 - Introduction to Computer Networks and Internet 57 Darshan Institute of Engineering & Technology
Presentation Layer
Unit: 1 - Introduction to Computer Networks and Internet 58 Darshan Institute of Engineering & Technology
Presentation Layer – Cont…
▪ This layer is concerned with the syntax which refers to order in
which data is presented and semantics helps in interpreting a
particular pattern.
▪ Presentation layer is responsible for:
✔ Translation
✔ Encryption
✔ Compression
Unit: 1 - Introduction to Computer Networks and Internet 59 Darshan Institute of Engineering & Technology
Application Layer
Unit: 1 - Introduction to Computer Networks and Internet 60 Darshan Institute of Engineering & Technology
Application Layer – Cont…
▪ This layer provides various services like:
✔ Network virtual terminal
✔ File transfer, access and management
✔ Mail services
✔ Directory services
Unit: 1 - Introduction to Computer Networks and Internet 61 Darshan Institute of Engineering & Technology
Summary – OSI 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
Unit: 1 - Introduction to Computer Networks and Internet 62 Darshan Institute of Engineering & Technology
TCP/IP Reference Model
(Transmission Control Protocol/Internet Protocol)
Unit: 1 - Introduction to Computer Networks and Internet 63 Darshan Institute of Engineering & Technology
TCP/IP Model Architecture
Unit: 1 - Introduction to Computer Networks and Internet 64 Darshan Institute of Engineering & Technology
Difference
TCP/IP
OSI
(Transmission Control Protocol/
(Open System Interconnection)
Internet Protocol)
It has 7 layers It has 5 layers
OSI provides layer functioning and also TCP/IP model is more based on
defines functions of all the layers protocols and protocols are not
flexible with other layers
In OSI model the transport layer In TCP/IP model the transport layer
guarantees the delivery of packets does not guarantees delivery of
packets
Follows horizontal approach Follows vertical approach
OSI model has a separate presentation TCP/IP doesn’t have a separate
layer presentation layer
OSI is a general model TCP/IP model cannot be used in
any other application
Unit: 1 - Introduction to Computer Networks and Internet 65 Darshan Institute of Engineering & Technology
Difference - Cont…
TCP/IP
OSI
(Transmission Control Protocol/
(Open System Interconnection)
Internet Protocol)
Network layer of OSI model provide The Network layer in TCP/IP model
both connection oriented and provides connectionless service
connectionless service
OSI model has a problem of fitting the TCP/IP model does not fit any
protocols in the model protocol
Protocols are hidden in OSI model and In TCP/IP, replacing protocol is not
are easily replaced as the technology easy
changes
OSI model defines services, interfaces In TCP/IP, it is not clearly
and protocols very clearly and makes separated its services, interfaces
clear distinction between them and protocols
Unit: 1 - Introduction to Computer Networks and Internet 66 Darshan Institute of Engineering & Technology
Protocol Layers: Summary
Unit: 1 - Introduction to Computer Networks and Internet 67 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 69 Darshan Institute of Engineering & Technology
Delay – Cont…
▪ Queuing Delay (dqueue)
✔ A time to wait at output link for transmission.
✔ Depends on congestion level of router.
✔ If queue is empty then delay will be zero.
✔ If queue is full (heavy traffic) then delay will be long.
✔ Delay in terms of micro second to millisecond.
Unit: 1 - Introduction to Computer Networks and Internet 70 Darshan Institute of Engineering & Technology
Delay – Cont…
▪ Transmission Delay (dtran = L/R)
✔ An amount of time required for the router to transmit the packet.
✔ Its depends on packet length(L) and transmission rate(R) of link.
Unit: 1 - Introduction to Computer Networks and Internet 71 Darshan Institute of Engineering & Technology
Delay – Cont…
▪ Propagation Delay (dprop= d/s)
✔ A time required to propagate from the beginning of the link to router B.
✔ Depends on the length of physical medium(d) link and propagation speed(s)
of link
✔ Delay in terms of millisecond.
Unit: 1 - Introduction to Computer Networks and Internet 72 Darshan Institute of Engineering & Technology
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.
Unit: 1 - Introduction to Computer Networks and Internet 73 Darshan Institute of Engineering & Technology
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)
Unit: 1 - Introduction to Computer Networks and Internet 74 Darshan Institute of Engineering & Technology
History of Computer Networks
▪ 1961-1972 : The development of Packet Switching
▪ 1972-1980 : Proprietary Network and Internetworking
▪ 1980-1990 : A Proliferation of Networks
▪ 1990s : The Internet Explosion
▪ Recent Developments…
Unit: 1 - Introduction to Computer Networks and Internet 75 Darshan Institute of Engineering & Technology
Outline - Revised
▪ What is Computer Network? Connected each other
▪ Advantages of Computer Network
▪ Applications of Computer Network
▪ Type of Computer Network LAN, MAN, WAN
▪ What is Internet? Infinite nos. of connected computers across the world
▪ What is Protocol? Set of Rules
▪ The Network Edge Host-end system & edge router
▪ The Network Core Circuit Switched & Packet Switched
▪ Transmission Media Guided- Wired & Unguided-Wireless
▪ Network Topologies Bus, Ring, Star, Mesh, Tree, & Hybrid
▪ Protocol Layers OSI Layer & TCP/IP Layer
▪ Delay, Loss & Throughput
Unit: 1 - Introduction to Computer Networks and Internet 76 Darshan Institute of Engineering & Technology
Thank You
Unit: 1 - Introduction to Computer Networks and Internet 77 Darshan Institute of Engineering & Technology