Review. Some slides are in courtesy of J. Kurose and K. Ross

Similar documents
Chapter 4 roadmap. CS555, Spring /14/2005. WMU-CS, Dr. Gupta 1. Multicast Routing: Problem Statement. Approaches for building mcast trees

Broadcast Routing. Multicast. Flooding. In-network duplication. deliver packets from source to all other nodes source duplication is inefficient:

Chapter 6 The Link Layer and LANs

DATA COMMUNICATOIN NETWORKING

Lecture 8. Network Layer (cont d) Network Layer 1-1

Chapter 5 Link Layer and LANs

CS 3516: Computer Networks

CSC 4900 Computer Networks: The Link Layer

CS 3516: Advanced Computer Networks

Network Layer II. Getting IP addresses. DHCP client-server scenario. DHCP client-server scenario. C compiler. You writing assignment 2

Chapter 4 Network Layer

CSC 401 Data and Computer Communications Networks

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Computer Networks. Wenzhong Li. Nanjing University

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

CSCI Computer Networks Fall 2016

Exercises to Communication Systems

Lecture 6. TCP/IP Network Layer (4)

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Chapter 5: Link layer

Network Layer PREPARED BY AHMED ABDEL-RAOUF

CSCE 463/612 Networks and Distributed Processing Spring 2018

CS 455/555 Intro to Networks and Communications. Link Layer

Lecture 20: Link Layer

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Link layer: introduction

Internet Control Message Protocol (ICMP)

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Lecture 16: Network Layer Overview, Internet Protocol

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

Data Link Layer Overview

Chapter 09 Network Protocols

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Chapter 4: Network Layer

Master Course Computer Networks IN2097

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

Chapter 4 Network Layer: The Data Plane

internet technologies and standards

Multicast Communications

ICS 351: Today's plan. routing protocol comparison encapsulation network dynamics multicasting in general IP multicasting IGMP PIM

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Data Link Layer Overview

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

CSC 401 Data and Computer Communications Networks

ETSF10 Internet Protocols Routing on the Internet

Data Link Layer Overview

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Data Link Layer Overview

Network Layer: Control/data plane, addressing, routers

Principles behind data link layer services:

Data Link Layer: Multi Access Protocols

The Link Layer and LANs. Chapter 6: Link layer and LANs

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Master Course Computer Networks IN2097

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

CMPE 80N: Introduction to Networking and the Internet

Chapter 4: network layer

Network Layer: Internet Protocol

Introduction to Computer Networks. 03 Data Link Layer Introduction

Lecture 8 Link Layer: functionality, error detection, media access algorithm

The Internet network layer

Review is pretty much complete! Please help formatting review (indenting). - Jorden

Multicast. Midterm. EECS 122: Lecture 16. University of California Berkeley. Exam was not meant to be easy

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Multicast Communications. Slide Set were original prepared by Dr. Tatsuya Susa

HY 335 Φροντιστήριο 8 ο

CMPE 150: Introduction to Computer Networks

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

Chapter 4 Network Layer: The Data Plane

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

TDTS06: computer Networks

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Transport Layer. Chapter 3: Transport Layer

Chapter 4 Network Layer: The Data Plane

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Router Architecture Overview

COMP211 Chapter 4 Network Layer: The Data Plane

Multicast Communications. Tarik Čičić, 4. March. 2016

Internet Protocol, Version 6

ECE4110 Internetwork Programming. Introduction and Overview

Chapter 3 Transport, Network and Link Layers

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Network layer: Overview. Network Layer Functions

Chapter 4 Network Layer

Chapter 12 Network Protocols

LINK LAYER AND LANS 1

Chapter 4 Network Layer: The Data Plane

CSCE 463/612 Networks and Distributed Processing Spring 2018

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

internet technologies and standards

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Transcription:

Review The Internet (IP) Protocol Datagram format IP fragmentation ICMP: Internet Control Message Protocol NAT: Network Address Translation Routing in the Internet Intra-AS routing: RIP and OSPF Inter-AS routing: BGP Some slides are in courtesy of J. Kurose and K. Ross

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 ver head. len 16-bit identifier time to live type of service upper layer 32 bits flgs 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.

Why different Intra- and Inter-AS routing? Policy: Inter-AS: admin wants control over how its traffic routed, who routes through its net. Intra-AS: single admin, so no policy decisions needed Scale: hierarchical routing saves table size, reduced update traffic Performance: Intra-AS: can focus on performance Inter-AS: policy may dominate over performance

Multicast Routing Overview Data Link Layer Services Some slides are in courtesy of J. Kurose and K. Ross

Multicast: one sender to many receivers Multicast: act of sending datagram to multiple receivers with single transmit operation analogy: one teacher to many students Question: how to achieve multicast Multicast via unicast source sends N unicast datagrams, one addressed to each of N receivers routers forward unicast datagrams multicast receiver (red) not a multicast receiver (red)

Multicast: one sender to many receivers Multicast: act of sending datagram to multiple receivers with single transmit operation analogy: one teacher to many students Question: how to achieve multicast Multicast routers (red) duplicate and forward multicast datagrams Network multicast Router actively participate in multicast, making copies of packets as needed and forwarding towards multicast receivers

Multicast: one sender to many receivers Multicast: act of sending datagram to multiple receivers with single transmit operation analogy: one teacher to many students Question: how to achieve multicast Application-layer multicast end systems involved in multicast copy and forward unicast datagrams among themselves

