Introduction to TCP/IP



Similar documents
Route Discovery Protocols

Ethernet. Ethernet. Network Devices

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

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

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

Overview of TCP/IP. TCP/IP and Internet

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

Transport and Network Layer

The Domain Name System (DNS)

Routing with OSPF. Introduction

Chapter 1: Introduction

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

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

Internet Protocols. Background CHAPTER

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

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

The Internet. Internet Technologies and Applications

Internetworking and Internet-1. Global Addresses

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

IP address format: Dotted decimal notation:

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

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

The Network Layer. Raj Jain. Washington University in St. Louis

8.2 The Internet Protocol

IP - The Internet Protocol

Network Security TCP/IP Refresher

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

IP addressing and forwarding Network layer

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

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

GregSowell.com. Mikrotik Routing

Network Programming TDC 561

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Routing Protocols (RIP, OSPF, BGP)

Networking Test 4 Study Guide

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson)

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

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Introduction to IP networking

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

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

Datacommunication. Internet Infrastructure IPv4 & IPv6

Exercises TCP/IP Networking. Solution. With Solutions

Internet Protocol: IP packet headers. vendredi 18 octobre 13

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

Overview of Computer Networks

How do I get to

Computer Networks. Main Functions

Internet Protocol Version 6 (IPv6)

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

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

Transport Layer Protocols

IP Routing Configuring RIP, OSPF, BGP, and PBR

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

Chapter 9. IP Secure

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

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

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

Router and Routing Basics

Inter-domain Routing. Outline. Border Gateway Protocol

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Border Gateway Protocol (BGP-4)

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

Computer Networks CS321

CS335 Sample Questions for Exam #2

TCP/IP and the Internet

Layer 3 Routing User s Manual

Objectives of Lecture. Network Architecture. Protocols. Contents

Lecture Computer Networks

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

Exterior Gateway Protocols (BGP)

Lecture 28: Internet Protocols

ECSE-6600: Internet Protocols Exam 2

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

Chapter 4 Network Layer

The Network Layer. Raj Jain. Washington University in St. Louis

RARP: Reverse Address Resolution Protocol

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

IP Addressing A Simplified Tutorial

Introduction to IP v6

Network Models and Protocols

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

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

Protocols and Architecture. Protocol Architecture.

CSET 4750 Computer Networks and Data Communications (4 semester credit hours) CSET Required IT Required

Internet Packets. Forwarding Datagrams

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

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

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

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

Mathatma Gandhi University

NETWORK LAYER/INTERNET PROTOCOLS

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

Internet Protocol version 4 Part I

(Refer Slide Time: 02:17)

IP Multicasting. Applications with multiple receivers

PPS Internet-Praktikum. Prof. Bernhard Plattner Institut für Technische Informatik und Kommunikationsnetze (TIK)

Transcription:

Introduction to TCP/IP Raj Jain The Ohio State University Columbus, OH 43210 Nayna Networks Milpitas, CA 95035 Email: Jain@ACM.Org http://www.cis.ohio-state.edu/~jain/ 1

Overview! Internetworking Protocol (IP)! IP Addressing! Domain Name System! Routing Protocols: RIP, OSPF, BGP! Transport Protocols: TCP, UDP 2

TCP/IP Reference Model! TCP = Transport Control Protocol! IP = Internet Protocol (Routing) TCP/IP Model Application Transport Internetwork Host to Network FTP Ether net TCP/IP Protocols TCP Telnet IP Packet Radio 3 HTTP UDP Point-to- Point OSI Ref Model Application Presentation Session Transport Network Datalink Physical

Layered Packet Format! Nth layer control info is passed as N-1th layer data. Example: File Transfer Protocol (FTP) FTP Header FTP Data TCP Header TCP Data IP Header IP Data Ethernet Header Ethernet Data 4 Ethernet Trailer

Internetworking! Inter-network = Collection of networks Connected via routers Network Router Network 5

Internet = Collection of Networks! Any computer can talk to any other computer Net 2 Net 1 Net 3 Net 4 6

Internet Protocol (IP)! Layer 3 protocol that forwards datagrams across internet! Uses routing tables prepared by routing protocols, e.g., Open Shortest Path First (OSPF), Routing Information Protocol (RIP)! Connectionless service vs connection-oriented (circuits) 7

IP Datagram Format Version Header Len Service Type Total Length Identification Flags Fragment Offset Time to live Payload Type Header Checksum Source IP Address Destination IP Address IP Options (May be omitted) Padding Data 8

