Data Communications and Computer Networks: A Business User's Approach
Data Communications and Computer Networks: A Business User's Approach
Computer Networks: A
Business User’s Approach
Chapter 7
Local Area Networks : The Basics
1
Last time
• Types of errors and their prevention
• Error detection
– Parity – 50%
– CRC – can detect nearly all errors
• Error correction
– 1. Do nothing
– 2. Return an error message to the transmitter
– 3. Fix the error with no further help from the transmitter
2
Three Major Types of Networks
Local Area Network (LAN)
Serves users within a confined geographical area
(usually within a mile).
Metropolitan Area Network (MAN)
Covers a geographic area the size of a city or
suburb. The purpose of a MAN is often to bypass
local telephone companies when accessing long-
distance service.
Wide Area Network (WAN)
Covers a wide geographical area, such as a state or
a country. Examples: Tyment, Telenet, Uninet, and
Accunet. 3
Emphasis
Definition of a Local Area Network (LAN)
• Physical and Logical LAN Topologies
• Different Medium Access Control Protocols
• Common LAN Systems
– Ethernet (1st commercially available LAN)
– Token ring
– FDDI (fiber data distributed interface) ring
4
Introduction
A local area network is a communication network that
interconnects a variety of data communicating devices within
a small geographic area and broadcasts data at
•high data transfer rates
•very low error rates.
(WANs now do this too)
Since the local area network first appeared in the 1970s, its
use has become widespread in commercial and academic
environments.
5
Data Communications and Computer Networks
Chapter 7
6
Data Communications and Computer Networks
Chapter 7
7
Data Communications and Computer Networks
Chapter 7
9
Data Communications and Computer Networks
Chapter 7
12
Data Communications and Computer Networks
Chapter 7
Bus/Tree Topology
The original topology – 1970’s
Workstation has a network interface card (NIC) provides a
physical connection to a network
Data can be transferred using either
1. baseband digital signals
2. broadband analog signals.
13
Data Communications and Computer Networks
Chapter 7
Bus/Tree Topology
Workstation has a network interface card (NIC) provides a
physical connection to a network
Attaches to the bus (a coaxial cable) via a tap.
NIC is an electronic device that performs the necessary signal
conversions and protocols operations so that the workstation can send
and receive data on the network.
Tap is a passive device
Does not alter the signal
Does not require electricity to operate
14
Data Communications and Computer Networks
Chapter 7
15
Data Communications and Computer Networks
Chapter 7
17
Bus/Tree Topology
Baseband signals
Digital signals – 10 Mbps
Bidirectional and more outward in both directions from the
workstation transmitting.
Easy to install and maintain
Fewer than 100 workstations
18
Data Communications and Computer Networks
Chapter 7
19
Bus/Tree Topology
Broadband signals
Usually uni-directional and transmit in only one direction.
Analogy and FDM for multiple channels (amplification
necessary). Because of this, special wiring considerations
are necessary.
100 to 1000 workstations over larger distances due to easy
amplification
20
Data Communications and Computer Networks
Chapter 7
22
Data Communications and Computer Networks
Chapter 7
Advantages/disadvantages of a bus
Difficult to add new devices if no tap exists.
No tap existing means cutting into the line
As such, this topology is loosing popularity
Plenty still around; Ethernet uses this.
23
Data Communications and Computer Networks
Chapter 7
Star-wired Topologies
Stars versus a single line
Two types:
1. Star-wired bus
(often call the star topology)
2. Star-wired ring
24
Star-wired Bus Topology
Logically operates as a bus, but physically looks like a star.
Star design is based on hub. All workstations attach to hub.
Hub is an unintelligent device that immediately transmits whatever
data it receives to all connections
26
Interconnection of two hubs in a star-wired bus LAN
27
Data Communications and Computer Networks
Chapter 7
28
Data Communications and Computer Networks
Chapter 7
30
Data Communications and Computer Networks
Chapter 7
32
Physical organization of a ring topology
Looks like a star!
33
Multi-station access unit on a ring topology
Wireless Topology
Not really a specific topology since a workstation in a
wireless LAN can be anywhere as long as it is within
transmitting distance to an access point.
Range varies from 50 to 800 ft with speeds of 2 to 11 Mbps
35
Stanford’s wireless network
36
Data Communications and Computer Networks
Chapter 7
37
Data Communications and Computer Networks
Chapter 7
Wireless Topology
Acceptable transmission ranges broken up into areas:
1. Basic service set – that surrounding an access point
2. Extended service set – collection of basic service sets
Workstations reside within a basic service set, while multiple
basic service sets create an extended service set.
38
Data Communications and Computer Networks
Chapter 7
Wireless Topology
Two basic components necessary: the client radio, usually a
PC card with an integrated antenna, and the access point
(AP), which is an Ethernet port plus a transceiver.
The AP acts as a bridge between the wired and wireless
networks and can perform basic routing functions.
Workstations with client radio cards reside within a basic
service set, while multiple basic service sets create an
extended service set.
39
Single-cell wireless LAN configuration
40
Multiple-cell wireless LAN configuration
41
Ad-hoc configuration for a wireless LAN
42
Data Communications and Computer Networks
Chapter 7
Wireless Topology
With directional antennae designed for point-to-point
transmission (rare), 802.11b can work for more than 10 miles.
With an omni-directional antenna on a typical AP, range may
drop to as little as 100 feet.
Distance is inversely proportional to transmission speed - as
speed goes up, distance goes down.
43
Data Communications and Computer Networks
Chapter 7
Wireless Topology
In actual tests, 11 Mbps 802.11b devices managed 5.5 Mbps
To provide security, most systems use Wired Equivalent
Privacy (WEP), which provides either 40- or 128-bit key
protection. (how good?)
What will Bluetooth’s impact be on 802.11b (Wi-Fi)?
44
Other Wireless Standards
•IEEE 802.11 (older 2 Mbps)
•IEEE 802.11b (11 Mbps, 2.4 GHz)
Also called Wi-Fi (wireless fidelity)
•IEEE 802.11a (54 Mbps, 5 GHz, in 2002)
•IEEE 802.11g (54 Mbps, 2.4 GHz, in 2002)
•HiperLAN/2 (European standard, 54 Mbps in
5 GHz band)
45
Data Communications and Computer Networks
Chapter 7
46
Summary of topologies
• Logical vs physical topologies
• Bus and star-rings - old technologies
– Still some around
• You’ll probably use
1. Star-wired bus (star)
With bus or routers (now much easier to use)
2. Wireless network (Wi-fi)
47
Protocols
48
Data Communications and Computer Networks
Chapter 7
50
Data Communications and Computer Networks
Chapter 7
Contention-Based Protocols
Essentially first come first served.
Most common example is Carrier Sense Multiple Access with
Collision Detection (CSMA/CD).
If no one is transmitting, a workstation can transmit.
If someone else is transmitting, the workstation “backs off”
and waits.
Half duplex protocol.
51
Contention-Based Protocols
If two workstations transmit at the same time, a collision
occurs.
When the two workstations hear the collision, they stop
transmitting immediately.
Each workstation backs off a random amount of time and tries
again. Workstations use a persistence algorithm to decide when to
resubmit.
Collisions
Collision window is the interval during which a workstation’s
signal can propagate down the bus and back. During this
period a workstation might falsely hear no one transmitting
and retransmit a signal.
Changes for collisions go up when every workstation wants
to send something – heavy traffic!
53
Data Communications and Computer Networks
Chapter 7
54
Collisions
55
Data Communications and Computer Networks
Chapter 7
57
Data Transmission on a token ring LAN
Token Bus
Just like the token ring, but a bus instead
Each workstation maintains a list of neighbors that one passes
the token to (logical not physical) neighbor
Designed primarily for manufacturing plants since a non-
deterministic protocol is not acceptable there. Why?
60
Data Communications and Computer Networks
Chapter 7
Reservation Protocols
Workstation places a reservation with central server.
Workstation cannot transmit until reservation comes up.
Under light loads, this acts similar to CSMA/CD.
Under heavy loads, this acts similar to token ring.
Powerful access method but again losing out to CSMA/CD.
Most common example of reservation protocol is demand
priority protocol.
61
Problems with the OSI model for LANs
62
Data Communications and Computer Networks
Chapter 7
64
Data Communications and Computer Networks
Chapter 7
65
Frame format for IEEE 802.3 CSMA/CD Protocol
66
Frame Format for IEEE 802.5 Token Ring Protocol
67
Data Communications and Computer Networks
Chapter 7
68
Data Communications and Computer Networks
Chapter 7
69
Data Communications and Computer Networks
Chapter 7
Ethernet
Originally, CSMA/CD was 10 Mbps.
Then 100 Mbps was introduced. Most NICs sold today are
10/100 Mbps.
Then 1000 Mbps (1 Gbps) was introduced.
10 Gbps is now available.
70
Data Communications and Computer Networks
Chapter 7
Ethernet
1000 Mbps introduces a few interesting wrinkles:
Transmission is full duplex (separate transmit and receive),
thus no collisions.
Prioritization is possible using 802.1p protocol.
Topology can be star or mesh (for trunks).
71
Data Communications and Computer Networks
Chapter 7
Ethernet
Cabling can be either UTP (unshielded twisted pair) or optical
(but 10 Gbps Ethernet may not work over UTP due to radio
frequency interference).
Where 10 Mbps Ethernet has less than 30% utilization due to
collisions, 1000 Mbps is limited only by traffic queueing.
Distance with 10 Mbps is limited by CSMA/CD propagation
time, whereas 1000 Mbps limited only by media.
72
73
Ethernet Standards
Key
• XXXBase or XXX Broad
• XXX 10 means 10Mbps
74
Data Communications and Computer Networks
Chapter 7
75
Data Communications and Computer Networks
Chapter 7
77
Data Communications and Computer Networks
Chapter 7
79
Data Communications and Computer Networks
Chapter 7
81
Data Communications and Computer Networks
Chapter 7
82
Data Communications and Computer Networks
Chapter 7
84
What we covered
• Topologies
– Star-bus
– Wireless
• Protocols
– CSMA/CD
• Systems
– Ethernet
Next time: wireless networks?
85