Computer Networks - Introduction
Computer Networks - Introduction
Chapter 1
Introduction
Chap. 1 - Introduction 2
Chapter Overview
1.1 Introduction
1.2 Network Hardware
1.3 Network Software
1.4 Reference Models
1.5 Example Networks
1.6 Example Data Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 3
What You Will Learn
1. Terminology
2. Communication basics
Media and signals
Binary numbering system
Data transmission characteristics
asynchronous and synchronous communication
serial and parallel transmission
bandwidth, throughput and noise
multiplexing
Chap. 1 - Introduction 4
What You Will Learn
Chap. 1 - Introduction 5
The Big Picture: Where are
Introduction We Now?
1.1 Introduction
1.2 Network Hardware Some of the overall issues we’ll be dealing
with in this course.
1.3 Network Software
1.4 Reference Models
1.5 Example Networks
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 6
Motivation for
Introduction Networks
• Information Access
• Sharing of Resources
• Facilitate Communications
What A Network
Includes
• Transmission hardware
• Special-purpose hardware devices
– interconnect transmission media
– control transmission
– run protocol software
• Protocol software
– encodes and formats data
– detects and corrects problems
Chap. 1 - Introduction 7
What A Network
Introduction Does
Chap. 1 - Introduction 8
Introduction Lingo
Where are we going: This chapter is basically an overview of the course. Before we
get mired down in details, we want to get a general idea of what this whole course is
about. Here are the kind of issues we’ll be dealing with.
Broadcast Networks -
Single channel with multiple machines connected to it.
Point-to-point -
Individual connections between pairs of machines.
Mostly EE issues.
Packets -
Messages - the "chunk" of data transmitted from one machine to the next.
Addressing -
+ One to one: Packet contains specific target address.
+ Broadcasting: All machines on the network receive and
process the packet.
+ Multicasting: A subset of machines receive and process the packet.
Chap. 1 - Introduction 9
Introduction Lingo
Can also view messaging in terms of the distance of transmission:
Serial:
Parallel:
Chap. 1 - Introduction 10
Introduction Lingo
Chap. 1 - Introduction 11
The Big Picture: Where are
Network Hardware We Now?
1.1 Introduction
1.2 Network Hardware The various possible hardware structures
that are possible. LANs, MANs, WANs
1.3 Network Software
and all that.
1.4 Reference Models
1.5 Example Networks
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 12
Network LOCAL AREA
Hardware NETWORKS
LANs are:
Privately owned. Can be up to several kilometers long;
Restricted so worst case transmission time can be contained.
Run at speeds of 10, 100, or more Mbps.
Low delay. High reliability.
Requires collision arbitration.
Ethernet:
IEEE 802.3.
Bus based broadcast network with decentralized control at 10 or 100 Mbps.
Token Ring:
IEEE 802.5
Ring based broadcast network with token arbitration at 4 or 16 Mbps.
Chap. 1 - Introduction 13
Network METROPOLITAN AREA
Hardware NETWORKS:
MANS are:
Larger version of LAN ("city" wide).
Public or private / data or voice.
Broadcast - no switches.
Can be distinguished from LANs based on wiring mechanism.
Chap. 1 - Introduction 14
Network WIDE AREA NETWORKS
Hardware
WANS are: Networks spanning large distances.
(Communication) Subnet -
Connections between hosts - transmission lines + switches.
A "locality" understanding each other's addresses.
Circuits/Channels/Trunks -
Transmission lines move the bits.
Chap. 1 - Introduction 15
Network WIDE AREA NETWORKS
Hardware
WANS are: Networks spanning large distances.
Point-to-point/Store-and-forward/Packet-switched -
Moving through a series of routers, packets are received at a router,
stored there, then forwarded to the next router.
Topologies -
Chap. 1 - Introduction 16
Network Media
Hardware
Wireline Wireless
String Sound
Garden Hose Light and mirrors
Copper Infrared
Twisted Pair RF
Coax Microwave
Optical Fiber
Chap. 1 - Introduction 17
Network WIRELESS NETWORKS
Hardware
What are they: Used where computer is mobile or far away from wires.
Only 1 - 2 Mbps / higher error rates / interference.
INTERNETWORKS:
( or internet )
• Collection of interconnected networks.
• internet ( lower case i ) is generic term.
• Internet ( upper case I ) is worldwide connection to all kinds of machines.
Chap. 1 - Introduction 18
The Big Picture: Where are
Network Software We Now?
1.1 Introduction
1.2 Network Hardware This covers the way the software is put
together. It talks about the philosophy of
1.3 Network Software
connecting together two entities.
1.4 Reference Models
1.5 Example Networks “Layering” is the key word.
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 19
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.)
Chap. 1 - Introduction 21
Network Software DESIGN ISSUES
FOR THE LAYERS
Every layer Needs to identify sender and reciever
Both Directions Simultaneous
Simplex No No
Half duplex Yes No
Full duplex Yes Yes
Chap. 1 - Introduction 22
INTERFACES AND
Network Software SERVICES
Chap. 1 - Introduction 23
INTERFACES AND
Network Software SERVICES
Chap. 1 - Introduction 24
Network Software CONNECTION-
ORIENTED /
CONNECTIONLESS
SERVICES:
Connection oriented service -
Like the phone system. The system establishes a connection, uses it,
and closes it. Acts like a tube. Data comes out the other end in the same
order as it goes in.
Connection Setup
Data Transfer
Connection Termination
Connectionless service -
Like the post office. Each message has the entire address on it. Each
message may follow a different route to its destination. Ordering not
maintained.
Data Transfer
Chap. 1 - Introduction 25
Network Software CONNECTION-
ORIENTED /
CONNECTIONLESS
SERVICES:
Quality of service -
Will the message arrive??
A reliable connection-oriented service guarantees success.
o Message sequence - message boundaries and order are maintained.
o Byte streams - messages are broken up or combined; flow is bytes.
Can pair mechanism with upper-layer requirements.
Chap. 1 - Introduction 26
Network Software CONNECTION-ORIENTED /
CONNECTIONLESS
SERVICES:
Datagram Service -
Like junk mail. It's not worth the cost to determine if it actually arrived. Needs
a high probability of arrival, but 100% not required. Connectionless, no
acknowledgment.
Acknowledged datagram service -
As above, but improved reliability via acknowledgment.
Request-reply service -
Acknowledgment is in the form of a reply.
Chap. 1 - Introduction 27
Network Software SERVICE PRIMATIVES:
Primitives are:
The operations available to an entity. Possibilities include:
Request -- An entity want some work done.
Indication -- An entity is told about an event.
Response -- An entity wants to respond to an event.
Confirm -- Response to earlier request has come back.
Services are primitives that a layer provides for the layer above it.
Chap. 1 - Introduction 29
The Big Picture: Where are
Reference Models We Now?
1.1 Introduction
1.2 Network Hardware There are two competing models for how the
software is layered. These are the OSI
1.3 Network Software
and the TCP models. We talk about each
1.4 Reference Models of these here.
1.5 Example Networks
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 30
Reference Models Layering
Chap. 1 - Introduction 31
Reference Models Headers, Data, and
Trailers
Encapsulation
Chap. 1 - Introduction 32
Reference Models THE OSI
REFERENCE MODEL
Chap. 1 - Introduction 33
Reference Models THE OSI
REFERENCE MODEL
Physical Layer -
Purpose -- Transmits raw bits across a medium.
Electrical -- Concerns are voltage, timing, duplexing, connectors, etc.
Where Taught -- Differentiates an EE course from a CS course.
Chap. 1 - Introduction 34
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.
Chap. 1 - Introduction 35
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.
Service Decisions -- What type of service to provide; error-free point to point,
datagram, etc.
Mapping -- Determines which messages belong to which connections.
Chap. 1 - Introduction 36
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.
Chap. 1 - Introduction 37
Reference Models THE OSI
Data Transmission in the OSI Model - REFERENCE MODEL
Chap. 1 - Introduction 38
Reference Models THE TCP/IP
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.
Chap. 1 - Introduction 39
Reference Models THE TCP/IP
REFERENCE MODEL
Transport Layer -
Allows peer entities to communicate.
Application Layer -
Terminal -- Telnet
File transfer -- FTP
The Web -- HTTP
Chap. 1 - Introduction 40
Reference Models COMPARISON OF
REFERENCE MODELS
OSI has good definition of service, interface, and protocol as discussed before.
Fits well with object oriented programming concepts. Protocols are better
hidden.
With TCP, the protocols came first; model was just a description of the
protocols. But then the model isn't good for any other protocols.
LAYERS
Transport Network
OSI Connectionless
Connection-Oriented Connection-Oriented
Chap. 1 - Introduction 41
Reference Models THE TCP/IP
A CRITIQUE OF OSI: REFERENCE MODEL
Bad Timing -
• TCP already in use by the time OSI came along.
Bad Technology -
• Layers don't match reality . Chosen because IBM's SNA has seven layers.
• Dominated by phone company mentality.
Bad Implementation -
• Huge, unwieldy, slow.
A CRITIQUE OF TCP/IP:
• Doesn't separate spec from implementation.
• Model is only good for describing TCP.
• Doesn't specify physical and data link layers.
1.1 Introduction
1.2 Network Hardware This section talks about some real networks.
1.3 Network Software
1.4 Reference Models
1.5 Example Networks
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 43
Example Networks
NOVELL NETWARE:
Heavily used in PC world.
THE ARPANET:
1968 Originally intended as reliable network, with multiple routing.
Used TCP/IP precursor, which got built into early UNIX.
Chap. 1 - Introduction 44
Example Networks
NSFNET:
Late 1970s - Many other folks wanted to get on the net, but Arpanet was essentially
limited to military contractors. NSF set up another network to handle this need.
Started at 448 Kbps and by 80's upgraded to 1.5 Mbps.
1990 Formed ANS (Advanced Networks and Services) -- MERIT, MCI, IBM
took over from the government running at 45 Mbps.
1995 ANSNET sold to AOL, who now runs it.
THE INTERNET:
Growing exponentially.
All nodes run TCP/IP. Means that all nodes have an IP address by which they can
be contacted.
Services provided include:
o e-mail o news o remote login o file transfer o the web
GIGABIT TESTBEDS:
Testing higher speed long distance nets. Typically 622 Mbps. While throughput
improves, latency remains limited by the speed of light.
Chap. 1 - Introduction 45
Example Data
Communications
1.1 Introduction
1.2 Network Hardware These are public networks owned by the
phone companies and offered to the
1.3 Network Software
public - thus called public networks.
1.4 Reference Models
1.5 Example Networks
1.6 Example Data
Communication Services
1.7 Network Standardization
Chap. 1 - Introduction 46
Example Data Public Networks
Communications
These are subnets, often owned by the phone companies, offered to subscribers.
This is a public network.
Chap. 1 - Introduction 47
Example Data Public Networks
Communications
X.25 NETWORKS
Operate at 64 Kpbs, so are very slow and becoming outdated. However there are
still many of them in operation.
Chap. 1 - Introduction 48
Example Data Public Networks
Communications
FRAME RELAY:
• This allows simple protocols with work done by user computers rather than by
the network. Runs at 1.5 Mbps with few features.
• Customer leases a permanent virtual circuit between two points. This "virtual
leased line" means that the wire is shared with other users at a great price
reduction. Each is allowed some bursti-ness, but doesn't get the line all day.
Chap. 1 - Introduction 49
Example Data Public Networks
Communications
BROADBAND ISDN AND ATM:
The above networks, together with a multitude of old versions, mean a major
headache. Need a way to provide all of these, and many new services with a
single high speed network.
ISDN (Integrated Services Digital Network) will offer cable, video on demand, e-
mail, etc. etc. etc.
5 48
+---------+---------------------------------------+
| Header | User Data |
+---------+---------------------------------------+
Chap. 1 - Introduction 50
Example Data Public Networks
Communications
ATM (Continued)
Packet (cell) switching is dramatic change for phone companies.
ATM is connection oriented; make connecting request first; then all cells follow the
same path.
Target is 155 Mbps and 622 Mbps. Allows TV transmission.
Chap. 1 - Introduction 51
Example Data Public Networks
Communications
ATM promises much but will take a while to deliver.
ATM (Continued) • Moving from circuit switching will take a long time.
Comparisons to other models. • Requires replacement of existing wires.
Chap. 1 - Introduction 52
Example Data Public Networks
Communications
COMPARISONS:
Here’s an overview of the properties of these Public Networks
Chap. 1 - Introduction 53
The Big Picture: Where are
Standards We Now?
1.1 Introduction
1.2 Network Hardware Networks have more standards than any
other area of the computer industry.
1.3 Network Software
The reason is because hardware/software
1.4 Reference Models from different manufactures must all play
1.5 Example Networks together - and you can’t do that unless
the vendors get together and establish
1.6 Example Data
Communication Services
agreements about the behavior of this
equipment.
1.7 Network Standardization
Chap. 1 - Introduction 54
Standards
Issues Include:
Chap. 1 - Introduction 55
Summary
Network Layer
Transport Layer
Chap. 1 - Introduction 56