SlideShare a Scribd company logo
1 of 60
Slides for Chapter 3:
Networking and Internetworking
From Coulouris, Dollimore and
Kindberg
Distributed Systems:
Concepts and Design
Edition 4, © Pearson Education 2005
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Networking Issues (1)
Performance:
Latency (time between send and start to receive)
Data transfer rate (bits per second) [max]
Transmission time = latency + length / transfer rate
System bandwidth, throughput [actual]: total volume of traffic in
a given amount of time
Using different channels concurrently can make bandwidth >
data transfer rate
traffic load can make bandwidth < data transfer rate
network speed < memory speed (about 1000 times)
Access to local disk is usually faster than remote disk
Fast (expensive) remote disk + fast network
can beat slow (cheap) local disks
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Networking Issues (2)
scalability
reliability
corruption is rare
mechanisms in higher-layers to recover errors
errors are usually timing failures, the receiver doesn't have
resources to handle the messages
security
firewall on gateways (entry point to org's intranet)
encryption is usually in higher-layers
mobility--communication is more challenging: locating,
routing,...
quality of service--real-time services
multicasting--one-to-many communication
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (1)
Local Area Networks (LAN)
floor/building-wide
single communication medium
no routing, broadcast
segments connected by switches or hubs
high bandwidth, low latency
Ethernet - 10Mbps, 100Mbps, 1Gbps
no latency guarantees (what could be the
consequences?)
Personal area networks (PAN) [ad-hoc networks]:
blue tooth, infra-red for PDAs, cell phones, …
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (2)
Metropolitan Area Networks (MAN)
city-wide, up to 50 km
Digital Subscriber Line (DSL): .25 - 8 Mbps, 5.5km
from switch
BellSouth: .8 to 6 Mbps
Cable modem: 1.5 Mbps, longer range than DSL
Bright house w/ Road Runner: .5 to 10Mbps
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (3)
Wide Area Networks (WAN)
world-wide
Different organizations
Large distances
routed, latency .1 - .5 seconds
1-10 Mbps (upto 600 Mbps)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (4)
Wireless local area networks (WLAN)
IEEE 802.11 (WiFi)
10-100 Mbps, 1.5km
802.11 (1997): upto 2 Mbps, 2.4 GHz
802.11a (1999): upto 54 Mbps, 5 GHz, ~75 feet outdoor
802.11b (1999): upto 11 Mbps, 2.4 GHz, ~150 feet [most popular]
802.11g (2003): upto 54 Mbps, 2.4 GHz, ~150 feet [backward
compatible with 802.11b, becoming more popular]
Wireless metropolitan area networks (WMAN)
IEEE 802.16 (WiMax)
1.5-20 Mbps, 5-50km
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (5)
Wireless wide area networks (WWAN)
worldwide
GSM (Global System for Mobile communications)
9.6 – 33 kbps
3G (“third generation”): 128-384 kbps to 2Mbps
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Types of Networks (6)
Internetworks
connecting different kinds of networks
routers, gateways
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network performance
Example Range Bandwidth
(Mbps)
Latency
(ms)
Wired:
LAN Ethernet 1-2 km 10-1000 1-10
MAN ATM 250 km 1-150 10
WAN IP routing worldwide .01-600 100-500
Internetwork Internet worldwide 0.5-600 100-500
Wireless:
WPAN Bluetooth (802.15.1) 10 - 30m 0.5-2 5-20
WLAN WiFi (IEEE 802.11) 0.15-1.5 km 2-54 5-20
WMAN WiMAX (802.16) 550 km 1.5-20 5-20
WWAN GSM, 3G phone nets worldwide 0.01-2 100-500
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (1)
Packet transmission
message: logical unit of informatio
packet: transmission unit
restricted length: sufficient buffer storage, reduce
hogging
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (2)
Data Streaming
audio/video
Need 120 Mbps (1.5 Mbps compressed)
play time: the time when a frame need to be
displayed
for example, 24 frames per second, frame 48 must
be display after two seconds
IP protocol provides no guaranteesIPv6 (new)
includes features for real-time streams, stream data
are treated separately
Resource Reservation Protocol (RSVP), Real-time
Transport Protocol (RTP)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (3)
Switching schemes (transmission between
aribitrary nodes)
Broadcast: ethernet, token ring, wireless
Circuit switching: wires are connected
Packet switching:
store-and-forward
different routes
“store-and-forward” needs to buffer the entire packet before
forwarding
Frame relay
Small packets
Looks only at the first few bits
Don’t buffer/store the entire frame
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (4)
Protocols
Key components
Sequence of messages
Format of messages
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (5)
Protocol layers, why?
Layer n
Layer 2
Layer 1
Message sent Message received
Communication
medium
Sender Recipient
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (6)
Encapsulation in layered protocols
Presentation header
Application-layer message
Session header
Transport header
Networkheader
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (7)
ISO Open Systems Interconnection (OSI) model
Application
Presentation
Session
Transport
Network
Data link
Physical
Message sent Message received
Sender Recipient
Layers
Communication
medium
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (8)
Internet layers
Application = application + presentation
Transport = transport + session
Underlying network
Application
Network interface
Transport
Internetwork
Internetworkpackets
Network-specific packets
Message
Layers
Internetwork
protocols
Underlying
network
protocols
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (9)
Packet assembly
header and data
maximum transfer unit (MTU): 1500 for Ethernet
64K for IP (8K is common because of node storage)
ports: destination abstraction
(application/service protocol)
addressing: transport address = network
address + port
Well-known ports (below 1023)
Registered ports (1024 - 49151)
Private (up to 65535)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (10)
Packet delivery (at the network layer)
Datagram packet
one-shot, no initial set up
different routes, out of order
Ethernet, IP
Virtual circuit packet
initial set up for resources
virtual circuit # for addressing
ATM
Similar but different pairs of protocols at the
transport layer (connection-oriented and
connectionless)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (11)
Routing
LAN?
Routing Algorithm
decide which out-going link to forward the packet
• for circuit switching, the route is determined during the circuit
setup time
• for packet switching, each packet is routed independently
update state of the out-going links
Routing Table
a record for each destination
fields: outgoing link, cost (e.g. hop count)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (12)
Router example
Hosts Links
or local
networks
A
D E
B
C
1
2
5
43
6
Routers
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (13): Routing tables
Routings from D Routings from E
To Link Cost To Link Cost
A
B
C
D
E
3
3
6
local
6
1
2
2
0
1
A
B
C
D
E
4
4
5
6
local
2
1
1
1
0
Routings from A Routings from B Routings from C
To Link Cost To Link Cost To Link Cost
A
B
C
D
E
local
1
1
3
1
0
1
2
1
2
A
B
C
D
E
1
local
2
1
4
1
0
1
2
1
A
B
C
D
E
2
2
local
5
5
2
1
0
2
1
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (14)
Router information protocol (RIP)
"Bellman-Ford distance vector" algorithm
Sender: send table summary periodically (30s) or changes to
neighbors
Receiver: Consider A receives a table from B, A updates
1. A -> B -> … -> X: A updates--B has more up-to-date (authoritative) info
2. A -> not B -> … -> X: Does routing via B have a lower cost?
3. B -> … -> X: A does not know X
4. [B -> A -> … -> X]: A doesn’t update--A has more up-to-date info
5. Faulty link, cost is infinity
RIP-1 (RFC 1058)
More recent algorithms
more information, not just neighbors
link-state algorithms, each node responsible for finding the optimum routes
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (15): Pseudocode for RIP
routing algorithm
Tl is the table local table; Tr is the received remote table
Send: Each t seconds or when Tl changes, send Tl on each non-faulty outgoing link.
Receive: Whenever a routing table Tr is received on link n:
for all rows Rr in Tr {
if (Rr.link != n) { // destination not routed via the receiver
Rr.cost = Rr.cost + 1;
Rr.link = n;
if (Rr.destination is not in Tl) add Rr to Tl;
// add new destination to Tl
else for all rows Rl in Tl {
if (Rr.destination = Rl.destination and
(Rr.cost < Rl.cost or Rl.link = n)) Rl = Rr;
// Rr.cost < Rl.cost : remote node has better route
// Rl.link = n : remote node is more authoritative
}
}
}
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network principles (16)
Congestion control
high traffic load, packets dropped due to limited
resources
reducing transmission rate: "choke packets" from
sender to receiver
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Networking principles (17)
Network connecting devices
Hubs: extending a segment of LAN (broadcast)
Switches: switching traffic at data-link level (different
segments of a LAN), making temporary hardware
connections between two ports (or store and forward)
[switches do not exchange info with each other]
Routers: routing traffic at IP level
Bridges: linking networks of different types, could be
routers as well
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Networking principles (18)
Tunneling
communicate through an "alien" protocol
“Hide” in the payload
IPv6 traffic using IPv4 protocols
A B
IPv6 IPv6
IPv6 encapsulated in IPv4 packets
Encapsulators
IPv4 network
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (1)
IP (Internet Protocol)
"network" layer protocol
IP addresses
TCP (Transmission Control Protocol)
transport layer
connection-oriented
UDP (User Datagram Protocol)
transport layer
connection-less
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (2): TCP/IP layers
Messages (UDP) or Streams (TCP)
Application
Transport
Internet
UDP or TCP packets
IP datagrams
Network-specific frames
Message
Layers
Underlying network
Network interface
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (3): layer encapsulation
Application message
TCP header
IP header
Ethernet header
Ethernet frame
port
TCP
IP
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (4): Programmer’s view
IP
Application Application
TCP UDP
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (5): Internet address structure
32-bit
7 24
Class A: 0 NetworkID Host ID
14 16
Class B: 1 0 NetworkID Host ID
21 8
Class C: 1 1 0 NetworkID Host ID
28
Class D (multicast): 1 1 1 0 Multicast address
27
Class E (reserved): 1 1 1 1 unused0
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (6): Decimal representation
163.118.131.9 (www.fit.edu)
octet 1 octet 2 octet 3
Class A: 1 to 127
0 to 255 0 to 255 1 to 254
Class B: 128 to 191
Class C: 192 to 223
224 to 239Class D (multicast):
Network ID
Network ID
Network ID
Host ID
Host ID
Host ID
Multicast address
0 to 255 0 to 255 1 to 254
0 to 255 0 to 255 0 to 255
0 to 255 0 to 255 0 to 255
Multicast address
0 to 255 0 to 255 1 to 254240 to 255Class E (reserved):
1.0.0.0 to
127.255.255.255
128.0.0.0 to
191.255.255.255
192.0.0.0 to
223.255.255.255
224.0.0.0 to
239.255.255.255
240.0.0.0 to
255.255.255.255
Range of addresses
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (7)
Classless interdomain routing (CIDR)
shortage of Class B networks
add a mask field to indicate bits for network portion
138.73.59.32/22 [subnet: first 22 bits; host: 10 bits]
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (8)
dataIP address of destinationIP address of source
header
up to 64 kilobytes
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (9): Network Address Translation
Sharing one “global” IP address at home
Routers with NAT
Router has a “global” IP address from ISP
Each machine has a “local” IP address via DHCP
Machine -> router
Router stores the local IP addr and source port #
Table entry indexed by a virtual port #
Router -> outside
put the router IP addr and virtual port # in the packet
Outside -> router
Reply to the router IP addr and virtual port #
Router -> machine
Use the virtual port # to find table entry
Forward to the local IP address and port #
What happens if we want the device to be a server, not
a client?
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (10)
83.215.152.95
Ethernet switch
Modem / firewall / router (NAT enabled)
printer
DSL or Cable
connection to ISP192.168.1.xxs ubnet
PC 1
WiFi base station/
access point 192.168.1.10
192.168.1.5
192.168.1.2
192.168.1.1
192.168.1.104 PC 2
192.168.1.101
Laptop
192.168.1.105
Game box
192.168.1.106
Media hub
TV monitor
Bluetooth
adapter
Bluetooth
printer
Camera
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (11)
Server with NAT
Fixed internal addr and port #
Fixed entry in the table
All packets to the port on the router are forwarded to
the internal addr and port # in the entry
What if more than one internal machines want to
offer the same service (port)?
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (12)
IP Protocol
unreliable or best-effort
lost, duplicated, delayed, out of order
header checksum, no data checksum
IP packet longer than MTU of the underlying network, break
into fragments
before sending and reassemble after receiving
Address resolution (on LANs)
mapping IP address to lower level address
ARP: address resolution protocol
ethernet: cache; not in cache, broadcast IP addr, receive Ethernet addr
IP spoofing: address can be stolen (not authenticated)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (13)
RIP-1: discussed previously
RIP-2: CIDR, better multicast routing, authentication of
RIP packets
link-state algorithms: e.g., open shortest path first
(OSPF)
Observed: average latency of IP packets peaks at 30-
seconds intervals [RIP updates are processed before IP]
because 30-second RIP update intervals, locked steps
random interval between 15-45 seconds for RIP update
large table size
all destinations!!
map ip to geographical location
default route: store a subset, default to a single link for unlisted
destinations
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet Protocols (14): IPv6
IP addresses:128 bits (16 bytes)
3 x 1038
addresses (7 x 1023
addresses per square meter!)
routing speed
no data checksum as before
no fragmentation – need to know the smallest MTU in data-link layer
real-time and special services
traffic class: priority, time-dependent (expired data are useless)
flow label: timing requirements for streams (reserving resources in advance)
“next” header field
extension header types for IPv6
routing information, authentication, encryption ...
Anycast: at least one nodes gets it
security
currently handled above the IP layer
extension header types
Migration from IPv4
backward compatibility: IPv6 addresses include IPv4 addresses
Islands of IPv6 networks, traffic tunnels though other IPv4 networks
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (15):
Source address
(128 bits)
Destination address
(128 bits)
Version (4 bits)Traffic class (8 bits) Flow label (20 bits)
Payload length (16 bits) Hop limit (8 bits)Next header (8 bits)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet Protocols (10): Mobile IP
Dynamic Host Configuration Protocol (DHCP)
assign temporary IP address
provide addresses of local resources like DNS
Routing to maintain continuous access
IP routing is subnet-based, fixed relative locations
Home agent (HA) and Foreign agent (FA)
HA - current location (IP addr) of the mobile host
is informed by the mobile host when it moves
proxy for the host after it moves
inform local routers to remove cached records of the host
responds to ARP requests
FA - informed by the host when it arrives
new temp IP addr
contacts HA what the new IP address is
HA - receives the new IP address and may tell the sender the
new IP addr
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (11): MobileIP routing
mechanism
Sender
Home
Mobile host MH
Foreign agent FA
Internet
agent
First IP packet
addressed to MH
Address of FA
returned to sender
First IP packet
tunnelled to FA
Subsequent IP packets
tunnelled to FA
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (12)
Transport protocols: TCP and UDP
network protocol: host to host
transport protocol: process to process
Port #’s to indicate processes
UDP
no guarantee of delivery
checksum is optional
max of 64 bytes, same as IP
no setup costs, no segments
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (13)
TCP
arbitrarily long sequence
connection-oriented
sequencing of segments
flow control: acknowledgement includes "window size" (amount
of data) for sender to send before next ack
interactive service: higher frequency of buffer flush, send when
deadline reached or buffer reaches MTU
retransmission of lost packets
buffering of incoming packets to preserve order and flow
checksum on header and data
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (14)
Domain names
DNS
distributed data
each DNS server keeps track of part of the hierarchy
unresolved requests are sent to servers higher in the
hierarchy
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (15)
Firewalls
monitor and filter communication
controlling what services are available to the outside
controlling the use of services
controlling internal users access to the outside
Filtering at different protocol levels
IP packet filtering: addresses, ports..
TCP gateway: check for correctness in TCP connections
e.g., are they partially opened and never used (why?)
Application-level gateway: proxy for applications
no direct communication between the inside and outside
e.g., smtp proxy can check addresses, content...
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (16)
Bastion (tcp/
application filter)
C): two router
filters
Access to web/ftp
server, but not LAN
Hide internal IP
addresses
Bastion has the
mapping
Second router is the
second IP filter
(invisible to the
outside)
Internet
Router/
Protected intranet
a) Filtering router
Internet
b) Filtering router and bastion
filter
Internet
R/filterc) Screened subnet for bastion R/filter Bastion
R/filter Bastion
web/ftp
server
web/ftp
server
web/ftp
server
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Internet protocols (17)
Virtual Private Network (VPN)
extending a secured internal network to an external
unsecured host
e.g. IPSec tunneling through IP
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (1): Ethernet and WiFi
IEEE No. Name Title Reference
802.3 Ethernet CSMA/CD Networks (Ethernet) [IEEE 1985a]
802.4 Token Bus Networks [IEEE 1985b]
802.5 Token Ring Networks [IEEE 1985c]
802.6 Metropolitan Area Networks [IEEE 1994]
802.11 WiFi Wireless Local Area Networks [IEEE 1999]
802.15.1 Bluetooth Wireless Personal Area Networks [IEEE 2002]
802.15.4 ZigBee Wireless Sensor Networks [IEEE 2003]
802.16 WiMAX Wireless Metropolitan Area Networks[IEEE 2004a]
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (2): Ethernet
Ethernet, CSMA/CD, IEEE 802.3
Xerox Palo Alto Research Center (PARC), 1973, 3Mbps
10,100,1000 Mbps
extending a segment: hubs and repeaters
connecting segments: switches and bridges
Contention bus
Packet/frame format
preamble (7 bytes): hardware timing
start frame delimiter (1)
dest addr (6)
src addr (6)
length (2)
data (46 - 1500): min total becomes 64 bytes, max total is 1518
checksum (4): dropped if incorrect
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (3)
Carrier Sensing Multiple Access / Collision Detection (CSMA/CD)
CS: listen before transmitting, transmit only when no traffic
MA: more than one can transmit
CD: collision detected when signals transmitted are not the same as
those received (listen to its own transmission)
After detection of a collision
• send jamming signal
• wait for a random period before retransmitting
T (Tau): time to reach the farthest station
When is the collision detected?
A and B send at the same time
A sends, B sends within T seconds
A sends, B sends between T and 2T seconds
A sends, B sends after 2T seconds
Minimum length of packet for collision detection:
packet length > 2T, between T and 2T, and < T ?
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (4)
Physical implementation:
<R><B><L>
R: data rate in Mbps
B: medium signaling type: baseband [one channel]
or broadband [multiple channels]
L: max segment length in 100meters or T (twisted
pair cable, hierarchy of hubs)
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (5): Ranges and speeds
10Base5 10BaseT 100BaseT 1000BaseT
Data rate 10 Mbps 10 Mbps 100 Mbps 1000 Mbps
Max. segment lengths:
Twisted wire (UTP) 100 m 100 m 100 m 25 m
Coaxial cable (STP) 500 m 500 m 500 m 25 m
Multi-mode fibre 2000 m 2000 m 500 m 500 m
Mono-mode fibre 25000 m 25000 m 20000 m 2000 m
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (6): WiFi
IEEE 802.11 wireless LAN
up to 150m and 54Mbps
access point (base station) to land wires
Ad hoc network--no specific access points, "on the
fly" network among machines in the neighborhood
Radio Frequency (2.4, 5GHz band) or infra-red
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (7): Problems with wireless
CSMA/CD
Hidden station: not able to detect another station is transmitting
A can’t see D, or vice versa
Fading: signals weaken, out of range
A and C are out of range from each other
Collision masking: stronger signals could hide others
A and C are out of range from each other, both transmits, collide, can't detect collision, Access point
gets garbage
LAN
Server
Wireless
LAN
Laptops
Base station/
access point
Palmtop
radio obstruction
A B C
D
E
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (8)
Carrier sensing multiple access with collision
avoidance (CSMA/CA)
reserving slots to transmit
if no carrier signal
medium is available,
out-of-range station requesting a slot, or
out-of-range station using a slot
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4
© Pearson Education 2005
Network Case Studies (9)
Steps
1. Request to send (RTS) from sender to receiver, specify
duration
2. Clear to send (CTS) in reply
3. in-range stations see the RTS and/or CTS and its duration
4. in-range stations stop transmitting
5. acknowledgement from the receiver
Hidden station & Fading: CTS, need permission to
transmit
RTS and CTS are short, don't usually collide; random
back off if collision detected
Should have no collisions, send only when a slot is
reserved

