Chapterبەش 2 · Lectureوانە 2.2

OSI Layers 1–3: Physical, Data Link and Networkچینەکانی 1 تا 3ی OSI: چینی فیزیکی، چینی بەستەری دراوە و چینی ڕایەڵە

The three network support layers of OSI: how the physical layer turns bits into signals, how the data link layer moves frames hop by hop with MAC addresses and a trailer, and how the network layer carries packets from source to destination with IP addresses, forwarding and routing — with worked examples on a shared cable and across two routers.

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

17 min read18 خولەک خوێندنەوە · 14 stepsهەنگاو

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

  • Describe what the physical layer is responsible for: bits, signals, media, bit rate and timing.
  • Explain framing, MAC addressing, error, flow and access control, and the LLC and MAC sublayers of the data link layer.
  • Explain how the network layer gets a packet from the source host to the destination host with logical addresses, forwarding and routing.
  • Tell hop-to-hop delivery from source-to-destination delivery, and say which addresses change at each hop.
  • Answer exam questions about the three lower layers.
  • وەسفی ئەوە بکەیت کە بەرپرسە لێی: ، ، ، و کات.
  • دروستکردنی ، ناونیشانکردن بە MAC، ، و و ژێرچینەکانی LLC و MACـی ڕوون بکەیتەوە.
  • ڕوونی بکەیتەوە چۆن بە ناونیشانی لۆجیکی، و لە سەرچاوەوە دەگەیەنێتە مەبەست.
  • جیاوازیی گەیاندنی و گەیاندن لە سەرچاوەوە بۆ جێی مەبەست بزانیت و بڵێیت کام ناونیشانانە لە هەر دەگۆڕێن.
  • وەڵامی پرسیارەکانی تاقیکردنەوە لەبارەی سێ چینی خوارەوە بدەیتەوە.

Layers 1–3 at a glanceچینەکانی 1 تا 3 بە کورتی

In Three groups of layers you met the network support layers: 1 physical, 2 data link and 3 network. Together they carry data from one device to another, and every router on the way uses them. Each one has its own unit of data, its own kind of address and its own reach.

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

A table of layers 3, 2 and 1. Network layer: unit packet, address IP address (logical), reaches from the source host to the destination host across networks, device router. Data link layer: unit frame, address MAC address (physical), reaches one hop to the next device on the same link, devices switch and network card. Physical layer: unit bits, no address, reaches one link as signals on a cable or radio, devices cable, hub and repeater. Bottom: layers 4–7 run only in the end hosts; routers on the way stop at layer 3.خشتەیەکی چینەکانی 3، 2 و 1. چینی ڕایەڵە: یەکە پاکێت، ناونیشان ناونیشانی IP (لۆجیکی)، لە میوانگری سەرچاوەوە بە ناو ڕایەڵەکاندا دەگاتە میوانگری مەبەست، ئامێر ڕێدۆز. چینی بەستەری دراوە: یەکە فرەیم، ناونیشان ناونیشانی MAC (فیزیکی)، یەک باز دەگاتە ئامێری دواتر لەسەر هەمان بەستەر، ئامێر سویچ و کارتی ڕایەڵە. چینی فیزیکی: یەکە بیتەکان، بێ ناونیشان، یەک بەستەر وەک سیگناڵ لەسەر کێبڵ یان ڕادیۆ، ئامێر کێبڵ، هەب و دووپاتەکەرەوە. لە خوارەوە: چینەکانی 4 تا 7 تەنیا لە میوانگرەکاندا کار دەکەن؛ ڕێدۆزەکانی سەر ڕێگا لە چینی 3 دەوەستن.
The three lower layers: what each one carries, which address it uses and how far it reaches.سێ چینی خوارەوە: هەریەکەیان چی دەگوازێتەوە، کام ناونیشان بەکار دەهێنێت و تا کوێ دەگات.CêIT

Think of a parcel from Sulaymaniyah to Duhok. Layer 1 is the road and the van; layer 2 is one stretch of the trip, from one post office to the next; layer 3 is the whole route to the final address.

بیر لە پاکەتێکی پۆستە بکەرەوە لە سلێمانییەوە بۆ دهۆک. چینی 1 ڕێگا و ئۆتۆمبێلەکەیە؛ چینی 2 پارچەیەکی گەشتەکەیە، لە پۆستەخانەیەکەوە بۆ دواتر؛ چینی 3 هەموو ڕێڕەوەکەیە تا ناونیشانی کۆتایی.

Layer 1: the physical layerچینی 1: چینی فیزیکی

The physical layer coordinates everything needed to send a bit stream over a physical medium. It takes a frame from layer 2 — for this layer just a row of 0s and 1s — and turns the bits into signals: voltages on copper, pulses of light in fibre or radio waves in the air. At the other end it turns the signals back into bits. It is responsible for moving individual bits from one hop (node) to the next, so its unit of data is the bit. The media themselves are described in Network media: copper, glass and air.

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

