Networking Concepts Quiz
40 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary function of the network layer?

  • To display data to the user.
  • To maintain user sessions.
  • To move packets from one router to another. (correct)
  • To handle data encryption.

What is the process of determining the route packets will take from source to destination called?

  • Encapsulation
  • Segmentation
  • Routing (correct)
  • Forwarding

In the context of datagrams, what does encapsulation refer to?

  • Storing data in the physical layer.
  • Removing headers from packets.
  • Displaying data to the application layer.
  • Adding headers to segments. (correct)

Which layer does the network layer primarily communicate with to send data to the receiving host?

<p>Transport layer (B)</p> Signup and view all the answers

What do routers primarily examine in IP datagrams?

<p>Header fields (C)</p> Signup and view all the answers

Which routing method involves sending data to multiple destinations simultaneously?

<p>Broadcast (C)</p> Signup and view all the answers

What does a BGP message contain in relation to routing?

<p>Prefixes and attributes like AS-PATH and NEXT-HOP (D)</p> Signup and view all the answers

When a router receives multiple routes for the same prefix, how does it determine which one to select?

<p>By selecting the route with the shortest AS-PATH (A)</p> Signup and view all the answers

What attribute of a route is used for finding the best intra-route to a BGP route?

<p>NEXT-HOP attribute (B)</p> Signup and view all the answers

In the case of a tie when selecting among routes with equal AS-PATH lengths, what should the router do?

<p>Use local preference to make a decision (A)</p> Signup and view all the answers

What does the NEXT-HOP attribute specify in a BGP route?

<p>The IP address of the router interface that begins the AS PATH (C)</p> Signup and view all the answers

What happens when the nth set of datagrams arrives at the nth router?

<p>The router discards datagrams and sends source ICMP messages. (C)</p> Signup and view all the answers

What does the ICMP message type 3, code 3 indicate?

<p>Port unreachable. (D)</p> Signup and view all the answers

What does the NAT translation table store?

<p>Both source IP address and port number to NAT IP address and new port number pairs (A)</p> Signup and view all the answers

What is the primary motivation for the development of IPv6?

<p>To resolve the exhaustion of 32-bit address space. (B)</p> Signup and view all the answers

What is the role of NAT when processing incoming datagrams?

<p>It replaces the NAT IP address with the corresponding source IP address from the NAT table (B)</p> Signup and view all the answers

What is a key feature of the IPv6 datagram format?

<p>It has a fixed-length 40 byte header. (A)</p> Signup and view all the answers

Which field is used to identify the upper layer protocol for data in an IPv6 datagram?

<p>Next header. (D)</p> Signup and view all the answers

How many simultaneous connections can a single LAN-side address support with a 16-bit port number field?

<p>60,000 (A)</p> Signup and view all the answers

What is the first step NAT takes in changing a datagram?

<p>Changing the source address from LAN-side to WAN-side (A)</p> Signup and view all the answers

What change was made to the checksum in IPv6 compared to IPv4?

<p>It was removed entirely. (C)</p> Signup and view all the answers

What is one function of ICMPv6 compared to ICMP in IPv4?

<p>It includes multicast group management functions. (D)</p> Signup and view all the answers

Which components does the NAT router add to the NAT translation table during a translation?

<p>Both source IP and port, and destination NAT IP and port (A)</p> Signup and view all the answers

When a reply arrives, what does the NAT router change in the datagram's destination address?

<p>It changes the NAT IP address to the corresponding source IP address (D)</p> Signup and view all the answers

What does the term 'mixed IPv4 and IPv6 routers' refer to?

<p>Some routers use IPv4 while others use IPv6. (C)</p> Signup and view all the answers

What is indicated by the priority field in an IPv6 datagram?

<p>The urgency of packet delivery. (B)</p> Signup and view all the answers

What is implied by the need to update the NAT translation table?

<p>Maintaining the state of each connection requires tracking (C)</p> Signup and view all the answers

What issue arises from not upgrading all routers to IPv6 at once?

<p>Challenges in network operation. (C)</p> Signup and view all the answers

What happens when an outgoing datagram is sent to a non-existent NAT IP address?

<p>The datagram is lost and not delivered (C)</p> Signup and view all the answers

What type of address does NAT replace in the destination fields upon receiving incoming datagrams?

