Computer
Networking
By
Dr. Md. Ekramul Hamid
Associate Professor
Department of CSE, RU
(Ph :01726420004, Email : ekram_hamid@[Link])
Course Content
Course Content
Lecture 1: Introduction to Computer Network
Lecture 2: Network Topology and Network Hardware
Lecture 3: Network Hardware and Layering concept
Lecture 4: Introduction to Internet
Lecture 5: Ethernet and home network
Lecture 6: Network security, other topics and Revision
Books
References
Andrew S. Tanenbaum, Computer Network, Prentice-
Hall
Doughlas E. Comer, Computer Networks and Internet
[Link]
html
[Link]
[Link]
Introduction to Computer Networks
INTRODUCTION TO COMPUTER
NETWORKS
Computer Networks
Computer Networks Definition
Computer network connects two or
more autonomous computers.
A computer network is defined as
having two or more devices (such
as workstations, printers, or
servers) that are linked together
for the purpose of sharing
information, resources, or both.
The computers can be
geographically located anywhere.
The Telephone Network
The Telephone Network
• Telephone was patented by G. Bell in 1876.
• For one telephone to be able to talk with
another telephone, a direct connection
between the two telephones was needed.
– Within one year, cities were covered with a
wild jumble of wires!
The Telephone Network
The Telephone Network
• In 1878, the Bell Telephone company opened its first
switching office (in New Haven, CT).
• Each user would connect to the local switching office.
– When a user wanted to make a call, s/he rang to
the office, and would be manually connected to
the other end.
Switching office
The Telephone Network
The Telephone Network
• To allow for long-distance calls, switching offices
(switches) were connected .
• Several connections can go through inter-switch
trunks simultaneously.
• At some point, there were too many connections
between switching offices!
The Telephone Network
The Telephone Network
• Thus, a second-level hierarchy was added.
• The current telephone system has five levels of
hierarchy.
Computer Networks
Networking
• What is the Objective of Networking?
Communication between applications on different computers
and share resources.
Four Steps to Networking
• Communicating across a link
• Connecting together multiple links (internetworking)
• Finding and routing data to nodes on internet work
• Matching application requirements
Computer Networks
Networking- First Step
• Creating a link between nodes
• Link: path followed by bits
– Wired or wireless
– Broadcast or point-to-point (or both)
• Node: any device connected to a link
Types of Links
Point-to-Point Multiple Access
…
Computer Networks
Transmission Modes
• Unicast
– Transmission to single specific receiver
• Broadcast
– Transmission to all network nodes
• Multicast
– Transmission to specific subset of nodes
• Anycast
– Transmission to one of a specific subset of nodes
Introduction to Computer Networks
Why Computer Network?
(File Print and Application Services)
• Computer networks offer file
and print services.
• In networks, different
computers take on specialized
roles or functions.
• Once connected, one or more
computers in the network can
function as network file
servers.
• The server is a repository for
files that can be accessed and
shared across the network by
many users.
Introduction to Computer Networks
File, Database and Application Services
• All network operating
systems offer file and
print services.
• Sharing information,
collaborating on projects,
and providing access to
input and output devices
are common services of
computer networks.
Introduction to Computer Networks
Why Computer Network?
(Mail Services)
• E-mail services work like the
postal system, with one computer
taking on the function of post
office.
• The user e-mail account operates
like a post office box, where mail
is held for the user until it is
picked up over the network by an
e-mail client program running in
the user system.
• The e-mail is sent from the client
computer to the server, which acts
as the post office. The server
sends it to the e-mail address.
Components of a Network
Components of a Network
Components of a Network
Protocols
Human protocol vs Computer network protocol:
A series of functions performed at different locations.
Hi TCP connection
req.
Hi
TCP connection
Got the reply.
time?
2:00
<file>
time
Classification of Computer Network
Classification of Computer Network
On the basis of functional relationship
Peer to peer, Client-Server
On the basis of scale or extent of reach of network
LAN, MAN, WAN
On the basis of connection method
hardware technology: Wired, Wireless, Hybrid
On the basis of network topology
Physical layout: Mesh, Star, Bus, Ring, Hybrid
Classification of Computer Network
Peer-to-Peer Network
• In a peer-to-peer network, the
networked computers act as
equal partners, or peers, to
each other.
• As peers, each computer can
take on the client function or
the server function alternately.
Classification of Computer Network
Client/Server Networks
• In a client/server network
arrangement, network services
are located in a dedicated
computer whose only function is
to respond to the requests of
clients.
• The server contains the file,
print, application, security, and
other services in a central
computer that is continuously
available to respond to client
requests.
Introduction to Computer Networks
LAN, MAN & WAN
Network in small geographical Area (Room, Building or
a Campus) is called LAN (Local Area Network)
Network in a City is call MAN (Metropolitan Area
Network)
Network spread geographically (Country or across
Globe) is called WAN (Wide Area Network)
Local Area Network
Local Area Network
• A local-area network (LAN)
can connect many
computers in a relatively
small geographical area
such as a home, an office,
or a campus.
• It allows users to access
high bandwidth media like
the Internet and allows
users to share devices such
as printers.
Local Area Network
Applications of LAN
Resource Sharing
Hardware (computing resources, disks, printers)
Software (application software)
Information Sharing
Easy accessibility from anywhere (files, databases)
Search Capability (WWW)
Communication
Email
Message broadcast
Remote computing
Distributed processing
Metropolitan Area Network
Metropolitan Area Network
• Extends over an entire city
• It may be a single network or a means of connecting a
number of LANs together.
Wide-Area Networks
Wide-Area Networks (WANs)
• A WAN, as the name implies, is
designed to work over a larger
area than a LAN.
• Generally covers a country, a
continent and can be extended to
the whole world. Ex. Internet
Wide-Area Networks
Wide-Area Networks (WANs)
• The following are some of the more common WAN
technologies:
– Modems
– Integrated Services Digital Network (ISDN)
– Digital subscriber line (DSL)
– Frame Relay
– Asynchronous Transfer Mode (ATM)
– The T (US) and E (Europe) Carrier series (T1,
E1, T3, E3, and so on)
– Synchronous Optical Network (SONET)
Wide-Area Networks
Wide-Area Networks (WANs)
• Connections across WAN lines
may be temporary or
permanent.
• Telephone or dialup lines, might
make a temporary connection to
a remote network from a
computer in a home or small
office.
• In both temporary and
permanent cases, computers
that connect over wide area
circuits must use a modem at
each end of the connection.
Network Topology
Network Topology
The network topology
defines the way in which
computers, printers, and
other devices are
connected.
A network topology
describes the layout of
the wire and devices as
well as the paths used by
data transmissions.
Network Topology
Bus Topology
Commonly referred to as
a linear bus, all the
devices on a bus
topology are connected
by one single cable.
Network Topology
Star & Tree Topology
The star topology is the most
commonly used architecture in
Ethernet LANs.
When installed, the star topology
resembles spokes in a bicycle wheel.
Larger networks use the extended
star topology also called tree
topology. When used with network
devices that filter frames or packets,
like bridges, switches, and routers,
this topology significantly reduces the
traffic on the wires by sending
packets only to the wires of the
destination host.
Network Topology
Ring Topology
A frame travels around the ring, stopping
at each node. If a node wants to transmit
data, it adds the data as well as the
destination address to the frame.
The frame then continues around the ring
until it finds the destination node, which
takes the data out of the frame.
Single ring – All the devices on the
network share a single cable
Dual ring – The dual ring topology
allows data to be sent in both
directions.
Network Topology
Mesh Topology
The mesh topology connects
all devices (nodes) to each
other for redundancy and fault
tolerance.
It is used in WANs to
interconnect LANs and for
mission critical networks like
those used by banks and
financial institutions.
Implementing the mesh
topology is expensive and
difficult.
Network Hardware
Network Hardware
Network Hardware
Network Interface Card
• A network interface card (NIC) is
a device that plugs into a
motherboard and provides ports
for the network cable
connections.
• It is the computer interface with
the LAN.
• The NIC communicates with the
network through serial
connections and communicates
with the computer through
parallel connections.
Network Hardware
Network Interface Card
Network Hardware
Network Interface Card
NIC NIC
Network Hardware
Network Interface Card
USB wireless adapter
USB wireless adapter
This PCI card adds wireless networking to a desktop PC.
Network Hardware
Networking Media
• Electrical (copper)
•Coaxial Cable
•Single copper conductor in the center surrounded by a plastic layer for
insulation and a braided metal outer shield.
•Twisted pair
•Four pairs of wires twisted to certain specifications.
•Available in shielded and unshielded versions.
• Fiber-optic - A cable, consisting of a center glass core surrounded by layers of
plastic, that transmits data using light rather than electricity.
• Atmosphere/Wireless – Uses Electromagnetic waves. whose frequency
range is above that of microwaves, but below that of the visible spectrum.
• Choose Media based on :
• Wiring configurations
• Distance and location limitations
• Speed
• Reliability
• Security
• Budget
Network Hardware
Networking Media
• Wire • Wireless
Network Hardware
Networking Media
Networking media can be
defined simply as the
means by which signals
(data) are sent from one
computer to another
(either by cable or
wireless means).
Network Hardware
Copper - Twisted Pair
• Dialup over telephone line.
– DSL (Digital Subscriber Line)
• High-speed (256 Kbps – 55 Mbps), Full-
duplex.
• Asymmetric Digital Subscriber Line
(ADSL) and High-bit-rate Digital
Subscriber Line (HDSL)
• CAT5
– Ethernet cable standard defined by the
Electronic Industries Association and
Telecommunications Industry Association
(EIA/TIA).
– Speeds up to 100 Mbps.
• Connector
– RJ-45 - Standard connectors used for
unshielded twisted-pair cable.
Network Hardware
Optical Fiber
• Infrared light is transmitted through fiber and confined
due to total internal reflection.
• Fibers can be made out of either plastic or glass.
• Used for high speed backbones and pipes over long
distances.
•Comparatively expensive.
Network Hardware
Wireless Media
•Wireless LAN or WLAN
• Wireless local area network that uses radio
waves as its carrier
•Wi-Fi ("Wireless Fidelity“)
• A set of standards for WLANs based on
IEEE 802.11
•Wi-Max
• Emerging technology that can cover
ranges up to 10 miles or more
•Satellite/Microwave
• High speed media used for longer
distances and remote locations
Network Hardware
Networking Devices
HUB,
Switches,
Routers,
Wireless Access Points
Modems etc.
Network Hardware
Networking Devices
• Hub OSI Model Layers
– An unintelligent network device that sends 7 Application
one signal to all of the stations connected 6 Presentation
to it. 5 Session
– All computers/devices are competing for 4 Transport
attention because it takes the data that 3 Network
comes into a port and sends it out all the 2 Data Link
other ports in the hub. 1 Physical
– Traditionally, hubs are used for star
topology networks, but they are often used
with other configurations to make it easy
to add and remove computers without
bringing down the network.
– Intelligent hub- signal regeneration,
amplification, path selection
– Resides on Layer 1 of the OSI model
Network Hardware
Networking Devices
• Switch OSI Model Layers
– Split large networks into small segments, 7 Application
decreasing the number of users sharing 6 Presentation
the same network resources and 5 Session
bandwidth. 4 Transport
– Understands when two devices want to 3 Network
talk to each other, and gives them a 2 Data Link
switched connection 1 Physical
– Helps prevent data collisions and reduces
network congestion, increasing network
performance.
– Most home users get very little, if any,
advantage from switches, even when
sharing a broadband connection.
– Resides on Layer 2 of the OSI model.
Network Hardware
Networking Devices
• Bridge OSI Model Layers
– Connects two LANs and forwards or filters 7 Application
data packets between them.
6 Presentation
– Connect networks having different 5 Session
protocol.
4 Transport
– Forward data depending on the Hardware 3 Network
(MAC) address, not the Network address
2 Data Link
(IP).
1 Physical
– Resides on Layer 2 of the OSI model.
Network Hardware
Networking Devices
• Repeater OSI Model Layers
– Used to boost/amplify the signal between 7 Application
two cable segments or wireless access 6 Presentation
points. 5 Session
– Can not connect different network 4 Transport
architecture. 3 Network
– Does not simply amplify the signal, it 2 Data Link
regenerates the packets and retimes 1 Physical
them.
– Resides on Layer 1 of the OSI model.
Network Hardware
Networking Devices
• Router
OSI Model Layers
– A device that connects any number of
LANs. 7 Application
– Uses standardized protocols to move 6 Presentation
packets efficiently to their destination. 5 Session
– More sophisticated than bridges, 4 Transport
connecting networks of different types (for 3 Network
example, star and token ring)
2 Data Link
– Forwards data depending on the Network
address (IP), not the Hardware (MAC) 1 Physical
address.
– Routers are the only one of these four
devices that will allow you to share a
single IP address among multiple network
clients.
– Resides on Layer 3 of the OSI model.
Network Hardware
Networking Devices (Modems)
• The modem is an electronic
device that is used for
modulation. (computer
communications through
telephone lines.)
• It allows data transfer between
one computer and another.
• There are four main types of
modems:
– Expansion cards
– PCMCIA
– External modems
– Built-in modems
Network Hardware
Communication Links
• Switched, dial-up telephone line
– A circuit is temporarily established between
the caller and callee
– Analog medium
– Requires modem at both ends to transmit
information produced by a computer
• Computer produces digital information
Network Hardware
Communication Links
Network Hardware
Communication Links
Modulation
Network Hardware
Communication Links
• Dial-up phone links
– Transmission rate: 56,000 bps (56 Kbps)
• Broadband
– Transmission rate: exceeding 128,000 bps
(128 Kbps)
Network Hardware
Communication Links
• Options for broadband communications
– Home use
• Digital subscriber line (DSL)
• Cable modem
– Commercial and office environment
• Ethernet
• Fast Ethernet
• Gigabit Ethernet
Network Hardware
Communication Links
Transmission Time of an Image at Different Transmission Speeds
Layering
Introduction to Internet
Introduction to Computer Networks
What is Internet
• A network of networks, joining many
government, university and private
computers together and providing an
infrastructure for the use of E-mail,
bulletin boards, file archives, hypertext
documents, databases and other
computational resources
• The vast collection of computer
networks which form and act as a
single huge network for transport of
data and messages across distances
which can be anywhere from the
same office to anywhere in the world.
Introduction to Computer Networks
Internet protocol
• A protocol
– A mutually agreed upon set of rules,
conventions, and agreements for the efficient
and orderly exchange of information
• TCP/IP
– The Internet protocol hierarchy
– Governs the operation of the Internet
– Five layers
Introduction to Computer Networks
Internet Infrastructure
Backbone Network Regional
Network
Regional
Network
IXP
local ISP IXP
Backbone Network
Regional IXP Regional
local ISP Network
Network
corporate campus
local ISP
network network
Backbone: High bandwidth channel to connect networks
IXP: Internet Exchange Point
Introduction to Computer Networks
Assigning Identifiers for the Internet
• Who gives the university the domain name “[Link]”
• Who assigns it the network prefix “[Link]”?
• Who assigns port 80 as the default port for web servers?
• The functions associated with the assignment of numbers is
referred to as Internet Assigned Number Authority (IANA).
• IANA used to be managed by Jon Postel at ISI
• Since the 1990s, IP addresses and domain name allocation
are delegated to independent organizations. Different
organizations are responsible for allocating domain names
and IP addresses
Introduction to Computer Networks
The IANA Function
• The functions associated with the assignment of numbers in
the Internet is referred to as Internet Assigned Number
Authority (IANA).
• IANA serves as a registry that keeps records of assigned
numbers:
– IP addresses
– Protocol numbers
– Domain names (until 1992)
• There is no charge for allocation.
Introduction to Computer Networks
Regional Internet Registries (RIRs)
• Registration and management of IP address is done by Regional Internet
Registries (RIRs)
• Where do RIRs get their addresses from: IANA maintains a high-level
registry that distributes large blocks to RIRs
• RIR are administer allocation of:
– IPv4 address blocks
– IPv6 address blocks
– Autonomous system (AS) numbers
• There are currently 4 RIRs worldwide:
– APNIC (Asia/Pacific Region),
– ARIN (North America and Sub-Sahara Africa),
– LACNIC (Latin America and some Caribbean Islands)
– RIPE NCC (Europe, the Middle East, Central Asia, and African
countries located north of the equator).
• A fifth regional registry (AfriNIC) is in formation for Africa.
Introduction to Computer Networks
Internet Growth Trends
• 1977: 111 hosts on Internet
• 1981: 213 hosts
• 1983: 562 hosts
• 1984: 1,000 hosts
• 1986: 5,000 hosts
• 1987: 10,000 hosts
• 1989: 100,000 hosts
• 1992: 1,000,000 hosts
• 2001: 150 – 175 million hosts
• 2002: over 200 million hosts
• By 2010, about 80% of the planet will be on the Internet
Introduction to Computer Networks
Overall Structure of the Internet
Introduction to Computer Networks
Internet Service Provider (ISP)
• Services of an Internet Service Provider (ISP) are
required to surf the Internet.
• An ISP is a company that connects computers to
the Internet and World Wide Web.
• The actual connection to the Internet is tiered.
• The ISP may link to a larger regional ISP, which in
turn might connect to one of a number of
nationwide computer centers.
Introduction to Computer Networks
Structure of a Network Using an ISP
Introduction to Computer Networks
Hierarchy of Internet Service Providers
Introduction to Computer Networks
Digital Subscriber Line (DSL)
• Digital Subscriber Line (DSL) is an always-on
technology. This means there is no need to dial up
each time to connect to the Internet.
• DSL comes in several varieties:
– Asymmetric DSL (ADSL)
– High Data Rate DSL (HDSL)
– Symmetric DSL (SDSL)
– Very High Data Rate DSL (VDSL)
Introduction to Computer Networks
Digital Subscriber Line (DSL)
Introduction to Computer Networks
ISDN
• Another alternative to using
analog telephones lines to
establish a connection is ISDN.
• Speed is one advantage ISDN
has over telephone line
connections.
• ISDN uses a pair of 64Kbps
digital lines to connect, which
provides a total of 128Kbps
throughput.
• A telephone line connects at a
maximum speed of 56Kbps, and
in some areas, doesn’t even
reach that.
Introduction to Computer Networks
Satellite
• Satellite is an option for users in
rural areas or with no other access
to high speed Internet service.
• Satellite Internet does not require
a phone line or cable. Two-way
communication, for upload and
download, is achieved with the
use of a satellite dish.
• Download speed is up to 500
kbps while the upload speed is
one-tenth of that.
Introduction to Computer Networks
World Wide Web
◼Development completed in May 1991
◼The World Wide Web is an information system
based on the concept of hypertext
◼Components
❑ Hypertext
◼A collection of documents interconnected by
pointers called links
❑ URL (Uniform Resource Locator)
◼The worldwide identification of a Web page located
on a specific host computer
Introduction to Computer Networks
World Wide Web
Introduction to Computer Networks
Application Protocols on the Internet
Introduction to Computer Networks
Hypertext Documents
Introduction to Computer Networks
INTERNET ADDRESS
• It’s a 32 bits, 4-part period delimited, decimal address
called IP number or IP address :
[Link]
• each part can vary from 1 to 254 (0 and 255 are reserved
for the net and the broadcast)
• each network interface card attached to Internet mast
have an unique IP address
• the IP address can be split in two parts:
• network
• host
• CLASSES : class A net : [Link] NNN: 1 to 127
class B net : [Link] NNN: 128 to 191
class C net : [Link] NNN: 192 to 223
Introduction to Computer Networks
DOMAIN NAMES
• For convenience a domain name is normally
assigned to each machine (for people remembering
names is easier than numbers).
• The name is assigned meaning with the most general
part on the right (opposite to IP addresses):
[Link]
for ex. :
[Link]
[Link]
• This allows the IP number to be changed while the
user using the name sees no change.
• To convert names into numbers you need the Domain
Name System (DNS), a hierarchical domain-based
naming scheme with a distributed database system.
Introduction to Computer Networks
Internet Domain Names
Introduction to Computer Networks
Anatomy of an Internet Connection
Introduction to Computer Networks
Transiting the Internet
Layering
Implement your home network
Introduction to Computer Networks
THE ETHERNET
Ethernet is the most widely used local area network (LAN)
technology. The original and most popular version of Ethernet
supports a data transmission rate of 10 Mb/s. Newer versions of
Ethernet called "Fast Ethernet" and "Gigabit Ethernet" support
data rates of 100 Mb/s and 1 Gb/s (1000 Mb/s).
– Two ways to construct an Ethernet LAN
• Shared cable
• Hubs: the most widely used technology
Introduction to Computer Networks
Ethernet LAN using shared cable
Introduction to Computer Networks
Ethernet LAN using a Hub
Network Hardware
Ethernet Cables
PARTS LIST
You'll need several feet of
• CAT 5/5e/6 cable,
• RJ45 ends and
• an RJ45 crimper
to complete this.
Network Hardware
Ethernet Cables
Network Hardware
RJ45 Jack and Plug Pin out
The RJ45 end is a 8-position modular connector that looks like a large phone plug.
Network Hardware
Ethernet Specifications
• 10BaseT
– Ethernet specification for unshielded twisted pair cable (category 3, 4, or
5), transmits signals at 10 Mbps (megabits per second) with a distance
limit of 100 meters per segment.
• 10BaseF
– Ethernet specification for fiber optic cable, transmits signals at 10 Mbps
(megabits per second) with a distance limit of 2000 meters per segment.
• 100BaseT
– Ethernet specification for unshielded twisted pair cabling that is used to
transmit data at 100 Mbps (megabits per second) with a distance limit of
100 meters per segment.
• 1000BaseTX
– Ethernet specification for unshielded twisted pair cabling that is used to
transmit data at 1 Gbps (gigabits per second) with a distance limitation
of 220 meters per segment.
Network Hardware
Wires Color
There are two basic cables.
A straight through cable, which is used to connect to a hub or switch
RJ45 Pin # Wire Color Wire Diagram Signal*
1 White/Green Transmit+
Standard, Straight-Through Wiring
2 Green Transmit-
(both ends are the same):
568A
3 White/Orange Receive+
4 Blue Unused
5 White/Blue Unused
6 Orange Receive-
7 White/Brown Unused
8 Brown Unused
Network Hardware
Wires Color
A cross-over cable used to operate in a peer-to-peer fashion without a hub/switch.
RJ45 Pin # (END 1) Wire Color Diagram End #1 RJ45 Pin # (END 2) Wire Color Diagram End #2
1 White/Orange 1 White/Green
2 Orange 2 Green
3 White/Green 3 White/Orange
4 Blue 4 Blue
5 White/Blue 5 White/Blue
6 Green 6 Orange
7 White/Brown 7 White/Brown
8 Brown 8 Brown
Cross-Over Cable
Introduction to Computer Networks
Sample LAN Implementation
Home Configuration
Introduction to Computer Networks
Sample LAN Implementation
Business Configuration
Introduction to Computer Networks
Sample LAN Implementation
Business Configuration
Make Connectivity
Share a folder
View folder
Layering
Network security
Introduction to Computer Networks
Attacks, Mechanisms and Services
Security Attack: Any action that compromises the
security of information.
Security Mechanism: A mechanism that is designed
to detect, prevent, or recover from a security attack.
Security Service: A service that enhances the
security of data processing systems and information
transfers. A security service makes use of one or
more security mechanisms.
Introduction to Computer Networks
Security Attacks
Security threads
Introduction to Computer Networks
Security Attacks
• Interruption: This is an attack on availability
• Interception: This is an attack on
confidentiality
• Modification: This is an attack on integrity
• Fabrication: This is an attack on authenticity
Introduction to Computer Networks
Security Services
• Confidentiality (privacy)
• Authentication (who created or sent the data)
• Integrity (has not been altered)
• Access control (prevent misuse of resources)
• Availability
Introduction to Computer Networks
Methods of Defense
• Encryption
• Software Controls (access limitations in a data base,
in operating system protect each user from other
users)
• Hardware Controls (smartcard)
• Policies (frequent changes of passwords)
• Physical Controls
• Firewall based access restrictions
Introduction to Computer Networks
Network Security
• Firewall
Introduction to Computer Networks
Summary
• Computer network: a set of independent
computer systems connected by
telecommunication links
• Options for transmitting data on a network:
dial-up telephone lines, DSL, cable
modem, Ethernet, Fast Ethernet
• Types of networks: local area network
(LAN) and wide area network (WAN)
Introduction to Computer Networks
Summary
• The Internet is a huge interconnected
"network of networks"
• TCP/IP is the Internet protocol hierarchy,
composed of five layers: physical, data
link, network, transport, and application
• The World Wide Web is an information
system based on the concept of hypertext
Thank You…