1.7 Data Accessالوصول إلى البيانات
Addressesعناوين الشبكة
Both the data link and network layers use addressing to deliver data from
source to destination.
تستخدم كل من وصلة البيانات وطبقات الشبكة العناوين لتسليم البيانات من المصدر إلى الوجهة.
Network layer source and destination addresses - Responsible for delivering
the IP packet from original source to the final destination.
مسؤولة عن توصيل حزمة IP من
المصدر الأصلي إلى الوجهة النهائية.
Data link layer source and destination addresses – Responsible for delivering the data
link frame from one network interface card (NIC) to another NIC on the same
network.
هي المسؤولة عن تسليم إطار ارتباط البيانات من بطاقة واجهة إحدى الشبكات (NIC) إلى البطاقة الأخرى على نفس الشبكة.
Layer 3 Logical Address
The IP packet contains two IP addresses:
• Source IP
address - The
IP address of the sending device,
original source of the packet.
•
عنوان IP
لجهاز الإرسال، والمصدر الأصلي للحزمة.
• Destination
IP address -
The IP address of the receiving device, final destination of the packet.
• عنوان IP لجهاز الاستقبال، والوجهة النهائية للحزمة.
These addresses may be on the same link or remote.
قد تكون هذه العناوين على نفس الرابط أو عن بعد.
An IP address contains two parts:
يتكون عنوان IP من
جزأين هما:
• Network portion (IPv4) or Prefix (IPv6)
•
جزء
الشبكة (IPv4)
أو البادئة (IPv6)
• The left-most
part of the address indicates the network group which the IP address is a
member.
•
الجزء
الواقع أقصى اليسار من العنوان ويشير إلى الشبكة التي ينتمي إليها عنوان IP.
• Each LAN or WAN
will have the same network portion.
•
سيكون
لكل LAN
أو WAN
نفس جزء الشبكة.
• * Host portion (IPv4) or Interface ID (IPv6)
•
جزء
المضيف (IPv4)
أو معرف الواجهة (IPv6)
• The remaining
part of the address identifies a specific device within the group.
•
يُحدد
الجزء المتبقي من العنوان جهازًا معيّنًا ضمن المجموعة.
• This portion is
unique for each device on the network.
•
ويعد
جزء المضيف مميزًا لكل جهاز من الأجهزة الواقعة على الشبكة.
Devices on
the Same Networkالأجهزة الموجودة على الشبكة نفسها
When devices
are on the same network the source and destination will have the same number in
network portion of the address.
وتحتوي جميع الأجهزة الواقعة على نفس الشبكة على نفس هذا الجزء الخاص بالشبكة ضمن عنوانها.
•
PC1 – 192.168.1.110
• FTP Server – 192.168.1.9
Role of the Data Link Layer Addresses: Same IP Network
دور الوصول إلى البيانات لعناوين طبقة ارتباط البيانات: نفس شبكة IP
When devices are on the
same Ethernet network the data link frame will use the actual MAC address of
the destination NIC.
عندما تكون الأجهزة على نفس شبكة
إيثرنت، سيستخدم إطار ارتباط البيانات عنوان MAC
الفعلي لـ NIC
الوجهة.
MAC addresses are physically embedded into the Ethernet NIC and are
local addressing.
ويتم تضمين
عناوين MAC ماديًا على بطاقة NIC لشبكة Ethernet وتكون خاضعة
للعنونة المحلية.
•
The Source
MAC address will be that of the originator on the link.
سيكون عنوان Source MAC هو عنوان المنشئ على الرابط.
•
The Destination
MAC address will always be on the same link as the source, even if the ultimate
destination is remote.
سيكون عنوان Destination MAC دائمًا على نفس الرابط مثل المصدر، حتى لو كانت الوجهة النهائية بعيدة.
Devices on a Remote Network الأجهزة الموجودة على شبكة بعيدة
•
What happens when the actual (ultimate) destination is
not on the same LAN and is remote?
•
ماذا يحدث
عندما لا تكون الوجهة الفعلية (النهائية) على نفس الشبكة المحلية وهي بعيدة؟
•
What happens when PC1 tries to reach the Web Server?
ماذا يحدث عندما يحاول PC1
الوصول إلى خادم الويب؟
•
Does this impact the network and data link layers?
• هل يؤثر ذلك على طبقات ربط الشبكة والبيانات؟
Role of the Network Layer Addressesدور عناوين طبقة الشبكة
When the source and destination have a different network portion, this
means they are on different networks.
عندما يكون للمصدر والوجهة جزء شبكة مختلف، وهذا يعني أنهم على شبكات مختلفة.
• PC1 – 192.168.1
• Web Server – 172.16.1
Role of the Data Link Layer Addresses: Different IP Networks
دور
الوصول إلى البيانات لعناوين طبقة ارتباط البيانات: شبكات IP
مختلفة
When the final destination is remote, Layer 3 will provide Layer 2 with
the local default gateway IP address, also known as the router address.
عندما تكون الوجهة النهائية بعيدة،
ستوفر الطبقة 3 الطبقة 2 بعنوان IP للبوابة الافتراضية المحلية، والمعروف أيضًا
باسم عنوان الموجه.
•
The default gateway (DGW) is the
router interface IP address that is part of this LAN and will be the “door” or
“gateway” to all other remote locations.
• العبارة الافتراضية (DGW) هي عنوان IP واجهة الموجه الذي هو جزء من هذه الشبكة المحلية وسيكون «الباب» أو «البوابة» لجميع المواقع البعيدة الأخرى.
•
All devices on the LAN must be told about this address
or their traffic will be confined to the LAN only.
• يجب إخبار جميع الأجهزة الموجودة على الشبكة المحلية عن هذا العنوان أو ستقتصر حركة المرور الخاصة بها على الشبكة المحلية فقط.
•
Once Layer 2 on PC1 forwards to the default gateway
(Router), the router then can start the routing process of getting the
information to actual destination.
• بمجرد توجيه الطبقة 2 على PC1 إلى البوابة الافتراضية (جهاز التوجيه)، يمكن للموجه بعد ذلك بدء عملية التوجيه للحصول على المعلومات إلى الوجهة الفعلية.
• The data link addressing is local addressing so it
will have a source and destination for each link.
عنوان رابط البيانات هو عنوان محلي لذلك سيكون له مصدر ووجهة لكل رابط.
•
The MAC addressing for the first segment is :
• Source – AA-AA-AA-AA-AA-AA (PC1) Sends the frame.
• Destination –
11-11-11-11-11-11 (R1- Default Gateway MAC) Receives the frame.
Note: While the L2 local addressing will
change from link to link or hop to hop, the L3 addressing remains the same.
ملاحظة: في حين أن العنوان المحلي L2 سيتغير من رابط إلى رابط أو هوب إلى هوب، يبقى العنوان L3 كما هو.
Data Link Addresses
•
Since data link addressing is local addressing, it will have a source and destination for
each segment or hop of the journey to the destination.
•
نظرًا
لأن عنوان رابط البيانات هو عنوان محلي، فسيكون له مصدر ووجهة لكل جزء أو قفزة من
الرحلة إلى الوجهة.
•
The MAC addressing for the first
segment is:
• Source – (PC1 NIC) sends frame
• Destination – (First Router- DGW interface) receives frame
The MAC addressing for the second hop is:
• Source – (First Router- exit interface) sends frame
• Destination – (Second Router) receives frame
The MAC addressing for
the last segment is:
• Source – (Second Router- exit interface) sends frame
• Destination –
(Web Server NIC) receives frame
•
Notice that the packet is not modified, but the frame
is changed, therefore the L3 IP addressing does not change from segment to
segment like the L2 MAC addressing.
•
لاحظ
أن الحزمة لم يتم تعديلها، ولكن يتم تغيير الإطار، وبالتالي لا يتغير عنوان IP L3 من
مقطع إلى مقطع مثل عنوان MAC L2.
•
The L3 addressing remains the same since it is global
and the ultimate destination is still the Web Server.
• لا يزال عنوان L3 كما هو لأنه عالمي والوجهة النهائية لا تزال خادم الويب.