Chapter 2: Communication Basics Flashcards
1
Q
ISO‘s OSI model NN
A
- Open Systems Interconnection model
- Basis for standards development on systems interconnection.
- Reference model for networking standards development
- ISO/IEC7498-1
2
Q
OSI model
A
-
Application
- HTTP
- Presentation
- Session
-
Transport
- TCP / UDP
-
Network
- IP and Routing
- Data Link
- Physical
3
Q
IP
A
- Two versions
- IPv4, e.g., 131.159.52.25
- IPv6, e.g., fe80::3e97:eff:fe41:2d
- Characteristics
- Relays datagrams accross networks
- Routing enables internetworking
- Deliver packet from source to host address
- Foundation for TCP/UDP
4
Q
IP Routing
A
- Example: We want to reach the chairs website from home.
- Which route should the packets go?
- Requires routing protocol
- Many (open, proprietary) routing protocols available,
- Protocol used in the internet is BGP
-
BGP routing
- Border Gateway Protocol
- Routing between AS (Autonomous systems)
- AS is typical a provider or bigger organization
- Exchanges routing and reachability information between AS (Autonomous System
5
Q
TCP
A
- Transmission control protocol
- Characteristics
- Connection oriented protocol, session is initiated
- Provides reliability through ACK
- Provides ordering, sequencing
- Flow control, sender connot overflow receiver
-
Slow compared to UDP
- But provides reliability
- Usage
- HTTP, RPC, …
6
Q
UDP
A
- User Datagram Protocol
- Characteristics
- Connectionless, no session
- Best-effort
- No guaranteed delivery
- No ordering guarantees
- Point-to-point and point-to-multipoint
-
Faster than TCP
- But application is responsible to fullfill guarantees
- Usages
- DNS, Video, Voice, …
7
Q
Ports
A
- Example: Computer with a given IP address handles Mail, IM, Torrent, and Web browsing
- How should the OS differentiate among these networked applications, if packets arrive?
- A port is a 16 bit number to locally (per host) identify the connection
- Separate for UDP and TCP
- Numbers (vary by OS)
- 0-1023 “reserved”, must be root to use
- 1024 – 65535 are available to regular user
- Well-known, reserved services
- http80/tcp
- ftp 21/tcp
- ssh22/tcp
- Others: telnet 23/tcp; finger 79/tcp; snmp 161/udp
8
Q
Application layer protocols
A
- Example: A browser wants to retreive a web page
- Typically HTTP 1.1 over TCP is used
- Presentedprotocols
- HTTP
- Other protocols
- FTP
- SMTP
9
Q
Protocols
A
-
Set of rules that specifies data transfer between computing end-points, often including
- Connection establishment & tear-down
- Communication
- Data representation
- Often based on standards, de facto standards, open specifications, …
10
Q
Common application layer protocols
A
- DHCP (Dynamic Host Configuration Protocol)
HTTP (Hypertext Transfer Protocol)
FTP (File Transfer Protocol)
Telnet (Telnet Remote Protocol)
SSH (Secure Shell Remote Protocol)
SIP(SessionInitiationProtocol)
POP3(PostOfficeProtocol3)
SMTP(SimpleMailTransferProtocol)
IMAP (Internet Message Access Protocol)
11
Q
HTTP/1.1
A
Definition
- HyperText Transfer Protocol
- Request/Response protocol for client-server communication
- Normally used on top of TCP
Usagescenarios – Browser
- RESTFUL API‘s
- SOAP over HTTP
- NoSQL databases, e.g., CouchDB
12
Q
HTTP/1.1 methods
A
- Get – retrieve information
- Head – similar to get but must not return body message
- Post – post form
- Put – update
- delete –
- trace – diagnostics
- connect – initialize secure connection
13
Q
HTTP/2.0
A
- Standard Proposed in May 2015 as RFC7540
- Supported already by all major browser
- Main difference to HTTP/1.1
- Better utilization of available network capacity
- Headers are also compressed
- On a single connection requests and response are interleaved
- Prioritization of requests
14
Q
The Hourglass Evolution of the Internet Protocol Stack
A
15
Q
Socket: Problem description
A
- Move data from Application I on Host A to Application K on Host B
- Send a message from Application I on Host A to Application K on Host B
- Invoke an operation/service from Application I on Host A on Application K on Host B and return a result (or failure)