Chapterبەش 4 · Lectureوانە 4.2

Bridges and Switchesپردەکانی ڕایەڵە و سویچەکان

Layer-2 devices read MAC addresses. A bridge joins two segments of a LAN and passes a frame across only when it must: it learns source addresses into its table, then filters, forwards or floods. A switch is a multiport bridge — the ‘hub that learns’ — with a collision domain, full duplex and full bandwidth on every port. Bridge types, why it is called a switch (railway points), store-and-forward and cut-through, hub vs switch and bridge vs switch, managed and layer-3 switches.

ئامێرەکانی چینی 2 دەخوێننەوە. دوو پێکەوە دەبەستێتەوە و تەنیا کاتێک پێویست بێت دەپەڕێنێتەوە: ناونیشانی نێرەرەکان لە خشتەکەیدا فێر دەبێت، پاشان فلتەر دەکات، دەپەڕێنێتەوە یان بۆ هەمووان دەنێرێت. فرەدەرچەیە — ‘ کە فێر دەبێت’ — بە ، و تەواو لەسەر هەموو . جۆرەکانی ، بۆچی پێی دەگوترێت سویچ (ئاڕاستەگۆڕی ئاسنەڕێ)، و ، بەرامبەر و بەرامبەر ، و .

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

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

  • Explain how a bridge joins two segments and decides, with its MAC address table, to filter, forward or flood a frame.
  • Describe transparent learning and the kinds of bridges: simple, transparent, source-route, translational, remote and wireless.
  • Explain why a switch is a multiport bridge, how it learns MAC addresses, and why it is called a switch.
  • Compare store-and-forward and cut-through switching, and explain why switch ports are full duplex without collisions.
  • Compare hubs, bridges and switches, and tell unmanaged, managed and layer-3 switches apart.
  • ڕوونی بکەیتەوە چۆن دوو پێکەوە دەبەستێتەوە و بە بڕیار دەدات فلتەر بکات، بیپەڕێنێتەوە یان بۆ هەمووانی بنێرێت.
  • فێربوونی ڕوون و جۆرەکانی وەسف بکەیت: سادە، ڕوون، ڕێگای سەرچاوە، وەرگێڕ، دوورەدەست و .
  • ڕوونی بکەیتەوە بۆچی فرەدەرچەیە، چۆن فێری دەبێت و بۆچی پێی دەگوترێت .
  • و بەراورد بکەیت و ڕوونی بکەیتەوە بۆچی و نییە.
  • ، و بەراورد بکەیت و نەبەڕێوەبراو، بەڕێوەبراو و چینی 3 لە یەک جیا بکەیتەوە.

Dividing the crowd: from hubs to bridgesدابەشکردنی قەرەباڵغی: لە هەبەکانەوە بۆ پردەکانی ڕایەڵە

On a hub, every frame reaches every computer, and all of them share one collision domain (Repeaters and Hubs). In the 1980s the first fix was to cut the LAN into two segments, each with its own hub, and join them with a bridge. A bridge checks every frame and lets it cross only when its destination is on the other side. Traffic that stays on one side no longer disturbs the other, so each part of the network works more efficiently.

لەسەر ، هەموو دەگاتە هەموو و هەموویان یەک بەش دەکەن (دووپاتەکەرەوەکان و هەبەکان). لە ساڵانی ⁦1980⁩دا یەکەم چارەسەر ئەوە بوو کە بکرێتە دوو — هەریەکەیان بە خۆیەوە — و بە پێکەوە ببەسترێن. هەموو دەپشکنێت و تەنیا کاتێک ڕێگەی دەدات بپەڕێتەوە کە شوێنی مەبەستەکەی لە لای ترە. ئەو هاتوچۆیەی لە یەک لا دەمێنێتەوە ئیتر لای تر تێک نادات، بۆیە هەر بەشێکی باشتر کار دەکات.

Segment 1, with Host A and Host B on a hub, and segment 2, with Host C and Host D on another hub, are joined by a bridge at layer 2. The bridge checks every frame: cross, or stay? Each segment keeps its own traffic: one network, two collision domains.بڕەڕایەڵە 1 (Host A و Host B لەسەر هەبێک) و بڕەڕایەڵە 2 (Host C و Host D لەسەر هەبێکی تر) بە پردێکی ڕایەڵە لە چینی 2دا پێکەوە بەستراون. پردی ڕایەڵەکە هەموو فرەیمێک دەپشکنێت: بپەڕێتەوە یان بمێنێتەوە؟ هەر بڕەڕایەڵەیەک هاتوچۆی خۆی دەپارێزێت: یەک ڕایەڵە، دوو پاوانی پێکدادان.
A bridge splits one crowded LAN into two quieter segments. قەرەباڵغ دەکاتە دوو ئارامتر.CêIT

The bridge: two segments, one networkپردی ڕایەڵە: دوو بڕەڕایەڵە، یەک ڕایەڵە

A bridge does what its name says: it joins two small networks — in practice, two segments of one LAN. The classic bridge has only two ports, one for each side. Think of a road bridge over a river: a car crosses only if it needs to reach the other bank.

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

Three facts follow. Both sides must use the same protocol, for example Ethernet on both. The bridge works at layer 2, the data link layer. And so it forwards frames by MAC address, not by IP address: the two segments stay in the same IP network, because the bridge makes them one network. (A translational bridge, on a later screen, joins two different LAN types and converts the frame format.)

سێ ڕاستی لێرەوە دێن. هەردوو لا دەبێت هەمان بەکار بهێنن، بۆ نموونە لە هەردووکیاندا. لە چینی 2، چینی بەستەری دراوە، کار دەکات. بۆیە بەپێی دەنێرێت، نەک بەپێی : دوو لە هەمان IPـدا دەمێننەوە، چونکە دەیانکاتە یەک . ( وەرگێڕ، کە لە شاشەیەکی دواتردا دێت، دوو جۆری جیاوازی پێکەوە دەبەستێتەوە و فۆرماتی دەگۆڕێت.)

A river with a road bridge. On this side, segment 1, a car whose destination is segment 1 stays where it is. On the bridge, a car for segment 2 crosses, with an arrow to the other side. Bottom right: the network symbol for a bridge, a blue box with an arch.ڕووبارێک بە پردێکی ڕێگاوە. لەم لا، بڕەڕایەڵە 1، ئۆتۆمبێلێک کە شوێنی مەبەستی بڕەڕایەڵە 1ـە لە شوێنی خۆی دەمێنێتەوە. لەسەر پردەکە، ئۆتۆمبێلێک بۆ بڕەڕایەڵە 2 دەپەڕێتەوە، بە تیرێک بەرەو لای تر. خوارەوەی ڕاست: هێمای پردی ڕایەڵە لە هێڵکاریی ڕایەڵەدا، سندووقێکی شین بە کەوانەیەکەوە.
Frames, like cars, cross the bridge only when they must.، وەک ئۆتۆمبێل، تەنیا کاتێک پێویست بێت بە پردەکەدا دەپەڕنەوە.CêIT

