Network Layer Functions & IP

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 layer is responsible for host-to-host packet delivery?

  • Transport Layer
  • Network Layer (correct)
  • Physical Layer
  • Data Link Layer

What is the primary function of forwarding in the network layer?

  • Ensuring reliable delivery of packets.
  • Moving packets from a router's input link to the appropriate output link. (correct)
  • Encrypting packets for secure transmission.
  • Determining the route taken by packets from source to destination.

In the context of network layer functions, what is the role of routing?

  • To move packets from the input port to the output port within a router.
  • To ensure error-free transmission of data.
  • To encapsulate data into packets.
  • To determine the path a packet should take from source to destination. (correct)

Which of the following functions is associated with the data plane?

<p>Local, per-router function (B)</p> Signup and view all the answers

Which function is performed by the control plane in network architecture?

<p>Determining how datagrams are routed along the end-to-end path. (B)</p> Signup and view all the answers

Which of the following components is NOT typically found in a router?

<p>Graphics Processing Unit (GPU) (B)</p> Signup and view all the answers

What is the function of the 'header checksum' field in an IPv4 datagram?

<p>To verify the integrity of the header fields (C)</p> Signup and view all the answers

Within an IPv4 header, what is the purpose of the TTL (Time To Live) field?

<p>To limit the number of hops a datagram can take, preventing infinite loops. (D)</p> Signup and view all the answers

What is the significance of an IP address?

<p>It is a 32-bit identifier associated with each host or router interface. (D)</p> Signup and view all the answers

In IPv4 addressing, what does the term 'interface' refer to?

<p>The connection between a host/router and a physical link. (D)</p> Signup and view all the answers

Why is an IPv4 address considered hierarchical?

<p>Because it is composed of a network portion and a host portion. (D)</p> Signup and view all the answers

What is the purpose of a subnet mask in IPv4 addressing?

<p>To identify the network and host portions of an IP address. (A)</p> Signup and view all the answers

What is a key characteristic of devices within the same subnet?

<p>They can physically reach each other without passing through a router. (A)</p> Signup and view all the answers

What distinguishes CIDR (Classless Inter-Domain Routing) from traditional IP addressing?

<p>CIDR allows subnet portions of arbitrary length, while traditional addressing is classful. (B)</p> Signup and view all the answers

Which of the following describes the primary goal of subnetting?

<p>To divide a network into smaller, more manageable networks. (B)</p> Signup and view all the answers

In Fixed Length Subnet Masking (FLSM), what is a defining characteristic?

<p>Every subnet has the same subnet mask, resulting in equally sized subnets. (D)</p> Signup and view all the answers

What is one of the key advantages of using DHCP (Dynamic Host Configuration Protocol)?

<p>It dynamically assigns IP addresses, reducing configuration efforts. (B)</p> Signup and view all the answers

What does a DHCP server provide to a client during the IP address allocation process?

<p>IP address, subnet mask, default gateway, and DNS server addresses. (A)</p> Signup and view all the answers

Which of the following best describes the role of ICMP (Internet Control Message Protocol)?

<p>Providing error reporting and network-level information. (C)</p> Signup and view all the answers

What is a key motivation behind the development and adoption of IPv6?

<p>To resolve the limitations of IPv4, such as address depletion. (C)</p> Signup and view all the answers

Which address class does the IP address 150.50.23.10 belong to?

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

What is the default subnet mask for a Class C network?

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

Which of the following is a characteristic of a connectionless protocol, such as IP?

<p>No dedicated end-to-end connection is created before data is sent. (C)</p> Signup and view all the answers

What does it mean that IP (Internet Protocol) is a 'Best Effort Delivery' protocol?

<p>It makes every effort to deliver packets, but does not guarantee delivery. (A)</p> Signup and view all the answers

What is the role of the fragment offset field in the IPv4 header?

<p>To help reassemble fragmented datagrams in the correct order. (B)</p> Signup and view all the answers

Why might a large IP datagram be fragmented?

