On Tue, 07 Mar 2006 16:46:25 -0800, KAL wrote:
> What happens if a receiver gets a packet with DF set to 1 but can not
> process it? What will it notify the sender?
- First : fragmentation :
Not all networking technology have the same frame size.
Case in point Ethernet and Token Ring.
The MSS (Maximum Segment Size) of an Ethernet network is 1500 Bytes.
The MSS of a Token Ring network is 4500.
The MSS of some other networking technology is only 476 bytes.
So a router transferring a Token Ring frame to an Ethernet network need to
cut that packet in roughly 3 parts. This is why you need to do
fragmentation. Now, since transferring a TCP packet onto that frame
require some headers the number are actually smaller.
Routers will fragment packets too big for the next step on the network
path. Only the destination host will (except for IDS/IPSes) have to
reassemble all the part to make it whole and ordered again. In the case
where the network is not very efficient and loose packets badly, you will
miss parts and your communication will have to manage timeouts and ask for
retries.
All that take time and computer resources. In some cases, it's better if
there is never any fragmentation.
As per in our example, if the 4500 bytes Token ring packet goes to a
router with the DF flag set, then the router will send back to the
originating host an ICMP type 3 with code 4 (Destination Unreachable ) and
(Frag needed and DF set.)
> Also can somebody tell me the size of a UDP frame?
The maximum size of a TCP segment or UDP datagram is 65565 bytes
minus the header size of the IP packet header and the header of the
TCP/UDP part.
Since TCP is more complex than UDP its header take more space.
All of that is is clearly written in the specifications of the protocols
in documents called RFCs. All RFCs can be found at :
http://www.rfc-editor.org
RFC 791 id for IP
RFC 768 is for UDP
and
RFC 793 is for TCP.
Well I hope it help.
>
> Thanks.