CS 453 Computer Networks Lecture 20 Layer 3Network Layer Network Layer of the Internet.

Slides:



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

Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
IPv4 - The Internet Protocol Version 4
Fundamentals of Computer Networks ECE 478/578 Lecture #14: InternetWorking Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
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 – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
1 K. Salah Module 5.2: Internet Protocol CO vs. CL protocols IP Features –Fragmentation –Routing IP Datagram Format IPv6.
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.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
1 Computer Networks IP: The Internet Protocol. 2 IP is a connection-less, unreliable network layer protocol IP provides best effort services in the sense.
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.
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
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.
EEC-484/584 Computer Networks Lecture 13 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.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
CS 453 Computer Networks Lecture 21 Layer 3 Network Layer Network Layer of the Internet.
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.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
Chapter 22 Q and A Victor Norman CS 332 Spring 2014.
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.
The Internet Protocol Dr. Adil Yousif. 2  IP (Internet Protocol) is a Network Layer Protocol. Orientation.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
CS 4396 Computer Networks Lab
Page 1 Network Addressing CS.457 Network Design And Management.
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”
TCP/IP Networking (2:1) Joy Kuri, Haresh Dagale, T.V.Prabhakar.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
CSCI 465 D ata Communications and Networks Lecture 24 Martin van Bommel CSCI 465 Data Communications & Networks 1.
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.
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.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
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 Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
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 - The Internet Protocol
7 Network Layer Part IV Computer Networks Tutun Juhana
IPV4.
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
IP - The Internet Protocol
Internetworking Outline Best Effort Service Model
IP - The Internet Protocol
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
Introduction to Networks
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
IP - The Internet Protocol
NET 323D: Networks Protocols
Review of Internet Protocols Network Layer
Presentation transcript:

CS 453 Computer Networks Lecture 20 Layer 3Network Layer Network Layer of the Internet

Internet – Network Layer The Internet is a world-wide economic, social, educational and cultural force It has literally changed the we conduct our daily lives IP protocol is the foundation of the Internet It’s the glue that makes it all work

Internet – Network Layer Design principles behind the IP protocol It has to work – build and test prototypes before committing the standards Simplicity – don’t add unnecessary features and keep the “necessary” ones to a minimum Don’t create options – have a way to do something, not several ways Modularity – keep design in modules Deal with heterogeneity – complex networks are going to mixes of technology – design for this

Internet – Network Layer Design principles behind the IP protocol Negotiable parameters – allow devices to negotiate parameters, don’t have fixed parameters Don’t shoot for perfect – don’t try to deal with every possible wrinkle, strange requirements Sender adheres to standard, receiver tries to adapt Scalability – design must be scalable Cost/performance – must be within acceptable limits

Internet – Network Layer From: Tanenbaum, 2003, pg 433

Internet See previous diagram from Tanenbaum Interconnection of network Across organizations Across countries Across continents Across oceans IP Protocol is the common thread IP protocol was designed from its inception to deal with networks of networks IP stands for internet protocol – with a little i

0.0001% of the Internet– according to Wikipedia.org From:

From:

IP Protocol IPv4 Header From:

IP Protocol IPv4 Header From:

IPv4 Header Header has 20 bytes of fixed fields + a variable length option part Transmitted in Big-endian order

IPv4 Header Header fields Version – 4 bits – identify the version of datagram – lets routers know how to handle the packet Header length – 4 bits because header has optional part length can vary, must declare header length – in N of 4 byte words – so max header length = 60 bytes Type Of Service (TOS) – allows for differentiated services – low delay, high throughput – allows routes to decide what to do

IPv4 Header Header fields Datagram length – length of entire datagram – 16 bits so max datagram length = 65,535, but usually 1500 or less (why?) Identifier – 16 bits – ids the datagram, so devices will know which datagram fragments belong to Flags – 3 bits – fragmentation flags Bit 16 = 0 Bit 17 = DF (don’t fragment) Bit 18 = MF (more fragments coming)

IPv4 Header Header fields Fragment offset – 13 bits – defines the fragment’s slot in the datagram (for reassembly) In 8 byte slots 8192 slots = max datagram = 65,536 Time to Live (TTL) – measures life of datagram in router hops – each hop TTL-1 If TTL reaches 0 datagram trashed and warning sent to source

IPv4 Header Header fields Transport Layer Protocol – what transport layer process should receive the datagram (TCP, UDP, …) Header Checksum – calculated check sum but just for the header portion of the packet Must be recalculated on each router hop Source address – 32 bit address of packet source Destination address – 32 bit address of packet destination recipient

IPv4 Header Header fields Option – variable length– intended to allow things not in the design Some predefined options originally – list has grown To see list go to OptionDescription SecuritySays routers should use secret routes Strict source routingDefine route to take Loose source routingDefines part of route to take Record routeRecord in route hops in options field TimestampEach router adds its address and timestamp

IPv4 Then the payload

IP Addressing All communications has a source and a destination (or more) IP address scheme defines source and destination IP address in IP Packet, not in frame Each device on Internet has an IP address Each address is unique – in theory (but not really)

IP Addressing Each address represents a network interface …not a host IP address has 32 bits… Represented (to us) in Dotted quad notation Dotted decimal notation

IP Addressing But really it a string of bits So this is – Which internally is –

IP Addressing Class addressing Originally IP address were defined in terms of classes Since the 32 address defines all hosts/interfaces in the Internet… … the Internet is a network of networks Fixed portion of the IP address were defined to represent a network… …i.e. the first x bits The network address was defined on even octet boundries bits, 16 bits, 24 bit The left x bits is the network address The right y bits is the host address x+y=32

IP Addressing Class addressing From: Tanenbaum, 2003, pg. 437

IP Addressing Class addressing Special Addresses From: Tanenbaum, 2003, pg. 438

IP Addressing Class addressing …was a bit of problem If WVU was assigned a Class B address (as it was sometime ago… …then the first 16 bits was the network address …the right 16 bits was for the address of all of the hosts in the network …and every host at WVU was on the the same network, right? …maybe for a few days

IP Addressing Class addressing We need someway of defining smaller networks (subnets) for departments, buildings, etc. And be able to aggregate these into the designated network (left x bits) That is called classless addressing

IP Addressing Classless addressing Generalize the idea of classes, … but make them hierarchical …and arbitrary size ( number of bits) For example, suppose the left 16 bits represent a network… …the next 8 bits represent network addresses within that network – or subnets Since 8 bits can be left for the host address part of the address There can be ? Hosts in such a subnet

IP Addressing Classless addressing At any given level an IP address needs to look like a network address and a host address At the highest network level – is the network address … and is the host address… But…

IP Addressing Classless addressing subnet mask A string of bits that acts as a bitmap Left x bits are set to 1 to say this many bit is the network address Right x bit is set to 0 to say this many bits is the host address… Or…

IP Addressing Classless addressing This subnetting process can be done recursively University gets a network College creates a subnet Department creates a subsubnet Lab creates a subsubnet

IP Addressing Classless addressing Subnet mask is used as a bit mask ANDed with address to see if Address in in local network or.. Needs to be routed to another network

IP Addressing Classless addressing Subnet mask is used as a bit mask ANDed with address to see if Address in in local network or.. Needs to be routed to another network

IP Network Address Translation NAT NAT

IP Network Address Translation NAT NAT From: Tanenbaum, 2003, 446

IP Network Address Translation NAT NAT NAT really irks a lot in the IP community Violates the IP unique address rule IP is connectionless, NAT creates a connection Must track state Violates protocol layer convention Dips into IP header (port address) Breaks on some protocols (payload imbedded addresses Might not be able to scale to large subnet