Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Lec 10

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

2022-2023

Fall Semester

Computer Networks (1) – L3


Computer Networks Technology – L2
Dr. Ahmed Abdelreheem

Lec_10
Outlines
▪ Module 01: Computer Networks and the Internet

▪ Module 02: Application Layer

▪ Module 03: Transport Layer

▪ Module 04: The Network Layer

▪ Module 05: The Link Layer: Links, Access Networks, and LANs

▪ Module 06: The physical layer

2
Chapter 4
Network Layer:
Data Plane

Computer Networking: A
Top-Down Approach
8th edition
Jim Kurose, Keith Ross
Pearson, 2020
3
▪understand principles • instantiation, implementation
behind network layer in the Internet
services, focusing on data • IP protocol
plane: • NAT, middleboxes
• network layer service models
• forwarding versus routing
• how a router works
• addressing
• generalized forwarding
• Internet architecture
4
Network Layer: 4-4
Network layer: “data plane” roadmap
• Network layer: overview
• data plane
• control plane
▪ What’s inside a router
• input ports, switching, output ports
• buffer management, scheduling
▪ IP: the Internet Protocol ▪ Generalized Forwarding, SDN
• datagram format
• Match+action
• addressing
• OpenFlow: match+action in action
• network address translation
• IPv6 ▪ Middleboxes
5
Network Layer: 4-5
Network-layer services and protocols
▪ transport segment from sending mobile network

to receiving host national or global ISP

• sender: encapsulates segments into


datagrams, passes to link layer application

• receiver: delivers segments to transport


network

transport layer protocol link


physical
network

▪ network layer protocols in every


network
link link
physical physical

Internet device: hosts, routers


network

▪ routers: link network


physical link
physical network
datacenter
• examines header fields in all IP
link
physical network

datagrams passing through it


application
• moves datagrams from input ports to transport
network
enterprise
output ports to transfer datagrams network
link
physical

6 along end-end path


Network Layer: 4-6
network-layer functions: analogy: taking a trip
• forwarding: move packets from ▪ forwarding: process of getting
a router’s input link to through single interchange
appropriate router output link ▪ routing: process of planning trip
▪ routing: determine route taken from source to destination
by packets from source to
destination
• routing algorithms
forwarding

routing
7
Network Layer: 4-7
Data plane: Control plane
▪ local, per-router function • network-wide logic
▪ determines how datagram • determines how datagram is
arriving on router input port routed among routers along end-
is forwarded to router end path from source host to
output port destination host
values in arriving ▪ two control-plane approaches:
packet header
• traditional routing algorithms:
0111 1 implemented in routers
• software-defined networking (SDN):
2
3

implemented in (remote) servers


8
Network Layer: 4-8
Per-router control plane
Individual routing algorithm components in each and every
router interact in the control plane

Routing
Algorithm
control
plane

data
plane

values in arriving
packet header
0111 1
2
3

9
Network Layer: 4-9
Software-Defined Networking (SDN) control plane
Remote controller computes, installs forwarding tables in routers

Remote Controller

control
plane

data
plane

CA
CA CA CA CA
values in arriving
packet header

0111 1
2
3
10
Network Layer: 4-10
Network service model
Q: What service model for “channel” transporting datagrams
from sender to receiver?
example services for example services for a flow of
individual datagrams: datagrams:
▪ guaranteed delivery • in-order datagram delivery
▪ guaranteed delivery with • guaranteed minimum bandwidth
less than 40 msec delay to flow
• restrictions on changes in inter-
packet spacing

11
Network Layer: 4-11
Network-layer service model
Quality of Service (QoS) Guarantees ?
Network Service
Architecture Model Bandwidth Loss Order Timing

Internet best effort none no no no

ATM Constant Bit Rate Constant rate yes yes yes


Internet “best effort” service model
ATM
NoAvailable
guaranteesBit Rate
on: Guaranteed min no yes no

Internet i. successful
Intserv Guaranteeddatagram
yes delivery to
yesdestination
yes yes
ii. 1633
(RFC )
timing or order of delivery
Internet Diffserv (RFC 2475) available
iii. bandwidth to end-end
possible flow possibly
possibly no

12
Network Layer: 4-12
Network-layer service model
Quality of Service (QoS) Guarantees ?
Network Service
Architecture Model Bandwidth Loss Order Timing

Internet best effort none no no no

ATM Constant Bit Rate Constant rate yes yes yes

