Network Layer Functions and Protocols

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following is a function of the network layer?

  • Ensuring data integrity
  • Data encryption and decryption
  • Session management
  • Path selection (correct)

What is the role of ICMP in the network layer?

  • Data segmentation
  • Traffic encryption
  • Address assignment
  • Error reporting (correct)

What does a VC number carry in a packet?

  • Destination address
  • Connection type
  • Source address
  • VC number (correct)

How is a VC number changed along a path?

<p>From the forwarding table of the router (D)</p> Signup and view all the answers

What characteristic distinguishes datagram networks from virtual circuit networks?

<p>They do not have a network-level concept of connection (D)</p> Signup and view all the answers

In the VC forwarding table, what does the 'Incoming interface' represent?

<p>The interface of the next hop router (D)</p> Signup and view all the answers

What type of information do VC routers maintain?

<p>Connection state information (D)</p> Signup and view all the answers

Which layer in the network model initiates the call for a virtual circuit?

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

What is the role of routers in datagram networks regarding connections?

<p>They have no state about end-to-end connections (D)</p> Signup and view all the answers

What does the NAT translation table maintain?

<p>Source IP address to NAT IP address translations (A)</p> Signup and view all the answers

How does a NAT router modify outgoing datagrams?

<p>It replaces the source address with the NAT IP and new port number (D)</p> Signup and view all the answers

What happens when incoming datagrams arrive at a NAT router?

<p>Their destination fields are replaced with stored source address and port (C)</p> Signup and view all the answers

Which of the following is NOT a function of a NAT router?

<p>Sending unmodified datagrams to the Internet (D)</p> Signup and view all the answers

What is stored in the NAT translation table for each pair?

<p>Source IP address and port number with corresponding NAT IP and port (C)</p> Signup and view all the answers

What is the primary function of a router in a network?

<p>Forwarding datagrams from incoming to outgoing links (B)</p> Signup and view all the answers

Which of the following describes 'smart' end systems?

<p>They can perform control and error recovery. (C)</p> Signup and view all the answers

What is a primary characteristic of traditional routers that use memory for switching?

<p>Direct control of CPU for packet processing. (C)</p> Signup and view all the answers

Which type of switching fabric is specifically designed to eliminate bandwidth limitations of a bus?

<p>Switching through an interconnection network (C)</p> Signup and view all the answers

What is the purpose of routing algorithms like RIP and OSPF in a router?

<p>To determine the optimal path for datagram forwarding (B)</p> Signup and view all the answers

What is meant by 'queueing' in the input port functions of a router?

<p>Managing packets arriving faster than the forwarding rate (B)</p> Signup and view all the answers

What does 'line speed' refer to in the context of input port processing?

<p>Maximum data transfer rate of the transmission line (C)</p> Signup and view all the answers

Which routing method is characterized by always sending data in a predestined manner without reevaluation?

<p>Distance vector routing (C)</p> Signup and view all the answers

Which of the following statements is true regarding 'dumb' end systems such as telephones?

<p>They rely on the network for most of the processing. (B)</p> Signup and view all the answers

What is the goal of a switching fabric within a router?

<p>To transfer packets from input buffer to output buffer efficiently (A)</p> Signup and view all the answers

What is an essential characteristic of devices within the same subnet?

<p>They can physically reach each other without an intervening router. (C)</p> Signup and view all the answers

What is the subnet mask indicated in the document?

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

What action is necessary to determine the subnets from a host or router?

<p>Detach each interface to create isolated networks. (B)</p> Signup and view all the answers

Which part of the IP address represents the subnet?

<p>High order bits (C)</p> Signup and view all the answers

What is another type of interface besides wired Ethernet mentioned?

<p>Wireless WiFi interfaces (C)</p> Signup and view all the answers

What does isolating networks create?

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

How is the subnet part of the IP address defined?

<p>By the first n bits specified in the subnet mask (B)</p> Signup and view all the answers

What defines a 'subnet' in networking?

