Docsity

Internet Protocol version 4 (IPv4), Lecture notes of Computer Networks

Partial preview of the text

Download Internet Protocol version 4 (IPv4) and more Lecture notes Computer Networks in PDF only on Docsity!

Engr Cadaani

Internet Protocol version

4 (IPv4)

The Internet Protocol (IP)

The Internet Protocol is the corner-stone of the TCP/IP

architecture. All computers in the Internet understand IP.

The main tasks of IP are:

 The addressing of the computers, and the fragmentation of

packets.

There are two types of Internet Protocol:

 (^) Internet Protocol version 4 (IPv4): currently used version of Internet Protocol.  (^) Internet Protocol version 6 (IPv6): the upcoming replacement for IPv4. It contains some major improvements and new features.

Cont…

The IP address can be classify into two classes:

 Public address:

This address considered as any valid address assigned to any

user, and the organization who is responsible for registering IP

ranges called Internet Service Providers (ISPs), and this

address will be unique.

 Private Address:

Any number or address assigned to a device on a private TCP/IP

Local Area Network that is accessible only within the Local

Area Network.

Internet addresses

Each network interface connected to the Internet has a

unique address consisting of two parts:

 Network address, address of the network within the Internet

(used by gateways for routing IP packets between

networks).

 Host address , address of the computer within the network

(used for delivering packets to a particular network

interface within the network).

Cont…  (^) Dotted-decimal notation Dotted-decimal notation is the format that is typically used for displaying the IP address in a human-readable format. An example of dotted-decimal notation is 192.168.1. Figure 3: Structure of IP

Classes of IP addresses  (^) Different networks have different sizes. Basically, there are many small networks and few large networks.  (^) Toprovide efficient use of 32 -bit address space, IPv4 defined several address classes and associated address formats:  (^) Class A: allows 128 networks, 16 million hosts each. The IP address start from 1.0.0.0 to 127.255.255.255, and the mask address is 255.0.0.  (^) Class B: allows 16,382 networks, 65,534 hosts each. The IP address start from 128.0.0.0 to 191.255.255.255, and the mask address

Cont..  (^) One of the benefits of classful addresses is that they provide a hierarchy to the network through the use of the network ID. This translates into an efficient routing environment because it is easy for a router to determine what networks can be grouped together and treated as a single routing entry.

Strategies to Conserve Addresses

Several strategies have been developed and implemented to

help the Internet community on how provides a good managing

of IP addresses. These strategies help reduce the load on

Internet routers and help administrators use globally unique IP

addresses more efficiently. There are two common strategies,

which are:

Private Addressing

Classless Inter-Domain Routing (CIDR)

Cont…

1. Network Address Translation (NAT). This technique has been used to convert the private address to public address, the NAT allowing us to access the internet and get services. The basic idea, is that technique used pool of public addresses and assign for each private address one public address. Thus, this way is inefficient due to the fact that there are cost and delay associated with this operation. The table and the figure below show how the NAT make the mapping. Private Address Public Address 192.68.5.1 200.1.1. 192.68.5.2 200.1.1. 192.68.5.3 200.1.1.

Subnetting

As the number of distinct local networks grows, managing

them become a serious headache. Every time a new network is

installed the system administrator must contact NIC to get a

new network number.

The solution to the problem is to allow a network to be split

into several independent parts for internal use but still act like a

single network to the outside world. In the internet literature

these parts are called subnets.

Subnet masks:-  (^) A mask is a 32-bit binary number that is expressed in dotted decimal notation. By default, a mask contains two fields, the network field and the host field. These correspond to the network number and the locally administered part of the network address. When an administrator subnets, they are adjusting the way they view the IP address. Table 1: Default masks for classful addressing

Cont...  (^) There three important things that should be taken into our account when we thinking about subnetting:-

  1. Network address – the first one
  2. Broadcast address – the last one
  3. Host addresses – everything in between As well as, to find the number of hosts per subnet. We can use formal 2 x^ -2, where (x) is the number of unmasked bits (0’s).

Cont...