Protocol Layers & Encapsulation Flashcards

1
Q

Network intercommunication was the main design goal of the Internet

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

TCP/IP was designed to enable network intercommunication

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

Abstraction is the solution!

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

Abstraction leads to layering

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

The Internet Protocol Stack (TCP/IP)

A
  1. Packet Switching: the
    fundamental Internet principle!
  2. Routing: necessary to
    interconnect distinct networks
  3. Bit Transmission: enables data
    communication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Benefits of Protocol Layering

A
  • Structure
    – Does not specify an implementation
    – Instead, tells us how to organize functionality
  • Modularity
    – Eases maintenance, updating of system
    – Allows identification, relationship of complex system’s pieces
  • Flexibility
    – Reuse of code across the network
  • Extensibility
    – Module implementations may change
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Layer Features

A
  • Service
    – What does this layer do?
  • Interface
    – How do you access this layer?
  • Protocol
    – How is this layer implemented?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Communication Service

A
  • Specification of
    – Functionality a layer offers
    – How this functionality is provided
    – Interaction between layers (service user & service provider)
  • Service definitions abstract from how the service is actually implemented
    – Service interface hides complexity
    – Service is implemented through protocols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Communication Protocol

A
  • Specification of
    – How and when data is transmitted and received
    – Allowed messages and expected/required replies
    – Ordering and timing of transmissions
    – Exact format of transmitted data
  • Protocols often make assumptions that demand lower-level protocols
    – We talk of communicating peers using the same protocol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Internet Protocol Stack: Application Layer

A
  • Service
    – Whatever we want :)
  • Interface
    – Whatever you want :D
  • Protocol
    – Whatever you want ;)
  • Examples:
    – File Transfer (FTP)
    – World Wide Web (HTTP)
    – Email (SMTP)
    – Directory Services (DNS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Internet Protocol Stack: Transport Layer

A
  • Service
    – Multiplexing/demultiplexing
    – Congestion control
    – Reliable, in-order delivery
  • Interface
    – Send messages to a destination
  • Protocol
    – Port numbers
    – Reliability/error correction
    – Flow-control information
  • Examples:
    – Transmission Control Protocol (TCP)
    – User Datagram Protocol (UDP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Internet Protocol Stack: Network Layer

A
  • Service
    – Deliver packets across the network
    – Handle fragmentation/reassembly
    – Packet scheduling
    – Buffer management
  • Interface
    – Send a packet to a specific destination
  • Protocol
    – Define globally unique addresses
    – Maintain routing tables
  • Example: Internet Protocol (IP), IPv6
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Internet Protocol Stack: Data Link Layer

A
  • Service
    – Data framing: boundaries between packets
    – Media access control (MAC)
    – Per-hop reliability and flow-control
  • Interface
    – Send one packet between two hosts connected to the same media
  • Protocol
    – Physical addressing (e.g. MAC address)
  • Examples:
    – Ethernet
    – Wifi
    – DOCSIS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Internet Protocol Stack: Physical Layer

A
  • Service
    – Move information between two systems connected by a physical link
  • Interface
    – Specifies how to send one bit
  • Protocol
    – Encoding scheme for one bit
    – Voltage levels
    – Timing of signals
  • Examples:
    – coaxial cable
    – fiber optics
    – radio frequency transmitters
    – Twisted pair
    – Infrared (IR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The ISO/OSI model

A
  • Presentation: allow applications to interpret meaning of data, e.g., encryption, compression, machine specific conventions
  • Session: synchronization, checkpointing, recovery of data exchange
  • Internet model “misses” these layers!
    – These services, if needed, must be implemented in application
    – Needed?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Data flow in the TCP/IP model

A
17
Q

Services, Layering and Encapsulation (Application)

A
  1. Application exchanges messages to
    implement some application service using
    services of transport layer
18
Q

Services, Layering and Encapsulation (Transport)

A
19
Q

Services, Layering and Encapsulation (Network)

A
20
Q

Services, Layering and Encapsulation (Link)

A
21
Q

Services, Layering and Encapsulation Flow

A
22
Q

Encapsulation: an end-end view

A
23
Q

Encapsulation

A
24
Q

Encapsulation in practice

A
25
Q

The Internet Hourglass

A
26
Q

Why is the internet core is “dumb” by design

A
  • Minimal functionality in Layer below the Application layer
  • The End-to-End Principle:
    “ Don’t implement anything in the network that can be implemented correctly by the hosts
  • Generality, Net Neutrality, Low cost and complexity
  • Tradeoffs?
27
Q

Layering sometimes can be harmful

A
  • Lower performance due to data and processing overhead added by protocol headers
  • The same functionality may be duplicated by different layers (e.g. error detection)
  • Lack of transparency in lower layers hinders optimization
28
Q

Reality Check

A
  • Layering regularly violated:
    • Firewalls
    • Transparent proxies
    • NATs
  • Conflicting Interests:
    • Architectural purity
    • Commercial necessity