Professional Documents
Culture Documents
Silvia Giordano
ICA, EPFL
Project e-1
EX1: Protocol design
Project e-2
Step1: Specification
❒ Specify the protocol by listing the msgs exchanged and
the action taken by the ATM or the BCC on
transmission and receipt of the msgs
Msgs from ATM (client) to BCC Msgs from BCC to ATM machine
(server) and ATM actions and BCC actions
The user puts the card in the ATM machine.
BCC checks the card.
The card’s <userid> is transmitted to BCC
Asks user for PIN (password)
The user types PIN that is sent to BCC PIN in
BCC checks ERROR
the PIN PIN OK
The user requests balance
BCC sends the balance
Project e-4
Msgs from Server to ATM machine
Project e-5
Step2: Operation example
❒ Sketch the operation of the protocol for the
case of a simple withdrawal with no errors,
using a diagram with arrows
Project e-6
Correct operation
client HELO <userid>
server
check if valid userid
PASSWD
PASSWD <passwd> check password
OK password is OK
BALANCE
AMOUNT <amt>
WITHDRAWL <amt>
check if enough $ to
cover withdrawl
OK
ATM dispenses $
BYE
BYE
Project e-7
No enough money
client HELO <userid>
server
check if valid userid
PASSWD
PASSWD <passwd> check password
OK password is OK
BALANCE
AMOUNT <amt>
WITHDRAWL <amt>
check if enough $ to
cover withdrawl
ERR
error msg displayed
BYE
no $ given out
BYE
Project e-8
Step3: underlying end-to-end
transport service
❒ Explicitly state the assumptions made by the
protocol about the underlying end-to-end
transport service
❒ connection-oriented: secure “connection” required
between client(ATM), server(BCC)
❒ reliable transport: data cannot be loss or received in
wrong order
❒ flow control: the total amount of data
transferred is small
❒ congestion control: this application cannot
congest the network
❒ timing: it is not really time sensitive
Project e-10
Circuit switched network
❒ circuit-switched network:
❍ the application involves long sessions with predictable
smooth bandwidth requirements.
❍ transmission rate is known and not bursty, bandwidth
can be reserved for each application session circuit
with no signicant waste.
❍ no overhead costs of setting up and tearing down a
circuit connection (amortized over the length
sessions).
❒ if packet-switched network:
❍ no predictable delay
❍ protocol overhead (information in the packet).
❍ congestion and flow control needed
Project e-11
Packet switched network
❒ Large link capacities:
❍ the network needs no congestion control
mechanism.
❍ Even if all the applications simultaneously transmit
over the same link with bandwidth L, L is sufficient
to (greater than) handle the sum of all of the
applications' data rates (very little queuing).
Project e-12
Ex3: Delay
❒ Consider two hosts, Host A and B, connected
by a single link of rate R bps. Suppose that
the two hosts are separated by m meters, and
suppose the propagation speed along the link
is s meters/sec. Host A is to send a packet of
size L bits to B.
R bps
L bits
m meters
A B
s m/sec
Project e-13
Propagation and transmission
delay
❒ Express the propagation delay, dprop, in
terms of m and s.
❍ dprop = distance/speed = m/s seconds.
❒ Determine the transmission time of the
packets, dtrans, in terms of L and R.
❍ dtrans = packet-lenght/rate = L/R seconds.
❒ Ignoring processing and queuing delays,
obtain an expression for the end-to-end
delay.
❍ dend-to-end = dprop+ dtrans= m/s + L/R seconds
Project e-14
Bits
❒ Suppose Host A begins to transmit the
packet at time t0 = 0. At time t = dtrans, where
is the last bit of the packet?
The bit
Suppose
❒ ❍ is just
dprop leavingthan
is greater HostdA trans. At time t
.
= dtrans, where is the first bit of the packet?
The first
Suppose
❒ ❍ dpropbit
is is
lessin than
the link and
dtrans . Athas nott =
time
reached
dtrans, whereHost B. first bit of the packet?
is the
❍ The first bit has reached Host B.
L
A time
t0 dtrans
dprop
B Project e-15
Numerical example
❒ Suppose s = 2.5 * 108, L = 100 bits, and R =
28 kbps. Find the distance m so that dprop
equals dtrans
❍ m = L/R x s = (100/(28 x 108))(2.5*108) =
8.93 Km
Project e-16
Explain in few lines the
following concepts (1):
1. functions of the physical layer
2. functions of the link layer
3. functions of the network layer
4. functions of the transport layer
5. circuit switching
6. packet switching
7. connection oriented communication
8. intermediate systems
9. switch
Project e-17
Explain in few lines the
following concepts (1):
10. reliable transport
11. congestion avoidance
12. client-server computing
13. router
14. protocol
15. error recovery
16. flow control
17. PDU
Project e-18