Computer Networks Week 1
Computer Networks Week 1
@ Mahmood Khan 1
General Information
Instructor: Mahmood Khan Khadagzai
Assistant Professor in CS, SBBU
◦ E-mail: [email protected]
◦ Cell #: 0314-9467978
@ Mahmood Khan 4
Course Contents /Outlines
Data Communication Concepts
Analog and Digital Transmission
Noise
Media
Encoding
Asynchronous and Synchronous Transmission
Network System Architectures (OSI, TCP/IP)
Error Control
Flow Control
Data Link Layer Protocols
Bridging
@ Mahmood Khan 5
Course Contents /Outlines..
Local Area Networks and MAC layer Protocols
Multiplexing
Switched and IP Networks
Inter-networking
Routing
Transport Layer Protocols TCP
UDP and SCTP
Application Layer Protocols
Wireless LANs
Lab exercises using tools such as Wireshark, OpNet,
@ Mahmood Khan 8
Data Communication &
Telecommunication
Data Communications: the movement of computer
information from one point to another by means of
electrical or optical transmission systems (called
networks).
Telecommunications: broader term that includes the
@ Mahmood Khan 9
Why We Need to Know About Data
Communication?
Enhances decision makers’ efficiency and
effectiveness
Enables organizations to use e-mail and electronic
@ Mahmood Khan 10
Effects of Data Communication
Technologies
Online training for employees can be provided via
virtual classrooms
Internet searches for information keep employees up
to date
Facilitate lifelong learning
Boundaries between work and personal life are less
@ Mahmood Khan 11
Basic Concepts in a Data
Communication System
Bandwidth
• Amount of data that can be transferred from one
point to another in a certain time period
Attenuation
@ Mahmood Khan 12
Basic Concepts in a Data
Communication System
Narrowband
• Voice-grade transmission channel capable of transmitting
a maximum of 56,000 bps, so only a limited amount of
information can be transferred
Protocols
• Rules that govern data communication
Error detection, message length, and transmission
speed
@ Mahmood Khan 13
Components of a Data
Communication System
Communica
tion medium
@ Mahmood Khan 14
Forms of Sender and Receiver
Devices
Input/output device, or thin client
• Used only for sending or receiving information
• It has no processing power
Smart terminal
@ Mahmood Khan 15
Forms of Sender and Receiver
Devices
Net-book computer
• Low-cost, diskless computer used to connect to the
Internet or a LAN
• Net-book computers run software off servers and
save data to servers
Minicomputers, mainframes, and supercomputers
@ Mahmood Khan 16
Forms of Sender and Receiver
Devices
Smart-phones
• mobile phones with advanced capabilities, with a
built in keyboard or an external USB keyboard
Video game console
• Receives instructions from a game player and
produces a video display signal on a monitor
@ Mahmood Khan 17
Modems
Device that connects a user to the Internet
• Short for modulator-demodulator
• Not required for all Internet connections
Types
@ Mahmood Khan 18
Types of Communication Media
@ Mahmood Khan 19
Processing Configurations
Centralize Decentrali
d zed
Distribute
d
@ Mahmood Khan 20
Centralized Processing
Processing is done at one central computer
Used in early days of computer technology because:
@ Mahmood Khan 21
Decentralized Processing
Each user, department, or division has its own computer for
performing processing tasks
Advantage
• Responsive to users
Disadvantages
• Lack of coordination among organizational units
• High costs of having many systems
• Duplication of efforts
@ Mahmood Khan 22
Distributed Processing
Maintains centralized control and decentralized operations
Advantages
• Accessing unused processing power is possible
• Computer power can be added or removed
• Distance and location are not limiting
• More compatible with organizational growth
• Fault tolerance is improved
• Resources can be shared to reduce costs
@ Mahmood Khan 23
Distributed Processing
• Advantages
• Reliability is improved
• More responsive to user needs
Disadvantages
• More security and privacy challenges
• Incompatibility between various pieces of equipment
• Managing the network is challenging
@ Mahmood Khan 24
Open Systems Interconnection
Model
Seven-layer architecture for defining how data is
transmitted in a network
Standardizes interactions between network computers
exchanging information
Layers in the architecture
• Application: Serves as the window through which
applications access network services
• Presentation: Formats message packets
@ Mahmood Khan 25
Open Systems Interconnection
Model
• Layers in architecture
• Session: Establishes a communication session
between computers
• Transport: Generates the receiver’s address and
ensures the integrity of messages
• Network: Routes messages
• Data link: Oversees the establishment and control of
the communication link
• Physical: Defines the physical medium used for
communication
@ Mahmood Khan 26
Network Interface Card (NIC)
@ Mahmood Khan 27
Network Components
Local area networks contain three basic hardware
components:
◦ Servers (also called hosts or host computers)
◦ Clients
◦ Circuits
Clients and Servers typically work together in client-
server networks. Networks without servers are called
peer-to-peer networks.
Routers are specialized devices responsible for moving
information between networks, are also a common
network component.
Server types: file servers, print servers, Web servers, e-
mail and directory servers.
@ Mahmood Khan 28
Figure 1-1. Components of a Network
@ Mahmood Khan 29
Types of Networks
• Designed to handle data communication for multiple organizations in a city and nearby
cities as well
@ Mahmood Khan 30
Network Types
A common way of thinking about networks is by the scale of
the network. 4 common network types are:
◦ Local Area Networks (LANs) which typically occupy a
room or building, usually include a group of PCs that share
a circuit.
◦ Backbone Networks, have a scale of a few hundred meters
to a few kilometers. Include a high speed backbone linking
the LANs at various locations.
◦ Metropolitan Area Networks (MANs) which typically have
a scale of a few kilometers to a few tens of kilometers &
connects LANs and BNs at different locations, often using
leased lines or other commercial services to transmit data.
◦ Wide Area Networks (WANs) have a scale of hundreds or
thousands of kilometers. Like MANs, leased circuits or
other commercially available services are used to transmit
data.
@ Mahmood Khan 31
A Local Area Network
@ Mahmood Khan 32
A Wide Area Network
@ Mahmood Khan 33
A Metropolitan Area Network
@ Mahmood Khan 34
Network Standards
@ Mahmood Khan 35
Why Standards?
Standards provide a fixed way for hardware and/or
software systems to communicate.
For example, USB enables two pieces of equipment to
interface even though they are manufactured by different
companies.
By allowing hardware and software from different
companies to interconnect, standards help promote
competition.
@ Mahmood Khan 36
Types of Standards
@ Mahmood Khan 37
The Standardization Processes Three Steps
Specification: developing the nomenclature and
identifying the problems to be addressed.
Identification of choices: identify solutions to the
problems and choose the “optimum” solution.
Acceptance: defining the solution, getting it
recognized by industry so that a uniform solution is
accepted.
@ Mahmood Khan 38
Some Major Standards Making Bodies
ISO: International Organization for Standardization (
www.iso.ch)
ITU-T: International Telecommunications Union –
www.ansi.org)
IEEE: Institute of Electrical and Electronic Engineers
(see standards.ieee.org)
IETF: Internet Engineering Task Force (www.ietf.org)
@ Mahmood Khan 39
Network Topologies
Represents a network’s physical layout including the
arrangement of computers and cables
Types
• Star
• Ring
• Bus
• Hierarchical
• Mesh
@ Mahmood Khan 40
Star Topology
Consists of a central computer and a series of nodes
Advantages
@ Mahmood Khan 41
Ring Topology
No host required as each computer manages its own
connectivity
Each node is connected to two other nodes
• Upstream neighbor and downstream neighbor
Transmission is in one direction
Needs less cable than star topology
Diagnosing problems and modifying the network are more
difficult
@ Mahmood Khan 42
Bus Topology
Connects nodes along a network segment
• Ends of the cable aren’t connected
• Terminator: Hardware device used at each end of the cable to
absorb the signal
Advantages
• Easy to extend and reliable
• Wiring layout is simple and uses the least amount of cable of
any topology, which keeps costs down
• Best for handling steady traffic
@ Mahmood Khan 43
Bus Topology
Disadvantages
• Fault diagnosis is difficult
• Bus cable can be a bottleneck when network traffic
is heavy
@ Mahmood Khan 44
Hierarchical Topology
Combines computers with different processing
strengths in different organizational levels
Used by traditional mainframe networks
◦ Mainframe computer is at the top
◦ Front-end processors (FEPs) are at the next level
◦ Controllers and multiplexers are at the next level
◦ Terminals and workstations are at the bottom level
@ Mahmood Khan 45
Hierarchical Topology
• Controller: Hardware and software device that
controls data transfer from a computer to a
peripheral device
• Multiplexer: Hardware device that allows several
nodes to share one communication channel
Advantage
@ Mahmood Khan 46
Mesh Topology
Every node is connected to every other node
• Otherwise known as plex or interconnected
Advantage
• Highly reliable
Disadvantages
• Expensive
• Difficult to maintain and expand
@ Mahmood Khan 47
Major Networking Concepts
Protocols TCP/IP
Routing Routers
@ Mahmood Khan 48
Protocols
Agreed-on methods and rules that electronic devices
use to exchange information
Deal with hardware connections, control data
transmisión, and file transfer
Specify the format of message packets sent between
computers
@ Mahmood Khan 49
Transmission Control Protocol/Internet
Protocol
Industry-standard suite of communication protocols
that enables interoperability
Protocols in the TCP/IP suite
▸ Network address
▸ Node address
@ Mahmood Khan 51
Routing
Packet
• Collection of binary digits sent from computer to computer
over a network
Includes message data and control characters for formatting
and transmitting
Routing
• Process of deciding which path data takes
• Determined by the type of network and the software used to
transmit data
@ Mahmood Khan 52
Routing
Decision about selecting a route to follow is done at a
central location or each node
◦ centralized routing: Single node is in charge of
selecting the path for all packets
◦ distributed routing: Relies on each node to calculate
its own best possible route
Routing table: Generated automatically by software
◦ Determines the best possible route for a packet
@ Mahmood Khan 53
Routers
Network connection device containing software that
connects network systems and controls traffic flow
Choose the best path for packets based on distance or
cost
Prevent network jams that delay packet delivery
Handle packets of different sizes
@ Mahmood Khan 54
Types of Routers
Static
Dynamic
@ Mahmood Khan 55
Client/Server Model
Software runs on the local computer and
communicates with the remote server to request
information or services
• Server is a remote computer on the network that
provides information or services in response to client
requests
Advantage: Scalability
@ Mahmood Khan 56
Client/Server Model
Understanding in terms of levels of logic
• Presentation: Concerned with how data is returned
to the client
• Application: Concerned with the software
processing requests for users
• Data management: Concerned with data
management and storage operations
@ Mahmood Khan 57
Two-Tier Architecture
Client communicates directly with the server
• Effective in small workgroups
Advantage
@ Mahmood Khan 58
A Two-Tier Client/Server
Architecture
@ Mahmood Khan 59
N-Tier Architectures
Balance the workload between client and server
◦ By removing application processing from the client
and server and placing it on a middle-tier server
◦ Three-tier architecture
Advantage
@ Mahmood Khan 60
An N-Tier Architecture
@ Mahmood Khan 61
An Three-Tier Architecture
@ Mahmood Khan 62
Wireless and Mobile Networks
Wireless network
• Uses wireless instead of wired technology
Mobile network
• Network operating on a radio frequency (RF),
consisting of radio cells each served by a fixed
transmitter
• Known as a base station
@ Mahmood Khan 63
Advantages and Disadvantages of
Wireless and Mobile Networks
Advantages • Disadvantages
• Mobility • Limited throughput
• Flexibility • Limited range
• Ease of installation • In-building
• Low cost penetration problems
• weakness to
frequency noise
• Security
@ Mahmood Khan 64
Categorization of Wireless Technologies
Wireless LANs
• Alternative to wired LANs
• Characterized by having one owner and covering a
limited area
Wireless WANs
• Cover a broader area than WLANs
@ Mahmood Khan 65
Mobile Networks
Consists of a three-part architecture
• Base stations
• Mobile telephone switching offices (MTSOs)
• Subscribers
Technologies developed to improve the efficiency and quality of
digital communications
• Time Division Multiple Access (TDMA)
Increases efficiency by 300 percent, as it allows carrying three
calls on one channel
@ Mahmood Khan 66
Mobile Networks
• Time Division Multiple Access (TDMA)
Divides each channel into six time slots
One for transmission and one for reception
@ Mahmood Khan 67
Mobile Network Architecture
@ Mahmood Khan 68
Summery
Data communication system improves the flexibility
of data collection and transmission
Communication media, or channels, connect sender
and receiver devices
OSI standardizes interactions between network
computers exchanging information
@ Mahmood Khan 69
Summery..
There are three major types of networks
• Local area networks
• Wide area networks
• Metropolitan area networks
Network topology represents a network’s physical
layout
Wireless and mobile networks have the advantages of
mobility, flexibility, ease of installation, and low cost
@ Mahmood Khan 70
Thanks
FURTHER DISCUSSION
@ Mahmood Khan 71