Node A and node B, each with a data link layer above a physical layer. The bits of one frame, 11010101000000010111, come down from A's data link layer. Between the two physical layers the medium carries them as a square signal: high voltage for 1 and low voltage for 0, with each bit written under the signal. They go up to B's data link layer. Notes: layer 1 does not read addresses or meaning, it only turns bits into a signal and back; bit rate means bits per second — at 1 Gbit/s one bit lasts one billionth of a second.نۆدی ڕایەڵە A و نۆدی ڕایەڵە B، هەریەکە چینی بەستەری دراوە لە سەرووی چینی فیزیکی. بیتەکانی فرەیمێک، 11010101000000010111، لە چینی بەستەری دراوەی Aـەوە دادەبەزن. لە نێوان دوو چینە فیزیکییەکەدا هۆکاری گواستنەوەکە وەک سیگناڵێکی چوارگۆشەیی دەیانبات: ڤۆڵتیەی بەرز بۆ 1 و ڤۆڵتیەی نزم بۆ 0؛ هەر بیتێک لە ژێر سیگناڵەکەدا نووسراوە. بەرەو چینی بەستەری دراوەی B سەردەکەون. تێبینی: چینی 1 ناونیشان و مانا ناخوێنێتەوە، تەنیا بیتەکان دەکاتە سیگناڵ و دەیانکاتەوە بە بیت؛ ڕێژەی بیت واتە ژمارەی بیتەکان لە چرکەیەکدا — لە 1 Gbit/s هەر بیتێک یەک لە ملیارێکی چرکەیەک دەخایەنێت.
Bits over one hop: layer 1 turns them into a signal on the medium and back into bits at the next node. بە سەر یەک : چینی 1 دەیانکاتە لەسەر و لە دواتردا دەیانکاتەوە بە .CêIT
Definitionپێناسە

The lowest layer of a network: the hardware that turns bits into signals on a wire or into radio waves by , and back. LoRa is a physical layer.

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

Layer 1: the physical layerچینی 1: چینی فیزیکی

What layer 1 decidesچینی 1 چی دیاری دەکات

The physical layer is about all the physical properties of a network. Its standards decide:

پەیوەندیی بە هەموو تایبەتمەندییە فیزیکییەکانی هەیە. ئەم چینە ئەمانە دیاری دەکەن:

  • the medium and the interfaces: cable type and length, connectors and their pins, radio frequencies;
  • how bits are represented: which voltage, light pulse or radio pattern means 1 and which means 0;
  • the data rate (bit rate): how many bits are sent each second, for example 1 Gbit/s;
  • synchronisation of bits: the sender and the receiver must use the same bit rate and keep their clocks together, or bits are lost;
  • the line configuration and the transmission mode: point-to-point or multipoint, and simplex, half or full duplex — see Links and line configuration;
  • the physical topology: how the devices are cabled — see Physical and Logical Topologies.
  • و : جۆر و درێژیی کێبڵ، و پینەکانیان، ڕادیۆ؛
  • چۆن نیشان دەدرێن: کام ، تیشکی ڕووناکی یان شێوەی ڕادیۆیی واتای 1 دەدات و کامیان واتای 0؛
  • : چەند لە هەر چرکەیەکدا دەنێردرێت، بۆ نموونە ⁦1 Gbit/s⁩؛
  • هاوکاتکردنی : نێرەر و وەرگر دەبێت هەمان بەکار بهێنن و پێکەوە کات بژمێرن، ئەگینا ون دەبن؛
  • و : یان ، هەروەها ، یان — بڕوانە بەستنەوە و جۆری بەستنەوە؛
  • فیزیکی: ئامێرەکان چۆن بە کێبڵ بەستراون — بڕوانە تۆپۆلۆجییەکانی ڕایەڵەی فیزیکی و لۆجیکی.
Three rows show the same 8 bits, 0 1 1 0 1 0 0 1, as a square signal over 8 clock ticks. Row 1, the sender: 8 bits in 8 clock ticks. Row 2, a receiver with the same clock measures the signal once in the middle of every tick and reads 0 1 1 0 1 0 0 1 — correct. Row 3, a receiver with a slower clock measures it only six times and reads 0 1 0 1 0 1 — bits are lost.سێ ڕیز هەمان 8 بیت، 0 1 1 0 1 0 0 1، وەک سیگناڵێکی چوارگۆشەیی لە 8 لێدانی کاتژمێردا پیشان دەدەن. ڕیزی 1، نێرەر: 8 بیت لە 8 لێدانی کاتژمێردا. ڕیزی 2، وەرگرێک بە هەمان کاتژمێر سیگناڵەکە لە ناوەڕاستی هەر لێدانێکدا جارێک دەپێوێت و 0 1 1 0 1 0 0 1 دەخوێنێتەوە — دروستە. ڕیزی 3، وەرگرێک بە کاتژمێرێکی خاوتر تەنیا شەش جار دەیپێوێت و 0 1 0 1 0 1 دەخوێنێتەوە — بیتەکان ون دەبن.
Synchronisation of bits: the receiver must sample the signal at the sender's rhythm.هاوکاتکردنی : وەرگر دەبێت بە ڕیتمی نێرەر بپێوێت.CêIT

Layer-1 devices — cables, hubs, repeaters, modems and the radio part of a network card — move or regenerate signals without reading any address; see Repeaters and Hubs.

