Identify common input and output ports

Input and output ports