<p>NAT IP address and new port number (B)</p> Signup and view all the answers

What does RIP stand for?

<p>Routing Information Protocol (C)</p> Signup and view all the answers

What is the maximum number of hops allowed in RIP?

<p>15 hops (A)</p> Signup and view all the answers

Which of the following is a feature of distance vector algorithms like RIP?

<p>Relies on advertisements sent out every 30 seconds (C)</p> Signup and view all the answers

Which routing protocol is classified as an interior gateway protocol (IGP)?

<p>Open Shortest Path First (OSPF) (B)</p> Signup and view all the answers

What is typically exchanged in RIP advertisements?

<p>Up to 25 destination subnets (A)</p> Signup and view all the answers

What kind of algorithm does RIP utilize for determining routes?

<p>Distance Vector Algorithm (C)</p> Signup and view all the answers

How often does RIP send out routing information to neighbors?

<p>Every 30 seconds (A)</p> Signup and view all the answers

What is meant by the term 'intra-AS routing'?

<p>Routing within a single autonomous system (C)</p> Signup and view all the answers

Which of the following is NOT a commonly used interior gateway protocol?

<p>BGP (B)</p> Signup and view all the answers

What metric does RIP primarily use to determine the 'cost' of a path?

<p>Number of hops (D)</p> Signup and view all the answers

Flashcards

Network Layer Service Models

Different ways the network layer handles data transmission, such as virtual circuits or datagram networks.

Forwarding

Moving network packets from an input port on a router to the appropriate output port.

Routing

Determining the path a packet takes from source to destination.

Router

A network device that forwards packets between networks based on network layer addresses.

Signup and view all the flashcards

IP Datagram Format

The structure of an Internet Protocol (IP) packet.

Signup and view all the flashcards

IPv4 Addressing

A method of assigning unique addresses to devices on the internet (using 32 bit addresses).

Signup and view all the flashcards

Routing Algorithms

Methods for computing optimal paths in a network, like link state or distance vector algorithms.

Signup and view all the flashcards

NAT Translation Table

A table maintained by a Network Address Translation (NAT) router that maps private IP addresses and ports to public IP addresses and ports.

Signup and view all the flashcards

NAT (Network Address Translation)

A method used to translate private IP addresses and ports to public ones, allowing multiple devices on a private network to share a single public IP address.

Signup and view all the flashcards

LAN (Local Area Network)

A network that interconnects computers and devices within a limited area such as a home, office, or school.

Signup and view all the flashcards

Private IP Address

An IP address used within a private network, not directly accessible from the public internet.

Signup and view all the flashcards

Public IP Address

An IP address assigned to a device and used for communication on the public internet.

Signup and view all the flashcards

Port Number

A 16-bit number used to identify specific applications or services running on a device.

Signup and view all the flashcards

NAT's Function During Incoming Datagram

NAT replaces the translated public IP and port in the incoming data packet with the corresponding private IP and port as stored in the NAT translation table.

Signup and view all the flashcards

NAT's Function During Outgoing Datagram

NAT replaces the private source IP and port in outgoing data packets with the corresponding public IP and port.

Signup and view all the flashcards

Simultaneous Connections with NAT

NAT supports a substantial amount of concurrent connections (60,000) using a single LAN-side address.

Signup and view all the flashcards

IPv6 Motivation

IPv6 was developed due to the limited 32-bit address space in IPv4, and to improve header processing for faster forwarding.

Signup and view all the flashcards

IPv6 Flow Label

Identifies datagrams in a particular 'flow' in IPv6.

Signup and view all the flashcards

IPv6 Next Header

Indicates which upper-layer protocol the incoming data belongs to.

Signup and view all the flashcards

IPv6 Hop Limit

A number specifying the maximum number of network hops a datagram can make before being discarded.

Signup and view all the flashcards

ICMPv6

New version of ICMP used in IPv6 networks.

Signup and view all the flashcards

Port Unreachable

ICMP message used when the destination port is unavailable.

Signup and view all the flashcards

IPv6 Address Length

128 bits long.

Signup and view all the flashcards

IPv6 Header checksum removed

Checksum removed from the IPv6 header for faster processing.

Signup and view all the flashcards

IPv6 options

