مكونات الرابط (URL Breakdown)
URL Breakdown
§1
عندما تكتب رابطاً في المتصفح، يتكون هذا الرابط من عدة أجزاء رئيسية :
When you type a URL into your browser, it consists of several key parts :
http://
eestore.net
/product/electric/
phone
Protocol (البروتوكول)
Domain (النطاق)
Path (المسار)
Resource (المورد)
الخطوات الرئيسية عند طلب موقع (Main Steps)
What happens when you type a URL?
§2
عند كتابة الرابط، تمر العملية بعدة خطوات للوصول إلى الخادم وعرض الصفحة :
When typing the URL, the process goes through several steps to reach the server and display the page :
1
كتابة الرابط
Type URL
تقوم بكتابة الرابط في المتصفح (مثال: http://eestore.net/...).
You type the URL in the browser.
2
البحث عن الـ IP (الذاكرة المؤقتة أو DNS)
DNS Lookup (Cache or Resolver)
يبحث المتصفح عن عنوان IP في ذاكرته المؤقتة (Cache) . إذا لم يجده، يقوم باستعلام DNS متكرر (Recursive Lookup) عبر نظام التشغيل للبحث عنه . الغرض هو تحويل اسم النطاق (Domain) إلى عنوان IP .
Browser looks up IP in cache . If not found, it uses recursive DNS lookup through the OS . The goal is to convert the Domain Name to an IP address .
3
المصافحة الثلاثية عبر TCP
TCP Handshake
يؤسس المتصفح اتصال TCP مع الخادم عبر عملية المصافحة الثلاثية (Three-way handshake) .
Browser performs TCP Three-way handshake process with the server .
4
إرسال واستقبال HTTP
HTTP Request & Response
يرسل المتصفح طلب HTTP للخادم، ويرد الخادم باستجابة HTTP التي تحتوي على بيانات الصفحة .
Browser sends HTTP request, and Server replies with HTTP response .