WHY AN IP LAYER? Rocky K. C. Chang 20 September 2010 1.

Slides:



Advertisements
Similar presentations
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Review of Important Networking Concepts
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction To Networking
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
1 Some Snapshots Rocky K. C. Chang 8 September 2008.
CECS 474 Computer Network Interoperability Tracy Bradley Maples, Ph.D. Computer Engineering & Computer Science Cal ifornia State University, Long Beach.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
CS 356 Systems Security Spring Dr. Indrajit Ray
Lecture 8 Modeling & Simulation of Communication Networks.
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,
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Review: – computer networks – topology: pair-wise connection, point-to-point networks and broadcast networks – switching techniques packet switching and.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Slide 15-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter Networks.
Section 4 : The OSI Network Layer CSIS 479R Fall 1999 “Network +” George D. Hickman, CNI, CNE.
Operating Systems Lesson 10. Networking Communications protocol is the set of standard rules for ◦ Data representation ◦ Signaling ◦ Authentication ◦
Examining TCP/IP.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Link Layer 5-1 Link layer, LAN s: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs  addressing,
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Internet Ethernet Token Ring Video High Speed Router Host A: Client browser: REQUEST:http//mango.ee.nogradesu.edu/c461.
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
5: Link Layer Part Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer.
1 TCP/IP, Addressing and Services S. Hussain Ali M.S. (Computer Engineering) Department of Computer Engineering King Fahd University of Petroleum and Minerals.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Link Layer5-1 Synthesis: a day in the life of a web request  journey down protocol stack complete!  application, transport, network, link  putting-it-all-together:
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
Data Communications and Networks
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Connecting to the Network Introduction to Networking Concepts.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
Link Layer5-1 Synthesis: a “day” in the life of a web request  journey down protocol stack!  application, transport, network, link  putting-it-all-together:
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
1 VLANs Relates to Lab 6. Short module on basics of VLAN switching.
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
1 Chapter 4: Internetworking (Introduction) Dr. Rocky K. C. Chang 16 March 2004.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
5: DataLink Layer5-1 Virtualization of networks Virtualization of resources: powerful abstraction in systems engineering: r computing examples: virtual.
1 Chapter 1: Foundation Dr. Rocky K. C. Chang 30 January 2004.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Virtualization of networks
Introduction to TCP/IP
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
Part I. Overview of Data Communications and Networking
3. Internetworking (part 1)
3. Internetworking (part 2: switched LANs)
OSI Protocol Stack Given the post man exemple.
Network Architecture Introductory material
Review of Important Networking Concepts
Chapter 6 The Data Link layer
Review of Important Networking Concepts
Dr. Rocky K. C. Chang 23 February 2004
TCP/IP Protocol Suite: Review
Scaling the Network: The Internet Protocol
Network Architecture Models
Review of Important Networking Concepts
Presentation transcript:

WHY AN IP LAYER? Rocky K. C. Chang 20 September

The internetworking problem 2  Problem: How to interconnect heterogeneous networks “effectively”?  Interconnect homogeneous networks directly, e.g.,  Multiple Ethernet LAN segments  Multiple Fibre Channels  Multiple Token Rings  Two wireless LANs  …  Switching / bridging  LAN switches  Transparent bridging, spanning tree algorithm and source routing

The internetworking problem 3  Interconnect heterogeneous networks directly, e.g.,  DIX Ethernet with IEEE Ethernet  Ethernet with Token Ring  Wired LAN with wireless LAN  Three problems with interconnection at data-link layer:  Do not scale to the number of data-link technologies.  Do not scale to the number of hosts (networks).  Do not have a common addressing space.

The internetworking problem 4 S2 S1 H4 H5 H3 H2 H1 Network 2 (Ethernet) Network 1 (Ethernet) H6 Network 3 (FDDI) Network 4 (point-to-point) H7S3H8

Scaling to data-link technologies 5  Conversion between frame structures.  Scalability problem as the number of data-link technologies supported increases, e.g., Ethernet FDDI PPP Token ring Frame conversion

Scaling to network size 6  A switched LAN is a “flat” network---A single broadcast frame reaches every LAN.  Virtual LAN (VLAN) can relieve this problem at the expense of managing VLAN membership.  Spanning tree protocol does not scale well to network size.  Take a longer time for the protocol to converge.  Take a longer time to respond to network state changes.

Uncommon MAC address spaces 7  Different structures and number of bits used in MAC address space  Ethernet: 48/64 bits  FDDI: 48 bits  ATM: 160 bits  Each address in a data-link technology must be universally unique.

A layer-3 solution to internetworking 8 R2 R1 H4 H5 H3 H2 H1 Network 2 (Ethernet) Network 1 (Ethernet) H6 Network 3 (FDDI) Network 4 (point-to-point) H7R3H8

IP: Scaling to data-link technologies 9 Ethernet FDDI PPP Token ring IP Encapsulation and demultiplexing

