Estratto del documento

Message delivery time with CS connections

T = M/R + B Tp + N tc

Message delivery time with PS connections

T = N/R + tp + N tc

Message delivery time with PS + pipeline

T = Tp + N tc + (N-1) M/K R + M/R + K tM/R

Message delivery time with PS + pipe + bottleneck

T = Tp + N tc + (N-1) M/K Rh + K tM/R2

h = index of bottleneck link

Optimal K with bottleneck

K = N/∑ (1/h-ind a1)NS/Rh

Delay

R: delay

delay = RTT

delay end-to-end ⇒ H bits can be transmitted simultaneously

BDP

Bit rate R0

Throughput S ⇒ S = R0

Goodput Sg

Message delivery time with CS connections

T = M/R + 3Tp + NTc

Message delivery time with PS connections

T = N-M+H/R + tp + NTc

Message delivery time with PS + pipeline

T = tp + NTc + (N-1)(M/R + H/K)

Message delivery time with PS + pipe + bottleneck

T = tp + NTc + (N-1)(H/K) 1/min(1/λi) + KH/Rn

n = index of bottleneck link

Optimal K with bottleneck

K = √N/h=n ( Rh/H+λIh )

BDP

R: delay

Delay = RTT => PIPE CAPACITY

delay = end-to-end => H bits can be transmitted simultaneously

Bit rate Ro

Throughput S = > σ = o

Sg = Sout / IPOUT = Si OVERHEAD

SOUT = IPOUT

Poisson

PX(n) = λn/n! e

E(n) = λ

Geometric

PX(n) = p(1-p)n

p = succ. probab.

Esponenziale

fX(x) = μ e-μx

E(x) = 1/μ

Problem 1

M = # bits of a message

K = # packs the message is divided into

H = # bits of header

N = # of links

Te = elaboration time of each

Rk = bit rate of each

  • Find the pipe capacity, assuming that the transmission of the ACK only takes the propagation/elaboration time
  • Find the max throughput

Γ = T1 + (K - 1) Tf

