IP OVER ANYTHING Dr. Rocky K. C. Chang 15 Oct. 2012 1.

Slides:



Advertisements
Similar presentations
1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
Advertisements

ARP: Address Resolution Protocol
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Introduction to TCP/IP
Subnetting.
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.
1 The Classic Internet Protocol (RFC 791) Dr. Rocky K. C. Chang 18 September 2006.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
Protocol Headers Pre DA SA 0800h … version H L 6 TCP Header Data FCS
TCP/IP Networking sections 13.2,3,4,5 Road map: TCP, provide connection-oriented service IP, route data packets from one machine to another (RFC 791) ICMP,
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
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.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
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.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
Addressing IP v4 W.Lilakiatsakun. Anatomy of IPv4 (1) Dotted Decimal Address Network Address Host Address.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
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.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer NAT, IPv6.
1 Chapter 4: Internetworking (Introduction) Dr. Rocky K. C. Chang 16 March 2004.
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
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.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 Point-to-Point Protocol Data Link Layer Loopback ARP and RARP.
3. INTERNETWORKING (PART 3: IP) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 18 February
Chapter 8: IP Addressing
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Routing and the IP v4 Address Space BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
1 Kyung Hee University Chapter 19 Network Layer: Logical Addressing.
Network Layer IP Address.
1 Computer Networks Chapter 5. Network layer The network layer is concerned with getting packets from the source all the way to the destination. Getting.
Computer Communication Networks
IP: Addressing, ARP, Routing
Network Layer, and Logical Addresses
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
Internetworking & Address Resolution
CS 457 – Lecture 10 Internetworking and IP
Advanced Computer Networks
Internetworking Outline Best Effort Service Model
CPEG512 Advanced Computer Networks
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
Scaling the Network: The Internet Protocol
Introduction to Networks
Ch 17 - Binding Protocol Addresses
Presentation transcript:

IP OVER ANYTHING Dr. Rocky K. C. Chang 15 Oct

IP service model 2  The IP service model consists of  an addressing scheme to identify a network interface, and  a datagram (connectionless) model of data delivery. R1 ETH FDDI IP ETH R2 FDDI ETH IP H1 IP ETH H2 IP

IP service model 3  IP provides an unreliable and connectionless (datagram) delivery service, which is often referred to as a best-effort service.  Connectionless (vs connection-oriented): The IP network processes each IP packet independently. Destination based packet forwarding  Unreliability (vs reliable IP): do not ensure that the packets will be delivered to the destination. the packets will be delivered to the destination correctly.

IP service model 4 the packets will be delivered in the same order as they were sent. the packets will not be duplicated.  Best-effort service was the result of design instead of default.  Reliability is an additional service, provided by the transport layer.  What need to be done to the IP layer if total reliability is required there?

5 IP over anything?  IP over LANs and MANs  IP over WANs  IP over ATM  IP over fiber  IP over wireless networks  IP over Bluetooth  IP over satellite  IP over powerline  IP over space

6 Assumptions made by IP  IP made a minimal set of assumptions about the function of that the network to be connected would provide.  The network can transport a packet, which must be of reasonable size.  The packets should be delivered with reasonable reliability but not perfect reliability.  The network must have some suitable form of addressing if it is more than a point-to-point link.

7 Requirements for using IP  To transmit IP datagrams over any networks, two requirements need to be fulfilled:  Have a standard way to frame or encapsulate an IP datagram.  Have a method of resolving an IP address to the MAC address of the underlying network.

8 IP over legacy LANs  IP over Ethernet (RFC 894), IEEE 802 (RFC 1042), FDDI (RFC 1188), etc.  Ethernet frames: CRC Dest address Src address TypeData Type 0800 IP datagram Type 0806 ARP request Type 8035 ARP reply

IPv4 addresses 9  A, B, C, D classes of addresses (classful addresses) NetworkHost NetworkHost NetworkHost Class A Class B Class C Class D

IP subnets 10  IP subnets introduce additional levels within an IP network:  A network address, a subnet ID, and a host ID.  IP subnets offer flexibility in allocating addresses to different sizes of sub-networks.  A subnet mask is used to indicate which bits are referred to the network and subnet ID.  Each network interface stores subnet mask and its unicast IP address.