More Related Content

What's hot

1a introduction to network fundamentals
1a introduction to network fundamentals1a introduction to network fundamentals
1a introduction to network fundamentalskavish dani
 
The Physical Layer
The Physical LayerThe Physical Layer
The Physical Layeradil raja
 
Fundamentals of Networking
Fundamentals of NetworkingFundamentals of Networking
Fundamentals of Networkingjashhad
 
A hybrid push pull overlay network for
A hybrid push pull overlay network forA hybrid push pull overlay network for
A hybrid push pull overlay network forijp2p
 
Lecture3 Physical Layer
Lecture3 Physical LayerLecture3 Physical Layer
Lecture3 Physical LayerWaqas !!!!
 
Data Center Physical Layer
Data Center Physical LayerData Center Physical Layer
Data Center Physical LayerDIMITRIS FILIPPOU
 
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMING
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMINGA HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMING
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMINGijp2p
 
Computer Network Manual
Computer Network ManualComputer Network Manual
Computer Network ManualAkshayJain497
 
IT Infrastructure and Network Technologies - Finals by Mark John Lado
IT Infrastructure and Network Technologies - Finals by Mark John LadoIT Infrastructure and Network Technologies - Finals by Mark John Lado
IT Infrastructure and Network Technologies - Finals by Mark John LadoMark John Lado, MIT
 
