D3400 - used in the J-series (early) D2s, 3 3/4" x 5" - 35hp-ish
D311 - used in the U-series (later) D2s, 4 x 5", higher hp maybe 40, completely different engine design, but does use the same pony motor, can be interchanged with D3400 with a bit of work (things like bellhousing etc. bolt up but it's not a plug-n-play). Both engines used in other applications as well as D2s