IP address format: Dotted decimal notation: 10000000 00001011 00000011 00011111 128.11.3.31



Similar documents
IP Subnetting and Addressing

8.2 The Internet Protocol

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

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

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

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Transport and Network Layer

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

Ethernet. Ethernet. Network Devices

Lecture Computer Networks

IP Addressing. IP Addresses. Introductory material.

IP Addressing Introductory material.

TCP/IP Basis. OSI Model

Tutorial (03) IP addresses & Sub netting

Network Security TCP/IP Refresher

Savera Tanwir. Internet Protocol

Future Internet Technologies

Networking Test 4 Study Guide

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

(Refer Slide Time: 02:17)

Internetworking and IP Address

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

Internet Protocols Fall Lectures 7-8 Andreas Terzis

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

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

2. IP Networks, IP Hosts and IP Ports

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

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

Internetworking and Internet-1. Global Addresses

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Chapter 4 Network Layer

IP Addressing A Simplified Tutorial

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

How do I get to

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

ICS 351: Today's plan

IP addressing and forwarding Network layer

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

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

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

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

Introduction to LAN/WAN. Network Layer (part II)

Chapter 12 Supporting Network Address Translation (NAT)

Introduction to IP v6

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

Technical Support Information Belkin internal use only

TCP/IP and the Internet

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

Introduction to TCP/IP

IP - The Internet Protocol

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

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

TCP/IP Networking Terms you ll need to understand: Techniques you ll need to master:

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

We Are HERE! Subne\ng

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

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Proxy Server, Network Address Translator, Firewall. Proxy Server

Variable length subnetting

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

Unix System Administration

Lecture 8. IP Fundamentals

Internet Protocols. Background CHAPTER

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

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Transport Layer Protocols

Internetworking. Agenda Internetworking & universal services Protocols for Internetworking ISO 7-Layer Reference Model TCP/IP Layering Model

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Introduction to IP networking

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

PART IV. Network Layer

Internet Addresses (You should read Chapter 4 in Forouzan)

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

Overview of TCP/IP. TCP/IP and Internet

The Internet. Internet Technologies and Applications

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

- IPv4 Addressing and Subnetting -

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Classful IP Addressing (cont.)

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

TCP/IP Fundamentals. Edmund Lam IT Audit Manager University of California 7/25/99 1

Types of IPv4 addresses in Internet

RARP: Reverse Address Resolution Protocol

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

[Prof. Rupesh G Vaishnav] Page 1

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

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Network Programming TDC 561

Transcription:

IP address format: 7 24 Class A 0 Network ID Host ID 14 16 Class B 1 0 Network ID Host ID 21 8 Class C 1 1 0 Network ID Host ID 28 Class D 1 1 1 0 Multicast Address Dotted decimal notation: 10000000 00001011 00000011 00011111 128.11.3.31 Symbolic name to IP address translation: domain name server (DNS).

Hierarchical organization: 2-level network and host Each interface (NIU) has an IP address; single host can have multiple IP addresses. single-homed vs. multi-homed Running out of addresses...

Waste of address space: typical organization: network of networks not too many hosts (class B: 64K) Solution: subnetting subdivide host ID into subnetwork ID and host ID 14 16 Class B 1 0 Network ID Host ID Subnet Mask 24 8 1 1 1 1 1 1 1... 1 1 1 1 1 0 0 0... 0 0 14 8 8 1 0 Network ID Subnet ID Host ID To determine subnet ID: AND IP address and subnet mask already know if class A, B, C, or D 3-level hierarchy

Forwarding and address resolution: Subnet ID 128.10.2.0 128.10.3.0 128.10.4.0 Subnet Mask 255.255.255.0 255.255.255.0 255.255.255.0 Next Hop Interface 0 Interface 1 128.10.4.250 Either destination host is connected on a shared LAN, or not (additional IP hop needed). reachable by LAN address forwarding if not, network address (IP) forwarding

Table look-up I ( where to ): For each entry, compute SubnetID = DestAddr AND SubnetMask. Compare SubnetID with SubnetID. Take forwarding action (LAN or IP). Remaining task: translate destination or next hop IP address into LAN address must be done in either case address resolution protocol (ARP)