<p>An isolated network segment with a common subnet part (B)</p> Signup and view all the answers

What does tunneling involve in the context of IPv6 and IPv4 networks?

<p>Carrying IPv6 datagrams as payloads in IPv4 datagrams (C)</p> Signup and view all the answers

What potential issue arises from the transition from IPv4 to IPv6?

<p>Mixed environments with both IPv4 and IPv6 routers (A)</p> Signup and view all the answers

Which statement regarding the adoption of IPv6 is true?

<p>Approximately 11% of US government routers are using IPv6 (A)</p> Signup and view all the answers

What is a characteristic difference between the logical and physical views of tunneling?

<p>The physical view represents the actual path taken by packets (D)</p> Signup and view all the answers

What is the significance of not having 'flag days' in the transition to IPv6?

<p>It implies that both IPv4 and IPv6 can operate concurrently (A)</p> Signup and view all the answers

In a mixed IPv4 and IPv6 environment, how are data packets transmitted between routers?

<p>IPv6 packets can be wrapped in IPv4 packets during transit (B)</p> Signup and view all the answers

What percentage of industry IP routers reportedly support IPv6 according to estimates?

<p>3% (D)</p> Signup and view all the answers

What does the logical view of a network typically represent?

<p>The flow of data between logical channels (B)</p> Signup and view all the answers

Flashcards

Virtual Circuit (VC)

A connection-oriented network service where a dedicated path is established between communicating hosts.

VC Number

A unique number assigned to each link along a virtual circuit path.

Forwarding Table

A table within routers that maps incoming VC numbers to outgoing interfaces and VC numbers.

Connection State Information

Data maintained by routers about the VC connections they are handling.

Signup and view all the flashcards

Signaling Protocols

Protocols used to set up, maintain, and tear down virtual circuits.

Signup and view all the flashcards

Datagram Networks

Network services that lack call setup at the network layer, where packets are forwarded using destination addresses.

Signup and view all the flashcards

Destination Host Address

Used to identify the final recipient of a packet in a datagram network.

Signup and view all the flashcards

Router Functions

Routers perform two key functions: running routing protocols (like RIP, OSPF, BGP) and forwarding datagrams from incoming to outgoing links.

Signup and view all the flashcards

Forwarding Table

A table used by routers to determine the output port for a given destination.

Signup and view all the flashcards

Input Port Functions

Input ports receive data, determine the appropriate output port, and queue incoming packets if necessary.

Signup and view all the flashcards

Switching Fabrics

Components that transfer packets from input to output ports at high speeds.

Signup and view all the flashcards

Switching via Memory

An older method where packets are copied to system memory before being sent to the output port.

Signup and view all the flashcards

Switching via Bus

Packets are transferred via a shared bus from input to output ports. Speed limited by bus bandwidth.

Signup and view all the flashcards

Switching via Interconnection Network

Advanced method overcoming bus bandwidth limitations. Using networks like banyan or crossbar.

Signup and view all the flashcards

Link State Routing

A routing algorithm where each router maintains a map of its neighbor routes and cost to other network nodes.

Signup and view all the flashcards

Distance Vector Routing

A routing algorithm where each router exchanges its knowledge of the costs of reaching other networks.

Signup and view all the flashcards

Hierarchical Routing

A routing strategy that organizes internet routers in a hierarchical structure for efficiency.

Signup and view all the flashcards

Subnet

A part of a larger network, isolated from other areas of the network and containing devices that can communicate with each other directly without an intervening router.

Signup and view all the flashcards

Subnet part of IP address

The higher-order bits of an IP address that identify the subnet to which a device belongs.

Signup and view all the flashcards

Host part of IP address

The lower-order bits of an IP address that distinguishes a particular device within a subnet.

Signup and view all the flashcards

Subnet Mask (/24)

A value used to separate the subnet part from the host part in an IP address. In '/24', the first 24 bits of an IP address represent the network or subnet address.

Signup and view all the flashcards

Devices on the same subnet?

