CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Spring 2003 Week 6 Introduction to Networks and the Internet.

Slides:



Advertisements
Similar presentations
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
The Network Layer Functions: Congestion Control
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 24 Introduction to Computer Networks.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
TDC /502, Summer II Unit 2: Underlying Technologies Transmission media (Section 3.1. Read on your own) Local Area Networks (LANs) –Ethernet.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 13 Introduction to Networks and the Internet.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 15 Introduction to Networks and the Internet.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 12 Introduction to Networks and the Internet.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 14 Introduction to Networks and the Internet.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
思科网络技术学院理事会. 1 OSI Network Layer Network Fundamentals – Chapter 5.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer Internet Protocol (IP) layer Introduction.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 18 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Virtual Circuit Network. Network Layer 2 Network layer r transport segment from sending to receiving host r network layer protocols in every host, router.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
1 CSE3213 Computer Network I Network Layer (7.1, 7.3, ) Course page: Slides modified from Alberto Leon-Garcia.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Network Layer introduction.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
Dr. John P. Abraham Professor UTPA
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
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.
1 Kyung Hee University Chapter 4 Introduction to Network Layer.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 16 Introduction to Networks and the 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”
CCNA Exploration Network Fundamentals Chapter 05 Network Layer 1 KC KHOR, Multimedia Univ. Cyberjaya.
Internet Protocol: Routing IP Datagrams Chapter 8.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
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.
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Review of Network Technologies. Basic of Network concepts Computer Network – A Communication system for connecting computers/hosts Why? – Better connectivity.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
Routing and the IP v4 Address Space BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Chapter 5 Network and Transport Layers
Chapter 4 Network Layer All material copyright
Chapter 4 Introduction to Network Layer
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
Chapter 4 Introduction to Network Layer
Chapter 20 Network Layer: Internet Protocol
Network Layer I have learned from life no matter how far you go
PRESENTATION COMPUTER NETWORKS
Net 323 D: Networks Protocols
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Scaling the Network: The Internet Protocol
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Presentation transcript:

CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Spring 2003 Week 6 Introduction to Networks and the Internet

CMPE 80N - Introduction to Networks and the Internet 2 Announcements Quiz 2: postponed! –New date: Nacho’s office hours: –05.07 at 11am-1pm in BE 399C. Discussion sessions for quiz 2: –Friday, during Chandra’s office hours. –Monday, from 1-4pm. –Both will be at Jack’s Lounge (white boards).

CMPE 80N - Introduction to Networks and the Internet 3 Today Layer 3: Network layer.

CMPE 80N - Introduction to Networks and the Internet 4 Network Layer Main functions: routing and forwarding. –What’s routing? –What’s forwarding?

CMPE 80N - Introduction to Networks and the Internet 5 Routing Find path (route) between source and destination. Source Destination

CMPE 80N - Introduction to Networks and the Internet 6 Routing (cont’d) Routing means finding a suitable path for a packet from sender to destination A possible route Another possible route

CMPE 80N - Introduction to Networks and the Internet 7 Routing (cont’d) A router may need to choose between two or more paths that lead to destination. –Choosing the “shortest” path. Typically, there are multiple hops to make the journey. –Unless hosts are on the same network. The routing algorithm is the part of a network layer software responsible for deciding which output line a packet should be transmitted on

CMPE 80N - Introduction to Networks and the Internet 8 Forwarding When data is received, forward it in toward the destination.

CMPE 80N - Introduction to Networks and the Internet 9 Who? How? Who performs network layer functions? –Switches/routers. How these functions are carried out? –Later…

CMPE 80N - Introduction to Networks and the Internet 10 Switches Switches, or routers, receive data on one side and forward it on the other side. Like telephone switches. Source Destination Switch

CMPE 80N - Introduction to Networks and the Internet 11 Wide-Area Network One possibility: connect every host using dedicated line. –Problem? Another possibility: use interconnected switches who in turn connect to hosts. Switch Hosts/ Switches Hosts/ Switches

CMPE 80N - Introduction to Networks and the Internet 12 Switch Internals Early WANs used general purpose machines dedicated to the task of switching. Modern WAN switches use special purpose hardware optimized for the switching task.

CMPE 80N - Introduction to Networks and the Internet 13 Store and Forward How switches operate. Shared LANs: only 1 pair of hosts can exchange a frame at a time. WANs: many hosts can send simultaneously. Switch stores data they receive in memory; next switch examines data, determines which interface to send it, and forwards data on. If multiple data items arrive for the same outgoing interface, they are queued waiting to be transmitted.

CMPE 80N - Introduction to Networks and the Internet 14 Next-Hop Forwarding If data not destined to directly connected host, switch forwards it to the next hop toward destination. –Airline travel analogy. –SF-> Miami: SF->Dallas->Atlanta->Miami. Next hop does not depend on source, not on the path traveled so far. Only needs destination address! Advantage: switch does not need to keep complete information about how to reach all possible destinations.

CMPE 80N - Introduction to Networks and the Internet 15 Routing Table Table containing destination and associated next-hop information. Switch 2

