MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

What is a subnet mask

Source: Shangpin China | Type: website encyclopedia | Time: June 27, 2014
Subnet segmentation technology: It is used to identify the subnet number by identifying "borrowed" bits from the host. That is, from left to right, some bits originally belonging to the Host ID are borrowed as needed to identify the subnet ID, that is, Sub Net ID. Subnet mask: used to indicate that an IP address network ID includes a 32-bit description of the subnet ID. When only the network ID can be specified without the subnet ID, it is called the default mask.

The correspondence between the subnet mask and the IP address: the "bits" of the network ID part of an IP address (including the subnet ID) corresponding to the subnet mask are all I, and the "bits" of the host ID part corresponding to the subnet mask are all 0. The "AND" operation is performed through the IP address and the subnet mask. The subnet mask Website Design The host ID is partially masked, and the network ID (including subnet ID) of the IP address is obtained.

[Example 4] An IP address 172 16.12.1, the default mask is 255 255.0.0。 After the subnet is divided, the subnet ID "borrows" 8 bits from the host ID, so the subnet mask is 255 255. 255. 0, see Figure 4-23
 Subnet mask


The network segment number 172 of the IP address can be obtained by the AND operation of the IP address and the subnet mask 16. 12. 0, see Figure 4-24.

The host number of the IP address can be obtained by computing the subnet mask "NOT" and then the IP address "AND"; The direct broadcast address of the network where the IP address is located can be obtained by the "NOT" operation of the subnet mask followed by the "OR" operation with the IP address. Note Another way to express the It subnet mask is to use "/16" to indicate that the subnet mask has 16 bit 1, and "/24" to indicate that the subnet mask has 24 bit 1.

Note 2: The subnet mask cannot exist alone and must be used together with the IP address. [Example 5] It is still Example 3, but the subnet segmentation technology is applied, as shown in Figure 4-25.
 Subnet division and subnet technical support
Network deployment: The upper 8 bits of the host ID are used for the subnet ID. The subnet mask of the two subnet segments separated by router connection is 24 bits. The left subnet is 172.16.1.0, and the right subnet is 172.16.2.0. When the hosts located in the two subnets communicate with each other, such as 172.16 1.2 Send IP packets to 172.16.2.2. At the sending end, the sending host performs an AND operation between the destination IP address and the subnet mask, and judges that the destination host and the host are not in the same subnet. Therefore, the sending host gives the IP packet to the router (i.e. the default gateway 172 16. 1. 1); After receiving the IP packet, the router "AND" its destination IP with the subnet mask, and the destination network segment is 172,16.2.0; Then, according to the routing table, it is judged that the IP packet is forwarded via the port El.

The application of subnet partition technology not only realizes the communication between subnets, but also uses IP resources reasonably and effectively, and at the same time, improves the communication ability of the network.
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]