5 intro to networking
5 intro to networking5 intro to networking
5 intro to networkingKhan Rahimeen
 
Network Fundamentals: Ch8 - Physical Layer
Network Fundamentals: Ch8 - Physical LayerNetwork Fundamentals: Ch8 - Physical Layer
Network Fundamentals: Ch8 - Physical LayerAbdelkhalik Mosa
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaMukesh Chinta
 
Network Devices & Media
Network Devices & MediaNetwork Devices & Media
Network Devices & MediaSoumyakatkam
 
Seminar on BSNL
Seminar on BSNLSeminar on BSNL
Seminar on BSNLPankaj Tiwari
 
Physical Layer
Physical LayerPhysical Layer
Physical LayerRutwik Jadhav
 

What's hot (20)

Chapter 4ver2
Chapter 4ver2Chapter 4ver2
Chapter 4ver2
 
1a introduction to network fundamentals
1a introduction to network fundamentals1a introduction to network fundamentals
1a introduction to network fundamentals
 
The Physical Layer
The Physical LayerThe Physical Layer
The Physical Layer
 
Fundamentals of Networking
Fundamentals of NetworkingFundamentals of Networking
Fundamentals of Networking
 
A hybrid push pull overlay network for
A hybrid push pull overlay network forA hybrid push pull overlay network for
A hybrid push pull overlay network for
 
