Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Definition of Network Units: Fragment, Segment, Packet, Frame, Datagram

What units are used in network terminology? Where do we use them?

I know the following - but I'm not sure what their meaning is:

  • Fragment
  • Segment
  • Packet
  • Frame
  • Datagram

Can they be assigned to a specific OSI-Layer? Is it more complex?

like image 906
schmijos Avatar asked Jul 24 '12 17:07

schmijos


People also ask

What is Segment packet and frame?

The PDU of Transport Layer is called as a Segment. The PDU of Network Layer is called as a Packet. The PDU of the Data-Link Layer is called Frames.

What is datagram and Segment?

Segment: If the transport protocol is TCP, the unit of data sent from TCP to network layer is called Segment. Datagram: This is used in 2 layers. If the network protocol is IP, the unit of data is called Datagram. At transport layer, if protocol is UDP, we use datagram there as well.

What are packets and frames?

While a packet is the unit of data used in the network layer, a frame is the unit of data used in the OSI model's data link layer. A frame contains more information about the transmitted message than a packet. In networking, there exist two types of frames: fixed-length and variable-length frames.

What is the unit of network?

A network interface unit (NIU) (sometimes called a network interface device) is a device that serves as a common interface for various other devices within a local area network (LAN), or as an interface to allow networked computers to connect to an outside network.


1 Answers

Taking from Section 1.2 in TCP/IP Illustrated: Vol 1 by Richard Stevens et al., consider the 4 layered TCP/IP stack:

        +-------------+-------------------------+         | Application |  Telnet, FTP, etc       |         +-------------+-------------------------+         | Transport   |  TCP, UDP               |         +-------------+-------------------------+         | Network     |  IP, ICMP               |         +-------------+-------------------------+         | Link        | drivers, interface card |          +-------------+-------------------------+ 

Segment: If the transport protocol is TCP, the unit of data sent from TCP to network layer is called Segment.

Datagram: This is used in 2 layers. If the network protocol is IP, the unit of data is called Datagram. At transport layer, if protocol is UDP, we use datagram there as well. Hence, we differentiate them as UDP Datagram, IP Datagram.

Frame: Physical layer representation.

Packet: It is a more generic term used either transport layer or network layer. TCP Packet, UDP Packet, IP Packet etc. I have not seen it to represent Physical layer data units.

Fragment: My guess here is that when a unit of data is chopped up by a protocol to fit the MTU size, the resultant unit of data is called Fragments. But I am guessing.

like image 83
Bhaskar Avatar answered Nov 08 '22 10:11

Bhaskar