Internetworking I November 19, 1998 Topics Bridged networks Internets IP datagram delivery IP addresses 15-213 class26.ppt.

Slides:



Advertisements
Similar presentations
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
Advertisements

CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
1 Computer Networks IP: The Internet Protocol. 2 IP is a connection-less, unreliable network layer protocol IP provides best effort services in the sense.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Lecture 5, : The Internet, Summer : The Internet Lecture 5: Internetworking II David O’Hallaron School of Computer Science and Department.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
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.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
Internetworking May 1, 2001 Topics Protocol layering and encapsulation Internetworking with hubs, bridges, and routers The Internet Protocol (IP) The global.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Gursharan Singh Tatla Transport Layer 16-May
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
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
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Fall 2010CMSC 1501 Internetworking. Fall 2010CMSC 1502 Assumptions Data pipe from every machine to every other machine. –Need not be single link (and.
1 Chapter 1 OSI Architecture The OSI 7-layer Model OSI – Open Systems Interconnection.
CS 6401 Internetworking Outline Internet Architecture Best Effort Service Model.
Internet Protocol Internetworking Lab 1. Why Internet?
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.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
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.
Internetworking I: Basics April 13, 2000 Topics Internetworking with repeaters, bridges and gateways Internetworking with routers –the Internet Protocol.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
CS 4396 Computer Networks Lab
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 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
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 )
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
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.
Chapter 16– Connecting LANs
Network Layer & IP Protocol.
Introduction to TCP/IP networking
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Scaling the Network: The Internet Protocol
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
IP - The Internet Protocol
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
IP - The Internet Protocol
Router Construction Outline Switched Fabrics IP Routers
Net 323 D: Networks Protocols
Internetworking I: Basics November 11, 1999
IP - The Internet Protocol
Scaling the Network: The Internet Protocol
Introduction to Networks
Advanced Computer Networks
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Presentation transcript:

Internetworking I November 19, 1998 Topics Bridged networks Internets IP datagram delivery IP addresses class26.ppt

CS 213 F’98– 2 – class26.ppt The internetworking problem Want to build a single network (an interconnected set of networks, or internetwork, or internet) out of a large collection of separate networks. Challenges: heterogeneity –lots of different kinds of networks (Ethernet, FDDI, ATM, wireless, point-to-point) –how to unify this hodgepodge? scale –how do we provide uniques names for potentially billions of nodes? (naming) –how do we find all these nodes? (forwarding and routing) Note: internet refers to a general idea, Internet refers to a particular implementation of that idea (IP).

CS 213 F’98– 3 – class26.ppt Bridges ABC XYZ bridge Ethernet A Ethernet X adaptor (interface) port 1 (really just another adaptor) port 2 Unlike repeaters (which operate at the physical level), bridges operate at the data link level (or link level). By link level, we mean that they can parse and understand e.g. ethernet frames (as opposed to IP packets). Basic forwarding algorithm (flooding): copy each received frame to all other ports.

CS 213 F’98– 4 – class26.ppt Learning bridges Problem: Flooding is wasteful ABC XYZ bridge Ethernet A Ethernet X port 1 port 2 Optimization: Forward packets only when necessary by learning and remembering which hosts are connected to which bridge ports.

CS 213 F’98– 5 – class26.ppt Learning bridges (cont) Learning algorithm: 1. start with empty hash table T that maps hosts to ports 2. receive frame from host src on port p 3. add (src,p) to T 4. delete old entries Forwarding algorithm: 1. receive frame f from host src to host dst on port p 2. if T(dst) = n/a then flood f. else if T(dst) = p then discard f else forward f on port T(dst).

CS 213 F’98– 6 – class26.ppt Learning bridges (example) ABC XYZ bridge Ethernet A Ethernet X 1 2 hostport A1 A -> C flood 2 & 3 hostport A1 B1 B -> A discard hostport A1 B1 X -> A forward on 1 PQR 3Ethernet P

CS 213 F’98– 7 – class26.ppt Cycles in bridged networks 1. host writes frame F to unknown destination B2B1 F1 2. B1 and B2 flood F2 B2B1 F B2B1 F1 4. B1 and B2 flood F2 B2B1 F1 3. B2 reads F1, B1 reads F2 F2 B2B1 F2 5. B1 reads F1 B2 reads F2 F1 B2B1 F1 6. B1 and B2 flood F2

CS 213 F’98– 8 – class26.ppt Spanning tree bridges B3 A B4B5 B G B2 B1 CD E F B3 A B4B5 B G B2 B1 CD E F Networks are graph nodes, ports are graph edges Tree is constructed dynamically by a distributed “diffusing computation” that prunes ports. “spanning” refers only to networks, not bridges

CS 213 F’98– 9 – class26.ppt Pros and cons of bridges Pros transparency –LANS can be connected without any awareness from the hosts Cons transparency can be misleading –looks like a single Ethernet segment, but really isn’t –packets can be dropped, latencies vary homogeneity –can only support networks with identical frame headers (e.g., Ethernet/FDDI) scalability –tens of networks only »bridges forward all broadcast frames »increased latency

CS 213 F’98– 10 – class26.ppt Internetworks Def: An internetwork (internet for short) is an arbitrary collection of physical networks interconnected to provide some sort of host-to-host packet delivery service. internet host

CS 213 F’98– 11 – class26.ppt Building an internet X X Y Y Z Z network 2 (ECE) adaptor A A B B C C network 1 (SCS) adaptor We start with two separate, unconnected computer networks (subnets), which are at different locations, and possibly built by different vendors. EthernetATM Question: How to present the illusion of one network?

