Chapter 0
Chapter 0
Communication Networks
Introduction Chapter
Lecturer
MSc. Ma Viet Duc
Department of Communication Engineering,
Introduction SEEE, HUST
Email: [Link]@[Link]
Motivation
Research Topics:
◊ Cloud and Edge Computing
Communication
Networks ◊ 5G Networks and Beyond
◊ Network Security
◊ Services Architecture
1
Fields of Research
Communication
Networks 5G Networks and Beyond
Motivations
Network performance evaluation and
modelling
Introduction
Network simulation
Motivation
Design of network elements, like
Communication router’s buffer, routing protocols,
Networks
resource allocation, MAC scheduling,
etc
2
Course Contents
Chapter 0: Overview of
Communication Networks and network
Introduction
modelling
Chapter 1: Probability Review
Motivation
Chapter 2: Queuing theory
Communication
Networks
Chapter 3: Routing theory
Chapter 4: Flow and congestion
control
Chapter 5: Simulation (optional)
5
Pre-requirements
Attendees need to have:
Knowledge of statistics and probability
Introduction Basis of digital communications
Fundamentals of data communications
Motivation
References:
Communication
Networks
Will be provided
3
Evaluation
Projects or mid-term exam: 30%
Introduction
Final exam: 70%
Motivation
Communication
Networks
Methodology
The fundamentals
Reliable/secure communications over
unreliable/insecure channels
Introduction Finding paths through the network
Resource sharing
Motivation Providing common services to applications
Communication
Networks Case studies (in project based) on how to use the
network
◊Content distribution, DNS, p2p, social
networks, search engines
◊Socket programming
4
The (communication)
Introduction
networking field is broad and
Motivation confusing…
Communication
Networks
10
10
5
Why do we care about
networks?
Because they are everywhere
more and more systems can be modeled
Introduction
as networks
Motivation Because they are growing
Communication
large scale problems
Networks
Because we have the computational
power to study them
task: to develop the tools
11
11
Social Networks
Links denote a social interaction
Networks of acquaintances
Introduction
Motivation
Communication
Networks
12
12
6
Other Social networks
actor networks
co-authorship
networks
Introduction
director networks
phone-call networks
Motivation
e-mail networks
Communication IM networks
Networks
Microsoft buddy
network
Bluetooth networks
sexual networks
13
13
Knowledge (Information)
Networks
Nodes store information, links
associate information
Introduction
Citation network (directed acyclic)
Motivation
The Web (directed)
Communication
Networks
14
14
7
Other data networks
Peer-to-Peer networks
Introduction
Word networks
Networks of Trust
Motivation
epinions
Communication
Networks
15
15
Technological networks
Networks built for distribution of
commodity
The Internet
Introduction ◊router level
◊AS level
Motivation
Communication
Networks
ISP network
16
16
8
Other technological
networks
Power Grids
Introduction
Airline networks
Telephone networks
Transportation Networks
Motivation
Communication
Networks
roads, railways, pedestrian traffic
Software networks
17
17
Biological networks
Biological systems represented as
networks
Protein-Protein Interaction Networks
Introduction
Motivation
Communication
Networks
18
18
9
Other Biological networks
Gene regulation networks
Introduction
Communication
Networks
Neural Networks
19
19
Now what?
The world is full with networks. What
do we do with them?
Introduction
understand their topology and measure
their properties
Motivation
study their evolution and dynamics
Communication
Networks create realistic models
create algorithms that make use of the
network structure
20
20
10
Mathematical Tools
Graph theory
Introduction
Probability theory
Linear Algebra
Control theory
Motivation
Communication
Networks Queuing theory
Optimization theory
21
21
Graph Theory
Graph G=(V,E)
V = set of vertices 2
E = set of edges
Introduction
Motivation 1
3
Communication
Networks
5 4
undirected graph
E={(1,2),(1,3),(2,3),(3,4),(4,5)}
22
22
11
Graph Theory
Graph G=(V,E)
V = set of vertices 2
E = set of edges
Introduction
Motivation 1
3
Communication
Networks
5
directed graph 4
E={‹1,2›, ‹2,1› ‹1,3›, ‹3,2›, ‹3,4›, ‹4,5›}
23
23
Undirected graph
degree d(i) of node i
2
number of edges
incident on node i
Introduction
Motivation 1
3
Communication
Networks
degree sequence (distribution)
[d(i),d(2),d(3),d(4),d(5)]
[2,2,2,1,1] 5 4
24
24
12
Directed Graph 2
Communication 5 4
Networks
25
Paths
Path from node i to node j: a sequence of edges
(directed or undirected from node i to node j)
path length: number of edges on the path
nodes i and j are connected
cycle: a path that starts and ends at the same node
Introduction 2 2
Motivation
Communication
Networks 1 1
3 3
5 4 5 4
26
26
13
Shortest Paths
Shortest Path from node i to node j
also known as BFS path, or geodesic
path
2 2
Introduction
Motivation
Communication 1 1
Networks
3 3
5 5 4
4 27
27
Diameter
The longest shortest path in the
graph
2 2
Introduction
Motivation
Communication 1 1
Networks
3 3
5 4 5 4
28
28
14
Undirected graph
Connected graph: a
graph where there
2
every pair of nodes
Introduction
is connected
Disconnected graph:
Motivation a graph that is not 1
Communication
connected 3
Networks
Connected
Components:
subsets of vertices 5 4
that are connected
29
29
Motivation
Communication 1
Networks
3
5 4
30
30
15
Directed Graph
Strongly connected graph:
2
there exists a path from
every i to every j
Introduction
Motivation 1
3
Communication
Networks Weakly connected graph: If
edges are made to be
undirected the graph is
5 4
connected
31
31
Subgraphs 2
Subgraph: Given V’ V,
and E’ E, the graph
G’=(V’,E’) is a subgraph 1
3
Introduction
of G.
Induced subgraph:
Motivation Given V’ V, let E’
5
Communication
E is the set of all edges 4
Networks
between the nodes in
V’. The graph G’=(V’,E’),
is an induced subgraph
of G
32
32
16
Trees
Connected Undirected graphs
without cycles
Introduction 2
Motivation
Communication
Networks
1
3
5 4
33
33
Bipartite graphs
Graphs where the set V can be
partitioned into two sets L and R, such
Introduction that all edges are between nodes in L
and R, and there is no edge within L or R
Motivation
Communication
Networks
34
34
17
Linear Algebra
Adjacency Matrix
symmetric matrix for undirected graphs
Introduction
2
Motivation
0 1 1 0 0
1 0 1 0 0
Communication 1
Networks
A 1 1 0 1 0 3
0 0 1 0 1
0 0 0 1 0
5 4
35
35
Linear Algebra
Adjacency Matrix
unsymmetric matrix for undirected
graphs 2
Introduction
Motivation
0 1 1 0 0
1 0 0 0 0 1
Communication
Networks 3
A 0 1 0 1 0
0 0 0 0 1
0 0 0 0 0 5 4
36
36
18
Random Walks
Start from a node, and follow links
uniformly at random.
Introduction Stationary distribution: The fraction
of times that you visit node i, as the
Motivation
number of steps of the random walk
Communication
Networks
approaches infinity
if the graph is strongly connected, the
stationary distribution converges to a
unique vector.
37
37
Probability Theory
Probability Space: pair ‹Ω,P›
Ω: sample space
Introduction
P: probability measure over subsets of
Motivation Ω
Communication
Random variable X: Ω→R
Networks
Probability mass function P[X=x]
Expectation
EX xP[X x]
x
38
38
19
What is modeling?
A Model is a simplification of a real
system
Modeling is the process of representing a
Introduction
system with a specific tool to study its
behavior
Motivation
A model can be:
Communication
Networks Analytic: when a mathematical approach is
feasible (e.g. Queuing Model)
Simulation: model used for complex systems
Experimental: when the real system already
exists
39
39
[Link]
Model (Wikipedia)
A Model is a pattern, plan, representation
(especially in miniature), or description designed
to show the main object or workings of an object,
system, or concept.
Introduction
Model may also refer to:
Motivation
Abstractions, concepts, and theories
representations of objects
Communication
Networks
human and animal behavior
occupations
history and culture
lighting
In geography …
40
40
20
Examples
41
41
Examples: Movement
Consider a system when a given object move
This system can be modeled by the equation
S= V * t V
42
42
21
Example: Radio Propagation Models
A radio propagation model is an
empirical mathematical formulation
for the characterization of radio wave
propagation as a function of
frequency, distance and other
conditions.
Different types of models
Introduction Models for outdoor
environments: Ground wave,
Sky wave, Environmental
Motivation Attenuation, Point-to-Point
propagation models, Terrain Empirical Model of Radio Channel
models, City Models Source: Kannan Srinivasan and Philip Levis, RSSI is
Communication Under Appreciated, ACM Workshop on Embedded
Networks Models for indoor environments Networked Sensors (EmNets 2006),
43
43
Characteristics of a model
A model is never equal to the real system
because it is always simpler than the reality
Introduction
The accuracy of a model is determined by its
tendency to approach the real system
Motivation
Is that a problem?
Communication Yes, if the model ignore important parameters
Networks
of the real system (over simplification)
No, if the model takes into account the
important parameters (ignoring some details
is sometimes not problematic)
44
44
22
Performance Evaluation of a
System
SYSTEM
There is always the
Experiment with the Experiment with a question of whether it
Actual System Model of the System actually reflects the
system.
Introduction
Too costly or disruptive
Not appropriate for the
design
Motivation
Make assumptions that take
Mathematical Model the form of mathematical or
Communication logical relationships
Networks
45
45
Motivation
Simulation only produce approximate answers
Communication
Networks Simulation can take a LONG time to execute
46
46
23
Classification of Models
47
47
Classification of Models
Deterministic
Stochastic Models
Models
Introduction • No probabilistic • Some components
component in the of the system has
Motivation system a probablistic
• Example: Worst- behavior (Random
Communication
Networks Case Analysis of variable, event
the system probability)
• Example:
Queueing systems
48
48
24
Classification of Models
Continuous Models Discrete Models
time time
Continuous Model Discrete Model
49
49
Introduction
Communication 0.1
Networks 0.05
0
0 0.2 0.4 0.6 0.8 1 1.2
r (%)
Stochastic Performance
Deterministic Performance
Using Queueing Theory
Using Network Calculus
50
50
25
Model Development Lifecycle
Define goals, objectives of study
Verify model
Validate model
51
51
52
52
26
Model Development Lifecycle
Develop Specification Model
• A more detailed specification of the model including more specifics
• Collect data to populate model
• Example:
• Traffic: Road geometry, signal timing, expected traffic demand, driver
behavior
Introduction
• Communication: network topology, message type, inter-arrival time, data
rates
• Empirical data or probability distributions often used
Motivation
Develop a Computational Model
Communication • Executable simulation model
Networks • Software approach
• General purpose programming language
• Special purpose simulation language
• Other (non-functional) requirements
• Performance
• Interoperability with other models/tools/data
53
53
54
54
27
Example: Airport Check-in Desk
Queuing
Introduction
Motivation
Communication
Networks We consider flight check-in desks in an Airport. The administration
of the airport wants to improve its quality of service by reducing
the waiting time of travelers. For that purpose, they want to
design what could be the best queuing strategy to have the
minimum waiting time.
The main problem is to know what is the best queuing strategy
that reduces the waiting time of travelers in check-in desks.
55
55
56
Model 1 Model 2
56
28
Step. 2. Develop Conceptual
Model
What are the elements of the system?
Introduction
57
Introduction
Model 1 Model 2
Motivation
One Queue: Three Queue:
Length= 60 Travelers Length= 20 Travelers/Queue
Communication
Networks N=3 Agents N=3 Agents
Service rate: 30 Service rate: 30 travelers/hour
travelers/hour Travelers arrive with a rate 1
travelers/minute
Travelers arrive with a
rate Travelers choose a queue with a
58
58
29
Step. 4. Develop Computation Model
Analytical Model: Queueing Theory
Communication 1 (N r ) N
r 26
Delay ( Model 1) N r 0 2.88 minutes
Networks
N! (1 r ) 2
9
59
59
Simulation
Model: Arena
Introduction
Motivation
Communication
Networks Model 1 Model 2
Delay (Model 1) 2.93 minutes Delay ( Model 2 ) 5.86 minutes
60
60
30
End of the Subject
Introduction
Motivation
Introduction
Communication
Networks
61
61
31