Chapterبەش 5 · Lectureوانە 5.3

Address Classes, and Why CIDR Replaced Themپۆلەکانی ناونیشانی IP و بۆچی CIDR جێگەیانی گرتەوە

From 1981 to 1993 the first bits of an IPv4 address fixed its class: A, B and C for hosts with the default masks /8, /16 and /24, D for multicast and E reserved. Learn the first-octet ranges and leading bits, count the networks and hosts of each class with 2H−22^H - 2, sort addresses into classful networks, see why fixed sizes wasted addresses — and how CIDR, with a prefix length such as /20, replaced classes in 1993.

لە ⁦1981⁩ تا ⁦1993⁩ یەکەم ناونیشانێکی پۆلەکەیان دیاری دەکرد: A، B و C بۆ بە بنەڕەتیی /8، /16 و /24، D بۆ و E تەرخانکراو. مەوداکانی یەکەم و پێشەوە فێر ببە، و هەر پۆلێک بە 2H−22^H - 2 بژمێرە، ناونیشانەکان بەپێی پۆلدار ڕیز بکە و ببینە بۆچی قەبارە جێگیرەکان ناونیشانیان بەفیڕۆ دەدا — و چۆن بە وەک /20 لە ⁦1993⁩ـدا جێگەی پۆلەکانی گرتەوە.

19 min read20 خولەک خوێندنەوە · 16 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Name the five IPv4 classes from the first octet or the leading bits, and say what classes D and E are for.
  • Give the network part, host part and default mask of classes A, B and C, and count their networks and hosts with 2H−22^H - 2.
  • Group addresses into classful networks and find each network ID and broadcast address.
  • Explain why classful addressing wasted addresses and how CIDR replaced it in 1993.
  • Compare classful and classless addressing, and recognise where classes still appear today.
  • پێنج پۆلەکەی لە یەکەم یان پێشەوە بناسیتەوە و بڵێیت پۆلەکانی D و E بۆ چین.
  • ، و بنەڕەتیی پۆلەکانی A، B و C بڵێیت و و بە 2H−22^H - 2 بژمێریت.
  • ناونیشانەکان بەپێی پۆلدار ڕیز بکەیت و و هەریەکەیان بدۆزیتەوە.
  • ڕوونی بکەیتەوە بۆچی ناونیشانی بەفیڕۆ دەدا و چۆن لە ⁦1993⁩ـدا جێگەی گرتەوە.
  • و ناونیشانکردنی بێ‌پۆل بەراورد بکەیت و بزانیت پۆلەکان ئەمڕۆ لە کوێ دەردەکەون.

Two ways to split an address: classes and CIDRدوو ڕێگە بۆ دابەشکردنی ناونیشان: پۆلەکان و CIDR

Every IPv4 address has a network part and a host part (IPv4 Addresses in Depth). But where exactly is the border between the two? The Internet has answered this question in two ways. From 1981 the class of the address decided: its first bits told every router how long the network part was. Since 1993 the Internet has been classless: the border is written next to the address as a prefix length, for example /24. This system is called CIDR.

هەموو ناونیشانێکی و هەیە (ناونیشانەکانی IPv4 بە وردی). بەڵام سنووری نێوان ئەم دوو بەشە ڕێک لە کوێدایە؟ بە دوو ڕێگە وەڵامی ئەم پرسیارەی داوەتەوە. لە ⁦1981⁩ـەوە پۆلی ناونیشانەکە بڕیاری دەدا: یەکەم ناونیشانەکە بە هەموو دەگوت چەند درێژە. لە ⁦1993⁩ـەوە بێ‌پۆلە: سنوورەکە لە تەنیشت ناونیشانەکەوە وەک دەنووسرێت، بۆ نموونە /24. ناوی ئەم سیستەمە .

Classes are history, but you still meet them: exam questions use them, programs suggest a mask from them, and the private address ranges were described with them. This lesson shows the five classes, why they wasted addresses, and how CIDR replaced them.

پۆلەکان بوونەتە مێژوو، بەڵام هێشتا تووشیان دەبیت: پرسیارەکانی تاقیکردنەوە بەکاریان دەهێنن، بەرنامەکان لە ڕووی پۆلەوە پێشنیار دەکەن و مەوداکانی بە پۆل وەسف کران. ئەم وانەیە پێنج پۆلەکە، هۆی بەفیڕۆچوونی ناونیشانەکان و چۆنیەتی جێگرتنەوەیان بە نیشان دەدات.

