Introduction To Distributed System: Jigjiga University Iot
Introduction To Distributed System: Jigjiga University Iot
Introduction To Distributed System: Jigjiga University Iot
Jigjiga University
IoT
Department of Information Technology
Siraj Mohammed
[email protected]
04/04/2023
2
JJU 04/04/2023
Outline
3
Naming
Name spaces
Implementation of name spaces
Name resolution
Implementation of name resolution
Threads
Threads in distributed systems
Multithreaded Clients
Multithreaded Servers
JJU 04/04/2023
What is naming?
4
JJU 04/04/2023
Access point
7
JJU 04/04/2023
Entities, Addresses, Access point: Examples
8
Example:
Telephone as Access Point to a person.
The Telephone Number then becomes the address of the person.
Person can have several telephone numbers.
Entity (or Person) can have several addresses.
Another Example: transport layer -Level Addresses
For server, this can be IP address and port number
Entities may change access points and address over time
Telephone numbers
e-mail addresses
IP addresses
JJU 04/04/2023
Identifiers
9
JJU 04/04/2023
Namespace…
13
JJU 04/04/2023
The Implementation of a Name Space
14
Administrational layer
Managerial layer
JJU 04/04/2023
The Implementation of a Name Space…
16
Global layer
Formed by highest level nodes (root node and nodes close to it or its
children)
Directory tables are rarely changed
Global layer can be used to represent organizations
Administrational layer
Groups of entities that belong to the same organization or
Managerial layer
Nodes that may change regularly
17
Example ,Adama University web address: http://www.astu.edu.et
JJU
04/04/2023
17
What is name resolution?
18
JJU 04/04/2023
Implementation of Name Resolution
19
JJU 04/04/2023
A. Iterative name resolution:
A name resolver hands over the complete name to the root name
server
The root server will resolve the name as far as it can and return the
result to the client; at the minimum it can resolve the first level and
sends the name of the first level name server to the client
The client calls the first level name server, then the second, ..., until it
20 JJU 04/04/2023
the principle of iterative name resolution 20
Recursive name resolution:
A name resolver hands over the whole name to the root name server
The root server will try to resolve the name and if it can’t, it requests
the first level name server to resolve it and to return the address
The first level will do the same thing recursively
21 JJU 04/04/2023
the principle of recursive name resolution 21
Threads
22
JJU 04/04/2023
Threads and their Implementation
23
JJU 04/04/2023
three processes each with one thread one process with three threads
Threads and their Implementation…
24
JJU 04/04/2023
Threads and their Implementation…
25
JJU 04/04/2023
Multithreading
26
JJU 04/04/2023
Examples of Multithreading
27
JJU 04/04/2023
Threads in Distributed Systems
29
Multithreaded Clients:
Consider a Web browser
Fetching different parts of a page can be implemented
as a separate thread,
Each opening its own TCP/IP connection to the server
or to separate and replicated servers
Each can display the results
JJU 04/04/2023
Threads in Distributed Systems…
30
JJU 04/04/2023
Threads in Distributed
31
Systems…
Servers can be constructed in three ways:
1. Single-threaded process:
It gets a request, examines it, carries it out to
completion before getting the next request
The server is idle while waiting for disk read,
i.e., system calls are blocking
JJU 04/04/2023
Threads in Distributed
32
Systems…
Servers can be constructed in three ways….
2. Multiple threads:
Threads are more important for implementing servers
JJU 04/04/2023
Summary of Server model
35
Model Characteristics
JJU 04/04/2023
Thank you
36 JJU 04/04/2023