IP Addressing 128.10 Router 128.211 128.10.0.1 128.10.0.2 128.211.6.115 Router 10.0.0.37 10.0.0.49 192.5.48.3 10 Router! All IP hosts have a 32-bit address.128.10.0.1 =1000 0000 0000 1010 0000 0000 0000 0001! All hosts on a network have the same network prefix 9 192.5.48

Subnetting! All hosts on a subnetwork have the same prefix. Position of the prefix is indicated by a subnet mask! Example: First 23 bits = subnet Address: 10010100 10101000 00010000 11110001 Mask: 11111111 11111111 11111110 00000000.AND. 10010100 10101000 00010000 00000000 Network Subnet 1 Subnet 2 Subnet n 10

Forwarding an IP Datagram! Delivers datagrams to destination network (subnet)! Routers maintain a routing table of next hops! Next Hop field does not appear in the datagram Net 1 R1 Net 2 R2 Net 3 R3 Net 4 Table at R2: Destination Net 1 Net 2 Net 3 Net 4 Next Hop Forward to R1 Deliver Direct Deliver Direct Forward to R3 11

Private Addresses! Any organization can use these inside their network Can t go on the internet. [RFC 1918]! 10.0.0.0-10.255.255.255 (10/8 prefix)! 172.16.0.0-172.31.255.255 (172.16/12 prefix)! 192.168.0.0-192.168.255.255 (192.168/16 prefix) Private Network Private Addresses Network Address Translator Public Addresses Internet 12

Domain Name Service! Computers use addresses! Humans cannot remember IP addresses Need names Example, Liberia for 164.107.51.28! Simplest Solution: Each computer has a unique name and has a built in table of name to address translation! Problem: Not scalable! Solution: DNS (Adopted in 1983)! Hierarchical Names: Liberia.cis.ohio-state.edu 13

Name Hierarchy Unnamed root com edu gov au... us dec ohio-state nsf co va cis netlab ee reston cnri 14

Name Hierarchy! Unique domain suffix is assigned by Internet Assigned Number Authority (IANA)! The domain administrator has complete control over the domain! No limit on number of sub-domains or number of levels! computer.site.division.company.com computer.site.subdivision.division.company.com! Name space is not related to physical interconnection, e.g., math.ohio-state and cis.ohio-state could be on the same floor or in different cities 15

Name Resolution Cache Cache Database Name Server Response Query Query Name Server Referral Database User Query Response Name Resolver Cache 16 Query Response Name Server Cache Database

Name Resolution (Cont)! Each computer has a name resolver routine, e.g., gethostbyname in UNIX! Each resolver knows the name of a local DNS server! Resolver sends a DNS request to the server! DNS server either gives the answer, forwards the request to another server, or gives a referral! Referral = Next server to whom request should be sent! Servers respond to a full name only However, humans may specify only a partial name Resolvers may fill in the rest of the suffix, e.g., Liberia.cis = Liberia.cis.ohio-state.edu 17

Autonomous Systems! An internet connected by homogeneous routers under the administrative control of a single entity R3 Subnet 1.2 R4 Subnet 1.1 Subnet 2.1 R2 Subnet 1.3 R1 Subnet 1.4 Exterior R5 Subnet 2.3 Subnet 2.2 R8 R6 Interior R7 Subnet 2.4 18

Routing Protocols! Interior Router Protocol (IRP): Among routers internal to an autonomous system. Also known as IGP.! Examples: Routing Information Protocol (RIP), Open Shortest Path First (OSPF)! Exterior Router Protocol (ERP): Among routers between autonomous systems. Also known as EGP.! Examples: Exterior Gateway Protocol (EGP), Border Gateway Protocol (BGP), Inter-Domain Routing Protocol (IDRP) Note: EGP is a class as well as an instance in that class. 19

Routing Information Protocol! RIP uses distance vector A vector of distances to all nodes is sent to neighbors every 30 seconds! Each router computes new distances and replaces entries with new lower hop counts 20

Shortcomings of RIP V1! Maximum network diameter = 15 hops! Cost is measured in hops Only shortest routes. May not be the fastest route.! Entire tables are broadcast every 30 seconds. Bandwidth intensive.! Uses UDP with 576-byte datagrams. Need multiple datagrams. 300-entry table needs 12 datagrams.! An error in one routing table is propagated to all routers! Slow convergence 21

