CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Similar documents
McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Network Layer/IP Protocols

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Vorlesung Kommunikationsnetze

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

NETWORK LAYER: IP Addressing

IP - The Internet Protocol

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

End-to-End Communication

TSIN02 - Internetworking

The Internet Protocol (IP)

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

TCP /IP Fundamentals Mr. Cantu

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Network layer: Overview. Network Layer Functions

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Network Layer: outline

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

Introduction to Internetworking

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Communication Systems DHCP

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Lecture 8. Network Layer (cont d) Network Layer 1-1

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

TSIN02 - Internetworking

IP Addressing and Subnetting

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Router Architecture Overview

EEC-684/584 Computer Networks

Lecture 8 Network Layer: Logical addressing

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

EEC-484/584 Computer Networks

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

CS 455 Internet Architecture, Page 3 ffl By 1985, the ARPANET was heavily used and congested; the National Science Foundation (NSF) initiated the NSFN

IP Address Assignment

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Position of IP and other network-layer protocols in TCP/IP protocol suite

Lecture 11: Networks & Networking

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

The Internet. The Internet is an interconnected collection of netw orks.

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

Data Communication & Computer Networks Week # 13

Introduction to routing in the Internet

Network Layer: Internet Protocol

Chapter 4: Network Layer

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Chapter 4 Network Layer

The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or

TCP/IP and the OSI Model

ET4254 Communications and Networking 1

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Introduction to routing in the Internet

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

The Internetworking Problem. Internetworking. A Translation-based Solution

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

Internetwork Protocols

CSC 401 Data and Computer Communications Networks

ECE 461 Internetworking Fall Quiz 1

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Chapter 5 TCP/IP SUITE

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

ECE 4450:427/527 - Computer Networks Spring 2017

CS118 Discussion, Week 6. Taqi

Chapter 19 Network Layer: Logical Addressing

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Lecture 2: Basic routing, ARP, and basic IP

ECE 158A: Lecture 7. Fall 2015

Internet Protocol (IP)

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Network Layer: Control/data plane, addressing, routers

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Internet Control Message Protocol (ICMP)

Design Considerations : Computer Networking. Outline. Challenge 1: Address Formats. Challenge. How to determine split of functionality

Department of Computer Science and Engineering. CSE 3214: Computer Network Protocols and Applications Instructor: N. Vlajic Date: Feb 23, 2016

b. Suppose the two packets are to be forwarded to two different output ports. Is it

SEN366 (SEN374) (Introduction to) Computer Networks

IPv4. Christian Grothoff.

Internet Protocols (chapter 18)

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Computer Networks Lecture -5- IPv4 Addresses. Dr. Abbas Abdulazeez

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Networking for Data Acquisition Systems. Fabrice Le Goff - 14/02/ ISOTDAQ

Types of Transfer. Connection-oriented Transfer. Connectionless Transfer. Networks generally provide two types of communication. Connection-oriented

Manipal Institute of Technology

LOGICAL ADDRESSING. Faisal Karim Shaikh.

Lecture 1: Introduction

Transcription:

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid College of Computing and Information Technology Arab bacademy for Science &T Technology and Maritime Transport Internet Protocol Suite IP Suite Dr. Ayman Abdel-Hamid, CC231 1

Outline Internet Protocol Suite IP Suite Dr. Ayman Abdel-Hamid, CC231 2

TCP/IP: The Big Picture 1/10 SCTP IP Suite Dr. Ayman Abdel-Hamid, CC231 3

Network Layer TCP/IP: The Big Picture 2/10 IP: Internet Protocol (IPv4 and IPv6) Unreliable service Performs routing (Supported by routing protocols, e.g., BGP) Provide Internet-wide addressing (logical addressing) Fragment datagrams, as needed dfor underlying network ICMP: Internet Control Message Protocol Handles error and control information between routers and hosts ICMP messages generated and processed by networking software and not user processes IP Suite Dr. Ayman Abdel-Hamid, CC231 4

