(11) Computer Networks Flashcards

1
Q

What are the components of a distributed System?

A

Nodes: hosts
Edges: computer network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the issues regarding distributed systems?

A
  • single point of failure, performance bottlenecks
  • no global view, no global time
  • Heterogeneous network and nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of distributed systems?

A
  • resource sharing is possible (e.g. printer)
  • connect remote places
  • Redundancy
  • Reflect the organisational structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are difficulties and threats facing distributed systems?

A
  • Widely varying mode of use (workload, available resources, …)
  • Wide range of system requirements (heterogeneous hardware and operating systems, …)
  • Internal problems (non-synchronised clocks, conflicting data access,…)
  • External threats (attack on data integrity and secrecy)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which aspects have to be considered when designing a distributed system?

A
  • Architecture (architectural models)
  • Interaction of different processes (interaction models)
  • Failures in distributed systems (failure models)
  • Security in distributed systems (security models)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do interaction models consist of?

A
  • Roles: determine the communication partner

Interaction: data is exchanged and synchronisation pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are Producer/Consumer Systems and how do they work?

A
  • Interaction model
  • Producer: generates data and sends it to consumer
  • Consumer: receives and processes data
  • Interaction: unidirectional communication
    Example: Video Stream
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Pipeline Model and how does it work?

A
  • Generalisation of the producer-consumer model
  • Intermediate processes are both producer and consumer
  • Processes are connected by unidirectional communication channels
  • Example: Data exchange in a supply chain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Client-Server Model and how does it work?

A
  • Client: sends service request to the server (active entity)
  • Server: waits for request, processes it, and sends the result back to the client (passive entity)
  • A server process offers its service to a set of a priori unknown number of clients
  • A client process uses the offered service
  • A service may be implemented by
    several server processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the reason for architectural models?

A
  • Client/Server does not (necessarily) map to the application structure
  • Placement and relevance of components is crucial
  • Approach: A general architecture model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are architectural models doing and what are examples of architectural models?

A
  • Architectural Models define the structure of the distributed
    system involving different components
  • Abstraction of the functions of the individual components
  • Examples: Three-Tier-Architecture, Peer-to-Peer Architecture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Peer-to-Peer architecture?

A
  • Elimination of the requirements of centrally managed servers
  • Provision of resources (e.g., data, storage, bandwidth) by every peer
  • All participants are equal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which types of Peer-to-Peer architecture exist?

A
  1. Hybrid Peer-to-Peer: Server is used for peer coordination, Peers let server know which resources they share, direct interaction between peers
  2. Pure Peer-to-Peer: Peers are all equal, no server (every peer acts as client and as server), Challenge: distribution and location of data and resources)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the reason for Layered Networks?

A
  • Designing communicating systems is a complex task (numerous complex functions with different levels of abstractions that interact)
  • Solution: layered systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are Layered Systems constructed?

A
  • Every layer realizes one level of abstraction
  • Interfaces: define which service primitives the lower level offers to the higher level
    Protocols: communication agreement between two parties of the same layer on different machines
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the ISO OSI Reference Model

A
  • Architecture for Layered Networks
  • Based on proposal of ISO
  • Uses standardization of protocols in the layers
    Model with seven layers
17
Q

What is the TCP/IP Reference Model?

A
  • Architecture for Layered Networks (e.g. ARPANET)

- Initially a model with four layers

18
Q

What are the seven layers of the ISO OSI Reference Model?

A
  1. Physical
  2. Data link
  3. Network
  4. Transport
  5. Session
  6. Presentation
  7. Application
19
Q

What are the layers of the TCP/IP Model?

A
  1. Host-to-network
  2. Internet
  3. Transport
  4. Application
20
Q

Provide a comparison of the ISO/OSI and the TCP/IP Model

A

ISO/OSI:

  • Provides a model first (multiple implementations later)
  • Very clear with regard to concepts (services, interfaces, protocols)
  • Allows in theory to replace layers

TCP/IP:
- Provides a working implementation first (model later)

21
Q

What are generic and application specific services and what does typically exist between them?

A
  • Generic: routing, flow control, physical
  • Application specific: data encoding, communication model
  • Typically there is a clear separation between them
22
Q

What are examples for networks?

A
  • Connection-oriented networks
  • Ethernet
  • Wireless LANs
  • The Internet is a collection of different networks
23
Q

What kinds of wireless LANs exist?

A
  • Wireless networking with a base station

- Ad hoc networking (no base station)

24
Q

What kind of services does the Layer 4 (Transport) provide for applications?

A

Connection-oriented services:

  • Analog: Telephone system
  • Transmission requires connection
  • Three Phases: (1) establish a connection, (2) send data, (3) close connection
  • Applicable for: time consuming interactions, transfer of large amounts of data

Connectionless Services:

  • Analog: Postal service
  • No connection
  • Transmission of isolated data units
  • Applicable for: short interaction time, transfer of small data units
25
Q

What are Service Primitives good for?

A
  • A set of service primitives formally specifies a service
  • The set depends on the nature of the provided service
  • Primitives are often parameterized
26
Q

Which two main protocols does the transport layer of the Internet have?

A
  1. UDP (User Datagram Protocol): connectionless protocol

2. TCP (Transmission Control Protocol): connection oriented protocol

27
Q

What are the characteristics of the User Datagram Protocol?

A
  • Unreliable: message might get lost
  • Not ordered: sending order may not be qual to receipt order
  • Lightweight: no connection tracking
  • Datagrams: Packets are sent as one single piece
28
Q

What are the characteristics of the Transmission Control Protocol?

A
  • Reliable: certainty that the message will arrive
  • Ordered: sending order is always equal to receipt order
  • Overhead: message tracking
  • Streams: Data is read from a stream which might hold several packages
29
Q

What are Sockets and what are they used for?

A
  • Sockets are an API (Application Programming Interface) between application and protocol stack
  • Sockets connect applications and the protocol software: in this way a process can interact with a port
  • TCP and UDP both use the port concept (indirect addressing)
  • Port is the point of delivery for the transport layer
30
Q

UDP vs. TCP - Which one is better?

A

Depends on the data.
UDP: small or unimportant data
TCP: large or important data

31
Q

Examples for the use of UDP and TCP

A

UDP: Media streaming, online games
TCP: E-mail