Во время задержки в очереди заголовки TCP, IP и Data Link действуют как пакет или 3 разных пакета?

285
夢のの夢

Согласно определению из википедии, я обнаружил, что задержка обработки - это задержка, вызванная обработкой маршрутизатором заголовка пакета. Мне просто интересно, все ли заголовки TCP, IP и Data Link заключены в один пакет или в 3 отдельных?

0

2 ответа на вопрос

1
David Schwartz

It depends what level you are looking at. For example, if you're looking at a packet on an Ethernet network that encapsulates a TCP packet, you'll find the TCP header inside the Ethernet packet. By the time it gets to the IP layer, the Ethernet packet header has been removed.

Вы не совсем правы. Кадр уровня 2 (Ethernet) инкапсулирует пакет уровня 3 (IP), который затем инкапсулирует сегмент уровня 4 (TCP). Маршрутизатор удаляет кадр уровня 2 и маршрутизирует на основе полученного пакета уровня 3, который все еще содержит сегмент уровня 4. Ваше описание звучит так, будто кадр уровня 2 напрямую инкапсулирует сегмент уровня 4. Ron Maupin 8 лет назад 0
Я на самом деле не пытаюсь объяснить связь IP с TCP, потому что TCP не используется каким-либо иным способом, кроме как поверх IP. David Schwartz 8 лет назад 0
0
Frank Thomas

They are all part of the same Protocol Data Unit. The Data link Frame holds in its data region an IP Packet, which itself holds a TCP Segment. It appears wikipedia's article does state "packet", but the linked definition of packet describes a generic protocol data unit at layer 2, not an IP packet as the ISO's OSI model or DARPA ARPANET stack defines it. This may be part of the source of your confusion.

it also may help you to know that routers and switches have a few differant modes for how they buffer and forward frames out bound (Cut-through vs Store-and-Forward), including whether they wait for the whole frame to come in and calculate its Frame check Sequence before making any real decisions about the frame and its interior protocol data. That will potentially dramatically affect the processing delay you are asking about.