Devices with the same subnet part of their IP address can communicate directly without an intervening router.

Signup and view all the flashcards

Creating Subnets?

Isolate devices to create independent networks by imagining the interfaces from their hosts/router, to isolate the network islands.

Signup and view all the flashcards

Network Layer

The network layer is responsible for routing data packets between networks.

Signup and view all the flashcards

Routing Protocols

Routing protocols are used by routers to find the best path for data packets.

Signup and view all the flashcards

IP Protocol

The Internet Protocol is used to address and route data packets.

Signup and view all the flashcards

Link State Routing

A routing algorithm where each router knows the entire topology of the network.

Signup and view all the flashcards

Distance Vector Routing

A routing algorithm where each router shares its knowledge of the network with its neighbors.

Signup and view all the flashcards

Hierarchical Routing

A routing approach that breaks down the network into smaller, hierarchical parts.

Signup and view all the flashcards

IP Datagram Format

The structure of an IP packet, defining its header and data.

Signup and view all the flashcards

IPv4 Addressing

The system used to assign unique addresses to devices on an IPv4 network.

Signup and view all the flashcards

ICMP Protocol

The Internet Control Message Protocol, used for error reporting and router signaling.

Signup and view all the flashcards

Transport Layer

Layer above the network layer, handling communication between applications.

Signup and view all the flashcards

NAT (Network Address Translation)

A method for translating private IP addresses to public IP addresses, allowing multiple devices on a private network to share a single public IP address.

Signup and view all the flashcards

NAT translation table

A table maintained by the NAT router that maps private IP addresses and ports to public IP addresses and ports.

Signup and view all the flashcards

Source IP address, port #

The unique identifier of the originating device and its communication channel.

Signup and view all the flashcards

NAT IP address, new port #

The public IP address and port number used by the NAT router to represent the internal device in communication over the public network.

Signup and view all the flashcards

Incoming Datagrams

Data packets arriving at the NAT router destined for a private network address.

Signup and view all the flashcards

Replacing Destination Addresses

NAT routers convert between public and private IP addresses and port numbers in every incoming packet.

Signup and view all the flashcards

Updating NAT Translation Table

NAT router records the source & destination IP & port to make translation easier.

Signup and view all the flashcards

Packet Too Big

A network issue where a multicast packet exceeds the size limits of the network.

Signup and view all the flashcards

Multicast Group Management

The functions involved in controlling the membership of multicast groups within a network.

Signup and view all the flashcards

IPv4 to IPv6 Transition

The process of upgrading a network from IPv4 to IPv6 addressing, considering the different routers.

Signup and view all the flashcards

No "flag days"

The approach of gradual IPv6 adoption, avoiding a single transition day to allow for mixed networks.

Signup and view all the flashcards

Tunneling (IPv6)

Method of encapsulating IPv6 packets within IPv4 packets to allow communication across a network with mixed IPv4 and IPv6 routers.

Signup and view all the flashcards

IPv4 Tunnel

A connection that carries IPv6 packets through an IPv4 network, providing a logical path between IPv6 routers.

Signup and view all the flashcards

Adoption Rate (IPv6)

The percentage of routers currently using IPv6 and their deployment timeline.

Signup and view all the flashcards

Study Notes

Chapter 4: Network Layer

  • Computer Networking: A Top-Down Approach (6th edition) by Jim Kurose and Keith Ross, Addison-Wesley, March 2012
  • Chapter Goals: Understand principles behind network layer services, including network layer service models, forwarding versus routing, how a router works, routing (path selection), broadcast, multicast, instantiation, and implementation in the Internet.

Chapter 4: Outline

  • 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

  • Transport Segment: Transports segments from sending to receiving host.
  • Encapsulation: Encapsulates segments into datagrams on sending side.
  • Delivery: Delivers segments to transport layer on receiving side.
  • Protocols: Network layer protocols operate in every host and router.
  • Header Fields: Routers examine header fields in all IP datagrams passing through.

