MODULE 11 - CERTIFICATION CYBER OPS ASSOCIATE Flashcards
Network Devices End Devices The network devices that people are most familiar with are end devices.
To distinguish one end device from another, each end device on a network has an address.
When an end device initiates communication, it uses the address of the destination end device to specify where to deliver the message.
An end device is either the source or destination of a message transmitted over the network.
Click Play in the figure to see an animation of data flowing through a network.
Routers Routers are devices that operate at the OSI network layer (Layer 3). As shown in the figure, routers are used to interconnect remote sites.
They use the process of routing to forward data packets between networks. The routing process uses network routing tables, protocols, and algorithms to determine the most efficient path for forwarding an IP packet.
Routers gather routing information and update other routers about changes in the network. Routers increase the scalability of networks by segmenting broadcast domains.
Routers are devices that operate at the OSI network layer (Layer 3).
As shown in the figure, routers are used to interconnect remote sites. They use the process of routing to forward data packets between networks.
The routing process uses network routing tables, protocols, and algorithms to determine the most efficient path for forwarding an IP packet.
Routers gather routing information and update other routers about changes in the network. Routers increase the scalability of networks by segmenting broadcast domains. The Router Connection :
https://snipboard.io/Dw8ErC.jpg
Routers have two primary functions: path determination and packet forwarding.
To perform path determination, each router builds and maintains a routing table which is a database of known networks and how to reach them.
The routing table can be built manually and contain static routes or can be built using a dynamic routing protocol.
Packet forwarding is accomplished by using a switching function.
Switching is the process used by a router to accept a packet on one interface and forward it out of another interface.
A primary responsibility of the switching function is to encapsulate packets in the appropriate data link frame type for the outgoing data link.
After the router has determined the exit interface using the path determination function, the router must encapsulate the packet into the data link frame of the outgoing interface.
What does a router do with a packet received from one network and destined for another network?
The router performs the following three major steps: 1. It de-encapsulates the Layer 2 frame header and trailer to expose the Layer 3 packet. 2.
It examines the destination IP address of the IP packet to find the best path in the routing table. 3.
If the router finds a path to the destination, it encapsulates the Layer 3 packet into a new Layer 2 frame and forwards that frame out the exit interface.
As shown in the figure, devices have Layer 3 IPv4 addresses, while Ethernet interfaces have Layer 2 data link addresses.
The MAC addresses are shortened to simplify the illustration. For example, PC1 is configured with IPv4 address 192.168.1.10 and an example MAC address of 0A-10. As a packet travels from the source device to the final destination device, the Layer 3 IP addresses do not change.
This is because the Layer 3 PDU does not change.
However, the Layer 2 data link addresses change at every router on the path to the destination, as the packet is de-encapsulated and re-encapsulated in a new Layer 2 frame.
Encapsulating and De-Encapsulating Packets
https://snipboard.io/90QHup.jpg
Packet Forwarding Decision Process
Now that the router has determined the best path for a packet based on the longest match, it must determine how to encapsulate the packet and forward it out the correct egress interface.
The figure explains how a router determines the best path to use to forward a packet.
https://snipboard.io/RIpyZs.jpg https://snipboard.io/H5EBDg.jpg
Click each button for a description of the three things a router can do with a packet after it has determined the best path. :
– Forwards the packet to a Device on a Directly Connected
– Forwards the packet to a next-Hop Router
– Drops the packet - No Match in Routing table
Click each button for a description of the three things a router can do with a packet after it has determined the best path. :
– Forwards the packet to a Device on a Directly Connected
– Forwards the packet to a next-Hop Router
– Drops the packet - No Match in Routing table
Forwards the packet to a Device on a Directly Connected :
Forwards the Packet to a Device on a Directly Connected
Network If the route entry indicates that the egress interface is a directly connected network, this means that the destination IP address of the packet belongs to a device on the directly connected network.
Therefore, the packet can be forwarded directly to the destination device.
The destination device is typically an end device on an Ethernet LAN, which means the packet must be encapsulated in an Ethernet frame.
Forwards the packet to a Device on a Directly Connected :
Forwards the Packet to a Device on a Directly Connected
Network If the route entry indicates that the egress interface is a directly connected network, this means that the destination IP address of the packet belongs to a device on the directly connected network.
Therefore, the packet can be forwarded directly to the destination device.
The destination device is typically an end device on an Ethernet LAN, which means the packet must be encapsulated in an Ethernet frame.
To encapsulate the packet in the Ethernet frame, the router needs to determine the destination MAC address associated with the destination IP address of the packet.
The process varies based on whether the packet is an IPv4 or IPv6 packet: :
– IPv4 packet
– IPv6 packet
To encapsulate the packet in the Ethernet frame, the router needs to determine the destination MAC address associated with the destination IP address of the packet.
The process varies based on whether the packet is an IPv4 or IPv6 packet: :
– IPv4 packet
– IPv6 packet
IPv4 packet :
The router checks its ARP table for the destination IPv4 address and an associated Ethernet MAC address.
If there is no match, the router sends an ARP Request.
The destination device will return an ARP Reply with its MAC address.
The router can now forward the IPv4 packet in an Ethernet frame with the proper destination MAC address.
To encapsulate the packet in the Ethernet frame, the router needs to determine the destination MAC address associated with the destination IP address of the packet.
The process varies based on whether the packet is an IPv4 or IPv6 packet: :
– IPv4 packet
– IPv6 packet
IPv6 packet :
The router checks its neighbor cache for the destination IPv6 address and an associated Ethernet MAC address.
If there is no match, the router sends an ICMPv6 Neighbor Solicitation (NS) message.
The destination device will return an ICMPv6 Neighbor Advertisement (NA) message with its MAC address.
The router can now forward the IPv6 packet in an Ethernet frame with the proper destination MAC address.
Click each button for a description of the three things a router can do with a packet after it has determined the best path. :
– Forwards the packet to a Device on a Directly Connected
– Forwards the packet to a next-Hop Router
– Drops the packet - No Match in Routing table
Forwards the packet to a next-Hop Router :
Forwards the Packet to a Next-Hop Router If the route entry indicates that the destination IP address is on a remote network, this means the destination IP address of the packet belongs to a device on network that is not directly connected.
Therefore, the packet must be forwarded to another router, specifically a next-hop router. The next-hop address is indicated in the route entry. If the forwarding router and the next-hop router are on an Ethernet network, a similar process (ARP and ICMPv6 Neighbor Discovery) will occur for determining the destination MAC address of the packet as described previously.
The difference is that the router will search for the IP address of the next-hop router in its ARP table or neighbor cache, instead of the destination IP address of the packet. Note: This process will vary for other types of Layer 2 networks.
Click each button for a description of the three things a router can do with a packet after it has determined the best path. :
– Forwards the packet to a Device on a Directly Connected
– Forwards the packet to a next-Hop Router
– Drops the packet
- No Match in Routing table
Drops the packet - No Match in Routing table :
Drops the Packet - No Match in Routing Table
If there is no match between the destination IP address and a prefix in the routing table, and if there is no default route, the packet will be dropped.
Routing Information The routing table of a router stores the following information:
– Directly connected routes
– Remote routes
Directly connected routes :
These routes come from the active router interfaces.
Routers add a directly connected route when an interface is configured with an IP address and is activated.
Routing Information
The routing table of a router stores the following information:
– Directly connected routes
– Remote routes
Remote routes :
These are remote networks connected to other routers.
Routes to these networks can either be statically configured or dynamically learned through dynamic routing protocols.
Specifically, a routing table is a data file in RAM that is used to store route information about directly connected and remote networks.
The routing table contains network or next hop associations. These associations tell a router that a particular destination can be optimally reached by sending the packet to a specific router that represents the next hop on the way to the final destination.
The next hop association can also be the outgoing or exit interface to the next destination.
The figure identifies the directly connected networks and remote networks of router R1. Directly Connected and Remote Network Routes
https://snipboard.io/x8EOTp.jpg
The destination network entries in the routing table can be added in several ways: :
– Local Route interfaces
– Directly connected interfaces
– Static routes
– Dynamic routing protocol
The destination network entries in the routing table can be added in several ways: :
– Local Route interfaces
– Directly connected interfaces
– Static routes
– Dynamic routing protocol
Local Route interfaces :
These are added when an interface is configured and active.
This entry is only displayed in IOS 15 or newer for IPv4 routes, and all IOS releases for IPv6 routes.
The destination network entries in the routing table can be added in several ways: :
– Local Route interfaces
– Directly connected interfaces
– Static routes
– Dynamic routing protocol
Directly connected interfaces :
These are added to the routing table when an interface is configured and active.
The destination network entries in the routing table can be added in several ways: :
– Local Route interfaces
– Directly connected interfaces
– Static routes
– Dynamic routing protocol
Static routes :
These are added when a route is manually configured and the exit interface is active.
The destination network entries in the routing table can be added in several ways: :
– Local Route interfaces
– Directly connected interfaces
– Static routes
– Dynamic routing protocol
Dynamic routing protocol :
This is added when routing protocols that dynamically learn about the network, such as EIGRP or OSPF, are implemented and networks are identified.
Dynamic routing protocols exchange network reachability information between routers and dynamically adapt to network changes.
Each routing protocol uses routing algorithms to determine the best paths between different segments in the network, and updates routing tables with these paths.
Dynamic routing protocols have been used in networks since the late 1980s. One of the first routing protocols was RIP. RIPv1 was released in 1988.
As networks evolved and became more complex, new routing protocols emerged. The RIP protocol was updated to RIPv2 to accommodate growth in the network environment. However, RIPv2 still does not scale to the larger network implementations of today.
To address the needs of larger networks, two advanced routing protocols were developed: Open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (IS-IS).
Cisco developed the Interior Gateway Routing Protocol (IGRP) and Enhanced IGRP (EIGRP), which also scales well in larger network implementations.
Additionally, there was the need to connect different internetworks and provide routing between them.
The Border Gateway Protocol (BGP) is now used between Internet Service Providers (ISPs).
BGP is also used between ISPs and their larger private clients to exchange routing information.
The table classifies the protocols. Routers configured with these protocols will periodically send messages to other routers.
As a cybersecurity analyst, you will see these messages in various logs and packet captures.
https://snipboard.io/bS6hXu.jpg
End-to-End Packet Forwarding The primary responsibility of the packet forwarding function is to encapsulate packets in the appropriate data link frame type for the outgoing interface.
For example, the data link frame format for a serial link could be Point-to-Point (PPP) protocol, High-Level Data Link Control (HDLC) protocol, or some other Layer 2 protocol.
Click each button and play the animations of PC1 sending a packet to PC2.
Notice how the contents and format of the data link frame change at each hop.
– PC1 Sends Packet to PC2
– R1 Forwards the Packet to PC2
– R2 Forwards the Packet to R3
– R3 Forwards the Packet to PC2
Click each button and play the animations of PC1 sending a packet to PC2.
Notice how the contents and format of the data link frame change at each hop.
– PC1 Sends Packet to PC2
– R1 Forwards the Packet to PC2
– R2 Forwards the Packet to R3
– R3 Forwards the Packet to PC2
PC1 Sends Packet to PC2 :
PC1 Sends Packet to PC2 In the first animation, PC1 sends a packet to PC2. Since PC2 is on a different network, PC1 will forward the packet to its default gateway.
PC1 will look in its ARP cache for the MAC address of the default gateway and add the indicated frame information.
Note: If an ARP entry does not exist in the ARP table for the default gateway of 192.168.1.1, PC1 sends an ARP request. Router R1 would then return an ARP reply with its MAC address.
Click each button and play the animations of PC1 sending a packet to PC2.
Notice how the contents and format of the data link frame change at each hop.
– PC1 Sends Packet to PC2
– R1 Forwards the Packet to PC2
– R2 Forwards the Packet to R3
– R3 Forwards the Packet to PC2
R1 Forwards the Packet to PC2 : R1 Forwards the Packet to PC2 R1 now forwards the packet to PC2.
Because the exit interface is on an Ethernet network, R1 must resolve the next-hop IPv4 address with a destination MAC address using its ARP table.
If an ARP entry does not exist in the ARP table for the next-hop interface of 192.168.2.2, R1 sends an ARP request. R2 would then return an ARP Reply.
Click each button and play the animations of PC1 sending a packet to PC2.
Notice how the contents and format of the data link frame change at each hop.
– PC1 Sends Packet to PC2
– R1 Forwards the Packet to PC2
– R2 Forwards the Packet to R3
– R3 Forwards the Packet to PC2
R2 Forwards the Packet to R3 : R2 Forwards the Packet to R3 R2 now forwards the packet to R3. Because the exit interface is not an Ethernet network, R2 does not have to resolve the next-hop IPv4 address with a destination MAC address.
When the interface is a point-to-point (P2P) serial connection, the router encapsulates the IPv4 packet into the proper data link frame format used by the exit interface (HDLC, PPP, etc.).
Because there are no MAC addresses on serial interfaces, R2 sets the data link destination address to an equivalent of a broadcast.