آخر الأخبار

3.3 Web and Email Protocols بروتوكولات الويب والبريد الالكتروني

 

3.3 Web and Email Protocols  بروتوكولات الويب والبريد الالكتروني

Hypertext Transfer Protocol and Hypertext Markup Language

بروتوكول نقل النص التشعبي وعلامة لغة HyperText

When a web address or Uniform Resource Locator (URL) is typed into a web browser, the web browser establishes a connection to the web service. The web service is running on the server that is using the HTTP protocol.

عندما تتم كتابة عنوان ويب أو محدد مواقع الويب (URL) في مستعرض الويب، ينشئ مستعرض الويب اتصالاً لخدمة الويب. يتم تشغيل خدمة ويب على الخادم الذي يستخدم بروتوكول HTTP.

 To better understand how the web browser and web server interact, examine how a web page is opened in a browser.

لفهم أفضل لكيفية تفاعل مستعرض الويب وخادم الويب، يمكننا شرح كيفية فتح صفحة الويب في المستعرض.

 Step 1

The browser interprets the three parts of the URL:

يفسر المستعرض أجزاء عنوان URL الثلاثة:

         http (the protocol or scheme)

        www.cisco.com (the server name)

        index.html (the specific filename requested)

 

Step 2

The browser then checks with a name server to convert www.cisco.com into a numeric IP address, which it uses to connect to the server.

ثم يقوم المستعرض بعد ذلك، بمراجعة/فحص خادم اسم المجال لتحويل www.cisco.com إلى عنوان رقمي يستخدمه للاتصال بالخادم.

The client initiates an HTTP request to a server by sending a GET request to the server and asks for the index.html file.

يبدأ العميل طلب HTTP إلى خادم عن طريق إرسال طلب GET إلى الملقم ويطلب ملف index.html.

 

Step 3

In response to the request, the server sends the HTML code for this web page to the browser.

استجابة للطلب، يرسل الخادم رمز HTML لصفحة الويب هذه إلى المتصفح.

 



 

Step 4

The browser deciphers the HTML code and formats the page for the browser window.

في النهاية، وكما يظهر في الشكل ، يقوم المستعرض بفك تشفير رمز HTML وتنسيق الصفحة لنافذة المستعرض.

 



  HTTP and HTTPS

HTTP is a request/response protocol that specifies the message types used for that communication.

هو بروتوكول طلب/استجابة يحدد أنواع الرسائل المستخدمة لهذا الاتصال.

 The three common message types are GET, POST, and PUT:

أنواع الرسائل الثلاثة الشائعة هي

·       GET - This is a client request for data. A client (web browser) sends the GET message to the web server to request HTML pages.

رسالة GET فهي طلب عميل للحصول على بيانات. يرسل العميل (مستعرض الويب) رسالة GET إلى خادم الويب لطلب صفحات HTML.

·       POST - This uploads data files to the web server, such as form data.

يقوم برفع ملفات البيانات إلى خادم الويب مثل بيانات النموذج.

 

·       PUT - This uploads resources or content to the web server, such as an image.

 يقوم برفع موارد أو محتوى إلى خادم الويب مثل صورة.

 



Note: HTTP is not a secure protocol. For secure communications sent across the internet, HTTPS should be used

ملاحظة:HTTP ليس بروتوكول آمن. للاتصالات الآمنة المرسلة عبر الإنترنت، يجب استخدام HTTPS.

 Email Protocols بروتوكولات البريد الإلكتروني    

Email is a store-and-forward method of sending, storing, and retrieving electronic messages across a network. Email messages are stored in databases on mail servers. Email clients communicate with mail servers to send and receive email.

حيث يعد البريد الإلكتروني طريقة للتخزين وإعادة التوجيه لإرسال وتخزين واسترداد الرسائل الإلكترونية عبر الشبكة. يتم تخزين رسائل البريد الإلكتروني في قواعد بيانات على خوادم البريد. يتصل عملاء البريد الإلكتروني بخوادم البريد لإرسال رسائل البريد الإلكتروني واستلامها.

The email protocols used for operation are:

بروتوكولات البريد الإلكتروني المستخدمة للتشغيل هي:

 ·        Simple Mail Transfer Protocol (SMTP) – used to send mail.

البروتوكول البسيط لنقل رسائل البريد (SMTP) - تستخدم لإرسال البريد الإلكتروني.

