CS 457 Lecture 19 Global Internet - BGP. Fall 2011



Similar documents
IP addressing and forwarding Network layer

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

Network layer: Overview. Network layer functions IP Routing and forwarding

Компјутерски Мрежи NAT & ICMP

CS551 Multi-homing in BGP

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Chapter 4 Network Layer

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Internet Packets. Forwarding Datagrams

Chapter 4 Network Layer

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

8.2 The Internet Protocol

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Classful IP Addressing. Classless Addressing: CIDR. Routing & Forwarding: Logical View of a Router. IP Addressing: Basics

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Introduction to IP v6

Load balancing and traffic control in BGP

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Savera Tanwir. Internet Protocol

NetFlow/IPFIX Various Thoughts

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Internet Infrastructure Measurement: Challenges and Tools

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Introduction to TCP/IP

Lecture Computer Networks

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

RARP: Reverse Address Resolution Protocol

Internet Protocol Version 6 (IPv6)

IP Subnetting and Addressing

Chapter 9. IP Secure

Network Layer: Network Layer and IP Protocol

Border Gateway Protocol BGP4 (2)

APNIC elearning: BGP Attributes

BGP Router Startup Message Flow

2. IP Networks, IP Hosts and IP Ports

The Internet. Internet Technologies and Applications

Overlay Networks and Tunneling Reading: 4.5, 9.4

E : Internet Routing

Answers to Sample Questions on Network Layer

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

Network Address Translation (NAT)

Lecture 8. IP Fundamentals

IPv6 Advantages. Yanick Pouffary.

We Are HERE! Subne\ng

IP - The Internet Protocol

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

Lecture 18: Border Gateway Protocol"

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

Cisco IOS Flexible NetFlow Technology

Internet Architecture and Philosophy

Border Gateway Protocol (BGP)

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

BGP Best Path Selection Algorithm

Protocols. Packets. What's in an IP packet

Improving Reliability for Multi-Home Inbound Traffic: MHLB/I Packet-Level Inter-Domain Load-Balancing

CS 5480/6480: Computer Networks Spring 2012 Homework 3 Due by 1:25 PM MT, Monday March 5 th 2012

Transport and Network Layer

VLAN und MPLS, Firewall und NAT,

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

IPv6 Fundamentals Ch t ap 1 er I : ntroducti ti t on I o P IPv6 Copyright Cisco Academy Yannis Xydas

PART OF THE PICTURE: The TCP/IP Communications Architecture

NETWORK LAYER/INTERNET PROTOCOLS

Ethernet. Ethernet. Network Devices

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

Internet Peering, IPv6, and NATs. Mike Freedman V Networks

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Internet and IP addressing

Future Internet Technologies

DDoS Mitigation Techniques

Based on Computer Networking, 4 th Edition by Kurose and Ross

Technical Support Information Belkin internal use only

IPV6 流 量 分 析 探 讨 北 京 大 学 计 算 中 心 周 昌 令

How will the Migration from IPv4 to IPv6 Impact Voice and Visual Communication?

basic BGP in Huawei CLI

Voice over IP: RTP/RTCP The transport layer

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

Firewalls und IPv6 worauf Sie achten müssen!

Advanced BGP Policy. Advanced Topics

Route Discovery Protocols

Network Level Multihoming and BGP Challenges

IP address format: Dotted decimal notation:

Understanding and Optimizing BGP Peering Relationships with Advanced Route and Traffic Analytics

Telematics. 9th Tutorial - IP Model, IPv6, Routing

CS335 Sample Questions for Exam #2

IP Addressing Introductory material.

NAT and Firewall Traversal with STUN / TURN / ICE

Objectives of Lecture. Network Architecture. Protocols. Contents

ISTANBUL. 1.1 MPLS overview. Alcatel Certified Business Network Specialist Part 2

Transcription:

CS 457 Lecture 19 Global Internet - BGP Fall 2011

Decision Process Calculate degree of preference for each route in Adj-RIB-In as follows (apply following steps until one route is left): select route with highest LOCAL-PREF select route with shortest AS-PATH apply MED (if routes learned from same neighbor) select route with smallest NEXT-HOP cost

...Decision Process select route learned from E-BGP peer with lowest BGP ID select route from I-BGP neighbor with lowest BGP ID Install selected route in Loc-RIB Selectively disseminate routes to peers, update Adj-RIB-Out Done

Multi-homing With multi-homing, a single network has more than one connections to the Internet Improves reliability and performance: can accommodate link failure bandwidth is sum of links to Internet Multiple connections provide load sharing but not load balancing BGP cannot do load balancing

Issues With Multi-homing Symmetric routing while conventional wisdom prefers symmetric paths, many (most?) are asymmetric Packet re-ordering may trigger TCP s fast retransmit algorithm Other concerns: addressing, DNS, aggregation

Static Routing May Not Work ISP2 Static route from R1 to customer over L1 Static route from R2 to customer over L2 ISP3 ISPn Interconnect L1 R1 R2 ISP1 L2 Customer Static routing may send traffic from ISPs 2-n to customer over one link and traffic from ISP1 over the other link. Lacks flexibility.

Multi-homing with Multiple Providers Major issues: addressing aggregation Customer address space: delegated by ISP1 delegated by ISP2 delegated by ISP1 and ISP2 obtained independently Advantages and disadvantages? ISP1 ISP3 Customer ISP2

Case 1: Customer Uses Address Space From One ISP (1 or 2) Customer uses address space from ISP1 ISP1 advertises /16 aggregate Customer advertises /24 route to ISP2 ISP2 relays route to ISP1 and ISP3 ISP2-3 use the /24 route ISP1 routes directly Problems with traffic load? 138.39/16 ISP1 ISP3 Customer 138.39.1/24 ISP2

