Diffie-Hellman lets two parties agree a shared secret over an open channel. In SSH the diffie-hellman-group14-sha256 and group-exchange methods are the classic forms, now largely replaced by elliptic curve variants. The capture places a DH negotiation next to ECDH and curve25519 so the KEXINIT lists, the KEXDH_INIT and REPLY messages and the size of the exchanged values can be compared.
SSH sessions using classic Diffie-Hellman group key exchange compared with ECDH and curve25519 negotiation.
SSH Key Exchange Algorithm Comparison (curve25519, ECDH, DH)
Three SSH connections forcing different KEX algorithms: curve25519-sha256, ecdh-sha2-nistp521, and diffie-hellman-group16-sha512. The KEX_INIT packets reveal algorithm proposals and selections. Different algorithms produce different key exchange message sizes and computational patterns.