Two Key Network Layer Functions

  • Forwarding: Moves packets from a router's input to the appropriate output port.
  • Routing: Determines the route taken by packets from source to destination.
  • Routing Algorithms: Used to determine routes.

Interplay Between Routing and Forwarding

  • Routing Algorithm: Determines the end-to-end path through the network.
  • Local Forwarding/Table: Determines the local forwarding at the router.

Connection Setup

  • Network layer connection services: Between two hosts (or potentially intervening routers in Virtual Circuits).
  • Transport Layer connection services: Between two processes.

Network Service Models

  • 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 to flow
    • Restrictions on changes in inter-packet spacing

Virtual Circuits

  • Analogy: Source-to-destination path behaves like a telephone circuit for performance and actions along that path.
  • Call Setup: Call setup/teardown for each call before data flows.
  • VC Identifier: Each packet carries a VC identifier (not destination host address).
  • State Maintenance: Every router maintains state for each passing connection on the source-destination path.
  • Resource Allocation: Link and router resources (bandwidth, buffers) may be allocated to VC (predictable service).

VC Implementation

  • VC path: Constitutes the path from source to destination.
  • VC numbers: Assigned one number for each link along the path (entries in forwarding tables).
  • Packet carrying VC number: Packet belonging to VC carries VC number (rather than dest address).
  • VC number changes: VC number can be changed on each link.
  • New VC number from forwarding tables: New VC number comes from forwarding tables.

VC Forwarding Table

  • Incoming interface: Interface the packet arrives on.
  • Incoming VC#: The VC number of the incoming packet.
  • Outgoing interface: Interface the packet leaves on.
  • Outgoing VC#: The VC number of the outgoing packet.

Virtual Circuits: Signaling Protocols

  • Used in: ATM, frame-relay, X.25.
  • Not Used in: Today's Internet.

Datagram Networks

  • No call setup: No call setup at network layer.
  • No state: No network-level concept of "connection."
  • Destination address: Packets are forwarded using destination host address.

Datagram Forwarding Table

  • Dest Address: Destination address or range of addresses.
  • Output link: Corresponding output link for the destination.

Longest Prefix Matching

  • Matching: When looking for a forwarding table entry, use the longest address prefix that matches destination address.

Datagram or VC Network: Why?

  • Internet (datagram): Data exchange among computers; "elastic" service, no strict timing; many link types; different characteristics; "smart" end systems (can adapt, perform control, error recovery).
  • ATM (VC): Evolved from telephony (human conversation); strict timing, reliability requirements; need for guaranteed service; "dumb" end systems (telephones); complexity inside network.

Router Architecture Overview

  • Routing algorithms/protocol : Run routing protocol (RIP, OSPF, BGP).
  • Forwarding datagrams: Forward datagrams from incoming to outgoing links.

Input Port Functions

  • Line termination: Bit-level reception.
  • Link Layer (receive): Link layer protocol receive.
  • Lookup/forwarding: Lookup forwarding, and queueing.
  • Switch fabric: Switch fabric acts as a connection point.
  • Decentralized switching: Given a datagram, look up output port using forwarding table.

Switching Fabrics

  • Packet transfer: Transfer packets from input buffer to appropriate output buffer.
  • Switching rate: Rate at which packets can transfer from inputs to outputs.
  • Types: Memory switching, bus switching, crossbar switching.

Switching via Memory

  • First-generation routers: Traditional computers with switching under direct control of CPU.
  • Packet Copying: Packet copied to system memory.
  • Speed limitation: Limited by memory bandwidth.

Switching via Bus

  • Datagram Transfer: Datagram is transferred from input port memory to output port memory via a shared bus.
  • Bus contention: Switching speed limited by the bus bandwidth.
  • Cisco 5600 example: 32 Gbps bus in Cisco 5600 is sufficient for access/enterprise routers.

Switching via Interconnection Network

  • Bus/Bandwidth Limitation issues: Overcome bus bandwidth limitations with banyan networks, crossbar, other interconnection networks.
  • Advanced design: Fragmenting datagram into fixed-length cells, switching cells through fabrics (e.g., Cisco 12000).

