CompTIA Network+ (N10-009) · Lesson 8
IP Protocol Types and Traffic Types
Explain what ICMP, TCP, UDP, GRE and IPsec (AH, ESP and IKE) each carry inside an IP packet, and tell unicast, broadcast, multicast and anycast traffic apart.
Tip: turn your phone sideways or use full screen for larger labels.
Captions match the narration word for word. Press Space to play or pause and the arrow keys to change scenes.
Learning objective
Explain what ICMP, TCP, UDP, GRE and IPsec (AH, ESP and IKE) each carry inside an IP packet, and tell unicast, broadcast, multicast and anycast traffic apart.
Exam mapping
Domain 1.0: Networking Concepts (23%). Objective 1.4 in the official N10-009 exam objectives.
Key takeaways
- The IP header's protocol field (Next Header in IPv6) names the payload: ICMP 1, TCP 6, UDP 17, GRE 47, ESP 50, AH 51. These are protocol numbers, not ports.
- TCP is connection-oriented: a SYN, SYN-ACK, ACK handshake, then acknowledgments and retransmission for reliable, ordered delivery. UDP has no handshake or retransmission and a small 8-byte header (DNS, DHCP, VoIP, video).
- ICMP carries diagnostics and errors: echo request and reply (ping), time exceeded (traceroute) and destination unreachable.
- GRE encapsulates almost any packet, including multicast and routing updates, inside a new IP packet to form a tunnel, but it doesn't encrypt.
- IPsec: IKE negotiates keys on UDP 500 (4500 through NAT); AH gives integrity and authentication without encryption; ESP adds encryption and is what most VPNs use.
- Unicast is one to one; broadcast is one to every host in the subnet (not forwarded by routers, absent in IPv6); multicast is one to hosts that joined a group; anycast is one to the nearest of many servers sharing an address.
Exam tips
How the exam asks about this
Questions describe a situation and expect you to recognize the concept behind it.
| If the question mentions… | Think |
|---|---|
| Three-way handshake, acknowledgments, retransmission | TCP |
| Connectionless, low overhead, no retransmission | UDP |
| Ping, traceroute, destination unreachable | ICMP |
| Unencrypted tunnel that can carry multicast and routing traffic | GRE |
| IPsec protocol that encrypts the payload | ESP |
| IPsec integrity and authentication, no encryption | AH |
| Negotiates IPsec keys on UDP 500 | IKE |
| Same address on many servers, nearest one answers | Anycast |
Common traps
- Protocol numbers aren't ports. GRE is IP protocol 47 and ESP is 50; only IKE uses a port (UDP 500, or 4500 through NAT).
- AH doesn't encrypt anything. If the question needs confidentiality, the answer is ESP.
- GRE alone isn't secure. It tunnels traffic without encryption, so it's paired with IPsec when privacy matters.
- IPv6 has no broadcast. Multicast takes over those jobs, and anycast is a separate address type.
Practice
Exam-style questions
Answer each one before you open the explanation.
Question 1. A network engineer needs a tunnel between two branch routers that can carry multicast routing updates. Confidentiality is NOT required. Which protocol should the engineer use?
- ESP
- GRE
- AH
- ICMP
Show answer
B. GRE. GRE encapsulates almost any packet, including multicast and routing updates, to build a tunnel, and it adds no encryption. ESP is tempting, but it's IPsec's encryption protocol, which this scenario doesn't need. AH only authenticates and ICMP carries diagnostics.
Question 2. A company's site-to-site VPN must keep traffic confidential and prove it wasn't altered in transit. Which IPsec protocol provides both?
- AH
- IKE
- GRE
- ESP
Show answer
D. ESP. ESP encrypts the payload and also provides integrity and authentication. AH is tempting because it proves integrity and the sender, but it doesn't encrypt. IKE only negotiates keys, and GRE isn't part of IPsec and doesn't encrypt.
Question 3. Which TWO statements about UDP are true? (Select TWO.)
- It uses a three-way handshake
- It does not retransmit lost data
- It is IP protocol number 6
- It is commonly used for VoIP and DNS queries
- It guarantees in-order delivery
Show answer
B. It does not retransmit lost data and D. It is commonly used for VoIP and DNS queries. UDP is connectionless: no handshake and no retransmission, which keeps delay low for VoIP and DNS. The handshake, guaranteed ordering and protocol number 6 all describe TCP; UDP is protocol 17.
Question 4. A firewall between two VPN gateways blocks all traffic except what's needed for IPsec. Which must be allowed for the gateways to negotiate keys?
- UDP 500
- TCP 443
- IP protocol 47
- IP protocol 1
Show answer
A. UDP 500. IKE negotiates IPsec keys on UDP 500 (with UDP 4500 used through NAT). IP protocol 47 is GRE and protocol 1 is ICMP, and TCP 443 is HTTPS. After IKE finishes, ESP traffic (protocol 50) must also be allowed.
Question 5. A DNS provider assigns the same IP address to servers on several continents, and each user reaches the server closest to them. Which traffic type is this?
- Unicast
- Broadcast
- Multicast
- Anycast
Show answer
D. Anycast. Anycast delivers a packet to the nearest of several interfaces sharing one address, as measured by routing. Multicast is tempting, but it delivers a copy to every member of a group, not to one nearest server. Broadcast reaches every host in a subnet, and unicast targets one specific host.
Transcript
Lesson transcript
The full narration, scene by scene. The captions file contains the same text with timings.
Scene 1 · 0:00
Lesson 8: IP protocol and traffic types. Welcome to lesson eight, which finishes objective 1.4. In the last two lessons, we matched services to port numbers. Now we step down a layer. First, we'll look at what an IP packet can carry: ICMP, TCP, UDP, GRE and IPsec, with its three parts, AH, ESP and IKE. Then we'll look at who receives a packet: one host, every host, a group, or the nearest server.
Scene 2 · 0:29
The protocol field. Every IP header has a protocol field, a number that tells the receiver what the payload is. IANA keeps the list. Six means hand the payload to TCP, seventeen means UDP, and one means ICMP. In IPv6, the same field is called Next Header. Here's the key distinction: port numbers live inside TCP and UDP. ICMP, GRE, ESP and AH have no ports at all. GRE is protocol forty-seven, not port forty-seven.
Scene 3 · 1:00
TCP vs. UDP. TCP, protocol six, is connection-oriented. Before any data moves, the client and server do a three-way handshake: SYN, SYN-ACK, ACK. After that, TCP numbers and acknowledges the data and resends anything lost, so the store's web pages arrive complete and in order. UDP, protocol seventeen, skips all of that. There's no handshake and no resending, just an eight-byte header. That suits DNS queries, DHCP, voice calls and live video.
Scene 4 · 1:31
ICMP: ping and traceroute. ICMP, the Internet Control Message Protocol, is protocol one. It carries diagnostics and error reports, not user data. When an admin pings the store's server, the PC sends an echo request and the server sends back an echo reply. Traceroute relies on time exceeded messages from each router along the path. A router that can't reach a destination sends back destination unreachable. Many firewalls block ping from the internet.
Scene 5 · 2:01
GRE: tunnels. GRE, Generic Routing Encapsulation, is protocol forty-seven. It wraps one packet inside another: a new IP header, a small GRE header, then the original packet. That builds a tunnel, here between the store's office and its warehouse. Because GRE can carry almost anything, including multicast and routing updates, it's popular between sites. But GRE adds no encryption. Anyone on the path can read what's inside, so it's often paired with IPsec.
Scene 6 · 2:32
IPsec: IKE, AH and ESP. IPsec secures IP traffic, and CompTIA lists three parts. IKE, Internet Key Exchange, comes first: on UDP port 500, or 4500 through NAT, the two ends agree on keys and set up the tunnel. AH, the Authentication Header, protocol fifty-one, proves who sent each packet and that nothing changed, but it doesn't encrypt. ESP, protocol fifty, encrypts the payload and checks integrity. That's why most VPNs use ESP.
Scene 7 · 3:01
Unicast and broadcast. Now, who receives a packet? Unicast goes from one sender to one receiver, like the store's web page going to one shopper. Most traffic is unicast. Broadcast goes to every host in the subnet, for example to 255.255.255.255. ARP requests and DHCP Discover messages use it, because the sender doesn't know who to ask yet. Routers don't forward broadcasts, and IPv6 has no broadcast at all.
Scene 8 · 3:30
Multicast: one to a group. Multicast sends one stream to a group. Only hosts that joined the group receive a copy, so the sender doesn't repeat itself for each viewer, and hosts that didn't join never see it. IPv4 multicast addresses run from 224.0.0.0 to 239.255.255.255, and IPv6 multicast addresses start with f f. Typical uses are live video feeds and routing protocols that share updates between routers. In IPv6, multicast does broadcast's old jobs.
Scene 9 · 4:00
Anycast: one to the nearest. Anycast gives the same address to many servers in different places. A packet sent to that address is delivered to just one of them: the nearest, as routing measures distance. Here, the server eight milliseconds away answers. IPv6 defines anycast as an address type. In IPv4, it's done with BGP routing. DNS root servers and content delivery networks use anycast, and if the nearest server fails, traffic moves to the next one.
Scene 10 · 4:32
How the exam asks about this. Exam questions describe a behavior. Reliable, ordered delivery with a handshake is TCP. No handshake and low overhead is UDP. Ping and traceroute are ICMP. A tunnel that can carry multicast is GRE. Encrypting VPN traffic is ESP, while authentication without encryption is AH. Every host in the subnet means broadcast, only hosts that joined means multicast, and one shared address answered by the nearest server means anycast.
Scene 11 · 5:01
Recap: IP protocol and traffic types. To recap: the IP header's protocol field says what's inside. TCP, protocol six, is reliable, and UDP, seventeen, is fast. ICMP, protocol one, carries ping and error messages. GRE, forty-seven, builds tunnels without encryption. In IPsec, IKE sets up keys on UDP 500, AH authenticates, and ESP also encrypts. Unicast, broadcast, multicast and anycast describe who receives. Next: transmission media, from copper and fiber to wireless.
Sources and accuracy
Checked against the official CompTIA N10-009 exam objectives and the standards below on October 24, 2026. Diagrams and addresses in the animation are illustrative.
- CompTIA Network+ N10-009 exam objectives (objective 1.4)
- IANA Protocol Numbers registry
- RFC 4303: IP Encapsulating Security Payload (ESP)
- RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2)
- RFC 4291: IP Version 6 Addressing Architecture (unicast, anycast, multicast)
This free course is independent and isn't affiliated with or endorsed by CompTIA. CompTIA and Network+ are trademarks of CompTIA, Inc.
Preparing a team for Network+?
I run hands-on networking and cloud training for teams, built around your own environment and goals.