How a bridge works: the bridge tableپردی ڕایەڵە چۆن کار دەکات: خشتەی ناونیشانی MAC

Take two segments joined by a bridge: PC1–PC4 on segment 1 (port 1) and PC5–PC8 on segment 2 (port 2). The bridge keeps a bridge table — a MAC address table — that lists which MAC addresses are behind which port. Every frame carries the destination’s MAC address, and the bridge looks it up:

دوو وەربگرە کە بە بەستراون: ⁦PC1⁩ تا ⁦PC4⁩ لەسەر 1 ( ⁦1⁩) و ⁦PC5⁩ تا ⁦PC8⁩ لەسەر 2 ( ⁦2⁩). خشتەیەک دەهێڵێتەوە کە پێی دەگوترێت bridge table — — کە دەڵێت کام لە پشت کام . هەموو شوێنی مەبەست هەڵدەگرێت و لە خشتەکەدا بەدوایدا دەگەڕێت:

  • PC1 → PC2: both are behind port 1, so the bridge does not pass the frame across. It is filtered: it has already reached its segment.
  • PC2 → PC8: PC8 is behind port 2, so the bridge forwards the frame across to segment 2.
  • Destination not yet in the table: the bridge sends the frame out of all its other ports, so that it still arrives. This is flooding.
  • لە ⁦PC1⁩ـەوە بۆ ⁦PC2⁩: هەردووکیان لە پشت 1ـن، بۆیە ناپەڕێنێتەوە. فلتەر دەکرێت: پێشتر گەیشتووەتە خۆی.
  • لە ⁦PC2⁩ـەوە بۆ ⁦PC8⁩: ⁦PC8⁩ لە پشت 2ـە، بۆیە بۆ 2 دەپەڕێنێتەوە ().
  • شوێنی مەبەست هێشتا لە خشتەکەدا نییە: لە هەموو ترییەوە دەنێرێت، بۆ ئەوەی هەر بگات. ئەمە .

So the bridge makes the two segments behave as one network: any PC can reach any other, but each segment only carries the traffic that concerns it. A switch’s MAC address table and a router’s routing table are compared in A switch’s table and a router’s table.

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

Segment 1 with PC1 to PC4 on port 1 and segment 2 with PC5 to PC8 on port 2, joined by a bridge. The bridge table lists the MAC addresses of PC1–PC4 under port 1 and of PC5–PC8 under port 2. PC1 → PC2, same side: filtered, the frame stays on segment 1. PC2 → PC8, other side: forwarded across to segment 2.بڕەڕایەڵە 1 بە PC1 تا PC4 لەسەر دەرچە 1 و بڕەڕایەڵە 2 بە PC5 تا PC8 لەسەر دەرچە 2، بە پردێکی ڕایەڵە پێکەوە بەستراون. خشتەی ناونیشانی MACـەکە ناونیشانەکانی MACـی PC1 تا PC4 لە ژێر دەرچە 1 و هی PC5 تا PC8 لە ژێر دەرچە 2 دەنووسێت. PC1 → PC2، هەمان لا: فلتەر دەکرێت و فرەیمەکە لە بڕەڕایەڵە 1دا دەمێنێتەوە. PC2 → PC8، لای تر: بۆ بڕەڕایەڵە 2 دەپەڕێنرێتەوە.
The table answers one question for every frame: stay or cross?خشتەکە بۆ هەر وەڵامی یەک پرسیار دەداتەوە: بمێنێتەوە یان بپەڕێتەوە؟CêIT

Where the table comes from: learningخشتەکە لە کوێوە دێت: فێربوون

Nobody types the table in. A transparent bridge learns it by itself: for every frame that arrives, it reads the source MAC address and notes the port it came in on. Then it decides with the destination MAC address:

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

  1. Learnفێربوون

    Write source MAC → arrival port in the table, or refresh the entry. Entries not seen for about 300 seconds are removed, so a computer that moves is found again.

    نێرەر ← هاتن لە خشتەکەدا بنووسە، یان تۆمارەکە نوێ بکەرەوە. ئەو تۆمارانەی نزیکەی ⁦300⁩ چرکە نەبینرێن دەسڕدرێنەوە، بۆیە کە شوێنی بگۆڕێت دووپاتە دەدۆزرێتەوە.

  2. Filterفلتەرکردن

    The destination is behind the same port the frame came from: drop it. It has already reached its segment.

    شوێنی مەبەست لە پشت هەمان ئەو کە لێیەوە هات: فڕێی بدە. پێشتر گەیشتووەتە .

  3. Forwardپێشڕۆکردن

    The destination is known behind another port: send the frame out of that port only.

    شوێنی مەبەست لە پشت تر ناسراوە: تەنیا لەو بنێرە.

  4. Floodلافاوکردن

    The destination is unknown, or the frame is a broadcast (FF-FF-FF-FF-FF-FF): send it out of every other port.

    شوێنی مەبەست نەناسراوە، یان ⁦(FF-FF-FF-FF-FF-FF)⁩: لە هەموو ترەوە بینێرە.

Transparent bridging was invented at Digital Equipment Corporation in 1983 and standardised as IEEE 802.1D. Its rules now live in IEEE 802.1Q, which superseded 802.1D in 2014 — and every switch you will meet follows them.

ڕوون لە ⁦1983⁩دا لە کۆمپانیای Digital Equipment Corporation داهێنرا و وەک ⁦IEEE 802.1D⁩ کرایە . یاساکانی ئێستا لە ⁦IEEE 802.1Q⁩ـدان، کە لە ⁦2014⁩دا جێی ⁦802.1D⁩ـی گرتەوە — و هەموو ئەو دەیانبینیت پەیڕەوییان دەکەن.

A flowchart. A frame arrives on port 1. Step 1, learn: source MAC → port 1. Then: where is the destination MAC? On port 1 too: filter, drop it. Known, on port 3: forward out of port 3 only. Unknown, or a broadcast: flood out of all other ports. Entries not refreshed for about 300 s are removed.هێڵکارییەکی کار. فرەیمێک لە دەرچە 1ـەوە دێت. هەنگاوی 1، فێربوون: ناونیشانی MACـی نێرەر ← دەرچە 1. پاشان: ناونیشانی MACـی مەبەست لە کوێیە؟ هەر لە دەرچە 1: فلتەر، فڕێ دەدرێت. ناسراوە، لە دەرچە 3: پێشڕۆکردن تەنیا لە دەرچە 3ـەوە. نەناسراو، یان پەخشکردن: لافاوکردن لە هەموو دەرچەکانی ترەوە. ئەو تۆمارانەی نزیکەی 300 چرکە نوێ نەکرێنەوە دەسڕدرێنەوە.
Learn from the source; decide with the destination.لە نێرەرەوە فێر دەبێت؛ بە شوێنی مەبەست بڕیار دەدات.CêIT

