• No results found

Network Layer 8 Routing

N/A
N/A
Protected

Academic year: 2021

Share "Network Layer 8 Routing"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Network Layer – 8 Routing

Shri Mare

[email protected]

CSCI 367: Computer Networks I

Thanks to Aran Clauson, Dustin O'Hara, Michael Meehan, Michael Tsikerdekis, Ratul Mahajan, Brian

Hutchinson, and many others for sample slides and materials ...

(2)

From last class – Routing within a network

Distance-Vector (Bellman-Ford) Routing

(3)

Distance-Vector (Bellman-Ford) Routing

• Advantage

• In a static environment, distance-vector algorithms compute shortest paths and correctly propagate routes to all destinations.

• Disadvantage:

• Slow to converge

• When routes change rapidly, the computations may not stabilize.

• They don’t not scale well:

• Requires the exchange of large messages, proportional to the total number of networks in an internet

• Requires every router to participate.

• Routing Information Protocol (RIP)

• Widely used routing protocol in early days

• Uses Distance-Vector routing algorithm

(4)

Link-State Routing (1)

• Link state, link status, or Shortest Path First (SPF) is the main alternative to distance-vector algorithms.

• Variations of this routing algorithm are used in practice

• Basic idea of link state routing:

Each router must do the following things 1. Discover neighbors and set their costs

2. Construct a link-state packet with information from (1) 3. Sent the link-state packet to all other routers

4. Receive link-state packets from other routers

5. Computer shortest path from available information

• (Steps 3-4) Reliable Flooding

• Broadcast to all neighbors downstream

• (Step 5) Route calculation

• Calculate shortest path from the received information

• Use Dijkstra’s algorithm to calculate shortest path

• Open Shortest Path First Protocol (OSPF)

(5)

Link-State Routing (2)

• A link-state packet (LSP) contains the following information

1. The ID of the node that created the LSP

2. A list of directly connected neighbors of that node, with the cost of the link to each one 3. A sequence number

4. A time to live for this packet

• LSP is broadcasted only downstream

(6)

Routing Across Networks

(7)

What is routing across networks?

(8)

Why we need it?

There are three reasons that routers must be divided:

Traffic. No routing protocol can accommodate an arbitrary number of sites, the routing traffic becomes overwhelming.

Distance-vector protocols require routers to exchange the entire set of networks Link-state protocols periodically broadcast announcements of connectivity.

Indirect Communication. Routers in the global Internet cannot communicate directly.

Intermediate hops are required to reach most routers.

Administrative Boundaries. In the Internet, networks and routers are not all owned and managed by a single entity.

Shortest paths are not always used. Large ISPs route traffic along paths that generate revenue or have lower financial cost.

A routing architecture must provide control for each administrative group.

Design principle for Routing Architecture:

1. No routing update protocol can scale to allow all routers in the global Internet to exchange routing information.

2. Routers must be divided into separate groups, and routing protocols designed to operate within a group.

Key takeaway: To scale routing, we divided networks into groups/domains called

Autonomous Systems (ASes) Each AS is managed by one entity

(9)

Autonomous System Concept

Networks and routers owned by a given entity fall under a single administrative authority.

single administrative authority

- guarantees that internal routes remain consistent & viable.

- chooses one or more of its routers to notify the outside world of networks within the organization - chooses one or more of its routers to learn about networks that are outside the organization.

In the context of routing, we refer to this single administrative authority as an Autonomous System (AS).

AS choose their own mechanisms for discovering, propagating, validating, and checking the consistency of routes.

AS summarize routing information and send the summary to neighboring AS.

AS can be an ISP, corporate or university intranet, etc…

AS are defined by precise boundaries.

AS are defined by distinct policies.

(10)

Exterior Gateway Protocols and Reachability

An autonomous system configures one or more of its routers to communicate with routers in other autonomous systems (AS).

Information flows in two directions.

Exterior Gateway Protocol (EGP)

Passes network reachability information between two autonomous systems (AS).

Border Gateway Protocol (BGP) - most common EGP

(1) The router collects information about networks inside its AS and then “advertises” or passes the information out.

(2) The router accepts information about networks in other AS(s) and disseminate the information inside.

Goal is reachability – finding a reachable path, not necessarily an

optimal/shortest path.

(11)
(12)

Basics of BGP

1. Border router:

• An IP router that forwards packets between Autonomous Systems (ASes)

2. BGP speaker:

• An IP router that “speaks” BGP to BGP speakers in other ASes

• This is typically the border router

3. BGP does not use either the distance-vector algorithm or the link-state algorithm.

Instead, BGP uses a modification known as a path-vector algorithm

• Path-vector: Why knowing full path is essential?

12

(13)

How are BGP routes advertised?

• Route announcements have:

• IP prefix

• Path vector

• Next hop

• Route announcements move in the opposite direction to traffic

13

(14)

BGP routing policies between ASes

• A routing policy is implemented by deciding what traffic flows over which links between ASes Two common policies:

• Transit policy

• ISP accepts traffic for customers from/to the rest of the internet

• Peer policy

• ISP accepts traffic only from/to their customers.

14

(15)

BGP Characteristics

BGP characteristics:

