01_NF_Ch06 - Addressing the Network – IPv4 Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo)

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

Addressing the Network – IPv4 by Dodi Heriadi. IP Addressing Structure Describe the dotted decimal structure of a binary IP address and label its parts.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© N. Ganesan, All rights reserved. Chapter IP Addressing Format.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
思科网络技术学院理事会. 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.
Chapter 18. IP: Internet Protocol Addresses
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Internet Control Message Protocol (ICMP)
Chapter 5 The Network Layer.
Chapter 6 Addressing The Network – IPv4
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
1 Chapter Overview IP (v4) Address IPv6. 2 IPv4 Addresses Internet Protocol (IP) is the only network layer protocol with its own addressing system and.
Chapter Overview TCP/IP Protocols 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.
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 26-Aug-15 S Ward Abingdon and Witney College CCNA Exploration Semester 1 Addressing the network IPv4 CCNA Exploration Semester 1 Chapter 6.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Addressing The Network – IPv4 Network Fundamentals – Chapter 6 Modified by.
1Group 07 IPv6 2 1.ET/06/ ET/06/ ET/06/ EE/06/ EE/06/ EE/06/6473 Group 07 IPv6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
Network Addressing Structure
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
Addressing the Network – IPv4
1 Version 3.1 modified by Brierley Module 8 TCP/IP Suite Error and Control Messages.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
Internet Control Message Protocol (ICMP). Objective l IP and ICMP l Why need ICMP? l ICMP Message Format l ICMP fields l Examples: »Ping »Traceroute.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
© 2002, Cisco Systems, Inc. All rights reserved..
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
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.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
Addressing IP v4 W.Lilakiatsakun. Anatomy of IPv4 (1) Dotted Decimal Address Network Address Host Address.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
Linux Operations and Administration Chapter Eight Network Communications.
CS470 Computer Networking Protocols
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.
Chapter 8: IP Addressing
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the network IPv4 CCNA Exploration Semester 1 – Chapter 6.
Submitted to: Submitted by: Mrs. Kavita Taneja Jasleen kaur (lect.) Hitaishi verma MMICT & BM MCA 4 th sem.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Addressing The Network – IPv4 Network Fundamentals – Chapter 6.
Network Layer IP Address.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4.3 Network Layer Logical Addressing
Instructor Materials Chapter 4: Network Addressing
Computer Communication and Networking
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
NET302 Lecture#3 IPV4 Addressing Asma AlOsaimi.
Lecture#3 IPV4 Addressing Net 302- Asma AlOsaimi.
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
IP Addressing.
Computer Networks Protocols
Presentation transcript:

01_NF_Ch06 - Addressing the Network – IPv4 Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo)

2 Addressing the Network – IPv4 IPv4 Addresses Addresses for Different Purposes Assigning Addresses Is It On My Network? Calculating Addresses Testing the Network Layer

3 IPv4 Address Binary to Decimal Conversion Decimal to Binary Conversion

4 IPv4 Address Each device on a network must be uniquely defined. The packets of the communication need to be identified with the source and destination addresses of the two end systems IPv4 is 32 bits in length and difficult for human to remember. Therefore, represent IPv4 addresses using dotted decimal format ( ) 4

5 Some portion of the high-order bits represents the network address. Network - a group of hosts that have identical bit patterns in the network address portion of their addresses. 5

6 A variable number of bits that are called the host portion of the address. The number of bits used in this host portion determines the number of hosts that we can have within the network. 6

7 Binary to Decimal Conversion 7

8 8

9 KC KHOR, Multimedia Univ. Cyberjaya 9

10 Addresses for Different Purposes Type of Addresses Network Prefix Calculating network address ( 網路位址 ), broadcast address ( 廣播位址 ) and host addresses ( 主機位址 ) Types of Communication Reserved IP Addresses Private IP Address ( 私有位址 ) Network Address Translation ( 網路位址轉換 ) Special IPv4 Addresses Legacy IPv4 Addressing

11 Type of Addresses 11

12 Network Prefix How do we know how many bits represent the network portion and how many bits represent the host portion? We use network prefix ( 網路前置碼 ). The prefix length is the number of bits in the address that gives us the network portion Ex: /24, the /24 tells us that the first 24 bits are the network address. This leaves the remaining 8 bits, the last octet, as the host portion. 12

13 Calculating network address, broadcast address and host addresses

14 Types of Communication In an IPv4 network, the hosts can communicate one of three different ways: - Unicast ( 單點傳送 ) - the process of sending a packet from one host to an individual host - Broadcast ( 廣播 ) - the process of sending a packet from one host to all hosts in the network using broadcast address. Broadcast transmission is used for the location of special services/devices for which the address is not known or when a host needs to provide information to all the hosts on the network. 14

