TCP Reliability- Guaranteed and Ordered Delivery التسليم المرتب والمضمون
•
TCP can also help maintain the flow of packets so that
devices do not become overloaded.
يمكن أن يساعد TCP
أيضًا في الحفاظ على تدفق الحزم بحيث لا تصبح الأجهزة محملة بشكل زائد.
•
There may be times when TCP segments do not arrive at
their destination or arrive out of order.
قد تكون هناك أوقات لا تصل فيها أجزاء
بروتوكول TCP
إلى وجهتها أو تصل خارج الترتيب.
•
All the data must be received and the data in these
segments must be reassembled into the original order.
يجب استلام جميع البيانات ويجب إعادة
تجميع البيانات في هذه الأجزاء في الترتيب الأصلي.
•
Sequence numbers are assigned in the header of each
packet to achieve this goal.
ويتم تعيين الأرقام التسلسلية في رأس
كل حزمة لتحقيق هذا الهدف.
TCP Reliability – Data Loss and Retransmission فقدان البيانات وإعادة إرسالها
No matter
how well designed a network is, data loss occasionally occurs.
بغض النظر عن مدى تصميم الشبكة، يحدث فقدان البيانات في بعض الأحيان.
TCP provides
methods of managing these segment losses. Among these is a mechanism to
retransmit segments for unacknowledged data
يوفر بروتوكول TCP طرقًا لإدارة فقدان المقاطع. ومن بين هذه
الطرق، آلية إعادة إرسال المقاطع ذات البيانات التي لم يتم إقرارها.
Host operating systems today typically employ an optional TCP feature called selective acknowledgment (SACK), negotiated during the three-way handshake.
تستخدم أنظمة التشغيل المضيفة اليوم عادةً ميزة TCP
اختيارية تسمى الإقرار الانتقائي (SACK)، والتي تم التفاوض عليها أثناء المصافحة
الثلاثية.
If both
hosts support SACK, the receiver can explicitly acknowledge which segments
(bytes) were received including any discontinuous segments
إذا كان كلا المضيفين يدعم SACK،
يمكن للمستقبل أن يعترف صراحة أي شرائح (بايت) تم تلقيها بما في ذلك أي شرائح
متقطعة.
TCP Flow Control – Window Size and Acknowledgments حجم النافذة والإقرارات
TCP also
provides mechanisms for flow control as follows:
يقدم TCP أيضًا آليات خاصة بالتحكم في التدفق كما
يلي:
•
Flow control is the amount of data that the
destination can receive and process reliably.
التحكم في التدفق هو مقدار البيانات التي يمكن للوجهة تلقيها
ومعالجتها بشكل موثوق.
•
Flow control helps maintain the reliability of TCP
transmission by adjusting the rate of data flow between source and destination
for a given session.
ويساعد التحكم في التدفق في الحفاظ على موثوقية إرسال بروتوكول TCP عن
طريق ضبط معدل تدفق البيانات بين المصدر والوجهة لجلسة معينة.
TCP Flow Control – Maximum Segment Size الحد الأقصى لحجم المقطع
Maximum
Segment Size (MSS) is the maximum amount of data that the destination device
can receive.
الحد الأقصى لحجم المقطع (MSS) هو
الحد الأقصى لمقدار البيانات التي يمكن للجهاز الوجهة الحصول عليها.
•
A common MSS is 1,460 bytes when using IPv4.
•
MSS
المشترك هو 1,460 bytes عند استخدام IPv4.
•
A host determines the value of its MSS field by
subtracting the IP and TCP headers from the Ethernet maximum transmission unit
(MTU), which is 1500 bytes be default.
•
يحدد
المضيف قيمة حقل MSS الخاص به عن طريق طرح رؤوس IP و TCP من
وحدة الإرسال القصوى Ethernet (MTU)، والتي تكون 1500 bytes
بشكل افتراضي.
•
1500 minus 40 (20 bytes for the IPv4 header and 20
bytes for the TCP header) leaves 1460 bytes.
•
1500
نمطروح منها 60 (20 bytes لرأس IPv4 و 20
bytes
لرأس TCP)
يترك 1460 bytes.
TCP Flow Control – Congestion Avoidance تجنب الازدحام
When
congestion occurs on a network, it results in packets being discarded by the
overloaded router.
عندما تزدحم الشبكة، ينتج عن ذلك تجاهل الحزم نتيجة العبء الذي يتحمله
الموجّه.
To avoid
and control congestion, TCP employs several congestion handling mechanisms,
timers, and algorithms.
لتجنب الازدحام والتحكم فيه، يوظف بروتوكول TCP عدة
خوارزميات ومؤقتات وآليات للتعامل معه.