In today's text we find Jesus confronting Peter in the Upper Room and later we see his behavior in the courtyard while Jesus is under arrest. This is about Peter's awareness. In the Upper Room with Jesus he is aware of how much he loves Him, but he is unaware of how much that love is tempered by his awareness of the world (save your own skin).
Later, his worldly awareness cancels his awareness of Christ. It took the second time the rooster crowed to make him aware of his love for Jesus. Once was not enough!