The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1: Solutions Time: 60 min (strictly enforced) Points: 50 YOUR.
IP Protocol. The Internet Protocol (IP) is a network-layer (Layer 3) protocol that contains addressing information and some control information that enables.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
CS 356 Systems Security Spring Dr. Indrajit Ray
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Internet Protocol (IP)
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
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
Computer Networks. IP Addresses Before we communicate with a computer on the network we have to be able to identify it. Every computer on a network must.
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,
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
Lecture 3 Overview. Protocol An agreed upon convention for communication both endpoints need to understand the protocol. Protocols must be formally defined.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
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.
Network Layer: Internet Protocol.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
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”
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
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.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Net7: IP 協定 Internet Protocol 授課教師:雲林科技大學 張慶龍 老師.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Process-to-Process Delivery:
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.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Network Layer Protocols
Scaling the Network: The Internet Protocol
Network Architecture Introductory material
CS 457 – Lecture 10 Internetworking and IP
Internet Protocol (IP)
Review of Important Networking Concepts
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Internetworking Outline Best Effort Service Model
Wide Area Networks and Internet CT1403
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Dr. John P. Abraham Professor UTPA
TCP/IP Protocol Suite: Review
Chapter 20. Network Layer: IP
Net 323 D: Networks Protocols
IP - The Internet Protocol
Scaling the Network: The Internet Protocol
IP - The Internet Protocol
NET 323D: Networks Protocols
Review of Internet Protocols Network Layer
Presentation transcript:

The Network Layer

Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually or in groups of two or three. Project will be due at the end of the semester.

Network Layer Route packets from source to destination –first layer that knows about communications beyond a single connection –must know the topology of the network Interface between transport layer and to data link layer

Goals of the Network Layer* The services should be independent of the subnet The transport layer should be shielded from the number, type and topology of the subnets present The network addresses made available to the transport layer should use a uniform numbering plan, even across LANs and WANs *Andrew S. Tanenbaum

Connection-oriented vs Connectionless Routing Connectionless –Subnet is unreliable –Primitives Send Packet Receive Packet –Hosts reorder packets –Each packet must provide full destination address –Each independently routed packet is a datagram –IP is a connectionless protocol

Connection-oriented vs Connectionless Routing Connection-oriented –All communication begins with the establishment of a connection. This connection is called a virtual circuit. –Identifiers are assigned to each connection –Packets arrive in order –Each packet must connection identifier –ATM is a connection-oriented protocol

Internet Protocol (IP) IP is the network layer of the TCP/IP reference model

IP Packets (datagrams) Network layer peers communicate via IP packets Ip Packets consist of a header and a data area Datagram headerDatagram data area

IP Datagrams are Encapsulated into Data Link Frames by the Data Link Layer Datagram headerDatagram data area Frame Header Frame Data

Maximum Transfer Units (MTU) Maximum frame size available –Ethernet (approximately 1500 bytes) –Minimum MTU is 576 What happens if we can’t fit an entire datagram into a single frame? –Fragment the datagram so that it can be sent in multiple frames. –Fragmentation and reconstruction occur at the network level. –Reconstruction occurs at the final destination only.

IPv4 Packet Header

IP Header Fields IHL - Length of header in 32-bit words –normally 5 Type of Service –Precedence (bits 0-2) 8 levels of precedence D - low delay (bit 3) T - high throughput (bit 4) R - high reliability (bit 5) Total Length is in 8-bit bytes

IP Header Fields Identification (16-bits) –Which datagram does this fragment belong to? DF –Don’t Fragment (576 or less must be supported) MF –More Fragments All but the last fragment has this bit set Fragment Offset –Where in the datagram does this fragment go? –Units are 8 bytes.

IP Header Fields Time to Live (8-bits) –Counter that is decremented each time the datagram traverses a router. Datagram is deleted when Time to Live is zero. Protocol (8-bits) –Transport protocol in use (e.g., TCP or UDP) Header Checksum –Basic error detection mechanism –Recomputed at each hop (Time to Live changes) Source and Destination IP address (32-bits each)

Classes of IP Addresses

Network/Host Address Breakdown Class A Networks –(N.H.H.H) –126 networks with 16 million hosts each Class B Networks –(N.N.H.H) –16,382 networks with 64K hosts each Class C Networks –(N.N.N.H) –2 million networks with 254 hosts each

Special Ip Addresses

Subnets Problem: –We are rapidly running out of IP addresses –Many networks do not have the maximum number of hosts that can be supported Temporary Solution: –Create subnet works with smaller numbers of hosts. Changes the distribution of network and host addresses –Uses some of the bits originally allocated for the host address for the network address

Sample subnet for class “B” network

Basics of Internet Routing Look at the destination IP address Extract network address If network is directly connected, send the datagram directly If network is indirectly connected, lookup the address of the network in a routing table.

Routing on a LAN Datagrams can be routed directly to a destination host that is connected to the same LAN Ethernet cards all have a unique 6-byte address The hosts maintain a table of IP to Ethernet address translations This table is maintained automatically using ARP

Address Resolution Protocol (ARP) The source broadcasts the destination address to the local network (along with the local source’s address) requesting the Ethernet address of the corresponding host The destination host responds by sending its Ethernet address to the source host The destination host sends the data to the destination and records the IP/Ethernet address pair for future use.

IPv6 Header