PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > field of an ip packet. total packet length or total datagram length?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

field of an ip packet. total packet length or total datagram length?

Réponse
 
LinkBack Outils de la discussion
Vieux 25/04/2006, 13h41   #1
q_q_anonymous@yahoo.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut field of an ip packet. total packet length or total datagram length?

I notice that the field in question. total packet length or total
datagram length.

is described in RFC 791 as
Total Datagram Length AND measured in octets.

I saw found a zip file for the kurose book, which has some example
packets involving fragmentation. I loaded them into Ethereal.

The field in question, was clearly
Total Packet Length (not datagram length).

Also, in those packets in the Kurose example, and in any other packets
to and from the internet, it's measured in bytes.

I guess it's alwaysm easured in byes and the RFC is overruled by what
has become practice.

But, is it always Packet Length and not Datagram length? If people
write TCP/IP implementations that mix that up, couldn't there be
serious problems ?
Surely this change from RFC 791 must be documented !

(I guess if it is , it is in richard stevens or perhaps comer too. I
should get those books)

But is that orrect.
That it's packet not datagram?. (this is only significant when
fragmentation occurs)

And of course, bytes not octets

  Réponse avec citation
Vieux 25/04/2006, 13h50   #2
Lew Pitcher
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: field of an ip packet. total packet length or total datagramlength?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

q_q_anonymous@yahoo.co.uk wrote:
> I notice that the field in question. total packet length or total
> datagram length.
>
> is described in RFC 791 as
> Total Datagram Length AND measured in octets.
>
> I saw found a zip file for the kurose book, which has some example
> packets involving fragmentation. I loaded them into Ethereal.
>
> The field in question, was clearly
> Total Packet Length (not datagram length).
>
> Also, in those packets in the Kurose example, and in any other packets
> to and from the internet, it's measured in bytes.


To the untrained eye, bytes and octets are the same.

Octets are explicit groups of 8 bits
Bytes are groups of bits, but not always groups of 8 bits.

Over the years (especially in the last 15-20 years), "byte" has become
synonymous with "octet" in the common tongue.

> I guess it's alwaysm easured in byes and the RFC is overruled by what
> has become practice.


No. It is always measured in octets, and the RFC is enforced. That, to
you, octets and bytes are the same size is immaterial to the RFC or the
implementation.

[snip]



- --

Lew Pitcher, IT Specialist, Corporate Technology Solutions,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEThspagVFX4UWr64RArRRAJ9d+HFHGZZmOYNukUabyJ tgA5g86QCePYL1
jQFUrGjy10TVQyZal86gik8=
=xjb0
-----END PGP SIGNATURE-----
  Réponse avec citation
Vieux 25/04/2006, 14h06   #3
googlegroups@marget.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: field of an ip packet. total packet length or total datagram length?

q_q_anonymous@yahoo.co.uk wrote:
> I notice that the field in question. total packet length or total
> datagram length.
>
> is described in RFC 791 as
> Total Datagram Length AND measured in octets.
>
> I saw found a zip file for the kurose book, which has some example
> packets involving fragmentation. I loaded them into Ethereal.
>
> The field in question, was clearly
> Total Packet Length (not datagram length).
>


RFC 791 seems to be using datagram interchangeably with your (and my)
notion of 'packet'. Also from 791:

To fragment a long internet datagram, an internet protocol
module (for example, in a gateway), creates two new internet
datagrams

I believe this is where the confusion comes from. Substitute 'packet'
for 'datagram' in the text we've both cited and the meaning would be
clear.

In the case of, say, a large UDP datagram in a to-be-fragmented IP
packet, the router performing fragmentation certainly isn't creating
two new UDP datagrams. There's still one UDP datagram, and it spans
the two new IP packets.

You're right that this is confusing terminology, and in conflict with
popular usage. Cisco Press, for example equates 'datagram' with
'L4PDU'.

> Also, in those packets in the Kurose example, and in any other packets
> to and from the internet, it's measured in bytes.
> I guess it's alwaysm easured in byes and the RFC is overruled by what
> has become practice.


'Octet' is an octet of _bits_. An octet of bits is a byte. No problem
there.

/chris marget

  Réponse avec citation
Vieux 25/04/2006, 15h08   #4
q_q_anonymous@yahoo.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: field of an ip packet. total packet length or total datagram length?


googlegroups@marget.com wrote:
> q_q_anonymous@yahoo.co.uk wrote:
> > I notice that the field in question. total packet length or total
> > datagram length.
> >
> > is described in RFC 791 as
> > Total Datagram Length AND measured in octets.
> >
> > I saw found a zip file for the kurose book, which has some example
> > packets involving fragmentation. I loaded them into Ethereal.
> >
> > The field in question, was clearly
> > Total Packet Length (not datagram length).
> >

>
> RFC 791 seems to be using datagram interchangeably with your (and my)
> notion of 'packet'. Also from 791:
>
> To fragment a long internet datagram, an internet protocol
> module (for example, in a gateway), creates two new internet
> datagrams
>
> I believe this is where the confusion comes from. Substitute 'packet'
> for 'datagram' in the text we've both cited and the meaning would be
> clear.