Network Layer TCP/IP: The Big Picture 3/10 IGMP: Internet Group Management Protocol Used with multicasting ARP: Address Resolution Protocol Maps an IP( (network) address into a hardware (network interface) address (such as an Ethernet address) RARP: Reverse Address Resolution Protocol Maps a hardware address into an IP address ICMPv6 Combines ICMPv4, IGMP, and ARP IP Suite Dr. Ayman Abdel-Hamid, CC231 5

TCP/IP: The Big Picture 4/10 ARP (ARP responses are cached) IP Suite Dr. Ayman Abdel-Hamid, CC231 6

TCP/IP: The Big Picture 5/10 IP Suite Dr. Ayman Abdel-Hamid, CC231 7

TCP/IP: The Big Picture 6/10 Network klayer at Source IP Suite Dr. Ayman Abdel-Hamid, CC231 8

TCP/IP: The Big Picture 7/10 Network Layer at Router IP Suite Dr. Ayman Abdel-Hamid, CC231 9

TCP/IP: The Big Picture 8/10 Network Layer at Destination IP Suite Dr. Ayman Abdel-Hamid, CC231 10

Transport Layer TCP/IP: The Big Picture 9/10 TCP: Transmission Control Protocol Byte stream transfer Reliable, connection-oriented service Point-to-point Pitt it( (one-to-one) service only UDP: User Datagram Protocol Unreliable ( best effort ) datagram service Point-to-point, to multicast (one-to-many), and broadcast (one-to-all) IP Suite Dr. Ayman Abdel-Hamid, CC231 11

Transport Layer TCP/IP: The Big Picture 10/10 SCTP: Stream Control Transmission Protocol [RFC 2960] Connection oriented Provides reliable full-duplex association Provides a message service In TCP, a stream is a sequence of bytes In SCTP, a stream is a sequence of messages Can use IPv4 and IPv6 on same association Several streams within same association IP Suite Dr. Ayman Abdel-Hamid, CC231 12

Internetworking Motivation Heterogeneity and scale IP is the glue that connects heterogeneous networks giving the illusion of a homogenous one Features Best Effort Service Model Global Addressing Scheme The Internet Protocol (IP) delivers datagrams across networks through routers (unreliable datagram service) Datagrams (packets) may or may not be delivered Datagrams may arrive at destination out of order Datagrams may be arbitrarily delayed IP Suite Dr. Ayman Abdel-Hamid, CC231 13

IP Addressing 1/11 Global (public) IP addresses are unique (universal) Private IP addresses are not globally unique No router will forward a packet that has a private IP address as a destination address Dotted decimal notation IP Suite Dr. Ayman Abdel-Hamid, CC231 14

Classful addressing Five classes: A, B, C, D, and E IP Addressing 2/11 IP Suite Dr. Ayman Abdel-Hamid, CC231 15

Classful addressing IP Addressing 3/11 Hierarchical: Network ID (Netid) and Host ID (Hostid) Each class is divided into a fixed number of blocks with each block having a fixed size IP Suite Dr. Ayman Abdel-Hamid, CC231 16

IP Addressing 4/11 Classful addressing Class A divided into 128 blocks (each block a different Netid) ) First block 0.0.0.0 to 0.255.255.255 16,777,216 addresses in each block millions wasted IP Suite Dr. Ayman Abdel-Hamid, CC231 17

IP Addressing 5/11 Classful addressing Class B divided into 16,384 blocks 16 blocks for private addresses only 16,368 blocks for assignment) Each block contains 65,536 addresses midsize organizations Class C Divided into 2,097,152, blocks 256 for private addresses 2,096,896 blocks for assignment Each block contains 256 addresses small organizations IP Suite Dr. Ayman Abdel-Hamid, CC231 18

IP Addressing 6/11 Classful addressing Network address: an address that defines the network itself, e.g., 123.0.0.0 (class A), 141.14.0.0 (class B), and 221.45.71.0 (class C) Packets are routed to an organization based on the network address To find the network address apply a netmask (default mask) AND netmask with address A netmask will retain the Netid of the block and sets the Hostid to 0s e.g., 190.240.7.91 class B, default mask is 255.255.0.0 network address is 190.240.0.0 Could express address as 190.240.7.91/16 (slash notation netmask khas 1s in first t16 bits and 0s elsewhere) IP Suite Dr. Ayman Abdel-Hamid, CC231 19

IP Addressing 7/11 Classful addressing Subnetting Network address used to route packets to the network Outside world recognizes network, not individual hosts on the network (later reach host using the Hostid) Motivation for subnetting: Assemble hosts into groups Three levels of hierarchy: site, subnet, and host IP Suite Dr. Ayman Abdel-Hamid, CC231 20

IP Addressing 8/11 Classful addressing Subnetting A packet reaches a site based on the network address (using the netmask) Routers inside the organization route based on subnetwork address) To find subnet address apply a subnet mask AND subnet mask with address e.g., 190.240.33.91 with /24 subnet mask (network address is 190.240.0.0 and subnet address is 190.240.33.0) Can you figure out 190.240.33.91/19? 91/19? IP Suite Dr. Ayman Abdel-Hamid, CC231 21

