cs144 Midterm Review Fall 2010

Similar documents
ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

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

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

CS 3516: Computer Networks

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

CS 3516: Advanced Computer Networks

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

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

COMP211 Chapter 4 Network Layer: The Data Plane

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

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

CSC 401 Data and Computer Communications Networks

CSCI Networking Name:

Chapter 4: Network Layer

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Network Layer: Internet Protocol

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

CS 458 Internet Engineering Spring First Exam

Lecture 16: Network Layer Overview, Internet Protocol

Router Architecture Overview

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

Introduction to Computer Networking. Guy Leduc. Chapter 4 Network Layer: The Data Plane. Chapter 4: Network Layer Data Plane

internet technologies and standards

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Chapter 4: network layer

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

ECE4110 Internetwork Programming. Introduction and Overview

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

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

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

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer

CSCI Computer Networks Fall 2016

Network layer: Overview. Network Layer Functions

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

CSC 401 Data and Computer Communications Networks

EE 610 Part 2: Encapsulation and network utilities

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Network Layer: Data Plane 4-2

internet technologies and standards

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Chapter 4 Network Layer: The Data Plane

ECE 461 Internetworking Fall Quiz 1

IPv4. Christian Grothoff.

CS 416: Operating Systems Design April 11, 2011

Network Layer: Control/data plane, addressing, routers

Chapter 4 Network Layer: The Data Plane

CS 356: Computer Network Architectures. Lecture 14: Switching hardware, IP auxiliary functions, and midterm review. [PD] chapter 3.4.1, 3.2.

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

Chapter 4 Network Layer

CSE 461 Midterm Winter 2018

Position of IP and other network-layer protocols in TCP/IP protocol suite

CS 421: COMPUTER NETWORKS SPRING FINAL May 24, minutes. Name: Student No: TOT

CS 349/449 Internet Protocols Midterm Exam Winter /21/2003

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

Introduction to TCP/IP networking

Master Course Computer Networks IN2097

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015

TDTS06: computer Networks

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Network Model. Why a Layered Model? All People Seem To Need Data Processing

Internet Protocol (IP)

14-740: Fundamentals of Computer and Telecommunication Networks

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

The Network Layer Forwarding Tables and Switching Fabric

CSC 4900 Computer Networks: Network Layer

ECE 4450:427/527 - Computer Networks Spring 2017

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

CMPE 80N: Introduction to Networking and the Internet

Networking Fundamentals

EE-311 Data Communication & Networks

ECE 461 Internetworking Fall Quiz 1

Internet protocol stack

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

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

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

Chapter 4 Network Layer

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 8

CSC358 Week 6. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Vorlesung Kommunikationsnetze

Chapter 4 Network Layer: The Data Plane

Internetworking Part 2

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

CSC 4900 Computer Networks: Network Layer

b. Suppose the two packets are to be forwarded to two different output ports. Is it

Chapter 4 Network Layer: The Data Plane

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-GA Operating Systems. Networking. Hubertus Franke

Review for Chapter 4 R1,R2,R3,R7,R10,R11,R16,R17,R19,R22,R24, R26,R30 P1,P2,P4,P7,P10,P11,P12,P14,P15,P16,P17,P22,P24,P29,P30

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Transcription:

cs144 Midterm Review Fall 2010

Administrivia Lab 3 in flight. Due: Thursday, Oct 28 Midterm is this Thursday, Oct 21 (during class) Remember Grading Policy: - Exam grade = max (final, (final + midterm)/2) - Final grade will be computed as: max(2 exam + lab, exam + 2 lab) 3

Computer Networks Interconnected computers that move information The Internet: - the network of networks - (try) to deliver information from one host to another - Best Effort - The End to End Principle

Protocol Layering 7 6 5 4 3 2 1 Application Presentation Session Transport Network Link Physical

Example Encapsulation Sending Receiving Application data Transport header IP header Link layer header

Addressing Each node typically has unique address - (or at least is made to think it does when there is shortage) Each layer can have its own addressing - Link layer: e.g., 48-bit Ethernet address (interface) - Network layer: 32-bit IP address (node) - Transport layer: 16-bit UDP/TCP port (service)

Physical Layer (Layer 1) Specifies the physical medium (e.g. Cat5, WiFi) Specifies the signal (physics to data (chips)) Specifies the bits (chips to bits) Pre L Data

