Optiva Interview Question

Explain how diameter works in an online charging context.