Options allowed outside the header, indicated by "Next Header" field.

Signup and view all the flashcards

BGP Message Content

A BGP message carries 'routes' which contain a prefix and attributes like AS-PATH, NEXT-HOP, etc. It's like a package containing information about a destination and the best way to get there.

Signup and view all the flashcards

Multiple Routes for Same Prefix

A router can receive multiple BGP messages for the same network prefix, each with different paths (AS-PATHs) and next hops. Think of it as having multiple ways to reach the same destination.

Signup and view all the flashcards

Selecting the Best BGP Route

A router chooses the best route for a prefix based on the shortest AS-PATH (minimum number of Autonomous Systems to traverse).

Signup and view all the flashcards

AS-Path

The AS-PATH attribute lists the Autonomous Systems (AS) a route passes through. It's like the chain of companies responsible for transporting a package.

Signup and view all the flashcards

NEXT-HOP Attribute

The NEXT-HOP attribute indicates the address of the router interface that begins the path specified by the AS-PATH. It's like the address of the next driver who will transport the package.

Signup and view all the flashcards

Intra-AS Routing

Routing within an Autonomous System (AS), handled by interior gateway protocols (IGP).

Signup and view all the flashcards

RIP (Routing Information Protocol)

A distance vector routing protocol that uses hop count as its metric. It's commonly used in smaller networks.

Signup and view all the flashcards

Distance Vector Algorithm

A routing algorithm where each router maintains a table of distances (hops) to destinations, shared with neighbors.

Signup and view all the flashcards

RIP Advertisement

A message exchanged between RIP routers every 30 seconds, containing a list of up to 25 destination subnets and their distances.

Signup and view all the flashcards

RIP Hop Count

The number of routers a packet must traverse to reach its destination in RIP. The maximum is 15 hops.

Signup and view all the flashcards

RIP Routing Table

The table in a router that stores destination subnets, next hop router, and hop count for each destination.

Signup and view all the flashcards

OSPF (Open Shortest Path First)

A link-state routing protocol that calculates the shortest path to destinations based on link costs.

Signup and view all the flashcards

IGRP (Interior Gateway Routing Protocol)

A proprietary distance-vector routing protocol developed by Cisco.

Signup and view all the flashcards

Link State Routing Algorithm

A routing algorithm where routers share information about their directly connected neighbors and link costs.

Signup and view all the flashcards

Distance Vector Routing Algorithm

A routing algorithm where routers share their distance (hops) to destinations and the next hop router to reach them.

Signup and view all the flashcards

Study Notes

Introduction to Computer Networking

  • Chapter 4, Network Layer, 6th edition by Kurose and Ross, Addison-Wesley, March 2012
  • Note on use of slides: slides freely available for all users; Users are permitted to adapt and modify the slides but must cite the source and copyright of the slides.

Chapter 4: Network Layer

  • Chapter goals: understand principles behind network layer services, including network layer service models, forwarding and routing, how routers work, routing (path selection), broadcast, multicast, instantiation, and implementation in the Internet.
  • 4.1 Introduction
  • 4.2 Virtual Circuit and Datagram Networks
  • 4.3 What's inside a router
  • 4.4 IP: Internet Protocol
    • Datagram format
    • IPv4 addressing
    • ICMP
    • IPv6
  • 4.5 Routing Algorithms
    • Link state
    • Distance vector
    • Hierarchical routing
  • 4.6 Routing in the Internet
    • RIP
    • OSPF
    • BGP
  • 4.7 Broadcast and Multicast Routing