IP subnets 11  Subnetting for a class B address (/24)  Variable-length subnet mask Network numberHost number Class B address Subnet mask ( ) Subnetted address Network numberHost IDSubnet ID

IPv4 address assignment 12 R2 R1 H4 H5 H3 H2 H1 Network 2 (Ethernet) Network 1 (Ethernet) H6 Network 3 (FDDI) Network 4 (point-to-point) H7R3H8

IP supernets 13  Have a subnet mask shorter than the network address.  For example, use a “ subnet mask ” of (/22) for  Network  Network  Network  Network  Purpose of doing this?

IP broadcast addresses 14  Broadcast addresses  Net ID = all 1s and host ID = all 1s (limited broadcast)  Net ID != all 1s and host ID = all 1s (network-directed broadcast)  IP broadcast vs data-link broadcast  Multicast addresses  /4  Reserved multicast addresses (e.g., for all systems on this subnet)

IPv4 special unicast addresses 15  Special source addresses: NetID = /8  Loopback addresses: /8  Link-local addresses: /16  Three classes of private addresses: /8, /12 and /16  6-to-4 anycast addresses: /24 (RFC 3068)  Reserved for special use and for future allocation

Private IPv4 addresses 16  To reduce the required number of IP addresses, three blocks of IP address space are reserved for private internets (RFC1918):  /8  /12 (16 class B networks)  /16 (256 class C networks)  Private addresses are also known as nonroutable addresses

Private IPv4 addresses 17  A host with a private IP address may communicate with external hosts through a Network Address Translation (NAT) service.  Address and port translations  NAT is usually provided by a firewall or a border router.  The private address is translated into a nonprivate IP address before sending the datagram out.

Address configuration 18  Static vs auto configurations  Stateful vs stateless configurations  Stateful: DHCP  Stateless: Link local addresses ( /16) Communication within a single link Link-local addresses are also not routable. Zero configuration networking