CMPE 80N - Introduction to Networks and the Internet 16 Routing Table: Example Switch 1 Switch 3 A B C D E F 1,1 1,3 2,1 2,4 3,2 3,4 At switch 2: Destination Next hop 1,1 Interface 1 1,3 Interface 1 3,2 Interface 4 2,1 Host E 2,4 Host F Switch

CMPE 80N - Introduction to Networks and the Internet 17 More Routing Table Each router stores information about forwarding in a routing table. –Initialized at system initialization. –Must be updated as network topology changes. Routing table contains a list of destination and next hop for each destination.

CMPE 80N - Introduction to Networks and the Internet 18 Routing and Hierarchical Addresses Hierarchical addresses allow routing tables to be smaller and more concise. At switch 2: Destination Next hop Destination Next Hop 1,1 Interface 1 1, any Interface 1 1,3 Interface 1 3,2 Interface 4 3, any Interface 4 2,1 Host E 2, any Local 2,4 Host F

CMPE 80N - Introduction to Networks and the Internet 19 Today Network layer (cont’d). Internetworking.

CMPE 80N - Introduction to Networks and the Internet 20 Network Layer: Implementation and Services

CMPE 80N - Introduction to Networks and the Internet 21 Circuit- versus Packet- Switching Circuit Switching –Physical circuit (physical connection) is established between source and destination throughout the network (involving switches and links). –This happens before any data can be sent.

CMPE 80N - Introduction to Networks and the Internet 22 Circuit Switching

CMPE 80N - Introduction to Networks and the Internet 23 Packet Switching No physical path establishment ahead of time. As data moves from source to destination, route is formed one hop at a time: store-and-forward. On-demand resource acquisition as opposed to circuit switching where resources reserved statically beforehand.

CMPE 80N - Introduction to Networks and the Internet 24 The Internet Example of packet switching network!

CMPE 80N - Introduction to Networks and the Internet 25 Datagram and Virtual Circuit Services provided to transport layer.

CMPE 80N - Introduction to Networks and the Internet 26 Virtual Circuit Analogy to physical circuits used by telephone networks. At connection establishment time, path from source to destination is selected and used throughout connection lifetime. When connection is over, virtual circuit terminated.

CMPE 80N - Introduction to Networks and the Internet 27 Datagram No logical connection. Each packet (datagram) routed independently; successive packets may follow different routes. More work at intermediate routers, but more robust and adaptive to failures and congestion.

CMPE 80N - Introduction to Networks and the Internet 28 The Internet Datagram network! Datagrams are formed by header and payload. IP Datagrams can have different sizes –Header is fixed (20 bytes) –Data area can contain between 1 byte and 65 KB

CMPE 80N - Introduction to Networks and the Internet 29 Forwarding Datagrams Header contains all information needed to deliver datagrams to destination. –Destination address. –Source address. Router examines header of each datagram and forwards it along path to destination.

CMPE 80N - Introduction to Networks and the Internet 30 Routers For VCs, routers keep a table with (VC number, outgoing interface) entries. –Packets only need to carry VC number. For datagrams, routing table. –(destination, outgoing interface) entries. –Each packet must carry destination address.

CMPE 80N - Introduction to Networks and the Internet 31 Routing Algorithms Routing algorithm: decides which route a packet should take from source to destination. –For router: which interface a packet should be forwarded.

CMPE 80N - Introduction to Networks and the Internet 32 Routing Algorithms (cont’d) If datagram network, decision is made for every packet. If VC, decision is made only once when VC is setup.

CMPE 80N - Introduction to Networks and the Internet 33 Internetworking

CMPE 80N - Introduction to Networks and the Internet 34 Internetworking Interconnection of 2 or more networks forming an internetwork, or internet. –LANs, MANs, and WANs. Different networks mean different protocols. –TCP/IP, IBM’s SNA, DEC’s DECnet, ATM, Novell and AppleTalk.

CMPE 80N - Introduction to Networks and the Internet 35 Example Internetwork H R X.25 WAN R R SNA WAN LAN R LAN LAN LAN LAN-LAN LAN- WAN LAN-WAN- LAN Gateway: device connecting 2 or more different networks.

CMPE 80N - Introduction to Networks and the Internet 36 Gateways Repeaters/hubs: operate at physical layer (bits); amplify/regenerate signal. Routers: operate at network layer. Gateways: interconnect (different) networks.

CMPE 80N - Introduction to Networks and the Internet 37 How do networks differ? Service offered: connection-oriented versus connection- less. Protocols: IP, IPX, AppleTalk, DECnet. Addressing: flat (802) versus hierarchical (IP). Maximum transmission unit. Etc…

CMPE 80N - Introduction to Networks and the Internet 38 Connectionless Internetworking Datagram model. –Different packets may take different routes. –Separate routing decision for each packet. –No ordered delivery guarantees.

