3.2 Peer-to-Peer
Client-Server Model
•
Client and server processes
are considered to be in the application layer.
من
المفترض أن تحدث عمليات العميل والخادم في طبقة التطبيقات.
•
In the client/server model,
the device requesting the information is called a client and the device
responding to the request is called a server.
في
نموذج الخادم/العميل، يسمى الجهاز الذي يطلب المعلومات عميلًا والجهاز الذي يستجيب
للطلب خادمًا.
•
Application layer protocols
describe the format of the requests and responses between clients and servers.
تصف بروتوكولات طبقة التطبيقات تنسيق الطلبات والاستجابات بين العملاء والخوادم.
Peer-to-Peer Networks
•
In a peer-to-peer (P2P)
network, two or more computers are connected via a network and can share
resources (such as printers and files) without having a dedicated server.
•
في شبكة النظير الي النظير (P2P)،
يتم توصيل جهازي كمبيوتر أو أكثر عبر إحدى الشبكات ويمكن مشاركة الموارد (مثل
الطابعات والملفات) فيما بينهما دون الحاجة إلى خادم مخصص.
•
Every connected end device
(known as a peer) can function as both a server and a client.
•
يمكن أن يعمل كل جهاز طرفي متصل (يعرَّف باسم
النظير) كخادم وعميل على السواء.
•
One computer might assume
the role of server for one transaction while simultaneously serving as a client
for another. The roles of client and server are set on a per request basis.
•
وقد يقوم جهاز كمبيوتر واحد بدور الخادم لمعاملة
واحدة في حين يقوم بدور عميل لمعاملة أخرى في نفس الوقت. ويتم تعيين أدوار العميل
والخادم على أساس كل طلب.
Peer-to-Peer Applications
•
A P2P application allows a
device to act as both a client and a server within the same communication.
• يسمح تطبيق P2P للجهاز بالتصرف كعميل وكخادم على حد سواء داخل الاتصال نفسه.
•
Some P2P applications use a
hybrid system where each peer accesses an index server to get the location of a
resource stored on another peer.
•
بعض تطبيقات P2P تستخدم النظام المختلط بحيث يصل كل نظير إلى
خادم الفهرس للحصول على موقع أحد الموارد المخزنة على نظير آخر.
Common P2P Applications
With P2P applications, each computer in the network that is
running the application can act as a client or a server for the other computers
in the network that are also running the application.
بفضل تطبيقات P2P يمكن
لكل جهاز كمبيوتر في الشبكة العمل كعميل أو كخادم لأجهزة الكمبيوتر الأخرى في
الشبكة التي تقوم بتشغيل التطبيق.
تتضمن شبكات P2P
الشائعة:
· BitTorrent · Direct Connect · eDonkey · Freenet