Lecture3 Physical Layer
Lecture3 Physical LayerLecture3 Physical Layer
Lecture3 Physical Layer
 
Data Center Physical Layer
Data Center Physical LayerData Center Physical Layer
Data Center Physical Layer
 
Unit_I - 1
Unit_I - 1Unit_I - 1
Unit_I - 1
 
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMING
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMINGA HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMING
A HYBRID PUSH-PULL OVERLAY NETWORK FOR PEER-TO-PEER VIDEO STREAMING
 
Computer Network Manual
Computer Network ManualComputer Network Manual
Computer Network Manual
 
Unit_I - 4
Unit_I - 4Unit_I - 4
Unit_I - 4
 
IT Infrastructure and Network Technologies - Finals by Mark John Lado
IT Infrastructure and Network Technologies - Finals by Mark John LadoIT Infrastructure and Network Technologies - Finals by Mark John Lado
IT Infrastructure and Network Technologies - Finals by Mark John Lado
 
5 intro to networking
5 intro to networking5 intro to networking
5 intro to networking
 
Chapter1 introduction
Chapter1 introductionChapter1 introduction
Chapter1 introduction
 
Network Fundamentals: Ch8 - Physical Layer
Network Fundamentals: Ch8 - Physical LayerNetwork Fundamentals: Ch8 - Physical Layer
Network Fundamentals: Ch8 - Physical Layer
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission Media
 