15 Multicast ( 多點傳送 ) – it is designed to conserve the bandwidth of the IPv4 network. It reduces traffic by allowing a host to send a single packet to a selected set of hosts Ex of multicast transmission: Video and audio broadcasts, Routing information exchange by routing protocols, Distribution of software, News feeds Multicast clients need to subscribe to a multicast group using multicast address ( to ) 15

16 Multicast Transmission 16

17 Multicast address range is subdivided into different types of addresses: reserved link local addresses, globally scoped addresses and administratively scoped addresses (limited scope addresses). Reserved link local addresses to These addresses are to be used for multicast groups on a local network. Packets to these destinations are always transmitted with a time-to-live (TTL) value of 1. Therefore, a router connected to the local network should never forward them. 17

18 Globally scoped addresses to They may be used to multicast data across the Internet. For example, has been reserved for Network Time Protocol (NTP) to synchronize the time-of-day clocks of network devices. Limited scope addresses – limited to a local group or an organization 18

19 Reserved IP Addresses 19 Experimental addresses are listed as reserved for future use. Currently, they cannot be used in IPv4 networks. These addresses could be used for research or experimentation

20 Private IP Address Most IPv4 host addresses are public addresses There are blocks of addresses that are used in networks that require limited or no Internet access to ( /8) to ( /12) to ( /16) 20

21 Network Address Translation 21

22 Special IPv4 Addresses Network and Broadcast Addresses- As explained earlier, within each network the first and last addresses cannot be assigned to hosts. These are the network address and the broadcast address, respectively. Default Route - Also presented earlier, we represent the IPv4 default route as The default route is used as a "catch all" route when a more specific route is not available. Loopback - a special address that hosts use to direct traffic to themselves. EX:

23 Link-Local Addresses to These addresses can be automatically assigned to the local host by the operating system in environments where no IP configuration is available. TTL value 1 only. Link-local addresses do not provide services outside of the local network. TEST-NET Addresses to ( /24). Set aside for teaching and learning purposes. Unlike the experimental addresses, network devices will accept these addresses in their configurations. 23

24

25 Legacy IPv4 Addressing 25

26 Assigning Addresses Limitation of Class-based System Planning Address to the Network Who assigns addresses? Role of ISP IPv6

27 Limitation of Class-based System Classful allocation of address space often wasted many addresses, which exhausted the availability of IPv4 addresses. Ex: a company that had a network with 260 hosts would need to be given a class B address with more than 65,000 addresses. The system that we currently use is referred to as classless addressing. With the classless system, address blocks appropriate to the number of hosts are assigned to companies or organizations without regard to the unicast class 27

28 Planning Address to the Network The allocation of these addresses inside the networks should be planned and documented for the purpose of: - Preventing duplication of addresses - Providing and controlling access - Monitoring security and performance IPv4 add can be assigned to hosts like: - End devices for users - Servers and peripherals - Hosts that are accessible from the Internet - Intermediary devices 28

29 An important part of planning an IPv4 addressing scheme is deciding when private addresses are to be used and where they are to be applied. Considerations include: - Will there be more devices connected to the network than public addresses allocated by the network's ISP? - Will the devices need to be accessed from outside the local network? - If devices that may be assigned private addresses require access to the Internet, is the network capable of providing a Network Address Translation (NAT) service? 29

30

31 Who assigns addresses? 31 Internet Assigned Numbers Authority (IANA) ( ) is the master holder of the IP addresses. The IP multicast addresses and the IPv6 addresses are obtained directly from IANA. URL for APNIC:

32 Role of ISP Most companies or organizations obtain their IPv4 address blocks from an ISP. The ISP loans or rents these addresses to the organization. Tier 1 ISP - directly connected to the Internet backbone. The primary advantages for customers of Tier 1 ISPs are reliability and speed. The drawback for Tier 1 ISP customers is its high cost. Tier 2 ISP - Tier 2 ISPs acquire their Internet service from Tier 1 ISPs. Tier 2 ISPs generally focus on business customers. Slower Internet access and lower reliability than Tier 1 ISPs. 32

33 Tier 3 ISP - Tier 3 ISPs purchase their Internet service from Tier 2 ISPs. The focus of these ISPs is the retail and home markets in a specific locale. Tier 3 ISPs often bundle Internet connectivity as a part of network and computer service contracts for their customers. They may have reduced bandwidth and less reliability than Tier 1 and Tier 2 providers, KC KHOR, Multimedia Univ. Cyberjaya 33