ئامێرەکانی چینی 1 — کێبڵ، ، ، و بەشی ڕادیۆی — دەگوازنەوە یان دووپاتە بەهێزیان دەکەنەوە بەبێ خوێندنەوەی هیچ ناونیشانێک؛ بڕوانە دووپاتەکەرەوەکان و هەبەکان.

Layer 2: the data link layerچینی 2: چینی بەستەری دراوە

Worked example: a frame on a shared cableنموونەی کارپێکراو: فرەیمێک لەسەر کێبڵێکی هاوبەش

Five stations share one cable, a bus. To keep the example simple, their physical addresses are small numbers: 10, 28, 53, 65 and 87 (real MAC addresses have 48 bits). Station 10 sends a frame to station 87. The header holds the destination address, 87, and the source address, 10; the trailer T2 comes at the end.

پێنج ئامێر یەک کێبڵی هاوبەش بەکار دەهێنن، . بۆ سادەیی، ناونیشانە فیزیکییەکانیان ژمارەی بچووکن: ⁦10⁩، ⁦28⁩، ⁦53⁩، ⁦65⁩ و ⁦87⁩ ( ڕاستەقینە ⁦48⁩ ). ئامێری ⁦10⁩ بۆ ئامێری ⁦87⁩ دەنێرێت. سەردێڕەکە ناونیشانی مەبەست ⁦(87)⁩ و ناونیشانی نێرەر ⁦(10)⁩ هەڵدەگرێت؛ ⁦T2⁩ لە کۆتاییدا دێت.

Animation in six steps. Five computers, 10, 28, 53, 65 and 87, hang from one shared cable. Computer 10, highlighted, sends a frame: to 87, from 10, the data and the trailer T2. The frame passes computers 28, 53 and 65; each reads “to 87? not me” and ignores it. At computer 87 the label says “that is me! check, keep, pass up”. Last step: everyone on a shared link sees the frame, only the destination keeps it; real MAC addresses have 48 bits, such as 00-1A-2B-3C-4D-5E, and a switch would send the frame only to 87.
Animation in six steps. Five computers, 10, 28, 53, 65 and 87, hang from one shared cable. Computer 10, highlighted, sends a frame: to 87, from 10, the data and the trailer T2. The frame passes computers 28, 53 and 65; each reads “to 87? not me” and ignores it. At computer 87 the label says “that is me! check, keep, pass up”. Last step: everyone on a shared link sees the frame, only the destination keeps it; real MAC addresses have 48 bits, such as 00-1A-2B-3C-4D-5E, and a switch would send the frame only to 87.
A frame from station 10 to station 87: everyone on the bus sees it, only 87 keeps it. لە ئامێری ⁦10⁩ـەوە بۆ ئامێری ⁦87⁩: هەموو ئامێرەکانی سەر کێبڵەکە دەیبینن، تەنیا ⁦87⁩ هەڵیدەگرێت.CêIT

Every station on the cable receives the signal and reads the destination address. Stations 28, 53 and 65 see “87” and ignore the frame; only station 87 checks the trailer, keeps the frame and passes the data up. Today a switch gives every device its own link and sends the frame only out of the port where 87 is — see Bridges and Switches. You can watch a hub and a switch side by side in the CêIT network lab.

هەموو ئامێرێکی سەر کێبڵەکە وەردەگرێت و ناونیشانی مەبەست دەخوێنێتەوە. ئامێرەکانی ⁦28⁩، ⁦53⁩ و ⁦65⁩ «⁦87⁩» دەبینن و پشتگوێی دەخەن؛ تەنیا ئامێری ⁦87⁩ دەپشکنێت، هەڵدەگرێت و دەداتە سەرەوە. ئەمڕۆ بەستەرێکی تایبەت دەداتە هەموو ئامێرێک و تەنیا لەو دەنێرێت کە ⁦87⁩ـی پێوەیە — بڕوانە پردەکانی ڕایەڵە و سویچەکان. دەتوانیت و لە تەنیشت یەکتر لە تاقیگەی ڕایەڵەی CêITـدا ببینیت.

Layer 2: the data link layerچینی 2: چینی بەستەری دراوە

Two sublayers: LLC and MACدوو ژێرچین: LLC و MAC

The IEEE 802 standards for local networks split the data link layer into two sublayers. The upper one, LLC — logical link control, IEEE 802.2 — faces the network layer: it gives it one common interface and says which network-layer protocol is inside the frame. The lower one, MAC — medium access control — is different for each kind of LAN: Ethernet (IEEE 802.3) and Wi-Fi (IEEE 802.11) each have their own MAC, with their own frame format, addresses, error check and rules for taking turns on the medium.

⁦IEEE 802⁩ بۆ دابەش دەکەن بۆ دوو ژێرچین. ژێرچینی سەرەوە، LLC — ، ⁦IEEE 802.2⁩ — ڕووی لە : هاوبەشی پێ دەدات و دەڵێت کام لە ناو . ژێرچینی خوارەوە، MAC — — بۆ هەر جۆرێکی LAN جیاوازە: ⁦Ethernet (IEEE 802.3)⁩ و ⁦(IEEE 802.11)⁩ هەریەکەیان MACـی خۆیان هەیە، بە شێوەی ، ناونیشان، و یاسای نۆرەگرتنی خۆیان لەسەر .