<p>To comply with the MTU (Maximum Transfer Unit) of a network link. (C)</p> Signup and view all the answers

What is the significance of dotted-decimal notation in IP addressing?

<p>It is a human-readable format for representing a 32-bit IP address. (D)</p> Signup and view all the answers

Consider the IP address 192.168.1.0/24. What part of this notation signifies the network address?

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

In the IP address 192.168.1.0/24, what does '/24' represent?

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

What is the network address for the IP address 192.168.1.182/24?

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

What is the broadcast address for the IP address 192.168.1.182/24?

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

Regarding IPv4 communication, what is a unicast?

<p>Communication from one source to one destination. (D)</p> Signup and view all the answers

What type of IPv4 communication involves transmitting data from one source to all possible destinations on a network?

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

What is a key characteristic of multicast IPv4 communication?

<p>Data is sent only to a specific group of devices. (B)</p> Signup and view all the answers

Where does the Router examine header fields in all IP datagrams?

<p>Every Internet Device (D)</p> Signup and view all the answers

What function does the router provide?

<p>Moves datagrams from input ports to output ports to transfer datagrams along end-end path (A)</p> Signup and view all the answers

Why IP is considered unreliable?

<p>It does not guarantee to receive all packets although all packets will be send. (D)</p> Signup and view all the answers

Which is an advantage of the IPv6 protocol?

<p>Header format helps speed processing/forwarding (B)</p> Signup and view all the answers

How does NAT (Network Address Translation) typically handle the IP address for datagrams leaving a local network?

<p>Replaces the source IP address with a single, same source NAT IP address. (B)</p> Signup and view all the answers

What is the maximum IPv4 datagram size?

<p>64K bytes (B)</p> Signup and view all the answers

Flashcards

What is Forwarding?

A network layer function responsible for moving packets from a router's input to the appropriate output link.

What is Routing?

A network layer function that determines the route taken by packets from their source to their destination.

What is the Data Plane?

The component of a router that handles packet forwarding, operating at a local, per-router level.

What is the Control Plane?

The component of a router that handles network-wide logic.

Signup and view all the flashcards

What does the sender do?

It encapsulates segments into datagrams and passes them to the link layer.

Signup and view all the flashcards

What does the receiver do?

It delivers segments to the transport layer protocol.

Signup and view all the flashcards

What is MTU?

The largest possible link-level frame that a network link can handle.

Signup and view all the flashcards

What is IP Fragmentation?

Breaking down a large IP datagram into smaller fragments to fit the MTU of network links.

Signup and view all the flashcards

What is an IP address?

A 32-bit identifier associated with each host or router interface.

Signup and view all the flashcards

What is an Interface?

A connection between a host/router and a physical link.

Signup and view all the flashcards

What is a binary numbering system?

A system consisting of the numbers 0 and 1.

Signup and view all the flashcards

What is the network portion?

The portion of an IP address that identifies the specific network to which the device belongs.

Signup and view all the flashcards

What is the host portion?

The part of an IP address that specifies a particular device within a network.

Signup and view all the flashcards

What is a subnet mask?

A mask used to identify the network and host portions of an IPv4 address.

Signup and view all the flashcards

What's a Subnet?

A portion of a network where devices can directly reach each other without needing an intervening router.

Signup and view all the flashcards

What is Network Address?

A class of IP address where host portion is all 0s (.00000000).

Signup and view all the flashcards

What is Broadcast Address?

A class of IP address where host portion is all Is(.)

Signup and view all the flashcards

What is CIDR?

A shorthand method of expressing the subnet mask

Signup and view all the flashcards

What is subnetting?

The process of obtaining additional bits from the host portion of the network to further divide the network into smaller subnetworks.

Signup and view all the flashcards

What is Fixed Length Subnet Mask?

Each of your networks within your infrastructure is the same size.

Signup and view all the flashcards

What is DHCP?

An automatic method for hosts to dynamically obtain their IP address from a network server.

Signup and view all the flashcards

What is Unicast?

An IP communication type; one-to-one communication.

Signup and view all the flashcards

