<commit_before>= hw #4: CIDR

== problem 1

Given the class B network address 128.10 will be divided into subnets.

.Compute
a. the minimum number of bits necessary to obtain the number of subnets required
b. the maximum number of hosts in each subnet
c. the subnet mask, and
d. write the dotted decimal address

[cols=7, options="header"]
.Given Networks
|===
| Max # Of Subnets
| (a) Min # Of Subnet Bits | (b) Max # Of Hosts per Subnet | (c) Subnet Mask
| (given) Subnet # | (given) Host #
| (d) Dotted Decimal IP Address

| 55   | TODO(a) | TODO(b) | TODO(c) | 51  | 121  | TODO(d)
| 55   | TODO(a) | TODO(b) | TODO(c) | 42  | 867  | TODO(d)
| 121  | TODO(a) | TODO(b) | TODO(c) | 115 | 246  | TODO(d)
| 121  | TODO(a) | TODO(b) | TODO(c) | 97  | 443  | TODO(d)
| 26   | TODO(a) | TODO(b) | TODO(c) | 19  | 237  | TODO(d)
| 26   | TODO(a) | TODO(b) | TODO(c) | 25  | 1397 | TODO(d)
| 261  | TODO(a) | TODO(b) | TODO(c) | 227 | 86   | TODO(d)
| 261  | TODO(a) | TODO(b) | TODO(c) | 259 | 49   | TODO(d)
| 529  | TODO(a) | TODO(b) | TODO(c) | 519 | 33   | TODO(d)
| 529  | TODO(a) | TODO(b) | TODO(c) | 510 | 59   | TODO(d)
|===


== problem 2

Given the subnet mask associated with each of the following IP addresses,

.compute
a. the network Number
b. subnet Number
c. the host Number

NOTE: All your answers must be in decimal (Base 10).

[cols=5, options="header"]
.Given Networks
|===
| IP Address | Subnet Mask
| (a) Network Number | (a) Subnet Number | (c) Host Number

|   9.201.195. 84 | 255.255.240.0 | TODO(a) | TODO(b) | TODO(c)
| 128. 10.189.215 | 255.255.248.0 | TODO(a) | TODO(b) | TODO(c)
| 135. 21.243. 82 | 255.255.224.0 | TODO(a) | TODO(b) | TODO(c)
|  75.149.205. 61 | 255.255.192.0 | TODO(a) | TODO(b) | TODO(c)
|   192.168.127.12 | 255.255.252.0 | TODO(a) | TODO(b) | TODO(c)

|===
<commit_msg>noop: tabulate max integer count given some number of bits<commit_after>= hw #4: CIDR

== problem 1

Given the class B network address 128.10 will be divided into subnets.

.Compute
a. the minimum number of bits necessary to obtain the number of subnets required
b. the maximum number of hosts in each subnet
c. the subnet mask, and
d. write the dotted decimal address

[cols=7, options="header"]
.Given Networks
|===
| Max # Of Subnets
| (a) Min # Of Subnet Bits | (b) Max # Of Hosts per Subnet | (c) Subnet Mask
| (given) Subnet # | (given) Host #
| (d) Dotted Decimal IP Address

| 55   | TODO(a) | TODO(b) | TODO(c) | 51  | 121  | TODO(d)
| 55   | TODO(a) | TODO(b) | TODO(c) | 42  | 867  | TODO(d)
| 121  | TODO(a) | TODO(b) | TODO(c) | 115 | 246  | TODO(d)
| 121  | TODO(a) | TODO(b) | TODO(c) | 97  | 443  | TODO(d)
| 26   | TODO(a) | TODO(b) | TODO(c) | 19  | 237  | TODO(d)
| 26   | TODO(a) | TODO(b) | TODO(c) | 25  | 1397 | TODO(d)
| 261  | TODO(a) | TODO(b) | TODO(c) | 227 | 86   | TODO(d)
| 261  | TODO(a) | TODO(b) | TODO(c) | 259 | 49   | TODO(d)
| 529  | TODO(a) | TODO(b) | TODO(c) | 519 | 33   | TODO(d)
| 529  | TODO(a) | TODO(b) | TODO(c) | 510 | 59   | TODO(d)
|===


== problem 2

Given the subnet mask associated with each of the following IP addresses,

.compute
a. the network Number
b. subnet Number
c. the host Number

NOTE: All your answers must be in decimal (Base 10).

[cols=5, options="header"]
.Given Networks
|===
| IP Address | Subnet Mask
| (a) Network Number | (a) Subnet Number | (c) Host Number

|   9.201.195. 84 | 255.255.240.0 | TODO(a) | TODO(b) | TODO(c)
| 128. 10.189.215 | 255.255.248.0 | TODO(a) | TODO(b) | TODO(c)
| 135. 21.243. 82 | 255.255.224.0 | TODO(a) | TODO(b) | TODO(c)
|  75.149.205. 61 | 255.255.192.0 | TODO(a) | TODO(b) | TODO(c)
|   192.168.127.12 | 255.255.252.0 | TODO(a) | TODO(b) | TODO(c)
|===


.bit affordance of integers
[cols=3, options="header"]
|===
| no.bits | top  | highest integer
| 1       | 2^0  |          1
| 2       | 2^1  |          3
| 3       | 2^2  |          7
| 4       | 2^3  |         15
| 5       | 2^4  |         31
| 6       | 2^5  |         63
| 7       | 2^6  |        127
| 8       | 2^7  |        255
| 9       | 2^8  |        511
| 10      | 2^9  |       1023
| 11      | 2^10 |       2047
| 12      | 2^11 |       4095
| 13      | 2^12 |       8191
| 14      | 2^13 |      16383
| 15      | 2^14 |      32767
| 16      | 2^15 |      65535
| 17      | 2^16 |     131071
| 18      | 2^17 |     262143
| 19      | 2^18 |     524287
| 20      | 2^19 |    1048575
| 21      | 2^20 |    2097151
| 22      | 2^21 |    4194303
| 23      | 2^22 |    8388607
| 24      | 2^23 |   16777215
| 25      | 2^24 |   33554431
| 26      | 2^25 |   67108863
| 27      | 2^26 |  134217727
| 28      | 2^27 |  268435455
| 29      | 2^28 |  536870911
| 30      | 2^29 | 1073741823
| 31      | 2^30 | 2147483647
| 32      | 2^31 | 4294967295
|===

{'fraction_non_alphanumeric': 0.17018135807676085, 'fraction_numerical': 0.14761703922395614, 'mean_word_length': 2.29375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1288438', 'n_tokens_mistral': 2490, 'n_tokens_neox': 1937, 'n_words': 587}