The network layer (IPv4, IPv6) at the top. Below it the data link layer in two parts: LLC, logical link control (IEEE 802.2), which says which layer-3 protocol is inside and is the same for every 802 LAN; and, under it, two MAC boxes, Ethernet MAC (IEEE 802.3) and Wi-Fi MAC (IEEE 802.11), each handling addresses, frames, the FCS and turns. Under them the physical layer: Ethernet PHY over copper or fibre, and Wi-Fi PHY over radio. Note: most Ethernet frames skip the LLC header and name the protocol in a 2-byte type field (EtherType); Wi-Fi frames carry a small LLC header.چینی ڕایەڵە (IPv4، IPv6) لە سەرەوە. لە ژێریدا چینی بەستەری دراوە بە دوو بەش: LLC، کۆنترۆڵی بەستەری لۆجیکی (IEEE 802.2)، کە دەڵێت کام پرۆتۆکۆڵی چینی 3 لە ناوەوەیە و بۆ هەموو LANێکی 802 وەک یەکە؛ و لە ژێریدا دوو سندووقی MAC، MACـی Ethernet (IEEE 802.3) و MACـی وای‌فای (IEEE 802.11)، کە هەریەکەیان ناونیشان، فرەیم، FCS و نۆرە بەڕێوە دەبەن. لە ژێریاندا چینی فیزیکی: PHYـی Ethernet بە مس یان فایبەر و PHYـی وای‌فای بە ڕادیۆ. تێبینی: زۆربەی فرەیمەکانی Ethernet سەردێڕی LLC بەکار ناهێنن و پرۆتۆکۆڵەکە لە خانەیەکی جۆری 2 بایتیدا ناو دەبەن (EtherType)؛ فرەیمەکانی وای‌فای سەردێڕێکی بچووکی LLC هەڵدەگرن.
LLC on top, a different MAC for each kind of LAN below it.LLC لە سەرەوە، MACـێکی جیاواز بۆ هەر جۆرێکی LAN لە خوارەوە.CêIT

In practice most Ethernet frames carry no LLC header: a 2-byte type field, the EtherType, names the protocol inside, for example IPv4 or IPv6. Wi-Fi frames do carry a small LLC header for the same purpose.

لە کرداردا زۆربەی Ethernet سەردێڕی LLCـیان تێدا نییە: خانەیەکی جۆری 2 ، EtherType، ناوەوە ناو دەبات، بۆ نموونە ⁦IPv4⁩ یان ⁦IPv6⁩. بۆ هەمان مەبەست سەردێڕێکی بچووکی LLC هەڵدەگرن.

Layer 3: the network layerچینی 3: چینی ڕایەڵە

The network layer is responsible for the delivery of individual packets from the source host to the destination host, across many networks and links. The data link layer only gets a frame to the next device; the network layer makes sure that each packet gets from its point of origin to its final destination, successfully and efficiently. Its unit of data is the packet: the data from the transport layer with a network-layer header (H3) in front.

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

Host A, routers R1 and R2, and host B in a row, joined by links. Below, three curved arrows: hop 1 from A to R1, hop 2 from R1 to R2 and hop 3 from R2 to B, each labelled “layer 2: one frame”. Above, one large arrow from A all the way to B: “layer 3: one packet, from A all the way to B — source to destination”. Bottom: every hop has its own frame; the packet inside the frames goes all the way.میوانگر A، ڕێدۆزەکانی R1 و R2 و میوانگر B لە ڕیزێکدا، بە بەستەر بەیەکەوە بەستراون. لە خوارەوە سێ تیری کەوانەیی: بازی 1 لە Aـەوە بۆ R1، بازی 2 لە R1ـەوە بۆ R2 و بازی 3 لە R2ـەوە بۆ B، هەریەکە بە ناوی «چینی 2: یەک فرەیم». لە سەرەوە یەک تیری گەورە لە Aـەوە تا B: «چینی 3: یەک پاکێت، لە Aـەوە تا B — لە سەرچاوەوە بۆ جێی مەبەست». لە خوارەوە: هەر بازێک فرەیمی خۆی هەیە؛ پاکێتی ناو فرەیمەکان تا کۆتایی ڕێگا دەڕوات.
Layer 2 delivers hop to hop; layer 3 delivers from the source to the destination.چینی 2 دەگەیەنێت؛ چینی 3 لە سەرچاوەوە بۆ جێی مەبەست دەگەیەنێت.CêIT

It does this with two tools. Logical addressing: every device gets an address that also says which network it is on — an IP address, IPv4 or IPv6. Routing: choosing the best path to the destination. Routing protocols such as OSPF, IS-IS, EIGRP and BGP help routers learn the paths; you will meet them in the routing course.