Kinds of bridgesجۆرەکانی پردی ڕایەڵە

Bridges are named by how many ports they have, how they choose a path, and what they join:

بەپێی ژمارەی ، شێوەی هەڵبژاردنی ڕێگا و ئەوەی پێکەوەی دەبەستن ناو دەنرێن:

  • Simple bridge: two ports, one per segment. No longer sold: a ‘bridge’ with four or more ports is what we now call a switch.
  • Transparent bridge: joins segments of the same LAN type and learns addresses by itself. Transparent because the computers do not know it is there — the sender ‘sees through’ it to the receiver, as if the two were directly connected. Every switch works this way.
  • Source-route bridge: used with IBM’s Token Ring in the 1980s and 1990s. The sending station finds the whole path and writes it into the frame — ‘source’ means where the data starts. History today.
  • Translational bridge: joins two different LAN types and converts the frame format. A Wi-Fi access point is one: it turns Wi-Fi frames into Ethernet frames and back.
  • Remote bridge: two halves far apart, joined over a telephone line or another long link.
  • Wireless bridge: joins networks by radio, for example two school buildings with directional antennas.
  • سادە: دوو ، بۆ هەر یەکێک. ئیتر نافرۆشرێت: ‘پرد’ێک بە چوار یان زیاتر ئەوەیە کە ئێستا پێی دەڵێین .
  • ڕوون: هەمان جۆری پێکەوە دەبەستێتەوە و خۆی فێری ناونیشانەکان دەبێت. پێی دەگوترێت ڕوون چونکە نازانن لەوێیە — نێرەر بە ناویدا وەرگر دەبینێت، وەک ئەوەی ڕاستەوخۆ پێکەوە بەسترابن. هەموو بەم شێوەیە کار دەکات.
  • ڕێگای سەرچاوە: لەگەڵ Token Ringـی IBM لە ساڵانی ⁦1980⁩ و ⁦1990⁩دا بەکار دەهات (). ئامێری نێرەر هەموو ڕێگاکە دەدۆزێتەوە و دەینووسێتە ناو — ‘سەرچاوە’ واتە ئەو شوێنەی لێیەوە دەست پێ دەکات. ئەمڕۆ مێژووە.
  • وەرگێڕ: دوو جۆری جیاوازی پێکەوە دەبەستێتەوە و فۆرماتی دەگۆڕێت. یەکێکە لەمانە: دەکاتە و بە پێچەوانەشەوە.
  • دوورەدەست: دوو نیوە کە دوورن لە یەکەوە و بە هێڵی تەلەفۆن یان بەستەرێکی درێژی تر پێکەوە بەستراون.
  • : بە ڕادیۆ پێکەوە دەبەستێتەوە، بۆ نموونە دوو بینای قوتابخانەیەک بە ئاڕاستەدار.
Three panels. Wireless bridge: two buildings joined by a radio link, without a cable. Remote bridge: two offices, each with a bridge, joined over a telephone or leased line. Translational bridge: an access point converts frames between Wi-Fi devices, a laptop and a phone, and an Ethernet switch.سێ بەش. پردی ڕایەڵەی بێتەل: دوو بینا بە بەستەرێکی ڕادیۆیی پێکەوە بەستراون، بەبێ کێبڵ. پردی ڕایەڵەی دوورەدەست: دوو ئۆفیس، هەریەکە بە پردێکی ڕایەڵەوە، بە هێڵی تەلەفۆن یان هێڵێکی بەکرێگیراو پێکەوە بەستراون. پردی ڕایەڵەی وەرگێڕ: خاڵێکی دەستڕاگەیشتن فرەیمەکان لە نێوان ئامێرەکانی وای‌فای (لاپتۆپێک و مۆبایلێک) و سویچێکی Ethernetـدا دەگۆڕێت.
Bridges you can still meet: by radio, over long links, and inside every access point.ئەو جۆرانەی کە هێشتا دەیانبینیت: بە ڕادیۆ، بە بەستەری درێژ و لە ناو هەموو .CêIT

The switch: a bridge with many portsسویچ: پردێکی ڕایەڵە بە چەندین دەرچەوە

A switch is a multiport bridge: each of its ports acts as a separate bridge. It learns which MAC address is behind each port and sends each frame only out of the port that leads to the destination. That is why people call it a ‘smart hub’: it looks like a hub, but it knows where everybody is. A switch is faster and more advanced than a hub, yet less capable than a router: a layer-2 switch does not read IP addresses.

فرەدەرچەیە: هەریەک لە وەک جیا کار دەکات. فێر دەبێت کام لە پشت هەر و هەر تەنیا لەو دەنێرێت کە دەگاتە شوێنی مەبەست. لەبەر ئەوە خەڵک پێی دەڵێن ‘هەبی زیرەک’: لە دەچێت، بەڵام دەزانێت هەمووان لە کوێن. لە خێراتر و پێشکەوتووترە، بەڵام توانای لە کەمترە: چینی 2 ناخوێنێتەوە.

Take the four PCs again. With a switch, a frame from PC1 to PC2 reaches only PC2; PC3 and PC4 see nothing. That is better for security — the others never receive your frames — and much better for speed: there is no crowd on the wire, and PC3 can talk to PC4 at the same time as PC1 talks to PC2.

دیسان چوار وەربگرە. بە ، لە ⁦PC1⁩ـەوە بۆ ⁦PC2⁩ تەنیا دەگاتە ⁦PC2⁩؛ ⁦PC3⁩ و ⁦PC4⁩ هیچ نابینن. ئەمە بۆ ئاسایش باشترە — ئەوانی تر هەرگیز تۆ وەرناگرن — و بۆ خێرایی زۆر باشترە: لەسەر وایەرەکە قەرەباڵغی نییە و ⁦PC3⁩ دەتوانێت لەگەڵ ⁦PC4⁩ قسە بکات لە هەمان کاتدا کە ⁦PC1⁩ لەگەڵ ⁦PC2⁩ قسە دەکات.

Four PCs around a switch. PC1 sends a frame to PC2: the frame goes only along PC1’s and PC2’s cables, and only PC2 receives it. PC3 and PC4: nothing arrives. Note: safer and faster, because other pairs can talk at the same time.چوار کۆمپیوتەر لە دەوری سویچێک. PC1 فرەیمێک بۆ PC2 دەنێرێت: فرەیمەکە تەنیا بە کێبڵەکانی PC1 و PC2دا دەڕوات و تەنیا PC2 وەری دەگرێت. PC3 و PC4: هیچ ناگات. تێبینی: سەلامەتتر و خێراتر، چونکە جووتەکانی تر دەتوانن لە هەمان کاتدا قسە بکەن.
A switch sends each frame only where it must go. هەر تەنیا بۆ ئەو شوێنە دەنێرێت کە دەبێت بچێت.CêIT

Why “switch”? Railway pointsبۆچی “سویچ”؟ ئاڕاستەگۆڕی ئاسنەڕێ

