On GCloud, ingress traffic is free whereas egress is charged.
Is this egress charging based on a per-packet basis (purely OSI layer 3), or per-connection?
For example, if an outside server opens a TCP connection to my VM in gcloud, is:
- all traffic created by that connection counted as ingress, or
- all traffic created by that connection counted as egress, or
- each packet that is destined to my VM counted as ingress, and each packet that is destined to the outside server counted as egress? i.e., it does NOT matter which side initiates the conversation.
Thank you.