Inter-Layer Communication
The Network Driver (ND) or interface should know the Maximum Transmission Unit (MTU) of the directly attached network.
The IP should ask the Network Driver for the Maximum Transmission Unit.
The TCP should ask the IP for the Maximum Datagram Data Size (MDDS). This is the MTU minus the IP header length (MDDS = MTU - IPHdrLen).
When opening a connection TCP can send an MSS option with the value equal MDDS - TCPHdrLen.
TCP should determine the Maximum Segment Data Size (MSDS) from either the default or the received value of the MSS option.
TCP should determine if source fragmentation is possible (by asking the IP) and desirable.
If so TCP may hand to IP segments (including the TCP header) up to MSDS + TCPHdrLen.
If not TCP may hand to IP segments (including the TCP header) up to the lesser of (MSDS + TCPHdrLen) and MDDS.
IP checks the length of data passed to it by TCP. If the length is less than or equal MDDS, IP attached the IP header and hands it to the ND. Otherwise the IP must do source fragmentation.