An IP address is a 32-bit address.

The identifier used in the network layer of the implement model to identify each device connected to the Internet is called or

In the IP address is displayed as 32-bits.

In Internet addresses are written in decimal form with a dot separating the Bytes.

In classful addressing the address space is divided into five classes: A, B, C, D, and E.

When the address is given in dotted decimal notation, then we need to look at the first byte to determine the class of the address.

Addresses in A, B, and C are for from one source to one destination. Addresses on class D are for , from one source to a group of destination. Addresses in class E are for future use.

An IP addresses in classes A, B and C is divided into and

Net-id is part of Network Address

‘Net-id + All 0s’ is the Network address.

The network address is an address that defines the network itself. It can not be assigned to a host or router.

A network address has several properties :

The first address in the block defines the these address is used by routers the outside the organization to route the packets destined to this network.

IP addresses are designed with . A position of a 32-bit address indicates the network(Net id) and a portion indicates the host(Host id) in the network.

Often the network needs to be divided into several , with each subnetwork having its own . When we divide a network into several subnets we have three levels of hierarchy.

Adding subnetwork creates an intermediate level of hierarchy in the IP address. Now we have 3 levels: site, subnet, host.

The router outside the organization route the packet based on the network address. The router inside the organization routes the packet based on the subnet address.

The mask

The 32-bit number called the mask is the routing key.

A default mask is a 32-bit binary number that gives the network address when “anded” with an address in the block

"anded" means logical "AND"

how does default mask works

  1. The router looks at the first byte of the address to find the class. It is class B
  2. The default mask for class B is 255.255.0.0. The router ANDs this mask with the address to get 190.240.0.0.
  3. The router looks in its routing table to find out how to route the packet to this destination.

Subnetwork

how does subnet mask works

The number of is in a subnet mask ‘1’s more than the number of ‘1’s in the corresponding default mask.

  1. The router must know the mask. We assume it is /19.
  2. The router applies the mask to the address, 190.240.33.91. The subnet address is 190.240.32.0. 19 = 8+8+3 => Mask is 255.255.224.0.
  3. The router looks in its routing table find out how to route the packet to this destination.

The default mask creates the network address. The subnet mask creates the subnet address.

Today we use only use contiguous masks(连续的掩码) (a run of 1s followed by a run of 0s)

Given the IP address we can find the subnet address the same way we found the network address. We applying the mask to the address.

The number of subnetworks can be found by counting the extra 1s that are added to the default mask to make the subnet mask. For example, if the number of extra 1s is 3, the number of subnets is 2^3 = 8.

two addresses in each subnet are added to the list of special addresses. The first address in each subnet is the subnet address the last address is reserved for broadcast in side the subnet.

Supernetwork

Using the first byte to decide the class of the network, make the mask shorter to create a supernetwork mask.

The notation 195.14.192.3/24 shows a class C address, with a default mask. But the address 195.14.192.3/21 shows a supernetwork of class C address, with the mask 255.255.248.0, which combined by 2^3 = 8 class C networks.

multi-homed devices

A computer that is connected to different networks is called a multi-homed computer and will have more than one address.

An Internet address defines the connection of a device to a specific network. The movement of a computer from one network to another means that its IP address must be changed.

Special Addresses

Communication in the Internet can be achieved using addresses. No Broadcasting is allowed at the global Internet.