Table look-up II ( what s your LAN name ): If ARP table contains entry, using LAN address link layer can take over forwarding task. ultimately everything is LAN network layer: virtual If ARP table does not contain entry, broadcast ARP Request packet with destination IP address. e.g., Ethernet broadcast address (all 1 s) Upon receiving ARP response, update ARP table. Dynamically maintain ARP table: use timer for each entry (15 min) to invalidate entries. aging (old caching technique)

Other approaches to solve address depletion problem: IPv6 128 bits (who wants it?) classless (vs. classful) IP addressing variable length subnetting a.b.c.d/x (x: mask length) e.g., 128.10.0.0/16, 128.210.0.0/16, 204.52.32.0/20 used in inter-domain routing CIDR (classless inter-domain routing) de facto Internet addressing standard

dynamically assigned IP addresses reusable e.g., DHCP (dynamic host configuration protocol) used by access ISPs, enterprises, etc. specifics: network address translation (NAT) private/unregistered vs. public/registered IP address can additionally use port numbers: NAPT

Ex.: SOHO (small office/home office) now: home networking DHCP & NAT ISP cable/telephone 0000 1111 0000 1111 0000 1111 0000 1111 cable/dsl NAT & DHCP modem gateway 0000 1111 dyn IP 0000 1111 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5 dynamic IP address provided by ISP is shared through NAT IANA (Internet Assigned Numbers Authority) non-routable: e.g., 192.168.0.0/16, 10.0.0.0/8

Ex.: private backbone or testbed (e.g., Q-Bahn) routers have 10.0.0.0/8 addresses each interface: a separate subnet only one of the routers connected to Internet 128.10.27.0/24 address PCs connected to routers are dual-homed 10.0.0.0/8 address & 128.10.27.0/24 address dual-homed forwarding

Transport Protocols: TCP and UDP end-to-end protocol runs on top of network layer protocols treat network layer & below as black box Three-level encapsulation: Headers MAC Trailer MAC IP TCP/UDP Payload (TCP/UDP) Payload (IP) Payload (MAC) common TCP payload: HTTP

Network layer (IP) assumptions: unreliable out-of-order delivery (not frequent) absence of QoS guarantees (delay, throughput, etc.) insecure (IPv4) IPsec Additional (informal) performance properties: Works fine under low load conditions Can break down under high load conditions Atlanta Olympics DoS attack Wide behavioral range: to some extent predictable

Goal of UDP (User Datagram Protocol): process identification port number as demux key minimal support beyond IP End System O.S. End System O.S. Process A Process B Process A Process B Port X Port Y Port X Port Y UDP IP UDP IP Network

UDP packet format: 2 2 Source Port Length Destination Port Checksum Payload Checksum calculation (pseudo header): 4 Source Address Destination Address 00... 0 Protocol UDP Length pseudo header, UDP header and payload

UDP usage: Multimedia streamining lean and nimble at minimum requires process identification congestion control carried out above UDP Stateless client/server applications persistent state a hinderance lightweight

Goals of TCP (Transmission Control Protocol): process identification reliable communication: ARQ speedy communication: congestion control segmentation connection-oriented, i.e., stateful complex mixture of functionalities

Segmentation task: provide stream interface to higher level protocols exported semantics: contiguous byte stream recall ARQ segment stream of bytes into blocks of fixed size segment size determined by TCP MTU (Maximum Transmission Unit) actual unit of transmission in ARQ

TCP packet format: 2 2 Source Port Destination Port Sequence Number Acknowledgement Number Header Length U A C G R K P H S R S T N YS F I N Window Size Checksum Urgent Pointer Options (if any) DATA (if any)

Sequence Number: position of first byte of payload Acknowledgement: next byte of data expected (receiver) Header Length (4 bits): 4 B units URG: urgent pointer flag ACK: ACK packet flag PSH: override TCP buffering RST: reset connection SYN: establish connection FIN: close connection Window Size: receiver s advertised window size Checksum: prepend pseudo-header Urgent Pointer: byte offset in current payload where urgent data begins Options: MTU; take min of sender & receiver (default 556 B)

Checksum calculation (pseudo header): 4 Source Address Destination Address 00... 0 Protocol TCP Segment Length pseudo header, TCP header and payload