Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.

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.
CS 453 Computer Networks Lecture 20 Layer 3Network Layer Network Layer of the Internet.
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.
TCP/IP TCP/IP architecture
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Today IP Addressing IP Header IP Fragmentation
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5-1 Internet Protocol (IP): Packet Format, Fragmentation, Options Shivkumar Kalyanaraman Rensselaer.
Network Layer Packet Forwarding IS250 Spring 2010
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
1 TDC TDC 365 Network Interconnections Technologies Lecture #4 Notes Spring, 2009.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
IP Protocol. The Internet Protocol (IP) is a network-layer (Layer 3) protocol that contains addressing information and some control information that enables.
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
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
© 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.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Chapter 21: IP Encapsulation, Fragmentation & Reassembly
CDPA 網管訓練 駭客任務 2 Ethernet Switching ARP, IP, LAN, Subnet IP Header, Routing ICMP
April 5, 2004 Prof. Paul Lin 1 CPET The Network Layer Paul I-Hai Lin, Professor Electrical and Computer Engineering Technology Purdue University,
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
 The basis the Internet is built upon  Very simple, but allows more complex stuff to be layered on top.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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”
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.
THE CLASSIC INTERNET PROTOCOL (RFC 791) Dr. Rocky K. C. Chang 20 September
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
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.
Network Layer & IP Protocol.
IP - The Internet Protocol
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Notes and Handouts The Network Layer in the Internet
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Internetworking Outline Best Effort Service Model
EEC-484/584 Computer Networks
Wide Area Networks and Internet CT1403
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
Introduction to Networks
Advanced Computer Networks
ITIS 6167/8167: Network and Information Security
Anjuman College of Engineering and Technology Department of Computer Science and Engineering VII Sem. TCP and IP (Elective I) Prof. Nazish Khan.
IP - The Internet Protocol
32 bit destination IP address
Presentation transcript:

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

IPv4 Internet Protocol (IP) is the glue that holds the Internet together. Communication in the Internet: Transport Layer takes a data stream and breaks them up into packets (datagrams). An IP datagram can be up to 64 KB but in practice they are about 1500 bytes. Each IP datagram is routed through the Internet, possibly being fragmented into smaller units as it goes. When all the fragments get to the destination machine they are reassembled by the network layer into the original datagram, which is handed to the transport layer.

IPv4 The IP datagram header has a 20 byte fixed part and a variable length optional part.

IPv4 Version (4-bits): indicates version of the protocol the datagram belongs to. IHL (4-bits): This field provides the length of the IP header. The length of the header is represented in 32 bit words. Minimum value = 0101 (i.e. 5) which corresponds to 5 * 4 = 20 bytes. Maximum value = 1111 (i.e. 15) which corresponds to 15 * 4 = 60 bytes. So the options part of the header can be at most 40 bytes. Differentiated Services (8-bits): Corresponds to type of service. The first 3 bits of this field are priority bits and are ignored as of today. The next 3 bits represent type of service and the last 2 bits are unused. The 3 bits that represent type of service are: minimize delay, maximize throughput, and maximize reliability. Total Length (16-bits): This represents the total IP datagram length in bytes (header + data). Maximum size = 64 K or 65535 bytes. Identification (16 bits): Enables the destination host to determine which datagram a newly arrived fragment belongs to. All fragments of a datagram contain the same Identification value.

IPv4 DF bit (1-bit): Don’t fragment (if destination is incapable of putting a datagram fragments back together). MF (1-bit): More fragments. All fragments except the last one have this bit set to 1. Fragment Offset (13-bits): Indicates where in the current datagram this fragment belongs (213 = 8192 fragments per datagram and 8192 * 8 = 65536 bytes. Each fragment is a multiple of 8 bytes) TTL (8-bits): Used to limit packet lifetime. Maximum lifetime = 255 seconds. In practice, it just counts hops. Default = 64 hops, which is decremented each time the packet is forwarded. Protocol (8-bits wide): Tells IP which transport protocol to give the datagram to (i.e. TCP or UDP). Header Checksum (16-bits): Verifies the header. Source and Destination Addresses (32-bits each): Indicate IP address (network number and host number) of host. Options (maximum 40-bytes): Presences of options indicated by IHL field. Options include record route, timestamp, and strict source routing.

IP Fragmentation – An Example MTU: largest IP datagram that can be carried in a frame is called the Max Transmission Unit or MTU MTU (Ethernet): 1500 bytes MTU (FDDI): 4500 bytes MTU (Point-to-point link): 532 bytes (512 bytes data + 20 bytes IP header. Host H1 Router R1 Router R2 Router R3 Host H2 Ethernet FDDI Pt.-to-pt, Ethernet ETH IP 1400 FDDI IP 1400 P2P IP 512 ETH IP 512 P2P IP 512 ETH IP 512 P2P IP 376 ETH IP 376

IP Fragmentation – Example contd. Un-fragmented Packet: Fragmented Packets: Ident. = x MF = 0 Offset = 0 1400 data bytes Ident. = x MF = 1 Offset = 0 512 data bytes Ident. = x MF = 1 Offset = 512 512 data bytes Ident. = x MF = 0 Offset = 1024 376 data bytes

IPv4 Address Classes

IPv4 Address Classes IP addresses are hierarchical, i.e. made up of 2 parts: a network part and a host part. Class A: has 7-bits for network part and 24 bits for the host part. There can only be 27 - 2 = 126 class A networks and up to 224 – 2 = (16,777,214 or 16 million) hosts. Class B: 214 = 16,384 class B networks with up to 216 - 2 = 65534 hosts each. Class C: 216 = 2 million class C networks with up to 28 - 2 = 254 hosts each. For Class A only: Network address 0 cannot be used and network address 127 is reserved for loop-back testing. For all address classes, need to subtract 2 from the host number as all 0’s means this host and 1’s is a broadcast to all hosts within that network. The class A network address block contains 2 31 power (2,147,483,648) individual addresses. The IPv4 address space contains a maximum of 2 32 power (4,294,967,296) addresses, which mean that a class A network address space is 50% of the total IPv4 unicast, address space. This class defines 16,384 (2 14 ) /16 networks, and supports a maximum of 65,534 (2 16 -2) hosts per network. Class B /16 block address is (1,073,741,824) = 2 30; therefore it represent 25% of the total IPV4. This class defines a maximum of 2,097,152 (2 21 ) /24 networks. And each network supports up to 254 (2 8 -2) hosts. The entire class C network represents 2 29 (536,870,912) addresses; therefore it is only 12.5 % of the total IPv4.

Subnetting Original intent was that one IP address uniquely identify one physical network. Subnetting is a way to reduce the total number of network numbers that are assigned. A network is split into several parts for internal use but still acts like a single network to the outside world. Each part is a subnet. A company starts with a class B address 128.64.0.0. The 16-bit host number is split into a 8-bit subnet number and a 8-bit host number. Subnet Mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00000000 255.255.255.0 10 Network Subnet Host

Subnetting Subnet Mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 00000000 255.255.255.0 This split allows 256 – 2 = 254 LANs, each with up to 254 hosts. All hosts on the same LAN will have the same subnet number. Hosts on the different LANs will share the same network number. We can think of an address as having three parts: network part, subnet part, and a host part. Subnetting introduces another level of hierarchy into the IP address. 128.64.1.254 AND 255.255.255.0 = 128.64.1.0 (LAN/Subnet #) 10 Network Subnet Host