CMPE 80N - Introduction to Networks and the Internet 39 Datagram versus VC Internets VC: –Plus’s: resources reserved in advance, ordered delivery, short headers. –Minus’s: vulnerability to failures, less adaptive, hard if involving datagram subnet. Datagram: –Plus’s: more robust and adaptive, can be used over datagram subnets (many LANs, mobile networks). –Minus’s: Longer headers, unordered delivery.

CMPE 80N - Introduction to Networks and the Internet 40 Internetwork Routing 2-level hierarchy: –Routing within each network: interior gateway protocol. –Routing between networks: exterior gateway protocol. Within each network, different routing algorithms can be used. Each network is autonomously managed and independent of others: autonomous system (AS).

CMPE 80N - Introduction to Networks and the Internet 41 Internetwork Routing (cont’d) Typically, packet starts in its LAN. Gateway receives it (broadcast on LAN to “unknown” destination). Gateway sends packet to gateway on the destination network using its routing table.

CMPE 80N - Introduction to Networks and the Internet 42 Encapsulation Revisited Each datagram is encapsulated within a data link layer frame –The whole datagram is placed in the data area of the frame. –The data link layer addresses for source and destination included in the frame header.

CMPE 80N - Introduction to Networks and the Internet 43 Encapsulation - Example

CMPE 80N - Introduction to Networks and the Internet 44 Encapsulation Across Multiple Hops Each router in the path from source to destination: –Decapsulates datagram from incoming frame. –Forwards datagram - determines next hop. –Encapsulate datagram in outgoing frame.

CMPE 80N - Introduction to Networks and the Internet 45 Encapsulation Across Multiple Hops - Example

CMPE 80N - Introduction to Networks and the Internet 46 Maximum Transfer Unit Each data link layer technology specifies the maximum size of a frame. –Called the Maximum Transfer Unit (MTU). Ethernet: 1,500 bytes. Token Ring: 2048 or 4096 bytes. What happens when large packet wants to travel through network with smaller MTU? Maximum payloads (data portion of datagram) range from 48 bytes (ATM cells) to 64Kbytes (IP packets).

CMPE 80N - Introduction to Networks and the Internet 47 MTU (cont’d) A possible solution: –The sender may limit the size of the datagrams to the MTU of the network –What if there are other networks in the path to destination with smaller MTU?

CMPE 80N - Introduction to Networks and the Internet 48 Fragmentation Another solution (used by IP): fragmentation. Gateways break packets into fragments to fit the network’s MTU; each sent as separate datagram. Gateway on the other side have to reassemble fragments into original datagram.

CMPE 80N - Introduction to Networks and the Internet 49 Keeping Track of Fragments Fragments must be numbered so that original data stream can be reconstructed. Define elementary fragment size that can pass through every network. When packet fragmented, all pieces equal to elementary fragment size, except last one (may be smaller). Datagram may contain several fragments.

CMPE 80N - Introduction to Networks and the Internet 50 Fragmentation - Example

CMPE 80N - Introduction to Networks and the Internet 51 Fragmentation – Example (cont’d) Header contains packet number, number of first fragment in packet, and last-fragment bit A B C D E F G H I J A B C D E F G H I J Packet number Number of first fragment Last-fragment bit (a) Original packet with 10 data bytes. (b) Fragments after passing through network with MTU = 8 bytes. 1 byte

CMPE 80N - Introduction to Networks and the Internet 52 The Internet’s Network Layer The Internet as a collection on networks or autonomous systems (ASs). Hierarchical structure. US backbone European backbone Regional network National network Transcontinental links Transcontinental links

CMPE 80N - Introduction to Networks and the Internet 53 The Internet Protocol: IP Glues Internet together. Common network-layer protocol spoken by all Internet participating networks. Best effort datagram service: –No reliability guarantees. –No ordering guarantees.

CMPE 80N - Introduction to Networks and the Internet 54 IP (cont’d) IP is responsible for datagram routing. Important: each datagram is routed independently! –Two different datagrams from same source to same destination can take different routes! –Why? –Implications?

CMPE 80N - Introduction to Networks and the Internet 55 IP (cont’d) IP provides a best effort delivery mechanism –Does not guarantee to prevent duplicate datagrams, delayed and out-of-order delivery, corruption of data or datagram loss Reliable delivery is provided by the transport layer, not the network layer (IP) Network layer (IP) can detect and report errors without actually fixing them

CMPE 80N - Introduction to Networks and the Internet 56 IP Transport layer breaks data streams into datagrams which are transmitted over Internet, possibly being fragmented. When all datagram fragments arrive at destination, reassembled by network layer and delivered to transport layer at destination host.

CMPE 80N - Introduction to Networks and the Internet 57 IP Datagram Format IP datagram consists of header and data (or payload). Header: –20-byte fixed (mandatory) part. –Variable length optional part.

CMPE 80N - Introduction to Networks and the Internet 58 Datagram Header Format

CMPE 80N - Introduction to Networks and the Internet 59 IP Versions IPv4: IP version 4. –Current, predominant version. –32-bit long addresses. IPv6: IP version 6. –Evolution of IPv4. –Longer addresses (16-byte long).