TCP/IP and OSI Model. Lecture 9 IP. TCP/IP and OSI Model (Continued) The Internet. IP Addressing

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

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

IP - The Internet Protocol

Lecture Computer Networks

Internet Architecture and Philosophy

8.2 The Internet Protocol

Network Layer: Network Layer and IP Protocol

Transport and Network Layer

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

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

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

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

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

04 Internet Protocol (IP)

RARP: Reverse Address Resolution Protocol

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

Overview of TCP/IP. TCP/IP and Internet

NETWORK LAYER/INTERNET PROTOCOLS

IP addressing and forwarding Network layer

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Technical Support Information Belkin internal use only

Ethernet. Ethernet. Network Devices

Chapter 9. IP Secure

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

Internet Control Protocols Reading: Chapter 3

Networking Test 4 Study Guide

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

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

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

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

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

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

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

Computer Networks CS321

Troubleshooting Tools

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

Lecture 28: Internet Protocols

How do I get to

2. IP Networks, IP Hosts and IP Ports

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

Chapter 11. User Datagram Protocol (UDP)

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

Cisco Configuring Commonly Used IP ACLs

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

Network Models and Protocols

CS335 Sample Questions for Exam #2

Network Programming TDC 561

Transport Layer Protocols

Internet Packets. Forwarding Datagrams

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Chapter 13 Internet Protocol (IP)

- IPv4 Addressing and Subnetting -

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

Internet Protocols. Background CHAPTER

TCP/IP and the Internet

Chapter 4 Network Layer

BASIC ANALYSIS OF TCP/IP NETWORKS

PART OF THE PICTURE: The TCP/IP Communications Architecture

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

Subnetting,Supernetting, VLSM & CIDR

ICS 351: Today's plan

Network Models OSI vs. TCP/IP

Unix System Administration

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

Themen der Praktikumsnachmittage. PPS Internet-Praktikum. Zielsetzung. Infrastruktur im ETF B5

The Internet. Internet Technologies and Applications

Internet Control Message Protocol (ICMP)

UPPER LAYER SWITCHING

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

ACHILLES CERTIFICATION. SIS Module SLS 1508

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

TCP/IP Protocol Suite. Marshal Miller Chris Chase

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

1000 CCNA Certification Exam Preparation Questions and Answers:

A PPENDIX L TCP/IP and OSI

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

The OSI and TCP/IP Models. Lesson 2

Introduction to TCP/IP

Introduction To Computer Networking

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

Internet Protocol: IP packet headers. vendredi 18 octobre 13

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

How To Design A Layered Network In A Computer Network

How Does Ping Really Work?

Networks University of Stirling CSCU9B1 Essential Skills for the Information Age. Content

Computer Networks/DV2 Lab

Internet Infrastructure Measurement: Challenges and Tools

Data Communication Networks and Converged Networks

LESSON Networking Fundamentals. Understand TCP/IP

Transport Layer. Chapter 3.4. Think about

The OSI Model: Understanding the Seven Layers of Computer Networks

Objectives of Lecture. Network Architecture. Protocols. Contents

CHAPTER 3 STATIC ROUTING

Final for ECE374 05/06/13 Solution!!

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

Protocol Data Units and Encapsulation

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

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

Transcription:

TCP/IP and OSI Model Lecture 9 IP Kuang-hua Chen Department of Library and Information Science National Taiwan University Network Access layer This layer corresponds to the Physical and Data Link layers of the OSI model. TCP/IP has been shown to run over almost any type of network connection from FDDI to radio wave. Internet layer This layer roughly matches up with the Network layer of the OSI model. Both of these layers are responsible for moving data to other devices on the network. 9-2 TCP/IP and OSI Model (Continued) TCP/IP and OSI Model (Continued) Host-to-Host layer This one is similar to the Transport layer of the OSI model. The job of these layers is to communicate between peers on the network. Almost all devices on a TCP/IP network are considered hosts. Process/Application layer The fourth layer does the same job as the top three layers of the OSI model. Provide network services RIP OSPF 9-3 9-4 The Internet IP Addressing 9-5 9-6 1