ATM Available Bit Rate Guaranteed min no yes no

Internet Intserv Guaranteed yes yes yes yes


(RFC 1633)

Internet Diffserv (RFC 2475) possible possibly possibly no

13
Network Layer: 4-13
Reflections on best-effort service:
▪ simplicity of mechanism has allowed Internet to be widely deployed
adopted
▪ sufficient provisioning of bandwidth allows performance of real-time
applications (e.g., interactive voice, video) to be “good enough” for
“most of the time”
▪ replicated, application-layer distributed services (datacenters, content
distribution networks) connecting close to clients’ networks, allow
services to be provided from multiple locations
▪ congestion control of “elastic” services helps

It’s hard to argue with success of best-effort service model


14
Network Layer: 4-14
Network layer: “data plane” roadmap
• Network layer: overview
• data plane
• control plane
• What’s inside a router
• input ports, switching, output ports
• buffer management, scheduling
• IP: the Internet Protocol
• datagram format ▪ Generalized Forwarding, SDN
• addressing • Match+action
• network address translation • OpenFlow: match+action in action
• IPv6 ▪ Middleboxes
15
Network Layer: 4-15
Router architecture overview
high-level view of generic router architecture:
routing, management
routing control plane (software)
processor operates in millisecond
time frame
forwarding data plane
(hardware) operates
in nanosecond
timeframe
high-speed
switching
fabric

router input ports router output ports


16
Network Layer: 4-16
Input port functions
lookup,
link
layer forwarding
line switch
termination protocol fabric
(receive)
queueing

physical layer:
bit-level reception
link layer:
decentralized switching:
e.g., Ethernet ▪ using header field values, lookup output port using
forwarding table in input port memory (“match plus action”)
(chapter 6)
▪ goal: complete input port processing at ‘line speed’
▪ input port queuing: if datagrams arrive faster than forwarding
rate into switch fabric
17
Network Layer: 4-17
Input port functions
lookup,
link
layer forwarding
line switch
termination protocol fabric
(receive)
queueing

physical layer:
bit-level reception
link layer:
decentralized switching:
e.g., Ethernet ▪ using header field values, lookup output port using
forwarding table in input port memory (“match plus action”)
(chapter 6)
▪ destination-based forwarding: forward based only on
destination IP address (traditional)
▪ generalized forwarding: forward based on any set of header
18 field values Network Layer: 4-18
Destination-based forwarding

19 Q: but what happens if ranges don’t divide up so nicely?


Network Layer: 4-19
Longest prefix matching
longest prefix match
when looking for forwarding table entry for given
destination address, use longest address prefix that
matches destination address.

Destination Address Range Link interface

11001000 00010111 00010*** ******** 0

11001000 00010111 00011000 ******** 1

11001000 00010111 00011*** ******** 2

otherwise 3

11001000 00010111 00010110 10100001 which interface?


examples:
20 11001000 00010111 00011000 10101010 which interface?
Network Layer: 4-20
Longest prefix matching
longest prefix match
when looking for forwarding table entry for given
destination address, use longest address prefix that
matches destination address.

Destination Address Range Link interface

11001000 00010111 00010*** ******** 0

11001000 00010111 00011000 ******** 1

11001000 match!
00010111 00011*** ******** 2

otherwise 3

11001000 00010111 00010110 10100001 which interface?


examples:
21 11001000 00010111 00011000 10101010 which interface?
Network Layer: 4-21
Longest prefix matching
longest prefix match
when looking for forwarding table entry for given
destination address, use longest address prefix that
matches destination address.

Destination Address Range Link interface

11001000 00010111 00010*** ******** 0

11001000 00010111 00011000 ******** 1

11001000 00010111 00011*** ******** 2

otherwise 3
match!
11001000 00010111 00010110 10100001 which interface?
examples:
22 11001000 00010111 00011000 10101010 which interface?
Network Layer: 4-22
Longest prefix matching
longest prefix match
when looking for forwarding table entry for given
destination address, use longest address prefix that
matches destination address.

Destination Address Range Link interface

11001000 00010111 00010*** ******** 0

11001000 00010111 00011000 ******** 1

11001000 00010111 00011*** ******** 2

otherwise 3
match!
11001000 00010111 00010110 10100001 which interface?
examples:
23 11001000 00010111 00011000 10101010 which interface?
Network Layer: 4-23

You might also like