I found a XEP-0198 which can help us to improve messages delivery
It's clear how to use Basic Acking Scenario
But I have some doubts how to use properly Efficient Acking Scenario
For example, user sent 5 messages and then sent r element and received a with h='4' . How he knows which message wasn't delivered to server? which one from 5 messages?