N10-009 ยท Ports, protocols and traffic types
ICMP, TCP, UDP, GRE and IPsec
Differences between TCP and UDP, role of ICMP and GRE, IPsec components AH, ESP and IKE.
Key points
- TCP: connection-oriented, with handshake, sequence numbers, acknowledgements, retransmission, flow control.
- UDP: connectionless, low overhead, no delivery guarantee.
- ICMP: error and diagnostic messages (echo, unreachable), no ports.
- GRE: tunnels other protocols, no encryption.
- IPsec: AH gives integrity and authentication without encryption, ESP adds encryption, IKE negotiates keys and security associations.
Source: https://www.rfc-editor.org/rfc/rfc4303
Practice questions
Which IPsec component provides encryption of the payload?
- AH
- ESP
- IKE
- GRE
Show answer
Answer: B. ESP
ESP can encrypt and also authenticate. AH only authenticates and protects integrity, IKE negotiates keys, and GRE is a separate tunneling protocol.
Which features describe TCP?
- Three-way handshake
- Sequence numbers and acknowledgements
- No delivery guarantee by design
- Connectionless operation
- Window-based flow control
Show answer
Answer: A. Three-way handshake, B. Sequence numbers and acknowledgements, E. Window-based flow control
Handshake, sequencing with ACKs and windowing are TCP traits. No guarantee and connectionless describe UDP.
ICMP messages such as ping echo use a TCP or UDP port number.
Show answer
Answer: False
ICMP sits directly on IP and uses message types and codes, not ports.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
