Data Communication and Networking All in One
Data Communication and Networking All in One
Data Communication and Networking All in One
Computer Networks
Introduction
1
CS-381 – Data Communication and Computer Networks 2011
Outline of Lesson-1
Course introduction
Applications of Networking
Overview of Data Communications and
Networking
Protocol standards
The Internet
Reference Models
Introduction 2
CS-381 – Data Communication and Computer Networks 2011
Introduction
Computer Network : is a collection of autonomous
computers interconnected by a single technology to
exchange information.
Introduction 3
CS-381 – Data Communication and Computer Networks 2011
Network Applications
Business Applications
Home Applications
Mobile Users
Introduction 4
CS-381 – Data Communication and Computer Networks 2011
Network Applications
Business Applications
Resource sharing : printers, scanners, cd
burners, information such as financial
statements, payrolls, tax information, product
inventory, customer records, etc.
e.g. Modern manufacturing plant,
Travel agencies
Law firms
Ending ‘tyranny of geography’
Introduction 5
CS-381 – Data Communication and Computer Networks 2011
Business Applications contd..
Communication medium among employees.
e.g. e-mail, writing report together,
videoconferencing – communication vs transport race
Real-time business
Placing orders on-line. e.g. aircraft, automobile, computer
suppliers and buyers
Banks: Real-time transactions, application processing,
Business: Accounting, payrolls, purchasing, human
resources.
e-Commerce: business with consumers, music vendors,
airline tickets, bookstores,
Introduction 6
CS-381 – Data Communication and Computer Networks 2011
Mail Services
Strengths Weakness
Introduction 10
CS-381 – Data Communication and Computer Networks 2011
Home Applications contd..
Interactive Entertainment
Families sharing photos, movies, genealogical information, sharing
public domain music, multi-person on-line games
Gambling over internet- roulette wheels, blackjack dealers
Telephone calls over internet, internet radio, video phone
Tele-learning, telemedicine,
Video on demand, Interactive tv, interactive films, interactive game
playing
e-commerce, e-flea markets (second hand), on-line auctioning
Some forms of e-commerce: B2B, G2C, C2C, P2P
Controlling home appliances through internet: refrigerators, vending
machines, tv, car, utility meters etc.
Introduction 11
CS-381 – Data Communication and Computer Networks 2011
Mobile Users
Fixed wireless
Mobile Wireless – laptops, PDA’s
Portable offices – surf web, e-mail, fax, access to remote m/c
fleet of trucks, taxis, delivery vehicles, repairpersons can keep contact with
home
Military uses
Wireless parking meters-accepts credit cards, reports to police on
expiration.
Vending machine inventory
Utility meter reading- electricity, gas, water
m-commerce
Merger of cell phones, PDA into tiny wireless computers using ‘WAP 2.0’
Mobile maps, local weather forecasts, electronic wallet, etc.
Introduction 12
CS-381 – Data Communication and Computer Networks 2011
Negative impact of networking
Social issues
Newsgroups dealing with offensive topics
Junk mails,
Ethical issues
Snooping, infringing privacy
Political problems
Employee rights
Introduction 13
CS-381 – Data Communication and Computer Networks 2011
Networks contd..
Information exchange
Introduction 14
CS-381 – Data Communication and Computer Networks 2011
Computer Network Types
Computer networks can be broadly
classified based on the following two
parameters
Geographical separation between nodes
How resources are managed and administered
Introduction 15
CS-381 – Data Communication and Computer Networks 2011
Network types based on Geographical
separation between nodes
Local Area Network (LAN)
Introduction 16
CS-381 – Data Communication and Computer Networks 2011
Figure 1.19 Categories of networks
Introduction 17
CS-381 – Data Communication and Computer Networks 2011
Table 1.1 Classification of interconnected processors by scale.
Introduction 18
CS-381 – Data Communication and Computer Networks 2011
Networks – categories contd..
Local Area Network (LAN) – Usually privately owned
and links the nodes in a single office, building, or campus.
Designed mainly for resource sharing, and configured as a
client-server model. LANs are distinguished by three
charcteristics:
1) their size
2) their transmission technology
3) their topology.
Introduction 19
CS-381 – Data Communication and Computer Networks 2011
Figure 1.20 LAN
Introduction 20
CS-381 – Data Communication and Computer Networks 2011
Figure 1.21 LAN (Continued)
Introduction 21
CS-381 – Data Communication and Computer Networks 2011
Networks – categories contd..
Metropolitan Networks(MAN)- Designed to extend
over an entire city. Usually owned by a private
company or service provided by public company (e.g.
telecom)
Connection of several LANs for the purpose of resource
sharing
May be a single network such as a cable television network.
Technologies used: SMDS (Switched Multi-megabit Data
Services), Distributed Queue Dual Bus(DQDB)
Introduction 22
CS-381 – Data Communication and Computer Networks 2011
Figure 1.22 MAN
Introduction 23
CS-381 – Data Communication and Computer Networks 2011
Figure 1..22b : A metropolitan area network based on cable TV
Introduction 24
CS-381 – Data Communication and Computer Networks 2011
Networks categories contd..
Wide Area Network (WAN) – designed to
provide a long-distance transmission of data, voice,
image and video information over large geographic
areas that may comprise a country, a continent or
a whole world.
WANs utilize public, leased or private or combination of
these communication equipment.
WANs data rate is 4 to 16 Mbps
If WANs are owned by a single company it is known as
enterprise network.
Introduction 25
CS-381 – Data Communication and Computer Networks 2011
LANs and WANs
LANs transmit
data within
corporate sites
WANs transmit
data between WAN
corporate sites
Each LAN or
WAN is a single
network
Introduction 26
CS-381 – Data Communication and Computer Networks 2011
Figure 1.23 WAN
Introduction 27
CS-381 – Data Communication and Computer Networks 2011
The Internet
Lower-case internet is any internet
Upper-case Internet is the global
Intranets
Internal internet for use within an organization
Based on the TCP/IP standards created for the Internet
Extranets
Connect multiple firms
Only some computers from each firm are on the extranet
Use TCP/IP standards
Introduction 28
CS-381 – Data Communication and Computer Networks 2011
Growth of the Internet
Introduction 29
CS-381 – Data Communication and Computer Networks 2011
Recent Growth (1991-2002)
Introduction 30
CS-381 – Data Communication and Computer Networks 2011
Figure 1.16 Internet today
Introduction 31
CS-381 – Data Communication and Computer Networks 2011
Network types based on how resources are managed
Introduction 32
CS-381 – Data Communication and Computer Networks 2011
Peer-to-peer network (Workgroup)
Introduction 33
CS-381 – Data Communication and Computer Networks 2011
Workgroup (Peer-to-Peer)
Disadvantages :
• Need to setup account and password on each and every machine.
• No easily scalable. If using more than 10 computers, the number of
accounts to set up increases a lot more
• More time required to setup for new users!
• If using file sharing, you may reach the 10 max simultaneous
connections limit
Introduction
CS-381 – Data Communication and Computer Networks 2011
Figure 1.1 Sharing Common Resources
Introduction 36
CS-381 – Data Communication and Computer Networks 2011
Server - based network (Client-Server
Network)
Introduction
CS-381 – Data Communication and Computer Networks 2011
Client/Server Networks
The distribution of
functions in client/server
networks brings substantial
advantages, but it also
incurs some costs.
Although the aggregation
of resources on server
systems brings greater
security, simpler access
and coordinated control,
introduces a single point of
failure into the network.
Introduction
CS-381 – Data Communication and Computer Networks 2011
Advantages and Disadvantages of Domains
Advantages
1. One location for all user accounts, groups and
computers, passwords are same for all computers.
2. Easier and quicker to maintain
3. Scales easier if you add more users and computers
Disadvantages
1. Requires a Network Operating System
2. Complex to set up
3. Very Expensive to implement
Introduction
CS-381 – Data Communication and Computer Networks 2011
Use ‘client-server’ model of communication
Security: High security at server level, backup facility Complexity: Administrators may face complex problems.
Data Communications
and
Networking
43
CS-381 – Data Communication and Computer Networks 2011
An overview of data communication and networking
Introduction
Figure 1.6 Overview of data communications and networking 44
CS-381 – Data Communication and Computer Networks 2011
Data Communication
Data communication is the exchange of data
between two devices via some form of
transmission medium.
Three characteristics of data communication:
Delivery – deliver data to correct destination
Accuracy- deliver data accurately
Timeliness – deliver data in a timely manner
Introduction 45
CS-381 – Data Communication and Computer Networks 2011
Data Communication contd..
Components
Data Representation
Introduction 46
CS-381 – Data Communication and Computer Networks 2011
Data Communication contd..
Components of a data communication
Message – information to be communicated
Sender – device that sends data message
e.g. PC, workstation, telephone handset, video camera etc.
Receiver – device that receives the message
e.g. PC, workstation, telephone handset, tv , etc.
Medium – physical path by which message travels from
sender to receiver
e.g. twisted-pair, coaxial cables, fiber-optic cables, radio waves
Protocol – is a set of rules that govern data communications.
Agreement between communicating devices
Introduction 47
CS-381 – Data Communication and Computer Networks 2011
Figure 1.7 Five components of data communication
Introduction 48
CS-381 – Data Communication and Computer Networks 2011
Data Communication contd..
Data Representation
Text – represented as a bit pattern – coding
ASCII – American Standard Code for Information Interchange – uses
7 bits
Extended ASCII – uses 8bits. An extra 0 as a MSB and ASCII code.
Unicode – Uses 16 bits to represent several languages which includes
graphical symbol and special symbols.
ISO –International Organization for Standards designed a 32 bit code
Images- matrix of pixels .Each pixel may be needs 1 or more than
1 bit to represent. RGB color uses 8 bits per pixel per color.
Audio – continuous signals are converted into digital format
Video – signals may be continuous or discrete, converted into
digital format
Introduction 49
CS-381 – Data Communication and Computer Networks 2011
Data Communication contd..
Direction of Data Flow
Simplex – Only one device can transmit at a time
e.g., keyboard, monitor, tv broadcast
Half-duplex- Either device can transmit, but only
one at a time.
e.g., walkie-talkie, Citizen Band(CB) radios
Full-duplex- Both devices can transmit by sharing
the medium
e.g., telephones
Introduction 50
CS-381 – Data Communication and Computer Networks 2011
Figure 1.8 Simplex
Introduction 51
CS-381 – Data Communication and Computer Networks 2011
Figure 1.9 Half-duplex
Introduction 52
CS-381 – Data Communication and Computer Networks 2011
Figure 1.10 Full-duplex
Introduction 53
CS-381 – Data Communication and Computer Networks 2011
1.2 Networks
Network Criteria
Categories of Networks
Introduction 54
CS-381 – Data Communication and Computer Networks 2011
1.4 Protocols and Standards
Protocols
Standards
Standards Organizations
Internet Standards
Introduction 55
CS-381 – Data Communication and Computer Networks 2011
Protocols
A protocol is an agreement between two communicating
parties on how communication is to proceed (Or), protocol is
a set of rules that governs data communications between
two entities that are capable of sending and receiving
information.
A protocol defines-
what is communicated
how it is communicated
when it is communicated.
Introduction 56
CS-381 – Data Communication and Computer Networks 2011
Protocols contd..
The key elements of protocol are:
Introduction 57
CS-381 – Data Communication and Computer Networks 2011
Standards
Standards –are protocols adopted by vendors and
manufacturers. These are guidelines to network device
manufacturers, vendors, gov. agencies, and other service
providers to maintain inter-connectivity and interoperability
at national and international communications.
Introduction 58
CS-381 – Data Communication and Computer Networks 2011
Standard Organizations
Standards Creation Committees:
ISO (International Standards Organization) –is a multinational body whose membership is
drawn mainly from the standards creation committees of various governments though out the
world. The ISO is active in developing cooperation in the realms of scientific, technological, and
economic activity.
ANSI (American National Standards Institute) –is a private, nonprofit corporation affliated
to U.S. federal govt. However, all ANSI activities are undertaken with the welfare of the US and its
citizens occupying primary importance.
IEEE (Institute of Electrical and Electronics Engineering) –is the largest professional
engineering society in the world. Its role is to advance theory, creativity and product quality in the
field of electrical, electronic, and related fields. The scope of this organization is international. It
oversees the development and adoption of international standards for computing and
communications.
EIA ( Electronic Industries Association) –aligned with ANSI, the EIA is a nonprofit
organization devoted to the promotion of electronics manufacturing concerns. In the field of IT it
has made significant contribution by defining physical connection interfaces and electronic
signaling specifications for data communication.
Introduction 59
CS-381 – Data Communication and Computer Networks 2011
REFERENCE MODELS
Network Software
60
CS-381 – Data Communication and Computer Networks 2011
Network Software PROTOCOL
HIERARCHIES
Layers -
The concept that network software is organized functionally into levels. A level on
one host talks to the same level on another host (its peer).
Protocol -
The protocol is the convention or standard that a layer uses to talk to the other
layer. An agreement or standard on the conversation.
Physical Medium -
Underneath the layers is the wire or
fiber or whatever.
Interface -
Defines the services that one layer
offers another (either up or down.)
Introduction
Figure 1.35 The philosopher-translator-secretary architecture. 62
CS-381 – Data Communication and Computer Networks 2011
PROTOCOL
Network Software HIERARCHIES
Network architecture -
• A set of layers and protocols. It contains details on what happens in the layer and
what the layers says to its peer.
• Functional interfaces and implementation details are not part of the spec, since
that's not visible outside the machine.
Protocol stack -
• A list of protocols used by a
system, one protocol per layer.
Information flow -
• "Send_to_peer" rather than
"call_next_layer_down".
TCP/IP model
Introduction 64
CS-381 – Data Communication and Computer Networks 2011
Reference Models Layering
Introduction 65
CS-381 – Data Communication and Computer Networks 2011
Reference Models Headers, Data, and
Trailers
Encapsulation
Introduction 66
CS-381 – Data Communication and Computer Networks 2011
Reference Models THE OSI
REFERENCE MODEL
Physical Layer -
Purpose -- Transmits raw bits across a medium.
Electrical -- Concerns are voltage, timing, duplexing, connectors, etc.
Introduction 68
CS-381 – Data Communication and Computer Networks 2011
Reference Models THE OSI
REFERENCE MODEL
Network Layer -
Routing -- What path is followed by packets from source to destination. Can be
based on a static table, when the connection is created, or when each
packet is sent.
Congestion -- Controls the number packets in the subnet.
Introduction 69
CS-381 – Data Communication and Computer Networks 2011
Reference Models THE OSI
REFERENCE MODEL
Transport Layer -
Reliability-- Ensures that packets arrive at their destination. Reassembles out of
order messages.
Hides network -- Allows details of the network to be hidden from higher level layers.
Naming -- "Send to node xyzzy" must be translated into an internal address and
route.
Flow control -- keeps a fast transmitter from flooding a slow receiver.
Introduction 70
CS-381 – Data Communication and Computer Networks 2011
Reference Models THE OSI
REFERENCE MODEL
Session Layer -
Sessions -- Provides services that span a particular message. For instance, a
login session could be logged.
Synchronization-- Provide way to subdivide a long mechanism for reliability.
Presentation Layer -
Prettiness -- Syntax and semantics of information transmitted. Understands the
nature of the data being transmitted. Converts ASCII/EBCDIC, big
endian/little endian
Application Layer -
Interfacing -- Terminal type translation.
File transfer -- Programs able to understand directory structures and naming
conventions and map them onto various systems.
Introduction 71
CS-381 – Data Communication and Computer Networks 2011
Reference Models THE OSI
Data Transmission in the OSI Model - REFERENCE MODEL
Used in the Arpanet and in the Internet. Common mechanism that is gaining
on/surpassing the OSI Model.
Internet Layer -
Connector -- Provides packet
switched connectionless
service.
Routing -- The IP (Internet
Protocol) does delivery and
congestion control.
Figure 1.41: Comparison of OSI and TCP model
Introduction 73
CS-381 – Data Communication and Computer Networks 2011