آخر الأخبار

4.5 TCP Communication Process TCP عملية اتصال

TCP Server Processes    عمليات خادم بروتوكول التحكم

Each application process running on a server is configured to use a port number.

كل عملية من عمليات التطبيق قيد التشغيل على الخادم تستخدم رقم منفذ.

        An individual server cannot have two services assigned to the same port number within the same transport layer services.

لا يمكن أن يكون لخادم واحد خدمتان معينتان لنفس رقم المنفذ في نفس خدمات طبقة النقل.

        An active server application assigned to a specific port is considered open, which means that the transport layer accepts, and processes segments addressed to that port.

ويعتبر تطبيق الخادم النشط المعين لمنفذ محدد مفتوحًا، مما يعني قبول طبقة النقل للمقاطع الموجّهة لذلك المنفذ ومعالجتها.

        Any incoming client request addressed to the correct socket is accepted, and the data is passed to the server application.

ويتم قبول أي طلب عميل وارد موجه إلى مأخذ التوصيل الصحيح، كما يتم نقل البيانات إلى تطبيق الخادم.



TCP Connection Establishment       إنشاء اتصال بروتوكول التحكم

Step 1: The initiating client requests a client-to-server communication session with the server.

الخطوة 1: يطلب العميل البادئ جلسة اتصال من عميل إلى خادم مع الخادم.

Step 2: The server acknowledges the client-to-server communication session and requests a server-to-client communication session.

الخطوة 2: يقوم الخادم بإقرار جلسة اتصال العميل إلى الخادم ويطلب جلسة اتصال خادم إلى عميل.

Step 3: The initiating client acknowledges the server-to-client communication session.

الخطوة 3: يقوم العميل البادئ بالإقرار بجلسة اتصال الخادم إلى العميل.



Session Termination   إنهاء جلسة

Step 1: When the client has no more data to send in the stream, it sends a segment with the FIN flag set.

الخطوة 1: عندما لا يكون لدى العميل أية معلومات أخرى ليرسلها في هذا التدفق، فإنه يرسل مقطعًا مع مجموعة إشارة FIN.

Step 2: The server sends an ACK to acknowledge the receipt of the FIN to terminate the session from client to server.

الخطوة 2: يرسل الخادم ACK للإعلام بتسلم FIN لإنهاء الجلسة من العميل إلى الخادم.

Step 3: The server sends a FIN to the client to terminate the server-to-client session.

الخطوة 3: يرسل الخادم FIN، لإنهاء الجلسة من الخادم إلى العميل.

Step 4: The client responds with an ACK to acknowledge the FIN from the server.

الخطوة 4: ويرد العميل بإرسال ACK للإعلام بوصول FIN من الخادم.

 



TCP Three-Way Handshake Analysis    تحليل تأكيد الاتصال ثلاثي الاتجاه لبروتوكول التحكم

Functions of the Three-Way Handshake:                  وظائف المصافحة ثلاثية الاتجاهات

        It establishes that the destination device is present on the network.

التأكد من وجود الجهاز الوجهة على الشبكة.

        It verifies that the destination device has an active service and is accepting requests on the destination port number that the initiating client intends to use.

التحقق من أن جهاز الوجهة يقدم خدمة نشطة ويقبل الطلبات على رقم منفذ الوجهة الذي ينوي العميل البادئ استخدامه.

        It informs the destination device that the source client intends to establish a communication session on that port number.

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

After the communication is completed the sessions are closed, and the connection is terminated. The connection and session mechanisms enable TCP reliability function.

بعد اكتمال الاتصال، يتم إغلاق الجلسات وإنهاء الاتصال. تعمل الآليات الخاصة بالاتصالات والجلسات على تمكين وظيفة موثوقية TCP.

The six control bit flags are as follows:    أعلام ست بت التحكم الستة

        URG - Urgent pointer field significant   حقل المؤشر العاجل مهم

        ACK - Acknowledgment flag used in connection establishment and session termination

علامة الإقرار المستخدمة في إنشاء الاتصال وإنهاء الجلسة

        PSH - Push function          Push  وظيفة

        RST - Reset the connection when an error or timeout occurs

إعادة تعيين الاتصال عند حدوث خطأ أو انتهاء المهلة

        SYN - Synchronize sequence numbers used in connection establishment

مزامنة أرقام التسلسل المستخدمة في إنشاء الاتصال

        FIN - No more data from sender and used in session termination

لا مزيد من البيانات من المرسل وتستخدم في إنهاء الجلسة

 

Post a Comment

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

Previous Post Next Post

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