Tf = Σk=1N(Tp + Te + HK)Rk + (K - 1) ½ NRk½∑k=1Nmin {Rk, x∑kk - 1,Nk}∑min {RN

T1 = TP - K, H + M⁄RN→ RTT = 2 · Tpk=1N½→ C = RTT · min {Rn, MH + ½K}

I'm sorry, the image you provided is blank, and there is no text to transcribe.

Token bucket dimensioning

1R2C

Given

L = fixed size of packets [byte]

RL = regular packs arrival rate [packets/s]

λ = intensity of the Poisson process [events/s]

Rz = burst generation rate [packets/s]

D = duration of the burst event

r = [RL: λ : (Rz - RL) : D : λ ] L = [RL + (Rz - RL) : D : λ ] L [Average Token rate]

p = Rz : L [Peak rate]

b = (p - r) : D = Tok bucket size

β = [buffer size]

dl = b/λp - r [Maximum burst length]

tz = B + b/λp - r [Max burst period]

dm = B/r [Delay introduced by filter. Happens when λp >> burst duration]

I'm sorry, but it seems the image you provided is blank or does not contain visible text. Can you try uploading a different image or check if there's text present?

Describe the steps needed to send an email from hostX to hostY

Internet mail

(Pass from router to another network)

  • NIC realizes there’s a new device connected. PHY entities of HX, L2 Switch negotiates the PHY layer parameters and sets up PHY layer setup.
  • DHCP DISCOVERY message sent by HOSTX

Ethernet frame

DHCP DISCOVERY

PAYLOAD

Source MAC Address = HostX MAC address

Destination = FF:FF:FF:FF:FF:FF

  • Switch learns HostX MAC
  • DHCP server sends back a DHCP OFFER message

ETH-frame

SRC MAC = DHCP Server MAC

DST MAC = FF:FF:FF:FF:FF:FF

  • Hostx sends DHCP REQUEST (in broadcast)
  • DHCP server sends DHCP ACK (in broadcast)
  • Hostx knows its own IP address = IPx

Netmask (NMx)

Default gateway IP address (IPGW)

Local DNS IP address (IPDNS)

  • Mail client needs to resolve the mnemonic name of the outgoing mail server and its IP address.

IPMAIL = ?

It sends a DNS QUERY Message to the DNS Server and now the packet can be sent.

IPDNS cannot always be solved locally, so the query needs to go at least through IP layer.

ETH frame

IP dst: IPDNS

IP src: IPX

SRC MAC: MACX

DST: call ARP agent

UDP

SRC port: hn

DEST port: nn WELL KNOWN

The IP layer entity will call ARP agent to find the MAC Address associated to IPDNS

ARP Agent broadcasts ARP REQUEST for IPDNS

ARP Agent at the target host replies with a REPLY MESSAGE that is sent to the MAC Address: MACX and it carries MACDNS

The DNS server gets the query, checks the DNS table and retrieves the IP address associated to outgoing mail server name (e.g. mail.dei.unipd.it)

Sends back a DNS Reply message with IPMAIL — it’s now a DNS REPLY

Mail client connection

Tries to contact the outgoing mail server by establishing a TCP connection.

It sends a TCP SYN segment to the IP_MAIL, port 25 (Well known port number for SMTP server).

TCP SYN

SRC Port = Ephemeral

Dst = 25

DST IP: IP_MAIL

SRC IP:

IP agent sees that IP_MAIL can be reached through indirect forwarding and asks ARP agent to find MAC address of IP_GW

Ethernet

TCP SYN

SRC MAC: MAC_X

DST MAC: MAC_GW

I'm sorry, I'm unable to provide the transcription as there is no visible text in the image. If you have another image or further information, feel free to share it!

Configure the network with the following services

Web page

Email

Internet cloud service

3 private sub-networks of >100 networks each, which should be able to freely communicate one another, access the web and mail server of the company and access the public internet only for HTTP services.

  • What is the smallest block of public IP addresses that the company need to acquire?
  • Which other devices are needed to configure the network?
  • Draw schematically the connections among the network devices and assign IP addresses and network functionalities to all devices.
  • Write the routing / NAT tables when needed.

LAN A: 192.168.1.0/24

LAN B: 192.168.2.0/25

LAN C: 192.168.3.0/25

DHCP: 192.168.1.253

We need public IP addresses for:

DNS, WEB, MAIL, R0.eth1 (NAT), R1.eth0

We need at least a block of size 8, e.g.:

1.255.255.249/29 WEB

1.255.255.250/29 MAIL

1.255.255.251/29 DNS

1.255.255.252/29 NAT1 R0.eth1

1.255.255.253/29 NAT1 R1.eth0

1.255.255.254/29 future

1.255.255.248/29 network

Routing tables

R1

dest. network: 1.255.255.248

net mask: 255.255.255.248

nexthop: *

interface: eth0

dest. network: 0.0.0.0

net mask: 0.0.0.0

nexthop: ?

interface: eth2

R2

dest network: 1.255.255.248

net mask: 255.255.255.248

nexthop: *

interface:

dest network:

net mask: see PDF

nexthop:

interface:

EX 1- 100 Mbps MAC (Layer)

tg = 0- Rb = 1 Mbit/s

tc = 1ms

LANa 30.20.2.0 /25

  • Assign IP addresses and netmasks where needed in the network

H1 IPa 30.20.2.1 /25

longest mask guaranteeing 3 hosts is 255.255.255.248

H2 IP2 30.90.9.2

R1 eth0 IP3 30.20.2.3

Ra eth1 10.0.0.2 /30

Broadcast address: 30.20.2.7

Rb eth0 10.30.3.9 /29

Routing tables of Ra

Destination NET address

Netmask

Next hop

Interface

30.20.2.0

255.255.255.248

eth0

0.0.0.0

0.0.0.0

10.0.0.1

eth1

H1 sets up a TCP connection with the server

MSS = 1250 bytes.

Find RTT.

H = HIP + HTCP = 20 + 20 = 40 bytes

RTT = [ ((H + MSS)/R0/8 + τ0)⋅3 + ((H + MSS)/R2/8 + τ2) ] Forwarding Time + 3 H/R0/8 + H/R2/8 - τ2 = ACKing time = 30 ms

Find the pipe capacity

C = RTT ⋅ (lowest rate = RL ) ⋅ 1/ ((MSS + H)⋅8) = 1,26 segments

Time to transfer K=10 segments from the server to the host

S = C/RTT [segments/s]

R/S = K/C ⋅RTT  if always valid if PIPE is always full, CWND > PIPE

In this case the pipe capacity is very small and the congestion window accrues after the first RTT, if the buffer at R0 is large enough the connection will always be used at full rate.

T = 3 ⋅ [ H/8/R0 ⋅ 3 + H/8/R2 + τ2 ] + RTT + (K-1)⋅ (H + MSS)⋅8/R1

If R > ] RTT ⋅ K/C = T ⋅ R/RTT + (K-1) ⋅ (H + MSS)⋅8/RL