IP Address Format Special IP Address 9-7 9-8 TCP/IP Suite TCP/IP Suite (Continued) Internet Protocol (IP) Internet Control Message Protocol (ICMP) RIP and OSPF Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Address Resolution Protocol (ARP) Domain Name System (DNS) File Transfer Protocol Simple Mail Transfer Protocol Dynamic Host Configuration Protocol Telnet Network File System 9-9 9-10 Internet Protocol Internet Protocol (Continued) The Internet Protocol (IP) is a connectionless protocol that sits in the Network layer level of the OSI model. The job of IP is to address and route packets accordingly through the network. An IP header is attached to each packet and includes the source address, destination address, and other information used by the receiving host. Another job of IP is to fragment and reassemble packets that were split up in transit. The packet is split up, and then each piece gets a new IP header and is sent on its way to the final destination. When the final host receives the packets, it is up to IP to put all the pieces back together to form the original data. 9-11 9-12 2

Internet Layer IP Header IP Header Contains: Source IP Address (32 bits) Destination IP Address (32 bits) Total size of the datagram (including the data) Protocol Version Protocol Type (TCP or UDP) A few others... The header is followed by a block of data 9-13 9-14 Type of Service Example of Fragmentation Priority Delay Throu ghput Reliabi lity Reserve In theory, {D,T,R} fields allow routers to make choices A satellite link with high throughput and high delay A leased line with low throughput and low delay In practice, current routers ignore Type of Service fields A datagram with 636 data bytes arrives at a network with a maximum length restriction of 256 bytes (including header) Assume the IP header length is the minimum possible of 20 bytes Two possible fragmentations Each fragment except for the last is the maximum length possible All fragments are as nearly equal in length as possible 9-15 9-16 First Approach to Fragmentation (1/2) First Approach to Fragmentation (2/2) The maximal data length of the network is 256 20 = 236 The data length has to be the multiple of 8 bytes 29*8=232 < 236 The length of data to be sent is 636 = 232 + 232 + 172 3 fragments are created for transmission First fragment Total Length = 252 (20+232) Fragment Offset = 0 Second fragment Total Length = 252 (20+232) Fragment Offset = 29 ( 8 bytes ) Third fragment Total Length = 192 (20+172) Fragment Offset = 58 More = 0 9-17 9-18 3

Second Approach to Fragmentation (1/2) Header Checksum 636/3= 212, 216=27*8 bytes, 208=26*8 bytes, and 212 bytes First fragment Total Length = 236 (20+216) Fragment Offset = 0 Second fragment Total Length = 228 (20+208) Fragment Offset = 27 Third fragment Total Length = 232 (20+212) Fragment Offset = 53 More = 0 Header checksum is used to make sure no header information has been changed during transmission The sender sum every 16 bits in header The result is represented in one s complement and put in field of header checksum The receiver then sum every 16 bits in header The result has to be zero (1111111111111111) 9-19 9-20 One s Complement Notation Fragmentation on-the-road n is maximal bits used to represent integer -k = (2 n -1)-k = 11111111 (n bits) k Assume n = 8-6 = (2 8-1) 6 = 11111111 00000110 =11111001 00000000 2 is 0 10 11111111 2 is 0 10 Maximum Transmission Unit (MTU) consideration All machines are required to accept fragments of 576 bytes at least H1 Net1 (MTU=1500) R Net1 (MTU=1000) H2 9-21 9-22 Fragmentation on-the-road (continued) IP Options IP Header Data 1 Data 2 Data 3 IP Header Data 1 IP Header Data 2 IP Header Data 3 Security Specifies how secret the datagram is Strict source routing Gives the complete path to be followed Loose source routing Gives a list of routers not to be missed Record route Makes each router append its IP address Timestamp Makes each router append its IP address and timestamp 9-23 9-24 4

RIP and OSPF Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) are two routing protocols in the Internet Protocol suite. RIP uses the number of routers (hops) between the originating computer and the destination to decide the best way to route a packet. OSPF uses much more information than just the number of hops to make a decision. The hop count, the speed of the connection between the hops, and the load balancing to calculate the best way to route packets. Internet Control Message Protocol The Internet Control Message Protocol (ICMP) provides error reporting for IP. Some common types of errors that ICMP can report are Destination Unreachable, Congestion, Echo Request, and Echo Reply (used with the PING command). 9-25 9-26 Principal ICMP Message Types Address Resolution Protocol Data link layer serves the network layer but it does not know the IP address ARP maps IP address to MAC address Maintain a configuration file to map IP address to MAC address 9-27 9-28 IP Address MAC Address 9-29 5