Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for configuring subnet mask

A technology of subnet mask and gateway, applied in the field of communication, to achieve the effect of automatic configuration

Active Publication Date: 2011-08-03
HUAWEI TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a method and device for configuring a subnet mask to solve the problems existing in the manual configuration scheme in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for configuring subnet mask
  • Method and device for configuring subnet mask
  • Method and device for configuring subnet mask

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0032] The idea of ​​the technical solution provided by the embodiment of the present invention is: (1) The length of the network address mask is limited, and the final network address mask can be found by using the network address mask assumed by the limited number of times to test. (2) Utilize the characteristics of the final network addres...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for configuring a subnet mask. The method comprises the following steps of: constructing a detection internet protocol (IP) address; sending a request message by adopting the detection IP address; and according to the response of the request message, determining the network bit length of the subnet mask so as to configure the subnet mask, wherein the network bit length of the subnet mask is the number of continuous same high bits in the detection IP address and an IP address of a gateway in the same network segment when a response message corresponding to the request message can be critically received, and the detection IP address and the IP address of the gateway meet the following condition: low bits of adjacent same high bits in the detection IP address and the IP address of the gateway are ones-complement codes of each other. The embodiment of the invention can realize automatic configuration of the subnet mask.

Description

technical field [0001] The invention relates to communication technology, in particular to a method and equipment for configuring a subnet mask. Background technique [0002] The subnet mask (subnet mask) plays an important role in Internet Protocol (Internet Protocol, IP) communication, and can be used to determine whether the source device and the target device are in the same network segment (the same Ethernet broadcast domain), so as to perform different routing. The length of the subnet mask is the same as that of the IP address, including network bits and host bits. The network bits are all 1s, and the host bits are all 0s. When the source device wants to send an IP packet to the target device, the IP packet header contains the detection IP address and the destination IP address. A network address is obtained by bitwise ANDing the detection IP address and the subnet mask. The mask is bitwise ANDed to get another network address. If the two obtained network addresses...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12H04L12/26
Inventor 蓝海青俞冬春
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products