19 IPv6 addresses  IPv6 addresses are 128-bit identifiers for interfaces and sets of interfaces.  There are three types of addresses:  Unicast: An identifier for a single interface. A packet sent to a unicast address is delivered to the interface identified by that address.  Anycast and multicast: An identifier for a set of interfaces (typically belonging to different nodes). A packet sent to an anycast address is delivered to one of the interfaces identified by that address (the "nearest" one, according to the routing protocols' measure of distance). A packet sent to a multicast address is delivered to all interfaces identified by that address.

20 IPv6 addresses  There are no broadcast addresses in IPv6, their function being superseded by multicast addresses.  All interfaces are required to have at least one link- local unicast address.  A single interface may also be assigned multiple IPv6 addresses of any type (unicast, anycast, and multicast) or scope. Address type Binary prefix IPv6 notation Unspecified (128 bits) ::/128 Loopback (128 bits) ::1/128 Multicast FF00::/8 Link-Local unicast FE80::/10 Global Unicast (everything else)

21  Global routing prefix: a (typically hierarchically- structured) value assigned to a site (a cluster of subnets/links),  Subnet ID: an identifier of a link within the site,  Interface ID: identify interfaces on a link. In some cases, an interface's identifier will be derived directly from that interface's link-layer address. The global unicast addresses | n bits | m bits | 128-n-m bits | | global routing prefix | subnet ID | interface ID |

22 Address resolution in shared media  Two approaches: server-based or broadcast-based  In the broadcast-based approach:  An (address resolution protocol) ARP request message is data-link broadcast on the LAN with the target IP address.  Every IP host picks up a copy of the message and examines the target IP address. If matching its IP address, send an ARP reply message back to the sender with its MAC address. Else, drop the message.

23 ARP frames for Ethernet TargetHardwareAddr (bytes 2–5) TargetProtocolAddr (bytes 0–3) SourceProtocolAddr (bytes 2–3) Hardware type = 1ProtocolType = 0x0800 SourceHardwareAddr (bytes 4–5) TargetHardwareAddr (bytes 0–1) SourceProtocolAddr (bytes 0–1) HLen = 48PLen = 32Operation SourceHardwareAddr (bytes 0–3)

24 Other enhancements and usage  To reduce broadcast traffic, each host uses an ARP cache to remember the recent binding.  Gratuitous ARP  A host sends out an ARP request message at bootstrap, looking for its IP address.  The sender’s protocol address and the target’s protocol address are identical.  Purposes?

25 Other enhancements and usage  Proxy ARP  Map a single MAC address onto multiple IP addresses.  A router, configured with proxy ARP, answers ARP requests on behalf of the target host.  The router also needs to build up a database on (MAC address, IP address) for all hosts attached to the router.  The broadcast approach has one potential problem-- -broadcast storm.  Reverse ARP (RARP)

Additional internetworking issues 26

Additional internetworking issues 27  Bridging heterogeneous MTU  Handling packet reordering  Error detection and reporting  Providing “ differentiated ” services  Packet scoping  Providing other forms of routing  Network diagnosis

Heterogeneous MTUs 28  Each network chooses a maximum packet size that can be sent on it, Maximum Transmission Unit (MTU). For example,  1500 bytes for 10-Mbps Ethernet  4352 bytes for FDDI  bytes for 16-Mbps token ring  9180 bytes for ATM AAL5  9000 bytes for Ethernet jumbo frames  Over-sized frames will be dropped.  All MTUs are smaller than IP datagram ’ s maximum size (65,535 bytes)

Heterogeneous MTUs 29  If MTU1 > MTU2  Minimum MTU = 576 bytes (RFCs 791 and 879) RMTU1MTU2

Path MTU 30  Path MTU: The minimum of the networks ’ MTUs on the path from the source to destination.  Path MTU between H1 and H2 = min{MTU(N1), MTU(N2), MTU(N3)}  How to find the path MTU? N1N2N3 H1H2

Approaches to bridging MTUs 31  Problem: How can an IP datagram traverse networks with different MTUs?  Recall that IP does not assume that all MTUs are the same.  Approaches  Always use the minimum MTU.  Use the local MTU first and then use the minimum MTU if it is not successful.  Network-centric  Host-centric

Hop-by-hop IP fragmentation: A network- centric approach 32  Transparent to the sending host  A router fragments an IP packet when forwarding it to a network with a smaller MTU.  Each IP fragment contains enough information for forwarding to the destination.  Remember the connectionless model?  A fragmented IP datagram will be reassembled only at the destination node.  Why not reassembled at intermediate routers?

Fragmentation considered harmful? 33  Fragmentation causes inefficient resource usage (bandwidth, computation)  Loss of fragments leads to degraded performance.  Efficient reassembly is hard.

Fragmentation considered harmful? 34  A recent report on the characteristics of fragmented IP packets  Fragmented traffic does regularly occur at highly aggregated exchange points as well as on access links.  Majority of fragmented traffic is UDP (68% by packets and 72% by bytes)  ICMP, IPSec, TCP, and tunneled traffic are all present.  Tunneled traffic forms a large portion of fragmented traffic (16% by packets and 11% by bytes)

Packet reordering 35  According to a recent study, packet reordering is a common phenomenon in the Internet today.  Packet reordering is strongly a function of the following properties of the routing path.  Parallel links between nodes on the path  Exact configuration of the hardware and software in the nodes  The load on the nodes.  Impact of reordering on TCP performance

Packet reordering 36 B6 B4 B3 B1 B5 C2 B2 C1D1 C2 C1 C2 C1 A1A2 B C D

37

What can IP do to packet reordering? 38  Make IP aware of the parallel links and direct which link each packet flow is sent over.  Hash the source and destination IP addresses modulo the number of links  A number of pitfalls:  A single flow cannot use all the parallel links  Uneven distribution of the flows on the links

Summary 39  By design, IP provides the best-effort service to deliver IP datagrams on top of various networks.  Besides address resolution and packet encapsulation, IP also needs to handle the heterogeneous MTU issue and others.  The IP datagram was carefully designed (not) to address other issues.

References J. Bennett, C. Partridge, and N. Shectman, “ Packet Reordering is Not Pathological Network Behavior, ” IEEE Trans. Networking, vol. 7, no. 6, pp , C. Shannon, D. Moore, and k claffy, “ Characteristics of Fragmented IP Traffic on Internet Links, ” available from 3. C. Kent and J. Mogul, “ Fragmentation Considered Harmful, ” ACM Computer Commun. Rev., pp , Jan