Network Layer Functions

  • Forwarding: moves packets from a router's input to the appropriate router output
  • Routing: determines the route taken by packets from source to destination
  • Routing Algorithms
  • Interplay between Routing and Forwarding: Routing algorithm determines the end-to-end path through the network, while the forwarding table determines local forwarding at the router
  • Connection Setup: 3rd important function in some network architectures (ATM, frame relay, X.25) involves routers establishing virtual connections before datagrams flow.
  • Network vs. Transport Layer Connection Service:
    • Network layer: between two hosts (may involve intervening routers in the case of virtual circuits)
    • Transport Layer: between two processes
  • Network Service Model:
    • Example services for individual datagrams: guaranteed delivery, guaranteed delivery with less than 40 msec delay
    • Example services for a flow of datagrams: in-order datagram delivery, guaranteed minimum bandwidth, restrictions on changes in inter-packet spacing
  • Virtual Circuits:
    • Behavior similar to a telephone circuit
    • Call setup and teardown for each call
    • Each packet carries a VC identifier (instead of destination address)
    • Routers maintain "state" for each passing connection
    • Dedicated resources are allocated to the VC for predictable service
  • Virtual Circuit Implementation:
    • Path from source to destination
    • VC numbers (one for each link along path)
    • Entries in forwarding tables in routers along the path
  • Datagram Networks:
    • No call setup at network layer
    • No network-level concept of a connection
    • Packets are forwarded using the destination host address
  • Datagram Forwarding Table:
    • To deal with the sheer number of IP addresses, use ranges rather than listing each individual IP.
  • Longest Prefix Matching:
    • Using IP destination address to find best matching in local forwarding table (longest prefix matching)
  • Datagram or VC Network: Why?
    • Internet (datagram): data exchange, elastic service, many link types
    • ATM (VC): evolved from telephony, strict timing, reliability, need for guaranteed service, dumb end systems
  • Router Architecture Overview:
    • two main functions: execute routing algorithms and forward datagrams from incoming to outgoing links
    • Has a routing processing and forwarding data plane
  • Input Port Functions:
    • Decentralized switching
    • Goal: complete input port processing at “line speed”
    • Queuing: for when datagrams arrive faster than forwarding rate into fabric
  • Switching Fabrics: memory, bus, crossbar
  • Three types: memory, bus, crossbar
  • Switching via Memory
  • Switching via a Bus
  • Switching via Interconnection Network
  • Output Ports:
    • Buffering required from fabric's speed to the output line.
    • Scheduling datagrams
  • Input Port Queuing
  • How much buffering? (RFC 3439) for links with typical RTT.
  • Interplay between routing and forwarding
  • Graph abstraction: utility for network contexts (e.g., P2P)
  • Graph Abstraction: costs of link(x,x')
  • Routing Algorithm Classification:
    • Global vs. Decentralized:
      • Global: all routers have complete topology, link cost info
      • Decentralized: routers know physically connected neighbors, link costs to neighbors. Iterative process exchanging information with neighbors.
    • Static vs. Dynamic:
      • Static: routes change slowly over time
      • Dynamic: routes change more quickly, have periodic updates, and in response to link cost changes
  • Dijkstra's Algorithm:
    • Notation: introducing variables for link cost, current value of cost, predecessor node.
    • Initialization: steps for initializing the algorithm
    • Loop: steps for iteratively finding shortest paths
  • Dijkstra's Algorithm: example with resulting shortest-path tree from u and forwarding table.
  • Dijkstra's Algorithm, discussion:
  • Distance Vector Algorithm
    • Bellman-Ford equation (dynamic programming)
    • Introducing cost of path from x-to-y
    • The node achieving minimum is the next hop used in forwarding table
  • Distance Vector Algorithm:
    • defining Dx(y) = estimate of least cost from x-to-y .
  • Distance Vector Algorithm: key idea
  • Distance vector algorithm, iterative, asynchronous with each node
  • Distance vector algorithm, distributed
  • Distance vector algorithm, link cost changes
  • Inter-AS routing protocols, and BGP
  • BGP: Border Gateway Protocol, the de facto inter-domain routing protocol, glue that holds the Internet together
  • BGP protocols
    • eBGP: to get subnet from neighboring ASs
    • iBGP: propagate info to all AS-internal routers
  • BGP route selection
  • Router may learn about more than one route to a destination AS; selects route based on 4 criteria: local preference attribute, shortest AS path, closest NEXT-HOP router, and other criteria.
  • BGP messages
  • Putting it Altogether: How Does an Entry Get Into a Router's Forwarding Table?
  • How does entry get in forwarding table?
  • Router identifies port for route
  • Hot Potato Routing
  • BGP Routing policy
  • Why different intra and Inter-AS routing?

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Chapter 4 Network Layer PDF

Description

Test your understanding of the network layer and routing protocols in this quiz. Explore important concepts such as encapsulation, BGP messages, and route selection. Perfect for students studying computer networking.

Use Quizgecko on...
Browser
Browser