Internet Multicast Service Model 128.59.16.12 128.119.40.186 multicast group 226.17.30.197 128.34.108.63 128.34.108.60 multicast group concept: use of indirection hosts addresses IP datagram to multicast group routers forward multicast datagrams to hosts that have joined that multicast group

Multicast groups class D Internet addresses reserved for multicast: host group semantics: o anyone can join (receive) multicast group o anyone can send to multicast group o no network-layer identification to hosts of members needed: infrastructure to deliver mcast-addressed datagrams to all hosts that have joined that multicast group

Joining a mcast group: two-step process local: host informs local mcast router of desire to join group: IGMP (Internet Group Management Protocol) wide area: local router interacts with other routers to receive mcast datagram flow many protocols (e.g., DVMRP, MOSPF, PIM) IGMP IGMP wide-area multicast routing IGMP

Multicast Routing: Problem Statement Goal: find a tree (or trees) connecting routers having local mcast group members tree: not all paths between routers used source-based: different tree from each sender to rcvrs shared-tree: same tree used by all group members Shared tree Source-based trees

Approaches for building mcast trees Approaches: source-based tree: one tree per source shortest path trees reverse path forwarding group-shared tree: group uses one tree minimal spanning (Steiner) center-based trees

Shortest Path Tree mcast forwarding tree: tree of shortest path routes from source to all receivers Dijkstra s algorithm S: source R1 1 R2 3 4 2 R4 5 R5 LEGEND router with attached group member router with no attached group member R3 R6 6 R7 i link used for forwarding, i indicates order link added by algorithm

Reverse Path Forwarding rely on router s knowledge of unicast shortest path from it to sender each router has simple forwarding behavior: if (mcast datagram received on incoming link on shortest path back to center) then flood datagram onto all outgoing links else ignore datagram

Reverse Path Forwarding: example S: source R2 R1 R4 R5 LEGEND router with attached group member router with no attached group member R3 R6 R7 datagram will be forwarded datagram will not be forwarded result is a source-specific reverse SPT may be a bad choice with asymmetric links

Reverse Path Forwarding: pruning forwarding tree contains subtrees with no mcast group members no need to forward datagrams down subtree prune msgs sent upstream by router with no downstream group members S: source LEGEND R1 R4 router with attached group member R3 R2 R6 P P R7 R5 P router with no attached group member prune message links with multicast forwarding

Shared-Tree: Steiner Tree Steiner Tree: minimum cost tree connecting all routers with attached group members problem is NP-complete excellent heuristics exists not used in practice: computational complexity information about entire network needed monolithic: rerun whenever a router needs to join/leave

Center-based trees single delivery tree shared by all one router identified as center of tree to join: edge router sends unicast join-msg addressed to center router join-msg processed by intermediate routers and forwarded towards center join-msg either hits existing tree branch for this center, or arrives at center path taken by join-msg becomes new branch of tree for this router

Center-based trees: an example Suppose R6 chosen as center: LEGEND R1 3 R4 router with attached group member R3 R2 1 R6 2 R7 R5 1 router with no attached group member path order in which join messages generated

Multicast Routing Overview Data Link Layer Services Some slides are in courtesy of J. Kurose and K. Ross

Link Layer: Introduction Some terminology: hosts and routers are nodes (bridges and switches too) communication channels that connect adjacent nodes along communication path are links wired links wireless links LANs Data unit is a frame, encapsulates datagram link data-link layer has responsibility of transferring datagram from one node to adjacent node over a link

Protocol layering and data Each layer takes data from above adds header information to create new data unit passes new data unit to layer below source destination Hl Ht HnHt HnHt M M M M application transport network link physical application transport network link physical Hl Ht HnHt HnHt M M M M message segment datagram frame

Link layer: context Datagram transferred by different link protocols over different links: e.g., Ethernet on first link, frame relay on intermediate links, 802.11 on last link Each link protocol provides different services e.g., may or may not provide rdt over link transportation analogy trip from New York to Lausanne limo: New York to JFK plane: JFK to Geneva train: Geneva to Lausanne

Link Layer Services Framing, link access: encapsulate datagram into frame, adding header, trailer channel access if shared medium physical addresses used in frame headers to identify source, dest different from IP address! Error Detection: errors caused by signal attenuation, noise. receiver detects presence of errors: signals sender for retransmission or drops frame Error Correction: receiver identifies and corrects bit error(s) without resorting to retransmission Half-duplex and full-duplex with half duplex, nodes at both ends of link can transmit, but not at same time

Adaptors Communicating sending node datagram link layer protocol rcving node frame frame adapter adapter link layer implemented in adaptor (aka NIC) Ethernet card, PCMCI card, 802.11 card sending side: encapsulates datagram in a frame adds error checking bits, rdt, flow control, etc. receiving side looks for errors, rdt, flow control, etc extracts datagram, passes to rcving node

Error Detection EDC= Error Detection and Correction bits (redundancy) D = Data protected by error checking, may include header fields Error detection not 100% reliable! protocol may miss some errors, but rarely larger EDC field yields better detection and correction

Parity Checking Single Bit Parity: Detect single bit errors Two Dimensional Bit Parity: Detect and correct single bit errors Odd parity Even parity 0 0

Internet checksum Goal: detect errors (e.g., flipped bits) in transmitted segment (note: used at transport layer only) Sender: treat segment contents as sequence of 16-bit integers checksum: addition (1 s complement sum) of segment contents sender puts checksum value into UDP checksum field Receiver: compute checksum of received segment check if computed checksum equals checksum field value: NO - error detected YES - no error detected. But maybe errors nonetheless? More later.