ECE 4110 – Internetwork Programming TCP/IP Protocol (cont’d)

Slides:



Advertisements
Similar presentations
1 Chapter 22 Network layer Delivery, Forwarding and Routing.
Advertisements

IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 03/04/2007.
IP Routing: an Introduction. Quiz
Delivery, Forwarding, and Routing
7/3/2015 Unit-3 : Network Layer 1 CS 1302 Computer Networks — Unit - 3 — — Network Layer — Text Book Behrouz.A. Forouzan, “Data communication and Networking”,
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
© Jörg Liebeherr ECE 1545 Forwarding in IP Networks.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
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.
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
November 29, 2004 Prof. Paul Lin 1 CPET Internetworking, Addressing, and Routing Paul I-Hai Lin, Professor Electrical and Computer Engineering.
Router and Routing Basics
1 Chapter Overview Routing Principles. Understanding Routing--important Routing refers to the process of taking a packet from one device and sending it.
Copyright © Lopamudra Roychoudhuri
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
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.
Delivery, Forwarding, and Routing of IP Packets
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 6 Delivery and Routing of IP Packets.
Chapter 6 Delivery and Forwarding of IP Packets
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 6 Delivery and Routing of IP Packets.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
ECE 4110 – Internetwork Programming IP Protocol. 2 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Position of IP in TCP/IP Protocol Suite.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
Delivery, Forwarding, and Routing of IP Packets
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer: 19.1 Internetworks 19.2 Addressing Classful, Classless addressing, NAT 19.3 Routing.
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.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
Internet Protocol: Routing IP Datagrams Chapter 8.
TCP/IPTCP/IP Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets.
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.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
ECE 4110 – Internetwork Programming TCP/IP Protocol.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
2.1 Chapter 2 Network Models – cont. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
22.1 Network Layer Delivery, Forwarding, and Routing.
Configuration for routing example
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 6 Delivery & Forwarding of IP Packets
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Data Networking via LANs Packets and Frames
Chapter 6 Delivery & Forwarding of IP Packets
TCP/IP Transmission Control Protocol / Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Chapter 6 Delivery & Forwarding of IP Packets
Unit 2: IP addressing (Contd.). Delivery and routing of packets
Delivery, Forwarding, and Routing
Delivery and Routing of IP Packets
Delivery and Routing of IP Packets
Delivery, Forwarding, and Routing of IP Packets
Delivery and Forwarding of
Delivery, Forwarding, and Routing of IP Packets
Example 9 (Continued) 1. The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network.
Figure 6.11 Configuration for Example 4
Delivery, Forwarding, and Routing of IP Packets
Figure 6.6 Default routing
Presentation transcript:

ECE 4110 – Internetwork Programming TCP/IP Protocol (cont’d)

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 2 DIX Ethernet Data Frame Format Preamble: Alternating 0’s and 1’s with last bit a l. Destination medium access control (MAC) address: Each receiver DL layer compares this to its own hardwired network interface card (NIC) address. Normally a NIC knows its own address and the broadcast address. Source MAC address: Sender’s NIC address. Type: Type of data transporting. E.g.: Internet Protocol. Cyclic Redundancy Check: Used for checking data integrity. Gap: After the Ethernet Frame, a 12 Byte Interframe Gap must always follow. Note: Receiver DL layer does not look at data. Note: Data is in most network technologies called a “packet.” Preamble (8 Bytes) Destination MAC Address (6 Bytes) Source MAC Address (6 Bytes) Type (2 Bytes) Data CRC (4 Bytes) Gap 12 Bytes

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 3 Computer X on Network wants to send a message to Computer Y on Network. 1 Routing Concepts A4 Computer X Computer Y F E D C B A1 A A2 1 Network Number (Address) Router Network 1 A3

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 4 Destination 5 : Y Source 1 : X Other Stuff Data IEEE Frame Preamble Destination MAC Address Source MAC address Length DATA CRC Routing Concepts (cont’d) Network address is software configurable.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 5 Routing Service Connection-oriented Connectionless Delivery Direct Delivery Indirect delivery

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 6 Connection-Oriented vs. Connectionless In connection-oriented services, the network layer protocol first makes a connection. In connectionless services, each packet is treated independently. So, there is no relationship between the packets.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 7 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Direct Delivery Source and the destination are on the same physical network. Address mapping is between IP and physical address of the final destination. Physical address of the destination is found via ARP.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 8 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Indirect Delivery Source and destination are on different networks. Address mapping is between IP and physical address of the next hop.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 9 Routing Methods Next-hop routing Network-specific routing Host-specific routing Default routing

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 10 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Next-Hop Routing

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 11 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Network-Specific Routing

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 12 Host-Specific Routing * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 13 Default Routing * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 14 Static vs. Dynamic Routing In static routing, routing table is constructed manually. In dynamic routing, routing table is constructed automatically using protocols like RIP, OSPF, or BGP.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 15 Routing Table Flags UThe router is up and running. GThe destination is a gateway (indirect delivery). HHost-specific address. DAdded by redirection (by ICMP). MModified by redirection (by ICMP).

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 16 Routing Module * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 17 Routing Module (cont’d) Search for route in this order: Direct delivery Host-specific delivery Network-specific delivery Default delivery

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 18 Routing Module (algorithm) For each entry in RT: Apply the mask to destination address If result of mask matches the destination field in the entry in RT, find next-hop address as follows: If G flag is set Use next-hop field in RT Else Use destination address in the packet (direct delivery) Send packet to fragmentation module with the next-hop address Stop Else, send ICMP error message Stop

19 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Example Topology

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 20 Routing Table for R1 MaskDestinationNext HopInterface m m m m m m m0

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 21 Example 1 Router R1 receives 500 packets for destination ; the algorithm applies the masks row by row to the destination address until a match (with the value in the second column) is found.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 22 Example 1 (Solution) Direct delivery &  no match &  no match Host-specific &  no match Network-specific &  match

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 23 Example 2 Router R1 receives 100 packets for destination ; the algorithm applies the masks row by row to the destination address until a match is found.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 24 Example 2 (Solution) Direct delivery &  no match &  match

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 25 Example 3 Router R1 receives 20 packets for destination ; the algorithm applies the masks row by row to the destination address until a match is found.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 26 Example 3 (Solution) Direct delivery &  no match &  no match Host-specific &  no match Network-specific &  no match Default &  match

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 27 Example 4 Make the routing table for router R1

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 28 MaskDestinationNext HopInterface m m m m0 Example 4 (Solution)

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 29 Example 5 Make the routing table for router R1

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 30 MaskDestinationNext HopInterface m m1 or or m m1 or or m ???????????? m0 Example 5 (Solution)

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 31 Example 6 Given the routing table in the next slide, draw the topology.

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 32 MaskDestinationNext HopInterface m m m m m m0 Example 6 (cont’d)

Spring 2003 Tuna Tugcu ECE 4110 – Internetwork Programming 33 Example 6 (Solution)