A Gunn diode is a form of diode that consists of only n-doped semiconductor material and exhibits negative differential resistance. It operates by transferring electrons from a region of high electron mobility to a region of low mobility under the influence of an increasing electric field. This causes the overall drift velocity of electrons to decrease with increasing field and enables oscillations. Gunn diodes are commonly used as microwave sources in applications such as radars and intrusion alarms, with gallium arsenide diodes operating up to 200 GHz and gallium nitride diodes reaching as high as 3 THz.