RFC 1191 describes "Path MTU discovery", a technique for determining the path MTU between two IP hosts, so that IP fragmentation can be avoided.
The details of the fragmentation mechanism, as well as the overall archtectural approach to fragmentation, are different in IPv4, the current version of the Internet Protocol, and IPv6, the newer version.