What is Broadcast?

An IP communication type; one-to-all communication.

Signup and view all the flashcards

What is Multicast?

An IP communication type; one to a select group.

Signup and view all the flashcards

What is ICMP?

A protocol used by hosts and routers to communicate network-level information, error reporting, and echo requests.

Signup and view all the flashcards

What is IPv6?

It has a larger 128-bit address space and solves limitations with IPv4.

Signup and view all the flashcards

What do you do to reduce or compress IPv6?

Omit leading zeros in any segment and omit all 0 Segments.

Signup and view all the flashcards

What is Priority and Flow Label?

Identify priority among datagrams in flow and datagrams in same flow.

Signup and view all the flashcards

What is IPv6 motivation?

A process that uses header format to help speed processing/forwarding.

Signup and view all the flashcards

Study Notes

Network Layer Functions

  • Network layer crucial for forwarding and routing data.
  • Forwarding moves packets from a router's input to the appropriate output link.
  • Routing determines the path packets take from source to destination.

IP - Internet Protocol

  • Internet Protocol (IP) includes IPv4 & IPv6 datagram formats, addressing, DHCP, ICMP, NAT
  • Primary responsibility: Supervises host-to-host packet delivery.
  • Transport layer is process-to-process.
  • Data link layer is node-to-node.
  • Involves transporting segments from a sending host to a receiving host.
  • The sender encapsulates segments into datagrams, which are then passed to the link layer.
  • The receiver delivers segments to the transport layer protocol.
  • Network layer protocols are implemented in every Internet device including hosts and routers.
  • Routers examine header fields in IP datagrams and move datagrams from input to output ports.
  • Data Plane: Local, per-router function that forwards datagrams based on destination.
  • Control Plane: Network-wide logic determining how datagrams are routed end-to-end.
  • Routers are specialized computers with CPU, OS and memory that handle packet forwarding.

IP Protocol

  • Path selection algorithms are implemented via routing protocols.
  • The IP protocol handles datagram formatting, addressing and packet handling conventions.
  • ICMP handles error reporting and router signaling.
  • It is a connectionless protocol, requiring no dedicated end-to-end connection setup.
  • Senders do not get confirmation about the destination's status or reachability.
  • IP provides best effort delivery, but does not guarantee packet delivery.
  • It is media independent, working across various types of media.

Fragmentation

  • Network links have a Maximum Transmission Unit (MTU) which is the largest possible link-level frame.
  • Different link types have different MTUs.
  • Large IP datagrams are divided into smaller "fragments" within the network.
  • One datagram can become several datagrams after fragmentation.
  • Fragments are reassembled, at final destination.
  • IP header bits are used to identify and order related fragments.

IPv4 Datagrams

  • IPv4 datagram contains a 32-bit IP address.
  • Consists of fields that indicate version,header length and type of service.
  • Holds 16-bit identifier and the fragmentation offset.
  • Contains TTL (remaining max hops) & upper layer protocol.
  • Has header checksum.
  • Includes 32-bit source and destination IP addresses.
  • Includes options and payload, variable length.
  • Overhead of 20 bytes for TCP and 20 bytes for IP.

IPv4 Addresses

  • A 32-bit identifier associated with each host or router interface.
  • An interface is the connection between host/router and physical link.
  • Routers typically have multiple interfaces.
  • Hosts typically have 1-2 interfaces.
  • IPv4 addresses are expressed in 32 binary bits, divided into four 8-bit octets.
  • IPv4 addresses follow a hierarchical structure with network and host portions.
  • Devices on the same network must have identical network portions.

IPv4 Addressing Classes

  • Several classes, each defining range of first octet & network/host division
  • Class A: 1-126 first octet (0/127 is reserved).
  • Class B: 128-191.
  • Class C: 192-223.
  • Class D: 224-239.
  • Class E: 240-254 (255 is reserved).

Subnet Mask

  • Identifies the network/host portion of the IPv4 address.