The device is called a switch because it does switching. Here the English word switching means forwarding: moving each piece of data on towards where it must go. Forward comes from Old English foreweard — fore ‘in front’ and weard ‘towards’ — so it means ‘towards the front’, and that is why Kurdish says .

ئەم ئامێرە پێی دەگوترێت چونکە کاری دەکات. لێرەدا وشەی ئینگلیزیی switching واتە : بردنی هەر پارچەیەکی بەرەو ئەو شوێنەی دەبێت بچێت. وشەی forward لە ئینگلیزیی کۆنی foreweardـەوە هاتووە — fore بە واتای ‘پێش’ و weard بە واتای ‘بەرەو’ — واتە ‘بەرەو پێش’، بۆیە کوردی دەڵێت .

The picture behind the name comes from the railway. A railroad switch — railway points — moves two short rails so that a train runs onto the one track it needs. A network switch does the same with frames: each frame is set onto the one port that leads to its destination, instead of being copied everywhere as on a hub. Most of us in Kurdistan have seen railway points only in films and games, so here is a drawing.

وێنەی پشت ناوەکە لە ئاسنەڕێوە هاتووە. ئاڕاستەگۆڕی ئاسنەڕێ (railroad switch) دوو پارچە ڕێڵی کورت دەجووڵێنێت بۆ ئەوەی شەمەندەفەرەکە بچێتە سەر ئەو یەک هێڵەی پێویستیەتی. هەمان کار بە دەکات: هەر دەخرێتە سەر ئەو یەک دەگاتە شوێنی مەبەستەکەی، لە جیاتی ئەوەی وەک لەسەر بۆ هەموو لایەک کۆپی بکرێت. زۆربەمان لە کوردستان ئاڕاستەگۆڕی ئاسنەڕێمان تەنیا لە فیلم و یارییەکاندا بینیوە، بۆیە ئەمە وێنەیەکیەتی.

A railway line splits into three tracks labelled ‘track to port 1’, ‘track to port 2’ and ‘track to port 3’. At the split, the points are set towards the top track. A train labelled ‘frame, to: port 1’ approaches and will run onto the track to port 1. Caption: a switch does the same with frames — each one goes onto the port of its destination.هێڵێکی ئاسنەڕێ دابەش دەبێت بۆ سێ هێڵ: ‘هێڵ بۆ دەرچە 1’، ‘هێڵ بۆ دەرچە 2’ و ‘هێڵ بۆ دەرچە 3’. لە شوێنی دابەشبوونەکەدا ئاڕاستەگۆڕەکە بەرەو هێڵی سەرەوە ڕێک خراوە. شەمەندەفەرێک بە ناونیشانی ‘فرەیم، بۆ: دەرچە 1’ نزیک دەبێتەوە و دەچێتە سەر هێڵی دەرچە 1. سویچ هەمان کار بە فرەیمەکان دەکات — هەریەکەیان دەچێتە سەر دەرچەی شوێنی مەبەستی خۆی.
Railway points choose one track; a switch chooses one port.ئاڕاستەگۆڕی ئاسنەڕێ یەک هێڵ هەڵدەبژێرێت؛ یەک هەڵدەبژێرێت.CêIT

Watch a switch learnسەیری فێربوونی سویچێک بکە

A switch learns exactly like a transparent bridge: from the source address of every frame. Nobody has to tell it where a destination is — the destination’s address is learned when that device sends something itself. Follow the CêIT lab’s example network: PC1, PC2, PC3 and a printer on ports Fa0/1 to Fa0/4.

ڕێک وەک ڕوون فێر دەبێت: لە ناونیشانی نێرەری هەموو . پێویست ناکات کەس پێی بڵێت شوێنی مەبەستێک لە کوێیە — ناونیشانی شوێنی مەبەست کاتێک فێر دەبێت کە ئەو ئامێرە خۆی شتێک بنێرێت. نموونەی تاقیگەی CêIT بەدوادا بچە: ⁦PC1⁩، ⁦PC2⁩، ⁦PC3⁩ و لەسەر ⁦Fa0/1⁩ تا ⁦Fa0/4⁩.

Animation in six steps. A switch with PC1, PC2, PC3 and a printer on ports Fa0/1 to Fa0/4, and its MAC address table on the right. 1: the table is empty. 2: PC1 sends a frame to the printer; the switch learns that 00:1A:2B:00:00:10 is on Fa0/1. 3: the printer is unknown, so the frame is flooded to PC2, PC3 and the printer; PC2 and PC3 drop it. 4: the printer replies; the switch learns it is on Fa0/4 and sends the reply only out of Fa0/1 to PC1. 5: PC1 sends again; the frame goes only out of Fa0/4, and PC2 and PC3 receive nothing. 6: after a few frames the table lists all four devices.
Animation in six steps. A switch with PC1, PC2, PC3 and a printer on ports Fa0/1 to Fa0/4, and its MAC address table on the right. 1: the table is empty. 2: PC1 sends a frame to the printer; the switch learns that 00:1A:2B:00:00:10 is on Fa0/1. 3: the printer is unknown, so the frame is flooded to PC2, PC3 and the printer; PC2 and PC3 drop it. 4: the printer replies; the switch learns it is on Fa0/4 and sends the reply only out of Fa0/1 to PC1. 5: PC1 sends again; the frame goes only out of Fa0/4, and PC2 and PC3 receive nothing. 6: after a few frames the table lists all four devices.
The table fills from source addresses; then frames go only where they must.خشتەکە لە ناونیشانی نێرەرەکانەوە پڕ دەبێت؛ پاشان تەنیا بۆ شوێنی خۆیان دەڕۆن.CêIT

After a few frames the switch rarely floods: only broadcasts and frames for unknown addresses go everywhere. The short IT-course version is How a switch learns where everyone is. Try it in the CêIT network lab: load ‘One network: 3 PCs, a printer and a switch’, select the switch to open its MAC address table, ping the printer from PC1, and watch the table fill.

دوای چەند بە دەگمەن بۆ هەمووان دەنێرێت: تەنیا و ئەو بۆ ناونیشانی نەناسراون بۆ هەموو شوێنێک دەڕۆن. کورتەکەی کۆرسی IT لە سویچ چۆن فێر دەبێت هەمووان لە کوێندایە. لە تاقیگەی ڕایەڵەی CêITدا تاقی بکەرەوە: ‘یەک : ٣ ، و ’ بکەرەوە، هەڵبژێرە بۆ کردنەوەی ، لە ⁦PC1⁩ـەوە ping بۆ بکە و سەیری پڕبوونی خشتەکە بکە.

Store-and-forward or cut-through?هەڵگرتن و پێشڕۆکردن یان سویچکردنی کورتبڕ؟