Broadcast Addresses IP Addressing 9/11 Special addresses used for broadcasting Directed broadcast All 1 s in Hostid All hosts on a specified network (or subnet) Limited broadcast all 1 s (network and Hostid) Picked up by all other nodes on the LAN Not forwarded Example: broadcasting for 128.173.92.96 Directed broadcast (using subnet): 128.173.255.255 Limited broadcast: 255.255.255.255 IP Suite Dr. Ayman Abdel-Hamid, CC231 22

IP Addressing 10/11 Classless addressing Classful addressing problematic Fixed block size and address waste ISPs are granted several class B or C blocks and then subdivide range between customers In 1996, classless addressing introduced Variable-length blocks that belong to no class Organization given first address and mask Can use subnets Classless Inter-Domain Routing (CIDR) IP Suite Dr. Ayman Abdel-Hamid, CC231 23

IP Addressing 11/11 Network Address Translation (NAT) Use a number of private (internal) addresses (home users and small businesses) when assigned ONE (or a small set) externally NAT router replaces source address in outgoing packets with global NAT address NAT router replaces destination address in incoming packets with appropriate private address The need for PAT (Port Address Translation) IP Suite Dr. Ayman Abdel-Hamid, CC231 24

IP Datagrams IP datagrams include Header,, minimum size of 20 bytes Data Datagram size Less than or equal to maximum transmission unit (MTU) of the underlying network (Ethernet MTU is 1,500 bytes) MTU is the maximum amount of data that a link-layerlayer packet can carry Fragmentation Packets k may need to be fragmented at intermediate nodes if packet is too big for an intermediate network Path MTU less than link MTU at sender Remember in IPv4, hosts and routers fragment datagrams In IPv6, only hosts perform fragmentation Receiver i reassembles fragments to form entire IP packet IP Suite Dr. Ayman Abdel-Hamid, CC231 25

IP Datagram Format IP Suite Dr. Ayman Abdel-Hamid, CC231 26

IP Header Fields 1/2 Identification: unique datagram identifier Total Length: length of this datagram + header, in bytes Minimum datagram size in IPv4 is 576 bytes (in IPv6 1,500 bytes) Use 576 (Minimum MTU) if path MTU unknown, or path MTU if on a connected network (datagram may be fragmented) Internet It theader Length: length of header in 32-bit words (+options) Max is 15 allowing for sizes (header +options) of 60 bytes Fragment Offset: offset of fragment in this datagram in 8-byte units Flags (DF and MF): indicate if last fragment, and If datagram should not tbe fragmented d(what thappens if need dto fragment and ddfi is set?) Time To Live: maximum number of routers through which the datagram may pass Decremented at each router Used to prevent looping in the network Also used to limit scope of multicast datagrams IP Suite Dr. Ayman Abdel-Hamid, CC231 27

IP Header Fields 2/2 Protocol: identifies higher level protocol that provided data Version: IP version identifier (currently 4) Type of Service: (historical) Maximize throughput, minimize delay, maximize reliability, minimize cost (no guarantees, though) Now replaced with 6-bit Differential Services Code Point and 2-bit Explicit Congestion Notification Header Checksum: checksum over header (protects addresses, lengths, etc.) 16-bit 1 s complement of 1 s complement sum of 16-bit Source IP Address and Destination IP Address Options (rarely used, may not be supported by routers) Security and handling restrictions Record route Loose source routing (datagram passes through listed nodes and others) Strict source routing (datagram must pass through only each listed node) IP Suite Dr. Ayman Abdel-Hamid, CC231 28

IPv4 Fragmentation by Routers Example 1/2 In adhering to end-to-end principle If a router fragments a datagram, reassembly is only performed at destination Reassembly at routers would complicate network performance reassembly Datagram size = 4,000 bytes Identification = x IP Suite Dr. Ayman Abdel-Hamid, CC231 29

IPv4 Fragmentation by Routers Example 2/2 1st fragment 1480 bytes in the data field of the IP datagram (total length = 1500) identification = x offset = 0 (meaning the data should be inserted beginning at byte 0) flag = 1 (meaning there is more) 2nd fragment 1480 bytes in the data field of the IP datagram (total length = 1500) identification = x offset = 1,480 (meaning the data should be inserted beginning at byte 1,480 flag = 1 (meaning there is more) 3rd fragment 1020 bytes (=3980-1480-1480) in the data field of the IP datagram (Total length = 1040) identification = x offset = 2,960 (meaning the data should be inserted beginning at byte 2,960) flag = 0 (meaning this is the last fragment) IP Suite Dr. Ayman Abdel-Hamid, CC231 30