Inter-Autonomous System Communication. Because BGP is designed as an exterior gateway protocol, its primary role is to allow one autonomous system to communicate with another.

Coordination Among Multiple BGP Speakers. If an autonomous system has multiple routers each communicating with a peer in an outside autonomous system, a form of BGP known as iBGP can be used to coordinate among routers inside the system to guarantee that they all propagate consistent information.

Propagation Of Reachability Information. BGP allows an autonomous system to advertise destinations that are reachable either in or through it, and to learn such information from another autonomous system.

Next-Hop Paradigm. Like distance-vector routing protocols, BGP supplies next hop information for each destination.

Policy Support. Unlike most distance-vector protocols BGP can implement policies that the local administrator chooses. In particular, a router

running BGP can be configured to distinguish between the set of destinations reachable by computers inside its autonomous system and the

set of destinations advertised to other autonomous systems.

(16)

BGP Characteristics

BGP characteristics (continued):

Reliable Transport. BGP uses TCP for all communication.

Path Information. Instead of specifying destinations that can be reached and a next hop for each, BGP uses a path-vector paradigm in which advertisements specify path information that allows a receiver to learn a series of autonomous systems along a path to the destination.

Incremental Updates. To conserve network bandwidth, BGP does not pass full information in each update message. Instead, full information is exchanged once, and then successive messages carry incremental changes called deltas.

Support For IPv4 and IPv6. BGP supports IPv4 classless addresses and IPv6 addresses. That is, BGP sends a prefix length along with each address.

Route Aggregation. BGP conserves network bandwidth by allowing a sender to aggregate route information and send a single entry to represent multiple, related destinations (e.g., many networks owned by a single AS).

Authentication. BGP allows a receiver to authenticate messages (i.e., verify the identity of a sender).

(17)

IPv6

(18)

IPv6 Addressing Scheme

• Address size is 128 bits, or 16 octets

Dotted Decimal Notation

• 104.230.140.100.255.255.255.255.0.0.17.128.150.10.255.255

Colon Hex Notation

• 68E6:8C64:FFFF:FFFF:0:1180:96A:FFFF

• FF05:0:0:0:0:0:0:B3 or FF05::B3 (short-hand notation, :: denoting contiguous zeros) Colon Decimal

• 0:0:0:0:0:0:128.10.2.1 or ::128.10.2.1

(19)

Embedding IPv4 Addresses in IPv6

• To enable the transition to IPv6, internet designers allocated a small fraction of addresses in the IPv6 space to encode IPv4 addresses.

• Any address that begins with 80 zero bits followed by 16 bits of all ones contains an IPv4 address in the low-order 32 bits.

• IPv4 address 128.96.33.81 can be written as ::FFFF:128.96.33.81

(20)

IPv6 Unicast Address

• Rather than being divided between a prefix and suffix (like in IPv4), IPv6 addresses are divided into three conceptual parts.

1. Globally-unique prefix used to identify a site

2. Subnet ID used to distinguish among multiple physical networks at the destination site 3. Interface ID used to identify a particular computer.

• Rather than host ID, interface ID emphasizes the idea that a host can have multiple interfaces and multiple IDs.

N bits 64 - N bit 64 bits

Global Routing Prefix Subnet ID Interface ID

(21)

IPv6 Packet Format

• Version: 6

• TrafficClass and FlowLabel: Related to quality of service

• PayLoadLen: Length of the packet, excluding the header

• NextHeader: replaces IP options and protocol field from IPv4

• HopLimit: TTL from IPv4

• IPv6 header is always 40 bytes.

• IPv4 header without options is 20 bytes.

(22)

Main features of IPv6 (compared to IPv4)

• Longer addresses than IPv4

• 128 bits vs. 32 bits in IPv4

• Simplification of header

• 7 fields vs. 13 fields in IPv4

• Helps speed up packet processing and reduces delay

• Better support for options

• Helps speed up packet processing and reduces delay

• Improvements to security

• These security improvements have been retrofitted to IPv4

References

Related documents

added load on all Internet backbone routers as network is removed from routing table. • Customer

I also bring my own spike tape (thin stage tape for marking on the floor where props will be positioned.) in order to mark off the boundaries I need to perform on the

RCOM internet routers and switches maintain and process the routing tables containing IPv6 addresses, RCOM uses routing protocol RIPv6 (RIPng) enabling routers to share

To evaluate the role of the nurse in sexual trafficking, this pilot study aimed to assess the baseline knowledge level of emergency department (ED) registered nurses at Eastern

1014.3.2.1 Waste discharge in establishments from fixtures and equipment which contain grease, includ- ing but not limited to, scullery sinks, pot and pan sinks, dishwashers,

Pero no todos los especialistas concuerdan en aceptar que el Cupido es una ékphrasis de tipo narrativo, sino sólo un “artificio verbal”, tal como sostiene Georgia Nugent, para

Si la escuela ha otorgado una autorización específica para su uso dentro de la misión educativa Pinecrest Academy Inc, los estudiantes pueden traer su propio dispositivo, como

reachability to explain exterior routing protocol with example of as with an ospf packets, of dynamic routing and those routers.. The routing update mechanism is a process