When should a switch start sending a frame out? With store-and-forward, it first receives the whole frame, checks the FCS error code at the end and drops damaged frames — safe, but it must wait for the last byte. With cut-through, it starts as soon as it has read the destination MAC address, the first 6 bytes of the frame — almost no delay, but a damaged frame is passed on and only the receiver drops it. Fragment-free is a middle way: it waits for the first 64 bytes, where damage from a collision would show.

کەی دەبێت دەست بە ناردنی بکات؟ بە ، سەرەتا هەموو وەردەگرێت، کۆدی هەڵەی FCS لە کۆتاییدا دەپشکنێت و تێکچوو فڕێ دەدات — سەلامەتە، بەڵام دەبێت چاوەڕێی دوایین بکات. بە ، هەر کە مەبەستی خوێندەوە دەست پێ دەکات، واتە 6 یەکەمی — دواکەوتنێکی نزیکەی سفر، بەڵام تێکچوو تێدەپەڕێت و تەنیا وەرگرەکە فڕێی دەدات. ⁦fragment-free⁩ ڕێگایەکی ناوەندە: چاوەڕێی ⁦64⁩ یەکەم دەکات، کە زیانی تێیدا دەردەکەوێت.

store-and-forward: 1518×8 bits109 bit/s≈12.1 μscut-through: 6×8 bits109 bit/s=48 ns\begin{aligned} \text{store-and-forward: } & \frac{1518 \times 8\ \text{bits}}{10^{9}\ \text{bit/s}} \approx 12.1\ \mu\text{s} \\ \text{cut-through: } & \frac{6 \times 8\ \text{bits}}{10^{9}\ \text{bit/s}} = 48\ \text{ns} \end{aligned}

How long the switch waits before it can start forwarding, on a 1 Gb/s port.

چەند چاوەڕێ دەکات پێش ئەوەی بتوانێت دەست بە بکات، لەسەر ⁦1 Gb/s⁩.

Most office and school switches store and forward; data-centre switches often cut through to save microseconds. A cut-through switch must buffer the frame anyway when the outgoing port is busy or faster than the incoming one. Routers always store, then forward (Routers store, then forward).

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

A frame arriving on the input port, drawn left to right and not to scale: preamble, destination MAC, source MAC, type, data and FCS. A dashed line after the destination MAC marks cut-through: it starts after 6 bytes, 48 ns at 1 Gb/s. A dashed line after the FCS marks store-and-forward: it starts after the whole frame and the FCS check, 12.1 µs for 1,518 bytes at 1 Gb/s. Below: cut-through has a tiny delay but bad frames pass on (fragment-free waits for the first 64 bytes); store-and-forward waits longer but drops damaged frames and is used by most office and school switches.فرەیمێک کە دەگاتە دەرچەی هاتن، لە چەپەوە بۆ ڕاست و بە پێوانە نییە: پێشەکی، ناونیشانی MACـی مەبەست، ناونیشانی MACـی نێرەر، جۆر، دراوە و FCS. هێڵێکی پچڕپچڕ دوای ناونیشانی MACـی مەبەست سویچکردنی کورتبڕ پیشان دەدات: دوای 6 بایت دەست پێ دەکات، 48 ns لە 1 Gb/sـدا. هێڵێکی پچڕپچڕ دوای FCS هەڵگرتن و پێشڕۆکردن پیشان دەدات: دوای هەموو فرەیمەکە و پشکنینی FCS دەست پێ دەکات، 12.1 µs بۆ 1,518 بایت لە 1 Gb/sـدا. لە خوارەوە: سویچکردنی کورتبڕ دواکەوتنی زۆر کەمە بەڵام فرەیمی خراپ تێدەپەڕێت (fragment-free چاوەڕێی 64 بایتی یەکەم دەکات)؛ هەڵگرتن و پێشڕۆکردن زیاتر چاوەڕێ دەکات بەڵام فرەیمی تێکچوو فڕێ دەدات و زۆربەی سویچەکانی ئۆفیس و قوتابخانە بەکاری دەهێنن.
Cut-through starts early; store-and-forward checks first. زوو دەست پێ دەکات؛ سەرەتا دەپشکنێت.CêIT

Every port its own lane: full duplexهەر دەرچەیەک ڕێڕەوی خۆی: دوولایەنەی هاوکات

On a switch, each cable joins exactly two devices: a computer and its switch port. Every port is a separate collision domain — the LAN is microsegmented. With separate wire pairs for each direction, the link runs full duplex: it sends and receives at the same time. Collisions cannot happen, so CSMA/CD is switched off, and every port gets the full bandwidth: a gigabit port carries 1 Gb/s in each direction, on every port at once.

لەسەر ، هەر کێبڵێک ڕێک دوو ئامێر پێکەوە دەبەستێت: و . هەر جیایە — بە وردی بەش بەش کراوە. بە جووتە وایەری جیا بۆ هەر ئاڕاستەیەک، بەستەرەکە بە کار دەکات: لە هەمان کاتدا دەنێرێت و وەردەگرێت. ناتوانێت ڕوو بدات، بۆیە دەکوژێنرێتەوە و هەر تەواو وەردەگرێت: گیگابیت بە هەر ئاڕاستەیەک ⁦1 Gb/s⁩ دەگوازێتەوە، لەسەر هەموو پێکەوە.

So a modern switch port is full duplex — not ‘half or full’. Half duplex appears only when a port is joined to an old hub, or when one end is set by hand and the other negotiates automatically: a duplex mismatch, which makes the link slow and full of errors.

کەواتە نوێ — نەک ‘نیوە یان تەواو’. تەنیا کاتێک دەردەکەوێت کە بە کۆنەوە ببەسترێت، یان کاتێک لایەکی بە دەست ڕێک بخرێت و لایەکەی تر خۆکارانە ڕێک بکەوێت: ناگونجانی duplex کە بەستەرەکە خاو و پڕ لە هەڵە دەکات.

A switch with PC1 to PC4. Each cable lies inside its own shaded oval — its own collision domain — and carries two arrows, one in each direction. Text: send and receive at the same time, no collisions, no CSMA/CD. Bottom: 4 ports × 1 Gb/s each way = up to 8 Gb/s through the switch at once.سویچێک بە PC1 تا PC4. هەر کێبڵێک لە ناو هێلکەیییەکی ڕەنگکراوی خۆیدایە — پاوانی پێکدادانی خۆی — و دوو تیر هەڵدەگرێت، بۆ هەر ئاڕاستەیەک یەکێک. دەق: ناردن و وەرگرتن لە هەمان کاتدا، نە پێکدادان، نە CSMA/CD. خوارەوە: 4 دەرچە × 1 Gb/s بۆ هەر ئاڕاستەیەک = تا 8 Gb/s پێکەوە بە ناو سویچدا.
Two devices per cable and two directions per link: nothing left to collide.دوو ئامێر بۆ هەر کێبڵێک و دوو ئاڕاستە بۆ هەر بەستەرێک: هیچ شتێک نامێنێت پێکدا بدات.CêIT

Hub or switch? Side by sideهەب یان سویچ؟ لە تەنیشت یەک