Network Devices & Media
Network Devices & MediaNetwork Devices & Media
Network Devices & Media
 
Seminar on BSNL
Seminar on BSNLSeminar on BSNL
Seminar on BSNL
 
Physical Layer
Physical LayerPhysical Layer
Physical Layer
 
Ccna report
Ccna reportCcna report
Ccna report
 

Similar to Networking Concepts and Performance Metrics

Computer networking Chapter 3.hsjwjjajskwkkw
Computer networking Chapter 3.hsjwjjajskwkkwComputer networking Chapter 3.hsjwjjajskwkkw
Computer networking Chapter 3.hsjwjjajskwkkwAgentNawab
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system modelsAbDul ThaYyal
 
Chapter 3 slides (Distributed Systems)
Chapter 3 slides (Distributed Systems)Chapter 3 slides (Distributed Systems)
Chapter 3 slides (Distributed Systems)soe sumijan
 
Chapter1 Introduction.pptx
Chapter1 Introduction.pptxChapter1 Introduction.pptx
Chapter1 Introduction.pptxhuanyuzhang5
 
Introduction to Computer Networking CYSE230
Introduction to Computer Networking CYSE230Introduction to Computer Networking CYSE230
Introduction to Computer Networking CYSE230killerbladex15
 
2018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 72018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 7FRSecure
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsAbDul ThaYyal
 
networking
networking networking
networking AmanyaLaban
 
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmn
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmnBSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmn
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmnAreshZabi
 
Chapter_1_V6.1.ppt
Chapter_1_V6.1.pptChapter_1_V6.1.ppt
Chapter_1_V6.1.pptubaidullah75790
 
Chapter_1 V6.1 absolute java original slides
Chapter_1 V6.1 absolute java original slidesChapter_1 V6.1 absolute java original slides
Chapter_1 V6.1 absolute java original slidesmzayed5
 
CN Module 1 ppt final 20.08.2020.ppt
CN Module 1 ppt final 20.08.2020.pptCN Module 1 ppt final 20.08.2020.ppt
CN Module 1 ppt final 20.08.2020.pptdeeplearning6
 
Lecture 01 {Introduction}.pptx
Lecture 01 {Introduction}.pptxLecture 01 {Introduction}.pptx
Lecture 01 {Introduction}.pptxSurendraBasnet6
 

Similar to Networking Concepts and Performance Metrics (20)

ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Computer networking Chapter 3.hsjwjjajskwkkw
Computer networking Chapter 3.hsjwjjajskwkkwComputer networking Chapter 3.hsjwjjajskwkkw
Computer networking Chapter 3.hsjwjjajskwkkw
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system models
 
Chapter 3 slides (Distributed Systems)
Chapter 3 slides (Distributed Systems)Chapter 3 slides (Distributed Systems)
Chapter 3 slides (Distributed Systems)
 
Chapter1 Introduction.pptx
Chapter1 Introduction.pptxChapter1 Introduction.pptx
Chapter1 Introduction.pptx
 
Introduction to Computer Networking CYSE230
Introduction to Computer Networking CYSE230Introduction to Computer Networking CYSE230
Introduction to Computer Networking CYSE230
 
Module1.ppt
Module1.pptModule1.ppt
Module1.ppt
 
2018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 72018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 7
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systems
 
networking
networking networking
networking
 
Lecture No. 1.ppt
Lecture No. 1.pptLecture No. 1.ppt
Lecture No. 1.ppt
 
Networking Basics
Networking BasicsNetworking Basics
Networking Basics
 
Chapter_1_.pptx
Chapter_1_.pptxChapter_1_.pptx
Chapter_1_.pptx
 
Lecture1
Lecture1Lecture1
Lecture1
 
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmn
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmnBSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmn
BSIT-4th-CN-Course Outlines.pdfc gjcnbcmjhmn
 
Chapter_1_V6.1.ppt
Chapter_1_V6.1.pptChapter_1_V6.1.ppt
Chapter_1_V6.1.ppt
 
Chapter_1 V6.1 absolute java original slides
Chapter_1 V6.1 absolute java original slidesChapter_1 V6.1 absolute java original slides
Chapter_1 V6.1 absolute java original slides
 
CN Module 1 ppt final 20.08.2020.ppt
CN Module 1 ppt final 20.08.2020.pptCN Module 1 ppt final 20.08.2020.ppt
CN Module 1 ppt final 20.08.2020.ppt
 
Lecture 01 {Introduction}.pptx
Lecture 01 {Introduction}.pptxLecture 01 {Introduction}.pptx
Lecture 01 {Introduction}.pptx
 
Week8 final
Week8 finalWeek8 final
Week8 final
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)Dr. Mazin Mohamed alkathiri
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 

