Lecture 2 Chapter 1 Part2
Lecture 2 Chapter 1 Part2
Networks
Chapter 1
Part 2
Chapter 1
Roadmap:
1.1 what’s the Internet? what’s a protocol?
1.2 Network edge:
• End systems, access networks & links
1.3 Network core:
• Circuit switching, Packet switching, and network structure
1.4 Performance:
• Delay, loss, and throughput in Packet switched networks
1.5 Protocol layers, service models
1.6 Summary
1.3 The Network Core
Packet Switching
Resource contention:
• aggregate resource demand can
exceed amount available
• congestion: packets queue, wait for
link use
• most packet switches OR routers
use store and forward: packets store-and forward delay =
move one hop at a time L/R
(assuming zero propagation delay)
• Switch receives complete packet
before forwarding
• introduce a store-and forward delay
1.3 The Network Core
Packet Switching
• In packet-based networks, the message gets broken into small data packets.
• These packets are sent out from the computer and they travel around the network
seeking out the most efficient route to travel as circuits become available.
• This does not necessarily mean that they seek out the shortest route.
• Each packet may go a different route from the others.
1.3 The Network Core
Packet Switching
• Each packet is sent with a ‘header address’ which tells it where its final destination
is, so it knows where to go.
• The header address also describes the sequence for reassembly at the destination
computer so that the packets are put back into the correct order.
• One packet also contains details of how many packets should be arriving so that
the recipient computer knows if one packet has failed to turn up.
• If a packet fails to arrive, the recipient computer sends a message back to the
computer which originally sent the data, asking for the missing packet to be resent.
1.3 The Network Core
Packet Switching
Advantages
• Security
• Bandwidth used to full potential
• Devices of different speeds can communicate
• Not affected by line failure (redirects signal)
• Availability – no waiting for a direct connection to become available
• During a crisis or disaster, when the public telephone network might
stop working, e-mails and texts can still be sent via packet switching
1.3 The Network Core
Packet Switching
Disadvantages
• Under heavy use there can be a delay
• Data packets can get lost or become corrupted
• Protocols are needed for a reliable transfer
• Not so good for some types of data streams (e.g. real-
time video streams can lose frames due to the way
packets arrive out of sequence)
1.3 The Network Core
Packet Switching (Statistical Multiplexing)
100 Mb/s C
A Ethernet statistical multiplexing
1.5 Mb/s
B
queue of packets
waiting for output
link
D E
1.3 The Network Core
Packet Switching (Statistical Multiplexing)
• packets (A & B) does not follow any periodic ordering; the ordering is random or
statistical, bandwidth shared on demand statistical multiplexing.
Suppose that there are Q links between A and E, each of rate R bps. The packet
must first be transmitted onto the first link emanating from host A; this takes L/R
seconds. It must then be transmitted on each of the Q-1 remaining links, that is, it
must be stored-and-forwarded Q-1 times.
Thus the total delay is QL/R.
1.3 The Network Core
Packet Switching (store-and-forward)
L
R R R
Pkt Switch (Router) receives complete packet before forwarding
introduce a store-and forward delay (wait for all bits of a pkt to
arrive at the switch)
Takes L/R seconds to transmit (push out) packet of L bits on to link at R
bps
store and forward: entire packet must arrive at router before it can be
transmitted on next link
delay = 3L/R (assuming zero propagation delay)
1.3 The Network Core
Packet Switching (store-and-forward)
Example:
L = 7.5 Mbits
R = 1.5 Mbps
Transmission (Tx) delay = ?
Tx Delay = 3L / R
= 3 (7.5) / 1.5
= 15 sec
1.3 The Network Core
Packet switching VS. circuit
switching
Packet switching
• Allows more users to use the network
• great for bursty data
• better sharing of bandwidth
• resource sharing
• simpler, no call setup
• more efficient,
• less costly to implement
• excessive congestion: packet delay and loss
• protocols needed for reliable data transfer, congestion control
1.3 The Network Core
Packet switching VS. circuit
switching
circuit-switching:
N
…..
10 users
packet users
switching: 1 Mbps link
with 35 users, probability > 10 active at same time is
less than .0004 Introduction 1-14
Chapter 1
Roadmap:
1.1 what’s the Internet? what’s a protocol?
1.2 Network edge:
• End systems, access networks & links
1.3 Network core:
• Circuit switching, Packet switching, and network structure
1.4 Performance:
• Delay, loss, and throughput in Packet switched networks
1.5 Protocol layers, service models
1.6 Summary
1.4 Performance
How do loss and delay occur?
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
1.4 Performance
Four sources of packet delay
• 2. queueing
1. nodal processing:
• check bit errors
•time waiting at output link for
transmission
• determine output link
• depends on congestion level of
transmission router
A
propagation = Qi /Rout
•
B
nodal Qi =preceding bits in queue
processing queueing Rout = output link bps
1.4 Performance
Four sources of packet delay
100 100
ten-car toll km
toll km
caravan booth booth
• 10 cars, each “propagate” at 100 • Time to “push” entire caravan
km/hr through toll booth onto highway
• toll booth takes 12 sec to service car = 12*10 = 120 sec
(transmission time) • Time for last car to propagate
• car~bit; caravan ~ packet from 1st to 2nd toll both:
• Q: How long until caravan is lined up 100km/(100km/hr)= 1 hr
before 2nd toll booth? • A: 62 minutes
Multiple links: the delay for the first car is 60 min. 12 sec. times the number of links.
1.4 Performance
Nodal delay
B
packet arriving to
full buffer is lost "aka" = "also known as"
Chapter 1
Roadmap:
1.1 what’s the Internet? what’s a protocol?
1.2 Network edge:
• End systems, access networks & links
1.3 Network core:
• Circuit switching, Packet switching, and network structure
1.4 Performance:
• Delay, loss, and throughput in Packet switched networks
1.5 Protocol layers, service models
1.6 Summary
1.5 Protocol “Layers”
a series of steps
1.5 Protocol “Layers”
Layering of airline functionality
airplane routing airplane routing airplane routing airplane routing airplane routing
switch
destination H n Ht M network
M applicatio Hl H n Ht M link H n Ht M
Ht M n physical
H n Ht M transport
Hl H n Ht M network router
link
Chapter 1
Summary
Internet
Access Networks
Layering of internet