Ethernet Frames
فریم های اترنت در لایه Data Link از مدل لایه OSI 7 قرار دارند. آنها بلوک شبکه پایه شبکه های IP مدرن هستند. به عنوان یک سیستم، داده ها را از سیم فیزیکی خارج می کند، فریم اترنت اولین لایه ای است که باید قبل از خواندن اطلاعات حذف یا حذف شود.
Ethernet
| 8 Bytes |
1 Byte |
6 Bytes |
6 Bytes |
4 Bytes |
2 Bytes |
9000 Bytes (Jumbo Frames) |
4 Bytes |
| Preamble |
SFD (Start Frame Delimeter) |
Destination Address |
Source Address |
VLAN TAG |
Type / Length |
DATA |
Frame Check Sequence (CRC) |
IPv4 و IPv6
هر دو IPv4 و IPv6 در لایه شبکه مدل لایه OSI 7 قرار دارند. آنها آدرس سیستم ها را برای برقراری ارتباط در خارج از Subnet محلی ارائه می دهند. هنگامی که یک سیستم قاب اترنت را قطع کرد، سیستم اطلاعات IP ارائه شده را ارزیابی می کند. IPv4 در سال 1981 به عنوان بخشی از IETF RFC 791 ساخته شد اما برای اولین بار در آن مستقر شد۱۹۸۳با این حال، همانطور که اینترنت رشد کرد، معلوم شد که فضای عمومی IPv4 به طور کامل مصرف خواهد شد که باعث ایجاد IPv6 شد. فضای آدرس IPv4 به طور رسمی از بین رفته است24 سپتامبر 2015.در حال حاضر این IPv6 تنها چیزی است که می تواند از آن خریداری شودARINثبت شماره اینترنت آمریکا.IANAسازمان دهنده جهانی فضای آدرس اینترنتی است و مناطق دیگر وجود دارد.
IPv4 Header
| IPv4 Header (32 bits) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Version |
IHL (header Len) |
Type Of Server (TOS) |
Total Length |
| 4 |
Identification |
IP Flag |
Fragment Offset |
| 8 |
Time To Line (TTL) |
Protocol |
Header Checksum |
| 12 |
Source Address |
| 16 |
Destination Address |
| 20 |
IP Option (Variable Length, Optional, not common) |
IPv6 Header
| IPv6 Header (128 bits) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Version |
Traffic Class |
Flow Label |
| 4 |
Payload Length |
Next Header |
Hop Limit |
| 8-20 |
Source Address |
| 24 - 36 |
Destination Address |
TCP Header
TCP یکی از لایه های عایق نهایی قبل از ورود به سیستم عامل است. سرورها به طور معمول به یک پورت خاص برای یک پروتکل برای عملکرد گوش می دهند. به عنوان مثال یک سرور وب سایت رمزگذاری نشده به طور معمول در پورت TCP 80 گوش می دهد.
| TCP Header (60 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Source Port # (16 bits) |
Destination Port # (16 bits) |
| 4/td>
| Sequence Number (32 bits) |
| 8 |
Acknowledgement Number (32 bits) |
| 12 |
Header Length (4) |
Reserved (6) |
URG |
ACK |
PSH |
RST |
SYN |
FIN |
Window Size (16 bits) |
| 16 |
TCP Checksum (16 bits) |
Urgent Pointer (16 bit) |
| 20 |
Options (if any, variable length, padded with 0's) |
| 24 |
Actual Data Payload |
UDP Header
UDP در همان سطح TCP است که در آن نیز یکی از لایه های نهایی قبل از ورود به سیستم عامل است. سرورها به طور معمول به یک پورت خاص برای یک پروتکل برای عملکرد گوش می دهند. به عنوان مثال یک سرور DHCP در پورت 67 و 68 برای درخواست DHCP ذکر شده است.
| UDP Header (8 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Source Port # (16 bits) |
Destination Port # (16 bits) |
| 4 |
Length (16 bits) |
Checksum (16 bits) |
ICMP Header
ICMP در همان سطح TCP و UDP است اما برای کنترل شبکه با ARP و پینگ استفاده می شود.
| ICMP Header (8 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Type (8 bits) |
Code (8 bits) |
Checksum (16 bits) |
| 4 |
Other Message Specific Information (32 bits) |
IGMP Header
IGMP در همان سطح TCP و UDP و ICMP است اما برای ارتباطات چندcast استفاده می شود. عنوان اصلی: IGMPv1 header
IGMP Header نسخه 1
| IGMP Header Version1 (8 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Version (4 bits) |
Type (4 bits) |
Unused (8 bits) |
Checksum (16 bits) |
| 4 |
Group Address (32 bits) |
IGMP Header Version 2
| IGMP Header Version2 (8 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Type (8 bits) |
Max Response Time (8 bits) |
Checksum (16 bits) |
| 4 |
Group Address (32 bits) |
امنیت پروتکل اینترنت (IPSEC)
IPSEC یک مجموعه پروتکل امنیتی است که برای ارتباطات IP ساخته شده است. هر بسته قبل از انتقال معتبر و رمزگذاری شده است.
IPSEC Authentication Header
| IPSEC Authentication Header(12 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Next Header (8 bits) |
Payload Length (8 bits) |
Reserved (16 bits) |
| 4 |
Security Parameters Index (SPI) (32 bits) |
| 8 |
Sequence Number (32 bits) |
| 16 |
Integrity Check Value (ICV) (32 bits or more as required) |
IPSEC ESP Header
| IPSEC Encapsulating Security Payload (ESP) Header |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Security Parameter Index (SPI) (32 bits) |
| 4 |
Sequence Number (32 bits) |
| 8 |
Payload Data (32 bits or more) |
| ... |
Padding (0 - 255 Bytes) |
| ... |
Padding Length (8 Bytes) |
Next Header (8 Bytes) |
Integrity Check Value (ICV) (4 bytes or more) |
صدور مجوز مسیریابی ژنریک (GRE)
GRE یک پروتکل تونلینگ است که داده های دیگر را شامل می شود. هنگامی که داده ها جمع آوری می شوند، به نظر می رسد که کاربر نهایی نقطه ای برای اشاره به لینک خواهد بود، حتی اگر چندین اتصال تونل وجود داشته باشد. این می تواند برای انتقال یک نوع شبکه، مانند ترافیک مهمان، بیش از یک شبکه دیگر، مانند یک شبکه شرکتی مفید باشد، اگر رمزگذاری لازم نباشد.
| Generic Routing Encapsulation Header(16 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Checksum Present (1 bits) |
Reserved (12 bits) |
Version Number (3 bits) |
Protocol Type (16 bits) |
| 4 |
Checksum (optional) (16 bits) |
Reserved (optional) (16 bits) |
ظرفیت سازی Routing Encapsulation (GRE) – Extended
در سپتامبر ۲۰۰۰، IETF در RFC2890افزونه های اضافه شده به هدر GRE.
| Generic Routing Encapsulation Header(32 Bytes) |
| Starting Byte |
Byte |
Byte |
Byte |
Byte |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
| 0 |
Checksum Present (1 bits) |
Key Present (1 bits) |
Sequence Number Present (1 bits) |
Reserved (12 bits) |
Version Number (3 bits) |
Protocol Type (16 bits) |
| 4 |
Checksum (optional) (16 bits) |
Reserved (optional) (16 bits) |
| 8 |
Key (optional) (32 bits) |
| 12 |
Sequence Number (optional) (32 bits) |
OSI 7 Layer Model
همانطور که این مقاله به مدل لایه OSI 7 اشاره می کند، آن را به عنوان یک درخواست ارجاعی در نظر می گیرد
مقدماتی
جلسه
حمل و نقل
شبکه Network
Data Link
فیزیکی