1,283 views

3 Answers

1 votes
1 votes
Segmentation and fragmentation are two terms used in computer networking to refer to the process of breaking up data into smaller pieces to transmit over a network. While they are related, they are different concepts.

Segmentation refers to the process of dividing a large piece of data into smaller segments. This is typically done at the transport layer of the network stack, where the data is divided into segments of a fixed size. The purpose of segmentation is to enable the reliable transmission of data over a network, especially when the network has a low Maximum Transmission Unit (MTU). Segmentation ensures that data can be transmitted in smaller chunks that can be reassembled at the receiving end.

Fragmentation, on the other hand, refers to the process of breaking up a packet into smaller pieces to allow it to traverse a network with a smaller MTU. This is typically done at the network layer of the network stack, where packets are divided into smaller pieces called fragments. The fragments are then reassembled at the destination. The purpose of fragmentation is to ensure that packets can be transmitted over a network that has a lower MTU than the packet size.

In summary, segmentation refers to dividing a large piece of data into smaller segments, while fragmentation refers to breaking up a packet into smaller fragments to enable its transmission over a network with a lower MTU.
0 votes
0 votes
Segmentation has been done by the Transport layer. The Application layer sends messages which are passed down to the Transport layer on the sender side. Now messages are too large so they are divided into a group of bytes which is known as segments and each of at-most 65495 bytes. And then each segment is encapsulated in the datagrams.

 But on the other end, Fragmentation is done when the maximum transfer unit of the receiver is less than that of the sender’s Maximum transfer unit.

Maximum Transfer unit means the size of data, one can receive or send.

So in short, it can be easily said that Segmentation is done because the message size is too large for encapsulation (which is done by the below layers), Segmentation has been done by the Transport layer and Fragmentation is done because of concern of maximum transfer unit and done by Intermediate router only and not by source and while doing fragmentation, header part has never been fragmented.