CS 213 F’98– 12 – class26.ppt Building an internet (cont) X X Y Y Z Z network 2 (ECE) adaptor A A B B C (router) network 1 (SCS) adaptor Next we connect one of the computers (in this case computer C) to each of the networks. adaptor

CS 213 F’98– 13 – class26.ppt Building an internet (cont) X X Y Y Z Z network 2 (ECE) adaptor A A B B C (gateway/router) network 1 (SCS) adaptor Finally, we run a software implementation of the Internet Protocol (IP) on each host and router. IP provides a global name space for the hosts, routing messages between network1 and network 2 if necessary. IP addresses:

CS 213 F’98– 14 – class26.ppt Building an internet (cont) internet At this point we have an internet consisting of 6 computers built from 2 original networks. Each computer on our internet can communicate with any other computer. IP provides the illusion that there is just one network.

CS 213 F’98– 15 – class26.ppt Internet protocol stack Berkeley sockets interface Reliable byte stream delivery (process- process) best effort datagram delivery (host-to- host) best effort datagram delivery (process- process) Application (FTP, Telnet, WWW, ) User Datagram Protocol (UDP) User Datagram Protocol (UDP) Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) Internet Protocol (IP) Network Interface (ethernet) Hardware physical level data link level network level transport level

CS 213 F’98– 16 – class26.ppt IP IP service model: IP provides best-effort delivery of datagram (connectionless) packets between two hosts. –IP tries but doesn’t guarantee that packets will arrive (best effort) –packets can be lost or duplicated (unreliable) –ordering of datagrams not guaranteed (connectionless) IP an addressing scheme for all the hosts in the internet Why would such a limited delivery model be useful? simple, so it runs on any kind of network provides a basis for building more sophisticated and user-friendly protocols like TCP and UDP

CS 213 F’98– 17 – class26.ppt Example internet R1 R2 H1 H2 H3 Network 3 (FDDI) H4 H5 H6 H7 H8 R3 Network 2 (Ethernet) Network 4 (Point-to-point) Network 1 (Ethernet)

CS 213 F’98– 18 – class26.ppt IP layering IP TCP ETH IP ETHFDDI IP FDDIP2P IP P2PETH IP TCP ETH Protocol layers used to connect host H1 to host H8 in example internet. H1R1R2R3H8

CS 213 F’98– 19 – class26.ppt Encapsulating IP datagrams in Ethernet Ethernet frame header Ethernet frame header IP datagram header IP datagram header IP datagram data IP datagram header IP datagram header IP datagram data IP datagram Ethernet frame The same idea is used for other types of physical networks

CS 213 F’98– 20 – class26.ppt VerHlen IP packet format VERIP version HLHeader length (in 32-bit words) TOSType of service (unused) LengthDatagram length (max 64K B) IDUnique datagram identifier Flags xxM (more fragmented packets) Offset Fragment offset TTLTime to Live ProtocolHigher level protocol (e.g., TCP) TOSLength Datagram IDFlags TTLProtocolChecksum Source IP address Destination IP address Options (variable) Offset Data

CS 213 F’98– 21 – class26.ppt Fragmentation and reassembly Different networks have a different maximum transfer unit (MTU). A problem can occur if packet is routed onto network with a smaller MTU. e.g. FDDI (4,500B) onto Ethernet (1,500B) Solution: break packet into smaller fragments. each fragment has identifier and sequence number Destination reassembles packet before handing it up in the stack. alternative would be to reassemble when entering network with larger MTU Sender can disable fragmentation using flag.

CS 213 F’98– 22 – class26.ppt Fragmentation example IP TCP ETH IP ETHFDDI IP FDDIP2P IP P2PETH IP TCP ETH H1R1R2R3H8 ETHIP1400FDDIIP1400P2PIP512 P2PIP512 P2PIP376 ETHIP512 ETHIP512 ETHIP376 MTU=1500 MTU=4500MTU=532MTU=1500

CS 213 F’98– 23 – class26.ppt Fragmentation example (cont) start of header ident=xm=1offset=0 rest of header 512 data bytes start of header ident=xm=1offset=512 rest of header 512 data bytes start of header ident=xm=0offset=1024 rest of header 376 data bytes First packet Second packet Third packet

CS 213 F’98– 24 – class26.ppt Internet addresses Each host h has a physical address P(h) and a unique IP address I(h). IP addresses contain a network part and a host part: network(7)host (24)0 31 network (14)host (16)10 network (21)host (8)110 Class A (128 nets, 16 M hosts/net) Class B (16 K nets, 65 K hosts/net) Class C (2 M nets, 256 hosts/net) 3 classes of addresses:

CS 213 F’98– 25 – class26.ppt Example Internet addresses networkhost0 31 networkhost10 networkhost110 Class A Class B Class C HostIP NumberClassNetwork cs.cmu.edu B0x0002 cmu.edu B0x0002 cs.stanford.edu B0x2640 att.com C0x008085

CS 213 F’98– 26 – class26.ppt CMU internet ATM PSC pitt.edu AT&TSprint es-weh-cle-4.net.cs (PDL/CMCL Labs) 7th floorWean es-weh-cl6-2.net.cs gw.cs poconos.cmcl backbone-1.net.csinterlink.sw.net 8th floor Wean bakerporter rtrbone.net cmu-fddi.psc.net cyert host