Here are the two devices side by side, with the facts as they are today (the short IT-course version is Hub or switch?):

ئەمە هەردوو ئامێرەکەیە لە تەنیشت یەک، بە ڕاستییەکانی ئەمڕۆ (کورتەکەی کۆرسی IT: هەب یان سویچ؟):

FeatureتایبەتمەندیHubSwitch
OSI layerچینی 1, physical1، 2, data link2،
Works withمامەڵە لەگەڵelectrical signals: bits کارەبایی: frames (a layer-3 switch also routes packets) ( دەکات)
Transmission modehalf duplexfull duplex
Collisionscommon: one collision domainزۆر: یەک none on full-duplex ports: one domain per portلەسەر نییە: بۆ هەر یەک پاوان
MAC addressesstores noneهیچ هەڵناگرێتMAC address table in CAM (content-addressable memory) لە CAMـدا ⁦(content-addressable memory)⁩
Where a frame goes بۆ کوێ دەچێتout of every other portلە هەموو ترەوەonly to the destination’s port; floods only unknown and broadcast framesتەنیا بۆ شوێنی مەبەست؛ تەنیا نەناسراو و بۆ هەمووان دەنێرێت
Speedخێرایی10 or 100 Mb/s, shared (history)⁦10⁩ یان ⁦100 Mb/s⁩، هاوبەش (مێژوو)1 Gb/s per desk port in 2026; 2.5–10 Gb/s for Wi-Fi 7 access points; 25–800 Gb/s in data centresلە ⁦2026⁩دا ⁦1 Gb/s⁩ بۆ هەر مێز؛ ⁦2.5⁩ تا ⁦10 Gb/s⁩ بۆ ⁦Wi-Fi 7⁩؛ ⁦25⁩ تا ⁦800 Gb/s⁩ لە ناوەندەکانی
Securityئاسایشeverybody receives everythingهەمووان هەموو شتێک وەردەگرنothers do not receive your unicast framesئەوانی تر تۆ وەرناگرن

Bridge or switch? Five rows, checkedپردی ڕایەڵە یان سویچ؟ پێنج ڕیز، پشکنراو

Bridges and switches are often compared in five rows. Here they are, corrected where needed:

و زۆرجار لە پێنج ڕیزدا بەراورد دەکرێن. ئەمە ڕیزەکانن، لە شوێنی پێویستدا ڕاستکراونەتەوە:

RowڕیزBridgeSwitch
Jobکارjoins two segments into a bigger network; classically two portsدوو دەکاتە گەورەتر؛ بە شێوەی کلاسیکی دوو joins many devices; every port is its own segmentچەندین ئامێر پێکەوە دەبەستێت؛ هەر خۆیەتی
Broadcastsforwarded out of every portلە هەموو دەنێردرێتalso forwarded out of every port — only routers (and VLANs) stop broadcastsهەروەها لە هەموو دەنێردرێت — تەنیا (و ) ڕادەگرن
Filteringفلتەرکردنby MAC addressبەپێی by MAC address; filtering by IP needs a layer-3 switch or a routerبەپێی ؛ فلتەرکردن بەپێی IP یان پێویستە
Speedخێراییslower: early bridges forwarded in softwareخاوتر: سەرەتایی بە دەیناردwire speed: forwarding in hardware chipsبە خێرایی تەواوی هێڵ: لە پارچە ئەلیکترۆنییەکانی ناو ئامێرەکەدا
Costتێچووcheaper in its day, being simplerلە سەردەمی خۆیدا هەرزانتر بوو، چونکە سادەتر بووdepends on features; today even small switches are cheap and stand-alone bridges are rareبەندە بە تایبەتمەندییەکان؛ ئەمڕۆ تەنانەت بچووکەکانیش هەرزانن و سەربەخۆ دەگمەنە

The broadcast row is the classic trap. A broadcast frame (destination FF-FF-FF-FF-FF-FF) goes out of every port of a bridge and of a switch alike, so a whole switched LAN is one broadcast domain. Neither device joins different IP networks — that is a router’s job (Modems and Routers). Counting the domains is in Layer 2: switches and bridges split collisions, not broadcasts.

ڕیزی داوە کلاسیکییەکەیە. (مەبەست ⁦FF-FF-FF-FF-FF-FF⁩) لە هەموو و وەک یەک دەنێردرێت، بۆیە هەموو سویچدار یەک . هیچیان IPـی جیاواز پێکەوە نابەستنەوە — ئەمە کاری (مۆدێمەکان و ڕێدۆزەکان). ژماردنی پاوانەکان لە چینی 2: سویچ و پردی ڕایەڵە پێکدادان دابەش دەکەن، نەک پەخشکردندایە.

Unmanaged, managed and layer-3 switchesسویچەکان: نەبەڕێوەبراو، بەڕێوەبراو و چینی 3

Unmanaged switches — the small boxes in homes and shops — are plug and play: no settings at all. Smart (web-managed) switches have a few settings on a web page. Managed switches can be configured through a command line, a web page or network-management software: VLANs, port security, link aggregation, traffic monitoring and more — the subject of the Routing and Switching course (VLANs, Port security, EtherChannel: many cables, one link). Many switches also power phones, cameras and access points over the cable (PoE).

نەبەڕێوەبراو — سندووقە بچووکەکانی ماڵ و دوکان — هەر بیانبەستیت کار دەکەن: هیچ ڕێکخستنێکیان نییە. زیرەک (بە وێب بەڕێوەدەبرێن) چەند ڕێکخستنێکیان لە پەڕەیەکی وێبدا هەیە. لە ڕێگەی هێڵی فەرمان، پەڕەیەکی وێب یان بەڕێوەبردنی ڕێک دەخرێن: ، ، کۆکردنەوەی بەستەرەکان، چاودێریی هاتوچۆ و زیاتر — بابەتی خولی و (VLAN، ئاسایشی دەرچە، EtherChannel: چەند کێبڵ، یەک بەستەر). زۆرێک لە کارەبا بە کێبڵەکەدا دەدەنە تەلەفۆن، کامێرا و (PoE).

A layer-3 switch (multilayer switch) also reads IP addresses and routes between VLANs at switch speed, so it blurs the line between switch and router (A switch that can also route). Example: a school computer lab in Erbil — 30 student PCs, a teacher PC, a printer and two Wi-Fi access points on one 48-port managed gigabit switch with PoE, joined to the school’s main switch by fibre; VLANs keep students and teachers apart.

(سویچی فرەچین) دەخوێنێتەوە و بە خێرایی لە نێوان دەکات، بۆیە سنووری نێوان و کاڵ دەکاتەوە (سویچێک کە دەتوانێت ڕێدۆزییش بکات). نموونە: تاقیگەی کۆمپیوتەری قوتابخانەیەک لە هەولێر — ⁦30⁩ قوتابی، مامۆستا، و دوو لەسەر یەک ⁦48⁩ گیگابیت بە ، کە بە فایبەر بە سەرەکیی قوتابخانەکەوە بەستراوە؛ قوتابیان و مامۆستایان لە یەک جیا دەکەنەوە.

