Lecture 1 - Network Layer
Lecture 1 - Network Layer
Sixth edition
Chapter 5
The Network Layer
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Network Layer Design Issues
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Store-and-Forward Packet Switching
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Services Provided to the Transport Layer
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Implementation of Connectionless Service
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Implementation of Connection-Oriented
Service
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Comparison of Virtual-Circuit and
Datagram Networks
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Routing Algorithms in a Single Network
(1 of 3)
• Optimality principle
• Shortest path algorithm
• Flooding
• Distance vector routing
• Link state routing
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Routing Algorithms in a Single Network
(2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Routing Algorithms in a Single Network
(3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Optimality Principle
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Shortest Path Algorithm (1 of 2)
The first six steps used in computing the shortest path from A to D. The arrows indicate
the working node.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Shortest Path Algorithm (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Distance Vector Routing
(a) A network. (b) Input from A, I, H, K, and the new routing table for J.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Count-to-Infinity Problem
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Link State Routing
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Learning about the Neighbors
(a) Nine routers and a broadcast LAN. (b) A graph model of (a).
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Building Link State Packets
(a) A network. (b) The link state packets for this network.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Distributing the Link State Packets
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Hierarchical Routing within a Network
Hierarchical routing
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Broadcast Routing
Reverse path forwarding. (a) A network. (b) Sink tree for router I. (c) The tree built by
reverse path forwarding from I.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Multicast Routing (1 of 2)
(a) A network. (b) A spanning tree for the leftmost router. (c) A multicast tree for group 1.
(d) A multicast tree for group 2.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Multicast Routing (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Anycast Routing
(a) Anycast routes to group 1. (b) Topology seen by the routing protocol.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Traffic Management at the Network Layer
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Congestion
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Approaches to Traffic Management
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Traffic-Aware Routing
A network in which the East and West parts are connected by two links
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Admission Control
(a) A congested network. (b) The portion of the network that is not congested. A virtual
circuit from A to B is also shown.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Traffic Shaping (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Traffic Shaping (2 of 2)
(a) Traffic from a host. Output shaped by a token bucket of rate 200 Mbps and capacity
(b) 9600 KB and (c) 0 KB. Token bucket level for shaping with rate 200 Mbps and
capacity (d) 16,000 KB, (e) 9600 KB, and (f) 0 KB.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Explicit Congestion Notification
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Hop-by-Hop Backpressure
(a) A choke packet that affects only the source. (b) A choke packet that affects each hop
it passes through.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Quality of Service and Application QoE
• Differentiated services
– Expedited forwarding
– Assured forwarding
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Application QoS Requirements
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Categories of QoS and Examples
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Overprovisioning
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Packet Scheduling
• Algorithms
– First-In First-Out (FIFO) scheduling
– Fair queueing
– Weighted fair queueing
– Putting it together
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Fair Queueing (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Fair Queueing (2 of 2)
(a) Weighted Fair Queueing. (b) Finishing times for the packets.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Putting it Together (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Putting it Together (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Integrated Services (1 of 2)
(a) A network. (b) The multicast spanning tree for host 1. (c) The multicast spanning tree
for host 2.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Integrated Services (2 of 2)
(a) Host 3 requests a channel to host 1. (b) Host 3 then requests a second channel, to
host 2. (c) Host 5 requests a channel to host 1.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Differentiated Services (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Differentiated Services (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Internetworking
• Internetworks: an overview
• How networks differ
• Connecting heterogeneous networks
• Connecting endpoints across heterogeneous networks
• Internetwork routing: routing across multiple networks
• Supporting different packet sizes: packet fragmentation
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
How Networks Differ
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Connecting Heterogeneous Networks
(a) A packet crossing different networks. (b) Network and link layer protocol processing.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Connecting Endpoints Across
Heterogeneous Networks (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Connecting Endpoints Across
Heterogeneous Networks (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Supporting Different Packet Sizes: Packet
Fragmentation (1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Supporting Different Packet Sizes: Packet
Fragmentation (2 of 3)
Fragmentation when the elementary data size is 1 byte. (a) Original packet, containing 10
data bytes. (b) Fragments after passing through a network with maximum packet size of
8 payload bytes plus header. (c) Fragments after passing through a size 5 gateway.
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Supporting Different Packet Sizes: Packet
Fragmentation (3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Software-Defined Networking
• Overview
• The SDN control plane: logically centralized software
control
• The SDN data plane: programmable hardware
• Programmable network telemetry
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Overview
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The SDN Data Plane: Programmable
Hardware (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The SDN Data Plane: Programmable
Hardware (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Network Layer in the Internet (1 of 3)
• Top 10 principles
– Make sure it works
– Keep it simple
– Make clear choices
– Exploit modularity
– Expect heterogeneity
– Avoid static options and parameters
– Look for a good design; it need not be perfect
– Be strict when sending and tolerant when receiving
– Think about scalability
– Consider performance and cost
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Network Layer in the Internet (2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Network Layer in the Internet (3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The IP Version 4 Protocol (1 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The IP Version 4 Protocol (2 of 2)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
IP Addresses
• Prefixes
– A contiguous block of IP address space
• Subnets
• CIDR—Classless InterDomain Routing
• Classful and special addressing
• NAT—Network Address Translation
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Prefixes
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Subnets
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
CIDR—Classless InterDomain Routing
(1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
CIDR—Classless InterDomain Routing
(2 of 3)
Aggregation of IP prefixes
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
CIDR—Classless InterDomain Routing
(3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Classful and Special Addressing (1 of 2)
IP address formats
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Classful and Special Addressing (2 of 2)
Special IP addresses
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
NAT—Network Address Translation
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
IP Version 6 (1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
IP Version 6 (2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
IP Version 6 (3 of 3)
• IP version 6 improvements
– Longer addresses than IPv4
– Simplification of the header
– Better support for options
– Big advance is in security
– Quality of service
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
The Main IPv6 Header
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Extension Headers (1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Extension Headers (2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Extension Headers (3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Internet Control Protocols
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
ICMP—The Internet Control Message
Protocol
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
ARP—The Address Resolution Protocol
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Label Switching and MPLS (1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Label Switching and MPLS (2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Label Switching and MPLS (3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
OSPF—An Interior Gateway Routing
Protocol (1 of 4)
• Intradomain routing
– IGP (Interior Gateway Protocol)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
OSPF—An Interior Gateway Routing
Protocol (2 of 4)
• OSPF
– Published in the open literature
– Supports a variety of distance metrics
– Dynamic
– Supports routing based on type of service
– Performs load balancing, splitting the load over multiple lines
– Supports hierarchical systems
– Provides security
– Provision for dealing with routers that were connected to the
Internet via a tunnel
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
OSPF—An Interior Gateway Routing
Protocol (3 of 4)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
OSPF—An Interior Gateway Routing
Protocol (4 of 4)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
BGP—The Exterior Gateway Routing
Protocol (1 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
BGP—The Exterior Gateway Routing
Protocol (2 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
BGP—The Exterior Gateway Routing
Protocol (3 of 3)
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Interdomain Traffic Engineering
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved
Internet Multicasting
• Internet multicasting
– One-to-many communication using class D IP addresses
Copyright © 2020, 2011, 2003 Pearson Education, Inc. All Rights Reserved