RTT ⋅ RL/RL = 8 (MSS+H) ⋅ K

UDP packets

t=0. 2 packs UDP queued a R4 with destination N2. The server has 3 UDP packets to be sent to N1 and 5 UDP packets to be sent to N2. ∀ packs same size of L = 1024 byte of each of UDP packets sent by the server.

T1st pack = (Hs + L)⋅8/R0 + 3⋅La + (Hs + L)⋅8/R1

T2nd pack = [(Hs + L)⋅8/R1 + (Hs + L)⋅8/R0 + (Hs + L)⋅8/R1 +2⋅L⋅Ca +2⋅(Hs + L)⋅8/R0

TB = (Hs + L)⋅8/R4 + (Hs + L)⋅8/R0 + (Hs + L)⋅8/R1 ⋅ Ca + 2⋅(Hs + L)⋅8/R0 =>= T2 + (Hs + L)⋅8/R2

In general Tn = Tn+1 + (Hs + L)⋅8/R1

Hs = 20 => 28 byte

6 byte

UDP header

IP header

I'm sorry, but the image doesn't contain any visible text for transcription.

Packet loss probability and throughput

Pi = packet loss probability at PHY layer

Ri = Tx rate of ith link

Ci = one way, prop. delay of ith link

Find the end-to-end long-term average throughput when:

A) A sends UDP packs and there is no recovery mechanism

B) Each link implements layer 2) ARQ S&W recovery mechanism

C) A and B implement a end-to-end SR ARQ

D) Find the average delivery time of a packet for previous case.

Solution A

Let λi be the max flow that can be offered to the ith link from the upstream link.

The average throughput across that link will be

μi = min(λi, Ri) (1 - Pi)

since the output can't exceed the input rate and the speed of the link. The packets crossing the ith link are dropped with probability Pi.

The packets that survive will flow into the downstream link, so that we have

λi+1 = μi

The Throughput is

S1 = µk = (1 - Pe) · min (Rn, λn){(1 - Pe) · min (Rk, (min (Rk-1, λn-1)) · (1 - Pe))

Recursively = min {n / nL (1 - Pi) · Rj), k = 1, ..., n} [bit/s]

B)

Introducing layer-2 ARQ S&W, the different links always deliver the packets to the downstream link but with a random delay. From the upper layer, this is perceived as a variable bit rate. Denoting by L the MAC-layer packet size and assuming the MAC-Layer ACKs have negligible length, we can get the average packet transmission time over the ith link as:

Ti = (L / Ri + 2Li) · (1 / 1 - pi) [s]

The throughput offered by the ith link to the upper layer is then:

i = L / Ti

= L (1 - Pi) · Ri · L / L

= L / Ri + 2Li · Ri · L / L

= Ri · (1 - Pi) · 1 / (1 + 2Riri) / L [byte/s]

- Finally, the max end-to-end average throughput is

C1

When applying the end-to-end SR-ARQ the throughput is the same we obtain in case 1, when using no recovery mechanism.

Indeed the DLLs of the different links will be able to deliver packets to the destination with a max average rate of SI [1 - pI].

