Introduction to Network

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

Delivery and Forwarding of
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 26 IPv6 Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Chapter 18 Introduction to Network Layer 18.# 1
Logical addressing Engr.Jawad Ali.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Chapter 18. IP: Internet Protocol Addresses
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
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”,
NETE0510 Presented by Dr.Apichan Kanjanavapastit
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
21-IP addressing Dr. John P. Abraham Professor UTPA.
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.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
Chapter 18 Introduction to Network Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
1 Kyung Hee University Prof. Choong Seon HONG Subnetting/ Supernetting and Classless Addressing.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
Chapter 5 IPv4 Address.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
IP v 4 TOPIC : IP v 4 Group members :- Basabi Malakar Archana Nayak Reecha Satpathy Lipsa Priyadarshini.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
TCP/IP Protocol Suite 1 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes Identify.
1 Kyung Hee University Chapter 19 Network Layer: Logical Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
UNIT 4 NETWORK LAYER. Position of network layer 7/8/2016 UNIT-3 : NETWORK LAYER 2.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3 rd Ed. IP Addressing.
IP Addresses: Classful Addressing
Subnetting and Supernetting
NET 221D:Computer Networks Fundamentals
4.3 Network Layer Logical Addressing
Chapter 18 Introduction to Network Layer
Chapter 9 Introduction To Data-Link Layer 9.# 1
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Network Layer, and Logical Addresses
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter-5 TCP/IP Suite.
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
Network Layer Client: Date Descriptor V Th SEM
IP Addresses: Classful Addressing
Subnetting.
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 221D:Computer Networks Fundamentals
CS 1302 Computer Networks — Unit - 3 — — Network Layer —
IP Addresses: Classful Addressing
Chapter 19 Network Layer: Logical Addressing
Network Layer: Logical Addressing
Chapter 20 Network Layer: Internet Protocol
Data Communications and Networking
Chapter 4 Introduction to Network Layer
Delivery and Forwarding of
Chapter 26 IPv6 Addressing
Chapter 5 IP addresses Classless Addressing
Part IV Network layer 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Dr. John P. Abraham Professor UTPA
Introduction to Network
Presentation transcript:

Introduction to Network Chapter 18 Introduction to Network Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

18-1 NETWORK-LAYER SERVICES Before discussing the network layer in the Internet today, let’s briefly discuss the network-layer services that, in general, are expected from a network-layer protocol. Figure 18.1 shows the communication between Alice and Bob at the network layer. This is the same scenario we used in Chapters 3 and 9 to show the communication at the physical and the data-link layers, respectively. 18.#

Figure 18.1: Communication at the network layer 18.#

18.18.1 Packetizing The first duty of the network layer is definitely packetizing: encapsulating the payload in a network-layer packet at the source and decapsulating the payload from the network-layer packet at the destination. In other words, one duty of the network layer is to carry a payload from the source to the destination without changing it or using it. The network layer is doing the service of a carrier such as the postal office, which is responsible for delivery of packages from a sender to a receiver without changing or using the contents. 18.#

18.18.2 Routing and Forwarding Other duties of the network layer, which are as important as the first, are routing and forwarding, which are directly related to each other. 18.#

Figure 18.2: Forwarding process 18.#

18.18.3 Other Services Let us briefly discuss other services expected from the network layer. 18.#

18-2 PACKET SWITCHING From the discussion of routing and forwarding in the previous section, we infer that a kind of switching occurs at the network layer. A router, in fact, is a switch that creates a connection between an input port and an output port (or a set of output ports), just as an electrical switch connects the input to the output to let electricity flow. 18.#

18.2.1 Datagram Approach When the Internet started, to make it simple, the network layer was designed to provide a connectionless service in which the network-layer protocol treats each packet independently, with each packet having no relationship to any other packet. The idea was that the network layer is only responsible for delivery of packets from the source to the destination. In this approach, the packets in a message may or may not travel the same path to their destination. Figure 18.3 shows the idea.. 18.#

Figure 18.3: A connectionless packet-switched network 18.#

Figure 18.4: Forwarding process in a router when used in a connectionless network 18.#

