Extract send and receive communication pattern