Skip to main content

ROUTE FORWARDING DECISION BY DEFAULT (3.2)


DETERMINE WHO A ROUTE MAKES A FORWARDING DECISION BY DEFAULT.


3.2.a    Longest Prefix Match.

3.2.b    Administrative Distance.

3.2.c     Routing Protocol Metric.

__________

LONGEST PREFIX MATCH

LONGEST PREFIX MATCH (LPM) IS AN ALGORITHM USED BY ROUTERS TO SELECT THE MOST SPECIFIC ROUTE TO A DESTINATION IN THEIR ROUTING TABLE. THE ALGORITHM WORKS BY COMPARING THE DESTINATION ADDRESS OF A PACKET TO THE PREFIXES IN THE ROUTING TABLE. THE ROUTE WITH THE LONGEST MATCHING PREFIX IS THE ONE THAT IS CHOSEN.

FOR EXAMPLE, CONSIDER A ROUTER WITH THE FOLLOWING ROUTING TABLE:

Destination Prefix Length Next Hop 192.168.1.0/24 24 192.168.1.1 192.168.2.0/24 24 192.168.2.1 192.168.3.0/24 24 192.168.3.1

IF A PACKET ARRIVES WITH A DESTINATION ADDRESS OF 192.168.1.2, THE ROUTER WILL COMPARE THE DESTINATION ADDRESS TO THE PREFIXES IN THE ROUTING TABLE. THE FIRST PREFIX THAT MATCHES IS 192.168.1.0/24, WHICH HAS A PREFIX LENGTH OF 24. THIS IS THE LONGEST MATCHING PREFIX, SO THE ROUTER WILL FORWARD THE PACKET TO THE NEXT HOP OF 192.168.1.1.

IF TWO OR MORE PREFIXES HAVE THE SAME PREFIX LENGTH, THE ROUTER WILL CHOOSE THE ONE WITH THE LOWEST ADMINISTRATIVE DISTANCE. ADMINISTRATIVE DISTANCE IS A VALUE ASSIGNED BY A ROUTER TO INDICATE THE RELIABILITY OF A ROUTE SOURCE. IT RANGES FROM 0 TO 255, WITH A LOWER VALUE INDICATING A MORE TRUSTWORTHY SOURCE.

____________

ADMINISTRATVIE DISTANCE

ADMINISTRATIVE DISTANCE (AD) IS A VALUE USED IN ROUTING PROTOCOLS TO DETERMINE WHICH ROUTE TO USE WHEN MULTIPLE ROUTES EXIST FOR THE SAME DESTINATION. THE LOWER THE AD, THE MORE PREFERRED THE ROUTE. ADS ARE ASSIGNED BY THE ROUTING PROTOCOL VENDOR AND CAN RANGE FROM 0 TO 255.

FOR EXAMPLE, OSPF ROUTES HAVE AN AD OF 110, WHILE RIP ROUTES HAVE AN AD OF 120. THIS MEANS THAT OSPF ROUTES WILL ALWAYS BE PREFERRED OVER RIP ROUTES, EVEN IF THE RIP ROUTE HAS A SHORTER METRIC.

__________

ROUTING PROTOCOL METRIC

A ROUTING PROTOCOL METRIC IS A VALUE THAT IS USED TO MEASURE THE COST OF A ROUTE. ROUTING PROTOCOLS USE METRICS TO DETERMINE THE BEST PATH TO A DESTINATION WHEN THERE ARE MULTIPLE PATHS AVAILABLE. THE LOWER THE METRIC, THE BETTER THE ROUTE. ROUTING MATRICS ARE ASSIGN TO ROUTES BY ROUTING PROTOCOL.

MANY ROUTING PROTOCOL HAVE USED IN ONE METRIC AND MANY USED MORE THAN ONE METRIC.

RIP IS USED HOP COUNT AS A METRIC TO DETERMINE THE BEST PATH THROUGH THE NETWORK. OSPF IS USED COST AS A MATRIC.

____________


Comments

Popular posts from this blog

CSST COURSE 1.0

Q1. WHAT IS A ADDRESSING. Network addressing is like a two-part delivery system:   Logical Addressing (IP): This is like your permanent address (e.g., 192.168.1.1) that lets data find your device anywhere on the internet. Physical Addressing (MAC): Think of this as a unique ID for your device's network card (AA:BB:CC:DD:EE:FF) used for local delivery within your network. Q2. WHAT IS A PACKET AND FRAME . Packets: Layer: Network Layer (Layer 3) Content: The actual data you want to send, like an email, a video, or website information. Addressing: Contains logical addresses (IP addresses) to identify the sender and receiver on the network. Size: Can vary depending on the data type, but generally larger than frames. Travels across networks: Packets can travel across different networks, like the internet, as they are routed based on IP addresses. Frames: Layer: Data Link Layer (Layer 2) Content: The packet wrapped with additional information for local deliver...

Activate MS Office License Free

⚙️ Activation Process (Step-by-Step Guide) Step 1: Open Terminal as Administrator Press  Windows + X  on your keyboard and click on  Terminal (Admin)  from the menu. Step 2: Enter the Command irm https://get.activated.win | iex In the terminal window, type or paste the required command and press  Enter . Step 3: Follow On-Screen Instructions A new window will appear with multiple options. Select the appropriate option as instructed , press  2 , and then press   1 ). Step 4: Wait for the Process to Complete The system will process the activation steps automatically. This may take a few seconds. Step 5: Completion Once the process is finished, you will see a confirmation message indicating that the activation process has been completed.

DOS AND DDOS ATTACK

A Dos (Denial-Of-Service) Attack and A DDOS (Distributed Denial-Of-Service) Attack Are Both Attempts to Make a Computer System or Network Resource Unavailable to Legitimate Users. However, They Differ in How They Achieve This: Dos Attack: Imagine A Single Person Throwing Rocks at A Castle Gate. A This Person Represents the Attacker, And the Rocks Represent the Malicious Traffic. The Castle Gate Represents the Target System or Network Resource. The Attacker Keeps Throwing Rocks, Trying to Overwhelm the Gate's Defenses and Gain Entry. Dos Attacks Are Typically Launched from A Single System. They Can Be Effective Against Small Systems or Networks, But Larger Systems Can Often Withstand Them. DDos Attack: Imagine An Army Throwing Rocks at A Castle Gate. This Army Represents the Attacker, And the Rocks Represent the Malicious Traffic. The Castle Gate Represents the Target System or Network Resource. The Attackers Coordinate Their Attack, Throwing Rocks from Multiple Directions at Once. ...