بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته .تنسيق عناوين IPv4 مخطط الشبكات بالنسبة للبروتوكولات وطريقة لتحديد العناوين ووسيلة الاتصال في الشبكة
0 4 8 12 16 20 24 28
أعلام و تحديد
بروتوكول رأس اختباري
عنوان المصدر
عنوان الوجهة
خيارات + الحشو (0 أو أكثر من 32 بت كلمة)
معطيات
المزيد من البيانات ...
رأس المحتويات
نسخة
إصدار بروتوكول IP الذي يحدد كيفية تفسير الرأس. حاليا القيم المسموح بها فقط هي 4 (0100) أو 6 (0110). شكل رأس المبين هنا هو صالح ل IPv4 فقط.
طول الرأس إلى عدد من الكلمات 32 بت
نوع الخدمة
وغالبا ما يتم تجاهل هذا المجال من قبل أجهزة التوجيه الحالية ولكن من المفترض أن تسمح حركة المرور إلى إعطاء الأولوية لل(من بين أمور أخرى).
الطول الاجمالي
طول مخطط البيانات بأكمله بما في ذلك رأس والبيانات: الحد الأقصى المسموح به هو 65535 بايت أو 64K.
تحديد وأعلام وجزء الموازنة
هذه القيم تسمح مخططات لتكون مجزأة لنقل وإعادة تجميعها في الوجهة
الوقت للعيش
عدد صحيح وهو decremented في كل جهاز التوجيه "هوب". من المفترض أن يتم تفسيره على أنه عدد الثواني ولكن في كثير من الأحيان يعامل على أنه "عدد القفزات". إذا بلغت نسبة قيمة الصفر يتم تجاهل مخطط البيانات ويتم إرسال رسالة ICMP إلى المضيف المصدر.
بروتوكول
يحدد بروتوكول النقل طبقة التي سوف تفسر قسم البيانات. وسوف يكون هذا عادة TCP أو UDP ولكن القيم الأخرى ممكنة. يتم تحديد البروتوكولات رقم فريد كما هو موضح في قاعدة بيانات على الانترنت في www.iana.org.
رأس اختباري
وتستخدم هذه للتحقق من الرأس، ويتم إعادة حساب في كل مرحلة التوجيه. ترك هذا الحقل من الإصدار IPv6 الذي يعتمد على طبقة النقل للتحقق منها.
عناوين وخيارات
هذه هي عناوين IP 32 بت التي تحدد عنوان الشبكة والمضيف. لاحظ أنه لم يكن لديك IP لتحديد عناوين أي العقد وسيطة. وهذا يمكن أن تترك للجهاز التوجيه. كما يمكن تحديد متطلبات التوجيه في مجال الخيارات، جنبا إلى جنب مع خيارات لعلاقة بالأمن والتصحيح.
IPv4 Datagram Format
0 4 8 12 16 20 24 28
Version IHL Service Type Total Length
Identification Flags Fragment Offset
Time to Live Protocol Header Checksum
Source address
Destination address
Options + Padding (0 or more 32-bit words)
Data
More Data ...
Header Contents
Version
Version of the IP protocol which determines how to interpret the header. Currently the only permitted values are 4 (0100) or 6 (0110). The header format shown here is valid for IPv4 only.
IHL
Length of header as a number of 32-bit words
Type of service
This field is is often ignored by current routers but is meant to allow traffic to be prioritised among other things
Total Length
The length of the entire datagram including header and data: maximum permitted it 65,535 bytes or 64K.
Identification, Flags and Fragment Offset
These values allow datagrams to be fragmented for transmission and reassembled at the destination
Time to live
An integer which is decremented at each router "hop"; supposed to be interpreted as a number of seconds but more often treated as a "hop count". If the value reaches zero the datagram is discarded and an ICMP message is sent to the source host.
Protocol
Identifies the transport-layer protocol which will interpret the Data section. This will typically be TCP or UDP but other values are possible. Protocols are identified by a unique number as listed in an online database at www.iana.org.
Header checksum
This is used to verify the header, and is recomputed at each router hop. This field is left out of IPv6 which relies on the transport layer for verification.
Addresses and Options
These are 32-bit IP addresses which identify the network and host address. Note that IP does not have to specify addresses of any intermediate nodes; this can be left to the router. Routing requirements can also be specified in the Options field, along with options to do with security and debugging.