Department of Computer Engineering, Kasetsart University 204421 Computer Networks 1-1 IP Addressing 204421 Computer Networks Surasak Sanguanpong

Slides:



Advertisements
Similar presentations
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
IP Addressing and Subnetting
Instructor: Sam Nanavaty DNS and IP addressing. Instructor: Sam Nanavaty How does a router know where to route the information when you simply type in.
IP Addressing Subnetting. Addressing Domain names: “radford.edu” IP Addresses: iii.jjj.kkk.lll, dotted decimal Example: Radford University has a computer.
Winter CMPE 155 Week 8. Winter Router demos: background.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
4/11/40 page 1 Department of Computer Engineering, Kasetsart University Introduction to Computer Communications and Networks CONSYL TCP/IP Addressing.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
Protocol Headers Pre DA SA 0800h … version H L 6 TCP Header Data FCS
1 IP Address Sirak Kaewjamnong. 2 Three Level of Address Host name –ratree.psu.ac.th Internet IP address – (32 bits address with “ dot-decimal.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
IPv4 Addresssing An IP address is four bytes (octets). Each contains eight bits (total of 32 bits in length). IP addresses are given as dotted decimal.
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.
Chap 10 Routing and Addressing Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
1 IP Address Computer Network System Sirak Kaewjamnong.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
21-IP addressing Dr. John P. Abraham Professor UTPA.
IP ADDRESSING, SUBNETTING & VLSM 1. Decimal vs. Binary Numbers – Decimal numbers are represented by the numbers 0 through 9. – Binary numbers are represented.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
IP Addressing.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Subnetting IP Networks.
Lecture#7: Subnetting IP Networks
Data Communications (SEE5523) - Chap.8a1/24 SET5534 Data Communication and Switching System Chapter 8 IP Addressing Alias Mohd FKE, UTM
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 9: Subnetting IP Networks Introduction to Networks.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing.
IP Addressing, Sub-netting & VLSM
Internet Architecture
IP Addresses: Classful Addressing
Created by : Asst. Prof. Ashish Shah, J. M
Scaling the Network: Subnetting and Other Protocols
IP: Addressing, ARP, Routing
Lecture#7: Subnetting IP Networks
Internet Networking recitation #1
Chapter-5 TCP/IP Suite.
Chapter 6 – Routing.
CS4470 Computer Networking Protocols
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Net 323: NETWORK Protocols
Chapter 9: Subnetting IP Networks
Chapter 9: Subnetting IP Networks
IP Addressing Subnetting
Subnetting Surasak Sanguanpong
Dr. John P. Abraham Professor UTPA
Dr. John P. Abraham Professor UTRGV
Scaling the Network: Subnetting and Other Protocols
Dr. John P. Abraham Professor UTRGV
Layering and the TCP/IP protocol Suite
Lecture#3-IPV4 Addressing
Presentation transcript:

Department of Computer Engineering, Kasetsart University Computer Networks 1-1 IP Addressing Computer Networks Surasak Sanguanpong Last updated: June 2, 1998

Department of Computer Engineering, Kasetsart University Computer Networks 1-2 Three levels of addressing Host names (FQDN) nontri.ku.ac.th Internet (IP) address (32 bit address with “dotted-decimal” notation) station Address - hardware address assigned to interface card, refer to MAC address e.g. Ethernet address 0:0:c:6:13:4a nontri.ku.ac.th :0:c:6:13:4a

Department of Computer Engineering, Kasetsart University Computer Networks 1-3 Converting Host name to MAC nontri.ku.ac.th resolve using host file table or Domain Name System (DNS) resolve by Address Resolution Protocol(ARP) 0:0:c:6:13:4a

Department of Computer Engineering, Kasetsart University Computer Networks 1-4 IP Address with router IP address associated with interface (not machine) Each interface has its own IP Address Machine with >1 I/f, called multi-homed Router is multi-homed machine Multi-homed need not to be router

Department of Computer Engineering, Kasetsart University Computer Networks 1-5 Addressing concept partitions address into 2 fields network address (path part used for routing) node address (specific device on the net) network node 1 1,2,3 2 1,2,3 3 1 network 1 network 2

Department of Computer Engineering, Kasetsart University Computer Networks 1-6 IP Addressing 8,16, 24 bits from NIC Network Host 32 bits bits 32 bits

Department of Computer Engineering, Kasetsart University Computer Networks 1-7 IP Address Class 32 bit address length, contain 2 parts network identifier host identifier class A class B class C 1110 Multicast Address class D Unused at present class E Network Id Host Id 10 Network Id Host Id 110 Network Id Host Id

Department of Computer Engineering, Kasetsart University Computer Networks 1-8 IP Address Table initial #bit #bit class bits net host range A B C D E class address spaces usable A 2^24= B 2^16= C 2^8 =

Department of Computer Engineering, Kasetsart University Computer Networks 1-9 Special Addresses Host id “all 0s” is reserved to refer to a network number , Host id “all 1s” is reserved to broadcast to all hosts on a specific network (also called net directed broadcast) ,

Department of Computer Engineering, Kasetsart University Computer Networks 1-10 Special Addresses, cont is reserved and means “this host on this network“. Normally use to boot diskless workstation is reserved to broadcast to every host on the local network (also called limited broadcast) 127.x.x.x means “this node” (local loopback). Messages sent to this address will never leave the local host

Department of Computer Engineering, Kasetsart University Computer Networks 1-11 ifconfig See your IP address and subnet mask with Unix’s interface configuration command : # ifconfig -a lo0: flags=849 mtu 8232 inet netmask ff le0: flags=863 mtu 1500 inet netmask ffffffc0 broadcast ether 8:0:20:18:d6:66

Department of Computer Engineering, Kasetsart University Computer Networks 1-12 Problems with Class assignment class A takes 50% range, class B 25%, class C 12.5% These leads to : address wasteful (specially in class A) running out of IP address class A B C D E

Department of Computer Engineering, Kasetsart University Computer Networks 1-13 HOW IR assigns IP address (RFC1466) class A : no allocations will be made at this time class B : allocations will be restricted. To apply: organization presents a subnetting more than 32 subnets organization has more than 4096 hosts class C : divided into allocatable blocks to distributed regional How to apply? NIC APNIC (asia-Pacific)

Department of Computer Engineering, Kasetsart University Computer Networks 1-14 Class C Assignment assignment is based on the subscriber's 24 month projection according to the criteria: 1) requires fewer than 256 addresses 1 class C network 2) requires fewer than 512 addresses 2 contiguous class C networks 3) requires fewer than 1024 addresses 4 contiguous class C networks 4) requires fewer than 2048 addresses 8 contiguous class C networks 5) requires fewer than 4096 addresses 16 contiguous class C networks 6) requires fewer than 8192 addresses 32 contiguous class C networks 7) requires fewer than addresses 64 contiguous class C networks

Department of Computer Engineering, Kasetsart University Computer Networks 1-15 Problem with large networks Class B “Flat network” more than hosts How to manage? Performance? Class B “subdivided network” to smaller groups with router

Department of Computer Engineering, Kasetsart University Computer Networks 1-16 Subnetwork benefits Increase the network manager's control over the address space Easy to allocate the address space Better network performance Hide routing structure from remote routers, thus reducing routes in their routing tables Subdivide on IP network number is an important initial task of network managers

Department of Computer Engineering, Kasetsart University Computer Networks 1-17 How to assign subnet Divide host id into 2 pieces Class B address such as might use its third byte to identify subnet e.g. –subnet# X x= host addr range from –subnet# X network id subnet adr host addr host id choose appropriate size

Department of Computer Engineering, Kasetsart University Computer Networks 1-18 Subnet Mask 32 bit number, tells router to recognize the subnet field, call subnet mask subnet rule: “The bit covering the network and subnet part of an address are set to 1” Example: class B with 24 bit mask subnet mask= zero bit are used to mask out the host number resulting the network address

Department of Computer Engineering, Kasetsart University Computer Networks 1-19 Subnet mask, cont Subnet mask for a class B tells: network has been partition to 254 subnets e.g X to X logical “and” between IP addr with mask yields network address and result network address

Department of Computer Engineering, Kasetsart University Computer Networks 1-20 Subnet mask bits use contiguous subnet mask = = = = = = = = 255

Department of Computer Engineering, Kasetsart University Computer Networks 1-21 Subnet Class B Example ( ) 0 subnet with hosts (default subnet) ( ) 2 subnets with hosts ( ) 62 subnets with 1022 hosts ( ) 254 subnets with 254 hosts ( ) subnets with 2 hosts

Department of Computer Engineering, Kasetsart University Computer Networks 1-22 Subnet Class C Example ( ) 0 subnet with 254 hosts (default subnet) ( ) 2 subnets with 62 host ( ) 6 subnets with 30 hosts ( ) 14 subnets with 14 hosts

Department of Computer Engineering, Kasetsart University Computer Networks 1-23 Subnet interpretation IP Address subnet mask Interpretation host 71 on subnet host 3 on subnet host 4 on subnet host 2 on subnet host 15.2 on subnet

Department of Computer Engineering, Kasetsart University Computer Networks 1-24 Class B Subnet with router router is used to separate network network #1 ( ) network #2 ( )

Department of Computer Engineering, Kasetsart University Computer Networks 1-25 Subnet routing Traffic is routed to a host by looking “bit- wise and” results if dest ip addr & subnet mask == my ip addr & subnet mask send pkt on local network %dest ip addr is on the same subnet else send pkt to router %dest ip addr is on diff subnet

Department of Computer Engineering, Kasetsart University Computer Networks 1-26 Subnet Exercise (1) Given IP address , find out the following to yield not more than 256 hosts per subnet net mask= ?? start net id =?? end net id=?? #of subnet =??

Department of Computer Engineering, Kasetsart University Computer Networks 1-27 Subnet Exercise (2) Given IP address , find out the following to yield not more than 32 hosts per subnet net mask= ?? start net id =?? end net id=?? #of subnet =??

Department of Computer Engineering, Kasetsart University Computer Networks 1-28 Type of Subnetting Static Subnetting - all subnets in the subnetted network use the same subnet mask pros: simply to implement, easy to maintain cons: wasted address space (consider a network of 4 hosts with wastes 250 IP) Variable Length Subnetting - the subnets may use different subnet masks pros: utilize address spaces cons: required well-management

Department of Computer Engineering, Kasetsart University Computer Networks 1-29 Variable Length Subnet Mask General Idea of VLSM A small subnet with only a few hosts needs a subnet mask that accommodate only few hosts A subnet with many hosts need a subnet mask to accommodate the large number of hosts Network manager’s responsibility to design an appropriate VLSM

Department of Computer Engineering, Kasetsart University Computer Networks 1-30 VLSM - KU sample case three different VLSM of CPC CPE RDI point-to-point link