ئەم کارە بە دوو ئامراز دەکات. ناونیشانکردنی لۆجیکی: هەر ئامێرێک ناونیشانێک وەردەگرێت کە دەڵێت لەسەر کام — ، ⁦IPv4⁩ یان ⁦IPv6⁩. : هەڵبژاردنی باشترین ڕێگا بەرەو جێی مەبەست. وەک OSPF، ⁦IS-IS⁩، EIGRP و BGP یارمەتی دەدەن ڕێگاکان فێر ببن؛ لە کۆرسی دەیانناسیت.

Definitionپێناسە

Layer 3 of the : it gives every device a logical address (an ) and moves packets from the source host to the destination host across many networks, choosing the route (). In TCP/IP it is called the internet layer.

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

Layer 3: the network layerچینی 3: چینی ڕایەڵە

Forwarding and routingپێشڕۆکردن و ڕێدۆزی

To move packets across many networks, the network layer gives two related services. Forwarding — older books call it switching — moves each packet that arrives at a router to the right outgoing link: read the destination address, look it up in the routing table, send the packet out. Routing builds that table: routers exchange information and work out the best paths. A computer in Sulaymaniyah that opens a website hosted in Germany has thousands of possible paths; the routers choose for it, hop by hop.

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

A router's two network-layer jobs. Left, forwarding (older books call it switching): a packet “to 203.0.113.9” enters a router, which looks in its routing table — 203.0.113.0/24 to Gi0/1, 198.51.100.0/24 to Gi0/2 — and sends it out of Gi0/1; this happens for every packet, in microseconds. Right, routing, choosing the best paths: three routers exchange “I can reach …” messages; routing protocols such as OSPF, IS-IS, EIGRP and BGP build the table in the background. Bottom: both are network-layer jobs; nothing is switched or routed at the physical layer.دوو کاری چینی ڕایەڵە لە ڕێدۆزێکدا. لە چەپ، پێشڕۆکردن (کتێبە کۆنەکان پێی دەڵێن سویچکردن): پاکێتێک «بۆ 203.0.113.9» دەچێتە ناو ڕێدۆزێکەوە کە سەیری خشتەی ڕێدۆزییەکەی دەکات — 203.0.113.0/24 بۆ Gi0/1، 198.51.100.0/24 بۆ Gi0/2 — و لە Gi0/1ـەوە دەینێرێت؛ ئەمە بۆ هەموو پاکێتێک و لە چەند مایکرۆچرکەیەکدا دەکرێت. لە ڕاست، ڕێدۆزی، هەڵبژاردنی باشترین ڕێگاکان: سێ ڕێدۆز نامەی «دەتوانم بگەمە …» ئاڵوگۆڕ دەکەن؛ پرۆتۆکۆڵەکانی ڕێدۆزیی وەک OSPF، IS-IS، EIGRP و BGP لە پشتەوە خشتەکە دروست دەکەن. لە خوارەوە: هەردووکیان کاری چینی ڕایەڵەن؛ لە چینی فیزیکیدا نە سویچکردن هەیە و نە ڕێدۆزی.
Forwarding happens for every packet; routing prepares the table in the background. بۆ هەموو دەکرێت؛ لە پشتەوە خشتەکە ئامادە دەکات.CêIT

A packet is not a smaller piece of a segment: it is the segment with an IP header added. Only when a packet is too big for the next link can the network layer cut it into smaller fragments that the destination puts back together — a special case explained in The Network Layer and IPv4.

پارچەیەکی بچووکتری نییە: هەمان کە سەردێڕێکی IPـی بۆ زیاد کراوە. تەنیا کاتێک بۆ بەستەری دواتر زۆر گەورە بێت، دەتوانێت بیکاتە چەند پارچەیەکی بچووکتر کە جێی مەبەست دووپاتە کۆیان دەکاتەوە — حاڵەتێکی تایبەت کە لە چینی ڕایەڵە و ⁦IPv4⁩ـدا ڕوون کراوەتەوە.

Layer 3: the network layerچینی 3: چینی ڕایەڵە

Worked example: from A to P across two routersنموونەی کارپێکراو: لە Aـەوە بۆ P بە ناو دوو ڕێدۆزدا

Three networks are joined by two routers. Computer A — logical address A, physical address 10 — on network 1 sends a packet to computer P — logical address P, physical address 95 — on network 3. Watch the two kinds of address:

سێ بە دوو پێکەوە بەستراون. A — ناونیشانی لۆجیکی A، ناونیشانی فیزیکی ⁦10⁩ — لەسەر 1 بۆ P دەنێرێت — ناونیشانی لۆجیکی P، ناونیشانی فیزیکی ⁦95⁩ — لەسەر 3. سەیری دوو جۆرە ناونیشانەکە بکە:

