written 7.8 years ago by | • modified 2.8 years ago |
Mumbai University > Information Technology > Sem 4 > CN
Marks: 6M
Year: May 2016
written 7.8 years ago by | • modified 2.8 years ago |
Mumbai University > Information Technology > Sem 4 > CN
Marks: 6M
Year: May 2016
written 7.8 years ago by |
IP address
Communication at the network layer is host-to-host (computer-to-computer); a computer somewhere in the world needs to communicate with another computer somewhere else in the world. Usually, computers communicate through the Internet. The packet transmitted by the sending computer may pass through several LANs or WANs before reaching the destination computer.
For this level of communication, we need a global addressing scheme; we called this logical addressing. The term IP address means logical address in the network layer of the TCP/IP protocol suite. 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. IPv4 uses 32-bit addresses, which means that the address space is 232232.
In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Each class occupies some part of the address space.
In classful addressing, an IP address in class A, B, or C is divided into netid and hostid. These parts are of varying lengths, depending on the class of the address.
Mask
The mask can help us to find the netid and the hostid. For example, the mask for a class A address has eight 1s, which means the first 8 bits of any address in class A define the netid; the next 24 bits define the hostid.
The last column of above Table shows the mask in the form 1n where n can be 8, 16, or 24 in classful addressing. This notation is also called slash notation or Classless Interdomain Routing (CIDR) notation. The notation is used in classless addressing,
Subnetting