IP: Scaling to network size 10  IP network uses hierarchies to achieve scalability.  There are at least three levels:  A single IP host (csultra6.comp.polyu.edu.hk)  A IP subnet (four subnets in comp.polyu.edu.hk)  An autonomous system (polyu.edu.hk)

IP: Uncommon MAC address spaces 11  Create a logical (unicast) address space to identify network interfaces.  Classes A-C for unicast and class D for multicast: NetworkHost (a) NetworkHost (b) NetworkHost (c) (d) 1

Directly connected IP hosts 12 IP ETH TCP H1 IP ETH TCP H2 FTP TCP IP Ethernet protocol

Indirectly connected IP hosts 13 R1 ETH FDDI IP ETH TCP R2 FDDI ETH IP H1 IP ETH TCP H2 FTP TCP IP FDDI protocol

Encapsulation 14  Data is processed at each layer through the protocol stack, until it is sent as a stream of bits across the network.  Each layer adds information to the data by prepending headers (and sometimes trailers) to the data that it receives.  A lower-level protocol does not interpret the message it is given by some higher-level protocol.

Encapsulation 15 IP ETH TCP FTP Appl. data TCP hdr Appl. dataTCP hdrIP hdr Appl. dataTCP hdrIP hdrEth. hdr user input Send out to the network interface

Demultiplexing 16 Appl. data TCP hdr Appl. dataTCP hdrIP hdr Appl. dataTCP hdrIP hdrEth. hdr Received from the network interface Other nonIP network protocols UDP-based applications Other TCP-based application processes

Internet addresses and port numbers 17  Each network interface has at least one IP address.  Both TCP and UDP use 16-bit port numbers to identify applications.  Servers are normally known by their well-known port numbers, usually between 1 and  Client ports are referred to ephemeral ports, i.e., short lived, which use port numbers above 1023.

IP software at end hosts 18  The IP software mainly consists of modules for  Application layer, such as DNS  Transport layer: TCP, UDP  Routing layer: IP, ICMP, and others.  Data-link layer: MAC-IP-addresses binding IP addresses MAC addresessHost names DNS ARP RARP

An example 19  A HTTP client is running in m1.sun.com to connect to a HTTP server at  The DNS client at m1.sun.com first obtains the IP address of  The application data (HTTP+TCP) will then be encapsulated by an IP datagram with m1.sun.com

An example 20  IP source address =  IP destination address =  Now m1.sun.com needs to run ARP to obtain the MAC address of network interface to the LAN.  The IP datagram is then encapsulated in an Ethernet frame with  MAC source address = that of m1.sun.com  MAC destination address = that of

IP Software at routers 21  The software at routers is mainly used for routing and datagram forwarding.  Each router is running at least a “routing protocol” to construct a routing (or forwarding) table.  Each entry in a routing table consists of IP destination address and the next-hop’s IP address.  Upon receiving a datagram, a router forwards it based on a set of forwarding rules and the routing table.

Network programming 22  Two most common network APIs: Sockets and X/Open Transport Interface (XTI), a slight modification of AT&T’s Transport Layer Interface (TLI).  The APIs allows programmers to easily make “connections” with another application process, without knowing how the underlying network operates.

Basic socket calls for a client 23 socket connect recv send peer sockaddr_in{} obtain a socket establish a connection to the peer receive and send data

Basic socket calls for a server 24 socket listen recv send peer sockaddr_in{} obtain a socket mark the socket as a listening socket receive and send data bind accept local sockaddr_in{} bind the server’s IP address and port to the socket accept new connections

10 choices that were critical to the Internet’s success 25

10 right choices (by Scott Bradner) Make it all work on top of existing networks (about networks, not a network). 2. Use packets, not circuits. 3. Create a routing function. 4. Split TCP and IP. 5. The NSF funded the UC/Berkeley to put TCP/IP into the Unix OS. 6. CSNET connected with ARPANET ( only).

10 right choices (by Scott Bradner) The NSF required users of the NSFNET to use TCP/IP. 8. Intl. telecomm standard bodies rejected TCP/IP, then created OSI. 9. The NSF created an “Acceptable Use Policy” restricting NSFNET use to noncommercial activities. 10. Once things started to build, government stayed mostly out of the way.

Summary 28  Explained the need for an IP layer.  Discussed the additional requirements for running an IP layer.  Discussed the factors responsible for IP’s success in solving the internetworking problem.

Exercises this week 29  Try out the following commands (with various options) and network diagnosis tools:  ipconfig  netstat  arp  ping (ICMP, UDP, TCP, HTTP)  traceroute (tracert, pathping, ICMP/TCP/UDP, etc)  wireshark

Acknowledgments 30  Thanks to all the sources where the diagrams were extracted from.  URL for the 10 choices  people.org/archives/interesting- people/200209/msg00018.html