Networking Concepts and Performance Metrics

  • 1. Slides for Chapter 3: Networking and Internetworking From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Pearson Education 2005
  • 2. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Networking Issues (1) Performance: Latency (time between send and start to receive) Data transfer rate (bits per second) [max] Transmission time = latency + length / transfer rate System bandwidth, throughput [actual]: total volume of traffic in a given amount of time Using different channels concurrently can make bandwidth > data transfer rate traffic load can make bandwidth < data transfer rate network speed < memory speed (about 1000 times) Access to local disk is usually faster than remote disk Fast (expensive) remote disk + fast network can beat slow (cheap) local disks
  • 3. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Networking Issues (2) scalability reliability corruption is rare mechanisms in higher-layers to recover errors errors are usually timing failures, the receiver doesn't have resources to handle the messages security firewall on gateways (entry point to org's intranet) encryption is usually in higher-layers mobility--communication is more challenging: locating, routing,... quality of service--real-time services multicasting--one-to-many communication
  • 4. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (1) Local Area Networks (LAN) floor/building-wide single communication medium no routing, broadcast segments connected by switches or hubs high bandwidth, low latency Ethernet - 10Mbps, 100Mbps, 1Gbps no latency guarantees (what could be the consequences?) Personal area networks (PAN) [ad-hoc networks]: blue tooth, infra-red for PDAs, cell phones, …
  • 5. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (2) Metropolitan Area Networks (MAN) city-wide, up to 50 km Digital Subscriber Line (DSL): .25 - 8 Mbps, 5.5km from switch BellSouth: .8 to 6 Mbps Cable modem: 1.5 Mbps, longer range than DSL Bright house w/ Road Runner: .5 to 10Mbps
  • 6. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (3) Wide Area Networks (WAN) world-wide Different organizations Large distances routed, latency .1 - .5 seconds 1-10 Mbps (upto 600 Mbps)
  • 7. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (4) Wireless local area networks (WLAN) IEEE 802.11 (WiFi) 10-100 Mbps, 1.5km 802.11 (1997): upto 2 Mbps, 2.4 GHz 802.11a (1999): upto 54 Mbps, 5 GHz, ~75 feet outdoor 802.11b (1999): upto 11 Mbps, 2.4 GHz, ~150 feet [most popular] 802.11g (2003): upto 54 Mbps, 2.4 GHz, ~150 feet [backward compatible with 802.11b, becoming more popular] Wireless metropolitan area networks (WMAN) IEEE 802.16 (WiMax) 1.5-20 Mbps, 5-50km
  • 8. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (5) Wireless wide area networks (WWAN) worldwide GSM (Global System for Mobile communications) 9.6 – 33 kbps 3G (“third generation”): 128-384 kbps to 2Mbps
  • 9. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Types of Networks (6) Internetworks connecting different kinds of networks routers, gateways
  • 10. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network performance Example Range Bandwidth (Mbps) Latency (ms) Wired: LAN Ethernet 1-2 km 10-1000 1-10 MAN ATM 250 km 1-150 10 WAN IP routing worldwide .01-600 100-500 Internetwork Internet worldwide 0.5-600 100-500 Wireless: WPAN Bluetooth (802.15.1) 10 - 30m 0.5-2 5-20 WLAN WiFi (IEEE 802.11) 0.15-1.5 km 2-54 5-20 WMAN WiMAX (802.16) 550 km 1.5-20 5-20 WWAN GSM, 3G phone nets worldwide 0.01-2 100-500
  • 11. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (1) Packet transmission message: logical unit of informatio packet: transmission unit restricted length: sufficient buffer storage, reduce hogging
  • 12. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (2) Data Streaming audio/video Need 120 Mbps (1.5 Mbps compressed) play time: the time when a frame need to be displayed for example, 24 frames per second, frame 48 must be display after two seconds IP protocol provides no guaranteesIPv6 (new) includes features for real-time streams, stream data are treated separately Resource Reservation Protocol (RSVP), Real-time Transport Protocol (RTP)
  • 13. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (3) Switching schemes (transmission between aribitrary nodes) Broadcast: ethernet, token ring, wireless Circuit switching: wires are connected Packet switching: store-and-forward different routes “store-and-forward” needs to buffer the entire packet before forwarding Frame relay Small packets Looks only at the first few bits Don’t buffer/store the entire frame
  • 14. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (4) Protocols Key components Sequence of messages Format of messages
  • 15. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (5) Protocol layers, why? Layer n Layer 2 Layer 1 Message sent Message received Communication medium Sender Recipient
  • 16. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (6) Encapsulation in layered protocols Presentation header Application-layer message Session header Transport header Networkheader
  • 17. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (7) ISO Open Systems Interconnection (OSI) model Application Presentation Session Transport Network Data link Physical Message sent Message received Sender Recipient Layers Communication medium
  • 18. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (8) Internet layers Application = application + presentation Transport = transport + session Underlying network Application Network interface Transport Internetwork Internetworkpackets Network-specific packets Message Layers Internetwork protocols Underlying network protocols
  • 19. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (9) Packet assembly header and data maximum transfer unit (MTU): 1500 for Ethernet 64K for IP (8K is common because of node storage) ports: destination abstraction (application/service protocol) addressing: transport address = network address + port Well-known ports (below 1023) Registered ports (1024 - 49151) Private (up to 65535)
  • 20. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (10) Packet delivery (at the network layer) Datagram packet one-shot, no initial set up different routes, out of order Ethernet, IP Virtual circuit packet initial set up for resources virtual circuit # for addressing ATM Similar but different pairs of protocols at the transport layer (connection-oriented and connectionless)
  • 21. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (11) Routing LAN? Routing Algorithm decide which out-going link to forward the packet • for circuit switching, the route is determined during the circuit setup time • for packet switching, each packet is routed independently update state of the out-going links Routing Table a record for each destination fields: outgoing link, cost (e.g. hop count)
  • 22. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (12) Router example Hosts Links or local networks A D E B C 1 2 5 43 6 Routers
  • 23. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (13): Routing tables Routings from D Routings from E To Link Cost To Link Cost A B C D E 3 3 6 local 6 1 2 2 0 1 A B C D E 4 4 5 6 local 2 1 1 1 0 Routings from A Routings from B Routings from C To Link Cost To Link Cost To Link Cost A B C D E local 1 1 3 1 0 1 2 1 2 A B C D E 1 local 2 1 4 1 0 1 2 1 A B C D E 2 2 local 5 5 2 1 0 2 1
  • 24. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (14) Router information protocol (RIP) "Bellman-Ford distance vector" algorithm Sender: send table summary periodically (30s) or changes to neighbors Receiver: Consider A receives a table from B, A updates 1. A -> B -> … -> X: A updates--B has more up-to-date (authoritative) info 2. A -> not B -> … -> X: Does routing via B have a lower cost? 3. B -> … -> X: A does not know X 4. [B -> A -> … -> X]: A doesn’t update--A has more up-to-date info 5. Faulty link, cost is infinity RIP-1 (RFC 1058) More recent algorithms more information, not just neighbors link-state algorithms, each node responsible for finding the optimum routes
  • 25. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (15): Pseudocode for RIP routing algorithm Tl is the table local table; Tr is the received remote table Send: Each t seconds or when Tl changes, send Tl on each non-faulty outgoing link. Receive: Whenever a routing table Tr is received on link n: for all rows Rr in Tr { if (Rr.link != n) { // destination not routed via the receiver Rr.cost = Rr.cost + 1; Rr.link = n; if (Rr.destination is not in Tl) add Rr to Tl; // add new destination to Tl else for all rows Rl in Tl { if (Rr.destination = Rl.destination and (Rr.cost < Rl.cost or Rl.link = n)) Rl = Rr; // Rr.cost < Rl.cost : remote node has better route // Rl.link = n : remote node is more authoritative } } }
  • 26. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network principles (16) Congestion control high traffic load, packets dropped due to limited resources reducing transmission rate: "choke packets" from sender to receiver
  • 27. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Networking principles (17) Network connecting devices Hubs: extending a segment of LAN (broadcast) Switches: switching traffic at data-link level (different segments of a LAN), making temporary hardware connections between two ports (or store and forward) [switches do not exchange info with each other] Routers: routing traffic at IP level Bridges: linking networks of different types, could be routers as well
  • 28. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Networking principles (18) Tunneling communicate through an "alien" protocol “Hide” in the payload IPv6 traffic using IPv4 protocols A B IPv6 IPv6 IPv6 encapsulated in IPv4 packets Encapsulators IPv4 network
  • 29. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (1) IP (Internet Protocol) "network" layer protocol IP addresses TCP (Transmission Control Protocol) transport layer connection-oriented UDP (User Datagram Protocol) transport layer connection-less
  • 30. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (2): TCP/IP layers Messages (UDP) or Streams (TCP) Application Transport Internet UDP or TCP packets IP datagrams Network-specific frames Message Layers Underlying network Network interface
  • 31. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (3): layer encapsulation Application message TCP header IP header Ethernet header Ethernet frame port TCP IP
  • 32. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (4): Programmer’s view IP Application Application TCP UDP
  • 33. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (5): Internet address structure 32-bit 7 24 Class A: 0 NetworkID Host ID 14 16 Class B: 1 0 NetworkID Host ID 21 8 Class C: 1 1 0 NetworkID Host ID 28 Class D (multicast): 1 1 1 0 Multicast address 27 Class E (reserved): 1 1 1 1 unused0
  • 34. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (6): Decimal representation 163.118.131.9 (www.fit.edu) octet 1 octet 2 octet 3 Class A: 1 to 127 0 to 255 0 to 255 1 to 254 Class B: 128 to 191 Class C: 192 to 223 224 to 239Class D (multicast): Network ID Network ID Network ID Host ID Host ID Host ID Multicast address 0 to 255 0 to 255 1 to 254 0 to 255 0 to 255 0 to 255 0 to 255 0 to 255 0 to 255 Multicast address 0 to 255 0 to 255 1 to 254240 to 255Class E (reserved): 1.0.0.0 to 127.255.255.255 128.0.0.0 to 191.255.255.255 192.0.0.0 to 223.255.255.255 224.0.0.0 to 239.255.255.255 240.0.0.0 to 255.255.255.255 Range of addresses
  • 35. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (7) Classless interdomain routing (CIDR) shortage of Class B networks add a mask field to indicate bits for network portion 138.73.59.32/22 [subnet: first 22 bits; host: 10 bits]
  • 36. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (8) dataIP address of destinationIP address of source header up to 64 kilobytes
  • 37. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (9): Network Address Translation Sharing one “global” IP address at home Routers with NAT Router has a “global” IP address from ISP Each machine has a “local” IP address via DHCP Machine -> router Router stores the local IP addr and source port # Table entry indexed by a virtual port # Router -> outside put the router IP addr and virtual port # in the packet Outside -> router Reply to the router IP addr and virtual port # Router -> machine Use the virtual port # to find table entry Forward to the local IP address and port # What happens if we want the device to be a server, not a client?
  • 38. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (10) 83.215.152.95 Ethernet switch Modem / firewall / router (NAT enabled) printer DSL or Cable connection to ISP192.168.1.xxs ubnet PC 1 WiFi base station/ access point 192.168.1.10 192.168.1.5 192.168.1.2 192.168.1.1 192.168.1.104 PC 2 192.168.1.101 Laptop 192.168.1.105 Game box 192.168.1.106 Media hub TV monitor Bluetooth adapter Bluetooth printer Camera
  • 39. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (11) Server with NAT Fixed internal addr and port # Fixed entry in the table All packets to the port on the router are forwarded to the internal addr and port # in the entry What if more than one internal machines want to offer the same service (port)?
  • 40. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (12) IP Protocol unreliable or best-effort lost, duplicated, delayed, out of order header checksum, no data checksum IP packet longer than MTU of the underlying network, break into fragments before sending and reassemble after receiving Address resolution (on LANs) mapping IP address to lower level address ARP: address resolution protocol ethernet: cache; not in cache, broadcast IP addr, receive Ethernet addr IP spoofing: address can be stolen (not authenticated)
  • 41. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (13) RIP-1: discussed previously RIP-2: CIDR, better multicast routing, authentication of RIP packets link-state algorithms: e.g., open shortest path first (OSPF) Observed: average latency of IP packets peaks at 30- seconds intervals [RIP updates are processed before IP] because 30-second RIP update intervals, locked steps random interval between 15-45 seconds for RIP update large table size all destinations!! map ip to geographical location default route: store a subset, default to a single link for unlisted destinations
  • 42. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet Protocols (14): IPv6 IP addresses:128 bits (16 bytes) 3 x 1038 addresses (7 x 1023 addresses per square meter!) routing speed no data checksum as before no fragmentation – need to know the smallest MTU in data-link layer real-time and special services traffic class: priority, time-dependent (expired data are useless) flow label: timing requirements for streams (reserving resources in advance) “next” header field extension header types for IPv6 routing information, authentication, encryption ... Anycast: at least one nodes gets it security currently handled above the IP layer extension header types Migration from IPv4 backward compatibility: IPv6 addresses include IPv4 addresses Islands of IPv6 networks, traffic tunnels though other IPv4 networks
  • 43. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (15): Source address (128 bits) Destination address (128 bits) Version (4 bits)Traffic class (8 bits) Flow label (20 bits) Payload length (16 bits) Hop limit (8 bits)Next header (8 bits)
  • 44. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet Protocols (10): Mobile IP Dynamic Host Configuration Protocol (DHCP) assign temporary IP address provide addresses of local resources like DNS Routing to maintain continuous access IP routing is subnet-based, fixed relative locations Home agent (HA) and Foreign agent (FA) HA - current location (IP addr) of the mobile host is informed by the mobile host when it moves proxy for the host after it moves inform local routers to remove cached records of the host responds to ARP requests FA - informed by the host when it arrives new temp IP addr contacts HA what the new IP address is HA - receives the new IP address and may tell the sender the new IP addr
  • 45. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (11): MobileIP routing mechanism Sender Home Mobile host MH Foreign agent FA Internet agent First IP packet addressed to MH Address of FA returned to sender First IP packet tunnelled to FA Subsequent IP packets tunnelled to FA
  • 46. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (12) Transport protocols: TCP and UDP network protocol: host to host transport protocol: process to process Port #’s to indicate processes UDP no guarantee of delivery checksum is optional max of 64 bytes, same as IP no setup costs, no segments
  • 47. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (13) TCP arbitrarily long sequence connection-oriented sequencing of segments flow control: acknowledgement includes "window size" (amount of data) for sender to send before next ack interactive service: higher frequency of buffer flush, send when deadline reached or buffer reaches MTU retransmission of lost packets buffering of incoming packets to preserve order and flow checksum on header and data
  • 48. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (14) Domain names DNS distributed data each DNS server keeps track of part of the hierarchy unresolved requests are sent to servers higher in the hierarchy
  • 49. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (15) Firewalls monitor and filter communication controlling what services are available to the outside controlling the use of services controlling internal users access to the outside Filtering at different protocol levels IP packet filtering: addresses, ports.. TCP gateway: check for correctness in TCP connections e.g., are they partially opened and never used (why?) Application-level gateway: proxy for applications no direct communication between the inside and outside e.g., smtp proxy can check addresses, content...
  • 50. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (16) Bastion (tcp/ application filter) C): two router filters Access to web/ftp server, but not LAN Hide internal IP addresses Bastion has the mapping Second router is the second IP filter (invisible to the outside) Internet Router/ Protected intranet a) Filtering router Internet b) Filtering router and bastion filter Internet R/filterc) Screened subnet for bastion R/filter Bastion R/filter Bastion web/ftp server web/ftp server web/ftp server
  • 51. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Internet protocols (17) Virtual Private Network (VPN) extending a secured internal network to an external unsecured host e.g. IPSec tunneling through IP
  • 52. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (1): Ethernet and WiFi IEEE No. Name Title Reference 802.3 Ethernet CSMA/CD Networks (Ethernet) [IEEE 1985a] 802.4 Token Bus Networks [IEEE 1985b] 802.5 Token Ring Networks [IEEE 1985c] 802.6 Metropolitan Area Networks [IEEE 1994] 802.11 WiFi Wireless Local Area Networks [IEEE 1999] 802.15.1 Bluetooth Wireless Personal Area Networks [IEEE 2002] 802.15.4 ZigBee Wireless Sensor Networks [IEEE 2003] 802.16 WiMAX Wireless Metropolitan Area Networks[IEEE 2004a]
  • 53. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (2): Ethernet Ethernet, CSMA/CD, IEEE 802.3 Xerox Palo Alto Research Center (PARC), 1973, 3Mbps 10,100,1000 Mbps extending a segment: hubs and repeaters connecting segments: switches and bridges Contention bus Packet/frame format preamble (7 bytes): hardware timing start frame delimiter (1) dest addr (6) src addr (6) length (2) data (46 - 1500): min total becomes 64 bytes, max total is 1518 checksum (4): dropped if incorrect
  • 54. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (3) Carrier Sensing Multiple Access / Collision Detection (CSMA/CD) CS: listen before transmitting, transmit only when no traffic MA: more than one can transmit CD: collision detected when signals transmitted are not the same as those received (listen to its own transmission) After detection of a collision • send jamming signal • wait for a random period before retransmitting T (Tau): time to reach the farthest station When is the collision detected? A and B send at the same time A sends, B sends within T seconds A sends, B sends between T and 2T seconds A sends, B sends after 2T seconds Minimum length of packet for collision detection: packet length > 2T, between T and 2T, and < T ?
  • 55. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (4) Physical implementation: <R><B><L> R: data rate in Mbps B: medium signaling type: baseband [one channel] or broadband [multiple channels] L: max segment length in 100meters or T (twisted pair cable, hierarchy of hubs)
  • 56. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (5): Ranges and speeds 10Base5 10BaseT 100BaseT 1000BaseT Data rate 10 Mbps 10 Mbps 100 Mbps 1000 Mbps Max. segment lengths: Twisted wire (UTP) 100 m 100 m 100 m 25 m Coaxial cable (STP) 500 m 500 m 500 m 25 m Multi-mode fibre 2000 m 2000 m 500 m 500 m Mono-mode fibre 25000 m 25000 m 20000 m 2000 m
  • 57. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (6): WiFi IEEE 802.11 wireless LAN up to 150m and 54Mbps access point (base station) to land wires Ad hoc network--no specific access points, "on the fly" network among machines in the neighborhood Radio Frequency (2.4, 5GHz band) or infra-red
  • 58. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (7): Problems with wireless CSMA/CD Hidden station: not able to detect another station is transmitting A can’t see D, or vice versa Fading: signals weaken, out of range A and C are out of range from each other Collision masking: stronger signals could hide others A and C are out of range from each other, both transmits, collide, can't detect collision, Access point gets garbage LAN Server Wireless LAN Laptops Base station/ access point Palmtop radio obstruction A B C D E
  • 59. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (8) Carrier sensing multiple access with collision avoidance (CSMA/CA) reserving slots to transmit if no carrier signal medium is available, out-of-range station requesting a slot, or out-of-range station using a slot
  • 60. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 4 © Pearson Education 2005 Network Case Studies (9) Steps 1. Request to send (RTS) from sender to receiver, specify duration 2. Clear to send (CTS) in reply 3. in-range stations see the RTS and/or CTS and its duration 4. in-range stations stop transmitting 5. acknowledgement from the receiver Hidden station & Fading: CTS, need permission to transmit RTS and CTS are short, don't usually collide; random back off if collision detected Should have no collisions, send only when a slot is reserved