A. Appendix: MTP as an Internet Protocol transport
MTP is a transport layer protocol, designed to be layered on top of a number of different network layer protocols. Such a protocol must provide certain facilities that MTP expects. In particular, the underlying network level protocol must provide "ports" or "sockets" to facilitate addressing of processes within a machine, and a mechanism for multicast addressing of datagrams. These two addressing facilities are also used to formulate the NSAP for MTP on IP.
A.1 Internet Protocol multicast addressing
MTP on Internet Protocol uses the Internet Protocol multicast mechanisms defined in RFC 1112, "Host Extensions for IP Multicasting". MTP requires "Level 2" conformance described in that paper, for hosts which need to both send and receive multicast packets, both on the local net and on an internet. MTP on Internet Protocol uses the permanent host group address 224.0.1.9.
A.2 Encapsulation
The Internet Protocol does not provide a port mechanism - ports are defined at the transport level instead. In order to encapsulate MTP packet within Internet Protocol packets, a simple convergence or "bridge" protocol must be defined to run on top of Internet Protocol, which will provide MTP with the mechanism needed to deliver packets to the proper processes. We will call this protocol the "MTP/Internet Protocol Bridge Protocol", or just "Bridge". The protocol header is encapsulated the Internet Protocol data - the protocol field of the Internet Protocol packet carries the value indicating this packet is an MTP packet (92 decimal). The MTP packet itself is encapsulated in the Bridge data. Figure A.1 shows the positions of the fields within the MTP packet while table A.1 defines the contents of those fields.
A.3 Fields of the bridge protocol
0 7 8 15 16 23 24 31
----------------------------------------------------------
| | |
| destination port | source port |
----------------------------------------------------------
| | |
| length | checksum |
----------------------------------------------------------
| |
| client data |
----------------------------------------------------------
Figure A.1: MTP bridge protocol header fields
destination port - The port to which the packet is destined or sinked.
source port - The port from which the packet originates or is sourced.
length - The length in octets of the bridged packet, including header and all data (the MTP packet). The minimum value in this field is 8, the maximum is 65535. The length does not include any padding bytes that were used to compute the checksum. Note that though this field allows for very long packets, most networks have significantly shorter maximum frame sizes - the allowable and optimal packet size must be determined by means beyond the scope of this specification.
checksum - The 16 bit one's compliment of the one's compliment sum of the entire bridge protocol header and data, padded with a zero octet (if necessary) to make multiple 16 bit quanities. A computed checksum of all zeros should be changed to all ones. The checksum field is optional - all zeros in the field indicate that checksums are not in use.
data - The data field is the field that carries the actual transport data. A single MTP packet will be carried the data field of each bridge packet.
A.4 Relationship to other Internet Protocol Transports
The astute reader might note that the MTP/Bridge Protocol looks much like the User Datagram Protocol (UDP). UDP itself was not used because the protocol field in the Internet Protocol packet should reflect the fact that the higher level protocol of interest is MTP.