18.2.2 Virtual-Circuit Approach In a connection-oriented service (also called virtual-circuit approach), there is a relationship between all packets belonging to a message. Before all datagrams in a message can be sent, a virtual connection should be set up to define the path for the datagrams. After connection setup, the datagrams can all follow the same path. In this type of service, not only must the packet contain the source and destination addresses, it must also contain a flow label, a virtual circuit identifier that defines the virtual path the packet should follow. 18.#

Figure 18.5: A virtual-circuit packet-switched network 18.#

Figure 18.6: Forwarding process in a router when used in a virtual circuit network 18.#

Figure 18.7: Sending request packet in a virtual-circuit network 18.#

Figure 18.8: Sending acknowledgments in a virtual-circuit network 18.#

Figure 18.9: Flow of one packet in an established virtual circuit 18.#

18-4 IPv4 ADDRESSES The identifier used in the IP layer of the TCP/IP protocol suite to identify the connection of each device to the Internet is called the Internet address or IP address. An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a host or a router to the Internet. The IP address is the address of the connection, not the host or the router. 18.#

18.4.1 Address Space A protocol like IPv4 that defines addresses has an address space. An address space is the total number of addresses used by the protocol. If a protocol uses b bits to define an address, the address space is 2b because each bit can have two different values (0 or 1). IPv4 uses 32-bit addresses, which means that the address space is 232 or 4,294,967,296 (more than four billion). If there were no restrictions, more than 4 billion devices could be connected to the Internet. 18.#

Figure 18.16: Three different notations in IPv4 addressing 18.#

Figure 18.17: Hierarchy in addressing 18.#

IPv4 ADDRESSES There are two prevalent notations to show an IPv4 address: 1. Binary notation: Address is displayed as 32 bits. Each octet is often referred to as byte. IPv4 address referred to as 32-bit address or 4-byte address Example: 01110101 10010101 00011101 00000010

IPv4 ADDRESSES Dotted-decimal notation: More compact and easier to read Written in decimal form with a decimal point( dot) separating the bytes. Example: 117.149.29.2 Each decimal value range from 0 to 255 Example: Dotted-decimal notation and binary notation for an IPv4 address

IPv4 ADDRESSES Change the following IPv4 addresses from binary notation to dotted-decimal notation. Example 1 10000001 00001011 00001011 11101111 129.11.11.239 11000001 10000011 00011011 11111111 Solution We replace each group of 8 bits with its equivalent decimal number (see Appendix B) and add dots for separation. 10.

IPv4 ADDRESSES Change the following IPv4 addresses from dotted-decimal notation to binary notation. Example 2 111.56.45.78 01101111 00111000 00101101 01001110 221.34.7.82 Solution We replace each decimal number with its binary equivalent

IPv4 ADDRESSES Find the error, if any, in the following IPv4 addresses. Example 3 111.56.045.78 221.34.7.8.20 75.45.301.14 11100010.23.14.67 Solution a. There must be no leading zero (045). b. There can be no more than four numbers. c. Each number needs to be less than or equal to 255. d. A mixture of binary notation and dotted-decimal notation is not allowed.

18.4.2 Classful Addressing When the Internet started, an IPv4 address was designed with a fixed-length prefix, but to accommodate both small and large networks, three fixed-length prefixes were designed instead of one (n = 8, n = 16, and n = 24). The whole address space was divided into five classes (class A, B, C, D, and E), as shown in Figure 18.18. This scheme is referred to as classful addressing. Although classful addressing belongs to the past, it helps us to understand classless addressing, discussed later. 18.#

Figure 18.18: Occupation of the address space in classful addressing 18.#

18.4.2 Classful Addressing Find the class of each address. b. 11000001 10000011 00011011 11111111 c. 14.23.120.8 d. 252.5.15.111 Example 4 Solution a. The first bit is 0. This is a class A address. b. The first 2 bits are 1; the third bit is 0. This is a class C address. c. The first byte is 14; the class is A. d. The first byte is 252; the class is E.

18.4.2 Classful Addressing Class A address: designed for large organizations with a large number of attached hosts or routers. (most of the addresses were wasted and not used) Class B address: designed for midsize organizations with ten of thousands of attached hosts or routers( too large for many organizations) Class C address: designed for small organizations with a small number of attached hosts or routers (too small for many organizations) Class D address: designed for multicasting. (waste of addresses) Class E address: reserved for future use (waste of addresses)

