Professional Documents
Culture Documents
Febriliyan Samopa
LANs, WANs, and MANs
• Ownership
• WANs can be either public or private
• LANs are usually privately owned
• Capacity
• LANs are usually higher capacity, to carry greater
internal communications load
• Coverage
• LANs are typically limited to a single location
• WANs interconnect locations
• MANs occupy a middle ground
Network Services Available for MAN
and WAN
4
Tiered LAN Diagram
5
Network Interface Card (NIC)
NIC
8
LAN Topology, cont...
LAN Topologies: Bus
• Multipoint medium
• Stations attach to linear medium (bus) using
tap
• Full-duplex between station and tap
• Transmission from any stations travels
entire medium (both directions)
• Termination required at ends of bus
10
Bus LAN Diagram
11
LAN Topologies: Tree
• Generalization of bus topology
• Branching cable with no closed loops
• Cable(s) begin at headend, travel to
branches which may have branches of their
own
• Each transmission propagates through
network, can be received by any station
12
Tree LAN Diagram
13
Bus/Tree Topology Problems
• How do you identify who the transmission is
intended for?
• Data transmitted in frames
• Each frame has header with addressing info
• How do you regulate access?
• Stations take turns sending, by monitoring
control information in frames
14
LAN Topologies: Ring
• Repeaters are joined by unidirectional
point-to-point links in a ring
• As a frame circulates past a receiver, the
receiver checks its address, and copies
those intended for it into a local buffer
• Frame circulates until it returns to source,
which removes it from network
15
Ring LAN Diagram
16
LAN Topologies: Star
• Each station connected directly to central
node, usually with two unidirectional links
• Central node can broadcast info, or can
switch frames among stations
17
Star LAN Diagram
18
Choosing a Topology
• Factors to consider include reliability,
flexibility/expandability, and performance
• Bus/tree is most flexible
• Tree topology easy to lay out
• Ring provides high throughput, but reliability
problems
• Star can be high speed for short distances, but
has limited expandability
19
Medium and Topology
20
LAN Standards (IEEE802.x)
• Advantages of standards
• Assure sufficient volume to keep costs down
• Enable equipment from various sources to
interconnect
• IEEE 802 committee developed, revises,
and extends standards
• Use a three-layer protocol hierarchy:
physical, medium access control (MAC),
and logical link control (LLC)
21
IEEE LAN Standards
• IEEE 802.2: Logic link control (LLC) layer of data link layer
• IEEE 802.3: Ethernet
• IEEE 802.4: Token bus, an old protocol
• IEEE 802.5: Token ring
• IEEE 802.6: Distributed queue dual bus (DQDB) protocol, similar to
FDDI
• IEEE 802.9: Integrated voice and data networking, including ISDN,
Iso-ethernet
• IEEE 802.11: Wireless LAN
• IEEE 802.12: 100Base-VG
• IEEE 802.13: 100Base-X
• IEEE 802.14: Cable modem
22
*Logical Link Control
• Specifies method of addressing and controls exchange
of data
• Independent of topology, medium, and medium access
control
• Unacknowledged connectionless service (higher layers
handle error/flow control, or simple apps)
• Connection-mode service (devices without higher-level
software)
• Acknowledged connectionless service (no prior
connection necessary)
23
*Medium Access Control
24
Ethernet (IEEE 802.3)
25
Inventors of Ethernet
Robert Metcalfe (1946, US)
David R. Boggs (1950, US)
- Developed at Xerox PARC, 1973-1974
• Metcalfe identifies the day Ethernet: May 22,
1973, circulated a memo titled "Alto
Ethernet" containing a rough scheme.
• Boggs identifies another date as birth of
Ethernet: November 11, 1973, the first day
the system actually functioned.
• The two would co-invent Ethernet, with
Metcalfe generating the ideas and Boggs
figuring out how to build the system.
• Patented with the 2 & Thacker, Lampson (75)
• Metcalfe, Boggs, "Ethernet: Distributed
Packet Switching for Local Computer
Networks". Communications of the ACM
(1976)
27
Ethernet Topology
• Ethernet uses a bus topology (a high speed circuit and a
limited distance between the computers, such as within
one building).
• From the outside, an ethernet LAN appears to be a star,
because all cables connect to the central hub.
• Most ethernet LANs span sufficient distance to require
several hubs, but some ethernet LANs are build without
the use of hubs (coax bus).
28
Ethernet Media Access Control
Carrier Sense Multiple Access with Collision
Detection (CSMA/CD)
29
CSMA/CD Flowchart
Ethernet Wiring
segment
Thick Ethernet wiring (Thicknet)
- the first generation
- use thick coax cable (1cmD)
- AUI cable connects NIC to transceiver
- digital signal in AUI
(Attachment Unit Interface)
- analog signal in coax
- 10Base5
10Mbps
max segment: 500m
computer spacing: 2.5m
Thinnet
Hub Ethernet
35
Topology
36
Token Ring Media Access Control
• Token ring uses a controlled-access technique called token passing.
• The “token” is a series of bits, travels between the computers in a
predetermined sequence.
• A computer with a message waits to transmit until it receives a free
token. The computer changes the free token to a busy token and
attaches its message to it. Then it retransmits it on the circuit to the
next computer in the sequence.
• The computer receiving the message, changes the acknowledgement
to ACK (or NAK) and sends the message back to the sender, who
creates a new free token.
37
Token Ring Media Access Control
38
Token Ring Media Access Control
39
Token Ring Media Access Control
Token loss:
• The token crashes before being transmitted - lost a free token
• A computer in the ring crashes - lost a busy token
• A token is always busy.
A solution for the “lost” token problem:
• Designate one computer to be the token monitor and another
computer to be a backup token monitor.
• If no token circulated through the network for a certain length of time
or if a busy token circulates too often, the token monitor will create a
new free token (and destroy the busy token if necessary.)
40
FDDI - Ring Topology
SD FC ED Token frame (3 bytes)
Data frame
Up to 4550 bytes
• Repeater:
• A bi-directional device connect two LAN segments
• Doubles Thicknet segment from 500m to 1000m
• Accepts attenuated and noise signal and output reconstruct signal
• Does not understand frame format and have no hardware address
• Propagates error bits and collisions
Hubs
• The active central element of the star
layout.
• When a single station transmits, the hub
repeats the signal on the outgoing line to
each station.
• Physically a star; logically a bus.
• Hubs can be cascaded in a hierarchical
configuration.
46
Hubs
Operating at the physical layer, hubs are very
simple devices that pass all traffic in both
directions between the LAN sections they link.
They may connect different types of cable, but use
the same data link and network protocol.
Strictly speaking, hubs are not considered part of a
backbone network, but are usually repeaters or
amplifiers.
47
Application of Repeater and Its Limit
50
Bridge Functions
• Read all frames from each network
• Accept frames from sender on one network that are
addressed to a receiver on the other network
• Retransmit frames from sender using MAC protocol
for receiver
• Must have some routing information stored in order to
know which frames to pass
51
Set Up Bridge Table
53
Bridge Operation
54
Optical Fiber Bridging between
Buildings
Bridge cycle
• Bridge Tree : Use multiple bridges to connect LANs to form a large network
e.g., campus network, concurrent transmissions in each LAN
• Bridge Cycle : Several bridges form a loop
• A computer receives two copies of a same packet
• A broadcast packet results in infinite packets in the loop
• A loop is hard to avoid in a large and dynamic network
• Spanning Tree Algorithm (IEEE 802.1 Group)
Switches
58
Switches
Switches operate at the same layers as bridges but
differ from them in two ways:
59
Switched Ethernet
• A simple concept behind switched Ethernet
- replace the LAN hub with a switch. Each
computer now has its own dedicated point-
to-point circuit.
• By increasing the number of connections
from the server to the switch, the
throughput of the server will be improved
because of more circuits.
60
Switched Ethernet
61
Ethernet Hubs and Switches
Hub
• Switch
• A device interconnects computers or LANs
• Physically similar to a hub and logically similar to a bridge array
• One LAN segment per host and bridges interconnect segments
• Operates on packets, understand addresses, only forward if necessary
• Permits concurrent/simultaneous transmissions
• Higher cost than hub per port
Ethernet Hubs and Switches
• Shared
medium
hubs
x
• Switched
LAN hubs
63
Types of Switches
• Store and forward switch
• Accepts a frame on input line
• Buffers it briefly
• Routes it to appropriate output line
• Cut-through switch
• Begins repeating the frame as soon as it recognizes the
destination MAC address
• Higher throughput, increased chance of error
64
Routers
Routers operate at the network layer. Routers connect two
or more LANs that use the same or different data link
protocols, but the same network protocol.
Routers may be “black boxes,” computers with several NICs,
or special network modules in computers.
In general they perform more processing on each message
than bridges and therefore operate more slowly.
65
Routers
66
Routers vs Bridges
• Routers can choose the best route.
• Routers also only process messages specifically
addressed to it.
• Routers can connect networks using different data
link layer protocols. Therefore, routers are able to
change data link layer packets.
• Routers may split a message into several smaller
messages for transmission.
67
Layer 3 Switches
• Problems With Layer 2 Switches
• Broadcast overload because of the single MAC broadcast address (e.g.
using ARP for Data Link Layer address resolution)
• Lack of multiple links - only one path
• Normally, the above problems can be solved with several subnets
connected by routers. However,
• A MAC broadcast frame is then limited to only the devices and switches
contained in a single subnet.
• A router does all IP-level processing, some of which could be not
necessary.
• It is implemented in software and slow.
• Layer 3 switches implement the packet-forwarding logic of the router
in hardware.
68
Gateways
Gateways operate at the network layer and use
network layer addresses in processing messages.
Gateways connect two or more LANs that use the
same or different (usually different) data link and
network protocols. They may connect the same
or different kinds of cable.
Gateways process only those messages explicitly
addressed to them.
69
Gateways
Gateways translate one network protocol into
another, translate data formats, and open
sessions between application programs, thus
overcoming both hardware and software
incompatibilities.
A gateway may be a stand-alone microcomputer
with several NICs and special software, a FEP
connected to a mainframe computer, or even a
special circuit card in the network server.
70
Gateways
71
Gateways
72
A Caveat
73
Cable Modem Configuration
20:02:43
IP Address 68.1.216.37
Subnet Mask 255.255.248.0
Gateway 68.1.216.1
Domain Name Server 68.1.208.30, 68.1.18.30
74
Comparison of Networking Options
Types of WANs
Circuit-Switching
Telephone Company
Circuit Switch Analog Network
Modem Modem
AD/DA AD/DA
Circuit Switch Digital Network
Convert Convert
Comp
LAN
Packet Switch Digital Network Comp
LAN
Other Company
Modem CATV/Power Network Modem
- Computer industry and telephone industry use own standards in different encoding
- DSU/CSU perform the conversion between two standards
- DSU (Data Service Unit): Translations between two encoding
- CSU (Channel Service Unit): management of line termination and diagnose
DSU/CSU Gateway
Digital Telephone Line Standard
- Specified by the telephone industry in each country, different from the world
- Fractional T1= 64, 9.6 or 4.8Kbps, use multiple fractional T1 with multiplexer
- Can be leased in two points
High Capacity Digital Lines
Local Loop
• Analog line :
• Analog signal (300~3300Hz), modem needed, low speed (34/56Kbps)
• Also called PSTN
• ISDN (Integrated Services Digital Network):
• BRI (Basic Rate Interface) = 2B+D, B=64Kbps for data, D=16Kbps for control
• PRI (Primary Rate Interface)=23B+D=1.544Mbps=T1, D=64Kbps for control
• xDSL (Digital Subscriber Line)
• Use existing telephone line to provide high speed transmission, current technology
Public Switched Telephone Network
(PSTN)
• Subscribers • Trunks
• Local loop • Connections between
exchanges
• Connects subscriber to
local telco exchange • Carry multiple voice
circuits using FDM or
• Exchanges synchronous TDM
• Telco switching centers • Managed by IXCs (inter-
• Also known as end office exchange carriers)
• >19,000 in US
Services:
1. Dial-up line
2. Dedicated line
ISDN
0 f (KHz)
ADSL
… … … f (KHz)
0 20 25 200 250 1M
Upstream Downstream
TV TV …
f (MHz)
• Users share the cable
• Each subscriber is assigned an address
Upstream Downstream
• TDM is used like multiple computers in LAN (shared by multiple users)
Cable Modem Connections
Routing tables
without default routes
Routing tables
with default routes
- Each switch or node has a routing table: Left entry right entry
destination switch edge number pair
- Default route can remove duplicate routes, reduce memory and improve performance
Routing Table Computation
- Static routing table: fixed in switch booting and does not change
- Dynamic routing table: initialized in booting and alters as conditions in the network change