Subnets

  • A subnet consists of device interfaces that can reach each other without passing through an intervening router.
  • IP addresses have structure, consisting of a subnet part and a host part.
  • Devices in the same subnet have common high order bits in their IP addresses.
  • The host part consists of the remaining lower order bits in the IP Address

IPv4 Address Types

  • Types in network 192.168.10.0/24 include network address, host address, broadcast address.
  • Network address has all 0s in host portion.
  • First host address has all 0s, ends in a 1.
  • Last host address has all 1s, ends in a 0.
  • Broadcast address has all 1s in host portion.

IPv4 Addressing: CIDR

  • CIDR (Classless Inter-Domain Routing) is based on prefix length and is the subnet portion of the arbitrary length address.
  • Shorthand method of expressing the subnet mask.
  • Address format is in the form a.b.c.d/x, where x is the number of bits in the subnet portion of address.

Subnetting

  • Subnetting or subnet-working
  • The process of obtaining additional bits from the left most or the most significant bits of the Host portion of the network to further divide the network into smaller subnetworks
  • Used to conserve the number of IP Addresses available and decrease the unused IP Addresses of networks with few hosts in relation to the IP Address range
  • Fixed Length Subnet Masking
  • Variable Length Subnet Masking

Fixed length subnet mask

  • Strategy where every network within infrastructure has same size

FLSM example

  • Example of Fixed Lenght Subnet Mask
  • MSB = most significant bit LSB= least significant bit

Network and Broadcast Address

  • For IP address 192.168.1.182/24, to check network address, perform AND operation to subnet mask.
  • Network address would be 192.168.1.0.
  • Check its broadcast address, perform OR operation to its subnet mask (flip).
  • Broadcast address is 192.168.1.255.

IPv4 Communication

  • Unicast is one-to-one communication.
  • Broadcast is one-to-all communication.
  • Multicast is one-to-select group

DHCP

  • DHCP (Dynamic Host Configuration Protocol) dynamically assigns IP addresses from a network server when a host joins a network.
  • The joining host can renew its lease on an address in use.
  • DHCP allows addresses to be reused.
  • Supports mobile users who want to join the network.
  • DHCP returns IP address, address of first-hop router for client, Name and IP address of DNS server and Network mask.

Limitations of IPv4

  • IPv4 faces issues with IP address depletion, Internet routing table expansion, and lack of end-to-end connectivity.
  • Public and Private IPv4 Addresses include private address blocks for internal networks:
    • 10.0.0.0 /8
    • 172.16.0.0 /12
    • 192.168.0.0 /16

Network Address Translation

  • NAT enables datagrams that are leaving a local network to have the same source NAT IP address.

ICMP

  • ICMP is a messaging protocol used by hosts and routers to communicate network-level information.
  • Some functions include reporting errors, echo requests, and route redirection.

IPv6

  • IPv6 uses a 128-bit address space, allowing for 340 undecillion addresses.
  • It solves limitations associated with IPv4.
  • Motivations for IPv6:
    • 32-bit address space soon to be completely allocated
    • Header format helps speed processing and forwarding
    • Header changes to facilitate QoS.
  • IPv6 addresses are 128 bits in length.
    • Every 4 bits is represented by a single hexadecimal digit
    • Example IPv6 address: 2001:0DB8:0000:1111:0000:0000:0000:0200
  • IPv6 can be reduced or compressed.
    • Omit leading zeros in any segment or Omit All 0 Segments.
  • Example compressed IPv6: 2001:0DB8::1111::0200
  • IPv6 Datagram format

Datagram

  • Priority, Identify priority among datagrams in flow
  • Flow Label, Identify datagrams in same “flow.”
  • Next header, Identify upper layer protocol for data

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Network Layer Quiz
5 questions

Network Layer Quiz

GiftedEcstasy avatar
GiftedEcstasy
Internet Protocols Quiz
18 questions

Internet Protocols Quiz

SimplifiedIodine avatar
SimplifiedIodine
Introduzione al Network Layer e Protocollo IP
24 questions
Use Quizgecko on...
Browser
Browser