MTU Amit Dhamija amit.dhamija@colt.net.

Slides:



Advertisements
Similar presentations
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
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.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
IPv4 - The Internet Protocol Version 4
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Network Layer Packet Forwarding IS250 Spring 2010
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
1 Internet Networking Spring 2005 Tutorial 2 IP Checksum, Fragmentation.
Internet Networking Spring 2003
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
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.
IPv6 Fundamentals Chapter 2: IPv6 Protocol
4: Network Layer4a-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Internet Protocol (IP)
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.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
Dr. John P. Abraham Professor UTPA
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
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.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: Internet Protocol Understand the format and fields of a datagram Understand the.
CS 4396 Computer Networks Lab
Internet Protocol Formats. IP (V4) Packet byte 0 byte1 byte 2 byte 3 data... – up to 65 K including heading info Version IHL Serv. Type Total Length Identifcation.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
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”
Samples of Descriptive Problems CSC/ECE 573, Sections 001 Fall, 2012.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: Internet Protocol Understand the format and fields of a datagram Understand the.
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 27 IPv6 Protocol.
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.
THE CLASSIC INTERNET PROTOCOL (RFC 791) Dr. Rocky K. C. Chang 20 September
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Net7: IP 協定 Internet Protocol 授課教師:雲林科技大學 張慶龍 老師.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
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.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Multiplexing.
Chapter 19 Network Layer Protocols
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
7 Network Layer Part IV Computer Networks Tutun Juhana
Internet Networking Spring 2002
IP - The Internet Protocol
Internet Protocol (IP)
Internet Protocol Version4
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
IP - The Internet Protocol
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
32 bit destination IP address
Presentation transcript:

MTU Amit Dhamija amit.dhamija@colt.net

MTU Calculation in IOS In cisco IOS physical MTU consists of L2 headers. Example :- MTU 1500 on Ethernet links includes 14 bytes of L2 header and pass traffic upto 1514 bytes or IP-MTU = Physical-MTU In Cisco IOS when we ping and give the total payload size then it accommodates the (IP+ICMP Header) If we ping 1500 bytes as payload in IOS it means payload is 1472 as it includes 1472+20+8. MRU in IOS is – physical-MTU so if it receives packet higher then MTU it will drop it, However in egress it will fragment automatically. IP-MTU command works only in egress direction

MTU Calculation in IOS-XR In cisco IOS-XR physical MTU is excluding the L2 headers. Example :- MTU 1500 on Ethernet links excludes 14 bytes of L2 header and pass traffic upto 1486 bytes or IP-MTU =Physical-MTU-14 Bytes ( Ethernet Header) RP/0/RP0/CPU0:crs1.BLB#sh interfaces Te0/1/1/0 | in MTU Fri May 23 15:45:36.197 IST MTU 4484 bytes, BW 10000000 Kbit (Max: 10000000 Kbit) RP/0/RP0/CPU0:crs1.BLB#sh ipv4 interface Te0/1/1/0 | in MTU Fri May 23 15:45:47.241 IST MTU is 4484 (4470 is available to IP) In Cisco IOS-XR when we ping and give the total payload size then it accommodates the (IP+ICMP Header)

MTU Calculation in JUNOS In JUNOS physical MTU is excluding the L2 headers. Example :- MTU 1500 on Ethernet links excludes 14 bytes of L2 header and pass traffic upto 1486 bytes or IP-MTU =Physical-MTU-14 Bytes ( Ethernet Header) lab@Mx-240-Test> show interfaces xe-0/0/0 | match MTU Link-level type: Ethernet, MTU: 1600, LAN-PHY mode, Speed: 10Gbps, Protocol inet, MTU: 1582  Including one Vlan TAG In JUNOS adds icmp and ip header to the payload size you specify. So 1500 becomes 1528 bytes of ip packet. MRU in JUNOS is – physical-MTU so if it receives packet higher then MTU it will drop it, However in egress it will fragment automatically.

MTU Calculation in SR-OS In SR-OS physical MTU is excluding the L2 headers. Example :- MTU 1500 on Ethernet links excludes 14 bytes of L2 header and pass traffic upto 1486 bytes or IP-MTU =Physical-MTU-14 Bytes ( Ethernet Header) *A:KJC_PE_00001# show port 5/1/2 | match MTU Physical Link : Yes MTU : 9212 *A:KJC_PE_00001# show router interface "To_FSS_PE_00004_IPE-4" detail | match MTU IP Oper MTU : 9198 ICMP Mask Reply : True In SR-OS it adds icmp and ip header to the payload size you specify. So 1500 becomes 1528 bytes of ip packet. Service MRU in SR-OS has no limit so if it receives packet higher then MTU it will pass it, However in egress it will fragment automatically and ip-mtu is similar to IOS/IOS-XR

Fragmentation in Egress – Router If IP packet is longer than the MTU, the router breaks packet into smaller packets Called IP fragments Fragments are still IP packets IP Packet 2 1 IP Packets Fragmentation MTU 3

Original packet may be fragmented multiple times along its route Multiple Fragmentations Original packet may be fragmented multiple times along its route Source Host Internet Process Destination Host Internet Process Fragmentation

IP Defragmentation only occurs once Internet layer process on destination host defragments, restoring the original packet IP Defragmentation only occurs once Destination Host Internet Process Defragmentation Source

Fragmentation and IP Fields More Fragments field (1 bit) 1 if more fragments 0 if not Source host internet process sets to 0 If router fragments, sets More Fragments field in last fragment to 0 In all other fragments, sets to 1 1 Original IP Packet Fragments

Identification Fields & Fragment Offset IP packet has a 16-bit Identification field Version (4) Hdr Len (4) TOS (8) Total Length in bytes (16) Indication (16 bits) Flags (3) Fragment Offset (13) Time to Live (8) Protocol (8) Header Checksum (16) Source IP Address Destination IP Address Options (if any) PAD Data Field

Identification Fields Purpose Allows receiving host’s internet layer process know what fragments belong to each original packet Works even if an IP packet is fragmented several times 47 Original IP Packet Fragments

Fragment Offset Fragment offset field (13 bits) is used to reorder fragments with the same Identification field Contains the data field’s starting point (in octets) from the start of the data field in the original IP packet Value of offset is measured in 8 bytes. This is done because length of offset is only 13 bits long and cannot be represent a sequence of bytes greater then 8191.This force host/router that fragment datagrams to choose the size of each fragment so that first byte number is divisible by 8

This works even if fragments arrive out of order! Fragment Offset Field Receiving host’s internet layer process assembles fragments in order of increasing fragment offset field value This works even if fragments arrive out of order! Works even if fragmentation occurs multiple times 212 730 Fragment Offset Field

Fragmentation Rule First fragment will be equal to ip-mtu – 20 bytes and then rest of fragments can be summed up. Example below a link with ip-mtu 1300 with a payload of 5008 fragments into 4 1280 ( 0 – 1279) frag offset – 0 - 0 1280 ( 1280 – 2559) frag offset – 1280 1280 ( 2560 – 3839) frag offset – 2560 1168 ( 3840 – 1279) frag offset – 3480

Thanks