The little boles are ant nests.
When a giraffe starts to nibble, the ants swarm out to chase the giraffe away.
Then he goes to another branch.
What a perfect system:
The giraffe can't survive without the acacia.
The acacia can't survive without the ants.
The ants can't survive without the acacia.