port1=input port2=output