Animation in six steps. Network 1 holds A (MAC 10) and E (MAC 87) on a switch; router R1 has interfaces F (MAC 20) and T (MAC 99); router R2 has interfaces N (MAC 33) and Z (MAC 66); network 3 holds P (MAC 95) and M (MAC 77). The packet says from IP A to IP P. Hop 1 is highlighted: the frame goes to MAC 20 from MAC 10. R1 removes the frame, reads “to P” and chooses R2. Hop 2: a new frame to MAC 33 from MAC 99. Hop 3: a new frame to MAC 95 from MAC 66, and P keeps it. Last step: a table of the three frames — the MAC addresses change at every hop, the IP addresses stay A and P.
Animation in six steps. Network 1 holds A (MAC 10) and E (MAC 87) on a switch; router R1 has interfaces F (MAC 20) and T (MAC 99); router R2 has interfaces N (MAC 33) and Z (MAC 66); network 3 holds P (MAC 95) and M (MAC 77). The packet says from IP A to IP P. Hop 1 is highlighted: the frame goes to MAC 20 from MAC 10. R1 removes the frame, reads “to P” and chooses R2. Hop 2: a new frame to MAC 33 from MAC 99. Hop 3: a new frame to MAC 95 from MAC 66, and P keeps it. Last step: a table of the three frames — the MAC addresses change at every hop, the IP addresses stay A and P.
One packet from A to P: a new frame on every hop, the same IP addresses all the way.یەک لە Aـەوە بۆ P: لە هەر نوێ، هەمان تا کۆتایی.CêIT
  • Hop 1, network 1: a frame from MAC 10 (A) to MAC 20 (R1's interface F).
  • Hop 2, the link between the routers: R1 builds a new frame from MAC 99 (its interface T) to MAC 33 (R2's interface N).
  • Hop 3, network 3: R2 builds a new frame from MAC 66 (its interface Z) to MAC 95 (P).
  • 1، 1: لە ⁦MAC 10⁩ـەوە ⁦(A)⁩ بۆ ⁦MAC 20⁩ ( Fـی ⁦R1⁩).
  • 2، بەستەری نێوان : ⁦R1⁩ نوێ دروست دەکات لە ⁦MAC 99⁩ـەوە ( Tـی خۆی) بۆ ⁦MAC 33⁩ ( Nـی ⁦R2⁩).
  • 3، ⁦3: R2⁩ نوێ دروست دەکات لە ⁦MAC 66⁩ـەوە ( Zـی خۆی) بۆ ⁦MAC 95 (P)⁩.

So the logical (IP) addresses stay the same from source to destination, while the physical (MAC) addresses change at every hop. A router finds the next MAC address with ARP in IPv4 or with Neighbor Discovery in IPv6 — see ARP; step by step: Hop by hop. Open the “Three networks and two routers” example in the CêIT network lab, send a ping and watch the addresses.

کەواتە ناونیشانە لۆجیکییەکان ⁦(IP)⁩ لە سەرچاوەوە تا جێی مەبەست وەک خۆیان دەمێننەوە، بەڵام ناونیشانە فیزیکییەکان ⁦(MAC)⁩ لە هەر دەگۆڕێن. دواتر لە ⁦IPv4⁩ـدا بە و لە ⁦IPv6⁩ـدا بە Neighbor Discovery دەدۆزێتەوە — بڕوانە ARP؛ هەنگاو بە هەنگاو: باز بە باز. نموونەی «سێ و دوو » لە تاقیگەی ڕایەڵەی CêITـدا بکەرەوە، بنێرە و سەیری ناونیشانەکان بکە.

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

  • “Switching and routing happen at the physical layer.” False: both are network-layer services; layer 1 only carries bits.
  • “The data link layer corrects errors.” Ethernet only detects them with the FCS and drops bad frames; Wi-Fi sends frames again; TCP repairs what is still missing, end to end.
  • Mixing up frame and packet. A frame (layer 2) lives for one hop; the packet (layer 3) inside it travels all the way.
  • Thinking MAC addresses go end to end. They change at every router; IP addresses stay the same.
  • “A hub or a repeater reads addresses.” They work at layer 1 and only regenerate the signal for everyone.
  • Naming IPX or AppleTalk as today's network-layer protocols. In 2026 they are IPv4 and IPv6.
  • Forgetting framing and the trailer when you list the jobs of the data link layer.
  • « و لە ڕوو دەدەن.» هەڵەیە: هەردووکیان خزمەتگوزاریی ؛ چینی 1 تەنیا دەگوازێتەوە.
  • « هەڵەکان ڕاست دەکاتەوە.» Ethernet تەنیا بە FCS دەیاندۆزێتەوە و خراپەکان فڕێ دەدات؛ دووپاتە دەنێرێتەوە؛ TCP ئەوەی هێشتا ون بووە لە سەرێکەوە بۆ سەرەکەی تر چاک دەکاتەوە.
  • تێکەڵکردنی و . (چینی ⁦2⁩) تەنیا بۆ یەک دەژی؛ ناوی (چینی ⁦3⁩) تا کۆتایی ڕێگا دەڕوات.
  • وا بزانیت لە سەرێکەوە بۆ سەرەکەی تر وەک خۆیان دەمێننەوە. لە هەر دەگۆڕێن؛ وەک خۆیان دەمێننەوە.
  • « یان ناونیشان دەخوێنێتەوە.» لە چینی 1دا کار دەکەن و تەنیا بۆ هەمووان دووپاتە بەهێز دەکەنەوە.
  • ناوبردنی IPX یان AppleTalk وەک ئەمڕۆی . لە ⁦2026⁩دا ⁦IPv4⁩ و ⁦IPv6⁩ـن.
  • لەبیرچوونەوەی دروستکردنی و کاتێک کارەکانی دەژمێریت.

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

ExerciseڕاهێنانExam question: the data link layerپرسیاری تاقیکردنەوە: چینی بەستەری دراوە

What is the main responsibility of the data link layer? Explain your answer with a diagram.

بەرپرسیارێتیی سەرەکیی چییە؟ وەڵامەکەت بە هێڵکارییەک ڕوون بکەرەوە.

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

The data link layer moves frames from one hop (node) to the next without errors. Its jobs:

بەبێ هەڵە لە (نۆدێکەوە) بۆ دواتر دەگوازێتەوە. کارەکانی:

  • framing — packing the packet into a frame;
  • physical addressing — the source and destination MAC addresses in the header;
  • error control — the check value (FCS) in the trailer;
  • flow control — not overrunning the next device;
  • access control — taking turns on a shared medium.
  • دروستکردنی — خستنی ناو ؛
  • ناونیشانکردنی فیزیکی — نێرەر و مەبەست لە سەردێڕەکەدا؛
  • — ژمارەی پشکنین ⁦(FCS)⁩ لە ؛
  • — نوقمنەکردنی ئامێری دواتر؛
  • — نۆرەگرتن لەسەر هاوبەش.

Diagram: at the sender, the packet from layer 3 gets the header H2 (with the MAC addresses) at the front and the trailer T2 (the error check) at the end, and the frame goes down to layer 1 as bits. At the receiver, layer 2 checks T2, removes H2 and T2 and passes the packet up to layer 3. See the picture in Layer 2: the data link layer. A complete answer names framing and the trailer — both are often forgotten.

هێڵکاری: لە نێرەردا چینی 3 سەردێڕی ⁦H2⁩ ( تێدایە) لە پێشەوە و ⁦T2⁩ () لە کۆتاییدا وەردەگرێت و وەک دادەبەزێتە چینی 1. لە وەرگردا چینی ⁦2 T2⁩ دەپشکنێت، ⁦H2⁩ و ⁦T2⁩ لادەبات و دەداتە چینی 3. سەیری وێنەکەی چینی 2: چینی بەستەری دراوە بکە. وەڵامێکی تەواو دروستکردنی و ناو دەبات — هەردووکیان زۆرجار لە بیر دەچن.

ExerciseڕاهێنانTrue or falseڕاست یان هەڵە

Say whether each statement is true or false, and correct the false ones. (1) The network layer is responsible for the delivery of individual packets from the source host to the destination host. (2) The two items that happen at the physical layer are switching and routing. (3) On a shared bus every station receives every frame. (4) A router keeps the MAC addresses of a frame and changes its IP addresses.

بڵێ هەر ڕستەیەک ڕاستە یان هەڵە و هەڵەکان ڕاست بکەرەوە. ⁦(1)⁩ بەرپرسە لە گەیاندنی یەک یەک لە سەرچاوەوە بۆ مەبەست. ⁦(2)⁩ ئەو دوو شتەی لە ڕوو دەدەن بریتین لە و . ⁦(3)⁩ لەسەر هەموو ئامێرێک هەموو وەردەگرێت. ⁦(4)⁩ دەهێڵێتەوە و دەگۆڕێت.

Show answerوەڵامەکە پیشان بدە
  • (1) True.
  • (2) False: switching (forwarding) and routing are network-layer services.
  • (3) True: the signal reaches everyone, but only the destination keeps the frame.
  • (4) False: it is the other way round. The router builds a new frame with new MAC addresses; the IP addresses stay the same.
  • ⁦(1)⁩ ڕاستە.
  • ⁦(2)⁩ هەڵەیە: () و خزمەتگوزاریی .
  • ⁦(3)⁩ ڕاستە: دەگاتە هەمووان، بەڵام تەنیا جێی مەبەست هەڵدەگرێت.
  • ⁦(4)⁩ هەڵەیە: پێچەوانەکەیە. نوێ بە نوێوە دروست دەکات؛ وەک خۆیان دەمێننەوە.
ExerciseڕاهێنانHow long does a bit last?بیتێک چەند دەخایەنێت؟

A link runs at 1 Gbit/s. (a) How long does one bit last on the wire? (b) A full Ethernet frame is 1,518 bytes. How long does it take to send it?

بەستەرێک بە ⁦1 Gbit/s⁩ کار دەکات. (ئا) یەک چەند لەسەر وایەرەکە دەخایەنێت؟ (ب) پڕی ⁦Ethernet 1,518⁩ . ناردنی چەندی پێ دەچێت؟

Show answerوەڵامەکە پیشان بدە
tbit=1109 bit/s=1 ns1518×8=12 144 bitstframe=12 144×1 ns=12.144 μs\begin{aligned} t_{bit} &= \frac{1}{10^9\ \text{bit/s}} = 1\ \text{ns} \\ 1518 \times 8 &= 12\,144\ \text{bits} \\ t_{frame} &= 12\,144 \times 1\ \text{ns} = 12.144\ \mu\text{s} \end{aligned}

One bit lasts one nanosecond; the whole frame takes about 12 microseconds — fast, but at 10 Mbit/s the same frame would take 100 times longer.

یەک یەک نانۆچرکە دەخایەنێت؛ هەموو نزیکەی ⁦12⁩ مایکرۆچرکە دەخایەنێت — خێرایە، بەڵام لە ⁦10 Mbit/s⁩ هەمان ⁦100⁩ هێندە زیاتری پێ دەچێت.

Review questionsپرسیارەکانی پێداچوونەوە
The physical layer turns the logical requests of the ___ into hardware operations.چینی فیزیکی داواکارییە لۆجیکییەکانی ⁦___⁩ دەکاتە کاری ڕەقەواڵە.

The data link layer, the layer just above it.

، چینی ڕاستەوخۆ سەرووی.

The data link layer takes packets from the ___ and puts them into frames.چینی بەستەری دراوە پاکێتەکان لە ⁦___⁩ وەردەگرێت و دەیانخاتە ناو فرەیمەکانەوە.

The network layer.

.

What does the header of a frame contain?سەردێڕی فرەیمێک چی تێدایە؟

All of these: addresses, a frame type (what is inside) and the information needed to find where the frame starts — in Ethernet a preamble that synchronises the receiver comes just before it.

هەموو ئەمانە: ناونیشان، جۆری (چی لە ناوەوەیە) و ئەو زانیارییەی بۆ دۆزینەوەی سەرەتای پێویستە — لە Ethernetـدا preamble، کە وەرگر هاوکات دەکات، ڕاستەوخۆ پێش ئەو دێت.

Which OSI layer uses routers and IP addresses so that packets reach the correct system?کام چینی OSI ڕێدۆزەکان و ناونیشانەکانی IP بەکار دەهێنێت تا پاکێتەکان بگەنە سیستەمی دروست؟

The network layer.

.

Which OSI layer adds the source and destination MAC addresses to frames?کام چینی OSI ناونیشانەکانی MACـی نێرەر و مەبەست زیاد دەکات بۆ فرەیمەکان؟

The data link layer.

.

Some networks move data over radio waves. Which OSI layer do the radio waves belong to?هەندێک ڕایەڵە دراوە بە شەپۆلە ڕادیۆییەکان دەگوازنەوە. شەپۆلە ڕادیۆییەکان سەر بە کام چینی OSIـن؟

The physical layer, like cables and fibre: anything that carries the signal from one system to another.

، وەک کێبڵ و فایبەر: هەر شتێک کە لە سیستەمێکەوە بۆ سیستەمێکی تر دەبات.

At which OSI layer do routers work?ڕێدۆزەکان لە کام چینی OSIـدا کار دەکەن؟

The network layer (layer 3).

(چینی ⁦3⁩).

With copper cabling, which layer defines the rules for turning ones and zeros into electrical signals? Which layer deals directly with the hardware?لە کێبڵی مسدا، کام چین یاساکانی کردنی 1 و 0 بە سیگناڵێکی کارەبایی دیاری دەکات؟ کام چین ڕاستەوخۆ مامەڵە لەگەڵ ڕەقەواڵە دەکات؟

The physical layer, in both cases.

، لە هەردوو حاڵەتدا.

Summaryپوختە

  • Layers 1–3 are the network support layers; every router on a path uses them.
  • Physical layer: bits as signals over one link — media, connectors, voltages, bit rate, synchronisation, line configuration, topology and transmission mode.
  • Data link layer: frames hop to hop — framing, MAC addresses, error control with the trailer, flow control and access control; LLC and MAC sublayers in IEEE 802.
  • Network layer: packets from the source host to the destination host — logical (IP) addressing, forwarding and routing.
  • MAC addresses change at every hop; IP addresses stay the same from A to P.
  • چینەکانی 1 تا 3 چینەکانی پشتگیریی ؛ هەموو سەر ڕێگا بەکاریان دەهێنێت.
  • : وەک بە یەک بەستەردا — ، ، ، ، هاوکاتکردن، ، و .
  • : — دروستکردنی ، ، بە ، و ؛ ژێرچینەکانی LLC و MAC لە ⁦IEEE 802⁩ـدا.
  • : لە سەرچاوەوە بۆ مەبەست — ناونیشانکردنی لۆجیکی ⁦(IP)⁩، و .
  • لە هەر دەگۆڕێن؛ لە Aـەوە تا P وەک خۆیان دەمێننەوە.

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

OSI Model Deep DiveKevin Wallace Training, LLC · Englishئینگلیزی · 444K viewsبینین · 16K likesلایک · Partبەشی 3:52–22:42 (ofلە 31:51)

Each of the seven OSI layers with real devices, protocols and examples, from cables and signals up to the application.

هەر یەک لە حەوت چینەکەی بە ئامێر، و نموونەی ڕاستەقینە، لە کێبڵ و تا .

Watch 3:52–22:42: layers 1, 2 and 3 with real devices and protocols.

لە ⁦3:52⁩ تا ⁦22:42⁩ سەیر بکە: چینەکانی 1، 2 و 3 بە ئامێر و ڕاستەقینە.

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

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

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

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

OSI Layers 4 and 5: Transport and Sessionچینەکانی 4 و 5ی OSI: چینی گواستنەوە و چینی سێشن

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