18.4.2 Classful Addressing One problem is that each class is divided into fixed number of blocks with each block having a fixed size In classful addressing, a large part of the available addresses were wasted.

18.4.2 Classful Addressing NetId and HostId The address is divided into Netid and Hostid. These part are of varying lengths, depending on the class. Dose not apply to classes D and E

Help us to find the NetId and HostId Classful Addressing: Classes and Blocks Mask (default mask) Help us to find the NetId and HostId Mask: 32-bit made of 1s followed by 0s. Dose not apply to classes D and E. CIDR(Classless Interdomain Routing): used to show the mask in the form /n (n=8,16,24) CIDR Dotted-decimal Binary Class /8 255.0.0.0 11111111 00000000 00000000 00000000 A /16 255.255.0.0 11111111 11111111 00000000 00000000 B /24 255.255.255.0 11111111 11111111 11111111 00000000 C

The network address is an address that define the Classful Addressing: Network address The network address is an address that define the network itself to the reset of the internet The network address has the following properties: 1. All hostid bytes are 0’s 2. It is the first address in the block 3. It cannot be assigned to a host 4. Given the network address, we can find the class of the address

Find the network address for the following: Classful Addressing: Network address Find the network address for the following: a. 132.6.17.85 b. 23.56.7.91 a. The class is B. The first 2 bytes defines the Netid. We can find the network address by replacing the hostid bytes (17.85) with 0s. Therefore, the network address is 132.6.0.0 b. The class is A. Only the first byte defines the Netid. We can find the network address by replacing the hostid bytes (56.7.91) with 0s. Therefore, the network address is 23.0.0.0

Classful Addressing: Network address

The number of subnets is determine by the number of extra1s. Classful Addressing: Subnetting If an organization was granted a large block in classes A or B  It could divide the addresses into several contiguous groups and assign each group to smaller networks ( subnets) It increases the number of 1s in the mask Number of 1s in a subnet mask is more than the number of 1s in the corresponding mask. To make a subnet mask , we change some of the leftmost 0s in mask to 1s The number of subnets is determine by the number of extra1s. If the number of extra 1 is n, the number of subnets is 2 n. If the number of subnets is N, the number of extra 1s is log2N

Classful Addressing: Subnet Mask Class B address mask : 255.255.0.0 or /16 For 4 subnets : (log 2 4 = 2; need 2-extra bits ) Subnet mask: 255.255. 192.0 or /18 For 8 subnets: (log 2 8 = 3; need 3-extra bits ) subnet mask : 255.255.224.0 or /19 00000000 00000000 11111111 11111111 000000 00000000 11 11111111 11111111 00000 00000000 111 11111111 11111111

The router follows steps: Classful Addressing: Subnetting Example: A router receives a packet with destination address 190.240.33.91. Show how it finds the network and the subnetwork address to route the packet. Assume the subnet mask is /19 The router follows steps: 1. The router looks at the first byte of the address to find the class. It is class B. 2. The mask for class B is (/16)The router ANDs this mask with the address to get the network address :190.240.0.0. 3. The router applies the subnet mask (/19) to the address, 190.240.33.91. 190.240.001 00001. 91 The subnet address is 190.240.32.0. 4. The router looks in its routing table to find how to route the packet to this destination

supernetting Classful Addressing Huge demand for midsize blocks. Although class A and B addresses are almost depleted, class C addresses are still available( size of block= 256 address did not satisfy the needs). In supernetting, an organization can combine several class C blocks to create a larger range of addresses. Several networks are combined to create a supernetwork ( supernet). e.g. Organization needs 1000 address can be granted 4 contiguous class C blocks to create one supernetwork. Decreases the number of 1s in the mask. E.g. The mask changes from /24 to /22 for 4 class C block

Run out of classes A and B address. Classful Addressing: supernetting Address Depletion Near depletion of the available address because of the fast growth of the Internet. Run out of classes A and B address. Classes C block is too small for most mid size organizations. Solution: Classless addressing Layla Hajr