Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
Communication Networks Winter 2017/18
Prof. Jochen Seitz 1
The Internet Layer
Communication Networks -11. The Internet 511
9.4 Routing in the Internet
Transport Layer (TCP, UDP, ...)
Internet Layer
Routing Protocols- Path finding- RIP, OSPF, BGP, ...- AODV, OLSR, ...
IP- Addressing- Packet format- Packet processing
RoutingTable
ICMP- Error/state messages- Control
ARP/RARP- Address translation IP MAC
IGMP / DHCP /NAT / CIDR /
RSVP / ...
Network to Host Layer
9.4 Routing in the Internet
Repetition: IP Routing Services
• Source Routing (IPv4)/Routing Header Extension (IPv6)
Sender defines the complete path through the network
• Problems
Might result in suboptimal paths
Security issues in IPv6
Direct path definition enables denial of service attacks targeting two or more routers
Traffic is multiplied by a forced loop between the systems
Function defined as deprecated in IPv6 by RFC 5095
• Alternative routing approaches required
Communication Networks -11. The Internet 512
Communication Networks Winter 2017/18
Prof. Jochen Seitz 2
9.4 Routing in the Internet
Repetition: IP Forwarding
• Definitions
All nodes take forwarding decisions
Only the destination IP address is considered traditionally
Today, partially additional policies
• Two general forwarding types
Destination node is part of the same subnet
Direct forwarding
Destination nodes is reachable via Router/Gateway nodes only
In-direct forwarding via multiple Routers
Address packet to next Router on layer below IP
Communication Networks -11. The Internet 513
9.4 Routing in the Internet
What is a Router?
• A device to couple networks on the network layer
• Allows
Communication of end systems via one or more subnetworks
Routing
Forwarding of packets based on unique, ideally hierarchical network addresses
Segmentation and reassembly in IPv4 to support different PDU sizes of underlying MAC layer
Security mechanisms to control the access to the network based on IP addresses (Firewalls)
Communication Networks -11. The Internet 514
Communication Networks Winter 2017/18
Prof. Jochen Seitz 3
Packet Processing
Communication Networks -11. The Internet 515
9.4 Routing in the Internet
Packet Header Processing
DestinationIP Address
Lookup
Data IP Head
RoutingTable
IP Address Next Hop
Queuewith Buffer
Data IP Head
Incoming Packets Outgoing Packets
UpdatePacket Header
9.4 Routing in the Internet
Architecture of a Router
• Main features: Each network interface with its own layer 1 and layer 2 entity
Usually one network protocol for all network interfaces
Network layer entity responsible for forwarding the packets according to their globally unique destination address
Control entities: routing protocols, control message protocols or management protocols
Communication Networks -11. The Internet 516
Network 1 Network 2
Higher Layers
Layer 3
Layer 1Layer 2
Layer 1‘Layer 2‘
NetworkProtocol
NetworkProtocol
Switching
Control Entities
Communication Networks Winter 2017/18
Prof. Jochen Seitz 4
General Router Types
WiFi/DSL Router• Used by end-users to provide internet access
• Internet access for private home network
• Support multiple devices within the home network
Enterprise Router• Used for campus area networks (e.g. a
university or company)
• Partially employed for network structuring
Wireless Router Node• Used in mobile ad hoc networks
• Might bridge multiple access technologies
Edge Router• Used by Internet Service Providers (ISPs)
• Connects ISPs to customer networks
• Supports different access technologies
Core Router• Used within the core network
• Allows multiple Terabit/s
• High availability of 99.999 % or higher
• Completely redundant hardware/software components
Communication Networks -11. The Internet 517
9.4 Routing in the Internet
Example Routers
At home Within the core network
Communication Networks -11. The Internet 518
9.4 Routing in the Internet
Source: https://de.wikipedia.org/wiki/Router
Communication Networks Winter 2017/18
Prof. Jochen Seitz 5
9.4 Routing in the Internet
Fundamental Router Tasks
• Routing
Finding paths to transport packets through a network
Mapping reachable subnetworks based on topology
Selection of the best path based on IP-Prefixes
• Forwarding
Selection of next hop for all packets at a node
Actually the selection of the appropriate outgoing interface
Local decision at each node
Has to be done as fast as possible
Communication Networks -11. The Internet 519
Control and Data Path
• Data Path within the network layer Forwarding data packets
• Control Path within the layer above
To exchange routing control information
• Routing Information Exchanged/collected by routing protocols
Stored in Routing Table
• Routing Algorithm manages
Routing Table
Insert/Delete/Update entries
Based on gathered Routing Information
Communication Networks -11. The Internet 520
9.4 Routing in the Internet
Forwarding
Ro
uti
ng
PD
Us
Data PDUs
Ro
uti
ng
PD
Us
Data PDUs
RoutingAlgorithm
Routing Table
Data Path
Control Path
Communication Networks Winter 2017/18
Prof. Jochen Seitz 6
Subfunctions of Router Tasks
• Basic forwarding functions
Header validation
TTL verification
Address lookup
Fragmentation (IPv4 only)
Processing of IP options
Error notifications via ICMP
• Complex forwarding functions
Classification
Filtering
Prioritization
Transformation
• Routing functions
Path calculation
Routing table updates
Routing protocol execution
• Management functions
System configuration
Monitoring
Communication Networks -11. The Internet 521
9.4 Routing in the Internet
Router Components
Functional perspective:
Modules realizing functions required for packet forwarding
• Common modules:
Network interfaces
Forwarding engine
Queue manager
Traffic manager
Backplane/switching fabric
Route control processor
Architectural perspective:
• Hardware-oriented description
• Which hardware components exist and how are they linked?
• Where and how are modules implemented?
Communication Networks -11. The Internet 522
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 7
Packet Flow Through a Router
Communication Networks -11. The Internet 523
9.4 Routing in the Internet
Backplane
In-coming
Interface
L3
L2
Forwar-ding
Engine
BufferMemory FIB
BufferMemory
Queue Manage-
ment
Traffic Manage-
ment
OutgoingInterface
L3
L2
Route Processing
RIB
Data path
Control path
1
2
3 4
5
6
7 89
RIB Routing Information BaseFIB Forwarding Information Base
Router Hardware ComponentsCisco CSR-1
Router Architecture
Communication Networks -11. The Internet 524
9.4 Routing in the Internet
Source: http://www.networkworld.com/article/2283224/lan-wan/chapter-1--internet-protocol-operations-fundamentals.html?page=10
Communication Networks Winter 2017/18
Prof. Jochen Seitz 8
9.4 Routing in the Internet
Forwarding Sequence
1. Receive packet from L2 instance of incoming interface
2. Store packet in incoming buffer
3. Validate packet header
4. Process IP options
5. Extract destination IP address
6. Lookup next hop in routing table: destination, outgoing interface(s)
7. Fragmentation (if required/possible)
8. Update packet header: decrement TTL, update checksum
9. Forward packet to outgoing interface (possibly multiple ones)
10. Store packet in outgoing buffer
11. Send packet to L2 instance of outgoing interface
12. Send error message (if required)
Communication Networks -11. The Internet 525
Router Performance Metrics
Throughput• 𝐷𝑅 = 𝑁𝐼 ∙ 𝑅𝐼• 𝑁𝐼 number of interfaces• 𝑅𝐼 data rate per interface• unit: bit per second
Processed packets per second
• 𝑃𝑅𝑅 =𝐷𝑅
𝑆𝑃
• 𝑆𝑃 packet size• Example: 2 billon packets per second for
640 Gbps throughput and 40 byte packet size→ Time to finish complete
processing: 8 ns per packet
Common packet sizes
• 40 byte TCP Acknowledgements
• 64 byte ICMP Echo Requests
• 576 byte IPv4 Internet Path MTU IPv6 minimum MTU
• 1280 byte IPv6 minimum MTU
(RFC 2460)
• 1500 byte Max. Ethernet Payload
Communication Networks -11. The Internet 526
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 9
Routing Table Contents
• Path to another network
Corresponds to a complete subnetwork
Most common entry type
• Path to another node
Specific path to that node
• Typically
200,000 – 1,000,000 entries
• Default path Used if no other path is available
Default Gateway
• Loopback address Forward packets to the Loopback
interface of the current node
127.0.0.1 in IPv4
Communication Networks -11. The Internet 527
9.4 Routing in the Internet
9.4 Routing in the Internet
IP Forwarding Decision
• Performed at any participation node
Even if not a dedicated router
Communication Networks -11. The Internet 528
Processing via upper layer
Incoming Packet
Node = Dest Dest in Subnet
DirectForwarding
Route to Dest
Multi-hopForwarding via known Route
DefaultGateway
Multi-hopForwardingvia Gateway
yes yes yes yes
no no no
Based on Routing Table Contents
Communication Networks Winter 2017/18
Prof. Jochen Seitz 10
Routing Table – Principle (I)
Communication Networks -11. The Internet 529
9.4 Routing in the Internet
Routing Tablein Router B
from via from via
A
C
D
E
F
G
H
- (l1)
- (l2)
A (l1)
A (l1)
- (l4)
C (l2)
F (l4)
B
C
D
E
F
G
H
A-H: Routerl1-l8: Incoming/Outgoing Links
Routing-Tablein Router A
A
B
C G
F H
D
E
l1
l2
l3
l4
l6
l5 l7
l8
Routing Table – Principle (II): Link Failure
Communication Networks -11. The Internet 530
9.4 Routing in the Internet
Routing Tablein Router B
from via from
- (l1)
- (l2)
A (l1)
A (l1)
A (l1)
C (l2)
A (l1)
via
A
C
D
E
F
G
H
B
C
D
E
F
G
H
A-H: Routerl1-l8: Incoming/Outgoing Links
Routing-Tablein Router A
A
B
C G
F H
D
E
l1
l2
l3
l4
l6
l5 l7
l8
Communication Networks Winter 2017/18
Prof. Jochen Seitz 11
9.4 Routing in the Internet
Updating Routing Tables
• Static
Manual entries
• Via routing approaches
Based on collected routing information
Path selection via specialized routing algorithm
• Triggered by ICMP messages
In case of errors
In case of TTL expiration
Communication Networks -11. The Internet 531
Routing Approaches
Task
• Decide which outgoing interface is appropriate for the incoming packet (message)
Forwarding Goals
• Low average packet delay
• High network throughput
Challenges
• Reliable packet delivery
• Low additional load due to routing information exchange
• Fast reaction on topology changes
Especially for mobile nodes
• Have up-to-date and complete information on the current network state
• Resource efficiency
• Loop free operation
• Consider application requirements
Communication Networks -11. The Internet 532
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 12
9.4 Routing in the Internet
Routing Approach Aspects
• Used routing information
Which addresses are used?
• Route determination
How are paths obtained?
Who identifies a route?
• Collection/exchange of routing information
How?
When?
• Enforced routing metrics
Based on current network state?
Without considering the network state?
Communication Networks -11. The Internet 533
9.4 Routing in the Internet
Route Determination
• How are paths obtained?
Static: all path are predefined and fixed
Adaptive: paths can change during to network operation
• Who identifies a Route?
Possible nodes
Source or specialized router
Algorithms
Distributed
Centralized
Hierarchical
Communication Networks -11. The Internet 534
Communication Networks Winter 2017/18
Prof. Jochen Seitz 13
9.4 Routing in the Internet
Exchange of Routing Information
• How?
Flooding
Selectively
• When?
Periodically and after changes proactive
On demand and after changes reactive
Communication Networks -11. The Internet 535
Routing Metrics
General
• Fixed cost for possible connections
• Number of packets waiting for transfer
• Error rate
• Packet delay of one link
• Traffic type (dialog, batch)
• Priorities
• Service support by Router
State dependent• Load balancing
• Minimum hop count
• Quality parameters
Bit rate, latency, throughput, ...
• Security
• Cost
• Combination of multiple weighted values in one utility function
• Policies
• …
Communication Networks -11. The Internet 536
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 14
9.4 Routing in the Internet
Network Dependent Routing
• Internet
Intra Domain Routing (e.g. RIP, OSPF, IS-IS, …)
Inter Domain Routing (e.g. BGP, …)
• Mobile Ad-hoc Networks (MANETs)
Routing directly between any mobile node
e.g. OLSR, AODV, DYMO, DSR, …
• Wireless Sensor Networks (WSNs)
RPL
• Delay Tolerant Networks (DTNs)
Epidemic, Prophet, Rapid, MaxProp, …
Communication Networks -11. The Internet 537
The Structure of the Internet
Communication Networks -11. The Internet 538
9.4 Routing in the Internet
Backbone Service Provider
Consumer ISP
Consumer ISP
Consumer ISP
Large Corporation
Large Corporation
Small Corporation
PeeringPoint
Communication Networks Winter 2017/18
Prof. Jochen Seitz 15
Autonomous Systems and Routing
Communication Networks -11. The Internet 539
9.4 Routing in the Internet
Telekom
TU Ilmenau
Inter Domain Routing
Intra Domain Routing
Autonomous System (AS)
• Corresponds to an administrative domain
The Internet is build from many separate networks
AS build the organizational structure of the Internet
Each AS has a globally unique AS number (ASN), e.g. DFN: AS680 or Vodafone: AS3209
• Goals
AS use a freely chosen routing protocol internally
AS define policies for transit traffic
Internal AS structure is hidden
• Traffic Types
Local Traffic Packets from or for nodes within the AS
Transit Traffic Transferred through an AS
• AS Types
Stub AS Has connections to one other AS only
Multi-homed AS Connects multiple AS Does not handle transit traffic
Transit AS Connects multiple AS and handles transit
traffic
Communication Networks -11. The Internet 540
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 16
Autonomous Systems in GermanySource: http://www.heise.de/ct/artikel/So-funktioniert-Internet-Routing-221495.html?seite=5
Communication Networks -11. The Internet 541
9.4 Routing in the Internet
9.4 Routing in the Internet
Intra Domain Routing
• Applied within an AS
• Goals
Focus on optimal routes
Stable routes
• Distance Vector algorithms
Require local knowledge only
Can produce loops
• Link State algorithms
Require global knowledge on complete topology
Communication Networks -11. The Internet 542
Two fundamental algorithm types
Communication Networks Winter 2017/18
Prof. Jochen Seitz 17
9.4 Routing in the Internet
Routing Information Protocol (RIP)
• Intra domain routing approach based on distance vector algorithms
Bellman Ford Algorithm
Supports Split Horizon and Poison Reverse
Control message exchange via UDP
• Idea
Each node stores one entry with the best distance to the destination in its routing table
Entry structure: distance, destination, and outgoing interface
• Algorithm:
1. Request the table from all neighbors
2. Calculate table updates
3. Send periodic advertisement packets to all neighbors
Communication Networks -11. The Internet 543
9.4 Routing in the Internet
RIP – Details
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
Periodic routing information exchange
Utility function only depending on distance
• Problems (without split horizon, poison reverse)
Does not consider current network state
Path length limited tomaximum 15 hops
Long convergence time in case of updates
→ Count To Infinity problem
Outdated
Communication Networks -11. The Internet 544
A B C D E
1335577...
2244668...
3335577...
4444668...
Note: B alwaysselects theminimum value
Distance in hops from A
1. exchange2. exchange3. exchange4. exchange5. exchange6. exchange...Depending on upper limit
Connection from Router A to E,then link between A and B fails
Communication Networks Winter 2017/18
Prof. Jochen Seitz 18
9.4 Routing in the Internet
Open Shortest Path First (OSPF)
• Intra domain routing approach based on link state algorithms
Dijkstra Algorithm
Control message exchange via IP
• Algorithm:
1. Detect neighbors via Hello packets
2. Measure cost to all neighbors via Echo packets
3. Prepare Link State packet containing information
about all neighbors
4. Exchange Link State packets with all neighbors
5. Calculate optimal path to all neighbors based
on collected information
Communication Networks -11. The Internet 545
A
B
C
E
D
9.4 Routing in the Internet
OSPF Algorithm Details
• Neighbor discovery
HELLO packet
• Measurement of delay / costs for each neighbor
ECHO packet
• All information is entered in a LINK STATE packet
Sender, list of neighbors with the according delay, age
periodical or event-driven (e.g. new neighbor, failure, etc.) transmission
• Transmission to all neighbors
Usually flooding, but with enhancements: deletion of duplicates, discarding old packets etc.
• Computing the shortest path to all routers (e.g. Dijkstra)
Quite complex, but there are optimizations
Communication Networks -11. The Internet 546
Communication Networks Winter 2017/18
Prof. Jochen Seitz 19
OSPF
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
periodic routing information exchange
utility function depending on current state of the link
path determination to all other routers
• Pros
considers current network state
authenticated control messages
supports Areas for improved scalability
• Cons
requires expensive recalculation after every update
Communication Networks -11. The Internet 547
9.4 Routing in the Internet
Border Gateway Protocol, BGP
• Inter domain routing approach based on path vector algorithm store list with paths to all other AS
control message exchange via TCP
• Idea routes correspond to path to other AS
internal details of AS are unknown
routing table contains aggregated paths to all other AS
routing algorithm not defined
Selected based on policies
Examples: Hot-Potato, Cold-Potato, Shortest Path, …
Communication Networks -11. The Internet 548
AS1
AS2
A
B
C
E
D
G
F
H
Communication Networks Winter 2017/18
Prof. Jochen Seitz 20
BGP
• Characteristics
(adaptive)
distributed path calculation on dedicated router nodes
no periodic routing information exchange, only event based updates due to failures
utility function depending on number of AS in the path
• Cons
does not consider current link state
does not support load balancing – always selects one path only
very large routing tables
security issues due to missing authentication
Communication Networks -11. The Internet 549
9.4 Routing in the Internet
Additional Algorithms for BGP
Cold Potato
• Goals:
Keep control over traffic as long as possible
Enforce Quality of Service parameters
Hot Potato
• Goals:
Forward transit traffic fast to another AS
Preserve internal resources
• Approach:
Forward packet to interface with shortest outgoing queue
Communication Networks -11. The Internet 550
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 21
9.4 Routing in the Internet
BGP Policy Examples
• Prohibiting foreign packets to be traversed through the network
although the path might be shorter
• Political restrictions
• Company policies
company X does not want to pay for packet transmission through the network of company Y
Communication Networks -11. The Internet 551
Mobile Networks
Wireless Infrastructure Networks
• Wireless communication between mobile end system and base station / access point
• Base stations connected via wired network connecting multiple cells to a logical network
• Requires careful network planning
• Infrastructure supports additional services and QoS guarantees
• Complex base stations, but simple end nodes
• Centralized management
Ad Hoc Networks (MANETs)
• Direct wireless communication between mobile nodes
• Dynamic network topology
• No previous planning possible/required
• High flexibility
• Complex end-systems have to provide all functions
• Decentralized management self-organization
Communication Networks -11. The Internet 552
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 22
9.4 Routing in the Internet
Routing Challenges in MANETs
• Mobile nodes
Possibly different node speeds
• Frequent, fast topology changes
Neighbor discovery
Age of routing information
• Limited resources
• No dedicated outgoing interfaces
Incoming and outgoing packets via the same wireless interface
Broadcast to all neighbors
Communication Networks -11. The Internet 553
9.4 Routing in the Internet
Ad hoc On-Demand Distance Vector (AODV)
• Intra domain / Ad hoc routing approach based on distance vector approach
Dijkstra Algorithm
Control message exchange via UDP
• Algorithm:1. Broadcast Route Request (RREQ) for path
towards destination
2. Unicast Route Reply (RREP) to inform
requesting node about path
3. Store route in Routing Table
4. Intermediate nodes can answer RREQ packets
if their Routing entry is still valid
5. Route Error (RERR) to inform nodes
about missing neighbors
Communication Networks -11. The Internet 554
ME1
ME2
ME3
ME4
ME5
ME6
Destination
Sender
RREQ
RREQ RREQ
RREQRREQ
RREQ
RREQ RREQ
RREP
RREP RREP
Communication Networks Winter 2017/18
Prof. Jochen Seitz 23
AODV
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
reactive routing information exchange on demand
• Pros
low additional network load since path are searched on demand only
• Cons
higher initial delay until path is found
Communication Networks -11. The Internet 555
9.4 Routing in the Internet
9.4 Routing in the Internet
Optimized Link State Routing (OLSR)
• Intra domain / Ad hoc routing approach based on link state approach
Control message exchange via UDP
• Algorithm:1. Discovery of 1 or 2 hop neighbors
via HELLO packets
2. Distribute Routing Information throughout the
network via TC packet (Topology Control)
3. Select Multipoint Relays for each node N
4. N can reach all 2-hop-neighbors
via Multipoint Relays
5. Multipoint Relays are responsible for the
distribution of Broadcast messages and
TC messages
Communication Networks -11. The Internet 556
ME1
ME2
ME3
ME4
ME5
ME6
Multipoint Relayfür ME5
Communication Networks Winter 2017/18
Prof. Jochen Seitz 24
OLSR
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
periodic routing information exchange
proactive path determination
• Pros
route immediately available
no additional path finding delay
• Cons
higher load on network due to proactive control message exchange
Communication Networks -11. The Internet 557
9.4 Routing in the Internet
9.4 Routing in the Internet
Hybrid Routing
• In general
Combination of two or more different routing techniques to get “the best of both worlds”
• Pros
Optimization of routing effort
Provision of recent routing information
Consideration of neighboring nodes
• Cons
Several routing protocols in parallel
Higher node complexity
• Example
Zone Routing Protocol (ZRP)
Communication Networks -11. The Internet 558
Communication Networks Winter 2017/18
Prof. Jochen Seitz 25
9.4 Routing in the Internet
Zone Routing Protocol (ZRP)
• Routing Zone: All nodes that are not more than a given number of hops away from the sender (“Zone Radius”)
• Intra-Zone Routing Protocol: Proactive routing protocol for Routing Zone
• Neighbor Discovery Protocol: Discovering neighboring nodes by periodic “Hello” messages
• Interzone Routing Protocol: Reactive routing protocol for nodes outside the Routing Zone –“Bordercasting”
Communication Networks -11. The Internet 559
ME1
ME2
ME3
ME4
ME5
ME6
Sender
Routing Zone Destination
9.4 Routing in the Internet
Routing for Specialized Use Cases
• Geocast
Routing based on node positions
Requires exact positioning information (e.g. via GPS/GLONASS)
• Multicast
Simultaneous delivery of messages to multiple receivers
Requires group membership information
• Opportunistic Approaches
Exploit „fastest“ delivery of the packet
Based on broadcast nature of the medium
Communication Networks -11. The Internet 560
Communication Networks Winter 2017/18
Prof. Jochen Seitz 26
9.4 Routing in the Internet
Geocast Routing
• Idea
Forwarding based on node position
Select closet node to destination as next hop
• Variants
Destination is a nodes
Destination is a geographic region receivers are all nodes within that region
• Problems
Age of positioning information
Dead ends possible (e.g. closest node cannot forward the message further)
Communication Networks -11. The Internet 561
9.4 Routing in the Internet
Multicast Routing
• Idea
Each packet contains group information
List of required receivers
Bit identifier allowing to identify all receivers
Group address
Determination of one or multiple links to reach all group members
• Problems
Who is identifying group members / receivers?
Age of routing information
Communication Networks -11. The Internet 562
Communication Networks Winter 2017/18
Prof. Jochen Seitz 27
9.4 Routing in the Internet
Opportunistic Routing
• Idea
Flood messages to all neighbors
Only the “fastest” neighbor forwards message again by flooding again
• Problems
What happens if multiple nodes forward the message?
What happens if the fastest node forwards the message in the wrong direction?
Communication Networks -11. The Internet 563
9.4 Routing in the Internet
Delay Tolerant Routing
• Network
Frequent disruptions due to mobility, destruction, energy saving
Long delay links due to distance
No end-to-end connections possible
• Idea
Store messages until new contact occurs message switching
Flood messages or use other prediction methods
• Problems
How to determine the next contact?
How to handle scarce resources?
What happens if no contact opportunities arise?
Communication Networks -11. The Internet 564
Communication Networks Winter 2017/18
Prof. Jochen Seitz 28
9.4 Routing in the Internet
Epidemic Routing
• Idea
Flood messages to all nodes in the network
• Algorithm in case of a contact
Exchange a summary of all stored messages
Compare summary of peer with own list
Exchange missing messages bi-directionally
Communication Networks -11. The Internet 565
A
BC
F
D
E
Epidemic
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
no routing information exchange
uses names instead of IP addresses as routing information
• Pros
simple algorithm
ensures minimum delay
• Cons
high resource consumption in terms of memory and unnecessary transfers
Communication Networks -11. The Internet 566
9.4 Routing in the Internet
Communication Networks Winter 2017/18
Prof. Jochen Seitz 29
9.4 Routing in the Internet
Sensor Networks Challenges
• Limited node resources Processing capabilities
Memory
• Typically tree-like topology Dedicated node types: source and sink
Partially fixed topology
Load distribution not balanced
Supports large number of nodes scalability
Different node density possible
• Different network goal Not to transport as much data as possible
Reliably detect events
Reliably report sensor reading regularly
Communication Networks -11. The Internet 567
9.4 Routing in the Internet
Routing Protocol for Low-power and LossyNetworks (RPL)• Idea
Transfer packets to a sink node
Build target-oriented weighted graph to find an optimal path
• Algorithm
Child nodes inform parents which other node are reachable via this child
Select „best“ parent based on distance vector algorithm
Communication Networks -11. The Internet 568
A
B
CG
F
H
D E
Communication Networks Winter 2017/18
Prof. Jochen Seitz 30
RPL
• Characteristics
adaptive
distributed path calculation on dedicated router nodes
periodic routing information exchange
periodic status recalculation
• Pros
supports energy saving mechanisms like sleeping
• Cons
requires much memory on the nodes
optimized to support central sink nodes
increased overhead for direct source communication due to multiple trees
Communication Networks -11. The Internet 569
9.4 Routing in the Internet
Requests for Comments (I)
• Mills, David L.: Exterior Gateway Protocol formal specification, April 1984 (RFC 904)
• Malkin, Gary Scott; Minnear, Robert E. (1996): RIPng for IPv6. (RFC 2080).
• Perkins, Charles E.; Belding-Royer, Elizabeth M.; Das, Samir R. (2003): Ad hoc On-Demand DistanceVector (AODV) Routing. (RFC 3561).
• Parker, Jeff (Hg.) (2004): Recommendations forInteroperable IP Networks using Intermediate System to Intermediate System (IS-IS). (RFC 3787).
• Rekhter, Yakov; Li, Tony; Hares, Susan (2005): A Border Gateway Protocol 4 (BGP-4). (RFC 4271).
• Johnson, David B.; Hu, Yih-Chun; Maltz, David A. (2007): The Dynamic Source Routing Protocol (DSR) for Mobile Ad Hoc Networks for IPv4. (RFC 4728).
• Scott, Keith L.; Burleigh, Scott (2007): Bundle Protocol Specification. (RFC 5050).
• Traina, Paul; McPherson, Danny; Scudder, John G. (2007): Autonomous System Confederations for BGP. (RFC 5065).
• Abley, Joe; Savola, Pekka; Neville-Neil, George (2007): Deprecation of Type 0 Routing Headers in IPv6. (RFC 5095).
• Coltun, Rob; Ferguson, Dennis; Moy, John; Lindem, Acee (2008): OSPF for IPv6. (RFC 5340).
• Davies, Elwyn B.; Doria, Avri (2010): Analysis of Inter-Domain Routing Requirements and History. (RFC 5773).
• Baccelli, Emmanuel; Townsley, Mark (2010): IP Addressing Model in Ad Hoc Networks. (RFC 5889).
Communication Networks -11. The Internet 570
References
Communication Networks Winter 2017/18
Prof. Jochen Seitz 31
Requests for Comments (II)
• Winter, Tim; Thubert, Pascal; Brandt, Anders; Hui, Jonathan W.; Kelsey, Richard; Levis, Philip et al. (2012): RPL. IPv6 Routing Protocol for Low-Power and Lossy Networks. (RFC 6550).
• Lindgren, Anders F.; Doria, Avri; Davies, Elwyn; Grasic, Samo (2012): Probabilistic Routing Protocol for Intermittently Connected Networks. (RFC 6693).
• Clausen, Thomas Heide; Dearlove, Christopher; Jacquet, Philippe; Herberg, Ulrich (2014): The Optimized Link State Routing Protocol Version 2. (RFC 7181).
Communication Networks -11. The Internet 571
References
References
References
• Levis, Philip; Mazières, David (2010): Introduction to Computer Networking. Secure Computer Systems Group/Stanford University. http://www.scs.stanford.edu/10au-cs144/notes/.
• Schudel, Gregg; Smith, David J. (2008). Chapter 1: Internet Protocol Operations Fundamentals. Network World. Cisco Press. https://www.networkworld.com/article/2283224/lan-wan/chapter-1--internet-protocol-operations-fundamentals.html.
• Sinha, Rishi; Papadopoulos, Christos; Heidemann, John (2007): Internet Packet Size Distributions. SomeObservations. University of Southern California/Information Sciences Institute (Technical Report, ISI-TR-2007-643). https://www.isi.edu/~johnh/PAPERS/Sinha07a.pdf.
• Udacity (2015): Network Implementation. Georgia Tech. https://www.youtube.com/playlist?list=PLAwxTw4SYaPn21MqCiFq2r0FSjk9l6cW2.
• Vahdat, Amin; Becker, David (2000): Epidemic Routing for Partially-Connected Ad Hoc Networks. Department of Computer Science, Duke University (Technical Report, CS-2000-06). http://issg.cs.duke.edu/epidemic/epidemic.pdf.
Communication Networks -11. The Internet 572