IPV6 address management method and device
By obtaining and drawing grid pages in the IPV6 address segment and according to status marks, the problem of inconvenience in IPV6 address management is solved, and the intuitive management and rapid positioning of IP address collections are realized.
Patent Information
- Application Number
- CN202411632648.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, IPV6 address management is inconvenient and lacks effective visual management technology, which makes it difficult for administrators to perform flexible and convenient management.
By obtaining the address set of each network address in the IPV6 address segment, drawing a grid page containing the corresponding network address, and marking it according to the different status of each network address, supporting interactive operations of scaling, dragging, viewing and terminal identification.
It significantly improves the intuitiveness of IP address collection management, and users can quickly identify and locate IP address status, support flexible view adjustment and quick browsing of large-scale IP address collections.
Smart Images

Figure CN119583514A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network address management, and in particular to a method and device for managing an IPv6 address. Background Art
[0002] Network address visualization management refers to the use of specific technologies and tools to graphically display and manage IP address resources in the network. This management method allows network administrators to more intuitively and efficiently monitor and control the use of network addresses, including the allocation of IP addresses, the management of subnets, the utilization rate of IP addresses, etc. Through this visualization method, complex and huge IP address data is cleverly converted into an easy-to-understand graphical interface, allowing information management personnel to quickly capture the overall picture of IP address allocation and use.
[0003] Grid visualization can divide the IP address space into grid units, each of which represents one or more IP addresses. This grid layout not only makes full use of the visual space, but also clearly displays the allocation status of IP addresses and other related information (such as the subnet to which they belong, the department using them, etc.) through color coding and icon marking. Users can clearly see the number of used IP addresses, the number of available IP addresses, and the total number of IP addresses in the current network. This intuitive presentation method greatly reduces the threshold for information interpretation, allowing even non-technical managers to quickly understand the use of IP addresses.
[0004] However, as IPV4 addresses are exhausted, IPV6 addresses have emerged. They use a 128-bit design and can provide an almost unlimited number of unique IPV6 addresses. However, the length of IPV6 addresses and the size of the address space make it extremely difficult to visualize IPV6 addresses in a grid format. Currently, there is no visual view presentation method for managing IPV6 addresses, and there is also a lack of effective visual management technology, which makes it impossible to provide administrators with a flexible and convenient management experience. Summary of the invention
[0005] The present invention provides an IPV6 address management method, which is used to solve the defects of inconvenient and inefficient IPV6 address management in the prior art.
[0006] The present invention provides a method for managing an IPV6 address, comprising: Step 1, according to the IPV6 address segment, obtain the address set of each network address in the corresponding address segment; Step 2, drawing one or more pages including a grid corresponding to each network address according to the address set; Step 3: Mark each network address in the grid according to its different status.
[0007] Wherein, the method further comprises: Step 4: performing zooming, dragging, viewing and / or terminal identification interactive operations corresponding to each grid.
[0008] Wherein, step 1 comprises: Step 11, according to the address segment, obtaining the start address and the end address of the address segment, and generating an address set including the size of the network address in the address segment; Step 12, inserting the used address into the address set; Step 13, calculate the intervals between adjacent network addresses, continuously identify idle network address intervals, and obtain an address set corresponding to each network address.
[0009] Wherein, step 2 comprises: Step 21, drawing a page of the network address according to the size of the network address, wherein each page includes 128 network addresses; Step 22: Drawing a grid corresponding to each network address in the page based on a network scalable vector graphics method.
[0010] Wherein, step 3 comprises: Step 31, filling the grid with different colors and / or styles according to the status of each network address; The status includes one or more of an unavailable status, an available status, a bound network address status, an alarm network address status, a broadcast address status and an invalid address status.
[0011] Wherein, step 4 comprises: Zoom in and out with the mouse or gestures to zoom in to view the grid or zoom out to browse the page corresponding to the address collection as a whole; Move the page view by dragging to browse different areas of the page corresponding to the complete address set; Browse all or part of the pages by switching different pages corresponding to the address set; Click on the grid to view detailed information, including the status of the network address, terminal device information and / or access MAC address; Corresponding to the state of the bound network address, the grid displays the icon of the bound terminal device, indicating the relationship between the corresponding network address and the terminal device; or Switch between different address sets or address segments through the tree menu to manage network resources.
[0012] The present invention also provides an IPV6 address management device, comprising: An acquisition module, the acquisition module is used to acquire an address set of each network address in a corresponding address segment according to the IPV6 address segment; A drawing module, the drawing module being used to draw one or more pages including a grid corresponding to each network address according to the address set; A marking module is used to mark each network address in the grid according to different states.
[0013] Wherein, the management device further includes: An interactive module, the interactive module being used to perform interactive operations of zooming, dragging, viewing and / or terminal identification corresponding to each grid; An address set management module, used for managing and allocating the network addresses; A network interface module that collects real-time data and monitors the status of address collections.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program implements any of the above-mentioned IPv6 address management methods.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned IPv6 address management methods.
[0016] The present invention provides an IPV6 address management method, which significantly improves the intuitiveness of IP address set management through grid layout and graphical representation, and the user can quickly identify and locate the IP address status.
[0017] The management method of the present invention supports interactive operations such as zooming, dragging, and page turning, allowing users to flexibly adjust the view and conveniently and quickly browse large-scale IP address collections. The present invention marks IP addresses of different states by color and icon, helping administrators to quickly grasp the distribution of address collections. By setting terminal device icons, the present invention allows users to intuitively see which devices use which IP addresses, further simplifying the association management of devices and addresses. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1It is a flow chart of an IPV6 address management method provided by the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] The display and management of IPv6 address segments is a complex process, involving the monitoring, allocation, and maintenance of a large number of IPv6 addresses. IPv6 addresses are 128 bits long. Compared with IPv4, IPv6 provides an extremely large address space. This large address space makes the management of IPv6 address segments more complex than IPv4. Traditional tables or command lines are difficult to intuitively display a large number of addresses.
[0022] In general, the present invention proposes a grid management method for IPV6 addresses, which can divide IPV6 addresses into regular grids for display, so that each IP address has a fixed position and representation in the display area, which is convenient for unified viewing and management.
[0023] Among them, the management method proposed by the present invention can automatically convert the address set of IPV6 idle start according to the IPV6 address segment to form a display page, and each page displays multiple IPV6 address grids, such as 128 IPV6 address grids. The method of the present invention automatically calculates the IPV6 address prefix based on the subnet mask, presents the idle address as a continuous range of IPV6 addresses, corresponds the used IPV6 address to a specific IPV6 address grid, and displays the terminal icon type. When the page exceeds 128 IPV6 address grids, it can be realized to turn the page for viewing.
[0024] like Figure 1 As shown, in one embodiment, the present invention provides an IPV6 address management method, including: step 1, according to the IPV6 address segment, obtaining an address set of each network address in the corresponding address segment; step 2, according to the address set, drawing one or more pages containing a grid corresponding to each network address; step 3, marking the grid according to the different states of each network address.
[0025] Among them, in step 1, the IPv6 address consists of 128 bits, usually represented by 32 hexadecimal numbers. IPv6 addresses are grouped by prefixes, which refers to a set of addresses with the same starting bit. To obtain all network addresses in an IPv6 address segment, you first need to determine the prefix of the address segment. For each determined prefix, you can build an address set by generating all possible addresses under the prefix. Use a loop or recursive function to traverse from the starting address to the ending address to generate all possible IPv6 addresses in the network segment.
[0026] In step 2, the IP addresses are displayed in a grid layout through SVG technology, each grid represents an IP address, and IPV6 displays 128 addresses per page. The grid layout enables a large number of IP addresses to be efficiently displayed in a limited space.
[0027] Among them, in step 3, IP addresses of different states can be distinguished by color or icon. The states can include network address, available IP, bound IP, online IP, alarm IP, broadcast address and invalid IP. Each state corresponds to a different color or symbol mark, which is convenient for administrators to quickly determine the allocation and use of IP in the address set.
[0028] Among them, the network address indicates that the network address cannot be allocated and used. It is usually located at the beginning or end of the address set, indicating that this part of the address is reserved for network division.
[0029] Among them, available IP refers to the IP that has not been allocated in the current address set, prompting the administrator that the IP can be allocated and used, which facilitates the reasonable planning of resources.
[0030] Among them, bound IP refers to the IP address that has been allocated by the terminal device, indicating that the IP is reserved for a certain terminal device and only the device can use the IP.
[0031] Among them, online IP means that the IP address is being used and is online, helping administrators to clearly understand the online terminal devices in the current network.
[0032] Among them, the alarm IP indicates that an alarm has occurred on a certain IP address, prompting the administrator to take measures as soon as possible.
[0033] The broadcast address has a special purpose in network communications and cannot be assigned to a terminal.
[0034] Among them, invalid IP, invalid IP includes reserved address and unassigned address; it means that the IP cannot communicate and be assigned normally.
[0035] Among them, step 1 includes: step 11, according to the address segment, obtaining the starting address and the ending address of the address segment, and generating an address set containing the size of the network address in the address segment; step 12, inserting the used address into the address set; step 13, calculating the interval between adjacent network addresses, continuously identifying the idle network address intervals, and obtaining the address set corresponding to each network address.
[0036] In step 11, an IP address set is generated, and based on the starting IP (startIP) and the ending IP (endIP) of the network segment, all IP address sets P in the address set are obtained: P = {x | startIP ≤ x ≤ endIP}; In step 12, the used IP address (usedIP) is queried from the database and inserted into the collection: P = {startIP, usedIP1, usedIP2, ..., endIP}; In step 13, the set P is traversed, and for two adjacent IPs (prevIP and nextIP), the interval between them is calculated. If the interval is greater than 2, it means that there is an idle IP address range, and an aggregated collectionIP needs to be inserted between them to identify the addresses in this range.
[0037] interval = ipToInteger(nextIP) - ipToInteger(prevIP) If interval>2, create a collectionIP, representing the address range from prevIP + 1 to nextIP - 1.
[0038] Wherein, step 2 includes: step 21, drawing a page of the network address according to the size of the network address, wherein each page includes 128 network addresses; step 22, drawing a grid corresponding to each network address in the page based on a network scalable vector graphics method.
[0039] In step 21, for the convenience of management and display, the IP set P is paged, and 128 IPV6 addresses are displayed on each page.
[0040] Paging formula: P1 = P.slice((page - 1) * 128, page * 128) In step 22, an IP grid is drawn. The IP addresses in the current page are drawn using front-end technology, such as WEB SVG technology. The width of each IP node is w, the height is h, and the spacing between adjacent nodes is s. The coordinate calculation formula is as follows: x coordinate: x = (index % 16) * (w + s); Each line displays 16 IP nodes, and index % 16 determines the horizontal arrangement position of the current node.
[0041] y coordinate: y = Math.floor(index / 16) * (h + s); Math.floor(index / 16) determines the row number of the current node.
[0042] Wherein, step 3 includes: step 31, filling the grid with different colors and / or styles according to the status of each network address; wherein the status includes unavailable status, available status, bound network address status, alarm network address status, broadcast address status and invalid address status.
[0043] In step 31, the status of the grid node is represented by different colors and styles. Specifically, in one embodiment, the unavailable state is represented by a specific color to indicate that the address cannot be assigned; the available IP is represented by dark blue; the bound IP is represented by green; the online IP is represented by blue; the alarm IP is represented by red; the broadcast address is displayed in gray; and the invalid IP is displayed in gray.
[0044] Among them, step 4 includes: zooming in and out through the mouse or gestures to zoom in to view a specific grid or zoom out to browse the page corresponding to the address set as a whole; quickly moving the page view through dragging operations to browse different areas of the page corresponding to the complete address set; browsing all or part of the page by switching different pages corresponding to the address set; viewing detailed information by clicking on the grid, the detailed information includes the status of the network address, terminal device information and / or the connected MAC address; corresponding to the bound network address status, the grid displays the icon of the bound terminal device, identifying the relationship between the corresponding network address and the terminal device; or, quickly switching different address sets or address segments through a tree menu to manage network resources.
[0045] Among them, the zoom operation is performed by the mouse wheel or touch gesture. When zooming, the user can choose to zoom in on the IP address set of a certain area, or zoom out to view the overall layout of the entire address set. The zoom function allows users to quickly switch view levels to adapt to different management needs.
[0046] Among them, by clicking and dragging the grid area, users can browse different IP address segments. Especially when facing a large-scale address collection, the dragging function greatly improves the user's operation convenience. The dragging operation allows users to quickly locate the address segment of interest.
[0047] Among them, since the IPV6 address space is extremely large, users can use the page turning function to view the address distribution of each page by region. Each page displays 128 IPV6 addresses to ensure that the displayed information is not too dense and is convenient for quick browsing.
[0048] Among them, by clicking on a specific IP grid, users can pop up a detailed information window to display the current status of the IP address (such as online, available, bound, etc.), the connected MAC address, the terminal device type (such as computer, mobile phone, etc.), and other related information. This function allows administrators to gain an in-depth understanding of the use of IP addresses and make corresponding management decisions.
[0049] Among them, the detailed information displayed includes the current IP status, the connected MAC address and the connected terminal device information.
[0050] Among them, the current IP status is used to display the specific status of the IP, such as available, bound, online, alarm, etc.
[0051] Among them, the accessed MAC address displays the MAC address of the terminal device bound to the IP, helping the administrator to identify the uniqueness of the terminal device and facilitate troubleshooting of device problems.
[0052] Among them, the connected terminal device information displays the terminal device type (such as computer, mobile phone or server) bound to the current IP, and lists its device name, operating system and other detailed information, which helps administrators accurately locate and manage each device.
[0053] Furthermore, in step 4, the user can drag the IP address set by mouse operation. Specifically, by capturing events such as mouse pressing, moving, and releasing, the distance the mouse moves is calculated, and the transform attribute of the SVG element is adjusted to move the canvas. The formula is as follows: translateX = currentMouseX - lastMouseX translateY = currentMouseY - lastMouseY The difference between the mouse's current position and the last time it was pressed determines the canvas's offset in the x and y directions.
[0054] Furthermore, in step 4, the user can zoom in and out by using the mouse wheel or gesture operation, and the formula is as follows: scaleN = scaleN + n or scaleN = scaleN - n Among them, scaleN is the scaling ratio, and n is the scrolling amplitude of the wheel, which controls the degree of zooming in or out. When the user scrolls the mouse, the value of n will automatically adjust based on the scrolling amplitude, with positive values indicating zooming in and negative values indicating zooming out. Finally, the scaling is performed through the transform attribute of SVGGElement: transform="translate(translateX, translateY) scale(scaleS)"; The final transformation of the canvas is expressed by the following formula: transform="translate(currentMouseX - lastMouseX, currentMouseY -lastMouseY) scale(scaleN)" ; Furthermore, in step 4, you can quickly add a terminal device by right-clicking an unused IP. This function can improve the convenience of user operations and help administrators quickly allocate and manage IPs. This function helps users simplify the process of creating terminal devices and speed up device allocation.
[0055] Specifically, the user right-clicks on an unused IP; a context menu pops up, allowing the user to select "Add terminal device"; after selecting, the user can fill in the device information (such as device type, name, etc.), and then bind the terminal device to this IP.
[0056] Furthermore, step 4 also includes left-clicking to view detailed information. When the user left-clicks an IP, a detailed information panel pops up and displays the device and connection information related to the IP. This function provides administrators with an in-depth understanding of the current IP status, helping them make more reasonable management decisions.
[0057] The displayed detailed information includes IP status, access MAC address and access terminal device information.
[0058] Among them, the IP status indicates the current status of the IP, such as available, bound, online, alarm, etc., which can be dynamically obtained by comparing the usedIP in the database with the usage of the current network segment IP.
[0059] The accessed MAC address indicates the MAC address of a device displayed when the IP is used or bound by the device. The MAC address is used to uniquely identify each connected device, making it easier for administrators to troubleshoot device problems on the network.
[0060] The information of the access terminal device indicates the detailed information of the terminal device bound to the IP, including the device type (such as computer, mobile phone or server), device name, operating system, etc. The administrator can quickly locate and manage the device through this information.
[0061] The present invention also provides an IPV6 address management device, comprising: an acquisition module, which is used to acquire an address set of each network address in a corresponding address segment according to the IPV6 address segment; a drawing module, which is used to draw one or more pages containing a grid corresponding to each network address according to the address set; and a marking module, which is used to mark the grid according to the different states of each address.
[0062] Wherein, the management device further comprises: an interaction module, and the interaction module is used to perform interactive operations of zooming, dragging, viewing and / or terminal identification corresponding to each grid.
[0063] Among them, the acquisition module is also used to: acquire the starting address and the ending address of the address segment according to the address segment, and generate an address set containing the size of the network address in the address segment; insert the used address into the address set; calculate the interval between adjacent network addresses, continuously identify the idle network address intervals, and obtain the address set corresponding to each network address.
[0064] The drawing module is further used for: drawing a page of the network address according to the size of the network address, wherein each page includes 128 network addresses; and drawing a grid corresponding to each network address in the page based on a network scalable vector graphics method.
[0065] Wherein, the marking module is also used to: fill the grid with different colors and / or styles according to the status of each network address; wherein the status includes unavailable status, available status, bound network address status, alarm network address status, broadcast address status and invalid address status.
[0066] Wherein, the interaction module is also used for: Zoom in and out by mouse or gestures to zoom in to view a specific grid or zoom out to browse the page corresponding to the address set as a whole; Quickly move the page view by dragging to browse different areas of the page corresponding to the complete address set; Browse all or part of the pages by switching different pages corresponding to the address set; Click on the grid to view detailed information, including the status of the network address, terminal device information and / or access MAC address; Corresponding to the state of the bound network address, the grid displays the icon of the bound terminal device, indicating the relationship between the corresponding network address and the terminal device; or Quickly switch between different address sets or address segments through the tree menu to manage network resources.
[0067] The device may also include: a user interface (UI) for interacting and viewing the status of the IPV6 address set; an address set management module for managing and allocating IPV6 addresses; a data processing module for processing and displaying data extracted from a database; a network interface module for collecting real-time data and monitoring the status of the address set; and a report generation module for generating detailed usage reports and supporting export.
[0068] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute an IPV6 address management method provided by the above methods, including: step 1, according to the IPV6 address segment, obtain an address set of each network address in the corresponding address segment; step 2, according to the address set, draw one or more pages containing a grid corresponding to each network address; step 3, mark the grid according to the different states of each address.
[0069] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute an IPV6 address management method provided by the above methods, including: step 1, according to the IPV6 address segment, obtaining an address set of each network address in the corresponding address segment; step 2, according to the address set, drawing one or more pages containing a grid corresponding to each network address; step 3, marking the grid according to the different states of each address.
[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for managing an IPV6 address, characterized in that: include: Step 1, according to the IPV6 address segment, obtain the address set of each network address in the corresponding address segment; Step 2, drawing one or more pages including a grid corresponding to each network address according to the address set; Step 3: Mark the grid according to the different states of each network address.
2. The method according to claim 1, characterized in that Also includes: Step 4: performing zooming, dragging, viewing and / or terminal identification interactive operations corresponding to each grid.
3. The method according to claim 1, characterized in that Step 1 includes: Step 11, according to the address segment, obtaining the starting address and the ending address of the address segment, and generating an address set including the size of the network address in the address segment; Step 12, inserting the used address into the address set; Step 13, calculate the intervals between adjacent network addresses, continuously identify idle network address intervals, and obtain an address set corresponding to each network address.
4. The method according to claim 1, characterized in that Step 2 includes: Step 21, drawing a page of the network address according to the size of the network address, wherein each page includes 128 network addresses; Step 22: Drawing a grid corresponding to each network address in the page based on a network scalable vector graphics method.
5. The method according to claim 1, characterized in that Step 3 includes: Step 31, filling the grid with different colors and / or styles according to the status of each network address; The status includes one or more of an unavailable status, an available status, a bound network address status, an alarm network address status, a broadcast address status and an invalid address status.
6. The method according to claim 2, characterized in that Step 4 includes: Zoom in and out with the mouse or gestures to zoom in to view the grid or zoom out to browse the page corresponding to the address collection as a whole; Move the page view by dragging to browse different areas of the page corresponding to the complete address set; Browse all or part of the pages by switching different pages corresponding to the address set; Click on the grid to view detailed information, including the status of the network address, terminal device information and / or access MAC address; Corresponding to the state of the bound network address, the grid displays the icon of the bound terminal device, indicating the relationship between the corresponding network address and the terminal device; or Switch between different address sets or address segments through the tree menu to manage network resources.
7. An IPV6 address management device, characterized in that: include: An acquisition module, the acquisition module is used to acquire an address set of each network address in a corresponding address segment according to the IPV6 address segment; A drawing module, the drawing module being used to draw one or more pages including a grid corresponding to each network address according to the address set; A marking module is used to mark the grid according to different states of each network address.
8. The management device according to claim 7, characterized in that: Also includes: An interactive module, the interactive module being used to perform interactive operations of zooming, dragging, viewing and / or terminal identification corresponding to each of the grids; An address set management module, used for managing and allocating the network addresses; A network interface module that collects real-time data and monitors the status of address collections.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, an IPV6 address management method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, an IPV6 address management method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
IPv6-based address visual management method and system, and storage medium
CN115460146A
IPv6 visual configuration method
CN117692431A
Visualization for managing multiple IP address management systems
US8725860B1