A school computer lab in Erbil. In a rack, a patch panel above a 48-port managed gigabit switch with PoE, joined by a fibre uplink (SFP) to the school core switch. Below: 30 student PCs on VLAN 10; the teacher PC and a printer on VLAN 20; two Wi-Fi access points powered by PoE. Each cable is a separate full-duplex link, and VLANs keep the two groups apart.تاقیگەی کۆمپیوتەری قوتابخانەیەک لە هەولێر. لە ناو ڕەفێکدا، پانێڵی پاچ لە سەرووی سویچی بەڕێوەبراوی 48 دەرچەی گیگابیت بە PoEـەوە، کە بە بەستەری فایبەر (SFP) بە سویچی سەرەکیی قوتابخانەوە بەستراوە. لە خوارەوە: 30 کۆمپیوتەری قوتابی لەسەر VLAN 10؛ کۆمپیوتەری مامۆستا و چاپەرێک لەسەر VLAN 20؛ دوو خاڵی دەستڕاگەیشتنی وای‌فای بە کارەبای PoE. هەر کێبڵێک بەستەرێکی جیای دوولایەنەی هاوکاتە و VLANـەکان دوو گرووپەکە لە یەک جیا دەکەنەوە.
One managed switch serves a whole computer lab.یەک خزمەتی هەموو تاقیگەیەکی کۆمپیوتەر دەکات.CêIT

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

MistakeهەڵەWhat is trueڕاستییەکە
“A switch stores the destination’s MAC address.”« شوێنی مەبەست هەڵدەگرێت.»It learns the source MAC of every frame and the port it came in on. نێرەری هەموو و ئەو لێیەوە هاتووە فێر دەبێت.
“A switch keeps broadcasts inside one segment.”« لە ناو یەک دەهێڵێتەوە.»Bridges and switches both flood broadcasts to every port; only routers (and VLANs) stop them. و هەردووکیان بۆ هەموو دەنێرن؛ تەنیا (و ) ڕایان دەگرن.
“A source-route bridge joins different protocols.”« ڕێگای سەرچاوە جیاواز پێکەوە دەبەستێتەوە.»It belonged to Token Ring: the sender chose the path. Different LAN types need a translational bridge.هی Token Ring بوو: نێرەر ڕێگاکەی هەڵدەبژارد. جۆری جیاوازی وەرگێڕی پێویستە.
“A switch filters by IP address.”« بەپێی فلتەر دەکات.»A layer-2 switch reads MAC addresses only; IP belongs to layer-3 switches and routers. چینی 2 تەنیا دەخوێنێتەوە؛ IP هی و .
“Switch ports are half or full duplex.”« نیوە یان تەواو duplexـن.»Modern ports are full duplex; half duplex means an old hub or a duplex mismatch. نوێیەکان ؛ واتە کۆن یان ناگونجانی duplex.
“Cut-through is always better.”« هەمیشە باشترە.»It is faster, but it forwards damaged frames; store-and-forward checks the FCS first.خێراترە، بەڵام تێکچوو دەنێرێت؛ سەرەتا FCS دەپشکنێت.
“A bridge joins two different IP networks.”« دوو IPـی جیاواز پێکەوە دەبەستێتەوە.»It joins two segments of one network; routers join different networks.دوو یەک پێکەوە دەبەستێتەوە؛ جیاواز پێکەوە دەبەستنەوە.

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

ExerciseڕاهێنانThe bridge table, step by stepخشتەی ناونیشانی MAC، هەنگاو بە هەنگاو

A bridge joins segment 1 (PC1–PC4, port 1) and segment 2 (PC5–PC8, port 2). Its table is empty. Three frames arrive in this order: PC1 → PC3, PC6 → PC1, PC2 → PC8. For each frame, say what the bridge learns and whether it filters, forwards or floods.

1 (ئامێرەکانی ⁦PC1⁩ تا ⁦PC4⁩، لەسەر ⁦1⁩) و 2 (ئامێرەکانی ⁦PC5⁩ تا ⁦PC8⁩، لەسەر ⁦2⁩) پێکەوە دەبەستێتەوە. خشتەکەی بەتاڵە. سێ بەم ڕیزبەندییە دەگەن: لە ⁦PC1⁩ـەوە بۆ ⁦PC3⁩، لە ⁦PC6⁩ـەوە بۆ ⁦PC1⁩ و لە ⁦PC2⁩ـەوە بۆ ⁦PC8⁩. بۆ هەر بڵێ فێری چی دەبێت و فلتەر دەکات، دەپەڕێنێتەوە یان بۆ هەمووان دەنێرێت.

Show answerوەڵامەکە پیشان بدە
FrameLearnsفێر دەبێتDecisionبڕیار
PC1 → PC3PC1 is behind port 1⁦PC1⁩ لە پشت 1ـەPC3 unknown → flood (out of port 2, the only other port)⁦PC3⁩ نەناسراوە ← (لە 2ـەوە، تاکە تر)
PC6 → PC1PC6 is behind port 2⁦PC6⁩ لە پشت 2ـەPC1 known on port 1 → forward out of port 1⁦PC1⁩ لەسەر 1 ناسراوە ← لە 1ـەوە
PC2 → PC8PC2 is behind port 1⁦PC2⁩ لە پشت 1ـەPC8 unknown → flood (out of port 2)⁦PC8⁩ نەناسراوە ← (لە 2ـەوە)

With only two ports, flooding means sending the frame out of the other port. The bridge will learn PC3 and PC8 as soon as they send something.

بە تەنیا دوو ، واتە ناردنی لە ترەوە. هەر کە ⁦PC3⁩ و ⁦PC8⁩ شتێک بنێرن فێریان دەبێت.

Exerciseڕاهێنان

At 100 Mb/s, how long must a store-and-forward switch wait for a 1,518-byte frame before it can start forwarding? How long does a cut-through switch wait for the 6-byte destination address?

لە ⁦100 Mb/s⁩ـدا، بە دەبێت چەند چاوەڕێی ⁦1,518⁩ بکات پێش ئەوەی بتوانێت دەست بە بکات؟ بە چەند چاوەڕێی ناونیشانی مەبەستی 6 دەکات؟

Show answerوەڵامەکە پیشان بدە
1518×8108 s≈121.4 μs6×8108 s=0.48 μs\begin{aligned} \frac{1518 \times 8}{10^{8}}\ \text{s} &\approx 121.4\ \mu\text{s} \\ \frac{6 \times 8}{10^{8}}\ \text{s} &= 0.48\ \mu\text{s} \end{aligned}

Ten times slower links mean ten times longer waits; the gap between the two methods grows with the frame size.