Link Layer (Layer 2) Single-hop addressing (e.g. Ethernet address) Media Access Control - Link-layer congestion control - Collision detection/collision avoidance Single-hop acknowledgements Preamble 7 x 10101010 Physical Link Layer 3 Link SFD 10101011 Src Dest Type/ Len Payload 6 bytes 6 bytes 2 bytes 46-1500 bytes CRC 4 bytes Gap 96 ns, 960 ns, 9600 ns

Network Layer (Layer 3) Narrow waist of IP Glue lower-level networks unreliable, best-effort Packet forwarding Routing protocols FTP HTTP NV TFTP TCP UDP IP NET 1 NET 2 NET n

IPv4 packet format

Network Layer: IP Addressing Globally unique (or made to seem that way) Originally had Class prefixes Now, CIDR blocks (ip addr + prefix length) IPv4, IPv6 ICMP: Internet Control Message Protocol ARP: Address Resolution Protocol

Network Layer: IP Forwarding Passing packets from input to output ports Pick output port based on destination addr - Find out-port or out-port, MAC addr pair - Longest Prefix Matching Switches (shared bus, crossbar, Banyan)

Network Layer: IP Routing Process of populating forwarding table Routers exchange messages about network Find a route for every destination Intra-domain vs Inter-domain routing - Intra-: routers within an Autonomous System (AS) - Inter-: decentralized, the entire internet. Two kinds of Routing Protocols: - Link State: global view of network (OSPF) - Distance Vector: only local state (RIP)

Transport Layer (Layer 4) Provide multiplexing at the host Error detection UDP and TCP new narrow waist

Transport Layer: UDP user datagram protocol Unreliable and unordered Checksum on whole packet (+ pseudo header) No flow control, No Reliability

Transport Layer: TCP tansmission control protocol Full duplex, connection-oriented byte stream Provides: - Reliability - In Order - Flow control - Congestion control

Application Layer (Layer 7) Sockets (just like files) HTTP, FTP, BitTorrent, Skype, etc.

Practice Problems Practice Midterm (posted on website) Book (questions at the end of each chapter) Some next up!

Question 1 Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90; the second has sequence number 110. How much data is in the first segment? Suppose that the first segment is lost but the second segment arrives at B. What will the ACK number be in the acknowledgment that Host B sends to Host A?

Answer 1 How much data is in the first segment? 20 bytes. Bytes 90-109 are in the first segment. What will the ACK number be in the acknowledgment that Host B sends to Host A? 90. TCP might buffer the second packet, but the ACK is still requesting the first segment. (In order requirement)

Question 2 A 10-port hub is connected to 10 hosts using gigabit links. What is the maximum aggregate transfer rate of data flowing through this network?

Answer 2 A 10-port hub is connected to 10 hosts using gigabit links. What is the maximum aggregate transfer rate of data flowing through this network? All ports are part of the same collision domain only one device can send at a time. Therefore, peak bandwidth is one gigabit

Question 3: Routing with CIDR IP Address Netmask Next hop Interface 0.0.0.0 0.0.0.0 5.10.1.1 eth0 12.1.0.0 255.255.0.0 12.1.0.1 eth1 12.1.1.0 255.255.255.0 12.1.1.1 eth2 12.1.1.200 255.255.255.255 12.1.1.200 eth3 What is the longest prefix matching for: 12.1.1.200 12.1.0.20 128.12.92.53

Answer 3: Routing with CIDR IP Address Netmask Next hop Interface 0.0.0.0 0.0.0.0 5.10.1.1 eth0 12.1.0.0 255.255.0.0 12.1.0.1 eth1 12.1.1.0 255.255.255.0 12.1.1.1 eth2 12.1.1.200 255.255.255.255 12.1.1.200 eth3 What is the longest prefix matching for: 12.1.1.200 12.1.1.200/32 12.1.0.20 12.1.1.0/24 128.12.92.53 0.0.0.0/0

Question 4: Fragmentation When an IP packet needs to traverse a link with a lower MTU, it can be fragmented. Does fragmenting increase or reduce the likelihood of dropping the packet? Consider sending a 2100 byte datagram over a link with MTU of 700 bytes. How many fragments are generated? What fields are changed in the IP frame?

Answer 4: Fragmentation Does fragmenting increase or reduce the likelihood of dropping the packet? Increases it. Each fragment can be dropped independently of the others, yet the packet needs all fragments to be reconstructed. How many fragments are generated? 700 MTU = 680b of data + 20b IP header. = 3.08, so at least 4 fragments. 2100 680 What fields are changed in the IP frame? Total Length, More flag, Fragment Offset, Checksum Identifier field is not changed, but used to reconstruct packet.

Question 5: Distance Vector