• Keine Ergebnisse gefunden

Network Security and Measurement - Bandwidth, Capacity, and Congestion -

N/A
N/A
Protected

Academic year: 2022

Aktie "Network Security and Measurement - Bandwidth, Capacity, and Congestion -"

Copied!
32
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Prof. Dr. Thomas Schmidt

http://inet.haw-hamburg.de | t.schmidt@haw-hamburg.de

Network Security and Measurement

- Bandwidth, Capacity, and Congestion -

(2)

Agenda

How can we quantify key properties and performances of a network?

Models for assessing networks

Measurement approaches to capacity Measurement approaches to bandwidth

(3)

METRICS AND MEASURABLES

(4)

Quantifying Key Properties of a Network

What do we need to know and why?

o Capacities of the network to explore its potentials o Utilization to asses its provisioning

o Current network performance to adapt applications o Congestion for troubleshooting

o Bandwidth monitoring to gain operational experience

(5)

The Perspective of a Network Link

Available Bandwidth is the IP data rate that a network link can transfer.

Capacity is the maximum possible bandwidth that a network link can deliver.

Cross Traffic utilization is the difference between capacity and available bandwidth.

Congestion occurs when the available

bandwidth falls below transmission demands.

Controlled Traffic Flows adapt to available bandwidth.

Terms and

Phenomena

(6)

Heterogeneous Link Transitions

Capacities (๐ถ๐‘–) and network utilization vary between links, and with them the available bandwidths (๐ด๐‘–).

The end-to-end capacity (C) and available bandwidth (A) along a path are the minima of the

respective components (๐ถ๐‘–) and (๐ด๐‘–) ๐‘œ๐‘ฃ๐‘’๐‘Ÿ ๐‘– .

(7)

Measurements of Interest

Network Characteristics and Performances

Capacities, link composition,

heterogeneous link transitions, bottlenecks

(8)

Measurements of Interest

Network Characteristics and Performances

Network utilization, available

bandwidths, congestion and delays

Capacities, link composition,

heterogeneous link transitions, bottlenecks

(9)

Bulk Transfer Capacity

Orthogonal metric on layer 4: Throughput of a single TCP connection Depends on various transport features:

โ€ข Implementations and configurations at endpoints: buffers, algorithms, ...

โ€ข Adaptation of the probe flow

โ€ข Adaptations (or not) of the competing flows Requires large data transfers: highly intrusive

Tools: iperf, netperf

(10)

Sources of Network Delay

Serialization delay โ€“ the time needed to place a packet on a link. Its duration is

proportional to the ratio packet-size/link-capacity.

Propagation delay โ€“ the time needed for a bit to traverse the link. Its duration is proportional to the ratio link-spread/link-speed.

Queuing delay โ€“ the time needed to store a packet in queues and buffers of routers and switches while the outgoing port is blocked. Its duration depends on link transitions and

competing traffic.

(11)

MEASUREMENT MODELS

(12)

Two Fundamentally Different Approaches

Probing at Rates

Packet Spacing

Systematically testing out available bandwidth.

Analyzing sequenced packets in the network.

How to quantify the complex behavior

(13)

Probe Rate Model (PRM)

Based on ideas by Bellovin and Jacobson Probes between two controlled endpoints

โ€ข measure one-way delay Varying probing rates

โ€ข induce a congestion on the path

โ€ข infer the starting point of the congestion Produces a congesting load, intrusive

(14)

Underlying Idea

Packets traveling on sufficient bandwidth admit an about constant delay.

Packet rates (R) that exceed the available bandwidth (A) will see queuing delays.

The PRM objective is to find the probing rate at which the delay starts to rise.

The โ€˜idealโ€™ transition point marks the available bandwidth: R = A

(15)

Probe Gap Model

Based on ideas of Jacobson, Keshav, and Bolot

Inject individual packet pairs with gap

โ€ข measures dispersion of packets Tight links increase dispersion

โ€ข identify minimal gap Limitation

โ€ข quantifies only a single tight link

โ€ข sensitive to varying cross traffic

(16)

Underlying Idea

In a balanced, uncongested network, inter-packet gaps remain constant.

Link serialization at bottleneck links will add dispersion.

Increasing queuing delays from congested networks also add dispersion and will lower the capacity estimates.

(17)

MEASURING CAPACITY

(18)

Variable Packet Size (VPS) Probing

PGM approach for measuring the capacity of each hop along a path

Procedure:

โˆ’ Measure RTTs to each hop as a function of packet sizes (minima to exclude queuing)

โˆ’Use increasing TTL values (like traceroute)

(19)

Variable Packet Size (VPS) Probing

PGM approach for measuring the capacity of each hop along a path

Procedure:

โˆ’ Measure RTTs to each hop as a function of packet sizes (minima to exclude queuing)

โˆ’Use increasing TTL values (like traceroute)

โˆ’Extract the delay portion that is proportional to the packet size: The serialization delay Problem: store-and-forward layer-2 switches introduce serialization delays beyond capacities

(20)

The RTT ๐‘‡๐‘– ๐ฟ at the i-th hop consists of a size-independent part ๐›ผ๐‘– and the serialization proportional to the packet size L:

