Extra Notes from the Book
Transmission Control Protocol Brief…
It is a full-featured, connection-oriented, reliable Transport protocol for TCP/IP apps.
It provides a transport layer addressing that allows multiple software applications to simultaneously use a single IP address and it allows a pair of devices to establish a virtual connection and the pass data Bi-directionally
User Datagram Protocol (UDP)
It is a very simple protocol in contrast to TCP. It provides transport layer addressing just like TCP but little else. It is barely even a wrapper protocol that provides a way for applications to access IP.
No connection is establishes, transmissions are unreliable and data can be lost.
Was ist TCP und was macht es?
TCP - Transmission Control Protocol
TCP Multiplexing:
TCP verwendet sog. sockets
How does the IP layer know which Datagramms go where if they all have the same IP address?
Protocol Field - it is included in the header of each IP Datagram. The protocol field tells the IP to pass data to either TCP/UDP as appropriate
TCP/UDP must figure out which process to send data to. We need an additional addressing element for this. What is it?
It is a transport layer address called a port
How many types of port do we have? How many bits in length are the TCP/UDP port Numbers?
Source port and destination port.
How does transport layer addressing (port addressing) work in TCP and UDP? - Step by step **2 main steps
What is the overall identifier of a TCP/IP application process on a device?
A socket: It is the combination of its IP address and port number
How are sockets specified? Writing format?
:
or you can resolve a name to an IP address using DNS, then…the socket is specified like so…
:
Each device can have multiple active TCP connections at a time . How is each connection uniquely identified?
Using the combination of the Client socket and the server socket, which contains 4 elements: Client IP address and port and Server IP address and port. e.g ( 41.199.222.3:80, 177.41.72.6:3022)
Why doesn’t UDP use connections?
It’s a connectionless protocol!
TCP Data packaging: Explain the process in 6 steps:
**IP is a message oriented protocol, it is not stream oriented.
TCP Datenübertragung
TCP Verbindung diagram**
TCP Übertragung Diagramm
Draw TCP Header Diagram with all components…
SYN Flag in TCP Header:
wofür steht SYN?
Was macht der SYN?
2. Inttiiert eine TCP Verbindung
Wie antwortet der Server im Normalfall als Bestätigung?
Mit SYN-ACK
Synchronisation von Sequence Numbers:
Wozu brauchen wir das
notwendig für die Fehlererkennung
ACK im TCP header.
Wofür steht ACK?
Was macht der ACK Flag?
Acknowledgement Flag
Bestätigt den Empfang einer Nachricht.
Bsp. TCP 3 way Handshake
FIN im TCP Header.
Wofür steht FIN?
wozu brauchen wir den Flag?
PSH(PSH BIT) im TCP Header.
Wofür steht PSH?
wozu brauchen wir den Flag?
**Problem: Echtzeichtapplikationen (z.b.: telnet, ssh)