Output Ports

  • Buffering: Buffering is required from fabric faster rate.

  • Scheduling: Priority scheduling.

Output Port Queuing

  • Arrival rate: Buffering when arrival rate via switch exceeds output line speed.
  • Loss and delay: Queueing (delay) and loss due to the output port buffer overflow.

How Much Buffering?

  • RFC 3439: Average buffering is equal to typical RTT(say 250msec).
  • Capacity (C): Times link capacity C (e.g., 10 Gbps link: ~2.5 Gbit buffer).
  • Recommendation for many flows: With N flows, buffering equal to RTT.C / N

Input Port Queuing

  • Fabric slower: Fabric slower than input ports combined which can lead to queueing at input queues.
  • Delay/Loss: Queueing delay and loss due to input buffer overflow.
  • HOL blocking: Head-of-the-line blocking.

ICMP

  • Internet Control Message Protocol: Used for error reporting from hosts and routers.

IPv6: Motivation

  • Address space: 32-bit address space is shrinking.
  • Header format: Header format improvement for faster processing and QoS.

IPv6 Datagram Format

  • Priority and flow labels: Identifies priority and flow, respectively.
  • Fixed-length header: Fixed-length 40 byte header.
  • No fragmentation: No fragmentation (to avoid issues at lower levels/routers).

Other Changes from IPv4

  • Checksum removal: Processing time reduced through checksum removal.
  • Options: Options outside of the header, indicated by "Next Header" field in order to save space.
  • ICMPv6: Extensions to ICMP.
  • Message Types: New/Additional message types are added.

Transition from IPv4 to IPv6

  • Tunneling: IPv6 datagram carried as payload in an IPv4 datagram for transit between IPv4 and IPv6 routers.

IP Addressing

  • Introduction: IP addresses are identifiers for hosts and routers on an internet.
  • Interface: An interface is a connection between a host/router and a physical link.
  • Host/routers: Routers typically have multiple interfaces; Hosts typically has one or two interfaces (Wired/Wireless).

Subnets

  • IP address: High-order bits in subnet and low-order bits in host part.

  • What's a Subnet: A subnet is a set of interfaces with the same subnet part of the IP address.

  • Recipe: To determine subnets, detach each interface from its host and create islands of isolated networks.

IP Addressing: CIDR

  • Classless Inter-Domain Routing: Allows assigning arbitrary-length subnet portions of an IP address.
  • Format: Format is a.b.c.d/x where x is the number of bits in subnet portion of address.

IP Addresses: How to Get One?

  • Hard-coded: Hard-coded by system administrator.
  • DHCP: Dynamic Host Configuration Protocol: Dynamically obtain IP address from the server.

DHCP: Dynamic Host Configuration Protocol

  • Goal: Allows hosts to dynamically obtain IP addresses from a network server.
  • Lease renewal: Renew IP leases automatically.
  • Address reuse: Allows reuse of addresses when a device is no longer connected on the network.

DHCP Client-Server Scenario

  • Client's Request: Arriving DHCP client needing an address from the network.

DHCP: More than IP addresses

  • More Data: Provides more data beyond the IP address: first-hop router, DNS server, subnet mask.

NAT: Network Address Translation

  • Motivation: Local networks use one IP address to the outside world; range of addresses not needed; can change addresses without notifying outside world; can change ISPs.

  • Implementation: NAT router must translate addresses when packets are sent out or received by the router.

NAT Traversal Problem

  • External visibility: NATted devices are only visible externally through a single address.
  • Solution 1: Statically configure NAT to forward incoming connection requests at a given port to the server.

IPv6: Adoption

  • Estimates: US National Institutes of Standards estimate (2013) about ~3% of industry IP routers and ~11% of US government routers use IPv6.
  • Deployment and usage: Long periods for deployment and widespread usage.

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

More Like This

Use Quizgecko on...
Browser
Browser