TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.

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.
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
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5-1 Internet Protocol (IP): Packet Format, Fragmentation, Options Shivkumar Kalyanaraman Rensselaer.
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.
Semester Copyright USM EEE442 Computer Networks Internetworking En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Internet Protocol-IP. Objective l TCP/IP vs. OSI models l CO vs. CL protocols l IP Features »Fragmentation »Routing l IP Datagram Format l IPv6.
IP Routing, Format, Fragmentation Chapters 20-21, 23.
© 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.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
1 Business Telecommunications Data and Computer Communications Chapter 15 Internetwork Protocols.
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
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.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
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.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
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 Protocols (chapter 18) CSE 3213 Fall 2011.
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.
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)
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.
Data and Computer Communications Ninth Edition by William Stallings Data and Computer Communications, Ninth Edition by William Stallings, (c) Pearson Education.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
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.
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.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
IP - The Internet Protocol
Internet Protocol (IP)
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Chapter 20 Network Layer: Internet Protocol
Wide Area Networks and Internet CT1403
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
University of Houston Internetwork Protocols Datacom II Lecture 2
Net 323 D: Networks Protocols
IP - The Internet Protocol
Introduction to Networks
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet Protocols (1) »Source: chapter 15 ¥Next Lecture »Internet Protocols (2) »Source: chapter 15

TELE202 Lecture 9 Internet Protocols (1) 2 Lecturer Dr Z. Huang TCP/IP ¥Transmission Control Protocol ¥Internet Protocol ¥TCP/IP refers to an entire suite of networking protocols, developed for use on the Internet »TCP and IP are two of the most important ¥TCP/IP reference model

TELE202 Lecture 9 Internet Protocols (1) 3 Lecturer Dr Z. Huang TCP/IP and Internet ¥Internet is different from ‘internet’ ¥A brief history »1969 ARPA funded ARPANET »1973 Ethernet (Bob Metcalfe’s PhD Thesis) »1977 packet switching funded by ARPA »1979 Internet Research Group for TCP/IP »1982/1983 TCP/IP as a core protocol »1983 BSD4.2 Unix with TCP/IP from UCB »1986 BSD4.3, performance improvements »1988 BSD4.3, slow start, congestion avoidance »1993 BSD4.4, multicasting ¥Size » sites » sites » ,000th network added in Internet » M computers » M computers » M computers »How many computers in Internet today? ¥Internet Activities Board »Internet Engineering Task Force »Internet Research Task Force »Network Information Center »RFC: technical reports on protocols

TELE202 Lecture 9 Internet Protocols (1) 4 Lecturer Dr Z. Huang IP - Internet Protocol ¥Unreliable connectionless protocol »A datagram service »Not guaranteed delivery –best effort delivery »Packets are not guaranteed to arrive in order or via the same route –Packets may be duplicated »Routing decisions may be made for each packet »Reliability is the responsibility of next layer up (e.g. TCP) ¥Uses the packet-switching technique ¥IP takes care of network differences »Make sure IP packets can be transferred through different networks »Use data link layer protocols, e.g. Ethernet, or other network layer protocols, e.g. X.25, as vehicles to transfer IP packets »IP packets are encapsulated into data link layer frames or other network packets Ethernet hdrIP packet

TELE202 Lecture 9 Internet Protocols (1) 5 Lecturer Dr Z. Huang IP operation ¥The following figure illustrates how an IP packet is transferred from one LAN to another LAN through X.25

TELE202 Lecture 9 Internet Protocols (1) 6 Lecturer Dr Z. Huang Interface with higher layer ¥Interface with higher layer, e.g. TCP »Functions to be performed »Form of primitive implementation dependent –e.g. subroutine call »Send –Request transmission of data unit »Deliver –Notify user of arrival of data unit ¥Parameters for send and deliver »Source address »Destination address »Protocol »Type of service indicators »Identification »Don’t fragment identifier »Time to live »Data length »Option data »Data

TELE202 Lecture 9 Internet Protocols (1) 7 Lecturer Dr Z. Huang IP packet format ¥Version (4 bits) »version of IP that created the packet »Currently IPv4, shortly IPv6 ¥Header length (4 bits) »number of 32-bit words in the packet header »Minimum 5, maximum 15 ¥Service type (3 bits) »allows the host to tell the subnet what kind of service it desires (reliability and speed) ¥Total datagram length (16 bits) »length of the entire IP packet. Max 64KB.

