Color gradient to express utilization of IPv6 subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Wishlist
|
Trond Kandal |
Bug Description
The prefix matrix does not report subnet utilization percentages for IPv6 subnets, as is done for IPv4 subnets. This is because of the fact that saturating a typical /64 lan subnet is infeasible, and any real-world percentages would be extremely low. The actual number of active IPv6 addresses in a subnet is reported by the regular prefix report.
For IPv4 subnets, the prefix matrix will also use a graded background color to express utilization more visually. Steinar Hamre from NTNU suggests that a color gradient for IPv6 subnet utilization can be created based on a double logarithm. He proposes the following example code to accomplish this:
def dlog(x):
return math.log(
def color(count):
t=256-
return "#%02x%02xff" % (t,t)
Changed in nav: | |
assignee: | nobody → Trond Kandal (trond-kandal) |
Changed in nav: | |
status: | New → In Progress |
Changed in nav: | |
status: | Fix Committed → Fix Released |
An idea may be to calculate the gradient in the HSV color model before converting to RGB for use in HTML. See Python's colorsys module for conversion methods.