with ๐ถ๐‘˜the capacity of the k-th hop, ๐›ฝ๐‘– the slope of the minimum RTT.

The VPS Method

(21)

The RTT ๐‘‡๐‘– ๐ฟ at the i-th hop consists of a size-independent part ๐›ผ๐‘– and the serialization proportional to the packet size L:

with ๐ถ๐‘˜the capacity of the k-th hop, ๐›ฝ๐‘– the slope of the minimum RTT.

Measuring the slopes ๐›ฝ๐‘– at each hop, allows us to calculate all capacities:

since

The VPS Method

(22)

Example

Probes measured for a first hop

Minimum RTTs selected Linear interpolation

(23)

Packet Pair/Train Dispersion (PPTD) Probing

PGM method for measuring end-to-end capacity.

A sequence of packet pairs of fixed gap ฮ”๐‘–๐‘› is sent from the source to the receiver and the dispersion ฮ”๐‘œ๐‘ข๐‘ก is measured.

The dispersion after a link of capacity ๐ถ๐‘– will be

(24)

Packet Pair/Train Dispersion (PPTD) Probing

PGM method for measuring end-to-end capacity.

A sequence of packet pairs of fixed gap ฮ”๐‘–๐‘› is sent from the source to the receiver and the dispersion ฮ”๐‘œ๐‘ข๐‘ก is measured.

The dispersion after a link of capacity ๐ถ๐‘– will be

After a packet pair traversed each link of a path, the dispersion ฮ”๐‘… reads

where C is the end-to-end capacity of the path.

Sending multiple packet pairs can mitigate the effect of cross traffic.

(25)

Example

Measuring a realistic wide- area link with real traffic load can lead to significant outliers and capacity

underestimation.

Selecting the maximum capacity after statistical filtering can mitigate errors.

(26)

MEASURING AVAILABLE

BANDWIDTH

(27)

Self-Loading Periodic Streams (SLoPS)

Poster PRM method to measure end-to-end available bandwidth.

The sender sends a โ€œperiodic streamโ€ of

equal-sized packets (โ‰ˆ 100) at a given rate R.

Sender and receiver measure the one-way delays, which only increase under congestion.

R is varied in a binary search to approach the maximum without increasing delays.

(28)

Self-Loading Periodic Streams (SLoPS)

Poster PRM method to measure end-to-end available bandwidth.

The sender sends a โ€œperiodic streamโ€ of

equal-sized packets (โ‰ˆ 100) at a given rate R.

Sender and receiver measure the one-way delays, which only increase under congestion.

R is varied in a binary search to approach the maximum without increasing delays.

Under varying cross traffic, a โ€œgrey regionโ€ is determined.

(29)

Trains of Packet Pairs (ToPP)

Combination of PRM and PGM to determine the available bandwidth and tight link capacity ToPP sends many packet pairs at gradually increasing rates from the source to the sink.

The receiver measures the dispersion of the packet pairs.

All packets have the same length L.

Increasing packet rates lead to decreasing initial packet gaps, which eventually will lead to increasing dispersions, if overload occurs.

(30)

The ToPP Method

The packet gap ฮ”๐‘  at the sender defines an offered bandwidth of ๐‘…0 = ๐ฟ

ฮ”๐‘  .

The measured dispersion corresponds to a rate ๐‘…๐‘š.

The maximum ๐‘…0 such that ๐‘…0 โ‰ˆ ๐‘…๐‘š

corresponds to the available bandwidth A The slope of the relative bandwidth decay is inverse proportional to the end-to-end capacity.

(31)

Rรฉsumรฉ

โ€ข All approaches have limitations, multiple refinements exist

โ€ข Expect high statistical fluctuations โ€“ the higher the larger the network distance

โ€ข Data post-processing needs to follow the specific measurement approach

โ€ข Some measurements can be piggybacked, e.g., on application data exchange

(32)

Literature

Ravi Prasad, Constantinos Dovrolis, Margaret Murray, and Kimberly C. Claffy (2003).

Bandwidth Estimation: Metrics, Measurement Techniques, and Tools.

IEEE Network, 17(6):27-35.

Referenzen

ร„HNLICHE DOKUMENTE

The MSCB concept covers a wide palette of direct and indirect defence and security related support functions offered to states, regional organisations and

hypothesis) is orthogonal to the classification of passive versus active measurements (how data are collected), and passive versus. active measurements are orthogonal to control

We are able to scan every second host by scanning just 2% of the announced IPv4 address space. This results in a scan traffic reduction of 98 % compared to a IPv4

(c) Visualize the a distribution of the record sizes and print the 10 domains with the largest responses?. How do the

Even though we will only process data for one day (due to time constrains) consider that for a representative analysis it might be necessary to analyze one month or even one year

If you load the data into a DataFrame you can convert a column to time using pd.to datetime.. group by works on time as well using a

The measure of transfer income is common to all accounting systems (including the con- ventional current-money-income system).18 PP Given mutually consistent measures of (a)

The responsibility of the international community to be prepared for collective action, in a timely and decisive manner in accordance with the UN Charter, on a case-by-case basis,