Unfortunately, MAC's r not helpful 4 routing comm'n msgs outside of a small no. of locally interconnected devices bcz dey r randomly scattered arnd d world, i.e, a device wid a MAC addr of 10:20:30:40:50:60 cud be in Delhi & anthr wid mac addr of 10:20:30:40:50:61 cud be in Seoul
To enable devices to find each other easily no matter where dey r in d world, d creators of d Internet came up wid a logical addressing scheme dat made it much easier for devices to find each other. These logical, Internet Protocol, addresses r commonly referred to as "IP addrs".
IP Terminologies -
Bit - This is a single digit, represented either as 1 or 0
Byte - This is a collection or series of 8 bits. 1 byte = 8 bits
Octet - An octet comprises 8 bits or 1 byte
An IP address is segmented into 4 octets or bytes. Each octet has 8 bits.
Bit - This is a single digit, represented either as 1 or 0
Byte - This is a collection or series of 8 bits. 1 byte = 8 bits
Octet - An octet comprises 8 bits or 1 byte
An IP address is segmented into 4 octets or bytes. Each octet has 8 bits.
Classful Routing -
Message routing devices or "routers" that transfer messages from one organization to another use a highly structured method of IP addressing called "classful routing", where IP address ranges are grouped into five classes.
Message routing devices or "routers" that transfer messages from one organization to another use a highly structured method of IP addressing called "classful routing", where IP address ranges are grouped into five classes.
IP Classes -
Typically, the IPv4 space allows us to hv addrs b/n 0.0.0.0 to 255.255.255.255. Hwevr, some no's in dat range r reserved 4 specific purposes on TCP/IP nw's.
These reservations r recognized by TCP/IP addressing Authority the Internet Assigned Numbers Authority IANA
Typically, the IPv4 space allows us to hv addrs b/n 0.0.0.0 to 255.255.255.255. Hwevr, some no's in dat range r reserved 4 specific purposes on TCP/IP nw's.
These reservations r recognized by TCP/IP addressing Authority the Internet Assigned Numbers Authority IANA
0.0.0.0 — This represents the default network, which is the abstract concept of just being connected to a TCP/IP network.
255.255.255.255 — This address is reserved for network broadcasts, or messages that should go to all computers on the network.
255.255.255.255 — This address is reserved for network broadcasts, or messages that should go to all computers on the network.
Use-
Class A is used by organizations requiring very large size networks like NASA, Pentagon etc.
Class A is used by organizations requiring very large size networks like NASA, Pentagon etc.
Use -
Class B is used by organizations requiring medium size networks like IRCTC, banks etc.
Class B is used by organizations requiring medium size networks like IRCTC, banks etc.
Use-
Class C is used by organizations requiring small to medium size networks.
For example- engineering colleges, small universities, small offices etc.
Class C is used by organizations requiring small to medium size networks.
For example- engineering colleges, small universities, small offices etc.
Classless Inter-Domain Routing (CIDR) -
D no. of class "A", "B" and "C" IP addr ranges is severely limited, so wen an org obtains an IP addr range, dey usually obtain a number of class "C" ranges, or if dey r lucky, a class "B". Obtaining a class "A" addr range is highly unlikely
D no. of class "A", "B" and "C" IP addr ranges is severely limited, so wen an org obtains an IP addr range, dey usually obtain a number of class "C" ranges, or if dey r lucky, a class "B". Obtaining a class "A" addr range is highly unlikely
Fortunately, the development of d Classless Inter-Domain Routing (CIDR) method of IP addressing & routing gave org's d opportunity to easily segregate any of their classful IP addr ranges or "networks" into a number of sub-ranges or "subnets" through d use of "subnet masks".
Subnet masks -
Each Internet router dat uses classful routing knows dat any IP addr starting with 0-127 is a class "A" addr with a nw identifying component 1 byte in length. Any IP addr beginning wid 128-191 is a class "B" addr, so d nw component is two bytes in length, etc.
Each Internet router dat uses classful routing knows dat any IP addr starting with 0-127 is a class "A" addr with a nw identifying component 1 byte in length. Any IP addr beginning wid 128-191 is a class "B" addr, so d nw component is two bytes in length, etc.
But when an org'n needs to break up its class "A" or class "B" nw into a number of class "C"- or other smaller-sized subnets, its routers cannot rely on the initial byte of d IP addr to tell it anything about the length of the network identifying component of the subnetted addrs.
Routable address vs. Non-routable addresses -
Were we to give every device in the world its own unique IP addr, we would have run out of addresses a long time ago.
Were we to give every device in the world its own unique IP addr, we would have run out of addresses a long time ago.
Loading suggestions...