34 IPv6 Internet Engineering Task Force (IETF) grew concerned about the exhaustion of the IPv4 network addresses and began to look for a replacement for this protocol. Other than this, issues like: Improved packet handling, Increased scalability ( 增強可延伸性 ) and longevity ( 壽命 ), QoS mechanisms and Integrated security ( 整合安全性 ) are considered. Result: IPv6 34

35 To provide these features, IPv6 offers: bit hierarchical addressing - to expand addressing capabilities - Header format simplification - to improve packet handling - Improved support for extensions and options - for increased scalability/longevity and improved packet handling - Flow labeling capability - as QoS mechanisms - Authentication and privacy capabilities - to integrate security 35

36 Is It On My Network? Subnet Mask Understand AND operation Basic Subnetting Dividing the Network into Right Sizes Subnetting a Subnet – VLSM

37 Subnet Mask To define the network and host portions of an address, the devices use a separate 32-bit pattern called a subnet mask Ex: ( ) 1 represents network portion. 0 represents hosts You can use network prefix to represent the same thing. EX: /24 37

38 Understand AND operation The IPv4 host address is logically ANDed with its subnet mask to determine the network address to which the host is associated. 1 AND 1 = 11 AND 0 = 0 0 AND 1 = 00 AND 0 = 0 Reasons to use AND: - Routers use ANDing to determine an acceptable route for an incoming packet. - An originating host must determine if a packet should be sent directly to a host in the local network or be directed to the gateway. 38

39

40 Calculating Addresses Basic Subnetting Dividing the Network into Right Sizes Subnetting a Subnet – VLSM

41 Basic Subnetting Given /28, answer the followings Class of this IP? Subnet mask in binary format? Number of subnets? [2^N] Number of hosts in each subnet? [2^N] Which subnet is this IP belong to? [AND] What is the broadcast add of this subnet? [Last IP] 41

42 Dividing the Network into Right Sizes 42

43 Subnetting a subnet, or using Variable Length Subnet Mask (VLSM) was designed to maximize addressing efficiency. When identifying the total number of hosts using traditional subnetting, we allocate the same number of addresses for each subnet. If all the subnets have the same requirements for the number hosts, these fixed size address blocks would be efficient. However, most often that is not the case. 43 Subnetting a Subnet - VLSM

44

45 Testing the Network Layer Testing the Network – Ping Testing the Network – Ping Gateway Traceroute – Test the path ICMP – Supporting Testing & Messaging

46 Testing the Network – Ping Ping is a utility for testing IP connectivity between hosts. Ping sends out requests for responses from a specified host address. Ping uses a Layer 3 protocol that is a part on the TCP/IP suite called Internet Control Message Protocol (ICMP). Ping uses an ICMP Echo Request datagram. Ping local loopback ( ) - A response indicates that IP is properly installed on the host. 46

47 Testing the Network – Ping Gateway A ping to the gateway indicates that the host and the router's interface serving as that gateway are both operational on the local network. If failed: - problem with router interface - set the wrong address for the gateway. - router interface may be fully operational but have security applied to it that prevents it from processing or responding to ping requests. - It is also possible that other hosts may have the same security restriction applied. 47

48 Traceroute – Test the path Traceroute (tracert) is a utility that allows us to observe the path between these hosts. The trace generates a list of hops that were successfully reached along the path. 48

49 ICMP – Supporting Testing & Messaging ICMP is the messaging protocol for the TCP/IP suite. ICMP provides control and error messages and is used by the ping and traceroute utilities. ICMP messages that may be sent include: Host conformation, Unreachable Destination or Service, Time exceeded, Route redirection & Source quench 49

50 Host Confirmation: An ICMP Echo Message can be used to determine if a host is operational. The host receiving the echo message replies with the ICMP Echo Reply. The ICMP Destination Unreachable can used to notify a host that the destination or service is unreachable. An ICMP Time Exceeded message is used by a router to indicate that a packet cannot be forwarded because the TTL field of the packet has expired. 50

51 A router may use the ICMP Redirect Message to notify the hosts on a network that a better route is available for a particular destination. This message may only be used when the source host is on the same physical network as both gateways. The ICMP Source Quench ( 抑制 ) message can be used to tell the source to temporarily stop sending packets. A destination host may also send a source quench message if datagrams arrive too fast to be processed. When a host receives an ICMP Source Quench message, it reports it to the Transport layer. The source host can then use the TCP flow control mechanisms to adjust the transmission. 51