1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.

Slides:



Advertisements
Similar presentations
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
CE363 Data Communications & Networking Chapter 7 Network Layer: Internet Protocol.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 - The Internet Protocol Version 4
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
1 K. Salah Module 5.2: Internet Protocol CO vs. CL protocols IP Features –Fragmentation –Routing IP Datagram Format IPv6.
Internet Networking Spring 2003
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn
1 Internet Networking Spring 2002 Tutorial 2 IP Checksum, Fragmentation.
IP Routing, Format, Fragmentation Chapters 20-21, 23.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
Dr. John P. Abraham Professor UTPA
Internet Protocol --- Connectionless Datagram Delivery Linda Wu (CMPT )
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ECE 4110 – Internetwork Programming IP Protocol. 2 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Position of IP in TCP/IP Protocol Suite.
IP : Internet Protocols
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
The Internet Protocol Dr. Adil Yousif. 2  IP (Internet Protocol) is a Network Layer Protocol. Orientation.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
CS 4396 Computer Networks Lab
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Chapter-8 Network Layer in the Internet. IP Protocol: IP V4 At network layer, internet can be viewed as a collection of sub-networks or Autonomous Systems.
1 Kyung Hee University Chapter 8 Internet Protocol (IP)
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
Chapter 8 Internet Protocol (IP)
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
Net7: IP 協定 Internet Protocol 授課教師:雲林科技大學 張慶龍 老師.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Packet Switch Network Server client IP Ether IPTCPData.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction To TCP/IP Networking Mr. Zeeshan Ali, Asst. Professor
Introduction to TCP/IP networking
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
Internet Networking Spring 2002
IP - The Internet Protocol
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
IP - The Internet Protocol
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong

2 IP Layer Defines a virtual network on top of difference kinds of hardware platform using IP address function of IP –route packet –fragmentation –handle type of service –send and receive error and control message using ICMP

3 IP Attributes Handle data unit called IP datagrams connectionless protocol-doesn ’ t promise reliable delivery best effort delivery packets maybe lost, out of sequence, or duplicated due the various reasons

4 IP Encapsulation With Ethernet frame Ethernet Header IP HeaderData datagram

5 IP Reframe IP will reframe the packet when A send data to B A B IP MAC 00:50:ba:49:9d:b9 IP MAC 00:02:7a:d2:b3:00 MAC dest MAC src type IP src IP dest MAC dest MAC src type IP src IP dest 00:00:1a:2b:3c:4d 00:50:ba:49:9d:b9 0x :02:7a:d2:b3:00 00:00:2a:3b:4c:5d 0x Packet to routerPacket from router IP MAC 00:00:1a:2b:3c:4d IP MAC 00:00:2a:3b:4c:5d Change MAC address, IP address be the same

6 The Internet Protocol (IP) App Transport Network Link TCP / UDP IP Data H dr Data H dr TCP Segme nt IP Datagr am Protocol Stack

7 The Internet Protocol (IP) Characteristics of IP CONNECTIONLESS: mis-sequencing UNRELIABLE: may drop packets… BEST EFFORT:… but only if necessary DATAGRAM:individually routed A R1 R2 R4 R3 B Sour ce Destina tion DH DH Architectu re Links Topology Transpar ent

8 The IP Datagram Offset within original packet Flags :3 vers : 4 TTL : 8 TOS : 8 Header Checksum : 16 hlen: 4 Total Length :16 Identification : 16 FRAG Offset : 13 Protocol :8 SRC IP Address : 32 DST IP Address : 32 (OPTIONS)(PAD) <= 64 KBytes Data Bytes

9 IP Header Details Ver : version = 4 hlen : header length in 32 bit words, hlen = 5 with no option TOS : type of service, desired quality of services Prec.DTR0C Bitsif 0if 1 0-2Precedence 3Normal delayLow delay 4Normal throughputHigh throughput 5Normal reliabilityHigh reliability 6Normal cost Low cost 7 Reserves

10 IP Header Details Total Length : max size datagrams include header (64KB) Identification, Flag, Fragmentation : use to segmentation and reassembly packet TTL : Time to Live, maximum number of routers through with the datagrams may pass (hop count) –decrease at each router to prevent forever looping –normally set to 30 –if TTL == 0 discard and send ICMP TTL exceeded to source IP

11 IP Header Details Protocol : higher level protocol that provide data –1 = datagrams carries an ICMP messages –6 = datagrams carries an TCP segments –17 = datagrams carries an UDP datagrams Header checksum : 16 bits one ’ s complement, note that there is no data checksum

12 IP Header Details Source address : 32 bits IP source address Destination address : 32 bits IP destination address Option and Padding : (maximum 40 bytes) addition information to control functions such as routing and security

13 Type of Service in some Internet Protocol ApplicationDTRC TELNET1000Minimize delay FTP control data Minimize delay Maximize throughput Meaning From RFC 1349 TFTP1000Minimize delay SMTP command phase data phase Minimize delay Maximize throughput DNS UDP query TCP query zone transfer SNMPMaximize reliability Minimize delay Maximize throughput

14 Routing Process of choosing a path over which to send datagrams IP routes packet by looking at the IP network number Routing components –determine what path are available –selecting the best path for a particular purpose –using those paths to reach other network devices which perform routing are routers (Historically call IP gateways)

15 Routing Table Every router contains a routing table of the network numbers The table record –Which connection can be used to reach a particular network –plus some indication of the performance or cost of using connection

16 Routing Table Form Routing table form network, gateway, other

17 Routing Protocol Routing protocol manages and updates routing table on each network node UNIX often implemented using one of the two daemons –routed : basic routing daemon for interior routing, normally with RIP –gated : sophisticated daemon for interior and exterior routing, with additional protocol such as OSPF, BGP

18 Fragmentation Fragmentation : processed used by IP to reduced size of datagram that are too long for network interface MTU e.g. fragment 2000 bytes to Ethernet MTU 1500 Bytes fragmentation should be reassembled at final destination (expensive process) how? –each fragment has it own header –each fragment carries the same 16 bits identification header –each fragment must be aligned with eight-octet boundary

19 Fragmentation Flag Identification number –16 bits integer value used to identify all fragments –This ID is not a sequence number Flags : 3 bits control fragmentation Fragment offset : indicate the distance of fragment data from the start of original datagram, measure in 8 octets unit RDFMF 0 = last fragment 1 = more fragment 0 = may fragment 1 = don ’ t fragment Reserve must be 0

20 Fragmentation …… original Ethernet with MTU bytes Other headeridentflagsoffsetdata Identification number More fragment Post 0 Last fragment Post 185 * 8 = 1480

21 Problem in fragmentation The end node has know way of knowing how many fragments there be. The end node has to manage enough buffer space to handle reassembly process. If any fragments lost, all datagram must be discarded End node starts a timer when received the first fragment, if any fragments fails to alive(usually 30 sec), all datagrams must be discarded Since the IP service is connectionless. No attempt is made by IP to recover these situations, though ICMP error massage may be generated

22 Avoiding Fragmentation For datagrams with in the same physical network, the MTU is known. TCP/UDP then use the MTU to limit the message size pass to IP, message will never be fragmented. For datagram pass to difference network, unknown MTU. Standard recommend that all networks supporting TCP/IP have an MTU of at least 576 bytes 512 bytes data + 20 bytes TCP header + 20 bytes IP header with options to guarantee that a packet of 576 bytes or less is never fragmented