12
EECS 3213, F14 1 L4: Basic Networking Calculations Sebastian Magierowski York University EECS 3213 Fall 2014 L4: Basic Calculations

L4: Basic Networking Calculations

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: L4: Basic Networking Calculations

EECS 3213, F14 1

L4: Basic Networking Calculations

Sebastian Magierowski York University

EECS 3213 Fall 2014

L4: Basic Calculations

Page 2: L4: Basic Networking Calculations

EECS 3213, F14 2

•  Calculating basic physical properties of networks –  What do bits look like? –  What’s R –  What’s bandwidth –  What’s the delay –  The value of partitioning data –  Queuing –  Throughput –  Errors

Outline

L4: Basic Calculations

Page 3: L4: Basic Networking Calculations

EECS 3213, F14 3

•  Consider what bits look like –  What’s the R (data rate, data bandwidth)

4.1 Data Rate

L4: Basic Calculations

.5

—.1

‘I,

8k”

ii

-4’cI

—I---

0

1\ \,V

‘.4 “s2

N C

N Li

‘I’•

7

(4

-4

C’

IL

—I

41 4,

(4

111 ‘1

.5

—.1

‘I,

8k”

ii

-4’cI

—I---

0

1\ \,V

‘.4 “s2

N C

N Li

‘I’•

7

(4

-4

C’

IL

—I

41 4,

(4

111 ‘1

Page 4: L4: Basic Networking Calculations

EECS 3213, F14 4

•  The extent of signal energy as a function of frequency

4.2 Signal Bandwidth

L4: Basic Calculations

.5

—.1

‘I,

8k”

ii

-4’cI

—I---

0

1\ \,V

‘.4 “s2

N C

N Li

‘I’•

7

(4

-4

C’

IL

—I

41 4,

(4

111 ‘1

I

)= S/’Ll (ir-/ZT2

I‘ T8-r lt4C

7L ,

7- j ZT

J I4S4i IS

llik,orh5

lt.,It1

3k) 7L’Th

>fb

f— S/3L /

7-

-zrT —r T3T - Yzr

T

nJ P&4- hIS

I’S OA

IXf(f)l

chl)?Z 7fr/ l:C47L,M

a1 ?,

cci-oS

/

Page 5: L4: Basic Networking Calculations

EECS 3213, F14 5

•  propagation time •  transmission time

4.3 Delay

L4: Basic Calculations

C.1.

4.)‘3

II

I‘I2

—.s:-4-

c:—2

0’”

LIU

-4::-

r>4-

:4

Page 6: L4: Basic Networking Calculations

EECS 3213, F14 6

•  Finding the spectrum of a periodic signal

4.4 Delay of Packets Through Network

L4: Basic Calculations

(L,oG11)ioi?I2’t1

7’°Z

•4I

1I

H

/P,°IJc/Q,ldjQk(//

cI1

7II

2H—Q-------G—---IH

[owI

(s;dn/i/C15t?YS)

/1

——

3L

Page 7: L4: Basic Networking Calculations

EECS 3213, F14 7

•  λ: packets arriving per second •  µ: packets processed per second •  ρ (G): offered load = λ/µ •  Rate at which a queue is emptied? •  Avg. time to empty a queue (or to get out of node)? •  Avg. wait time to get to front of queue? •  Avg. number of packets in queue?

4.5 Queuing Delay

L4: Basic Calculations

Page 8: L4: Basic Networking Calculations

EECS 3213, F14 8

Queuing Delay Details

L4: Basic Calculations

__

nZj

o7-

LW22d

L’ik’-‘Q-(‘

/fl/ 7L‘I,iia

r-ky’.L1”1p’

//

_____

il!a?l1

‘‘2oSw/4-,qpw2rtel1N1’1

(d1QL,k-)9o-cid)

LVv45

/(lro1=

7oW

-

-vru7‘-?r; 7I’Jii-o-,d:i=-“Y’

__

nZj

o7-

LW22d

L’ik’-‘Q-(‘

/fl/ 7L‘I,iia

r-ky’.L1”1p’

//

_____

il!a?l1

‘‘2oSw/4-,qpw2rtel1N1’1

(d1QL,k-)9o-cid)

LVv45

/(lro1=

7oW

-

-vru7‘-?r; 7I’Jii-o-,d:i=-“Y’

__

nZj

o7-

LW22d

L’ik’-‘Q-(‘

/fl/ 7L‘I,iia

r-ky’.L1”1p’

//

_____

il!a?l1

‘‘2oSw/4-,qpw2rtel1N1’1

(d1QL,k-)9o-cid)

LVv45

/(lro1=

7oW

-

-vru7‘-?r; 7I’Jii-o-,d:i=-“Y’

Page 9: L4: Basic Networking Calculations

EECS 3213, F14 9

4.6 Link Sharing

•  Slow in parallel •  One fast

L4: Basic Calculations

cL

—0

•—a

(

‘I

I’

4.,——,

—I..,‘

‘1

U‘1Q

‘1

Scc

UIt

cc

-,

‘1o

4

1

-.

I’

cL

—0

•—a

(

‘I

I’

4.,——,

—I..,‘

‘1

U‘1Q

‘1

Scc

UIt

cc

-,

‘1o

4

1

-.

I’

Page 10: L4: Basic Networking Calculations

EECS 3213, F14 10

•  N = λ•T •  N: avg. number of packets in the system (i.e. network) •  T: avg. time spent in the system •  λ: avg. packet arrival per second in the system

4.7 Little’s Formula

L4: Basic Calculations

Page 11: L4: Basic Networking Calculations

EECS 3213, F14 11

•  Rate of data transfer but… –  …accounts for overhead of communication and network details

•  3 MB file takes 2 minutes to download –  T is?

4.8 Throughput

L4: Basic Calculations

12 2. PRINCIPLES

rate of 768Kbps. The difference comes from the fact that the download corresponds to a sequenceof packets and there are gaps between the packets.

Figure 2.2 shows two typical situations where the throughput is less than the link rate. Theleft part of the figure shows a source S that sends packets to a destination D. A packet is said to beoutstanding if the sender has transmitted it but has not received its acknowledgment. Assume thatthe sender can have up to three outstanding packets. The figure shows that the sender sends threepackets, then waits for the acknowledgment of the first one before it can send the fourth packet,and so on. In the figure, the transmitter has to wait because the time to get an acknowledgment– RT T , for round-trip time – is longer than the time the transmitter takes to send three packets.Because of that, waiting time during which the transmitter does not send packets, the throughput ofthe connection is less that the rate R of the link. Note that, in this example, increasing the allowednumber of outstanding packets increases the throughput until it becomes equal to the link rate. Themaximum allowed number of outstanding bytes is called the window size. Thus, the throughput islimited by the window size divided by the round-trip time.

The right part of the figure shows devices A, C, D attached to a router B. Device A sendspackets at rate R. Half the packets go to C and the other half go to D. The throughput of theconnection from A to C is R/2 where R is the rate of the links. Thus, the two connections (from A

to C and from A to D) share the rate R of the link from A to B. This link is the bottleneck of thesystem: it is the rate of that link that limits the throughput of the connections. Increasing the rateof that link would enable to increase the throughput of the connections.

A B C

D

S DR

R R

R

Time

RTT

Figure 2.2: The throughput can be limited by the window size (left) and by a bottleneck link (right).

2.2.4 DELAYDelay refers to the elapsed time for a packet to traverse between two points of interest. If the twopoints of interest are the two end points (e.g., the pair of communicating hosts), we refer to thedelay between these two points as the end-to-end delay. End-to-end delay typically comprises thetransmission and propagation times over the intervening links, and queuing and processing times

12 2. PRINCIPLES

rate of 768Kbps. The difference comes from the fact that the download corresponds to a sequenceof packets and there are gaps between the packets.

Figure 2.2 shows two typical situations where the throughput is less than the link rate. Theleft part of the figure shows a source S that sends packets to a destination D. A packet is said to beoutstanding if the sender has transmitted it but has not received its acknowledgment. Assume thatthe sender can have up to three outstanding packets. The figure shows that the sender sends threepackets, then waits for the acknowledgment of the first one before it can send the fourth packet,and so on. In the figure, the transmitter has to wait because the time to get an acknowledgment– RT T , for round-trip time – is longer than the time the transmitter takes to send three packets.Because of that, waiting time during which the transmitter does not send packets, the throughput ofthe connection is less that the rate R of the link. Note that, in this example, increasing the allowednumber of outstanding packets increases the throughput until it becomes equal to the link rate. Themaximum allowed number of outstanding bytes is called the window size. Thus, the throughput islimited by the window size divided by the round-trip time.

The right part of the figure shows devices A, C, D attached to a router B. Device A sendspackets at rate R. Half the packets go to C and the other half go to D. The throughput of theconnection from A to C is R/2 where R is the rate of the links. Thus, the two connections (from A

to C and from A to D) share the rate R of the link from A to B. This link is the bottleneck of thesystem: it is the rate of that link that limits the throughput of the connections. Increasing the rateof that link would enable to increase the throughput of the connections.

A B C

D

S DR

R R

R

Time

RTT

Figure 2.2: The throughput can be limited by the window size (left) and by a bottleneck link (right).

2.2.4 DELAYDelay refers to the elapsed time for a packet to traverse between two points of interest. If the twopoints of interest are the two end points (e.g., the pair of communicating hosts), we refer to thedelay between these two points as the end-to-end delay. End-to-end delay typically comprises thetransmission and propagation times over the intervening links, and queuing and processing times

Page 12: L4: Basic Networking Calculations

EECS 3213, F14 12

•  Message size, error, rates and hops

4.9 Errors

L4: Basic Calculations

‘3•I1

—Q

z

0\1

•‘L

6V) ‘S

ci)‘IU

r(7

Ntc%)

11

ci)

II

‘3•I1

—Q

z

0\1

•‘L

6V) ‘S

ci)‘IU

r(7

Ntc%)

11

ci)

II