Even if EC2's RAM is all allocated that wouldn't necessarily lead to network congestion, since network usage is workload-dependent. Conversely it would be possible for EC2 to experience network congestion even when its RAM is not full.