answersLogoWhite

0

How do you calculate a mask?

Updated: 8/3/2023
User Avatar

Wiki User

10y ago

Best Answer

In computer networks based on the internet Protocol Suite, a subnetwork, or subnet, is a portion of the network's computers and network devices that have a common, designated IP address routing prefix (cf. Classless Inter-Domain Routing, CIDR). A routing prefix is the sequence of leading bits of an IP address that precede the portion of the address used as host identifier (or rest field in early internet terminology). In IPv4 installations, the routing prefix is often expressed as a "subnet mask", which is a bit mask covering the number of bits used in the prefix. It is frequently expressed in quad-dotted decimal representation, e.g., 255.255.255.0 is the subnet mask for the 192.168.1.0 network with a 24-bit routing prefix (192.168.1.0/24). Subnet masks in IPv4 do not have to have consecutive bits set, e.g., a subnet mask of "11111111001100110000000000000000" (binary) is permissible, albeit of little additional value, as it does not provide for more efficient address space utilization and cannot be represented in CIDR notation. IPv6 does not use subnet masks and such non-standard routing prefixes are not possible. The routing prefix of a subnet is often further divided into the network's network identifier and a subnet identifier. The network identifier is the leading set of address bits that is common to the prefixes of all subnets in the network. This would typically be the CIDR routing prefix of an organization's entire address space allocation. The subnet identifier consists of the remaining bits in a subnet's prefix after the network identifier. In the cited example, 192.168.0.0 is the network identifier (and 255.255.0.0 the network mask) and "1" is the subnet identifier. In a large organization's network, without subnetting, traffic levels can grow enough that excessive rates of Ethernet packet collisions become a bottle neck due to the nature of Ethernet (cf. carrier sense multiple access with collision detection). For this reason, subnetting can be used to break the network into smaller more efficient subnets. Such subnets can be arranged hierarchically, with the organization's network address space (see also Autonomous System) partitioned into a tree-like structure. Routers are used to manage traffic and constitute borders between subnets. Communication is of specific link-local character (Ethernet broadcast) only within the smallest subnet. A typical subnet is a physical network served by one router, for instance an Ethernet network (consisting of one or several Ethernet segments or local area networks, interconnected by network switches and network bridges) or a Virtual Local Area Network (VLAN). However, subnetting allows the network to be logically divided regardless of the physical layout of a network, since it is possible to divide a physical network into several subnets by configuring different host computers to use different routers. While improving network performance, subnetting increases routing complexity, since each locally connected subnet is typically represented by one row in the routing tables in each connected router. However, with intelligent design of the network, routes to collections of more distant subnets within the branches of a tree-hierarchy can be aggregated by single routes. Subnetting was originally introduced before the introduction of classful network addresses in IPv4 to allow a single larger network to have a number of smaller networks within it, controlled by several routers. Existing subnetting functionality in routers made the introduction of Classless Inter-Domain Routing seamless.

User Avatar

Michael Bogisich

Lvl 10
1y ago
This answer is:
User Avatar
More answers
User Avatar

Javel Paul

Lvl 6
1y ago

To calculate a mask, you first need to determine the network prefix length which is represented as a number between 0 and 32. The network prefix length indicates how many bits of the IPv4 address represent the network portion of the address. Next, you need to convert this prefix length to a binary number consisting of all 1's in the network portion and all 0's in the host portion. Finally, you convert this binary number to decimal format to get the subnet mask.

For example, if the network prefix length is 24, you would have 24 bits in the network portion and 8 bits in the host portion. In binary format, the network portion would consist of 24 1's and the host portion would consist of 8 0's. This results in a binary number of 11111111 11111111 11111111 00000000. Converting this binary number to decimal format gives you a subnet mask of 255.255.255.0.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you calculate a mask?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

With an ip address of 10.10.10.1with a mask of 255.255.255.0 what is the network and broadcast address?

This is easy to calculate due to the mask used. The network address would be 10.10.10.0 and the broadcast address would be 10.10.10.255.


What is the Network mask of IP 185.185.0.0 in dotted decimal How do I calculate First host of the major network IP address What would be my last host of the major network?

What is the Network mask of IP 185.185.0.0 in dotted decimal? How do I calculate First host of the major network IP address? What would be my last host of the major network?"


If you had 500 machines which you wanted on the same LAN what subnet mask would you use?

It depends, you could use 255.255.254.0 which will allow you 512 machines, however you are limiting yourself to 512 as a maximum. You can calculate any subnet mask you like at www.subnetmask.info


How do you get the cafe mask in majoras mask?

There is no mask titled 'Cafe Mask' in Legend of Zelda: Majora's Mask.


What is the triple mask?

There is no mask titled 'Triple Mask' in The Legend of Zelda Majora's Mask.


What are the release dates for A Mask for Me a Mask for You - 1967?

A Mask for Me a Mask for You - 1967 was released on: USA: 1967


What is mask in Welsh?

'a mask' is mwgwd; 'to mask' is mygydu or cuddio.


What is another name for a wild-card mask?

Inverse Mask Mask: 255.255.0.0 Wildcard Mask: 0.0.255.255


What is a metaphorical mask?

A mask


What is behind Kakashi's mask?

Behind kakashi's mask is another mask.


Where do you find the mask on shark tooth island?

Mask? What mask? There is no mask that you have to find in Shark Tooth Island, Poptropica.


What are the rules of the mask?

Never put on your mask in front of the audience Do not touch your mask once you have put it on Do not talk with the mask on