CS682 – Network Management and Security Session 5.

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

Chapter 6: Static Routing
RIP V1 W.lilakiatsakun.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
IP Addressing and Subnetting
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Prepared By: Eng.Ola M. Abd El-Latif
Internet Control Message Protocol (ICMP). Introduction The Internet Protocol (IP) is used for host-to-host datagram service in a system of interconnected.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 Internet Networking Spring 2005 Tutorial 2 IP Checksum, Fragmentation.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5 Sandra Coleman, CCNA, CCAI.
1 Linux Networking Lal Paul IP Addressing & Routing By Lal Paul Systems Administrator CIRM, CUSAT IP Addressing & Routing By Lal Paul Systems Administrator.
Types of Addresses in IPv4 Network Range
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
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.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Internet Control Message Protocol ICMP author -- J. Postel, September The purpose.
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
TCOM 515 IP Routing Lab Lecture 1. Class information Instructor: Wei Wu –Lecture and Lab session 2 – Instructor:
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
10/8/2015CST Computer Networks1 IP Routing CST 415.
10/13/2015© 2008 Raymond P. Jefferis IIILect 07 1 Internet Protocol.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
Dr. John P. Abraham Professor UTPA
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
Chapter 23 Internet Control Message Protocol used to report information and errors IP uses ICMP when it sends an error message ICMP uses IP to transport.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
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”
Chapter 21 IP Encapsulation, Fragmentation, and Reassembly.
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
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Chapter 5b.  Upon completion of this chapter, you should be able to:  Subnet an IPv4 address to make separate networks out of one address given  Use.
CS470 Computer Networking Protocols
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
NETWORKING (2) Dr. Andy Wu BCIS 4630 Fundamentals of IT Security.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
Network Layer IP Address.
Network Layer 1. OSI network layer  OSI model layer 3  TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical.
ROUTING.
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Chapter 6 – Routing.
CS 457 – Lecture 10 Internetworking and IP
IP Forwarding Relates to Lab 3.
Internetworking Outline Best Effort Service Model
IP Forwarding Relates to Lab 3.
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
Presentation transcript:

CS682 – Network Management and Security Session 5

IP Routing Routing is making a decision as to where the packet is to go next. Simple for a host: 1. To an application on this host 2. To the network attached locally 3. To the default gateway

Routing tables Routing tables are composed of: A Destination Address, either host or network in nature The IP Address of the next “hop” The Metric, or cost of sending to that router The network interface which is closest to the next hop

Routing Decisions The routing table is queried for the destination address. The entry with the smallest network mask that qualifies is returned The TTL in the packet is decremented by the metric number If the TTL is now zero, the packet is discarded and an ICMP time exceeded message is sent back to the source If the packet size is greater than the MTU of the network, the packet is fragmented The hardware address of the next-hop is determined and the DLC header is applied to the packet(s) If the HA cannot be determined and the route is still active in the table, send an ICMP Host/Network unreachable message to the source The packet(s) are sent to the next-hop.

Fragmentation IP considers everything in the ULP section of the packet as data which can be fragmented. If fragmentation is necessary perform the following: 1. Decide how much data can be “stuffed” into the first packet. Consider the following equation: (MTU - DLC Header – IP Header) as an acceptable size for the new packet. 2. Take the old header and apply it to the new packet, however change the flags to “001.” Bit 0 must be set to 0, bit one says other routers may fragment, and bit 2 says this is not the last fragment. Send this packet immediatly

Fragmentation (cont) 3. Take as much of the original data as is left up to the (MTU – DLC header – IP Header), put it in a new packet with the same header as before except set the fragment offset to: count*(MTU-DLC header-IP header) + original fragment offset where count is the number of packets sent before this one. If this is the last fragment set the flags to “000.” 4. Continue doing step 3 until no more data remains.

Old Routing Networks were divided into classes by size Class A, starts with (0XXX) First octet: Class B, Starts with (10XX) First Octet: Class C, Starts with (1100) First Octet: Class D, Starts with (1110) First Octet: Class E, Starts with (1111) First Octet: Classes A, B and C were reserved for hosts, class D was for routing, class E was reserved

Old Routing continued Sizes were: Class A: 8 network bits, 24 host bits Class B: 16 network bits, 16 host bits Class C: 24 network bits, 8 host bits By examining the first octet we can quickly determine if routing is necessary or if the destination is on the directly connected network.

Old Routing Problems Class sizes were too large Did not allow administrators to control the routing very well A division of the network required the intervention of InterNIC

IP Subnetting IPv4 allows the opportunity for Administrators to intervene and break up a network. Class A, B, and C are still assigned, but the administrator can make the network smaller as s/he feels is necessary. If there are 20 computers in an office in San Francisco and 20 in an office in New York. Only one class C is necessary and can be broken down into two different networks.

Determining routing If a host is on our network, we say it will have the same Network Address as us, otherwise we forward the packet to the default router The network address is determined by doing a logical AND operation between the IP address and the Subnet Mask. By doing this calculation on our IP address and the destination address we can determine if they are on the same network.

Subnet example 1

Subnet Example 2

Subnetting Example We have been assigned: IP Network: /24 20 computers which need IP addresses in NYC 20 Computers which need IP addresses in SF Two routers and one WAN link

Subnetting example (cont) First we recognize that we can only decide how many subnet bits we use in the last octet, the first three octets are fixed by the authority that assigned them and cannot be changed. We examine how many networks we have and how many hosts/network we need, leaving room for expansion. By manipulating the number of subnet bits and host bits in the last octet we can create the different networks.

Reminders Remember to leave room for more hosts as well as more networks. Remember that networks can be subnetted more than once Remember that you cannot use the all ones and all zeros networks or hosts Remember that the routers need a IP address also. Remember that the WAN link between the two routers is a network of it’s own.