A timeline with six dates. A warm band, ‘Classful era: the first bits fix the mask’, covers 1981 (RFC 791: classes A, B, C — first bits = class), 1985 (RFC 950: subnet masks, to split a network) and 1989 (RFC 1112: class D multicast, class E reserved). A green band, ‘Classless era (CIDR): you write the /n’, covers 1993 (RFC 1518/1519: CIDR, any prefix length), 1996 (RFC 1918: private ranges — 1 A, 16 B, 256 C networks) and 2006 (RFC 4632: today's CIDR rules, replacing RFC 1519). Note: since 1993 the Internet has been classless; classes survive as names for the default masks.هێڵێکی کات بە شەش مێژووەوە. پەڕەیەکی پرتەقاڵی، ‘سەردەمی پۆلدار: بیتەکانی سەرەتا ماسکی ژێرڕایەڵەکە دیاری دەکەن’، 1981 (RFC 791: پۆلەکانی A، B و C)، 1985 (RFC 950: ماسکی ژێرڕایەڵە بۆ دابەشکردنی ڕایەڵە) و 1989 (RFC 1112: پۆلی D بۆ فرەپەخش، پۆلی E تەرخانکراو) دەگرێتەوە. پەڕەیەکی سەوز، ‘سەردەمی بێ‌پۆل (CIDR)’، 1993 (RFC 1518/1519: CIDR، هەر درێژییەکی پێشگر)، 1996 (RFC 1918: مەوداکانی تایبەت — 1 ڕایەڵەی A، 16 B، 256 C) و 2006 (RFC 4632: یاساکانی ئەمڕۆی CIDR لە جیاتی RFC 1519) دەگرێتەوە. تێبینی: لە 1993ـەوە ئینتەرنێت بێ‌پۆلە.
Twelve years of classes, more than thirty years of CIDR.دوازدە ساڵ پۆل، زیاتر لە سی ساڵ .CêIT

Five classes, told by the first octetپێنج پۆل کە هەشتەی یەکەم دیاریان دەکات

In the classful system the first octet — the number before the first dot — tells you the class. Classes A, B and C hold unicast addresses for ordinary hosts: class A was meant for very large networks, class B for medium ones and class C for small ones. Class D is for multicast: one packet sent to a group of hosts. Class E is reserved and is never given to hosts.

لە سیستەمی پۆلداردا یەکەم — ئەو ژمارەیەی پێش یەکەم خاڵ — پۆلەکەت پێ دەڵێت. پۆلەکانی A، B و C ناونیشانی بۆ ئاسایی هەڵدەگرن: پۆلی A بۆ زۆر گەورە بوو، پۆلی B بۆ مامناوەند و پۆلی C بۆ بچووک. پۆلی D بۆ : یەک کە بۆ گرووپێک دەنێردرێت. پۆلی E تەرخانکراوە و هەرگیز نادرێت بە .

Two first octets are missing from class A. 0 means “this network” (the block 0.0.0.0/8), and 127 is the block of loopback addresses (127.0.0.0/8): 127.0.0.1 is your own computer, also called . That is why class A runs from 1 to 126 and class B starts at 128. If you wonder what happened to 127, between A and B: it was kept for loopback.

دوو ژمارە لە سەرەتای پۆلی A دیار نین. 0 واتە «ئەم » (بلۆکی ⁦0.0.0.0/8⁩) و ⁦127⁩ بلۆکی ⁦(127.0.0.0/8): 127.0.0.1⁩ خۆتە، کە پێی دەگوترێت . بۆیە پۆلی A لە 1ـەوە تا ⁦126⁩ دەڕوات و پۆلی B لە ⁦128⁩ـەوە دەست پێ دەکات. ئەگەر پرسیارت کرد «ئەی ⁦127⁩، لە نێوان A و B، چی لێ هات؟» وەڵامەکە ئەمەیە: بۆ هەڵگیرا.

A bar for the first octet from 0 to 255, divided into five bands: A from 0 to 127 (half the bar), B from 128 to 191, C from 192 to 223, D from 224 to 239 and E from 240 to 255. Two marks on band A: 0 = ‘this network’ and 127 = loopback (127.0.0.1). Five cards below: class A, 1–126, unicast, large, /8 255.0.0.0; class B, 128–191, unicast, medium, /16 255.255.0.0; class C, 192–223, unicast, small, /24 255.255.255.0; class D, 224–239, multicast, one-to-group; class E, 240–255, reserved, not for hosts.شریتێک بۆ هەشتەی یەکەم لە 0 تا 255، بە پێنج بەش: A لە 0 تا 127 (نیوەی شریتەکە)، B لە 128 تا 191، C لە 192 تا 223، D لە 224 تا 239 و E لە 240 تا 255. دوو نیشانە لەسەر بەشی A: 0 = ‘ئەم ڕایەڵە’ و 127 = ناونیشانی خۆگەڕانەوە (127.0.0.1). پێنج کارت لە خوارەوە: پۆلی A، 1–126، تاکپەخش، گەورە، /8 255.0.0.0؛ پۆلی B، 128–191، تاکپەخش، مامناوەند، /16 255.255.0.0؛ پۆلی C، 192–223، تاکپەخش، بچووک، /24 255.255.255.0؛ پۆلی D، 224–239، فرەپەخش، یەک بۆ گرووپێک؛ پۆلی E، 240–255، تەرخانکراو، بۆ میوانگر نییە.
Read the first octet and you know the old class. یەکەم بخوێنەوە، پۆلە کۆنەکە دەزانیت.CêIT

The leading bits behind the bordersبیتەکانی پێشەوە لە پشت سنوورەکان

Why do the borders fall at 128, 192, 224 and 240? Write the first octet in binary (Binary to decimal). RFC 791 (1981) fixed the first bit of class A at 0, the first two bits of class B at 10 and the first three bits of class C at 110. RFC 1112 (1989) added 1110 for class D and 1111 for class E. The other bits are free. So class A received half of all IPv4 addresses, class B a quarter, class C an eighth, and D and E a sixteenth each.

بۆچی سنوورەکان دەکەونە سەر ⁦128⁩، ⁦192⁩، ⁦224⁩ و ⁦240⁩؟ یەکەم بە بنووسە (لە دووانییەوە بۆ دەیی). ⁦RFC 791 (1981)⁩ یەکەم پۆلی A بە 0 جێگیر کرد، دوو یەکەمی پۆلی B بە ⁦10⁩ و سێ یەکەمی پۆلی C بە ⁦110⁩. ⁦RFC 1112 (1989)⁩ ⁦1110⁩ـی بۆ پۆلی D و ⁦1111⁩ـی بۆ پۆلی E زیاد کرد. تر ئازادن. بۆیە پۆلی A نیوەی هەموو ناونیشانەکانی وەرگرت، پۆلی B چارەکێک، پۆلی C هەشتیەک و D و E هەریەکەیان شانزەیەک.

A memory trick: count the 1s before the first 0. No 1 → A, one → B, two → C, three → D, four → E. And the border values are 10000000 = 128, 11000000 = 192, 11100000 = 224 and 11110000 = 240 — numbers you will meet again as mask values.

فێڵێکی بیرهێنانەوە: ئەو 1ـانە بژمێرە کە پێش یەکەم 0 دێن. هیچ ← A، یەک ← B، دوو ← C، سێ ← D، چوار ← E. بەهای سنوورەکانیش ئەمانەن: ⁦10000000 = 128⁩، ⁦11000000 = 192⁩، ⁦11100000 = 224⁩ و ⁦11110000 = 240⁩ — ژمارەگەلێک کە دیسان وەک بەهاکانی ماسکی ژێرڕایەڵە دەیانبینیتەوە.

A table with five rows. Class A: first 8 bits 0xxxxxxx, first octet 0–127, half of all addresses. Class B: 10xxxxxx, 128–191, a quarter. Class C: 110xxxxx, 192–223, an eighth. Class D: 1110xxxx, 224–239, a sixteenth. Class E: 1111xxxx, 240–255, a sixteenth. The fixed bits are coloured; x means 0 or 1. Footnote: count the 1s before the first 0 — none A, one B, two C, three D, four E.خشتەیەک بە پێنج ڕیز. پۆلی A: یەکەم 8 بیت 0xxxxxxx، هەشتەی یەکەم 0–127، نیوەی هەموو ناونیشانەکان. پۆلی B: 10xxxxxx، 128–191، چارەکێک. پۆلی C: 110xxxxx، 192–223، هەشتیەک. پۆلی D: 1110xxxx، 224–239، شانزەیەک. پۆلی E: 1111xxxx، 240–255، شانزەیەک. بیتی جێگیر ڕەنگکراون؛ x واتە 0 یان 1. تێبینی: 1ـەکانی پێش یەکەم 0 بژمێرە — هیچ A، یەک B، دوو C، سێ D، چوار E.
The fixed leading bits cut the address space in halves: A, then B, then C, then D and E. جێگیری پێشەوە کۆی ناونیشانەکان نیوە نیوە دابەش دەکەن: A، پاشان B، پاشان C، پاشان D و E.CêIT

Network part, host part and the default maskبەشی ڕایەڵە، بەشی میوانگر و ماسکی ژێرڕایەڵەی بنەڕەتی

The class also fixed where the network part ends. Class A: the first octet is the network and the other three octets are the host (8 + 24 bits). Class B: two octets and two octets (16 + 16). Class C: three octets for the network and one for the host (24 + 8). Addresses in the same network have the same network part and different host parts.

پۆلەکە ئەوەشی دیاری دەکرد کە لە کوێ کۆتایی دێت. پۆلی A: یەکەم و سێ تر (⁦8 + 24⁩ ). پۆلی B: دوو و دوو ⁦(16 + 16)⁩. پۆلی C: سێ بۆ و یەکێک بۆ ⁦(24 + 8)⁩. ناونیشانەکانی ناو یەک وەک یەکە و جیاوازە.

The default mask shows the same split: 255 for each network octet and 0 for each host octet. Class A: 255.0.0.0 (/8). Class B: 255.255.0.0 (/16). Class C: 255.255.255.0 (/24). For example, the class A network 10.0.0.0 has 8 network bits and 24 host bits, so its mask in binary is 11111111 00000000 00000000 00000000. That is also why Packet Tracer shows /24 next to a class C address such as 192.168.1.10.

بنەڕەتی هەمان دابەشکردن نیشان دەدات: ⁦255⁩ بۆ هەر و 0 بۆ هەر . پۆلی ⁦A: 255.0.0.0⁩ (/8). پۆلی ⁦B: 255.255.0.0⁩ (/16). پۆلی ⁦C: 255.255.255.0⁩ (/24). بۆ نموونە، ⁦10.0.0.0⁩ لە پۆلی A هەشت و ⁦24⁩ هەیە، بۆیە بە دەبێتە 11111111 00000000 00000000 00000000. هەر بۆیە Packet Tracer لە تەنیشت ناونیشانێکی پۆلی C وەک ⁦192.168.1.10⁩ /24 نیشان دەدات.

Three rows of four octet boxes. Class A: 10 | 0 | 0 | 0 with the first box green (network part) and three orange (host part); default mask 255.0.0.0, /8, 8 network bits and 24 host bits. Class B: 172 | 16 | 0 | 0 with two green and two orange boxes; 255.255.0.0, /16, 16 and 16 bits. Class C: 192 | 168 | 1 | 0 with three green and one orange; 255.255.255.0, /24, 24 and 8 bits.سێ ڕیز، هەریەکە چوار خانەی هەشتە. پۆلی A: 10 | 0 | 0 | 0، خانەی یەکەم سەوز (بەشی ڕایەڵە) و سێیان پرتەقاڵی (بەشی میوانگر)؛ ماسکی ژێرڕایەڵەی بنەڕەتی 255.0.0.0، /8، 8 بیتی ڕایەڵە و 24 بیتی میوانگر. پۆلی B: 172 | 16 | 0 | 0، دوو سەوز و دوو پرتەقاڵی؛ 255.255.0.0، /16، 16 و 16 بیت. پۆلی C: 192 | 168 | 1 | 0، سێ سەوز و یەک پرتەقاڵی؛ 255.255.255.0، /24، 24 و 8 بیت.
Green octets name the network, orange octets name the host; the default mask has 255 over the green ones. سەوز ناوی و پرتەقاڵییەکان ناوی دیاری دەکەن؛ بنەڕەتی لە سەر سەوزەکان ⁦255⁩ـی هەیە.CêIT

How many hosts fit in one network?چەند میوانگر لە یەک ڕایەڵەدا جێ دەبنەوە؟

With H host bits there are 2H2^H different host parts. Two of them never go to a host: if all host bits are 0, the address is the network ID; if all are 1, it is the broadcast address. So every classful network had 2H−22^H - 2 usable host addresses. A host is any device that uses an IP address: a PC, a phone, a printer or a router interface.

بە H 2H2^H جیاواز هەیە. دوانیان هەرگیز نادرێن بە : ئەگەر هەموو 0 بن، ناونیشانەکە ؛ ئەگەر هەموویان 1 بن، . بۆیە هەر پۆلدار 2H−22^H - 2 ناونیشانی بەکارهاتووی بۆ هەبوو. هەر ئامێرێکە کە بەکار بهێنێت: ، مۆبایل، یان .

A:  224−2=16 777 214B:  216−2=65 534C:  28−2=254\begin{aligned} A&:\; 2^{24}-2 = 16\,777\,214 \\ B&:\; 2^{16}-2 = 65\,534 \\ C&:\; 2^{8}-2 = 254 \end{aligned}

Usable hosts in one network of classes A, B and C (H = 24, 16 and 8 host bits).

بەکارهاتوو لە یەک پۆلەکانی A، B و C، کە بە ڕیز ⁦24⁩، ⁦16⁩ و 8 هەیە.

The host part of 192.168.1.0/24 as six boxes: 192.168.1.0 = 00000000 = network ID (blue); 192.168.1.1 = 00000001 = first host; 192.168.1.2 = 00000010 = host; …; 192.168.1.254 = 11111110 = last host; 192.168.1.255 = 11111111 = broadcast (orange). A bracket under the green boxes: 254 usable host addresses. Note: all host bits 0 = the network itself, all host bits 1 = everyone on it; neither goes to a host.بەشی میوانگری 192.168.1.0/24 وەک شەش خانە: 192.168.1.0 = 00000000 = ناسەڕایەڵە (شین)؛ 192.168.1.1 = 00000001 = یەکەم میوانگر؛ 192.168.1.2 = 00000010 = میوانگر؛ …؛ 192.168.1.254 = 11111110 = دوایین میوانگر؛ 192.168.1.255 = 11111111 = ناسەپەخش (پرتەقاڵی). کەوانەیەک لە ژێر خانە سەوزەکان: 254 ناونیشانی بەکارهاتوو بۆ میوانگرەکان.
256 combinations − 2 = 254 hosts.⁦256⁩ دۆخ − ⁦2 = 254⁩ .CêIT

How many networks — and which class for whom?چەند ڕایەڵە — و کام پۆل بۆ کێ؟

To count the networks of a class, count the network bits that are free to change. Class A has 8 network bits, but the first is fixed at 0, so 7 are free: 27=1282^7 = 128. Two are reserved — 0 (“this network”) and 127 (loopback) — which leaves 126. Class B: 16 bits minus 2 fixed bits = 14, so 214=16 3842^{14} = 16\,384. Class C: 24 − 3 = 21, so 221=2 097 1522^{21} = 2\,097\,152. The powers 7, 14 and 21 come from the fixed leading bits.

بۆ ژماردنی پۆلێک، ئەو بژمێرە کە ئازادن بگۆڕێن. پۆلی A هەشت هەیە، بەڵام یەکەمیان بە 0 جێگیرە، بۆیە 7 ئازادن: 27=1282^7 = 128. دوانیان تەرخانکراون — 0 («ئەم ») و ⁦127⁩ () — بۆیە ⁦126⁩ دەمێنێتەوە. پۆلی ⁦B: 16⁩ لابردنی 2 جێگیر = ⁦14⁩، کەواتە 214=16 3842^{14} = 16\,384. پۆلی C: 24−3=2124 - 3 = 21، کەواتە 221=2 097 1522^{21} = 2\,097\,152. 7، ⁦14⁩ و ⁦21⁩ لە جێگیری پێشەوە هاتوون.

Networks and hosts of the three unicast classes و سێ پۆلە
ClassپۆلFree network bits ئازادی Networksژمارەی Host bits Usable hosts per network بەکارهاتوو لە هەر
A7 (8 − 1)1262416,777,214
B14 (16 − 2)16,3841665,534
C21 (24 − 3)2,097,1528254

So which class did an organisation get? It depended on the number of hosts: 100 computers → class C (254). 50,000 computers → class B (65,534). One million computers → only class A was big enough, because a class B network stops at 65,534 hosts.

کەواتە ڕێکخراوێک کام پۆلی وەردەگرت؟ بەپێی ژمارەی بوو: ⁦100⁩ ← پۆلی ⁦C (254). 50,000⁩ ← پۆلی ⁦B (65,534)⁩. ملیۆنێک ← تەنیا پۆلی A بەس بوو، چونکە پۆلی B لە ⁦65,534⁩ دەوەستێت.

Two bar charts on a logarithmic scale (grid lines 1, 10, 100, 1k … 100M). Networks in the class: A 126, B 16,384, C 2,097,152. Usable hosts in each network: A 16,777,214, B 65,534, C 254. Note: class A — 126 giants; class C — two million small networks of 254 hosts.دوو هێڵکاریی ستوونی بە پێوەری لۆگاریتمی (هێڵەکان 1، 10، 100، 1k … 100M). ژمارەی ڕایەڵەکان لە پۆلەکەدا: A 126، B 16,384، C 2,097,152. میوانگری بەکارهاتوو لە هەر ڕایەڵەیەکدا: A 16,777,214، B 65,534، C 254. تێبینی: پۆلی A — 126 زەبەلاح؛ پۆلی C — دوو ملیۆن ڕایەڵەی بچووکی 254 میوانگر.
The classes trade the number of networks against their size.پۆلەکان ژمارەی لە بەرامبەر قەبارەیاندا دادەنێن.CêIT

Which addresses share a network?کام ناونیشانانە ڕایەڵەیەکیان هاوبەشە؟

To find the classful network of an address, look only at the network octets of its class: one octet for A, two for B, three for C. Same network octets → same network. The network ID keeps the network octets and turns the host octets into 0; the broadcast address turns them into 255. Neither is given to a host: the network ID names the network itself (you will meet it in routing tables), and the broadcast reaches everyone on it.

بۆ دۆزینەوەی پۆلداری ناونیشانێک، تەنیا سەیری پۆلەکەی بکە: یەک بۆ A، دوو بۆ B، سێ بۆ C. وەک یەک ← هەمان . دەهێڵێتەوە و دەکاتە 0؛ دەیانکاتە ⁦255⁩. هیچیان نادرێن بە : ناوی خودی (لە دەیبینیتەوە) و دەگاتە هەموو ئەوانەی لەسەریەتی.

Two computers in different networks cannot talk directly, even when both networks are of the same class: a router must join them. Class A had only 126 such networks — you could draw 126 boxes like the green one below — class B had 16,384 and class C 2,097,152.

دوو لە دوو جیاوازدا ناتوانن ڕاستەوخۆ قسە بکەن، تەنانەت ئەگەر هەردوو لە هەمان پۆلدا بن: دەبێت پێکیان ببەستێتەوە. پۆلی A تەنیا ⁦126⁩ لەم جۆرەی هەبوو — دەتوانیت ⁦126⁩ چوارگۆشە وەک چوارگۆشە سەوزەکەی خوارەوە بکێشیت — پۆلی ⁦B 16,384⁩ و پۆلی ⁦C 2,097,152⁩.

Nine addresses in chips at the top: 10.5.7.10, 172.16.5.7, 192.168.1.5, 10.200.3.3, 172.17.5.7, 192.168.2.5, 172.16.200.12, 192.168.1.77 and 10.11.5.3. Below, five boxes: 10.0.0.0 (class A, /8) holds 10.5.7.10, 10.200.3.3 and 10.11.5.3; 172.16.0.0 (class B, /16) holds 172.16.5.7 and 172.16.200.12; 172.17.0.0 (class B, /16) holds 172.17.5.7; 192.168.1.0 (class C, /24) holds 192.168.1.5 and 192.168.1.77; 192.168.2.0 (class C, /24) holds 192.168.2.5. In each address the network octets are bold. Bottom note: same network octets → same network; network ID: host octets become 0; broadcast: host octets become 255; between two networks you need a router.نۆ ناونیشان لە سەرەوە: 10.5.7.10، 172.16.5.7، 192.168.1.5، 10.200.3.3، 172.17.5.7، 192.168.2.5، 172.16.200.12، 192.168.1.77 و 10.11.5.3. لە خوارەوە پێنج چوارگۆشە: 10.0.0.0 (پۆلی A) 10.5.7.10، 10.200.3.3 و 10.11.5.3 لەخۆ دەگرێت؛ 172.16.0.0 (پۆلی B) 172.16.5.7 و 172.16.200.12؛ 172.17.0.0 (پۆلی B) 172.17.5.7؛ 192.168.1.0 (پۆلی C) 192.168.1.5 و 192.168.1.77؛ 192.168.2.0 (پۆلی C) 192.168.2.5. لە هەر ناونیشانێکدا هەشتەکانی ڕایەڵە تۆخن. تێبینی خوارەوە: هەشتەکانی ڕایەڵە وەک یەک ← هەمان ڕایەڵە؛ ناسەڕایەڵە: هەشتەکانی میوانگر دەبنە 0؛ ناسەپەخش: دەبنە 255؛ لە نێوان دوو ڕایەڵەدا ڕێدۆز پێویستە.
Five classful networks: the class decides how many octets must match.پێنج پۆلدار: پۆلەکە دیاری دەکات چەند دەبێت وەک یەک بن.CêIT

Class D is multicast, class E is reservedپۆلی D بۆ فرەپەخشە، پۆلی E تەرخانکراوە

Class D (224–239) holds multicast group addresses: a packet sent to one of them reaches every host that joined the group, and nobody else (unicast, broadcast and multicast). Routing protocols use them: OSPF routers listen on 224.0.0.5 and RIPv2 routers on 224.0.0.9, while 224.0.0.1 means all systems on this subnet (IANA multicast registry, 2026; why OSPF hellos go to 224.0.0.5).

پۆلی ⁦D (224–239)⁩ ناونیشانی گرووپەکانی هەڵدەگرێت: کە بۆ یەکێکیان بنێردرێت دەگاتە هەموو ئەو کە چوونەتە ناو گرووپەکەوە و بۆ کەسی تر ناچێت (تاکپەخش، پەخشکردن و فرەپەخش). بەکاریان دەهێنن: گوێ لە ⁦224.0.0.5⁩ دەگرن و ⁦RIPv2⁩ لە ⁦224.0.0.9⁩، ⁦224.0.0.1⁩ـیش واتە هەموو سیستەمەکانی سەر ئەم (تۆماری IANA، ⁦2026⁩؛ بۆچی پاکێتەکانی سڵاوی OSPF بۆ ⁦224.0.0.5⁩ دەچن).

Class E (240–255) was set aside for future use in 1989 (RFC 1112), and the IANA registry still lists 240.0.0.0/4 as reserved. The limited broadcast 255.255.255.255 sits at its very end. Classes D and E have no host part and no default mask; they were never given to hosts.

پۆلی ⁦E (240–255)⁩ لە ⁦1989⁩ـدا بۆ بەکارهێنانی داهاتوو هەڵگیرا ⁦(RFC 1112)⁩ و تۆماری IANA هێشتا ⁦240.0.0.0/4⁩ وەک تەرخانکراو دادەنێت. سنووردار، ⁦255.255.255.255⁩، لە کۆتایی ئەودایە. پۆلەکانی D و E نە هەیە، نە بنەڕەتی؛ هەرگیز نەدراون بە .

ClassپۆلFirst octet یەکەمUsed forبەکارهێنانExampleنموونە
D224–239Multicast groupsگرووپەکانی 224.0.0.5 (OSPF)
E240–255Reservedتەرخانکراو255.255.255.255

Why classes failedبۆچی پۆلەکان سەرکەوتوو نەبوون

Classful addressing was inflexible: a network came in only three sizes — 16,777,214, 65,534 or 254 hosts — and all hosts in a classful network used the same mask. Think of a company with 300 hosts. Class C (254) is too small, so it received a class B network: 65,536 addresses, of which 65,234 host addresses were never used — 99.5 %. Small networks wasted addresses, and big networks did not fit.

وشکوبرینگ بوو (inflexible): تەنیا سێ قەبارەی هەبوو — ⁦16,777,214⁩، ⁦65,534⁩ یان ⁦254⁩ — و هەموو ناو پۆلدار هەمان بەکار دەهێنا. کۆمپانیایەک بهێنە پێش چاوت کە ⁦300⁩ هەیە. پۆلی ⁦C (254)⁩ زۆر بچووکە، بۆیە پۆلی Bـی وەردەگرت: ⁦65,536⁩ ناونیشان، کە ⁦65,234⁩ ناونیشانی هەرگیز بەکار نەدەهاتن — ⁦99.5%⁩. بچووک ناونیشانیان بەفیڕۆ دەدا و گەورەش جێیان نەدەبووەوە.

By the early 1990s this caused two crises (RFC 4632): the class B networks were running out, and the routing tables of Internet routers grew faster than routers and people could manage — a company that took several class C networks instead needed one route for each of them.

لە سەرەتای ساڵانی ⁦1990⁩ـدا ئەمە بووە هۆی دوو قەیران ⁦(RFC 4632)⁩: پۆلی B خەریک بوو تەواو دەبوون و لەوە خێراتر گەورە دەبوون کە و خەڵک بتوانن بەڕێوەیان ببەن — کۆمپانیایەک کە لە جیاتی ئەوە چەند پۆلی Cـی وەردەگرت، بۆ هەریەکەیان ڕێگەیەکی جیای پێویست بوو.

Left: a grid of 256 small squares standing for one class B network (65,536 addresses; one square = 256 addresses). Only the first square and a sliver of the second are green: 300 used, 65,234 hosts never used (99.5 %). Middle: a box ‘Why not class C? 254 hosts < 300 — too small’. An arrow points right to the classless choice: a /23 drawn as two large squares of 256 addresses, the first full and a sliver of the second green: 512 addresses, 510 hosts, 300 used, 210 spare for growth — the block fits the need.چەپ: تۆڕێک لە 256 چوارگۆشەی بچووک بۆ یەک ڕایەڵەی پۆلی B (65,536 ناونیشان؛ هەر چوارگۆشەیەک = 256 ناونیشان). تەنیا چوارگۆشەی یەکەم و پارچەیەکی کەمی دووەم سەوزن: 300 بەکارهاتوو، 65,234 میوانگر هەرگیز بەکار نایەن (99.5%). ناوەڕاست: ‘بۆچی پۆلی C نا؟ 254 میوانگر، کەمترە لە 300 — زۆر بچووکە’. تیرێک بۆ ڕاست، بۆ هەڵبژاردنی بێ‌پۆل: بلۆکێکی /23 وەک دوو چوارگۆشەی گەورەی 256 ناونیشانی: 512 ناونیشان، 510 میوانگر، 300 بەکارهاتوو، 210 بۆ گەشەکردن.
Classful: 99.5 % wasted. Classless: a block of the right size.پۆلدار: ⁦99.5%⁩ بەفیڕۆ. بێ‌پۆل: بلۆکێکی قەبارە گونجاو.CêIT

CIDR: a prefix of any lengthCIDR: پێشگرێک بە هەر درێژییەک

In September 1993, RFC 1518 and RFC 1519 introduced CIDR, Classless Inter-Domain Routing; today's rules are RFC 4632 (2006). The network part can now have any length, written after the address: 192.168.1.0/24 means that the first 24 bits (192.168.1) are the network and the last 8 bits are the host. Inter-domain means between domains: between the networks of different organisations, as in routing between ISPs.

لە ئەیلوولی ⁦1993⁩ـدا دوو RFC، ⁦1518⁩ و ⁦1519⁩، هێنایانە ئاراوە (Classless Inter-Domain Routing، واتە بێ‌پۆل لە نێوان پاوانەکاندا)؛ یاساکانی ئەمڕۆ ⁦RFC 4632⁩ـن ⁦(2006)⁩. ئێستا دەتوانێت هەر درێژییەکی هەبێت و لە دوای ناونیشانەکەوە دەنووسرێت: ⁦192.168.1.0/24⁩ واتە ⁦24⁩ یەکەم ⁦(192.168.1)⁩ و 8 کۆتایی . «لە نێوان پاوانەکاندا» واتە لە نێوان ڕێکخراوە جیاوازەکاندا، وەک نێوان .

Each extra network bit halves the block and each bit less doubles it, so an organisation can get exactly the size it needs: the company with 300 hosts gets a /23 (510 hosts) instead of a whole class B. The animation starts with 172.16.0.0/16 and moves to /20, /24 and /23.

هەر زیاتری بلۆکەکە نیوە دەکات و هەر کەمتر دوو هێندەی دەکات، بۆیە ڕێکخراوێک دەتوانێت ڕێک ئەو قەبارەیە وەربگرێت کە پێویستیەتی: کۆمپانیاکەی ⁦300⁩ بلۆکێکی /23 (⁦510⁩ ) وەردەگرێت لە جیاتی هەموو پۆلی B. وێنە جووڵاوەکە لە ⁦172.16.0.0/16⁩ دەست پێ دەکات و دەچێتە سەر /20، /24 و /23.

Animation in four steps. A slider for the prefix length runs from /8 to /32 above a row of 32 bits (network bits green, host bits orange) and a grid of 256 squares that stands for 172.16.0.0/16, one square for each /24. 1: /16 — mask 255.255.0.0, 65,536 addresses (65,534 hosts), 172.16.0.0 to 172.16.255.255; the whole grid is coloured. 2: /20 — 255.255.240.0, 4,096 addresses (4,094 hosts), up to 172.16.15.255; one row of 16 squares. 3: /24 — 255.255.255.0, 256 addresses (254 hosts), up to 172.16.0.255; one square. 4: /23 — 255.255.254.0, 512 addresses (510 hosts), up to 172.16.1.255; two squares, the size for the 300-host company.
Animation in four steps. A slider for the prefix length runs from /8 to /32 above a row of 32 bits (network bits green, host bits orange) and a grid of 256 squares that stands for 172.16.0.0/16, one square for each /24. 1: /16 — mask 255.255.0.0, 65,536 addresses (65,534 hosts), 172.16.0.0 to 172.16.255.255; the whole grid is coloured. 2: /20 — 255.255.240.0, 4,096 addresses (4,094 hosts), up to 172.16.15.255; one row of 16 squares. 3: /24 — 255.255.255.0, 256 addresses (254 hosts), up to 172.16.0.255; one square. 4: /23 — 255.255.254.0, 512 addresses (510 hosts), up to 172.16.1.255; two squares, the size for the 300-host company.
Every extra bit halves the block: CIDR sizes fit the need.هەر زیاتر بلۆکەکە نیوە دەکات: قەبارەکانی لەگەڵ پێویستیدا دەگونجێن.CêIT

CIDR: a prefix of any lengthCIDR: پێشگرێک بە هەر درێژییەک

Reading a CIDR addressخوێندنەوەی ناونیشانێکی CIDR

To write an address in CIDR notation, count the 1s of its mask. Take 10.217.123.7 with the mask 255.255.240.0: the mask has 8 + 8 + 4 + 0 = 20 ones, so you write 10.217.123.7/20. Subnet Masks shows every conversion step, and the next lessons show how to find the network this address belongs to.

بۆ نووسینی ناونیشانێک بە شێوەی ، 1ـەکانی بژمێرە. ⁦10.217.123.7⁩ لەگەڵ ⁦255.255.240.0⁩ وەربگرە: 8+8+4+0=208 + 8 + 4 + 0 = 20 یەکی تێدایە، بۆیە دەنووسیت ⁦10.217.123.7/20⁩. ماسکی ژێرڕایەڵە هەموو هەنگاوەکانی گۆڕین نیشان دەدات و وانەکانی دواتر نیشانی دەدەن ئەم ناونیشانە سەر بە کام .

11111111⏟8.11111111⏟8.11110000⏟4.00000000⏟0  ⇒  /20\underbrace{11111111}_{8}.\underbrace{11111111}_{8}.\underbrace{11110000}_{4}.\underbrace{00000000}_{0} \;\Rightarrow\; /20

255.255.240.0 has 20 ones, so its prefix length is 20.

⁦255.255.240.0⁩ بیست یەکی تێدایە، بۆیە ⁦20⁩ـە.

The address 10.217.123.7 and the mask 255.255.240.0 written as 32 bit cells. In the address the first 20 bits are green and the last 12 orange; in the mask the first 20 bits are green 1s and the last 12 are white 0s. Under the octets: 8 + 8 + 4 + 0. Bottom: 20 ones in the mask → write 10.217.123.7/20.ناونیشانی 10.217.123.7 و ماسکی ژێرڕایەڵەی 255.255.240.0 وەک 32 خانەی بیت. لە ناونیشانەکەدا 20 بیتی یەکەم سەوزن و 12ـەکەی کۆتایی پرتەقاڵی؛ لە ماسکی ژێرڕایەڵەدا 20 بیتی یەکەم 1ـی سەوزن و 12ـەکەی کۆتایی 0ـی سپی. لە ژێر هەشتەکاندا: 8 + 8 + 4 + 0. خوارەوە: 20 یەک لە ماسکی ژێرڕایەڵەدا ← بنووسە 10.217.123.7/20.
Count the 1s of the mask: that number goes after the slash.1ـەکانی بژمێرە: ئەو ژمارەیە دوای هێڵە لارەکە دێت.CêIT

Classful and classless side by sideپۆلدار و بێ‌پۆل لە تەنیشت یەکەوە

Classful and classless addressing answer the same question — where does the network part end? — in two ways:

و ناونیشانکردنی بێ‌پۆل وەڵامی هەمان پرسیار دەدەنەوە — لە کوێ کۆتایی دێت؟ — بە دوو ڕێگە:

Classful vs classless addressing و ناونیشانکردنی بێ‌پۆل
PointخاڵClassful (1981–1993)پۆلدار ⁦(1981–1993)⁩Classless, CIDR (since 1993)بێ‌پۆل، (لە ⁦1993⁩ـەوە)
Who decides the network part?کێ دیاری دەکات؟The class, from the first bitsپۆلەکە، لە سەرەتاوەThe prefix length you write (/n)ئەو دەینووسیت ⁦(/n)⁩
SizesقەبارەکانThree fixed sizes: /8, /16, /24سێ قەبارەی جێگیر: /8، /16، /24Any length from /0 to /32هەر درێژییەک لە /0 تا /32
MaskImplied by the first octetلە یەکەمەوە دەزانرێتMust always be givenدەبێت هەمیشە بنووسرێت
Subnets of one network یەک All with the same maskهەموویان بە هەمان Different sizes allowed (VLSM)قەبارەی جیاواز ڕێگەپێدراوە ()
RoutesڕێگەکانOne route per classful networkیەک ڕێگە بۆ هەر پۆلدارMany networks summarised in one routeچەندین لە یەک ڕێگەدا کورت دەکرێنەوە
TodayئەمڕۆHistory; names for the default masksمێژوو؛ ناو بۆ بنەڕەتیHow the Internet worksشێوازی کارکردنی

Two ideas grow out of CIDR and have their own lessons: VLSM splits one network into subnets of different sizes (More Subnetting and VLSM), and route summarisation joins many networks into one route (Summarization and CIDR). Routing protocols are classful or classless in the same way: a classful one sends its routes without masks (classful and classless routing protocols) — RIPv1 is classful, RIPv2 classless (RIP versions).

دوو بیرۆکە لە سەریان هەڵداوە و هەریەکەیان وانەی خۆی هەیە: یەک دەکات بە چەند قەبارە جیاواز (ژێرڕایەڵەسازیی زیاتر و VLSM) و چەندین لە یەک ڕێگەدا کۆ دەکاتەوە (ڕاپوختکردن و CIDR). هەروەها بە هەمان شێوە پۆلدار یان بێ‌پۆلن: پۆلدار ڕێگەکانی بەبێ دەنێرێت (پرۆتۆکۆڵەکانی ڕێدۆزیی پۆلدار و بێ‌پۆل) — ⁦RIPv1⁩ پۆلدارە و ⁦RIPv2⁩ بێ‌پۆل (وەشانەکانی RIP).

Where you still meet classesلە کوێ هێشتا تووشی پۆلەکان دەبیت

Classes survive in four places. Words: people still say “a class C network” for a /24. Programs: Packet Tracer and Windows fill in the default mask of the class when you type an address — only a suggestion. Private ranges: RFC 1918 (1996) described them in class terms: 10.0.0.0/8 is one class A network, 172.16.0.0/12 is 16 class B networks and 192.168.0.0/16 is 256 class C networks. Old protocols: RIP version 1 is classful, so routing lessons meet class borders again: such protocols summarise routes by themselves at the class border (automatic summarization).

پۆلەکان لە چوار شوێندا ماونەتەوە. وشەکان: خەڵک هێشتا بە /24 دەڵێن « پۆلی C». بەرنامەکان: Packet Tracer و Windows کاتێک ناونیشانێک دەنووسیت بنەڕەتیی پۆلەکە پڕ دەکەنەوە — تەنیا پێشنیارێکە. مەوداکانی تایبەت: ⁦RFC 1918 (1996)⁩ بە زمانی پۆل وەسفی کردن: ⁦10.0.0.0/8⁩ یەک پۆلی Aـیە، ⁦172.16.0.0/12⁩ شازدە پۆلی B و ⁦192.168.0.0/16⁩ دووسەد و پەنجا و شەش پۆلی C. کۆن: RIP وەشانی 1 پۆلدارە، بۆیە وانەکانی دیسان تووشی سنووری پۆلەکان دەبنەوە: ئەم لە سنووری پۆلدا خۆیان ڕێگەکان کورت دەکەنەوە (ڕاپوختکردنی خۆکار).

Left: the IP configuration of a PC with three boxes: IPv4 address 172.16.20.5, subnet mask 255.255.0.0 (highlighted) and default gateway 172.16.20.1; under it: typed 172.16.20.5 → the mask box fills itself. An arrow points to an orange note: a guess from the first octet — 172 is in class B → 255.255.0.0 (/16); it is only a suggestion. Below, a green note: type the mask from your plan — plan 172.16.20.0/24 → type 255.255.255.0; a wrong mask breaks the network.چەپ: ڕێکخستنی IPـی کۆمپیوتەرێک بە سێ خانە: ناونیشانی IPv4 172.16.20.5، ماسکی ژێرڕایەڵە 255.255.0.0 (دیاریکراو) و دەروازەی بنەڕەتی 172.16.20.1؛ لە ژێریدا: نووسرا 172.16.20.5 ← خانەی ماسکی ژێرڕایەڵە خۆی پڕ دەبێتەوە. تیرێک بۆ تێبینییەکی پرتەقاڵی: مەزەندەیەک لە هەشتەی یەکەمەوە — 172 لە پۆلی Bـدایە ← 255.255.0.0 (/16)؛ تەنیا پێشنیارێکە. لە خوارەوە تێبینییەکی سەوز: ماسکی ژێرڕایەڵە لە نەخشەکەتەوە بنووسە — نەخشە 172.16.20.0/24 ← 255.255.255.0 بنووسە؛ ماسکی ژێرڕایەڵەی هەڵە ڕایەڵەکە تێک دەدات.
The program guesses from the class; you decide from the plan.بەرنامەکە لە پۆلەوە مەزەندە دەکات؛ تۆ لە نەخشەوە بڕیار دەدەیت.CêIT

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat is trueڕاستییەکە
Classes are still used to hand out addresses.پۆلەکان هێشتا بۆ دابەشکردنی ناونیشان بەکار دێن.Since 1993 the Internet is classless (CIDR); classes are history.لە ⁦1993⁩ـەوە بێ‌پۆلە ()؛ پۆلەکان مێژوون.
A class B network can hold a million hosts. پۆلی B دەتوانێت ملیۆنێک هەڵبگرێت.At most 65,534 hosts. A million needed class A — today a /12.زۆرترین ⁦65,534⁩ . ملیۆنێک پۆلی Aـی دەویست — ئەمڕۆ /12.
The 2 missing class A networks are its network ID and broadcast.ئەو 2 پۆلی A کە کەم دەکرێنەوە و .They are two reserved blocks: 0.0.0.0/8 (“this network”) and 127.0.0.0/8 (loopback).دوو بلۆکی تەرخانکراون: ⁦0.0.0.0/8⁩ («ئەم ») و ⁦127.0.0.0/8⁩ ().
Classes C and D are the special classes.پۆلەکانی C و D پۆلە تایبەتەکانن.D (multicast) and E (reserved) are special; A, B and C are unicast.D () و E (تەرخانکراو) تایبەتن؛ A، B و C .
The powers 7, 14, 21 come from subtracting “a 255”. 7، ⁦14⁩ و ⁦21⁩ لە لابردنی «⁦255⁩ـێک» هاتوون.They come from the fixed leading bits 0, 10 and 110.لە جێگیری پێشەوەی 0، ⁦10⁩ و ⁦110⁩ هاتوون.
Six addresses with four different first-two-octet pairs make three class B networks.شەش ناونیشان بە چوار جووتی جیاوازی دوو یەکەم سێ پۆلی B دروست دەکەن.Count every pair: an address alone in its network is still a network — four.هەموو جووتێک بژمێرە: ناونیشانێک کە بە تەنیا لە بێت هێشتا — چوار.
In 192.168.1.0/24 the 24 is a “suffix”.لە ⁦192.168.1.0/24⁩ـدا ⁦24⁩ «پاشگر»ە.24 is the prefix length: the number of network bits.⁦24⁩ : ژمارەی .
Find a real network's mask from its class. ڕاستەقینە لە پۆلەکەیەوە دەدۆزرێتەوە.Use the prefix length or mask of the network plan. یان نەخشەی بەکار بهێنە.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانClass quiz: five addressesتاقیکردنەوەی پۆل: پێنج ناونیشان

For each address give its old class, network ID, broadcast address, and first and last usable address, using the default mask of its class: 192.168.1.200, 10.125.130.11, 203.0.113.200, 172.16.0.130 and 172.20.2.4. (The four key numbers are explained in IPv4 Addresses in Depth.)

بۆ هەر ناونیشانێک پۆلە کۆنەکەی، ، و یەکەم و دوایین ناونیشانی بەکارهاتووی بنووسە، بە بنەڕەتیی پۆلەکەی: ⁦192.168.1.200⁩، ⁦10.125.130.11⁩، ⁦203.0.113.200⁩، ⁦172.16.0.130⁩ و ⁦172.20.2.4⁩. (چوار ژمارە سەرەکییەکە لە ناونیشانەکانی IPv4 بە وردی ڕوون کراونەتەوە.)

Show answerوەڵامەکە پیشان بدە
AddressناونیشانClassپۆلNetwork IDBroadcastFirst hostیەکەم Last hostدوایین
192.168.1.200C192.168.1.0192.168.1.255192.168.1.1192.168.1.254
10.125.130.11A10.0.0.010.255.255.25510.0.0.110.255.255.254
203.0.113.200C203.0.113.0203.0.113.255203.0.113.1203.0.113.254
172.16.0.130B172.16.0.0172.16.255.255172.16.0.1172.16.255.254
172.20.2.4B172.20.0.0172.20.255.255172.20.0.1172.20.255.254

Method: find the class from the first octet, keep its network octets, write 0s for the network ID and 255s for the broadcast; the first host is the network ID + 1 and the last host is the broadcast − 1.

ڕێگە: پۆلەکە لە یەکەمەوە بدۆزەوە، بهێڵەوە، بۆ 0 و بۆ ⁦255⁩ بنووسە؛ یەکەم = + 1 و دوایین = − 1.

ExerciseڕاهێنانClass B: count every networkپۆلی B: هەموو ڕایەڵەیەک بژمێرە

Group these class B addresses into networks and give each network ID and broadcast address: 172.16.5.7, 172.20.5.7, 172.18.5.12, 172.16.5.5, 172.31.12.12 and 172.31.12.1.

ئەم ناونیشانانەی پۆلی B بەپێی پۆل بکە و و هەریەکەیان بنووسە: ⁦172.16.5.7⁩، ⁦172.20.5.7⁩، ⁦172.18.5.12⁩، ⁦172.16.5.5⁩، ⁦172.31.12.12⁩ و ⁦172.31.12.1⁩.

Hintئاماژە

Class B: compare the first two octets.

پۆلی B: دوو یەکەم بەراورد بکە.

Show answerوەڵامەکە پیشان بدە
  • 172.16.0.0 (broadcast 172.16.255.255): 172.16.5.7 and 172.16.5.5
  • 172.20.0.0 (broadcast 172.20.255.255): 172.20.5.7
  • 172.18.0.0 (broadcast 172.18.255.255): 172.18.5.12
  • 172.31.0.0 (broadcast 172.31.255.255): 172.31.12.12 and 172.31.12.1
  • ⁦172.16.0.0⁩ ( ⁦172.16.255.255⁩) ئەمانەی تێدایە: ⁦172.16.5.7⁩ و ⁦172.16.5.5⁩
  • ⁦172.20.0.0⁩ ( ⁦172.20.255.255⁩) ئەمانەی تێدایە: ⁦172.20.5.7⁩
  • ⁦172.18.0.0⁩ ( ⁦172.18.255.255⁩) ئەمانەی تێدایە: ⁦172.18.5.12⁩
  • ⁦172.31.0.0⁩ ( ⁦172.31.255.255⁩) ئەمانەی تێدایە: ⁦172.31.12.12⁩ و ⁦172.31.12.1⁩

Six addresses, four networks: two of them hold only one address each. An address alone in its network still makes a network.

شەش ناونیشان، چوار : دوانیان هەریەکە تەنیا یەک ناونیشانیان تێدایە. ناونیشانێک کە بە تەنیا لە بێت هێشتا دروست دەکات.

ExerciseڕاهێنانClass C: three networksپۆلی C: سێ ڕایەڵە

Group these class C addresses into networks: 192.168.1.5, 192.168.2.5, 192.168.1.77, 203.0.113.9, 192.168.2.200 and 203.0.113.130.

ئەم ناونیشانانەی پۆلی C بەپێی پۆل بکە: ⁦192.168.1.5⁩، ⁦192.168.2.5⁩، ⁦192.168.1.77⁩، ⁦203.0.113.9⁩، ⁦192.168.2.200⁩ و ⁦203.0.113.130⁩.

Show answerوەڵامەکە پیشان بدە
  • 192.168.1.0: 192.168.1.5 and 192.168.1.77
  • 192.168.2.0: 192.168.2.5 and 192.168.2.200
  • 203.0.113.0: 203.0.113.9 and 203.0.113.130
  • ⁦192.168.1.0: 192.168.1.5⁩ و ⁦192.168.1.77⁩
  • ⁦192.168.2.0: 192.168.2.5⁩ و ⁦192.168.2.200⁩
  • ⁦203.0.113.0: 203.0.113.9⁩ و ⁦203.0.113.130⁩

Class C compares the first three octets, so 192.168.1 and 192.168.2 are different networks. The broadcast of each is its network ID with 255 at the end.

پۆلی C سێ یەکەم بەراورد دەکات، بۆیە ⁦192.168.1⁩ و ⁦192.168.2⁩ دوو جیاوازن. هەریەکەیان بە ⁦255⁩ لە کۆتاییدا.

ExerciseڕاهێنانFirst octetsهەشتەکانی یەکەم

Which class? An address whose first octet is 15, 126, 127, 150, 191, 200, 223, 239 or 250.

کام پۆل؟ ناونیشانێک کە یەکەمی ⁦15⁩، ⁦126⁩، ⁦127⁩، ⁦150⁩، ⁦191⁩، ⁦200⁩، ⁦223⁩، ⁦239⁩ یان ⁦250⁩ بێت.

Show answerوەڵامەکە پیشان بدە
  • 15 and 126 → A
  • 127 → class A range, but reserved for loopback
  • 150 and 191 → B
  • 200 and 223 → C
  • 239 → D (multicast)
  • 250 → E (reserved)
  • ⁦15⁩ و ⁦126⁩ ← A
  • ⁦127⁩ ← مەودای پۆلی A، بەڵام بۆ تەرخانکراوە
  • ⁦150⁩ و ⁦191⁩ ← B
  • ⁦200⁩ و ⁦223⁩ ← C
  • ⁦239⁩ ← D ()
  • ⁦250⁩ ← E (تەرخانکراو)
ExerciseڕاهێنانExplain: classful vs classlessڕوونکردنەوە: پۆلدار و بێ‌پۆل

Explain the difference between classful and classless addressing in four or five sentences.

جیاوازیی نێوان و ناونیشانکردنی بێ‌پۆل لە چوار یان پێنج ڕستەدا ڕوون بکەرەوە.

Show answerوەڵامەکە پیشان بدە

Both describe how an address is split into a network part and a host part. In classful addressing (1981–1993) the first bits fixed the class, and the class fixed the split: /8, /16 or /24. The sizes could not change, so small networks wasted addresses and large ones did not fit, and every subnet of a network used the same mask. Classless addressing (CIDR, since 1993) ignores the classes: the prefix length written after the address (/n) decides the split, so blocks can have the size that is needed, subnets can have different sizes (VLSM) and many networks can be summarised in one route.

هەردووکیان وەسفی ئەوە دەکەن کە ناونیشانێک چۆن دابەش دەبێت بۆ و . لە ⁦(1981–1993)⁩ سەرەتا پۆلەکەیان دیاری دەکرد و پۆلەکەش دابەشکردنەکەی: /8، /16 یان /24. قەبارەکان نەدەگۆڕان، بۆیە بچووک ناونیشانیان بەفیڕۆ دەدا و گەورەکان جێیان نەدەبووەوە و هەموو یەک هەمان بەکار دەهێنا. ناونیشانکردنی بێ‌پۆل (، لە ⁦1993⁩ـەوە) پۆلەکان پشتگوێ دەخات: ئەو دوای ناونیشانەکە دەنووسرێت دابەشکردنەکە دیاری دەکات، بۆیە بلۆکەکان دەتوانن ئەو قەبارەیەیان هەبێت کە پێویستە، دەتوانن قەبارەی جیاوازیان هەبێت () و چەندین دەتوانن لە یەک ڕێگەدا کورت بکرێنەوە.

ExerciseڕاهێنانChoosing a sizeهەڵبژاردنی قەبارە

Under the class rules, which class fits 100 hosts, 50,000 hosts and 1,000,000 hosts? With CIDR, which prefix length fits 300 hosts?

بەپێی یاساکانی پۆل، کام پۆل بۆ ⁦100⁩، ⁦50,000⁩ و ⁦1,000,000⁩ دەگونجێت؟ بە ، کام بۆ ⁦300⁩ دەگونجێت؟

Show answerوەڵامەکە پیشان بدە
  • 100 → class C (254 hosts)
  • 50,000 → class B (65,534 hosts)
  • 1,000,000 → class A (16,777,214 hosts)
  • 300 → /23: 9 host bits, 29−2=5102^9 - 2 = 510 hosts
  • ⁦100⁩ ← پۆلی C (تا ⁦254⁩ )
  • ⁦50,000⁩ ← پۆلی B (تا ⁦65,534⁩ )
  • ⁦1,000,000⁩ ← پۆلی A (تا ⁦16,777,214⁩ )
  • ⁦300⁩ ← /23: 9 ، 29−2=5102^9 - 2 = 510

Summaryپوختە

  • From 1981 to 1993 the first octet fixed the class: A 1–126, B 128–191, C 192–223, D 224–239 (multicast), E 240–255 (reserved). 0 and 127 are special; 127.0.0.1 is loopback.
  • The leading bits are 0, 10, 110, 1110 and 1111: A gets half of all addresses, B a quarter, C an eighth.
  • Default masks: A 255.0.0.0 (/8), B 255.255.0.0 (/16), C 255.255.255.0 (/24).
  • Hosts per network = 2H−22^H - 2: A 16,777,214, B 65,534, C 254. Networks: A 126, B 16,384, C 2,097,152.
  • Fixed sizes wasted addresses (300 hosts → a class B of 65,534) and filled the routing tables.
  • Since 1993 CIDR (RFC 1518/1519, now RFC 4632) lets the prefix length be anything: address/prefix length, such as 10.217.123.7/20.
  • Classes are vocabulary today: default masks in programs, exam questions, RFC 1918's private ranges and old classful protocols.
  • لە ⁦1981⁩ تا ⁦1993⁩ یەکەم پۆلی دیاری دەکرد: ⁦A 1–126⁩، ⁦B 128–191⁩، ⁦C 192–223⁩، ⁦D 224–239⁩ ()، ⁦E 240–255⁩ (تەرخانکراو). 0 و ⁦127⁩ تایبەتن؛ ⁦127.0.0.1⁩ .
  • پێشەوە 0، ⁦10⁩، ⁦110⁩، ⁦1110⁩ و ⁦1111⁩ـن: A نیوەی هەموو ناونیشانەکان، B چارەکێک و C هەشتیەک وەردەگرن.
  • بنەڕەتی: ⁦A 255.0.0.0 (/8)⁩، ⁦B 255.255.0.0 (/16)⁩، ⁦C 255.255.255.0 (/24)⁩.
  • لە هەر = 2H−22^H - 2: ⁦A 16,777,214⁩، ⁦B 65,534⁩، ⁦C 254⁩. : ⁦A 126⁩، ⁦B 16,384⁩، ⁦C 2,097,152⁩.
  • قەبارە جێگیرەکان ناونیشانیان بەفیڕۆ دەدا (⁦300⁩ ← پۆلی B بە ⁦65,534⁩) و پڕ دەکرد.
  • لە ⁦1993⁩ـەوە (⁦RFC 1518/1519⁩، ئێستا ⁦RFC 4632⁩) ڕێگە دەدات هەر ژمارەیەک بێت: ناونیشان/، وەک ⁦10.217.123.7/20⁩.
  • پۆلەکان ئەمڕۆ تەنیا وشەن: بنەڕەتی لە بەرنامەکاندا، پرسیاری تاقیکردنەوە، مەوداکانی تایبەتی ⁦RFC 1918⁩ و پۆلداری کۆن.
The first-octet ruler again: A 0–127, B 128–191, C 192–223, D 224–239, E 240–255, with 0 = this network and 127 = loopback, and the default masks /8, /16 and /24 for A, B and C.شریتی هەشتەی یەکەم دیسان: A 0–127، B 128–191، C 192–223، D 224–239، E 240–255، لەگەڵ 0 = ئەم ڕایەڵە و 127 = ناونیشانی خۆگەڕانەوە و ماسکی ژێرڕایەڵەی بنەڕەتیی /8، /16 و /24 بۆ A، B و C.
The whole lesson in one picture.هەموو وانەکە لە یەک وێنەدا.CêIT

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Subnet Masks: Binary, Dotted Decimal and Prefixماسکی ژێرڕایەڵە: دووانی، شێوەی دەیی‌خاڵدار و پێشگر

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.