The SR-ARQ mechanism simply determines which packets have to be retransmitted over such a channel, without introducing any idle time or useless retransmission.

Therefore the overall throughput will still be equal to SI with the difference that, in this case, all packs generated by the application in A will be sooner or later delivered to B.

D1

The overall delay of a packet since the first time it is transmitted to the time it is successfully delivered to B (assuming ideal ACK and E2E setting), is given by:

RTT = ni=1 τi + TFWRD

TFWRD = ni=1i + 1/Ri)

NOTE if also ACK packs can be dropped with equal probability as data packs then we would get

Texe = 1/ni=1 (1-Pi) (RTT + TFWRD)

Token Bucket Filter

1) Consider a Token Bucket Filter used as traffic policer. Assume that each token is worth the transmission of one pack of L bits. Find the token bucket parameter that give an average i. rate R and a peak rate Rp. For a time Tburst:

Policer gt = R/L average token rate

b = (Rp/R - gt) Tburst bucket size = (Rp - R/R) L Tburst

2) Assume that packets arrive to the TBF according to a Poisson process of rate \(\lambda = 0.1\); gt: A new tok is generated every Tg seconds. Starting from time t=0 IF at time t0 = Tg, the bucket is empty, what's the probability that the next packet is marked by the TBF as "excess"?

Solution

The time to get a new tok is Tg = L/R; Since the pack arrival process is Poissonian, the inter-arrival times are i.i.d exponential random variables (of parameter \(\lambda \)) and hence are memoryless (which means that the time before the next arrival starting from t0 = Tg is still exponentially distributed with param \(\lambda \) irrespective of the time elapsed since the previous arrival at time t0. Therefore the next pack will be marked as "excess" if it arrives before a new fork is available, i.e. if τ < Tfix. The probability of this event is hence:

Pr [ τ < Tfix ] = 1 - e-λTfix

= 1 - e-0.2⋅9⋅1/96

= 1 - e-0.12 ≈ 0.095

the same host are spaced apart by random time.

All packs of the same burst have the same destination that with probp = 1/2 is within the LAN while with 1 - p is in the outside ethernet.

Packs arrive to the LAN from the internet according to a Poisson process with λ = ? with uniform dest. to the LAN.

Find the average uplink and downlink traffic across links a, b and c.

Each host generates on average traffic

Guplink = m . K . L / S [ ]

GA = Guplink

GB = Guplink (1 - p) + G . p

GC = 8/7 G

Anteprima
Vedrai una selezione di 6 pagine su 24
Telecommunication Networks - formulario ed esercizi Pag. 1 Telecommunication Networks - formulario ed esercizi Pag. 2
Anteprima di 6 pagg. su 24.
Scarica il documento per vederlo tutto.
Telecommunication Networks - formulario ed esercizi Pag. 6
Anteprima di 6 pagg. su 24.
Scarica il documento per vederlo tutto.
Telecommunication Networks - formulario ed esercizi Pag. 11
Anteprima di 6 pagg. su 24.
Scarica il documento per vederlo tutto.
Telecommunication Networks - formulario ed esercizi Pag. 16
Anteprima di 6 pagg. su 24.
Scarica il documento per vederlo tutto.
Telecommunication Networks - formulario ed esercizi Pag. 21
1 su 24
D/illustrazione/soddisfatti o rimborsati
Acquista con carta o PayPal
Scarica i documenti tutte le volte che vuoi
Dettagli
SSD
Ingegneria industriale e dell'informazione ING-INF/03 Telecomunicazioni

I contenuti di questa pagina costituiscono rielaborazioni personali del Publisher beardsome di informazioni apprese con la frequenza delle lezioni di Telecommunication Networks e studio autonomo di eventuali libri di riferimento in preparazione dell'esame finale o della tesi. Non devono intendersi come materiale ufficiale dell'università Università degli Studi di Padova o del prof Zanella Andrea.
Appunti correlati Invia appunti e guadagna

Domande e risposte

Hai bisogno di aiuto?
Chiedi alla community