بەستەری دە هێندە خاوتر واتە چاوەڕوانیی دە هێندە درێژتر؛ جیاوازیی نێوان دوو ڕێگاکە لەگەڵ قەبارەی گەورەتر دەبێت.

Exerciseڕاهێنان

In this small lab topology, PC0 is joined to Switch0 with a straight-through cable, and Laptop0 to Router0 with a crossover cable. Why is a straight-through cable right for PC to switch? And why is the laptop-to-router link shown with red dots at first?

لەم تۆپۆلۆجییە بچووکەی تاقیگەدا، ⁦PC0⁩ بە بە ⁦Switch0⁩ـەوە بەستراوە و ⁦Laptop0⁩ بە بە ⁦Router0⁩ـەوە. بۆچی بۆ بەستنی بە دروستە؟ و بۆچی بەستەری نێوان و سەرەتا بە خاڵی سوور پیشان دەدرێت؟

A small lab topology. PC0 is joined to Switch0 (2960) by a straight-through cable with green dots at both ends. Laptop0 is joined to Router0 (1941) by a dashed crossover cable with red dots. Note: green dots, link up; red dots, link down.تۆپۆلۆجییەکی بچووکی تاقیگە. PC0 بە کێبڵی ڕاستەوخۆ بە Switch0 (2960)ـەوە بەستراوە کە لە هەردوو سەرەوە خاڵی سەوزی هەیە. Laptop0 بە کێبڵێکی خاچی بە Router0 (1941)ـەوە بەستراوە کە بە پچڕپچڕی کێشراوە و خاڵی سووری هەیە. تێبینی: خاڵی سەوز، بەستەر کار دەکات؛ خاڵی سوور، بەستەر کار ناکات.
A small network topology in Packet Tracer. لە Packet Tracerـدا.CêIT
Show answerوەڵامەکە پیشان بدە

A PC and a switch port send on opposite pairs, so a straight-through cable joins them; PC to router is the classic crossover case, although Auto-MDI-X ports accept either (Which cable goes where?). The red dots mean link down: a router’s interfaces stay switched off until someone turns them on — in Packet Tracer with the Port Status: On box on the router’s Config tab, or with a command taught in Your First Router — while switch ports are on by default.

و لەسەر جووتی پێچەوانە دەنێرن، بۆیە پێکیانەوە دەبەستێت؛ بەستنی بە حاڵەتە کلاسیکییەکەی ، هەرچەندە هەردووکیان قبووڵ دەکەن (کام کێبڵ بۆ کوێ دەچێت؟). خاڵە سوورەکان واتە بەستەر کار ناکات: کوژاوە دەمێننەوە تا کەسێک هەڵیان دەکات — لە Packet Tracerـدا بە خانەی ⁦Port Status: On⁩ لە تابی Configـی ، یان بە فەرمانێک کە لە یەکەم ڕێدۆزی تۆدا فێری دەبیت — بەڵام بە شێوەی بنەڕەتی هەڵکراون.

Review questionsپرسیارەکانی پێداچوونەوە
Why is a transparent bridge called ‘transparent’?بۆچی پردی ڕایەڵەی ڕوون پێی دەگوترێت ‘ڕوون’؟

Because the computers do not know it is there: frames pass as if the two PCs were directly connected.

چونکە نازانن لەوێیە: وا تێدەپەڕن وەک ئەوەی دوو ڕاستەوخۆ پێکەوە بەسترابن.

What four things does a switch do with every frame?سویچ چ چوار کارێک بە هەموو فرەیمێک دەکات؟

It learns the source; then it filters, forwards or floods, depending on the destination.

نێرەرەکە فێر دەبێت؛ پاشان بەپێی شوێنی مەبەست فلتەر دەکات، دەپەڕێنێتەوە یان بۆ هەمووان دەنێرێت.

Why do people call a switch a ‘smart hub’?بۆچی خەڵک بە سویچ دەڵێن ‘هەبی زیرەک’؟

It looks like a hub, but it learns MAC addresses and sends each frame only where it must go.

لە دەچێت، بەڵام فێری دەبێت و هەر تەنیا بۆ ئەو شوێنە دەنێرێت کە دەبێت بچێت.

Name two kinds of bridge you can still meet today.دوو جۆری پردی ڕایەڵە ناو ببە کە ئەمڕۆش دەیانبینیت.

Wireless bridges between buildings, and translational bridges such as Wi-Fi access points; operating systems and virtual machines also contain software bridges.

لە نێوان بیناکاندا و وەرگێڕ وەک ؛ هەروەها لە ناو و وەک هەن.

Summaryپوختە

  • A bridge (layer 2) joins two segments of one LAN. Its MAC address table says which addresses are behind which port: frames for the same side are filtered, frames for the other side are forwarded, unknown and broadcast frames are flooded.
  • A transparent bridge learns from source addresses (entries age out after about 300 s); IEEE 802.1D, now 802.1Q. Other kinds: simple, source-route (Token Ring, history), translational (e.g. a Wi-Fi access point), remote, wireless.
  • A switch is a multiport bridge — a ‘hub that learns’. Its name comes from railway points: each frame is set onto one port. Store-and-forward checks the FCS first; cut-through starts after the destination MAC.
  • Every switch port is its own collision domain and runs full duplex at full bandwidth: no collisions. But the whole switched LAN is one broadcast domain — only routers and VLANs stop broadcasts.
  • Unmanaged switches are plug and play; managed switches add VLANs, port security and monitoring; layer-3 switches also route between VLANs.
  • (چینی ⁦2⁩) دوو یەک پێکەوە دەبەستێتەوە. دەڵێت کام ناونیشان لە پشت کام : هەمان لا فلتەر دەکرێت، هی لای تر دەپەڕێنرێتەوە و نەناسراو و بۆ هەمووان دەنێردرێن.
  • ڕوون لە ناونیشانی نێرەرەکانەوە فێر دەبێت (تۆمارەکان دوای نزیکەی ⁦300⁩ چرکە دەسڕدرێنەوە)؛ ⁦IEEE 802.1D⁩، ئێستا ⁦802.1Q⁩. جۆرەکانی تر: سادە، ڕێگای سەرچاوە (Token Ring، مێژوو)، وەرگێڕ (وەک )، دوورەدەست، .
  • فرەدەرچەیە — ‘ کە فێر دەبێت’. ناوەکەی لە ئاڕاستەگۆڕی ئاسنەڕێوە هاتووە: هەر دەخرێتە سەر یەک . سەرەتا FCS دەپشکنێت؛ دوای مەبەست دەست پێ دەکات.
  • هەر خۆیەتی و بە و تەواو کار دەکات: نییە. بەڵام هەموو سویچدار یەک — تەنیا و ڕادەگرن.
  • نەبەڕێوەبراو هەر بیبەستیت کار دەکات؛ ، و چاودێری زیاد دەکەن؛ لە نێوان دەکەن.

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

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

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

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

Modems and Routersمۆدێمەکان و ڕێدۆزەکان

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.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.