CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.

Slides:



Advertisements
Similar presentations
Communication Networks Recitation 3 Bridges & Spanning trees.
Advertisements

IPv4 - The Internet Protocol Version 4
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Network Layer Packet Forwarding IS250 Spring 2010
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
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.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
Fall 2010CMSC 1501 Internetworking. Fall 2010CMSC 1502 Assumptions Data pipe from every machine to every other machine. –Need not be single link (and.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
CSE 331: Introduction to Networks and Security Fall 2001 Instructor: Carl A. Gunter Slide Set 3.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
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.
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.
CS 4396 Computer Networks Lab
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
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)
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Bridges and Extended LANs
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
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.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
A quick intro to networking
IP - The Internet Protocol
Advanced Computer Networks
Scaling the Network: The Internet Protocol
3. Internetworking (part 3: IP)
CS4470 Computer Networking Protocols
Chapter 3 Part 1 Switching and Bridging
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Internet Protocol (IP)
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
IP - The Internet Protocol
Introduction to Computer Networks
Scaling the Network: The Internet Protocol
Introduction to Networks
Advanced Computer Networks
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Virtual LAN (VLAN).
Presentation transcript:

CSE331: Introduction to Networks and Security Lecture 7 Fall 2002

CSE331 Fall Announcements HW2 Due Today Project 1 available on the web site

CSE331 Fall Recap Packet Switching –Datagrams –Virtual Circuits –Source Routing

CSE331 Fall Today Spanning Tree Algorithm IP

CSE331 Fall Bridges and LAN Switches ABC XYZ Bridge Bridge accepts LAN frames on one port, outputs them on another. Optimization: only forward appropriate frames Learning bridges – watch incoming source address S at port number P – add entry to forward address S to port P – if no entry, broadcast to all ports 1 2

CSE331 Fall Problem: Cycles (Loops) Frame gets rebroadcast forever Could avoid by construction, BUT: –Hard, especially management –Often want redundancy Solution: –Restrict Active ports to a “Spanning Tree” –Basic design by Radia Perlman of Digital –802.1 specification of LAN Bridges is based on this algorithm

CSE331 Fall Spanning Trees (Abstractly) Given a connected graph G A spanning tree is an acyclic, connected subgraph of G

CSE331 Fall Extended LAN with Loops A C B D EF GH I J K B1B2B3B5B7B4B6

CSE331 Fall Spanning tree (ports disabled) A C B D EF GH I J K B1B2B3B5B7B4B6

CSE331 Fall Spanning Tree Algorithm (Abstractly) Pick a root node Compute shortest paths to root Root

CSE331 Fall Distributed Spanning Tree Algorithm Messages contain –Sender ID –Belief about root ID –Distance to root (in hops) Elect root for family of LAN’s and designated bridge for each LAN. Initially: each bridge considers itself root. Update and forward protocol.

CSE331 Fall Spanning Tree Algorithm, ctd A configuration message is better if –provides root with smaller ID –provides root with equal ID but shorter distance to root –provides equal root ID and distance to root but sending ID has smaller ID Only store & forward better information –Add 1 to #hops of forwarded messages Only root bridge sends configuration information at the end. Time outs to recover from failure.

CSE331 Fall Limitations of Bridges Scaling –Connections on order of dozens –Spanning tree algorithm scales linearly –Transparency incomplete Congestion can be visible to higher protocol layers Latency can be larger and more variable Heterogeneity –Limited to compatible (similarly addressed) link layers

CSE331 Fall Internet Protocol (IP) Terminology Service model Addresses Forwarding ARP ICMP

CSE331 Fall Internet Protocol Interoperability FTPHTTPNVTFTP TCP UDP IP EthernetATMFDDI Overlays (running at hosts) Virtual Network Infrastructure (runs globally) Networks (run locally)

CSE331 Fall Internetworks Router (Gateway)

CSE331 Fall Internetworks FDDI Token Ring H5 H4 H6 H3H2H1 H8H7 R2 R1 R3 Ethernet Point-to-Point Link (e.g., ISDN) Ethernet

CSE331 Fall IP Encapsulation H1 TCP IP ETH TCP IP ETH IP FDDIPPP IP H8 R1 R2R3 FDDIPPP FDDIPPP Example of protocol layers used to transmit from H1 to H8 in network shown on previous slide.

CSE331 Fall Service Model Choose minimal service model –All nets can implement –“Tin cans and a string” extremum Features: –Best-effort datagram delivery –Reliability, etc. as overlays –Packet format

CSE331 Fall IPv4 Packet Format Version Hlen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable length) Pad DATA

CSE331 Fall Fields of IPv4 Header Version –Version of IP, example header is IPv4 –First field so easy to implement case statement Hlen –Header length, in 32-bit words TOS –Type of Service (rarely used) –Priorities, delay, throughput, reliability

CSE331 Fall Header fields, continued Length –Length of datagram, in bytes –16 bits, hence max. of 65,536 bytes Fields for fragmentation and reassembly –Identifier –Flags –Offset

CSE331 Fall Header fields, continued TTL –Time to live (in reality, hop count) –64 is the current default (128 also used) Protocol –e.g., TCP (6), UDP(17), etc. (see slide 15)

CSE331 Fall Yet more fields…. Checksum –Checksum of header (not CRC) –If header fails checksum, discard the whole packet SourceAddr, DestinationAddr –32 bit IP addresses - global, IP-defined Options –length can be computed using Hlen

CSE331 Fall Fragmentation and Reassembly Networks differ on maximum packet size –Fragment packets into pieces –Each fragment is itself a complete datagram –Receiving host reassembles them Maximum Transmission Unit (MTU) –Path MTU is min MTU for path –Sender typically sends at MTU of first hop F-and-R bad for performance –One missing fragment means entire packet is discarded –Fragmentation uses up resources in the routers

H1R1R2R3H8 FDDI IP (1400) P2P IP (512)ETH IP (512) MTU = 1500 MTU = 4500 MTU = 532 MTU = 1500 FDDI Token Ring H5 H4 H6 H3H2H1 H8H7 R2 R1 R3 Ethernet Point-to-Point Link (e.g., ISDN) Ethernet ETH IP (1400) P2P IP (512)P2P IP (376)ETH IP (512)ETH IP (376)

CSE331 Fall Packet Fragmentation start of header Ident = x 0 Offset = 0 rest of header 1400 bytes data Unfragmented packet More to come flag start of header Ident = x 1 Offset = 64 rest of header 512 bytes data start of header Ident = x 0 Offset = 128 rest of header 376 bytes data Fragmented packet start of header Ident = x 1 Offset = 0 rest of header 512 bytes data Offset x 8 = # bytes