·        Post Office Protocol (POP) & IMAP – used for clients to receive mail.

بروتوكول مكتب البريد (POP) و IMAP - تستخدم للعملاء لتلقي البريد.

 



SMTP, POP and IMAP

        When a client sends email, the client SMTP process connects with a server SMTP process on well-known port 25.

عندما يرسل عميل بريدًا إلكترونيًا، تتصل عملية SMTP العميل بعملية خادم SMTP على المنفذ 25 المعروف.

        After the connection is made, the client attempts to send the email to the server across the connection.

وبعد إجراء الاتصال، يحاول العميل إرسال البريد الإلكتروني إلى الخادم عبر الاتصال.

        When the server receives the message, it either places the message in a local account, if the recipient is local, or forwards the message to another mail server for delivery.

عند استلام الخادم للرسالة، فإنه إما يضع الرسالة في حساب محلي، وذلك إذا كان المستلم محليًا، أو يعيد توجيه الرسالة إلى خادم بريد آخر للتسليم.

        The destination email server may not be online or may be busy. If so, SMTP spools messages to be sent at a later time.

وقد لا يكون خادم البريد الإلكتروني للوجهة متصلاً أو قد يكون مشغولاً. وان حدث ذلك يقوم بروتوكول SMTP بتخزين الرسائل مؤقتًا لإرسالها في وقت لاحق.

 



Note: SMTP message formats require a message header (recipient email address & sender email address) and a message body.

ملاحظة: تتطلب تنسيقات رسائل SMTP رأس رسالة (عنوان البريد الإلكتروني للمستلم وعنوان البريد الإلكتروني المرسل) ونص رسالة.

POP is used by an application to retrieve mail from a mail server. When mail is downloaded from the server to the client using POP the messages are then deleted on the server

يُستخدَم بروتوكول POP بواسطة التطبيق لاسترداد رسائل البريد من خادم البريد. وباستخدام POP، يتم تنزيل البريد من الخادم إلى العميل ثم حذفه من على الخادم. 

        The server starts the POP service by passively listening on TCP port 110 for client connection requests.

يبدأ الخادم خدمة POP عن طريق الاستماع بشكل سلبي على منفذ TCP رقم 110 الخاص بطلبات اتصال العميل.

        When a client wants to make use of the service, it sends a request to establish a TCP connection with the server.

وعندما يرغب عميل في الاستفادة من الخدمة، فإنه يرسل طلبًا لإنشاء اتصال TCP مع الخادم.

        When the connection is established, the POP server sends a greeting.

وعند إنشاء الاتصال، يرسل خادم POP رسالة ترحيب.

        The client and POP server then exchange commands and responses until the connection is closed or aborted.

ثم يتبادل العميل وخادم POP الأوامر والاستجابات حتى إغلاق الاتصال أو إيقافه.

 



Note: Since POP does not store messages, it is not recommended for small businesses that need a centralized backup solution.

ملاحظة: ونظرًا لعدم قيام البروتوكول POP بتخزين رسائل، فإنه من غير المرغوب فيه لدى الشركات الصغيرة التي تحتاج إلى حل يوفر النسخ الاحتياطي المركزي.

IMAP is another protocol that describes a method to retrieve email messages.

أما IMAP فهو بروتوكول آخر يصف طريقة استرداد رسائل البريد الإلكتروني.

        Unlike POP, when a user connects to an IMAP server, copies of the messages are downloaded to the client application. The original messages are kept on the server until manually deleted.

وبخلاف بروتوكول POP، فعند اتصال المستخدم بخادم ممكَّن ببروتوكول IMAP، يتم تنزيل نُسخ الرسائل على تطبيق العميل. تحفظ الرسائل الأصلية على الخادم حتى تُحذف يدويًّا.

         When a user decides to delete a message, the server synchronizes that action and deletes the message from the server.

 وعندما يقرر مستخدم حذف رسالة، يقوم الخادم بمزامنة هذا الإجراء ويحذف الرسالة من الخادم.

 

Post a Comment

إذا كان لديك أي استفسار أو سؤال حول الموضوع، لا تتردد في كتابة تعليقك. سنقوم بالرد عليك في أقرب وقت بعد رؤية تعليقك

Previous Post Next Post

نموذج الاتصال