great, thanks, .

It's a shame that some texts pick the one definition over the other and
bang away at it as if the other definition doesn't exist.

Unfortunately, the book "internet core protocols" by eric hall, makes
it seem like a datagram is strictly the original packet that is
reassembled at the destination, and so he says fragmentation identifier
is really a datagram identifier.

>
> In the case of, say, a large UDP datagram in a to-be-fragmented IP
> packet, the router performing fragmentation certainly isn't creating
> two new UDP datagrams. There's still one UDP datagram, and it spans
> the two new IP packets.
>
> You're right that this is confusing terminology, and in conflict with
> popular usage. Cisco Press, for example equates 'datagram' with
> 'L4PDU'.


interesting, I can't find that. do you know what book/page.
In CCNA Intro (with 2005 updates) by Odom, ISBN 1-58720-094-5
P.30
he calls L4PDU a segment (most accurate).

That book corresponds with "The TCP/IP Guide" which says that datagram
when unqualified is IP Datagram- layer 3. But if qualified it can refer
to L4 Datagram. e.g. TCP datagram, UDP datagram.
http://www.tcpipguide.com/free/t_Mes...andCells-2.htm




> > Also, in those packets in the Kurose example, and in any other packets
> > to and from the internet, it's measured in bytes.
> > I guess it's alwaysm easured in byes and the RFC is overruled by what
> > has become practice.

>
> 'Octet' is an octet of _bits_. An octet of bits is a byte. No problem
> there.
>
> /chris marget


yep, a silly mistake on my part.

Fragmentation offset is 13-bit and uses group of 8 *bytes*. so
8192*8=65536
(65536 being max total packet length , and max (original) datagram size
)
(I guess the original datagram shouldn't be bigger than a packet 'cos
internal/local fragmentation is unnecessary)
Shame there's no name for a group of 8 bytes/octets

  Réponse avec citation
Vieux 25/04/2006, 15h28   #5
googlegroups@marget.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: field of an ip packet. total packet length or total datagram length?

q_q_anonymous@yahoo.co.uk wrote:
> googlegroups@marget.com wrote:


> > You're right that this is confusing terminology, and in conflict with
> > popular usage. Cisco Press, for example equates 'datagram' with
> > 'L4PDU'.

>
> interesting, I can't find that. do you know what book/page.
> In CCNA Intro (with 2005 updates) by Odom, ISBN 1-58720-094-5
> P.30
> he calls L4PDU a segment (most accurate).


My mistake. I didn't have any book in front of me at the moment, but
'L4PDU==segment' is probably what I was thinking of.

> > > Also, in those packets in the Kurose example, and in any other packets
> > > to and from the internet, it's measured in bytes.
> > > I guess it's alwaysm easured in byes and the RFC is overruled by what
> > > has become practice.

> >
> > 'Octet' is an octet of _bits_. An octet of bits is a byte. No problem
> > there.


> yep, a silly mistake on my part.
>
> Fragmentation offset is 13-bit and uses group of 8 *bytes*. so
> 8192*8=65536
> (65536 being max total packet length , and max (original) datagram size
> )


I'd guessed you interpreted unqualified 'octet' as 8 bytes. Very
understandable when you've got 8 byte bounded fragmentation on the
brain.

> (I guess the original datagram shouldn't be bigger than a packet 'cos
> internal/local fragmentation is unnecessary)


Not necessarily true. When layer 4 is doing the segmentation on its
own accord (TCP) then you're right. OTOH, I don't think there's
anything to stop an application from sending a >MTU UDP datagram down
to IP, forcing IP to fragment the (cough :-) packet before it leaves
the sending system.

/chris marget

  Réponse avec citation
Vieux 25/04/2006, 23h33   #6
q_q_anonymous@yahoo.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: field of an ip packet. total packet length or total datagram length?


Lew Pitcher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> q_q_anonymous@yahoo.co.uk wrote:
> > I notice that the field in question. total packet length or total
> > datagram length.
> >
> > is described in RFC 791 as
> > Total Datagram Length AND measured in octets.
> >
> > I saw found a zip file for the kurose book, which has some example
> > packets involving fragmentation. I loaded them into Ethereal.
> >
> > The field in question, was clearly
> > Total Packet Length (not datagram length).
> >
> > Also, in those packets in the Kurose example, and in any other packets
> > to and from the internet, it's measured in bytes.

>
> To the untrained eye, bytes and octets are the same.
>
> Octets are explicit groups of 8 bits
> Bytes are groups of bits, but not always groups of 8 bits.
>
> Over the years (especially in the last 15-20 years), "byte" has become
> synonymous with "octet" in the common tongue.


interesting, I wasn't aware of that.

> > I guess it's alwaysm easured in byes and the RFC is overruled by what
> > has become practice.

>
> No. It is always measured in octets, and the RFC is enforced. That, to
> you, octets and bytes are the same size is immaterial to the RFC or the
> implementation.
>
> [snip]
>


yep, my mistake.

thanks

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h13.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15314 seconds with 14 queries