TELE202 Lecture 9 Internet Protocols (1) 8 Lecturer Dr Z. Huang IP packet fields ¥Identification, flags, fragment offset »used for breaking up a packet received from the next higher layer protocol and reassembling it if the packet is too big ¥Time to live (8 bits) »Decremented by routers to prevent looping. »Normally set to 30 »Packet is discarded when it reaches 0. ¥Protocol (8 bits) »Specifies the next higher protocol. Used at destination to give data to appropriate entity. »6, to TCP; 17, to UDP; 1, to ICMP ¥Header checksum (16 bits) »Error correction for the packet header. IP only worries about errors at its level. ¥Source and destination IP addresses »32 bit fields for the addresses ¥Options »record route, timestamp, packet routing, security ¥Padding »makes header end at a 32 bit boundary

TELE202 Lecture 9 Internet Protocols (1) 9 Lecturer Dr Z. Huang IP packet fields ¥Data »data provided by higher layer. »Integer multiple of 8 bits long (octet) »Max length of an IP datagram (header plus data) 65,535 octets ¥Type of services »Precedence: 3 bits, 8 levels »Reliability: 1 bit, normal or high »Delay: 1 bit, normal or low »Throughput: 1 bit, normal or high ¥Options »Security –Attach a security label »Source routing –A sequence of router addresses specifying the route »Route recording –Record the sequence of routers visited »Stream identification: reserve resources for real-time applications »Timestamping:add a timestamp when goes by

TELE202 Lecture 9 Internet Protocols (1) 10 Lecturer Dr Z. Huang Fragmentation ¥Different networks allow different maximum frame sizes. »Maximum Transfer Unit (MTU). »If IP receives a packet larger than the MTU of an underlying network, IP must break up the packet into fragments to transmit it. ¥The identification, flags, and fragment offset fields are used in this process »Identification: packet’s identification value »Flag field contains a more-fragments bit (mfb), indicating there are more fragments following »Fragment offset field: offset of the fragment in the packet’s data field

TELE202 Lecture 9 Internet Protocols (1) 11 Lecturer Dr Z. Huang Re-assembly ¥When to re-assemble »At destination –Results in packets getting smaller as data traverses internet »Intermediate re-assembly –Need large buffers at routers –Buffers may fill with fragments –All fragments must go through same router, which inhibits dynamic routing ¥IP re-assembles at destination only ¥Dealing with failure »Re-assembly may fail if some fragments get lost »Need to detect failure ¥Re-assembly time out »Assigned to first fragment to arrive »If timeout expires before all fragments arrive, discard partial data ¥Use time-to-live field of the first fragment as the packet life time »Let the time-to-live field continue to decrement per second »If time-to-live runs out, discard partial data

TELE202 Lecture 9 Internet Protocols (1) 12 Lecturer Dr Z. Huang IP Addresses ¥An IP address has four bytes »Dotted decimal notion e.g ¥IP addresses are divided into classes ¥Class A »0nnnnnnn xxxxxxxx xxxxxxxx xxxxxxxx »8-bit network address »24-bit node ID address »126 networks of 16 million hosts ¥Class B »10nnnnnn nnnnnnnn xxxxxxxx xxxxxxxx »16-bit network address »16-bit node ID address »16,384 networks of 64K hosts ¥Class C »110nnnnn nnnnnnnn nnnnnnnn xxxxxxxx »24-bit network address »8-bit node ID address »2 million networks of 254 hosts

TELE202 Lecture 9 Internet Protocols (1) 13 Lecturer Dr Z. Huang IP Addresses ¥Class D is multicast address »1110xxxx xxxxxxxx xxxxxxxx xxxxxxxx ¥Class E is reserved for future use »11110xxx xxxxxxxx xxxxxxxx xxxxxxxx ¥Example: »Which class? Convert it into binary code: –

TELE202 Lecture 9 Internet Protocols (1) 14 Lecturer Dr Z. Huang Internet Domains and Names ¥IP domain »Hierarchical »Domains are not geographical »Domains can have subdomains »Example: edu, com, org, gov, nz, co.nz ¥IP name »ws1.cs.mit.edu »vax2.dunedin.xyz.co.nz ¥IP name is different from IP address! ¥Examples »mary.otago.ac.nz »microsoft.co.nz ¥There is a mapping between IP name and IP address ¥Domain Name System (DNS) »Provide DNS servers to map an IP Name into an IP address »A distributed database for name-address pairs - no DNS server knows everything »A hierarchical system distributed among DNS servers ¥Try ‘nslookup’ to get the IP address for a text name »Example: nslookup atlas.otago.ac.nz

TELE202 Lecture 9 Internet Protocols (1) 15 Lecturer Dr Z. Huang Summary ¥TCP/IP reference model ¥TCP/IP protocol suite ¥Internet Protocol »Datagram service »Packet switching »Interface with higher layer »IP packet format »Fragmentation and re-assembly »IP addresses and classes »Internet domains and names