



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























An Engineering Approach to Computer Networking
An Engineering Approach to Computer Networking
n
n
A computer network provides computation, storage and
A computer network provides computation, storage and transmission resources
transmission resources
n
n
System design is the art and science of putting together these
System design is the art and science of putting together these resources into a harmonious whole
resources into a harmonious whole
n
n
Extract the most from what you have
Extract the most from what you have
n
n
Can’t always quantify and control all aspects of a system
Can’t always quantify and control all aspects of a system
n
n
Criteria such as scalability, modularity, extensibility, and
Criteria such as scalability, modularity, extensibility, and elegance are important, but unquantifiable
elegance are important, but unquantifiable
n
n
Rapid technological change can add or remove resource
Rapid technological change can add or remove resource constraints (example?)
constraints (example?)
uu
an ideal design is ‘future proof’an ideal design is ‘future proof’
n
n
Market conditions may dictate changes to design halfway
Market conditions may dictate changes to design halfway through the process
through the process
n
n
International standards, which themselves change, also impose
International standards, which themselves change, also impose constraints
constraints
n
n
Nevertheless, still possible to identify some principles
Nevertheless, still possible to identify some principles
n
n
Most resources are a combination of
Most resources are a combination of
uu
timetime
uu
spacespace
uu
computationcomputation
uu
moneymoney
uu
laborlabor
n
n
Shows up as
Shows up as
uu
limit to available memory (kilobytes)limit to available memory (kilobytes)
uu
bandwidth (kilobits)bandwidth (kilobits)
FF
1 kilobit/s = 1000 bits/sec, but 1 kilobyte/s = 1024 bits/sec!
1 kilobit/s = 1000 bits/sec, but 1 kilobyte/s = 1024 bits/sec!
n
n
Amount of processing that can be done in unit time
Amount of processing that can be done in unit time
n
n
Can increase computing power by
Can increase computing power by
uu
using more processorsusing more processors
uu
waiting for a while!waiting for a while!
n
n
Human effort required to design and build a system
Human effort required to design and build a system
n
n
Constrains what can be done, and how fast
Constrains what can be done, and how fast
n
n
Standards
Standards
uu
sensesenseforce design to conform to requirements that may or may not makeforce design to conform to requirements that may or may not make
uu
implementationsimplementationsunderspecified standard can faulty and non-interoperableunderspecified standard can faulty and non-interoperable
n
n
Market requirements
Market requirements
uu
products may need to be backwards compatibleproducts may need to be backwards compatible
uu
may need to use a particular operating systemmay need to use a particular operating system
uu
exampleexample
FF
GUI-centric design
GUI-centric design
n
n
Key concept:
Key concept:
bottleneck
bottleneck
uu
the most constrained element in a systemthe most constrained element in a system
n
n
System performance improves by removing bottleneck
System performance improves by removing bottleneck
uu
but creates new bottlenecksbut creates new bottlenecks
n
n
In a
In a
balancedbalanced system, all resources are simultaneously
system, all resources are simultaneously
bottlenecked
bottlenecked
uu
this is optimalthis is optimal
uu
but nearly impossible to achievebut nearly impossible to achieve
uu
anotheranotherin practice, bottlenecks move from one part of the system toin practice, bottlenecks move from one part of the system to
uu
example: Ford Model Texample: Ford Model T
n
n
Use unconstrained resources to alleviate bottleneck
Use unconstrained resources to alleviate bottleneck
n
n
How to do this?
How to do this?
n
n
Several standard techniques allow us to trade off one resource
Several standard techniques allow us to trade off one resource for another
for another
n
n
Examples
Examples
uu
multiplexed linksmultiplexed links
uu
shared memoryshared memory
n
n
Another way to look at a shared resource
Another way to look at a shared resource
uu
unshared virtual resourceunshared virtual resource
n
n
Server
Server controls access to the shared resource
controls access to the shared resource
uu
uses auses a
scheduleschedule to resolve contention
to resolve contention
uu
choice of scheduling critical in proving quality of service guaranteeschoice of scheduling critical in proving quality of service guarantees
n
n
Suppose resource has capacity C
Suppose resource has capacity C
n
n
Shared by N identical tasks
Shared by N identical tasks
n
n
Each task requires capacity c
Each task requires capacity c
n
n
If Nc <= C, then the resource is underloaded
If Nc <= C, then the resource is underloaded
n
n
If at most 10% of tasks active, then C >= Nc/10 is enough
If at most 10% of tasks active, then C >= Nc/10 is enough
uu
we have used statistical knowledge of users to reduce system costwe have used statistical knowledge of users to reduce system cost
uu
this isthis is
statistical multiplexing gainstatistical multiplexing gain
n
n
Consider a 100 room hotel
Consider a 100 room hotel
n
n
How many external phone lines does it need?
How many external phone lines does it need?
uu
each line costs money to install and renteach line costs money to install and rent
uu
tradeofftradeoff
n
n
What if a voice call is active only 40% of the time?
What if a voice call is active only 40% of the time?
uu
can get both spatial and temporal statistical multiplexing gaincan get both spatial and temporal statistical multiplexing gain
uu
but only in a packet-switched network (why?)but only in a packet-switched network (why?)
n
n
Remember
Remember
uu
to get SMG, we need good statistics!to get SMG, we need good statistics!
uu
if statistics are incorrect or change over time, we’re in troubleif statistics are incorrect or change over time, we’re in trouble
uu
example: road systemexample: road system
n
n
Suppose you wanted to complete a task in less time
Suppose you wanted to complete a task in less time
n
n
Could you use more processors to do so?
Could you use more processors to do so?
n
n
Yes, if you can break up the task into
Yes, if you can break up the task into
independent
independent subtasks
subtasks
uu
such as downloading images into a browsersuch as downloading images into a browser
uu
optimal if all subtasks take the same timeoptimal if all subtasks take the same time
n
n
What if subtasks are dependent?
What if subtasks are dependent?
uu
endsendsfor instance, a subtask may not begin execution before anotherfor instance, a subtask may not begin execution before another
uu
such as in cookingsuch as in cooking
n
n
Then, having more processors doesn’t always help (example?)
Then, having more processors doesn’t always help (example?)