In electrical engineering, a circulator is a passive, non-reciprocal three- or four-port device that only allows a microwave or radio-frequency signal to exit through the port directly after the one it entered. Optical circulators have similar behavior. Ports are where an external waveguide or transmission line, such as a microstrip line or a coaxial cable, connects to the device. For a three-port circulator, a signal applied to port 1 only comes out of port 2; a signal applied to port 2 only comes out of port 3; a signal applied to port 3 only comes out of port 1, and so on. An ideal three-port circulator has the following scattering matrix: Types Depending on the materials involved, circulators fall into two main categories: ferrite circulators and nonferrite circulators. Ferrite Ferrite circulators are radio-frequency circulators which employ magnetized microwave ferrite materials. They fall into two main classes: differential phase shift circulators and junction circulators, both of which are based on cancellation of waves propagating over two different paths in or near magnetized ferrite material. Waveguide circulators may be of either type, while more compact devices based on stripline are usually of the junction type. Two or more junction circulators can be combined in a single component to give four or more ports. Typically permanent magnets produce a static magnetic bias in the microwave ferrite material. Ferrimagnetic garnet crystal is used in optical circulators. Junction type stripline circulators utilize two ferrite disks above and below the stripline. These ferrites are circularly magnetized in opposite directions. They form two separate resonators with the stripline disk between them. The static magnetic bias alters the effective permeabilities in the top and bottom ferrites. The ferrite whose circular magnetization is in the same direction as the resultant electron spin precession, will see a permeability increase. The ferrite that is magnetized opposite the electron spin precession will see a permeability decrease. These changing permeabilities result in resonant frequency shifts of the two resonators previously mentioned. The operating frequency is set between the two resonances such that the impedance angle of both resonators is set to 30 degrees (for a three port implementation). The ferrite with the higher permeability will have a higher resonance frequency and an inductive reactance component. The lower permeability ferrite has a lower resonance and capacitive reactance component. These circulator types operate based on faraday rotation. Wave cancellation occurs when waves propagate with and