1. Home
  2. Explore
  3. Computer Science
  4. IP Protocols and Traffic Types

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

IP Protocols and Traffic Types

Speaker 1Speaker 2

IP Protocols and Traffic Types

12:39
0:00-12:39
  1. Anna

    Welcome to our look at three important parts of the TCP/IP suite: GRE, IPsec, and ICMP. We’ll also sort out four ways network traffic can be addressed: unicast, broadcast, multicast, and anycast. Let’s begin with GRE, because it helps explain how a VPN tunnel can be built.

  2. Simon

    GRE stands for Generic Routing Encapsulation. It’s a tunneling protocol developed by Cisco that can encapsulate a wide range of network-layer protocols inside a virtual point-to-point connection. In practical terms, two endpoints can communicate across a public network as though they had a direct connection.

  3. Anna

    The key limitation is that GRE creates the tunnel, but it does not encrypt the traffic by itself. That’s why GRE is often used together with IPsec: GRE can carry different kinds of traffic, including multicast traffic, while IPsec provides security.

  4. Simon

    GRE adds overhead to each packet—about 24 bytes in the material we’re covering. If that overhead would reduce the useful payload, jumbo frames can help. A standard Ethernet MTU is typically 1,500 bytes, while jumbo frames can carry payloads up to around 9,000 bytes, depending on the hardware and configuration.

  5. Anna

    So the review question is: how can you help ensure GRE overhead doesn’t affect the payload when configuring a tunnel between two sites? The answer is jumbo frames. They allow a larger payload in each Ethernet frame, though the network equipment has to support them.

  6. Simon

    Now let’s connect that to VPNs. A virtual private network extends a private network across a public one, such as the internet, using a secure, encrypted connection. It lets a user send and receive data as if their device were directly connected to the private network.

  7. Anna

    A VPN tunnel is the protected pathway between your device and a VPN server. It shields traffic as it crosses the internet. A server you connect to can provide access to resources, or it can act as a jump box that lets you reach other servers or devices.

  8. Simon

    The main VPN functions include encryption of data in transit, privacy from an internet service provider and other observers, and remote access to private systems, such as a company network. VPNs can also help bypass censorship or geographic restrictions by masking the user’s IP address.

  9. Anna

    VPNs can run through specialized software or cryptographic hardware. One example of dedicated equipment is a VPN concentrator: a network device, similar in role to a specialized router or firewall, designed to handle many VPN connections at the same time. Organizations often use one so remote users can securely reach the corporate network.

  10. Simon

    Another deployment choice is an always-on VPN. Instead of requiring a person to connect and disconnect manually, it establishes and maintains the VPN automatically, often in response to a user login or a change in network state.

  11. Anna

    That makes access more seamless for remote work. When the computer is on and connected, the protected connection can also help make the device available for updates, software installations, and configuration changes. The central idea is that users don’t have to remember to manage the connection themselves.

  12. Simon

    VPNs can also be grouped by how they’re used. A remote-access VPN connects an individual user—say, an employee at home or on the road—to a private network. A site-to-site VPN instead connects two or more networks, such as company offices in different physical locations.

  13. Anna

    There are a few other categories in the material. An internet-based VPN provides secure internal access within an organization’s premises, while an extranet VPN gives external clients secure access to an organization’s network. A cloud VPN provides a secure connection involving a cloud-based network.

  14. Simon

    Cloud VPNs can be client-to-cloud, allowing remote workers to connect to a company’s cloud network, or network-to-cloud, connecting different cloud environments. SSL VPNs use SSL or TLS encryption to make a secure tunnel over the internet and often don’t require specialized client software.

  15. Anna

    And a double VPN routes traffic through two separate VPN servers. Some providers offer this to add another layer of privacy and security, making it harder to track a user’s location or activity. With those VPN uses in mind, let’s look at the security framework that can protect IP traffic: IPsec.

  16. Simon

    IPsec, or Internet Protocol Security, is a suite of protocols for securing communications over IP networks. It operates at Layer 3, the network layer, and can provide authentication, data integrity, and confidentiality. That makes it a key technology for VPNs, but it can also secure communications between devices or across networks, including local networks and SD-WANs.

  17. Anna

    IPsec can encrypt application-layer data, protect routing information sent across the public internet, authenticate a sender without encrypting the data, or create a tunnel in which traffic between two endpoints is encrypted. The exact protection depends on which IPsec protocols and mode are used.

  18. Simon

    IPsec has two modes. Transport mode is used for end-to-end communication, such as between a client and a server. It protects the packet’s payload while leaving the original IP header unchanged.

  19. Anna

    Tunnel mode is commonly used between servers, gateways, or networks. It creates a virtual path between endpoints, and the entire original packet is protected inside the tunnel. You can think of it as a gateway-to-gateway protected route, rather than protection limited to the endpoints’ original packet contents.

  20. Simon

    The two IPsec protocols to recognize are ESP and AH. ESP stands for Encapsulating Security Payload. It can provide encryption, confidentiality, data integrity, authentication, and anti-replay protection, so it’s commonly used when the payload needs to be kept secret.

  21. Anna

    AH, or Authentication Header, provides integrity, authentication, and anti-replay protection, but it does not encrypt the data. That means it does not provide confidentiality, and it is rarely used. If a question asks which IPsec protocol encrypts transmitted data, the answer is ESP.

  22. Simon

    ESP and AH can be combined. Together, they can provide authentication, integrity, and anti-replay protection for the packet, while ESP supplies confidentiality for the payload. In either case, authentication helps establish where a packet came from, and integrity helps reveal whether it was changed, tampered with, or corrupted.

  23. Anna

    For the strongest protection across an end-to-end connection, the lesson highlights AH plus ESP in transport mode. For protection from gateway to gateway, it highlights AH plus ESP in tunnel mode. The important distinction is where the protected path begins and ends—not just the protocol names.

  24. Simon

    IPsec also needs a way for the two sides to agree on how they’ll communicate securely. That agreement is called a Security Association, or SA. It defines parameters such as the encryption and authentication algorithms to use.

  25. Anna

    An IPsec SA is unidirectional: it describes traffic flowing in one direction. So a bidirectional connection needs a pair of IPsec SAs—one for sending and one for receiving. There are also two roles to distinguish: the IKE SA secures the negotiation, while the IPsec SAs provide the actual data protection for the tunnel.

  26. Simon

    ISAKMP—the Internet Security Association and Key Management Protocol—provides a general structure for managing SAs and exchanging keys. It defines procedures and formats for establishing, negotiating, modifying, and deleting those security agreements.

  27. Anna

    IKE, or Internet Key Exchange, is the protocol that carries out the key-exchange process and helps build the secure associations. It negotiates policies and algorithms, establishes mutual authentication so peers can verify one another, and exchanges cryptographic keys.

  28. Simon

    IKE version 2 is the preferred choice in the material because of improvements in speed, security, and efficiency. It uses Diffie–Hellman key exchange: each side uses exchanged public keys and its own private key to calculate a shared secret. The private keys themselves are not sent across the network.

  29. Anna

    A useful memory aid is that ISAKMP defines the structure—the what—while IKE defines how the key exchange is carried out. The material also cautions against confusing IPsec IKE version 2 with Microsoft’s implementation based on it.

  30. Simon

    That Microsoft implementation is described as supporting features such as Active Directory, smart cards, and Azure AD extensions, along with always-on VPN and automatic connection. It can also allow a mobile device to move between networks while maintaining connectivity, and supports multiple simultaneous points of attachment.

  31. Anna

    Let’s walk through the IPsec setup sequence. First, IKE Phase 1 negotiates a Security Association and creates an IKE SA, establishing a secure channel between the peers. IKE uses UDP port 500.

  32. Simon

    Second, in IKE Phase 2, the peers negotiate the parameters for protecting the data. They establish IPsec SAs—one for each direction—choose ESP and/or AH, and agree on keys and cryptographic settings.

  33. Anna

    Third comes the information exchange through the IPsec tunnel, using the selected protocol or protocols and the chosen mode, transport or tunnel. Fourth, the IPsec SAs eventually expire based on time or data volume, so IKE negotiates new keys and SAs when needed.

  34. Simon

    And fifth, the IPsec tunnel is terminated. That sequence is a helpful way to organize the details: negotiate the secure control channel, set up data protection, exchange information, rekey when necessary, and finally end the tunnel.

  35. Anna

    Our third protocol is ICMP, the Internet Control Message Protocol. Network devices such as routers and firewalls use it for diagnostics, error reporting, and operational information about problems with data transmission.

  36. Simon

    When you run Ping or Traceroute, you’re using ICMP packets to assess connectivity, latency, and routing information. So if the question is, ‘What protocol does Ping use?’ the answer is ICMP.

  37. Anna

    Now for traffic types. Unicast is one-to-one: one host sends directly to another host. Connecting to a single server or pinging one server are examples.

  38. Simon

    Broadcast is one-to-all: one host sends information to all nodes at once, like an announcement over a public-address system. Broadcast traffic typically does not pass through routers.

  39. Anna

    Multicast is one-to-many: one host sends to many hosts simultaneously. IGMP, the Internet Group Management Protocol, is associated with multicast. The material gives IPTV, real-time streaming media, and video conferencing as uses.

  40. Simon

    Anycast is one-to-one-of-many. A single IP address is available at multiple locations, and the network routes a request to the nearest or otherwise most optimal host, considering factors such as routing cost, distance, latency, or congestion.

  41. Anna

    That can support load balancing and high availability, while reducing latency for users in different places. For example, if a DNS lookup should reach the closest server and then use the next closest if needed, the address type to think of is anycast.

  42. Simon

    Let’s finish with a quick review. GRE can carry different network-layer protocols through a tunnel, but it has no built-in encryption; jumbo frames can help accommodate its overhead. For secure site-to-site connectivity, IPsec is the key answer.

  43. Anna

    For the IPsec protocol that encrypts data, choose ESP. For Ping, choose ICMP. One host talking directly to one other host is unicast, while sending to all nodes is broadcast and sending to a group is multicast.

  44. Simon

    And when one IP address is served from multiple locations, with the network selecting the nearest or most suitable destination, that’s anycast. Those distinctions bring together the core ideas: tunneling, security, diagnostics, and how packets are addressed.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent