You are right that it is very difficult and it is quite rare at the top level. At lower levels even more so because players lack the skill and knowledge.
There was a highly instructive game played at the 2018 Isle of Man Masters between Sergey Karjakin and Sam Sevian which demonstrated the mate and some of the principles involved.
As you say the idea is for the side with the knights, let's say White, to blockade the pawn with one of the knights, drive the Black king into a corner and then deliver mate by using the other knight to come over and put the king into what would be a stalemate position were it not for the pawn with mate next move.
There are a number of principles for both the attack and the defense.
- The further up the board the pawn is the more difficult it is to mate because the fewer moves the blockading knight will have before the pawn queens and joins the fray. Once the pawn reaches the 5th rank the mate becomes problematic and on the 6th rank only possible with a Black blunder.
- The closer the pawn is in files to the mating corner the easier it is to mate because then the knight has to make fewer moves. This means the defending king should head for the corner furthest from the pawn.
- If the Black king can attack the blockading knight it can generally force the pawn forward and increase the chance of a draw so the idea for White is to drive the Black king either to the back rank or the side of the board.
- The key "driving" position occurs when the White king and knight are next to each other and the black king is a knight's move in front of the White king. Then the Black king is driven backwards/sideways.
- In general the White king should stay away from the pawn and blockading knight unless it can force the blockading knight to move. The problem being that approaching the pawn also brings the blockading knight into play to block off squares for the White king.
In this game the K+N+N vs K+P endgame starts on move 58
The pawn is finally blockaded on the 5th rank on move 61
The first "driving" position occurs on move 64 with the White king all the way back on the back rank with the White king needing to be driven both backwards and away from the blockading knight.
Further examples of the driving position occur on moves 67, 74, 80 and 84
The Black king is far enough in the corner for white to lift the blockade and use the other knight on move 89. Black doesn't immediately move the pawn.
You can see what would have happened if black had immediately moved the pawn in the variation from Black's move 89 and this is instructive because it shows the stalemate point. Without the pawn White's move 92. Ne7 would be stalemate.
[Title "Karjakin vs Sevian 2018 Isle of Man"]
[fen ""]
[Startply "116"]
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 O-O 8. a4 b4 9. a5 d6 10. d3 Be6 11. Nbd2 Qc8 12. h3 Rb8 13. Nc4 h6 14. Be3 Rd8 15. Qe2 Bf8 16. Nfd2 g6 17. Ba4 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