Saturday, April 18, 2009

Linux Kernel Socket Illustration


Sometimes I like to review a bit of Linux kernel socket history to help me with  future Linux socket programing.  No better place than right at the source with illustrations.  SRCDOC has a nice easy to follow illustration of SOCK.H  


Tuesday, April 7, 2009

IPv6 CIDR Table: Subnetting IPv6



CIDR Subnet
/128 1
/127 2
/126 4
/125 8
/124 16
/123 32
/122 64
/121 128
/120 256
/119 512
/118 1,024
/117 2,048
/116 4,096
/115 8,192
/114 16,384
/113 32,768
/112 65,536
/111 131,072
/110 262,144
/109 524,288
/108 1,048,576
/107 2,097,152
/106 4,194,304
/105 8,388,608
/104 16,777,216
/103 33,554,432
/102 67,108,864
/101 134,217,728
/100 268,435,456
/99 536,870,912
/98 1,073,741,824
/97 2,147,483,648
/96 4,294,967,296
/95 8,589,934,592
/94 17,179,869,184
/93 34,359,738,368
/92 68,719,476,736
/91 137,438,953,472
/90 274,877,906,944
/89 549,755,813,888
/88 1,099,511,627,776
/87 2,199,023,255,552
/86 4,398,046,511,104
/85 8,796,093,022,208
/84 17,592,186,044,416
/83 35,184,372,088,832
/82 70,368,744,177,664
/81 140,737,488,355,328
/80 281,474,976,710,656
/79 562,949,953,421,312
/78 1,125,899,906,842,624
/77 2,251,799,813,685,248
/76 4,503,599,627,370,496
/75 9,007,199,254,740,992
/74 18,014,398,509,481,985
/73 36,028,797,018,963,970
/72 72,057,594,037,927,940
/71 144,115,188,075,855,870
/70 288,230,376,151,711,750
/69 576,460,752,303,423,500
/68 1,152,921,504,606,847,000
/67 2,305,843,009,213,694,000
/66 4,611,686,018,427,388,000
/65 9,223,372,036,854,776,000
/64 18,446,744,073,709,552,000 -residential
/63 36,893,488,147,419,105,000
/62 73,786,976,294,838,210,000
/61 147,573,952,589,676,420,000
/60 295,147,905,179,352,850,000
/59 590,295,810,358,705,700,000
/58 1,180,591,620,717,411,500,000
/57 2,361,183,241,434,823,000,000
/56 4,722,366,482,869,646,000,000
/55 9,444,732,965,739,292,000,000
/54 18,889,465,931,478,585,000,000
/53 37,778,931,862,957,170,000,000
/52 75,557,863,725,914,340,000,000
/51 151,115,727,451,828,670,000,000
/50 302,231,454,903,657,350,000,000
/49 604,462,909,807,314,700,000,000
/48 1,208,925,819,614,629,500,000,000 -Business
/47 2,417,851,639,229,259,000,000,000
/46 4,835,703,278,458,518,000,000,000
/45 9,671,406,556,917,036,000,000,000
/44 19,342,813,113,834,072,000,000,000
/43 38,685,626,227,668,145,000,000,000
/42 77,371,252,455,336,290,000,000,000
/41 154,742,504,910,672,570,000,000,000
/40 309,485,009,821,345,150,000,000,000
/39 618,970,019,642,690,200,000,000,000
/38 1,237,940,039,285,380,500,000,000,000
/37 2,475,880,078,570,761,000,000,000,000
/36 4,951,760,157,141,522,000,000,000,000
/35 9,903,520,314,283,044,000,000,000,000
/34 19,807,040,628,566,087,000,000,000,000
/33 39,614,081,257,132,175,000,000,000,000
/32 79,228,162,514,264,350,000,000,000,000 -ISP
/31 158,456,325,028,528,700,000,000,000,000
/30 316,912,650,057,057,400,000,000,000,000
/29 633,825,300,114,114,700,000,000,000,000
/28 1,267,650,600,228,229,500,000,000,000,000
/27 2,535,301,200,456,459,000,000,000,000,000
/26 5,070,602,400,912,918,000,000,000,000,000
/25 10,141,204,801,825,836,000,000,000,000,000
/24 20,282,409,603,651,672,000,000,000,000,000
/23 40,564,819,207,303,345,000,000,000,000,000
/22 81,129,638,414,606,690,000,000,000,000,000
/21 162,259,276,829,213,370,000,000,000,000,000
/20 324,518,553,658,426,750,000,000,000,000,000
/19 649,037,107,316,853,500,000,000,000,000,000
/18 1,298,074,214,633,707,000,000,000,000,000,000
/17 2,596,148,429,267,414,000,000,000,000,000,000
/16 5,192,296,858,534,828,000,000,000,000,000,000
/15 10,384,593,717,069,656,000,000,000,000,000,000
/14 20,769,187,434,139,312,000,000,000,000,000,000
/13 41,538,374,868,278,625,000,000,000,000,000,000
/12 83,076,749,736,557,250,000,000,000,000,000,000
/11 166,153,499,473,114,500,000,000,000,000,000,000
/10 332,306,998,946,229,000,000,000,000,000,000,000
/9 664,613,997,892,458,000,000,000,000,000,000,000
/8 1,329,227,995,784,916,000,000,000,000,000,000,000


Today, I learned new math words like Septillion +24 zeros and Quintillion +18 zeros. I have been checking out the IPv6 CIDR Table written by Rick Hodger and TDOI NETWORK

Enjoy!

Monday, April 6, 2009

Gustavo Duarte's kernel managing memory tutorial


Gustavo Duarte has done an awesome tutorial on How The Kernel Manages Your Memory.

Have fun!

Sunday, April 5, 2009

IPv6 Tiger Team virtual helpdesk


"Mmm. Yes! Mmm. Yes! Let go. When you have understanding, your fate the Force will guide. Of your emotions be mindful, but do not forget the passivity of the moment. My ally is the Force, and a strong ally it is." 

Hmm.. Well in the mean time, I want to understand and check out the IPv6 Tiger team they have a summary  of the key results of the 6NET project, offer pointers to appropriate tutorial material, and to offer access to IPv6 expertise, via our virtual helpdesk.

Enjoy!

Thursday, April 2, 2009

Guide to tell Genuine from Counterfeit Cisco WIC


Would you be able to tell the real Cisco Wic from the fake if it was sold to you?

Andover has some excellent papers, like the "Guide to tell Genuine from Counterfeit." 

Check them out at Andover Consulting

Tuesday, March 31, 2009

How to port applications to IPv6

struct sockaddr_in6 {
  sa_family_t sin6_family; /* AF_INET6 */
  in_port_t sin6_port; /* Transport layer port # */
  uint32_t sin6_flowinfo; /* IPv6 flow information */
  struct in6_addr sin6_addr; /* IPv6 address */
  uint32_t sin6_scope_id; /* IPv6 scope-id */
};

Eva M. Castro has done a wonferful job with her porting  to IPv6 article.

Read and Enjoy.