CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

Similar documents
CIS 551 / TCOM 401 Computer and Network Security

Computer and Network Security

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

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

The Internet. Overview. Network building blocks

Recap. Recap. Internetworking. First mile problem. Internet. End Users. Last mile problem. Direct link networks Packet switching.

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

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

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Internetworking Part 2

The Internet Protocol (IP)

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

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

ECE 4450:427/527 - Computer Networks Spring 2017

Internetworking Part 2

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Network Layer/IP Protocols

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

Vorlesung Kommunikationsnetze

Chapter 3 Internetworking

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

TSIN02 - Internetworking

IP Protocols. ALTTC/Oct

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

Internet Protocol (IP)

Introduction to Internetworking

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

The Internetworking Problem. Internetworking. A Translation-based Solution

Introduction to routing in the Internet

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

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

Introduction to Internetworking

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

ECE4110 Internetwork Programming. Introduction and Overview

Lecture 3: Packet Forwarding

Introduction to routing in the Internet

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

CS155b: E-Commerce. Lecture 3: Jan 16, How Does the Internet Work? Acknowledgements: S. Bradner and R. Wang

Network Layer: Control/data plane, addressing, routers

TCP/IP THE TCP/IP ARCHITECTURE

COMP/ELEC 429/556 Introduction to Computer Networks

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

ET4254 Communications and Networking 1

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

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

End-to-End Communication

IP : Internet Protocol

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

ECE 158A: Lecture 7. Fall 2015

TSIN02 - Internetworking

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

Network Layer Protocols

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Interconnecting Networks with TCP/IP

Lecture 2: Basic routing, ARP, and basic IP

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

CS 455 Internet Architecture, Page 3 ffl By 1985, the ARPANET was heavily used and congested; the National Science Foundation (NSF) initiated the NSFN

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

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

Communications Software. CSE 123b. CSE 123b. Spring Lecture 2: Internet architecture and. Internetworking. Stefan Savage

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

Introduction to Networks and the Internet

Lecture 9: Internetworking

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

Design Considerations : Computer Networking. Outline. Challenge 1: Address Formats. Challenge. How to determine split of functionality

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

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

CS 457 Lecture 11 More IP Networking. Fall 2011

Administrivia. Homework on class webpage If you are having problems following me in class (or doing the homework problems), please buy the textbook

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

COMPUTER NETWORKS CS CS 55201

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

IP - The Internet Protocol

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1

Network Layer: Internet Protocol

CHAPTER-2 IP CONCEPTS

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

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

cs144 Midterm Review Fall 2010

ECE 461 Internetworking Fall Quiz 1

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

C14a: Internetworks and The Internet

ECE 435 Network Engineering Lecture 12

Lecture 11: Networks & Networking

SEN366 (SEN374) (Introduction to) Computer Networks

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

Transcription:

CIS 551 / TCOM 401 Computer and Network Security Spring 2006 Lecture 16

Announcements Midterm II March 21st (One week from today) In class Same format as last time Will cover all material since Midterm I Talk: "Analyzing Intrusions Using Operating System Level Information Flow" Sam King, University of Michigan, Ann Arbor 3/16/06 CIS/TCOM 551 2

Internet Protocol Interoperability FTP HTTP NV TFTP TCP Overlays (running at hosts) UDP IP Virtual Network Infrastructure (runs globally) Networks (run locally) Ethernet ATM FDDI 3/16/06 CIS/TCOM 551 3

Internetworks Router (Gateway) 3/16/06 CIS/TCOM 551 4

Internetworks H1 H2 H3 Ethernet Ethernet H7 R3 H8 R1 H4 Point-to-Point Link (e.g., ISDN) FDDI Token Ring R2 H5 H6 3/16/06 CIS/TCOM 551 5

IP Encapsulation H1 TCP R1 R2 R3 H8 TCP IP IP IP IP IP ETH ETH FDDI FDDI PPP PPP ETH ETH Example of protocol layers used to transmit from H1 to H8 in network shown on previous slide. 3/16/06 CIS/TCOM 551 6

IP Service Model Choose minimal service model All nets can implement Tin cans and a string extremum Features: Best-effort datagram delivery Reliability, etc. as overlays Packet format standardized 3/16/06 CIS/TCOM 551 7

IPv4 Packet Format 0 4 8 16 19 31 Version Hlen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable length) Pad DATA 3/16/06 CIS/TCOM 551 8

Fields of IPv4 Header Version Version of IP, example header is IPv4 First field so easy to implement case statement Hlen Header length, in 32-bit words TOS Type of Service (rarely used) Priorities, delay, throughput, reliability Length Length of datagram, in bytes 16 bits, hence max. of 65,536 bytes Fields for fragmentation and reassembly Identifier Flags Offset 3/16/06 CIS/TCOM 551 9