Open Shortest Path First (OSPF)! Uses true metrics (not just hop count)! Allows load balancing across equal-cost paths! Authenticates route exchanges! Quick convergence! Large networks are subdivided into a backbone network and areas! Each area has multiple subnets. Each subnet has a designated router.! Link state routing Each router broadcasts its connectivity with neighbors to entire area 22

Another Autonomous System Area Border Router Router Types AS Boundary Router Backbone Backbone Router Backbone Router Area 1 Area 2 Internal Router Backup DR Designated Router Area 4 23

Router Types (Cont)! Internal Router (IR): All interfaces belong to the same area! Area Border Router (ABR): Interfaces to multiple areas! Backbone Router (BR): Interfaces to the backbone! Autonomous System Boundary Router (ASBR): Exchanges routing info with other autonomous systems! Designated Router (DR): Generates link-state info about the subnet! Backup Designated Router (BDR): Becomes DR if DR fails. 24

OSPF Operation! Periodic Hello packets are multicast on the subnet to find other routers and elect designated router and backup designated router! Designated routers and routers on point-to-point links form adjacency. Exchange Link State Advertisements (LSAs). New info flooded to all other adjacent routers in the area.! Area border routers (ABRs) send summary LSAs to other ABRs! Autonomous system border routers (ASBRs) use exterior routing protocol to exchange routing information 25

Border Gateway Protocol! Inter-autonomous system protocol [RFC 1267]! Used since 1989 but not extensively until recently! Advertises all transit ASs on the path to a destination address! A router may receive multiple paths to a destination Can choose the best path 26

BGP Operations! BGP systems initially exchange entire routing tables. Afterwards, only updates are exchanged.! BGP messages have the following information:! Origin of path information: RIP, OSPF,! AS_Path: List of ASs on the path to reach the dest! Next_Hop: IP address of the border router to be used as the next hop to reach the dest! Unreachable: If a previously advertised route has become unreachable! BGP speakers generate update messages to all peers when it selects a new route or some route becomes unreachable. 27

TCP: Key Features! Point-to-point communication: Two end-points! Connection oriented. Full duplex communication.! Reliable transfer: Data is delivered in order Lost packets are retransmitted.! Stream interface: Continuous sequence of octets 28

Transport Control Protocol (TCP)! Key Services:! Send: Please send when convenient! Data stream push: Please send it all now, if possible.! Urgent data signaling: Destination TCP! please give this urgent data to the user (Urgent data is delivered in sequence. Push at the should be explicit if needed.)! Note: Push has no effect on delivery. Urgent requests quick delivery 29

TCP Header Format FTP HTTP SMTP Source Dest Seq Ack Data Resvd Control Window Port Port No No Offset 16 16 32 32 4 6 6 16 Checksum Urgent Options Pad Data 16 16 x y Size in bits 30

TCP Header! Source Port (16 bits): Identifies source user process 20 = FTP, 23 = Telnet, 53 = DNS, 80 = HTTP,...! Destination Port (16 bits)! Sequence Number (32 bits): Sequence number of the first byte in the segment.! Ack number (32 bits): Next byte expected! Data offset (4 bits): # of 32-bit words in the header! Reserved (6 bits)! Window (16 bits): Will accept [Ack] to [Ack]+[window] 31

User Datagram Protocol (UDP)! Connectionless end-to-end service! Unreliable: No flow control. No error recovery (No acks. No retransmissions.)! Used by network management and Audio/Video.! Provides port addressing! Error detection (Checksum) optional. Source Dest Checksum Length Data Port Port 16 16 16 16 Size in bits 32

Summary! IP is the forwarding protocol between networks! IPv4 uses 32-bit addresses! DNS: Maps names to addresses! OSPF uses link-state advertisements! BGP is used between autonomous systems! TCP provides reliable full-duplex connections.! UDP is connectionless and simple. No flow/error control. 33

Homework 2 True or False? T F " " A sample IP address is 10.0.110.357 " " Two computers cannot have the same IP address " " Two computers cannot have the same complete DNS name " " IANA assigns all names used inside a company. " " Each DNS server database stores all computer names in the world. " " Routing tables used by IP are prepared using routing protocols like OSPF, BGP. " " RIP is used in small networks " " OSPF area border routers connect to other autonomous systems. " " OSPF Hellos are flooded through out the area. " " BGP is used between autonomous systems " " TCP delivers all packets to the destination exactly as received at the source. " " TCP port numbers are related to applications using them. " " UDP is unreliable transport protocol. Marks = Correct Answers - Incorrect Answers = 35