Case 2: Customer Uses Address Space From Both ISPs ISP1 and ISP2 continue to announce aggregates Load sharing depends on traffic to two prefixes Lack of reliability: if ISP1 link goes down, part of customer becomes inaccessible Customer may announce prefixes to both ISPs ISP3 ISP1 ISP2 138.39.1/24 204.70.1/24 Customer

Case 3: Customer Uses Its Own Address Space Offers the most control, but at the cost of aggregation Still need to control paths: suppose ISP1 large, ISP2-3 small want traffic directly from ISP1, but ISP3 should send via ISP2 customer advertises artificially long path to ISP1, but local-pref attribute at ISP overrides ISP3 learns shorter path from ISP2 ISP1 ISP3 Customer ISP2

How can BGP express the following policies: 2 will not act as transit to 3 2 will not accept packets sourced in 1 1 will use the green path for packets destined to 4 and the red for packets destined to 5 1 2 2.1 2.2 1.1 1.2 2.2.1 5 3 3.1 3.2 4.1 4.2 4 5.1 5.2

IPv6 Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation: header format helps speed processing/ forwarding header changes to facilitate QoS IPv6 datagram format: fixed-length 40 byte header no fragmentation allowed

IP datagram format IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to how much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead 32 bits head. type of ver len service 16-bit identifier flgs time to upper live layer length fragment offset Internet checksum 32 bit source IP address 32 bit destination IP address Options (if any) data (variable length, typically a TCP or UDP segment) total datagram length (bytes) for fragmentation/ reassembly E.g. timestamp, record route taken, specify list of routers to visit.

IPv6 Header (Cont) Priority: identify priority among datagrams in flow Flow Label: identify datagrams in same flow. (concept of flow not well defined). Next header: identify upper layer protocol for data

Other Changes from IPv4 Checksum: removed entirely to reduce processing time at each hop Options: allowed, but outside of header, indicated by Next Header field ICMPv6: new version of ICMP additional message types, e.g. Packet Too Big multicast group management functions

Transition From IPv4 To IPv6 Not all routers can be upgraded simultaneous no flag days How will the network operate with mixed IPv4 and IPv6 routers? Tunneling: IPv6 carried as payload in IPv4 datagram among IPv4 routers

Tunneling Logical view: A B E F tunnel IPv6 IPv6 IPv6 IPv6 Physical view: A B C D E F IPv6 IPv6 IPv4 IPv4 IPv6 IPv6 Flow: X Src: A Dest: F Src:B Dest: E Flow: X Src: A Src:B Dest: E Flow: X Src: A Flow: X Src: A Dest: F data Dest: F Dest: F data data data A-to-B: IPv6 B-to-C: IPv6 inside IPv4 B-to-C: IPv6 inside IPv4 E-to-F: IPv6

NAT: Network Address Translation Motivation: local network uses just one IP address as far as outside word is concerned: no need to be allocated range of addresses from ISP: - just one IP address is used for all devices can change addresses of devices in local network without notifying outside world can change ISP without changing addresses of devices in local network devices inside local net not explicitly addressable, visible by outside world (a security plus).

NAT: Network Address Translation 16-bit port-number field: 60,000 simultaneous connections with a single LAN-side address! NAT is controversial (books term): NAT is evil (protocol designer and security term) routers should only process up to layer 3 violates end-to-end argument NAT possibility must be taken into account by app designers, eg, P2P applications address shortage should instead be solved by IPv6

NAT: Network Address Translation rest of Internet 138.76.29.7 local network (e.g., home network) 10.0.0/24 10.0.0.4 10.0.0.1 10.0.0.2 10.0.0.3 All datagrams leaving local network have same single source NAT IP address: 138.76.29.7, different source port numbers Datagrams with source or destination in this network have 10.0.0/24 address for source, destination (as usual)

NAT: Network Address Translation Implementation: NAT router must: outgoing datagrams: replace (source IP address, port #) of every outgoing datagram to (NAT IP address, new port #)... remote clients/servers will respond using (NAT IP address, new port #) as destination addr. remember (in NAT translation table) every (source IP address, port #) to (NAT IP address, new port #) translation pair incoming datagrams: replace (NAT IP address, new port #) in dest fields of every incoming datagram with corresponding (source IP address, port #) stored in NAT table

NAT: Network Address Translation 2: NAT router changes datagram source addr from 10.0.0.1, 3345 to 138.76.29.7, 5001, updates table 2 NAT translation table WAN side addr LAN side addr 138.76.29.7, 5001 10.0.0.1, 3345 S: 138.76.29.7, 5001 D: 128.119.40.186, 80 10.0.0.4 S: 10.0.0.1, 3345 D: 128.119.40.186, 80 1 1: host 10.0.0.1 sends datagram to 128.119.40, 80 10.0.0.1 10.0.0.2 138.76.29.7 S: 128.119.40.186, 80 D: 138.76.29.7, 5001 3 3: Reply arrives dest. address: 138.76.29.7, 5001 S: 128.119.40.186, 80 D: 10.0.0.1, 3345 4 10.0.0.3 4: NAT router changes datagram dest addr from 138.76.29.7, 5001 to 10.0.0.1, 3345

What s Next Read Chapter 1, 2, 3, and 4.1-4.3 Next Lecture Topics from Chapter 5.1 and 5.2 UDP and TCP Homework Due Thursday in lecture Project 3 Will be posted this week