Header fields, continued TTL Time to live (in reality, hop count) 64 is the current default (128 also used) Protocol e.g., TCP (6), UDP(17), etc. Checksum Checksum of header (not CRC) If header fails checksum, discard the whole packet SourceAddr, DestinationAddr 32 bit IP addresses - global, IP-defined Options length can be computed using Hlen 3/16/06 CIS/TCOM 551 10

IP Datagram Delivery Every IP packet (datagram) contains the destination IP address The network part of the address uniquely identifies a single network that is part of the larger Internet. All hosts and routers that share the same network part of their address are connected to the same physical network. Routers can exchange packets on any network they re attached to. 3/16/06 CIS/TCOM 551 11

IP addresses Hierarchical, not flat as in Ethernet 7 24 0 Network Host A 1 0 14 16 Network Host B 1 1 0 21 8 Network Host C Written as four decimal numbers separated by dots: 158.130.14.2 3/16/06 CIS/TCOM 551 12

Network Classes Class # of nets # of hosts per net A 126 ~16 million B 8192 65534 C ~2 million 254 3/16/06 CIS/TCOM 551 13

IP Forwarding algorithm If (Network # dest == Network # interface) then deliver to destination over interface else if (Network # dest in forwarding table) deliver packet to NextHop router else deliver packet to default router Forwarding tables Contain (Network #, NextHop) pairs Additional information, like Built by routing protocol that learns the network topology, adapts to changes 3/16/06 CIS/TCOM 551 14

Subnetting Problem: IP addressing scheme leads to fragmentation A class B network with only 300 machines on it wastes > 65,000 addresses Need a way to divide up a single network address space into multiple smaller subnetworks. Idea: One IP network number allocated to several physical networks. The multiple physical networks are called subnets Should be close together (why?) Useful when a large company (or university!) has many physical networks. 3/16/06 CIS/TCOM 551 15

Subnet Numbers Solution: Subnetting All nodes are configured with subnet mask Allows definition of a subnet number All hosts on a physical subnetwork share the same subnet number Subnet Mask (255.255.255.0) 111111111111111111111111 00000000 Subnetted Address: Network number Subnet ID Host ID 3/16/06 CIS/TCOM 551 16

Example of Subnetting Subnet mask: 255.255.255.128 Subnet #: 128.96.34.0 H1 128.96.34.15 128.96.34.1 R1 128.96.34.130 128.96.34.129 128.96.33.1 R1 Subnet mask: 255.255.255.128 Subnet #: 128.96.34.128 H2 128.96.34.139 H3 128.96.33.14 Subnet mask: 255.255.255.0 Subnet #: 128.96.33.0 3/16/06 CIS/TCOM 551 17

Subnets, continued Mask is bitwise-anded with address This is done at routers Router tables in this model: <Subnet #, Subnet Mask, NextHop> Subnetting allows a set of physical networks to look like a single logical network from elsewhere 3/16/06 CIS/TCOM 551 18

Forwarding Algorithm D = destination IP address for each forwarding table entry (SubnetNumber, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNumber if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (router) 3/16/06 CIS/TCOM 551 19

ARP - Address Resolution Protocol Problem: Need mapping between IP and link layer addresses. Solution: ARP Every host maintains IP Link layer mapping table (cache) Timeout associated with cached info (15 min.) Sender Broadcasts Who is IP addr X? Broadcast message includes sender s IP & Link Layer address Receivers Any host with sender in cache refreshes time-out Host with IP address X replies IP X is Link Layer Y Target host adds sender (if not already in cache) 3/16/06 CIS/TCOM 551 20

ICMP: Internet Control Message Protocol Collection of error & control messages Sent back to the source when Router or Host cannot process packet correctly Error Examples: Destination host unreachable Reassembly process failed TTL reached 0 IP Header Checksum failed Control Example: Redirect tells source about a better route 3/16/06 CIS/TCOM 551 21

Domain Name System System for mapping mnemonic names for computers into IP addresses. zeta.cis.upenn.edu 158.130.12.244 Domain Hierarchy Name Servers Name Resolution 3/16/06 CIS/TCOM 551 22

Domain Name Hierarchy edu com gov mil org net cornell upenn cisco yahoo nasa nsf arpa navy cis seas wharton 3/16/06 CIS/TCOM 551 23

Hierarchy of Name Servers Root Name Server Cornell Name Server Upenn Name Server CIS Name Server SEAS Name Server Wharton Name Server 3/16/06 CIS/TCOM 551 24

Records on Name Servers < Name, Value, Type, Class > Types A Host to address mappings NS Name server address mappings CNAME Aliases MX Mail server mappings Class IN for IP addresses 3/16/06 CIS/TCOM 551 25

Name resolution client zeta.cis.upenn.edu 198.168.0.100 Local Name server zeta.cis.upenn.edu 128.196.128.233 zeta.cis.upenn.edu 198.168.0.1 zeta.cis.upenn.edu Root Name server Upenn Name server 198.168.0.100 CIS Name server 3/16/06 CIS/TCOM 551 26