Search

Class B networks and Class B IP addresses

"Class B" IPv4 addresses are used for medium-sized networks. Please note below important points about Class B network IP addresses.

  • First two octets of a "Class B" network IP address is used to identify the "Network part" and the remaining two octets are used to identify a host uniquely within that network.
  • The default structure of a Class B IP address is Network.Network.Host.Host
  • The left-most two bits (also called as high-order bits or most-significant bits) of the left most octet of a "Class B" network is reserved as "10".

I strongly suggest you to visit and learn below lessons before you continue learning more about Class B networks and Class B IP addresses.

Structure of a Class B IP address

The left-most two octets of a Class B network IP address belongs to the network part and remaining two octets belongs to the host part. The structure of a Class B IP address is Network.Network.Host.Host. The default subnet mask of a Class B IP address is 255.255.0.0.

Please refer below image.

structure-of-class-b-network-ip-address.jpg

Address range of Class B IP addresses

Since the two left-most bits (also called as high-order bits or most-significant bits) of the first octet (left-most octet) of a Class B network IPv4 address are reserved as "10", the 32 bits of a "Class B" address can be represented as 10xxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx.

The minimum possible value for the left-most octet in binaries is 10000000 (decimal equivalent is 128) and the maximum possible value for the left-most octet is 10111111 (decimal equivalent is 191). Therefore for a "Class B" IPv4 address, left-most octet must have a value between 128-191 (128.X.X.X to 191.X.X.X). Also note that the starting Class B IP address is 128.0.0.0 and last Class B IP address is 191.255.255.255.

Following image shows the range (minimum and maximum possible values) of left-most octet of a Class B network IP address. Note that two most-significant bits in left-most octet of a Class B network IP address are reserved as "10". Most-significant bits in the left-most octet are marked inside an orange rectangle in below image.

class-b-left-most-octet-minimum-maximum.jpg

You can easily identify a Class B IP address by looking at its left-most octet. If the left most octet is between (and including) 128 and 191, it is a Class B IP address.

Since the default structure of a Class B IP address is Network.Network.Host.Host, the default subnet mask of a Class B IP address is 255.255.0.0.

Reservation of IP addresses in Class B networks

An important IP address reservation in Class B IPv4 addresses is private networks, from 172.16.0.0 to 172.31.255.255. Networks belongs to "Class B" from 172.16.0.0 to 172.31.0.0 are reserved for private use and can be used inside any organization. Computers which are not connected directly to the Internet do not need globally-unique IPv4 addresses. They need an IPv4 addresses unique to that network only. Private IP addresses are used for that purpose.

Related Tutorials
• Introduction to TCP/IP, Features of TCP/IP, TCP/IP History, What is RFC (Request for Comments)
• Seven Layers of OSI Model and functions of seven layers of OSI model
• Five layered TCP/IP model
• Network Layer (Layer 3)
• TCP/IP Data Encapsulation and Decapsulation
• Datalink Layer (Layer 2)
• Ethernet Frame Format
• What is MAC address or Layer 2 address or physical address
• IPv4 Protocol, IPv4 header and fields of IPv4 header
• IPv4 addresses, IPv4 Address Classes, IPv4 Address Classifications
• What is Subnet Mask
• What is network address
• Limited broadcast address
• Directed broadcast address
• What is limited broadcast in IPv4 and how limited broadcast works
• What is directed broadcast in IPv4 and how directed broadcast works
• What is default gateway
• What are private IP addresses - RFC 1918 private addresses
• APIPA Addresses (Automatic Private IP Addresses)
• What is loopback address in IPv4
• What is localhost
• Class A networks and Class A IP addresses
• Class B networks and Class B IP addresses
• Class C networks and Class C IP addresses
• Class D multicast IP addresses
• Subnetting - Part 1
• Subnetting - Part 2
• Subnetting - Part 3
• Subnetting - Part 4
• Subnetting - Part 5
• Subnetting - Part 6
• Variable Length Subnet Masking, VLSM, IP V4 Subnetting, subnetting tutorials, IP study guides, IP documentation, IP tutorials
• Supernetting, IP Supernetting, IP Supernetting tutorial, How to Supernet, Supernetting Guide, Supernetting Concepts
• How to find out the Network Address and Broadcast Address of a subnetted IPv4 address
• Address Resolution Protocol Tutorial, How ARP work, ARP Message Format
• What is Gratuitous ARP