<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-957187747233470584</id><updated>2012-02-16T07:21:59.724-08:00</updated><title type='text'>Nano's Site</title><subtitle type='html'>Article and tutorial free</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-5255504052781075546</id><published>2011-03-13T01:01:00.000-08:00</published><updated>2011-03-13T01:01:20.749-08:00</updated><title type='text'>Mencari uang dollar di onbux</title><content type='html'>&lt;a href="http://www.onbux.com/?r=nanomhusen"&gt;&lt;img border="0" height="60" src="http://www.onbux.com/banner/?bid=1" width="468" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sejarah lahirnya Onbux dimulai pada tanggal 01-Dec-08 namun di kenal  eksis pada tanggal 11-Jun-10, namun pun demikian PTC ini telah  membuktikan bahwa dia salah satu PTC terbaik dengan total payment  sekitar 2,5 juta dollar, Sungguh angka yang fantastis di usianya yang  masih terbilang muda sejak PTC ini eksis. &lt;br /&gt;&lt;br /&gt;Manfaatkan &lt;strong&gt;&lt;a href="" rel="nofollow" target="_blank" title="Peluang bisnis"&gt;Peluang bisnis&lt;/a&gt;&lt;/strong&gt; ini dengan mendaftar di PTC &lt;a href="http://www.onbux.com/?r=nanomhusen" target="_blank"&gt;ONBUX&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-5255504052781075546?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/5255504052781075546/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2011/03/mencari-uang-dollar-di-onbux.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5255504052781075546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5255504052781075546'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2011/03/mencari-uang-dollar-di-onbux.html' title='Mencari uang dollar di onbux'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-2059898662906835561</id><published>2011-03-12T20:14:00.000-08:00</published><updated>2011-03-12T20:14:28.335-08:00</updated><title type='text'>CARA CEPAT MENGISI PAYPAL GRATIS</title><content type='html'>&lt;div style="text-align: justify;"&gt;Bagaimana Cara cepat mengisi &lt;a href="http://mencariuangdiinternet.com/category/paypal/" rel="nofollow" target="_blank" title="paypal"&gt;paypal&lt;/a&gt;  dengan dollar secara gratis? Sangatlah mudah.. dan uang yang bisa anda  hasilkan adalah sebesar $75. mungkin cara ini sedikit kocak dan konyol,  tp silahkan dicoba aja kalo gak percaya…! sebelum melanjutkan  langkah-langkah berikut, sebaiknya anda sudah memiliki &lt;a href="http://mencariuangdiinternet.com/2010/06/08/mencari-uang-dengan-liberty/" target="_blank"&gt;rekening e-currency&lt;/a&gt; paypal dulu.. jika belum punya paypal, silahkan daftar &lt;a href="https://www.paypal.com/id/mrb/pal=62PRJX8GPD6UY" target="_blank"&gt;di sini..&lt;/a&gt;!&lt;span id="more-246"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Trik ini adalah murni dari pengalaman pribadi, dimana kita akan memanfaatkan situs jejaring sosial sebagai media promosi dan &lt;a href="http://www.awsurveys.com/HomeMain.cfm?RefID=nanomhusen" rel="nofollow" target="_blank" title="A.W.Survey"&gt;A.W.Survey&lt;/a&gt; sebagai lahannya. dan untuk jika anda ini mengetahui lebih dalam tentang &lt;a href="http://www.awsurveys.com/HomeMain.cfm?RefID=nanomhusen" target="_blank"&gt;A.W.Survey&lt;/a&gt;, silahkan pelajari di &lt;a href="http://mencariuangdiinternet.com/?p=148" target="_blank"&gt;postingan sebelumnya&lt;/a&gt;.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Adapun langkah-langkahnya adalah sebagai berikut :&lt;/div&gt;&lt;ol style="text-align: justify;"&gt;&lt;li&gt;&lt;a href="http://www.awsurveys.com/HomeMain.cfm?RefID=nanomhusen" rel="nofollow" target="_blank" title="Daftar"&gt;Daftar&lt;/a&gt; dulu di A.W.SURVEY dengan meng-klik &lt;a href="http://www.awsurveys.com/HomeMain.cfm?RefID=nanomhusen" target="_blank"&gt;di sini&lt;/a&gt;.&amp;nbsp;&lt;a href="http://mencariuangdiinternet.com/?p=148" target="_blank"&gt; &lt;/a&gt;&lt;/li&gt;&lt;li&gt;setelah  anda sukses mendaftar dan mendapatkan $27, anda hanya membutuhkan $48  lagi untuk mencapai Payout. dan itu artinya anda tinggal mengajak teman  anda sebanyak 39 orang untuk mencapainya.&lt;/li&gt;&lt;li&gt;Sy yakin anda memiliki teman dekat lebih dari 39 orang..! nah inilah yang kita manfaatkan!&lt;/li&gt;&lt;li&gt;Langkah  selanjutnya adalah, meminta teman dekat anda tersebut untuk bergabung  di A.W.SURVEY dengan menggunakan link referral anda. Untuk melihat link  referal anda, silahkan klik &lt;a href="http://www.awsurveys.com/ReferralLinks.cfm" rel="nofollow" target="_blank"&gt;di sini&lt;/a&gt; (di bawah tulisan &lt;span style="font-family: Verdana;"&gt;&lt;strong&gt;Your Direct Referring Link is below)&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana;"&gt;Untuk  memperlancar misi anda, katakan pada teman anda bahwa anda lagi butuh  duit dan mereka bisa membantu hanya dengan mendaftar di A.W.Survey. dan  jangan lupa yakinkan mereka kalo ente lagi terdesak.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana;"&gt;Ucapkan terima kasih kepada mereka semua yang&amp;nbsp; telah membantumu..&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana;"&gt;Nah,  jika anda tekun, anda hanya butu waktu kurang dari 2 jam mengerjakan  hal ini dan uang sebesar $75 siap untuk di tarik (PO) ke Paypal anda.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Silahkan menggunakan metode chating atau kirim pesan ke teman anda untuk melakukan hal di atas.&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Verdana;"&gt;Selamat mencoba…!&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: justify;"&gt;Catatan  : dengan perbandingan 1:3 antara yang sukses dan gagal.. Sy sarankan  melakukan perlakuan kepada 100 teman dekat anda. dan jika sukses, anda  telah mendapatkan uang cuma-cuma sebesar $75 (Rp 750.000 / kurs 10.000).&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-2059898662906835561?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/2059898662906835561/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2011/03/cara-cepat-mengisi-paypal-gratis.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2059898662906835561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2059898662906835561'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2011/03/cara-cepat-mengisi-paypal-gratis.html' title='CARA CEPAT MENGISI PAYPAL GRATIS'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-9088963063584354770</id><published>2011-03-07T21:08:00.001-08:00</published><updated>2011-03-07T21:08:19.730-08:00</updated><title type='text'>Google Adsense</title><content type='html'>Google AdSense is a new, fast and easy way for small and medium sites  to make money free online by displaying relevant, text-based,  un-obtrusive ads from Google AdWords (Google's own advertising program)  and receiving a share of the pay-per-click payment.&lt;br /&gt;Because the  ads are related to what your users are looking for on your site, the  results can be much better than you'd earn from banner networks and many  affiliate programs.&lt;br /&gt;For now, AdSense is the best way to make  money free online from informational sites even if there are no obvious  related affiliate programs. But you don't need to disregard affiliate  programs. You can combine both these ways to make money free online and  double your income.&lt;br /&gt;AdSense is easy to join, it doesn't cost you  anything, all you have to do is paste a few lines of code into your  pages, and Google does the work of finding the best ads for them from  hundreds of thousands of AdWords advertisers. You can check the  relevance of the ads by looking at the text ads on the right side of  this page.&lt;br /&gt;&lt;h2&gt;How to get started&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Go to &lt;a href="http://www.buildwebsite4u.com/cgi-bin/t.cgi?1google.com/adsense/" target="_blank"&gt;Google AdSense&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Fill in the application form and confirm an email that Google will send you. If you own several sites, you need apply only once.&lt;/li&gt;&lt;li&gt;Google  evaluates your site and will follow-up with you via email within 2-3  days (usually within 24 hours). If you're accepted, you'll be able to  log in to your AdSense account.&lt;/li&gt;&lt;li&gt;Log in to your account using  the email address and password that you submitted with your application,  and agree to the AdSense Terms and Conditions.&lt;/li&gt;&lt;li&gt;Paste the  AdSense ad code into your Web pages. There are 10 ad layout choices:  728x90, 468x60, 125x125, 120x600, 160x600, 120x240, 300x250, 250x250,  336x280, and 180x150. In addition to text ads, you have an option of  running contextually targeted image ads.&lt;br /&gt;You can choose the color  palette from a long list of available palettes or create your own. You  can even rotate your ads through up to 4 palettes.&lt;br /&gt;The AdSense ad code is unique for your account and is not site/page-specific. You can place it on any page or site you own.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;How to get the most out of AdSense&lt;/h2&gt;There are three obvious ways to increase your income from Google AdSense...&lt;br /&gt;&lt;b&gt;1) Increase traffic&lt;/b&gt;&lt;br /&gt;Create more keyword-focused pages. See &lt;a href="http://www.buildwebsite4u.com/building/keywords.shtml"&gt;Building: Site Content: Choosing Keywords&lt;/a&gt; for more information on finding the most profitable keywords.&lt;br /&gt;&lt;b&gt;2) Increase click-through rate&lt;/b&gt;&lt;br /&gt;Use  simple design with the AdSense ads displayed prominently. According to  Google, ads in the skyscraper format works better (especially on the  right side of the page). Focus to only one topic per page - that should  make it easier for Google to serve up the more tightly contextual ads  which means better click-through.&lt;br /&gt;&lt;b&gt;3) Increase the value of clicks&lt;/b&gt;&lt;br /&gt;Of  course, you can't do it directly. However, you can find some  "expensive" keywords and create pages optimized for them, within your  site's theme. These keywords are highly competitive and you'll unlikely  get high ranking for them, but visitors will arrive from other  "inexpensive" pages and click on Google's ads.&lt;br /&gt;To estimate the relative value of a keyword, search for it on &lt;a href="http://www.buildwebsite4u.com/cgi-bin/t.cgi?3findwhat" target="_blank"&gt;FindWhat&lt;/a&gt;. The search results page will show the cost for each listing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-9088963063584354770?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/9088963063584354770/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2011/03/google-adsense.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/9088963063584354770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/9088963063584354770'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2011/03/google-adsense.html' title='Google Adsense'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-5216315411619325230</id><published>2010-05-16T21:02:00.000-07:00</published><updated>2010-05-16T21:02:11.787-07:00</updated><title type='text'>Capacitor</title><content type='html'>&lt;h1 class="firstHeading" id="firstHeading"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;br /&gt;A &lt;b&gt;capacitor&lt;/b&gt; or &lt;b&gt;condenser&lt;/b&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Passivity_%28engineering%29" title="Passivity (engineering)"&gt;passive&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Electronic_component" title="Electronic component"&gt;electronic component&lt;/a&gt; consisting of a pair of &lt;a href="http://en.wikipedia.org/wiki/Electrical_conductor" title="Electrical conductor"&gt;conductors&lt;/a&gt; separated by a &lt;a href="http://en.wikipedia.org/wiki/Dielectric" title="Dielectric"&gt;dielectric&lt;/a&gt; (insulator). When a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Potential_difference" title="Potential difference"&gt;potential difference&lt;/a&gt; (voltage) exists across the conductors, an &lt;a href="http://en.wikipedia.org/wiki/Electric_field" title="Electric field"&gt;electric field&lt;/a&gt; is present in the dielectric. This field stores &lt;a href="http://en.wikipedia.org/wiki/Energy" title="Energy"&gt;energy&lt;/a&gt; and produces a mechanical force between the conductors. The effect is greatest when there is a narrow separation between large areas of conductor, hence capacitor conductors are often called plates.&lt;br /&gt;An ideal capacitor is characterized by a single constant value, &lt;a href="http://en.wikipedia.org/wiki/Capacitance" title="Capacitance"&gt;capacitance&lt;/a&gt;, which is measured in &lt;a href="http://en.wikipedia.org/wiki/Farad" title="Farad"&gt;farads&lt;/a&gt;. This is the ratio of the &lt;a href="http://en.wikipedia.org/wiki/Electric_charge" title="Electric charge"&gt;electric charge&lt;/a&gt; on each conductor to the potential difference between them. In practice, the dielectric between the plates passes a small amount of &lt;a href="http://en.wikipedia.org/wiki/Leakage_%28electronics%29" title="Leakage (electronics)"&gt;leakage current&lt;/a&gt;. The conductors and &lt;a href="http://en.wikipedia.org/wiki/Lead_%28electronics%29" title="Lead (electronics)"&gt;leads&lt;/a&gt; introduce an &lt;a href="http://en.wikipedia.org/wiki/Equivalent_series_resistance" title="Equivalent series resistance"&gt;equivalent series resistance&lt;/a&gt; and the dielectric has an electric field strength limit resulting in a &lt;a href="http://en.wikipedia.org/wiki/Breakdown_voltage" title="Breakdown voltage"&gt;breakdown voltage&lt;/a&gt;.&lt;br /&gt;Capacitors are widely used in electronic circuits to block the flow of &lt;a href="http://en.wikipedia.org/wiki/Direct_current" title="Direct current"&gt;direct current&lt;/a&gt; while allowing &lt;a href="http://en.wikipedia.org/wiki/Alternating_current" title="Alternating current"&gt;alternating current&lt;/a&gt; to pass, to filter out interference, to smooth the output of &lt;a href="http://en.wikipedia.org/wiki/Power_supply" title="Power supply"&gt;power supplies&lt;/a&gt;, and for many other purposes. They are used in &lt;a href="http://en.wikipedia.org/wiki/LC_circuit" title="LC circuit"&gt;resonant circuits&lt;/a&gt; in radio frequency equipment to select particular &lt;a href="http://en.wikipedia.org/wiki/Frequency" title="Frequency"&gt;frequencies&lt;/a&gt; from a signal with many frequencies.&lt;br /&gt;&lt;table class="toc" id="toc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;script type="text/javascript"&gt;//&lt;![CDATA[if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } //]]&gt;&lt;/script&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="History"&gt;History&lt;/span&gt;&lt;/h2&gt;&lt;div class="thumb tleft"&gt;&lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Leidse_flessen_Museum_Boerhave_december_2003_2.jpg"&gt;&lt;img alt="" class="thumbimage" height="293" src="http://1.1.1.5/bmi/upload.wikimedia.org/wikipedia/commons/thumb/2/22/Leidse_flessen_Museum_Boerhave_december_2003_2.jpg/220px-Leidse_flessen_Museum_Boerhave_december_2003_2.jpg" width="220" /&gt;&lt;/a&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Leidse_flessen_Museum_Boerhave_december_2003_2.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Battery of four &lt;a href="http://en.wikipedia.org/wiki/Leyden_jar" title="Leyden jar"&gt;Leyden jars&lt;/a&gt; in Museum Boerhave, &lt;a href="http://en.wikipedia.org/wiki/Leiden" title="Leiden"&gt;Leiden&lt;/a&gt;, the &lt;a href="http://en.wikipedia.org/wiki/Netherlands" title="Netherlands"&gt;Netherlands&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;In October 1745, &lt;a href="http://en.wikipedia.org/wiki/Ewald_Georg_von_Kleist" title="Ewald Georg von Kleist"&gt;Ewald Georg von Kleist&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Pomerania" title="Pomerania"&gt;Pomerania&lt;/a&gt; in Germany found that charge could be stored by connecting a high voltage &lt;a href="http://en.wikipedia.org/wiki/Electrostatic_generator" title="Electrostatic generator"&gt;electrostatic generator&lt;/a&gt; by a wire to a volume of water in a hand-held glass jar.&lt;sup class="reference" id="cite_ref-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Von Kleist's hand and the water acted as conductors and the jar as a dielectric (although details of the mechanism were incorrectly identified at the time). Von Kleist found that after removing the generator, touching the wire resulted in a painful spark. In a letter describing the experiment, he said "I would not take a second shock for the kingdom of France."&lt;sup class="reference" id="cite_ref-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The following year, the Dutch physicist &lt;a href="http://en.wikipedia.org/wiki/Pieter_van_Musschenbroek" title="Pieter van Musschenbroek"&gt;Pieter van Musschenbroek&lt;/a&gt; invented a similar capacitor, which was named the &lt;a href="http://en.wikipedia.org/wiki/Leyden_jar" title="Leyden jar"&gt;Leyden jar&lt;/a&gt;, after the &lt;a href="http://en.wikipedia.org/wiki/Leiden_University" title="Leiden University"&gt;University of Leiden&lt;/a&gt; where he worked.&lt;sup class="reference" id="cite_ref-Dorf_p257_2-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Dorf_p257-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; &lt;a href="http://en.wikipedia.org/wiki/Daniel_Gralath" title="Daniel Gralath"&gt;Daniel Gralath&lt;/a&gt; was the first to combine several jars in parallel into a "battery" to increase the charge storage capacity.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from December 2008"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Benjamin_Franklin" title="Benjamin Franklin"&gt;Benjamin Franklin&lt;/a&gt; investigated the &lt;a href="http://en.wikipedia.org/wiki/Leyden_jar" title="Leyden jar"&gt;Leyden jar&lt;/a&gt; and "proved" that the charge was stored on the glass, not in the water as others had assumed. He also created the term "battery",&lt;sup class="reference" id="cite_ref-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; (as in a &lt;a href="http://en.wikipedia.org/wiki/Artillery_battery" title="Artillery battery"&gt;battery of cannon&lt;/a&gt;), subsequently applied to &lt;a href="http://en.wikipedia.org/wiki/Battery_%28electricity%29" title="Battery (electricity)"&gt;clusters of electrochemical cells&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-5"&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Leyden jars were later to be made by coating the inside and outside of jars with metal foil, leaving a space at the mouth to prevent arcing between the foils.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from December 2008"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; The earliest unit of capacitance was the 'jar', equivalent to about 1 &lt;a href="http://en.wikipedia.org/wiki/Farad" title="Farad"&gt;nanofarad&lt;/a&gt;.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from December 2008"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;br /&gt;Leyden jars or more powerful devices employing flat glass plates alternating with foil conductors were used exclusively up until about 1900, when the invention of &lt;a href="http://en.wikipedia.org/wiki/Wireless_telegraphy" title="Wireless telegraphy"&gt;wireless&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/Radio" title="Radio"&gt;radio&lt;/a&gt;) created a demand for standard capacitors, and the steady move to higher &lt;a href="http://en.wikipedia.org/wiki/Frequency" title="Frequency"&gt;frequencies&lt;/a&gt; required capacitors with lower &lt;a href="http://en.wikipedia.org/wiki/Inductance" title="Inductance"&gt;inductance&lt;/a&gt;. A more compact construction began to be used of a flexible dielectric sheet such as oiled paper sandwiched between sheets of metal foil, rolled or folded into a small package.&lt;br /&gt;Early capacitors were also known as &lt;i&gt;condensers&lt;/i&gt;, a term that is still occasionally used today. The term was first used for this purpose by &lt;a href="http://en.wikipedia.org/wiki/Alessandro_Volta" title="Alessandro Volta"&gt;Alessandro Volta&lt;/a&gt; in 1782, with reference to the device's ability to store a higher density of electric charge than a normal isolated conductor.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from December 2008"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Theory_of_operation"&gt;Theory of operation&lt;/span&gt;&lt;/h2&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Capacitance" title="Capacitance"&gt;Capacitance&lt;/a&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 172px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Capacitor_schematic_with_dielectric.svg"&gt;&lt;img alt="" class="thumbimage" height="187" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Capacitor_schematic_with_dielectric.svg/170px-Capacitor_schematic_with_dielectric.svg.png" width="170" /&gt;&lt;/a&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Capacitor_schematic_with_dielectric.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Charge separation in a parallel-plate capacitor causes an internal electric field. A dielectric (orange) reduces the field and increases the capacitance.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="thumb tleft"&gt;&lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Plattenkondensator_hg.jpg"&gt;&lt;img alt="" class="thumbimage" height="185" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Plattenkondensator_hg.jpg/220px-Plattenkondensator_hg.jpg" width="220" /&gt;&lt;/a&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Plattenkondensator_hg.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A simple demonstration of a parallel-plate capacitor&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;A capacitor consists of two &lt;a href="http://en.wikipedia.org/wiki/Conductor" title="Conductor"&gt;conductors&lt;/a&gt; separated by a non-conductive region.&lt;sup class="reference" id="cite_ref-Ulaby_p168_6-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p168-6"&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The non-conductive substance is called the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Dielectric_medium" title="Dielectric medium"&gt;dielectric medium&lt;/a&gt;, although this may also mean a &lt;a href="http://en.wikipedia.org/wiki/Vacuum" title="Vacuum"&gt;vacuum&lt;/a&gt; or a &lt;a href="http://en.wikipedia.org/wiki/Semiconductor" title="Semiconductor"&gt;semiconductor&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Depletion_region" title="Depletion region"&gt;depletion region&lt;/a&gt; chemically identical to the conductors. A capacitor is assumed to be self-contained and isolated, with no net &lt;a href="http://en.wikipedia.org/wiki/Electric_charge" title="Electric charge"&gt;electric charge&lt;/a&gt; and no influence from an external electric field. The conductors thus contain equal and opposite charges on their facing surfaces,&lt;sup class="reference" id="cite_ref-Ulaby_p157_7-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p157-7"&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and the dielectric contains an electric field. The capacitor is a reasonably general model for electric fields within electric circuits.&lt;br /&gt;An ideal capacitor is wholly characterized by a constant capacitance &lt;i&gt;C&lt;/i&gt;, defined as the ratio of charge ±&lt;i&gt;Q&lt;/i&gt; on each conductor to the voltage &lt;i&gt;V&lt;/i&gt; between them:&lt;sup class="reference" id="cite_ref-Ulaby_p168_6-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p168-6"&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="C= \frac{Q}{V}" class="tex" src="http://1.1.1.3/bmi/upload.wikimedia.org/math/7/8/1/781a869e71826c57260bb1763bef194a.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;Sometimes charge buildup affects the mechanics of the capacitor, causing the capacitance to vary. In this case, capacitance is defined in terms of incremental changes:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="C= \frac{\mathrm{d}q}{\mathrm{d}v}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/2/d/e/2de68c8b3be7ff94b727738d6e17ac93.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;In &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/SI" title="SI"&gt;SI&lt;/a&gt; units, a capacitance of one &lt;a href="http://en.wikipedia.org/wiki/Farad" title="Farad"&gt;farad&lt;/a&gt; means that one &lt;a href="http://en.wikipedia.org/wiki/Coulomb" title="Coulomb"&gt;coulomb&lt;/a&gt; of charge on each conductor causes a voltage of one &lt;a href="http://en.wikipedia.org/wiki/Volt" title="Volt"&gt;volt&lt;/a&gt; across the device.&lt;sup class="reference" id="cite_ref-Ulaby_p169_8-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p169-8"&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Energy_storage"&gt;Energy storage&lt;/span&gt;&lt;/h3&gt;&lt;a href="http://en.wikipedia.org/wiki/Work_%28thermodynamics%29" title="Work (thermodynamics)"&gt;Work&lt;/a&gt; must be done by an external influence to move charge between the conductors in a capacitor. When the external influence is removed, the charge separation persists and energy is stored in the electric field. If charge is later allowed to return to its &lt;a href="http://en.wikipedia.org/wiki/Equilibrium" title="Equilibrium"&gt;equilibrium&lt;/a&gt; position, the energy is released. The work done in establishing the electric field, and hence the amount of energy stored, is given by:&lt;sup class="reference" id="cite_ref-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-9"&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="W= \int_{q=0}^Q V \text{d}q = \int_{q=0}^Q \frac{q}{C} \text{d}q = {1 \over 2} {Q^2 \over C} = {1 \over 2}  C V^2 = {1 \over 2} VQ." class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/b/1/4/b14ec311ae9027c4e725ae1b973c6617.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Current-voltage_relation"&gt;Current-voltage relation&lt;/span&gt;&lt;/h3&gt;The current &lt;i&gt;i&lt;/i&gt;(&lt;i&gt;t&lt;/i&gt;) through a component in an electric circuit is defined as the rate of flow of the charge &lt;i&gt;q&lt;/i&gt;(&lt;i&gt;t&lt;/i&gt;) that has passed through it. Physical charges cannot pass through the dielectric layer of a capacitor, but rather build up in equal and opposite quantities on the electrodes: as each electron accumulates on the negative plate, one leaves the positive plate. Thus the accumulated charge on the electrodes is equal to the &lt;a href="http://en.wikipedia.org/wiki/Integral" title="Integral"&gt;integral&lt;/a&gt; of the current, as well as being proportional to the voltage (as discussed above). As with any &lt;a href="http://en.wikipedia.org/wiki/Antiderivative" title="Antiderivative"&gt;antiderivative&lt;/a&gt;, a &lt;a href="http://en.wikipedia.org/wiki/Constant_of_integration" title="Constant of integration"&gt;constant of integration&lt;/a&gt; is added to represent the initial voltage &lt;i&gt;v&lt;/i&gt; (&lt;i&gt;t&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt;). This is the integral form of the capacitor equation,&lt;sup class="reference" id="cite_ref-Dorf_p263_10-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Dorf_p263-10"&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="v(t)= \frac{q(t)}{C} = \frac{1}{C}\int_{t_0}^t i(\tau) \mathrm{d}\tau+v(t_0)" class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/7/9/5/795a39f1e5a4bf2b547a788d2602d91c.png" /&gt;.&lt;/dd&gt;&lt;/dl&gt;Taking the derivative of this, and multiplying by &lt;i&gt;C&lt;/i&gt;, yields the derivative form,&lt;sup class="reference" id="cite_ref-Dorf_p260_11-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Dorf_p260-11"&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="i(t)= \frac{\mathrm{d}q(t)}{\mathrm{d}t}=C\frac{\mathrm{d}v(t)}{\mathrm{d}t}" class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/3/1/8/3182eafc887ee022793dbb29e0985606.png" /&gt;.&lt;/dd&gt;&lt;/dl&gt;The &lt;a href="http://en.wikipedia.org/wiki/Duality_%28electrical_circuits%29" title="Duality (electrical circuits)"&gt;dual&lt;/a&gt; of the capacitor is the &lt;a href="http://en.wikipedia.org/wiki/Inductor" title="Inductor"&gt;inductor&lt;/a&gt;, which stores energy in the &lt;a href="http://en.wikipedia.org/wiki/Magnetic_field" title="Magnetic field"&gt;magnetic field&lt;/a&gt; rather than the electric field. Its current-voltage relation is obtained by exchanging current and voltage in the capacitor equations and replacing &lt;i&gt;C&lt;/i&gt; with the inductance &lt;i&gt;L&lt;/i&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="DC_circuits"&gt;DC circuits&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink boilerplate seealso"&gt;See also: &lt;a href="http://en.wikipedia.org/wiki/RC_circuit" title="RC circuit"&gt;RC circuit&lt;/a&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:RC_switch.svg"&gt;&lt;img alt="" class="thumbimage" height="121" src="http://1.1.1.1/bmi/upload.wikimedia.org/wikipedia/commons/thumb/9/90/RC_switch.svg/220px-RC_switch.svg.png" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:RC_switch.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A simple resistor-capacitor circuit demonstrates charging of a capacitor.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;A series circuit containing only a &lt;a href="http://en.wikipedia.org/wiki/Resistor" title="Resistor"&gt;resistor&lt;/a&gt;, a capacitor, a switch and a constant DC source of voltage &lt;i&gt;V&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt; is known as a &lt;i&gt;charging circuit&lt;/i&gt;.&lt;sup class="reference" id="cite_ref-ChargingCircuit_12-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-ChargingCircuit-12"&gt;&lt;span&gt;[&lt;/span&gt;13&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; If the capacitor is initially uncharged while the switch is open, and the switch is closed at &lt;i&gt;t&lt;/i&gt; = 0, it follows from &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Kirchhoff%27s_voltage_law" title="Kirchhoff's voltage law"&gt;Kirchhoff's voltage law&lt;/a&gt; that&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="V_0= v_\text{resistor}(t) + v_\text{capacitor}(t) = i(t)R + \frac{1}{C}\int_0^t i(\tau)\mathrm{d}\tau." class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/0/9/7/09737a80dbe546af06db298dda766f0c.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;Taking the derivative and multiplying by &lt;i&gt;C&lt;/i&gt;, gives a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/First-order_differential_equation" title="First-order differential equation"&gt;first-order differential equation&lt;/a&gt;,&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="RC\frac{\mathrm{d}i(t)}{\mathrm{d}t} + i(t) = 0." class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/c/4/c/c4ca79b8be66759c8413efeb73467642.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;At &lt;i&gt;t&lt;/i&gt; = 0, the voltage across the capacitor is zero and the voltage across the resistor is &lt;i&gt;V&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt;. The initial current is then &lt;i&gt;i&lt;/i&gt; (0) =&lt;i&gt;V&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt; /&lt;i&gt;R&lt;/i&gt;. With this assumption, the differential equation yields&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="i(t)= \frac{V_0}{R} e^{\,^{\textstyle -t/\tau_0}}" class="tex" src="http://1.1.1.4/bmi/upload.wikimedia.org/math/2/c/4/2c407669187a342a314a2b47662df875.png" /&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img alt="v(t)= V_0 \left( 1 - e^{\,^{\textstyle -t/\tau_0}}\right)," class="tex" src="http://1.1.1.4/bmi/upload.wikimedia.org/math/0/e/9/0e9c60dabe2bbb0df6defa5984b1422f.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;where &lt;i&gt;τ&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt; = &lt;i&gt;RC&lt;/i&gt; is the &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Time_constant" title="Time constant"&gt;time constant&lt;/a&gt;&lt;/i&gt; of the system.&lt;br /&gt;As the capacitor reaches equilibrium with the source voltage, the voltage across the resistor and the current through the entire circuit &lt;a href="http://en.wikipedia.org/wiki/Exponential_decay" title="Exponential decay"&gt;decay exponentially&lt;/a&gt;. The case of &lt;i&gt;discharging&lt;/i&gt; a charged capacitor likewise demonstrates exponential decay, but with the initial capacitor voltage replacing &lt;i&gt;V&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt; and the final voltage being zero.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="AC_circuits"&gt;AC circuits&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink boilerplate seealso"&gt;See also: &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Reactance_%28electronics%29" title="Reactance (electronics)"&gt;reactance (electronics)&lt;/a&gt;&amp;nbsp;and &lt;a href="http://en.wikipedia.org/wiki/Electrical_impedance#Deriving_the_device_specific_impedances" title="Electrical impedance"&gt;electrical impedance#Deriving the device specific impedances&lt;/a&gt;&lt;/div&gt;&lt;a href="http://en.wikipedia.org/wiki/Electrical_impedance" title="Electrical impedance"&gt;Impedance&lt;/a&gt;, the vector sum of &lt;a href="http://en.wikipedia.org/wiki/Electrical_reactance" title="Electrical reactance"&gt;reactance&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Electrical_resistance" title="Electrical resistance"&gt;resistance&lt;/a&gt;, describes the phase difference and the ratio of amplitudes between sinusoidally varying voltage and sinusoidally varying current at a given frequency. &lt;a href="http://en.wikipedia.org/wiki/Fourier_analysis" title="Fourier analysis"&gt;Fourier analysis&lt;/a&gt; allows any signal to be constructed from a &lt;a href="http://en.wikipedia.org/wiki/Spectrum" title="Spectrum"&gt;spectrum&lt;/a&gt; of frequencies, whence the circuit's reaction to the various frequencies may be found. The reactance and impedance of a capacitor are respectively&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="X= - \frac{1}{\omega C} = - \frac{1}{2\pi f C}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/3/3/1/331f118c5d84ff180213e4ed2a95674a.png" /&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img alt="Z= \frac{1}{j\omega C}= - \frac{j}{\omega C} = - \frac{j}{2\pi f C}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/1/f/8/1f8dd59e64b06fedb3abe561cd33bc56.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;where &lt;i&gt;j&lt;/i&gt; is the &lt;a href="http://en.wikipedia.org/wiki/Imaginary_unit" title="Imaginary unit"&gt;imaginary unit&lt;/a&gt; and &lt;i&gt;ω&lt;/i&gt; is the &lt;a href="http://en.wikipedia.org/wiki/Angular_velocity" title="Angular velocity"&gt;angular velocity&lt;/a&gt; of the sinusoidal signal. The &lt;i&gt;- j&lt;/i&gt; phase indicates that the AC voltage &lt;i&gt;V&lt;/i&gt; = &lt;i&gt;Z I&lt;/i&gt; lags the AC current by 90°: the positive current phase corresponds to increasing voltage as the capacitor charges; zero current corresponds to instantaneous constant voltage, etc.&lt;br /&gt;Note that impedance decreases with increasing capacitance and increasing frequency. This implies that a higher-frequency signal or a larger capacitor results in a lower voltage amplitude per current amplitude—an AC "short circuit" or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/AC_coupling" title="AC coupling"&gt;AC coupling&lt;/a&gt;. Conversely, for very low frequencies, the reactance will be high, so that a capacitor is nearly an open circuit in AC analysis—those frequencies have been "filtered out".&lt;br /&gt;Capacitors are different from resistors and inductors in that the impedance is &lt;i&gt;inversely&lt;/i&gt; proportional to the defining characteristic, i.e. capacitance.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Parallel_plate_model"&gt;Parallel plate model&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tleft"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Parallel_plate_capacitor.svg"&gt;&lt;img alt="" class="thumbimage" height="176" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/3/35/Parallel_plate_capacitor.svg/220px-Parallel_plate_capacitor.svg.png" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Parallel_plate_capacitor.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Dielectric is placed between two conducting plates, each of area &lt;i&gt;A&lt;/i&gt; and with a separation of &lt;i&gt;d&lt;/i&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;The simplest capacitor consists of two parallel conductive plates separated by a dielectric with &lt;a href="http://en.wikipedia.org/wiki/Permittivity" title="Permittivity"&gt;permittivity&lt;/a&gt; &lt;i&gt;ε&lt;/i&gt; (such as air). The model may also be used to make qualitative predictions for other device geometries. The plates are considered to extend uniformly over an area &lt;i&gt;A&lt;/i&gt; and a charge density ±&lt;i&gt;ρ&lt;/i&gt; = ±&lt;i&gt;Q&lt;/i&gt;/&lt;i&gt;A&lt;/i&gt; exists on their surface. Assuming that the width of the plates is much greater than their separation &lt;i&gt;d&lt;/i&gt;, the electric field near the centre of the device will be uniform with the magnitude &lt;i&gt;E&lt;/i&gt; = &lt;i&gt;ρ/ε&lt;/i&gt;. The voltage is defined as the &lt;a href="http://en.wikipedia.org/wiki/Line_integral" title="Line integral"&gt;line integral&lt;/a&gt; of the electric field between the plates&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="V= \int_0^d E \mathrm{d}z = \int_0^d \frac{\rho}{\varepsilon} \mathrm{d}z = \frac{\rho d}{\varepsilon} = \frac{Qd}{\varepsilon A}." class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/9/1/c/91c79b7e998ca3844943c1e9925cc0f7.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;Solving this for &lt;i&gt;C&lt;/i&gt; = &lt;i&gt;Q&lt;/i&gt;/&lt;i&gt;V&lt;/i&gt; reveals that capacitance increases with area and decreases with separation&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="C= \frac{\varepsilon A}{d}" class="tex" src="http://1.1.1.3/bmi/upload.wikimedia.org/math/2/d/5/2d50bf8ce79de8a30aaa50f1168ead3a.png" /&gt;.&lt;/dd&gt;&lt;/dl&gt;The capacitance is therefore greatest in devices made from materials with a high permittivity.&lt;br /&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Capacitors_in_parallel.svg"&gt;&lt;img alt="" class="thumbimage" height="129" src="http://1.1.1.2/bmi/upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Capacitors_in_parallel.svg/220px-Capacitors_in_parallel.svg.png" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Capacitors_in_parallel.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Several capacitors in parallel.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Networks"&gt;Networks&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink boilerplate seealso"&gt;See also: &lt;a href="http://en.wikipedia.org/wiki/Series_and_parallel_circuits" title="Series and parallel circuits"&gt;Series and parallel circuits&lt;/a&gt;&lt;/div&gt;&lt;dl&gt;&lt;dt&gt;For capacitors in parallel&lt;/dt&gt;&lt;dd&gt;Capacitors in a parallel configuration each have the same applied voltage. Their capacitances add up. Charge is apportioned among them by size. Using the schematic diagram to visualize parallel plates, it is apparent that each capacitor contributes to the total surface area.&lt;/dd&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="C_{eq}= C_1 + C_2 + \cdots + C_n" class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/2/f/5/2f5b978fd081ea63e204909addf3d028.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dt&gt;For capacitors in series&lt;/dt&gt;&lt;/dl&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Capacitors_in_series.svg"&gt;&lt;img alt="" class="thumbimage" height="60" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/7/75/Capacitors_in_series.svg/220px-Capacitors_in_series.svg.png" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Capacitors_in_series.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Several capacitors in series.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;dl&gt;&lt;dd&gt;Connected in series, the schematic diagram reveals that the separation distance, not the plate area, adds up. The capacitors each store instantaneous charge build-up equal to that of every other capacitor in the series. The total voltage difference from end to end is apportioned to each capacitor according to the inverse of its capacitance. The entire series acts as a capacitor &lt;i&gt;smaller&lt;/i&gt; than any of its components.&lt;/dd&gt;&lt;dd&gt;&lt;img alt=" \frac{1}{C_{eq}} = \frac{1}{C_1} + \frac{1}{C_2} + \cdots + \frac{1}{C_n}" class="tex" src="http://1.1.1.4/bmi/upload.wikimedia.org/math/f/a/3/fa34ce461e6988fd973081401cc9790c.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dd&gt;Capacitors are combined in series to achieve a higher working voltage, for example for smoothing a high voltage power supply. The voltage ratings, which are based on plate separation, add up. In such an application, several series connections may in turn be connected in parallel, forming a matrix. The goal is to maximize the energy storage utility of each capacitor without overloading it.&lt;/dd&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dd&gt;Series connection is also used to adapt &lt;a href="http://en.wikipedia.org/wiki/Electrolytic_capacitor" title="Electrolytic capacitor"&gt;electrolytic capacitors&lt;/a&gt; for AC use.&lt;/dd&gt;&lt;/dl&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Non-ideal_behaviour"&gt;Non-ideal behaviour&lt;/span&gt;&lt;/h2&gt;Capacitors deviate from the ideal capacitor equation in a number of ways. Some of these, such as leakage current and parasitic effects are linear, or can be assumed to be linear, and can be dealt with by adding virtual components to the &lt;a href="http://en.wikipedia.org/wiki/Equivalent_circuit" title="Equivalent circuit"&gt;equivalent circuit&lt;/a&gt; of the capacitor. The usual methods of &lt;a href="http://en.wikipedia.org/wiki/Network_analysis_%28electrical_circuits%29" title="Network analysis (electrical circuits)"&gt;network analysis&lt;/a&gt; can then be applied. In other cases, such as with breakdown voltage, the effect is non-linear and normal (i.e., linear) network analysis cannot be used, the effect must be dealt with separately. There is yet another group, which may be linear but invalidate the assumption in the analysis that capacitance is a constant. Such an example is temperature dependence.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Breakdown_voltage"&gt;Breakdown voltage&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Breakdown_voltage" title="Breakdown voltage"&gt;Breakdown voltage&lt;/a&gt;&lt;/div&gt;Above a particular electric field, known as the dielectric strength &lt;i&gt;E&lt;sub&gt;ds&lt;/sub&gt;&lt;/i&gt;, the dielectric in a capacitor becomes conductive. The voltage at which this occurs is called the breakdown voltage of the device, and is given by the product of the dielectric strength and the separation between the conductors,&lt;sup class="reference" id="cite_ref-Ulaby_p170_13-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p170-13"&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;span class="texhtml"&gt;&lt;i&gt;V&lt;/i&gt;&lt;sub&gt;bd&lt;/sub&gt; = &lt;i&gt;E&lt;/i&gt;&lt;sub&gt;ds&lt;/sub&gt;&lt;i&gt;d&lt;/i&gt;&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;The maximum energy that can be stored safely in a capacitor is limited by the breakdown voltage. Due to the scaling of capacitance and breakdown voltage with dielectric thickness, all capacitors made with a particular dielectric have approximately equal maximum &lt;a href="http://en.wikipedia.org/wiki/Energy_density" title="Energy density"&gt;energy density&lt;/a&gt;, to the extent that the dielectric dominates their volume.&lt;sup class="reference" id="cite_ref-14"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-14"&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;For air dielectric capacitors the breakdown field strength is of the order 10&lt;sup&gt;7&lt;/sup&gt; V/m and will be much less when other materials are used for the dielectric. The absolute breakdown voltage of most capacitors is nowhere near such a high number because of the very small distance between the plates. Typical ratings for capacitors used for general &lt;a href="http://en.wikipedia.org/wiki/Electronics" title="Electronics"&gt;electronics&lt;/a&gt; applications range from a few volts to 100V or so. For high voltage applications physically much larger capacitors have to be used. In this field, there are a number of factors that can dramatically reduce the breakdown voltage below the value to be expected by considering the breakdown field strength of the dielectric alone. For one thing, the geometry of the capacitor conductive parts (plates and connecting wires) is important. In particular, sharp edges or points hugely increase the electric field strength at that point and can lead to a local breakdown. Once this starts to happen, the breakdown will quickly "track" through the dielectric till it reaches the opposite plate and cause a short circuit.&lt;sup class="reference" id="cite_ref-15"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-15"&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;The usual breakdown route is that the field strength becomes large enough to pull electrons in the dielectric from their atoms thus causing conduction. Other scenarios are possible, such as impurities in the dielectric, and, if the dielectric is of a crystalline nature, imperfections in the crystal structure can result in an &lt;a href="http://en.wikipedia.org/wiki/Avalanche_breakdown" title="Avalanche breakdown"&gt;avalanche breakdown&lt;/a&gt; as seen in semi-conductor devices. Breakdown voltage is also affected by pressure, humidity and temperature.&lt;sup class="reference" id="cite_ref-16"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-16"&gt;&lt;span&gt;[&lt;/span&gt;17&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Equivalent_circuit"&gt;Equivalent circuit&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 259px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:CircuitosEquivalentesCondensador.png"&gt;&lt;img alt="" class="thumbimage" height="216" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/b/b6/CircuitosEquivalentesCondensador.png" width="257" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:CircuitosEquivalentesCondensador.png" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Two equivalent circuits of a real capacitor&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;An ideal capacitor only stores and releases electrical energy, without dissipating any. In reality, all capacitors have imperfections within the capacitor's material that create resistance. This is specified as the &lt;i&gt;equivalent series resistance&lt;/i&gt; or &lt;b&gt;ESR&lt;/b&gt; of a component. This adds a real component to the impedance:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="R_\text{C}= Z + R_\text{ESR} = \frac{1}{j\omega C} + R_\text{ESR}" class="tex" src="http://1.1.1.3/bmi/upload.wikimedia.org/math/e/3/4/e349b4bd0a0046aecf94d1df419095d6.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;As frequency approaches infinity, the capacitive impedance (or reactance) approaches zero and the ESR becomes significant. As the reactance becomes negligible, power dissipation approaches &lt;i&gt;P&lt;/i&gt;&lt;sub&gt;RMS&lt;/sub&gt;. = &lt;i&gt;V&lt;/i&gt;&lt;sub&gt;RMS&lt;/sub&gt;.² /&lt;i&gt;R&lt;/i&gt;&lt;sub&gt;ESR&lt;/sub&gt;.&lt;br /&gt;Similarly to ESR, the capacitor's leads add &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Equivalent_series_inductance" title="Equivalent series inductance"&gt;equivalent series inductance&lt;/a&gt;&lt;/i&gt; or &lt;b&gt;ESL&lt;/b&gt; to the component. This is usually significant only at relatively high frequencies. As inductive reactance is positive and increases with frequency, above a certain frequency capacitance will be canceled by inductance. High frequency engineering involves accounting for the inductance of all connections and components.&lt;br /&gt;If the conductors are separated by a material with a small conductivity rather than a perfect dielectric, then a small leakage current flows directly between them. The capacitor therefore has a finite parallel resistance,&lt;sup class="reference" id="cite_ref-Ulaby_p169_8-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-Ulaby_p169-8"&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and slowly discharges over time (time may vary greatly depending on the capacitor material and quality).&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Ripple_current"&gt;Ripple current&lt;/span&gt;&lt;/h3&gt;Ripple current is the AC component of an applied source (often a &lt;a href="http://en.wikipedia.org/wiki/Switched-mode_power_supply" title="Switched-mode power supply"&gt;switched-mode power supply&lt;/a&gt;) whose frequency may be constant or varying. Certain types of capacitors, such as electrolytic &lt;a href="http://en.wikipedia.org/wiki/Tantalum" title="Tantalum"&gt;tantalum&lt;/a&gt; capacitors, usually have a rating for maximum ripple current (both in frequency and magnitude). This ripple current can cause damaging heat to be generated within the capacitor due to the current flow across resistive imperfections in the materials used within the capacitor, more commonly referred to as equivalent series resistance (ESR). For example electrolytic tantalum capacitors are limited by ripple current and generally have the highest ESR ratings in the capacitor family, while ceramic capacitors generally have no ripple current limitation and have some of the lowest ESR ratings.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Capacitance_instability"&gt;Capacitance instability&lt;/span&gt;&lt;/h3&gt;The capacitance of certain capacitors decreases as the component ages. In ceramic capacitors, this is caused by degradation of the dielectric. The type of dielectric and the ambient operating and storage temperatures are the most significant aging factors, while the operating voltage has a smaller effect. The aging process may be reversed by heating the component above the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Curie_point" title="Curie point"&gt;Curie point&lt;/a&gt;. Aging is fastest near the beginning of life of the component, and the device stabilizes over time.&lt;sup class="reference" id="cite_ref-17"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-17"&gt;&lt;span&gt;[&lt;/span&gt;18&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Electrolytic capacitors age as the &lt;a href="http://en.wikipedia.org/wiki/Electrolytic_capacitor#Electrical_behavior_of_electrolytics" title="Electrolytic capacitor"&gt;electrolyte evaporates&lt;/a&gt;. In contrast with ceramic capacitors, this occurs towards the end of life of the component.&lt;br /&gt;Temperature dependence of capacitance is usually expressed in parts per million (ppm) per °C. It can usually be taken as a broadly linear function but can be noticeably non-linear at the temperature extremes. The temperature coefficient can be either positive or negative, sometimes even amongst different samples of the same type. In other words, the spread in the range of temperature coefficients can encompass zero. See the data sheet in the leakage current section above for an example.&lt;br /&gt;Capacitors, especially older components, can absorb sound waves resulting in a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Microphonic" title="Microphonic"&gt;microphonic&lt;/a&gt; effect. Vibration moves the plates, causing the capacitance to vary, in turn inducing AC current. Some dielectrics also generate &lt;a href="http://en.wikipedia.org/wiki/Piezoelectricity" title="Piezoelectricity"&gt;piezoelectricity&lt;/a&gt;. The resulting interference is especially problematic in audio applications, potentially causing feedback or unintended recording. In the reverse microphonic effect, the varying electric field between the capacitor plates exerts a physical force, moving them as a speaker. This can generate audible sound, but drains energy and stresses the dielectric and the electrolyte, if any.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Capacitor_types"&gt;Capacitor types&lt;/span&gt;&lt;/h2&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Types_of_capacitor" title="Types of capacitor"&gt;Types of capacitor&lt;/a&gt;&lt;/div&gt;Practical capacitors are available commercially in many different forms. The type of internal dielectric, the structure of the plates and the device packaging all strongly affect the characteristics of the capacitor, and its applications.&lt;br /&gt;Values available range from very low (picofarad range; while arbitrarily low values are in principle possible, stray (parasitic) capacitance in any circuit is the limiting factor) to about 5&amp;nbsp;kF &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Supercapacitor" title="Supercapacitor"&gt;supercapacitors&lt;/a&gt;.&lt;br /&gt;Above approximately 1 microfarad electrolytic capacitors are usually used because of their small size and low cost compared with other technologies, unless their relatively poor stability, life and polarised nature make them unsuitable. Very high capacity supercapacitors use a porous carbon-based electrode material.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Dielectric_materials"&gt;Dielectric materials&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Condensators.JPG"&gt;&lt;img alt="" class="thumbimage" height="81" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/d/de/Condensators.JPG/220px-Condensators.JPG" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Condensators.JPG" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Capacitor materials. From left: multilayer ceramic, ceramic disc, multilayer polyester film, tubular ceramic, polystyrene, metalized polyester film, aluminum electrolytic. Major scale divisions are in centimetres.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;Most types of capacitor include a dielectric spacer, which increases their capacitance. These dielectrics are most often insulators. However, low capacitance devices are available with a vacuum between their plates, which allows extremely high voltage operation and low losses. &lt;a href="http://en.wikipedia.org/wiki/Variable_capacitor" title="Variable capacitor"&gt;Variable capacitors&lt;/a&gt; with their plates open to the atmosphere were commonly used in radio tuning circuits. Later designs use polymer foil dielectric between the moving and stationary plates, with no significant air space between them.&lt;br /&gt;In order to maximise the charge that a capacitor can hold, the dialectric material needs to have as high a &lt;a href="http://en.wikipedia.org/wiki/Permittivity" title="Permittivity"&gt;permittivity&lt;/a&gt; as possible, while also having as high a &lt;a href="http://en.wikipedia.org/wiki/Breakdown_voltage" title="Breakdown voltage"&gt;breakdown voltage&lt;/a&gt; as possible.&lt;br /&gt;Several solid dielectrics are available, including &lt;a href="http://en.wikipedia.org/wiki/Paper" title="Paper"&gt;paper&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Plastic" title="Plastic"&gt;plastic&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Glass" title="Glass"&gt;glass&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Mica" title="Mica"&gt;mica&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Ceramic" title="Ceramic"&gt;ceramic&lt;/a&gt; materials. Paper was used extensively in older devices and offers relatively high voltage performance. However, it is susceptible to water absorption, and has been largely replaced by plastic film capacitors. Plastics offer better stability and aging performance, which makes them useful in timer circuits, although they may be limited to low &lt;a href="http://en.wikipedia.org/wiki/Operating_temperature" title="Operating temperature"&gt;operating temperatures&lt;/a&gt; and frequencies. Ceramic capacitors are generally small, cheap and useful for high frequency applications, although their capacitance varies strongly with voltage and they age poorly. They are broadly categorized as &lt;a href="http://en.wikipedia.org/wiki/EIA_Class_1_dielectric" title="EIA Class 1 dielectric"&gt;class 1 dielectrics&lt;/a&gt;, which have predictable variation of capacitance with temperature or &lt;a href="http://en.wikipedia.org/wiki/EIA_Class_2_dielectric" title="EIA Class 2 dielectric"&gt;class 2 dielectrics&lt;/a&gt;, which can operate at higher voltage. Glass and mica capacitors are extremely reliable, stable and tolerant to high temperatures and voltages, but are too expensive for most mainstream applications. Electrolytic capacitors and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Supercapacitor" title="Supercapacitor"&gt;supercapacitors&lt;/a&gt; are used to store small and larger amounts of energy, respectively, &lt;a href="http://en.wikipedia.org/wiki/Ceramic_capacitor" title="Ceramic capacitor"&gt;ceramic capacitors&lt;/a&gt; are often used in &lt;a href="http://en.wikipedia.org/wiki/LC_circuit" title="LC circuit"&gt;resonators&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Parasitic_capacitance" title="Parasitic capacitance"&gt;parasitic capacitance&lt;/a&gt; occurs in circuits wherever the simple conductor-insulator-conductor structure is formed unintentionally by the configuration of the circuit layout.&lt;br /&gt;Electrolytic capacitors use an &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Aluminum" title="Aluminum"&gt;aluminum&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Tantalum" title="Tantalum"&gt;tantalum&lt;/a&gt; plate with an oxide dielectric layer. The second electrode is a liquid &lt;a href="http://en.wikipedia.org/wiki/Electrolyte" title="Electrolyte"&gt;electrolyte&lt;/a&gt;, connected to the circuit by another foil plate. Electrolytic capacitors offer very high capacitance but suffer from poor tolerances, high instability, gradual loss of capacitance especially when subjected to heat, and high leakage current. The conductivity of the electrolyte drops at low temperatures, which increases equivalent series resistance. While widely used for power-supply conditioning, poor high-frequency characteristics make them unsuitable for many applications. Tantalum capacitors offer better frequency and temperature characteristics than aluminum, but higher &lt;a href="http://en.wikipedia.org/wiki/Permittivity#Lossy_medium" title="Permittivity"&gt;dielectric absorption&lt;/a&gt; and leakage.&lt;sup class="reference" id="cite_ref-18"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-18"&gt;&lt;span&gt;[&lt;/span&gt;19&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; &lt;a href="http://en.wikipedia.org/wiki/OS-CON" title="OS-CON"&gt;OS-CON&lt;/a&gt; (or OC-CON) capacitors are a polymerized organic semiconductor solid-electrolyte type that offer longer life at higher cost than standard electrolytic capacitors.&lt;br /&gt;Several other types of capacitor are available for specialist applications. &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Supercapacitor" title="Supercapacitor"&gt;Supercapacitors&lt;/a&gt; store large amounts of energy. Supercapacitors made from carbon &lt;a href="http://en.wikipedia.org/wiki/Aerogel" title="Aerogel"&gt;aerogel&lt;/a&gt;, carbon nanotubes, or highly porous electrode materials offer extremely high capacitance (up to 5 kF as of 2010&lt;sup class="plainlinks noprint asof-tag update" style="display: none;"&gt;&lt;a class="external text" href="http://en.wikipedia.org/w/index.php?title=Capacitor&amp;amp;action=edit" rel="nofollow"&gt;[update]&lt;/a&gt;&lt;/sup&gt;) and can be used in some applications instead of &lt;a href="http://en.wikipedia.org/wiki/Rechargeable_battery" title="Rechargeable battery"&gt;rechargeable batteries&lt;/a&gt;. &lt;a href="http://en.wikipedia.org/wiki/Alternating_current" title="Alternating current"&gt;Alternating current&lt;/a&gt; capacitors are specifically designed to work on line (mains) voltage AC power circuits. They are commonly used in &lt;a href="http://en.wikipedia.org/wiki/Electric_motor" title="Electric motor"&gt;electric motor&lt;/a&gt; circuits and are often designed to handle large currents, so they tend to be physically large. They are usually ruggedly packaged, often in metal cases that can be easily grounded/earthed. They also are designed with &lt;a href="http://en.wikipedia.org/wiki/Direct_current" title="Direct current"&gt;direct current&lt;/a&gt; breakdown voltages of at least five times the maximum AC voltage.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Structure"&gt;Structure&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tleft"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Photo-SMDcapacitors.jpg"&gt;&lt;img alt="" class="thumbimage" height="165" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/8/86/Photo-SMDcapacitors.jpg/220px-Photo-SMDcapacitors.jpg" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Photo-SMDcapacitors.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Capacitor packages: &lt;a href="http://en.wikipedia.org/wiki/Surface-mount_technology" title="Surface-mount technology"&gt;SMD&lt;/a&gt; ceramic at top left; SMD tantalum at bottom left; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Through-hole" title="Through-hole"&gt;through-hole&lt;/a&gt; tantalum at top right; through-hole electrolytic at bottom right. Major scale divisions are cm.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;The arrangement of plates and dielectric has many variations depending on the desired ratings of the capacitor. For small values of capacitance (microfarads and less), ceramic disks use metallic coatings, with wire leads bonded to the coating. Larger values can be made by multiple stacks of plates and disks. Larger value capacitors usually use a metal foil or metal film layer deposited on the surface of a dielectric film to make the plates, and a dielectric film of impregnated &lt;a href="http://en.wikipedia.org/wiki/Electrical_insulation_paper" title="Electrical insulation paper"&gt;paper&lt;/a&gt; or plastic&amp;nbsp;– these are rolled up to save space. To reduce the series resistance and inductance for long plates, the plates and dielectric are staggered so that connection is made at the common edge of the rolled-up plates, not at the ends of the foil or metalized film strips that comprise the plates.&lt;br /&gt;The assembly is encased to prevent moisture entering the dielectric&amp;nbsp;– early radio equipment used a cardboard tube sealed with wax. Modern paper or film dielectric capacitors are dipped in a hard thermoplastic. Large capacitors for high-voltage use may have the roll form compressed to fit into a rectangular metal case, with bolted terminals and bushings for connections. The dielectric in larger capacitors is often impregnated with a liquid to improve its properties.&lt;br /&gt;Capacitors may have their connecting leads arranged in many configurations, for example axially or radially. "Axial" means that the leads are on a common axis, typically the axis of the capacitor's cylindrical body&amp;nbsp;– the leads extend from opposite ends. Radial leads might more accurately be referred to as tandem; they are rarely actually aligned along radii of the body's circle, so the term is inexact, although universal. The leads (until bent) are usually in planes parallel to that of the flat body of the capacitor, and extend in the same direction; they are often parallel as manufactured.&lt;br /&gt;Small, cheap discoidal ceramic capacitors have existed since the 1930s, and remain in widespread use. Since the 1980s, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Surface_mount" title="Surface mount"&gt;surface mount&lt;/a&gt; packages for capacitors have been widely used. These packages are extremely small and lack connecting leads, allowing them to be soldered directly onto the surface of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Printed_circuit_boards" title="Printed circuit boards"&gt;printed circuit boards&lt;/a&gt;. Surface mount components avoid undesirable high-frequency effects due to the leads and simplify automated assembly, although manual handling is made difficult due to their small size.&lt;br /&gt;Mechanically controlled variable capacitors allow the plate spacing to be adjusted, for example by rotating or sliding a set of movable plates into alignment with a set of stationary plates. Low cost variable capacitors squeeze together alternating layers of aluminum and plastic with a &lt;a href="http://en.wikipedia.org/wiki/Trimmer_%28electronics%29" title="Trimmer (electronics)"&gt;screw&lt;/a&gt;. Electrical control of capacitance is achievable with &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Varactor" title="Varactor"&gt;varactors&lt;/a&gt; (or varicaps), which are &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Reverse-biased" title="Reverse-biased"&gt;reverse-biased&lt;/a&gt; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Semiconductor_diode" title="Semiconductor diode"&gt;semiconductor diodes&lt;/a&gt; whose depletion region width varies with applied voltage. They are used in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Phase_locked_loop" title="Phase locked loop"&gt;phase-locked loops&lt;/a&gt;, amongst other applications.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Capacitor_markings"&gt;Capacitor markings&lt;/span&gt;&lt;/h2&gt;Most capacitors have numbers printed on their bodies to indicate their electrical characteristics. Larger capacitors like electrolytics usually display the actual capacitance together with the unit (for example, &lt;b&gt;220 μF&lt;/b&gt;). Smaller capacitors like ceramics, however, use a shorthand consisting of three numbers and a letter, where the numbers show the capacitance in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Picofarad" title="Picofarad"&gt;pF&lt;/a&gt; (calculated as XY x 10&lt;sup&gt;Z&lt;/sup&gt; for the numbers XYZ) and the letter indicates the tolerance (J, K or M for ±5%, ±10% and ±20% respectively).&lt;br /&gt;Additionally, the capacitor may show its working voltage, temperature and other relevant characteristics.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Example"&gt;Example&lt;/span&gt;&lt;/h3&gt;A capacitor with the text &lt;b&gt;473K 330V&lt;/b&gt; on its body has a capacitance of 47 x 10&lt;sup&gt;3&lt;/sup&gt; pF = 47 nF (±10%) with a working voltage of 330 V.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Applications"&gt;Applications&lt;/span&gt;&lt;/h2&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Applications_of_capacitors" title="Applications of capacitors"&gt;Applications of capacitors&lt;/a&gt;&lt;/div&gt;Capacitors have many uses in electronic and electrical systems. They are so common that it is a rare electrical product that does not include at least one for some purpose.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt; &lt;span class="mw-headline" id="Energy_storage_2"&gt;Energy storage&lt;/span&gt;&lt;/h3&gt;A capacitor can store electric energy when disconnected from its charging circuit, so it can be used like a temporary &lt;a href="http://en.wikipedia.org/wiki/Battery_%28electricity%29" title="Battery (electricity)"&gt;battery&lt;/a&gt;. Capacitors are commonly used in electronic devices to maintain power supply while batteries are being changed. (This prevents loss of information in volatile memory.)&lt;br /&gt;Conventional electrostatic capacitors provide less than 360 &lt;a href="http://en.wikipedia.org/wiki/Joule" title="Joule"&gt;joules&lt;/a&gt; per kilogram of energy density, while capacitors using developing technologies can provide more than 2.52 &lt;a href="http://en.wikipedia.org/wiki/Kilo" title="Kilo"&gt;kilo&lt;/a&gt;&lt;a href="http://en.wikipedia.org/wiki/Joule" title="Joule"&gt;joules&lt;/a&gt; per kilogram&lt;sup class="reference" id="cite_ref-19"&gt;&lt;a href="http://en.wikipedia.org/wiki/Capacitor#cite_note-19"&gt;&lt;span&gt;[&lt;/span&gt;20&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;In &lt;a href="http://en.wikipedia.org/wiki/Car_audio" title="Car audio"&gt;car audio&lt;/a&gt; systems, large capacitors store energy for the &lt;a href="http://en.wikipedia.org/wiki/Amplifier" title="Amplifier"&gt;amplifier&lt;/a&gt; to use on demand. Also for a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Flash_tube" title="Flash tube"&gt;flash tube&lt;/a&gt; a capacitor is used to hold the &lt;a href="http://en.wikipedia.org/wiki/High_voltage" title="High voltage"&gt;high voltage&lt;/a&gt;. In ceiling fans, capacitors play the important role of storing electrical energy to give the fan enough torque to start spinning.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Pulsed_power_and_weapons"&gt;Pulsed power and weapons&lt;/span&gt;&lt;/h3&gt;Groups of large, specially constructed, low-inductance high-voltage capacitors (&lt;i&gt;capacitor banks&lt;/i&gt;) are used to supply huge pulses of current for many &lt;a href="http://en.wikipedia.org/wiki/Pulsed_power" title="Pulsed power"&gt;pulsed power&lt;/a&gt; applications. These include &lt;a href="http://en.wikipedia.org/wiki/Electromagnetic_forming" title="Electromagnetic forming"&gt;electromagnetic forming&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Marx_generator" title="Marx generator"&gt;Marx generators&lt;/a&gt;, pulsed &lt;a href="http://en.wikipedia.org/wiki/Laser" title="Laser"&gt;lasers&lt;/a&gt; (especially &lt;a href="http://en.wikipedia.org/wiki/TEA_laser" title="TEA laser"&gt;TEA lasers&lt;/a&gt;), &lt;a href="http://en.wikipedia.org/wiki/Pulse_forming_network" title="Pulse forming network"&gt;pulse forming networks&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Radar" title="Radar"&gt;radar&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Z_machine" title="Z machine"&gt;fusion research&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Particle_accelerator" title="Particle accelerator"&gt;particle accelerators&lt;/a&gt;.&lt;br /&gt;Large capacitor banks (reservoir) are used as energy sources for the &lt;a href="http://en.wikipedia.org/wiki/Exploding-bridgewire_detonator" title="Exploding-bridgewire detonator"&gt;exploding-bridgewire detonators&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Slapper_detonator" title="Slapper detonator"&gt;slapper detonators&lt;/a&gt; in &lt;a href="http://en.wikipedia.org/wiki/Nuclear_weapon" title="Nuclear weapon"&gt;nuclear weapons&lt;/a&gt; and other specialty weapons. Experimental work is under way using banks of capacitors as power sources for &lt;a href="http://en.wikipedia.org/wiki/Electromagnetism" title="Electromagnetism"&gt;electromagnetic&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Vehicle_armour" title="Vehicle armour"&gt;armour&lt;/a&gt; and electromagnetic &lt;a href="http://en.wikipedia.org/wiki/Railgun" title="Railgun"&gt;railguns&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Coilgun" title="Coilgun"&gt;coilguns&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Power_conditioning"&gt;Power conditioning&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Capacitor.jpg"&gt;&lt;img alt="" class="thumbimage" height="188" src="http://1.1.1.5/bmi/upload.wikimedia.org/wikipedia/en/thumb/5/5a/Capacitor.jpg/250px-Capacitor.jpg" width="250" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Capacitor.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A 10,000 &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Microfarad" title="Microfarad"&gt;microfarad&lt;/a&gt; capacitor in a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/TRM-800" title="TRM-800"&gt;TRM-800&lt;/a&gt; amplifier&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="http://en.wikipedia.org/wiki/Reservoir_capacitor" title="Reservoir capacitor"&gt;Reservoir capacitors&lt;/a&gt; are used in &lt;a href="http://en.wikipedia.org/wiki/Power_supply" title="Power supply"&gt;power supplies&lt;/a&gt; where they smooth the output of a full or half wave &lt;a href="http://en.wikipedia.org/wiki/Rectifier" title="Rectifier"&gt;rectifier&lt;/a&gt;. They can also be used in &lt;a href="http://en.wikipedia.org/wiki/Charge_pump" title="Charge pump"&gt;charge pump&lt;/a&gt; circuits as the energy storage element in the generation of higher voltages than the input voltage.&lt;br /&gt;Capacitors are connected in parallel with the power circuits of most electronic devices and larger systems (such as factories) to shunt away and conceal current fluctuations from the primary power source to provide a "clean" power supply for signal or control circuits. Audio equipment, for example, uses several capacitors in this way, to shunt away power line hum before it gets into the signal circuitry. The capacitors act as a local reserve for the DC power source, and bypass AC currents from the power supply. This is used in car audio applications, when a stiffening capacitor compensates for the inductance and resistance of the leads to the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Lead-acid_batteries" title="Lead-acid batteries"&gt;lead-acid&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Car_battery" title="Car battery"&gt;car battery&lt;/a&gt;.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Power_factor_correction"&gt;Power factor correction&lt;/span&gt;&lt;/h4&gt;In electric power distribution, capacitors are used for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Power_factor_correction" title="Power factor correction"&gt;power factor correction&lt;/a&gt;. Such capacitors often come as three capacitors connected as a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Three_phase" title="Three phase"&gt;three phase&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Electrical_load" title="Electrical load"&gt;load&lt;/a&gt;. Usually, the values of these capacitors are given not in farads but rather as a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Reactive_power" title="Reactive power"&gt;reactive power&lt;/a&gt; in volt-amperes reactive (VAr). The purpose is to counteract inductive loading from devices like &lt;a href="http://en.wikipedia.org/wiki/Induction_motor" title="Induction motor"&gt;electric motors&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Transmission_line" title="Transmission line"&gt;transmission lines&lt;/a&gt; to make the load appear to be mostly resistive. Individual motor or lamp loads may have capacitors for power factor correction, or larger sets of capacitors (usually with automatic switching devices) may be installed at a load center within a building or in a large utility &lt;a href="http://en.wikipedia.org/wiki/Electrical_substation" title="Electrical substation"&gt;substation&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Supression_and_coupling"&gt;Supression and coupling&lt;/span&gt;&lt;/h3&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Signal_coupling"&gt;Signal coupling&lt;/span&gt;&lt;/h4&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Capacitive_coupling" title="Capacitive coupling"&gt;capacitive coupling&lt;/a&gt;&lt;/div&gt;Because capacitors pass AC but block DC &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Signal_%28information_theory%29" title="Signal (information theory)"&gt;signals&lt;/a&gt; (when charged up to the applied dc voltage), they are often used to separate the AC and DC components of a signal. This method is known as &lt;i&gt;AC coupling&lt;/i&gt; or "capacitive coupling". Here, a large value of capacitance, whose value need not be accurately controlled, but whose &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Reactance_%28electronics%29" title="Reactance (electronics)"&gt;reactance&lt;/a&gt; is small at the signal frequency, is employed.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Decoupling"&gt;Decoupling&lt;/span&gt;&lt;/h4&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Decoupling_capacitor" title="Decoupling capacitor"&gt;decoupling capacitor&lt;/a&gt;&lt;/div&gt;A decoupling capacitor is a capacitor used to protect one part of a circuit from the effect of another, for instance to suppress noise or transients. Noise caused by other circuit elements is shunted through the capacitor, reducing the effect they have on the rest of the circuit. It is most commonly used between the power supply and ground. An alternative name is &lt;i&gt;bypass capacitor&lt;/i&gt; as it is used to bypass the power supply or other high impedance component of a circuit.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Noise_filters_and_snubbers"&gt;Noise filters and snubbers&lt;/span&gt;&lt;/h4&gt;When an inductive circuit is opened, the current through the inductance collapses quickly, creating a large voltage across the open circuit of the switch or relay. If the inductance is large enough, the energy will generate a spark, causing the contact points to oxidize, deteriorate, or sometimes weld together, or destroying a solid-state switch. A &lt;a href="http://en.wikipedia.org/wiki/Snubber" title="Snubber"&gt;snubber&lt;/a&gt; capacitor across the newly opened circuit creates a path for this impulse to bypass the contact points, thereby preserving their life; these were commonly found in &lt;a href="http://en.wikipedia.org/wiki/Contact_breaker" title="Contact breaker"&gt;contact breaker&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Ignition_system" title="Ignition system"&gt;ignition systems&lt;/a&gt;, for instance. Similarly, in smaller scale circuits, the spark may not be enough to damage the switch but will still &lt;a href="http://en.wikipedia.org/wiki/Spark-gap_transmitter" title="Spark-gap transmitter"&gt;radiate&lt;/a&gt; undesirable &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Radio_frequency_interference" title="Radio frequency interference"&gt;radio frequency interference&lt;/a&gt; (RFI), which a &lt;a href="http://en.wikipedia.org/wiki/Filter_capacitor" title="Filter capacitor"&gt;filter capacitor&lt;/a&gt; absorbs. Snubber capacitors are usually employed with a low-value resistor in series, to dissipate energy and minimize RFI. Such resistor-capacitor combinations are available in a single package.&lt;br /&gt;Capacitors are also used in parallel to interrupt units of a high-voltage &lt;a href="http://en.wikipedia.org/wiki/Circuit_breaker" title="Circuit breaker"&gt;circuit breaker&lt;/a&gt; in order to equally distribute the voltage between these units. In this case they are called grading capacitors.&lt;br /&gt;In schematic diagrams, a capacitor used primarily for DC charge storage is often drawn vertically in circuit diagrams with the lower, more negative, plate drawn as an arc. The straight plate indicates the positive terminal of the device, if it is polarized (see &lt;a href="http://en.wikipedia.org/wiki/Electrolytic_capacitor" title="Electrolytic capacitor"&gt;electrolytic capacitor&lt;/a&gt;).&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Motor_starters"&gt;Motor starters&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Motor_capacitor" title="Motor capacitor"&gt;motor capacitor&lt;/a&gt;&lt;/div&gt;In single phase &lt;a href="http://en.wikipedia.org/wiki/Squirrel-cage_rotor" title="Squirrel-cage rotor"&gt;squirrel cage&lt;/a&gt; motors, the primary winding within the motor housing is not capable of starting a rotational motion on the rotor, but is capable of sustaining one. To start the motor, a secondary winding is used in series with a non-polarized &lt;i&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Starting_capacitor" title="Starting capacitor"&gt;starting capacitor&lt;/a&gt;&lt;/i&gt; to introduce a lag in the sinusoidal current through the starting winding. When the secondary winding is placed at an angle with respect to the primary winding, a rotating electric field is created. The force of the rotational field is not constant, but is sufficient to start the rotor spinning. When the rotor comes close to operating speed, a centrifugal switch (or current-sensitive relay in series with the main winding) disconnects the capacitor. The start capacitor is typically mounted to the side of the motor housing. These are called capacitor-start motors, that have relatively high starting torque.&lt;br /&gt;There are also capacitor-run induction motors which have a permanently-connected phase-shifting capacitor in series with a second winding. The motor is much like a two-phase induction motor.&lt;br /&gt;Motor-starting capacitors are typically non-polarized electrolytic types, while running capacitors are conventional paper or plastic film dielectric types.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Signal_processing"&gt;Signal processing&lt;/span&gt;&lt;/h3&gt;The energy stored in a capacitor can be used to represent &lt;a href="http://en.wikipedia.org/wiki/Information" title="Information"&gt;information&lt;/a&gt;, either in binary form, as in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/DRAM" title="DRAM"&gt;DRAMs&lt;/a&gt;, or in analogue form, as in &lt;a href="http://en.wikipedia.org/wiki/Analog_sampled_filter" title="Analog sampled filter"&gt;analog sampled filters&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Charge-coupled_device" title="Charge-coupled device"&gt;CCDs&lt;/a&gt;. Capacitors can be used in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Analog_circuit" title="Analog circuit"&gt;analog circuits&lt;/a&gt; as components of integrators or more complex filters and in &lt;a href="http://en.wikipedia.org/wiki/Negative_feedback" title="Negative feedback"&gt;negative feedback&lt;/a&gt; loop stabilization. Signal processing circuits also use capacitors to &lt;a href="http://en.wikipedia.org/wiki/Integral" title="Integral"&gt;integrate&lt;/a&gt; a current signal.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt; &lt;span class="mw-headline" id="Tuned_circuits"&gt;Tuned circuits&lt;/span&gt;&lt;/h4&gt;Capacitors and inductors are applied together in &lt;a href="http://en.wikipedia.org/wiki/RLC_circuit" title="RLC circuit"&gt;tuned circuits&lt;/a&gt; to select information in particular frequency bands. For example, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Radio_receiver" title="Radio receiver"&gt;radio receivers&lt;/a&gt; rely on variable capacitors to tune the station frequency. Speakers use passive analog &lt;a href="http://en.wikipedia.org/wiki/Audio_crossover" title="Audio crossover"&gt;crossovers&lt;/a&gt;, and analog equalizers use capacitors to select different audio bands.&lt;br /&gt;The &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Resonant_frequency" title="Resonant frequency"&gt;resonant frequency&lt;/a&gt; &lt;i&gt;f&lt;/i&gt; of a tuned circuit is a function of the inductance (&lt;i&gt;L&lt;/i&gt;) and capacitance (&lt;i&gt;C&lt;/i&gt;) in series, and is given by:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="f = \frac{1}{2 \pi \sqrt{LC}}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/1/d/a/1da09b4e0df75ecd61ddce1e902e232e.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;where &lt;i&gt;L&lt;/i&gt; is in &lt;a href="http://en.wikipedia.org/wiki/Henry_%28unit%29" title="Henry (unit)"&gt;henries&lt;/a&gt; and &lt;i&gt;C&lt;/i&gt; is in farads.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Sensing"&gt;Sensing&lt;/span&gt;&lt;/h3&gt;Most capacitors are designed to maintain a fixed physical structure. However, various factors can change the structure of the capacitor, and the resulting change in capacitance can be used to &lt;a href="http://en.wikipedia.org/wiki/Sensor" title="Sensor"&gt;sense&lt;/a&gt; those factors.&lt;br /&gt;Changing the dielectric:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;The effects of varying the physical and/or electrical characteristics of the &lt;b&gt;dielectric&lt;/b&gt; can be used for sensing purposes. Capacitors with an exposed and porous dielectric can be used to measure humidity in air. Capacitors are used to accurately measure the fuel level in &lt;a href="http://en.wikipedia.org/wiki/Fixed-wing_aircraft" title="Fixed-wing aircraft"&gt;airplanes&lt;/a&gt;; as the fuel covers more of a pair of plates, the circuit capacitance increases.&lt;/dd&gt;&lt;/dl&gt;Changing the distance between the plates:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;Capacitors with a flexible plate can be used to measure strain or pressure. Industrial pressure transmitters used for &lt;a href="http://en.wikipedia.org/wiki/Process_control" title="Process control"&gt;process control&lt;/a&gt; use pressure-sensing diaphragms, which form a capacitor plate of an oscillator circuit. Capacitors are used as the &lt;a href="http://en.wikipedia.org/wiki/Sensor" title="Sensor"&gt;sensor&lt;/a&gt; in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Condenser_microphone" title="Condenser microphone"&gt;condenser microphones&lt;/a&gt;, where one plate is moved by air pressure, relative to the fixed position of the other plate. Some &lt;a href="http://en.wikipedia.org/wiki/Accelerometer" title="Accelerometer"&gt;accelerometers&lt;/a&gt; use &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/MEMS" title="MEMS"&gt;MEMS&lt;/a&gt; capacitors etched on a chip to measure the magnitude and direction of the acceleration vector. They are used to detect changes in acceleration, e.g. as tilt sensors or to detect free fall, as sensors triggering &lt;a href="http://en.wikipedia.org/wiki/Airbag" title="Airbag"&gt;airbag&lt;/a&gt; deployment, and in many other applications. Some &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Fingerprint_authentication#Fingerprint_sensors" title="Fingerprint authentication"&gt;fingerprint sensors&lt;/a&gt; use capacitors. Additionally, a user can adjust the pitch of a &lt;a href="http://en.wikipedia.org/wiki/Theremin" title="Theremin"&gt;theremin&lt;/a&gt; musical instrument by moving his hand since this changes the effective capacitance between the user's hand and the antenna.&lt;/dd&gt;&lt;/dl&gt;Changing the effective area of the plates:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;Capacitive touch switches are now used on many consumer electronic products.&lt;/dd&gt;&lt;/dl&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Hazards_and_safety"&gt;Hazards and safety&lt;/span&gt;&lt;/h2&gt;Capacitors may retain a charge long after power is removed from a circuit; this charge can cause dangerous or even potentially fatal &lt;a href="http://en.wikipedia.org/wiki/Electric_shock" title="Electric shock"&gt;shocks&lt;/a&gt; or damage connected equipment. For example, even a seemingly innocuous device such as a disposable camera flash unit powered by a 1.5 volt &lt;a href="http://en.wikipedia.org/wiki/AA_battery" title="AA battery"&gt;AA battery&lt;/a&gt; contains a capacitor which may be charged to over 300 volts. This is easily capable of delivering a shock. Service procedures for electronic devices usually include instructions to discharge large or high-voltage capacitors. Capacitors may also have built-in discharge resistors to dissipate stored energy to a safe level within a few seconds after power is removed. High-voltage capacitors are stored with the terminals &lt;a href="http://en.wikipedia.org/wiki/Short_circuit" title="Short circuit"&gt;shorted&lt;/a&gt;, as protection from potentially dangerous voltages due to &lt;a href="http://en.wikipedia.org/wiki/Permittivity#Lossy_medium" title="Permittivity"&gt;dielectric absorption&lt;/a&gt;.&lt;br /&gt;Some old, large oil-filled capacitors contain &lt;a href="http://en.wikipedia.org/wiki/Polychlorinated_biphenyl" title="Polychlorinated biphenyl"&gt;polychlorinated biphenyls&lt;/a&gt; (PCBs). It is known that waste PCBs can leak into &lt;a href="http://en.wikipedia.org/wiki/Groundwater" title="Groundwater"&gt;groundwater&lt;/a&gt; under &lt;a href="http://en.wikipedia.org/wiki/Landfill" title="Landfill"&gt;landfills&lt;/a&gt;. Capacitors containing PCB were labelled as containing "Askarel" and several other trade names. PCB-filled capacitors are found in very old (pre 1975) &lt;a href="http://en.wikipedia.org/wiki/Fluorescent_lamp" title="Fluorescent lamp"&gt;fluorescent lamp&lt;/a&gt; ballasts, and other applications.&lt;br /&gt;High-voltage capacitors may catastrophically fail when subjected to voltages or currents beyond their rating, or as they reach their normal end of life. Dielectric or metal interconnection failures may create arcing that vaporizes dielectric fluid, resulting in case bulging, rupture, or even an &lt;a href="http://en.wikipedia.org/wiki/Explosion" title="Explosion"&gt;explosion&lt;/a&gt;. Capacitors used in &lt;a href="http://en.wikipedia.org/wiki/Radio_frequency" title="Radio frequency"&gt;RF&lt;/a&gt; or sustained high-current applications can overheat, especially in the center of the capacitor rolls. Capacitors used within high-energy capacitor banks can violently explode when a short in one capacitor causes sudden dumping of energy stored in the rest of the bank into the failing unit. High voltage vacuum capacitors can generate soft X-rays even during normal operation. Proper containment, fusing, and preventive maintenance can help to minimize these hazards.&lt;br /&gt;High-voltage capacitors can benefit from a &lt;a href="http://en.wikipedia.org/wiki/Pre-charge" title="Pre-charge"&gt;pre-charge&lt;/a&gt; to limit in-rush currents at power-up of high voltage direct current (HVDC) circuits. This will extend the life of the component and may mitigate high-voltage hazards.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-5216315411619325230?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/5216315411619325230/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/capacitor.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5216315411619325230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5216315411619325230'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/capacitor.html' title='Capacitor'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-2330324236821058630</id><published>2010-05-16T20:58:00.001-07:00</published><updated>2010-05-16T20:58:48.193-07:00</updated><title type='text'>Resistor</title><content type='html'>&lt;h1 class="firstHeading" id="firstHeading"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;br /&gt;A &lt;b&gt;resistor&lt;/b&gt; is a two-&lt;a href="http://en.wikipedia.org/wiki/Terminal_%28electronics%29" title="Terminal (electronics)"&gt;terminal&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Electronic_component" title="Electronic component"&gt;electronic component&lt;/a&gt; that produces a &lt;a href="http://en.wikipedia.org/wiki/Voltage" title="Voltage"&gt;voltage&lt;/a&gt; across its terminals that is &lt;a href="http://en.wikipedia.org/wiki/Proportionality_%28mathematics%29#Direct_proportion" title="Proportionality (mathematics)"&gt;proportional&lt;/a&gt; to the &lt;a href="http://en.wikipedia.org/wiki/Electric_current" title="Electric current"&gt;electric current&lt;/a&gt; passing through it in accordance with &lt;a href="http://en.wikipedia.org/wiki/Ohm%27s_law" title="Ohm's law"&gt;Ohm's law&lt;/a&gt;:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;span class="texhtml"&gt;&lt;i&gt;V&lt;/i&gt; = &lt;i&gt;I&lt;/i&gt;&lt;i&gt;R&lt;/i&gt;&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;Resistors are elements of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electrical_networks" title="Electrical networks"&gt;electrical networks&lt;/a&gt; and electronic circuits and are ubiquitous in most electronic equipment. Practical resistors can be made of various compounds and films, as well as &lt;a href="http://en.wikipedia.org/wiki/Resistance_wire" title="Resistance wire"&gt;resistance wire&lt;/a&gt; (wire made of a high-resistivity alloy, such as nickel/chrome).&lt;br /&gt;The primary characteristics of a resistor are the &lt;a href="http://en.wikipedia.org/wiki/Electrical_resistance" title="Electrical resistance"&gt;resistance&lt;/a&gt;, the &lt;a href="http://en.wikipedia.org/wiki/Engineering_tolerance#Electrical_component_tolerance" title="Engineering tolerance"&gt;tolerance&lt;/a&gt;, maximum working voltage and the &lt;a href="http://en.wikipedia.org/wiki/Power_%28physics%29" title="Power (physics)"&gt;power&lt;/a&gt; rating. Other characteristics include &lt;a href="http://en.wikipedia.org/wiki/Temperature_coefficient" title="Temperature coefficient"&gt;temperature coefficient&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electrical_noise" title="Electrical noise"&gt;noise&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Inductance" title="Inductance"&gt;inductance&lt;/a&gt;. Less well-known is &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=Critical_resistance&amp;amp;action=edit&amp;amp;redlink=1" title="Critical resistance (page does not exist)"&gt;critical resistance&lt;/a&gt;, the value below which power dissipation limits the maximum permitted current flow, and above which the limit is applied voltage. Critical resistance is determined by the design, materials and dimensions of the resistor.&lt;br /&gt;Resistors can be integrated into &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Hybrid_circuit" title="Hybrid circuit"&gt;hybrid&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Printed_circuit_board" title="Printed circuit board"&gt;printed circuits&lt;/a&gt;, as well as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Integrated_circuits" title="Integrated circuits"&gt;integrated circuits&lt;/a&gt;. Size, and position of leads (or terminals) are relevant to equipment designers; resistors must be physically large enough not to overheat when dissipating their power.&lt;br /&gt;&lt;table class="toc" id="toc"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;script type="text/javascript"&gt;//&lt;![CDATA[if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } //]]&gt;&lt;/script&gt; &lt;h2&gt;&lt;span class="mw-headline" id="Units"&gt;Units&lt;/span&gt;&lt;/h2&gt;The &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Ohm_%28unit%29" title="Ohm (unit)"&gt;ohm&lt;/a&gt; (symbol: &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/%CE%A9" title="Ω"&gt;Ω&lt;/a&gt;) is the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/SI" title="SI"&gt;SI&lt;/a&gt; unit of &lt;a href="http://en.wikipedia.org/wiki/Electrical_resistance" title="Electrical resistance"&gt;electrical resistance&lt;/a&gt;, named after &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Georg_Simon_Ohm" title="Georg Simon Ohm"&gt;Georg Simon Ohm&lt;/a&gt;. Commonly used multiples and submultiples in electrical and electronic usage are the milliohm (1x10&lt;sup&gt;−3&lt;/sup&gt;), kilohm (1x10&lt;sup&gt;3&lt;/sup&gt;), and megohm (1x10&lt;sup&gt;6&lt;/sup&gt;).&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Theory_of_operation"&gt;Theory of operation&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Ohm.27s_law"&gt;Ohm's law&lt;/span&gt;&lt;/h3&gt;The behavior of an ideal resistor is dictated by the relationship specified in &lt;a href="http://en.wikipedia.org/wiki/Ohm%27s_law" title="Ohm's law"&gt;Ohm's law&lt;/a&gt;:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="V=I \cdot R" class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/5/c/3/5c308ad691ecc4a012ec195dd2e29c0b.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;Ohm's law states that the voltage (V) across a resistor is proportional to the current (I) through it where the constant of proportionality is the resistance (R).&lt;br /&gt;Equivalently, Ohm's law can be stated:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="\frac{V}{R}=I" class="tex" src="http://1.1.1.4/bmi/upload.wikimedia.org/math/9/1/7/9171d6f03b66733ce2062a6808d4873f.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;This formulation of Ohm's law states that, when a voltage (V) is maintained across a resistance (R), a current (I) will flow through the resistance.&lt;br /&gt;This formulation is often used in practice. For example, if V is 12 &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Volts" title="Volts"&gt;volts&lt;/a&gt; and R is 400 &lt;a href="http://en.wikipedia.org/wiki/Ohms" title="Ohms"&gt;ohms&lt;/a&gt;, a current of 12 / 400 = 0.03 &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Amperes" title="Amperes"&gt;amperes&lt;/a&gt; will flow through the resistance R.&lt;br /&gt;&lt;span id="parallel"&gt;&lt;/span&gt;&lt;span id="Parallel"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Series_and_parallel_resistors"&gt;Series and parallel resistors&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Series_and_parallel_circuits" title="Series and parallel circuits"&gt;Series and parallel circuits&lt;/a&gt;&lt;/div&gt;Resistors in a &lt;a href="http://en.wikipedia.org/wiki/Series_and_parallel_circuits" title="Series and parallel circuits"&gt;parallel&lt;/a&gt; configuration each have the same potential difference (voltage). To find their total equivalent resistance (&lt;i&gt;R&lt;sub&gt;eq&lt;/sub&gt;&lt;/i&gt;):&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Resistors_in_parallel.svg" title="A diagram of several resistors, side by side, both leads of each connected to the same wires"&gt;&lt;img alt="A diagram of several resistors, side by side, both leads of each connected to the same wires" height="177" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/0/09/Resistors_in_parallel.svg/301px-Resistors_in_parallel.svg.png" width="301" /&gt;&lt;/a&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img alt="\frac{1}{R_\mathrm{eq}} = \frac{1}{R_1} + \frac{1}{R_2} + \cdots +  \frac{1}{R_n}" class="tex" src="http://1.1.1.5/bmi/upload.wikimedia.org/math/d/c/5/dc55458c0154c67e7e8eed2b2e5b835a.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;The parallel property can be represented in equations by two vertical lines "||" (as in geometry) to simplify equations. For two resistors,&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="R_\mathrm{eq} = R_1 \| R_2 = {R_1 R_2 \over R_1 + R_2}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/e/1/d/e1d6c77805c0245d311b04e4e2c8e9b3.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;span id="series"&gt;&lt;/span&gt;&lt;span id="Series"&gt;&lt;/span&gt; The current through resistors in &lt;a href="http://en.wikipedia.org/wiki/Series_and_parallel_circuits" title="Series and parallel circuits"&gt;series&lt;/a&gt; stays the same, but the voltage across each resistor can be different. The sum of the potential differences (voltage) is equal to the total voltage. To find their total resistance:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Resistors_in_series.svg" title="A diagram of several resistors, connected end to end, with the same amount of current going through each"&gt;&lt;img alt="A diagram of several resistors, connected end to end, with the same amount of current going through each" height="106" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/1/11/Resistors_in_series.svg/390px-Resistors_in_series.svg.png" width="390" /&gt;&lt;/a&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img alt="R_\mathrm{eq} = R_1  + R_2 + \cdots + R_n" class="tex" src="http://1.1.1.2/bmi/upload.wikimedia.org/math/0/1/5/01541fd01585b4f8ba5ac819e4abc042.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;A resistor network that is a combination of parallel and series can be broken up into smaller parts that are either one or the other. For instance,&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Resistors_in_series_and_parallel.svg" title="A diagram of three resistors, two in parallel, which are in series with the other"&gt;&lt;img alt="A diagram of three resistors, two in parallel, which are in series with the other" height="283" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/6/67/Resistors_in_series_and_parallel.svg/195px-Resistors_in_series_and_parallel.svg.png" width="195" /&gt;&lt;/a&gt;&lt;/dd&gt;&lt;dd&gt;&lt;img alt="R_\mathrm{eq} = \left( R_1 \| R_2 \right) + R_3 = {R_1 R_2 \over R_1 + R_2} + R_3" class="tex" src="http://1.1.1.3/bmi/upload.wikimedia.org/math/e/9/e/e9ecfdef4d4c13dfdc377b716833b87c.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;However, many resistor networks cannot be split up in this way. Consider a &lt;a href="http://en.wikipedia.org/wiki/Cube" title="Cube"&gt;cube&lt;/a&gt;, each edge of which has been replaced by a resistor. For example, determining the resistance between two opposite vertices requires additional transforms, such as the &lt;a href="http://en.wikipedia.org/wiki/Y-%CE%94_transform" title="Y-Δ transform"&gt;Y-Δ transform&lt;/a&gt;, or else &lt;a href="http://en.wikipedia.org/wiki/Equivalent_impedance_transforms#2-terminal.2C_n-element.2C_3-element-kind_networks" title="Equivalent impedance transforms"&gt;matrix methods&lt;/a&gt; must be used for the general case. However, if all twelve resistors are equal, the corner-to-corner resistance is &lt;sup&gt;5&lt;/sup&gt;⁄&lt;sub&gt;6&lt;/sub&gt; of any one of them.&lt;br /&gt;The practical application to resistors is that a resistance of any non-standard value can be obtained by connecting standard values in series or in parallel.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Power_dissipation"&gt;Power dissipation&lt;/span&gt;&lt;/h3&gt;The power dissipated by a resistor (or the equivalent resistance of a resistor network) is calculated using the following: &lt;img alt="P = I^2 R = I V = \frac{V^2}{R}" class="tex" src="http://1.1.1.1/bmi/upload.wikimedia.org/math/e/0/2/e026c4802540536797316aa0cb48bf1d.png" /&gt;&lt;br /&gt;All three equations are equivalent. The first is derived from &lt;a href="http://en.wikipedia.org/wiki/Joule%27s_laws" title="Joule's laws"&gt;Joule's first law&lt;/a&gt;. Ohm’s Law derives the other two from that.&lt;br /&gt;The total amount of heat energy released is the integral of the power over time:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="W = \int_{t_1}^{t_2} v(t) i(t)\, dt." class="tex" src="http://1.1.1.4/bmi/upload.wikimedia.org/math/2/b/c/2bc8263c239d4791c12fdf73e9fc9e51.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;If the average power dissipated is more than the resistor can safely dissipate, the resistor may depart from its nominal resistance and may become damaged by overheating. Excessive power dissipation may raise the temperature of the resistor to a point where it burns out, which could cause a fire in adjacent components and materials. There are flameproof resistors that fail (open circuit) before they overheat dangerously.&lt;br /&gt;Note that the nominal power rating of a resistor is not the same as the power that it can safely dissipate in practical use. Air circulation and proximity to a circuit board, ambient temperature, and other factors can reduce acceptable dissipation significantly. Rated power dissipation may be given for an ambient temperature of 25 °C in free air. Inside an equipment case at 60 °C, rated dissipation will be significantly less; if we are dissipating a bit less than the maximum figure given by the manufacturer we may still be outside the &lt;a href="http://en.wikipedia.org/wiki/Safe_operating_area" title="Safe operating area"&gt;safe operating area&lt;/a&gt;, and courting premature failure.&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Construction"&gt;Construction&lt;/span&gt;&lt;/h2&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 218px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Sil_resistor.png"&gt;&lt;img alt="" class="thumbimage" height="88" src="http://1.1.1.5/bmi/upload.wikimedia.org/wikipedia/en/e/e9/Sil_resistor.png" width="216" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Sil_resistor.png" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A single in line (SIL) resistor package with 8 individual, 47 ohm resistors. One end of each resistor is connected to a separate pin and the other ends are all connected together to the remaining (common) pin - pin 1, at the end identified by the white dot.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Lead_arrangements"&gt;Lead arrangements&lt;/span&gt;&lt;/h3&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Through-hole" title="Through-hole"&gt;Through-hole&lt;/a&gt; components typically have leads leaving the body axially. Others have leads coming off their body radially instead of parallel to the resistor axis. Other components may be &lt;a href="http://en.wikipedia.org/wiki/SMT" title="SMT"&gt;SMT&lt;/a&gt; (surface mount technology) while high power resistors may have one of their leads designed into the &lt;a href="http://en.wikipedia.org/wiki/Heat_sink" title="Heat sink"&gt;heat sink&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Carbon_composition"&gt;Carbon composition&lt;/span&gt;&lt;/h3&gt;Carbon composition resistors consist of a solid cylindrical resistive element with embedded wire leads or metal end caps to which the lead wires are attached. The body of the resistor is protected with paint or plastic. Early 20th-century carbon composition resistors had uninsulated bodies; the lead wires were wrapped around the ends of the resistance element rod and soldered. The completed resistor was painted for color coding of its value.&lt;br /&gt;The resistive element is made from a mixture of finely ground (powdered) carbon and an insulating material (usually ceramic). A resin holds the mixture together. The resistance is determined by the ratio of the fill material (the powdered ceramic) to the carbon. Higher concentrations of carbon, a weak conductor, result in lower resistance. Carbon composition resistors were commonly used in the 1960s and earlier, but are not so popular for general use now as other types have better specifications, such as tolerance, voltage dependence, and stress (carbon composition resistors will change value when stressed with over-voltages). Moreover, if internal moisture content (from exposure for some length of time to a humid environment) is significant, soldering heat will create a non-reversible change in resistance value. These resistors, however, if never subjected to &lt;a href="http://en.wikipedia.org/wiki/Overvoltage" title="Overvoltage"&gt;overvoltage&lt;/a&gt; nor overheating were remarkably reliable considering the components size &lt;sup class="reference" id="cite_ref-Vishay08_0-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;They are still available, but comparatively quite costly. Values ranged from fractions of an ohm to 22 megohms. Because of the expense these resistors tend to be used in power supplies and welding controls&lt;sup class="reference" id="cite_ref-Vishay08_0-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Carbon_film"&gt;Carbon film&lt;/span&gt;&lt;/h3&gt;A carbon film is deposited on an insulating substrate, and a helix cut in it to create a long, narrow resistive path. Varying shapes, coupled with the &lt;a href="http://en.wikipedia.org/wiki/Resistivity" title="Resistivity"&gt;resistivity&lt;/a&gt; of carbon, (ranging from 90 to 400&amp;nbsp;nΩm) can provide a variety of resistances.&lt;sup class="reference" id="cite_ref-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Carbon film resistors feature a power rating range of 0.125&amp;nbsp;W to&amp;nbsp;5 W at 70&amp;nbsp;°C. Resistances available range from 1 ohm to 10 megohm. The carbon film resistor has an &lt;a href="http://en.wikipedia.org/wiki/Operating_temperature" title="Operating temperature"&gt;operating temperature&lt;/a&gt; range of -55&amp;nbsp;°C to 155&amp;nbsp;°C. It has 200 to 600 volts maximum working voltage range.&lt;sup class="reference" id="cite_ref-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;. Special carbon film resistors are used in applications requiring high pulse stability&lt;sup class="reference" id="cite_ref-Vishay08_0-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Thick_and_thin_film"&gt;Thick and thin film&lt;/span&gt;&lt;/h3&gt;Thick film resistors became popular during the 1970s, and most &lt;a href="http://en.wikipedia.org/wiki/Surface-mount_technology" title="Surface-mount technology"&gt;SMD&lt;/a&gt; (surface mount device) resistors today are of this type. The principal difference between thin film and thick film resistors is not the actual thickness of the film, but rather how the film is applied to the cylinder (axial resistors) or the surface (SMD resistors).&lt;br /&gt;Thin film resistors are made by &lt;a href="http://en.wikipedia.org/wiki/Sputtering" title="Sputtering"&gt;sputtering&lt;/a&gt; (a method of &lt;a href="http://en.wikipedia.org/wiki/Vacuum_deposition" title="Vacuum deposition"&gt;vacuum deposition&lt;/a&gt;) the resistive material onto an insulating substrate. The film is then etched in a similar manner to the old (subtractive) process for making printed circuit boards; that is, the surface is coated with a &lt;a href="http://en.wikipedia.org/wiki/Photoresist" title="Photoresist"&gt;photo-sensitive material&lt;/a&gt;, then covered by a pattern film, irradiated with &lt;a href="http://en.wikipedia.org/wiki/Ultraviolet" title="Ultraviolet"&gt;ultraviolet&lt;/a&gt; light, and then the exposed photo-sensitive coating is developed, and underlying thin film is etched away.&lt;br /&gt;Thick film resistors are manufactured using screen and stencil printing processes&lt;sup class="reference" id="cite_ref-Vishay08_0-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;Because the time during which the sputtering is performed can be controlled, the thickness of the thin film can be accurately controlled. The type of material is also usually different consisting of one or more ceramic (&lt;a href="http://en.wikipedia.org/wiki/Cermet" title="Cermet"&gt;cermet&lt;/a&gt;) conductors such as &lt;a href="http://en.wikipedia.org/wiki/Tantalum_nitride" title="Tantalum nitride"&gt;tantalum nitride&lt;/a&gt; (TaN), &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Ruthenium_dioxide" title="Ruthenium dioxide"&gt;ruthenium dioxide&lt;/a&gt; (RuO&lt;sub&gt;2&lt;/sub&gt;), &lt;a href="http://en.wikipedia.org/wiki/Lead_oxide" title="Lead oxide"&gt;lead oxide&lt;/a&gt; (PbO), &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=Bismuth_ruthenate&amp;amp;action=edit&amp;amp;redlink=1" title="Bismuth ruthenate (page does not exist)"&gt;bismuth ruthenate&lt;/a&gt; (Bi&lt;sub&gt;2&lt;/sub&gt;Ru&lt;sub&gt;2&lt;/sub&gt;O&lt;sub&gt;7&lt;/sub&gt;), &lt;a href="http://en.wikipedia.org/wiki/Chromel" title="Chromel"&gt;nickel chromium&lt;/a&gt; (NiCr), and/or &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=Bismuth_iridate&amp;amp;action=edit&amp;amp;redlink=1" title="Bismuth iridate (page does not exist)"&gt;bismuth iridate&lt;/a&gt; (Bi&lt;sub&gt;2&lt;/sub&gt;Ir&lt;sub&gt;2&lt;/sub&gt;O&lt;sub&gt;7&lt;/sub&gt;).&lt;br /&gt;The resistance of both thin and thick film resistors after manufacture is not highly accurate; they are usually trimmed to an accurate value by abrasive or &lt;a href="http://en.wikipedia.org/wiki/Laser_trimming" title="Laser trimming"&gt;laser trimming&lt;/a&gt;. Thin film resistors are usually specified with tolerances of 0.1, 0.2, 0.5, or 1%, and with temperature coefficients of 5 to 25 ppm/K.&lt;br /&gt;Thick film resistors may use the same conductive ceramics, but they are mixed with &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Sintered" title="Sintered"&gt;sintered&lt;/a&gt; (powdered) glass and some kind of liquid so that the composite can be &lt;a href="http://en.wikipedia.org/wiki/Screen-printing" title="Screen-printing"&gt;screen-printed&lt;/a&gt;. This composite of glass and conductive ceramic (cermet) material is then fused (baked) in an oven at about 850 °C.&lt;br /&gt;Thick film resistors, when first manufactured, had tolerances of 5%, but standard tolerances have improved to 2% or 1% in the last few decades. Temperature coefficients of thick film resistors are high, typically ±200 or ±250 ppm/K; a 40 &lt;a href="http://en.wikipedia.org/wiki/Kelvin" title="Kelvin"&gt;kelvin&lt;/a&gt; (70 °F) temperature change can change the resistance by 1%.&lt;br /&gt;Thin film resistors are usually far more expensive than thick film resistors. For example, SMD thin film resistors, with 0.5% tolerances, and with 25 ppm/K temperature coefficients, when bought in full size reel quantities, are about twice the cost of 1%, 250 ppm/K thick film resistors.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Metal_film"&gt;Metal film&lt;/span&gt;&lt;/h3&gt;A common type of axial resistor today is referred to as a metal-film resistor. Metal electrode leadless face (MELF) resistors often use the same technology, but are a cylindrically shaped resistor designed for surface mounting. Note that other types of resistors (e.g., carbon composition) are also available in MELF packages.&lt;br /&gt;Metal film resistors are usually coated with nickel chromium (NiCr), but might be coated with any of the cermet materials listed above for thin film resistors. Unlike thin film resistors, the material may be applied using different techniques than sputtering (though that is one such technique). Also, unlike thin-film resistors, the resistance value is determined by cutting a helix through the coating rather than by etching. (This is similar to the way carbon resistors are made.) The result is a reasonable tolerance (0.5, 1, or 2%) and a temperature coefficient that is generally between 50 and 100 ppm/K.&lt;sup class="reference" id="cite_ref-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;. Metal film resistors process good noise characteristics and low non-linearity. Also beneficial are the components efficient tolerance, temperature coefficient and stability&lt;sup class="reference" id="cite_ref-Vishay08_0-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Wirewound"&gt;Wirewound&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Types_of_winding_by_Zureks.png"&gt;&lt;img alt="" class="thumbimage" height="135" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/3/30/Types_of_winding_by_Zureks.png/220px-Types_of_winding_by_Zureks.png" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Types_of_winding_by_Zureks.png" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Types of windings in wire resistors:&lt;br /&gt;1 - common&lt;br /&gt;2 - &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Bifilar_winding" title="Bifilar winding"&gt;bifilar&lt;/a&gt;&lt;br /&gt;3 - common on a thin former&lt;br /&gt;4 - &lt;a href="http://en.wikipedia.org/wiki/Ayrton-Perry_winding" title="Ayrton-Perry winding"&gt;Ayrton-Perry&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;Wirewound resistors are commonly made by winding a metal wire, usually &lt;a href="http://en.wikipedia.org/wiki/Nichrome" title="Nichrome"&gt;nichrome&lt;/a&gt;, around a ceramic, plastic, or fiberglass core. The ends of the wire are soldered or welded to two caps or rings, attached to the ends of the core. The assembly is protected with a layer of paint, molded plastic, or an &lt;a href="http://en.wikipedia.org/wiki/Vitreous_enamel" title="Vitreous enamel"&gt;enamel&lt;/a&gt; coating baked at high temperature. Because of the very high surface temperature these resistors can withstand temperatures of up to +450°C&lt;sup class="reference" id="cite_ref-Vishay08_0-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;. Wire leads in low power wirewound resistors are usually between 0.6 and 0.8&amp;nbsp;mm in diameter and tinned for ease of soldering. For higher power wirewound resistors, either a ceramic outer case or an aluminum outer case on top of an insulating layer is used. The aluminum-cased types are designed to be attached to a heat sink to dissipate the heat; the rated power is dependent on being used with a suitable heat sink, e.g., a 50 W power rated resistor will overheat at a fraction of the power dissipation if not used with a heat sink. Large wirewound resistors may be rated for 1,000 watts or more.&lt;br /&gt;Because wirewound resistors are &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electromagnetic_coil" title="Electromagnetic coil"&gt;coils&lt;/a&gt; they have more undesirable &lt;a href="http://en.wikipedia.org/wiki/Electromagnetic_induction" title="Electromagnetic induction"&gt;inductance&lt;/a&gt; than other types of resistor, although winding the wire in sections with alternately reversed direction can minimize inductance. Other techniques employ &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Bifilar_winding" title="Bifilar winding"&gt;bifilar winding&lt;/a&gt;, or a flat thin former (to reduce cross-section area of the coil). For most demanding circuits resistors with &lt;a href="http://en.wikipedia.org/wiki/Ayrton-Perry_winding" title="Ayrton-Perry winding"&gt;Ayrton-Perry winding&lt;/a&gt; are used.&lt;br /&gt;Applications of wirewound resistors are similar to those of composition resistors with the exception of the high frequency. The high frequency of wirewound resistors is substantially worse than that of a composition resistor&lt;sup class="reference" id="cite_ref-Vishay08_0-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-Vishay08-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Foil_resistor"&gt;Foil resistor&lt;/span&gt;&lt;/h3&gt;The primary resistance element of a foil resistor is a special alloy foil several &lt;a href="http://en.wikipedia.org/wiki/Micrometre" title="Micrometre"&gt;micrometres&lt;/a&gt; thick. Since their introduction in the 1960s, foil resistors have had the best precision and stability of any resistor available. One of the important parameters influencing stability is the temperature coefficient of resistance (TCR). The TCR of foil resistors is extremely low, and has been further improved over the years. One range of ultra-precision foil resistors offers a TCR of 0.14&amp;nbsp;ppm/°C, tolerance ±0.005%, long-term stability (1 year) 25&amp;nbsp;ppm, (3 year) 50&amp;nbsp;ppm (further improved 5-fold by hermetic sealing), stability under load (2000 hours) 0.03%, thermal EMF 0.1&amp;nbsp;μV/°C, noise -42&amp;nbsp;dB, voltage coefficient 0.1&amp;nbsp;ppm/V, inductance 0.08&amp;nbsp;μH, capacitance 0.5&amp;nbsp;pF.&lt;sup class="reference" id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Ammeter_shunts"&gt;Ammeter shunts&lt;/span&gt;&lt;/h3&gt;An &lt;a href="http://en.wikipedia.org/wiki/Shunt_%28electrical%29#Use_in_current_measuring" title="Shunt (electrical)"&gt;ammeter shunt&lt;/a&gt; is a special type of current-sensing resistor, having four terminals and a value in milliohms or even micro-ohms. Current-measuring instruments, by themselves, can usually accept only limited currents. To measure high currents, the current passes through the shunt, where the voltage drop is measured and interpreted as current. A typical shunt consists of two solid metal blocks, sometimes brass, mounted on to an insulating base. Between the blocks, and soldered or brazed to them, are one or more strips of low &lt;a href="http://en.wikipedia.org/wiki/Temperature_coefficient#Temperature_coefficient_of_electrical_resistance" title="Temperature coefficient"&gt;temperature coefficient of resistance&lt;/a&gt; (TCR) &lt;a href="http://en.wikipedia.org/wiki/Manganin" title="Manganin"&gt;manganin&lt;/a&gt; alloy. Large bolts threaded into the blocks make the current connections, while much-smaller screws provide voltage connections. Shunts are rated by full-scale current, and often have a voltage drop of 50 mV at rated current. Such meters are adapted to the shunt full current rating by using an appropriately marked dial face; no change need be made to the other parts of the meter.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Grid_resistor"&gt;Grid resistor&lt;/span&gt;&lt;/h3&gt;In heavy-duty industrial high-current applications, a grid resistor is a large convection-cooled lattice of stamped metal alloy strips connected in rows between two electrodes. Such industrial grade resistors can be as large as a refrigerator; some designs can handle over 500 amperes of current, with a range of resistances extending lower than 0.04 ohms. They are used in applications such as &lt;a href="http://en.wikipedia.org/wiki/Dynamic_braking" title="Dynamic braking"&gt;dynamic braking&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Load_bank#Resistive_load_bank" title="Load bank"&gt;load banking&lt;/a&gt; for &lt;a href="http://en.wikipedia.org/wiki/Diesel_locomotive" title="Diesel locomotive"&gt;locomotives&lt;/a&gt; and trams, neutral grounding for industrial AC distribution, control loads for cranes and heavy equipment, load testing of generators and harmonic filtering for electric substations.&lt;sup class="reference" id="cite_ref-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-5"&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-6"&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-7"&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;The term &lt;i&gt;grid resistor&lt;/i&gt; is sometimes used to describe a resistor of any type connected to the &lt;a href="http://en.wikipedia.org/wiki/Control_grid" title="Control grid"&gt;control grid&lt;/a&gt; of a &lt;a href="http://en.wikipedia.org/wiki/Vacuum_tube" title="Vacuum tube"&gt;vacuum tube&lt;/a&gt;. This is not a resistor technology; it is an electronic circuit topology.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Negative_resistors"&gt;Negative resistors&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Negative_resistance" title="Negative resistance"&gt;Negative resistance&lt;/a&gt;&lt;/div&gt;A device exhibiting negative resistance over part of its &lt;a href="http://en.wikipedia.org/wiki/Characteristic_curve" title="Characteristic curve"&gt;characteristic curve&lt;/a&gt; can be made with active circuit components.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Special_varieties"&gt;Special varieties&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Metal_oxide_varistor" title="Metal oxide varistor"&gt;Metal oxide varistor&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Cermet" title="Cermet"&gt;Cermet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Phenolic" title="Phenolic"&gt;Phenolic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Tantalum" title="Tantalum"&gt;Tantalum&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Water_resistor" title="Water resistor"&gt;Water resistor&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Adjustable_resistors"&gt;Adjustable resistors&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Tapped_resistors"&gt;Tapped resistors&lt;/span&gt;&lt;/h3&gt;A resistor may have one or more fixed tapping points so that the resistance can be changed by moving the connecting wires to different terminals. Wire-wound power resistors can have a tapping point that can slide the resistance element, allowing any part of the resistance to be used.&lt;br /&gt;Where continuous adjustment of the resistance value during operation of equipment is required, the sliding resistance tap can be connected to a knob accessible to an operator. Such a device is called a "rheostat" and has two terminals.&lt;br /&gt;A frequent element of electronic devices is a three-terminal resistor with a continuously-adjustable tapping point controlled by rotation of a shaft or knob. These variable resistors are known as a &lt;a href="http://en.wikipedia.org/wiki/Potentiometer" title="Potentiometer"&gt;potentiometer&lt;/a&gt; when all three terminals are connected, since they act as a continuously adjustable &lt;a href="http://en.wikipedia.org/wiki/Voltage_divider" title="Voltage divider"&gt;voltage divider&lt;/a&gt;. A common example is a volume control for a radio receiver.&lt;sup class="reference" id="cite_ref-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-8"&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Accurate, high-resolution panel-mounted pots have resistance elements typically wirewound on a helical mandrel, although some include a conductive-plastic resistance coating over the wire to improve resolution. These typically offer ten turns of their shafts to cover their full range. They are usually set with dials that include a simple turns counter and a graduated dial. Electronic analog computers used them in quantity for setting coefficients, and delayed-sweep oscilloscopes of recent decades included one on their panels.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Strain_gauges"&gt;Strain gauges&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Strain_gauge" title="Strain gauge"&gt;Strain gauge&lt;/a&gt;&lt;/div&gt;The strain gauge, invented by &lt;a href="http://en.wikipedia.org/wiki/Edward_E._Simmons" title="Edward E. Simmons"&gt;Edward E. Simmons&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Arthur_C._Ruge" title="Arthur C. Ruge"&gt;Arthur C. Ruge&lt;/a&gt; in 1938, is a type of resistor that changes value with applied strain. A single resistor may be used, or a pair (half bridge), or four resistors connected in a &lt;a href="http://en.wikipedia.org/wiki/Wheatstone_bridge" title="Wheatstone bridge"&gt;Wheatstone bridge&lt;/a&gt; configuration. The strain resistor is bonded with adhesive to an object that will be subjected to &lt;a href="http://en.wikipedia.org/wiki/Infinitesimal_strain_theory" title="Infinitesimal strain theory"&gt;mechanical strain&lt;/a&gt;. With the strain gauge and a filter, amplifier, and analog/digital converter, the strain on an object can be measured.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Resistance_decade_boxes"&gt;Resistance decade boxes&lt;/span&gt;&lt;/h3&gt;A resistance decade box is a box containing resistors of many values and two (or four) terminals, with a mechanical switch that allows a resistance of any value allowed by the box to be dialed. Usually the resistance is accurate to high precision, ranging from laboratory/calibration grade accurate to within 20 parts per million, to field grade at 1%. Inexpensive boxes with lesser accuracy are also available. All types offer a convenient way of selecting and quickly changing a resistance in laboratory, experimental and development work without having to stock and seek individual resistors of the required value. The range of resistance provided, the maximum resolution, and the accuracy characterize the box. For example, one box offers resistances from 0 to 24 megohms, maximum resolution 0.1 ohm, accuracy 0.1%.&lt;sup class="reference" id="cite_ref-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-9"&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Special_varieties_2"&gt;Special varieties&lt;/span&gt;&lt;/h3&gt;There are special types of resistor whose resistance changes with various quantities: the resistance of &lt;a href="http://en.wikipedia.org/wiki/Thermistor" title="Thermistor"&gt;thermistors&lt;/a&gt; varies greatly with temperature, whether external or due to dissipation, so they can be used for temperature or current sensing; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Metal_oxide_varistor" title="Metal oxide varistor"&gt;metal oxide varistors&lt;/a&gt; drop to a very low resistance when a high voltage is applied, making them suitable for over-voltage protection; the resistance of &lt;a href="http://en.wikipedia.org/wiki/Photoresistor" title="Photoresistor"&gt;photoresistors&lt;/a&gt; varies with illumination; the resistance of a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Quantum_Tunnelling_Composite" title="Quantum Tunnelling Composite"&gt;Quantum Tunnelling Composite&lt;/a&gt; can vary by a factor of 10&lt;sup&gt;12&lt;/sup&gt; with mechanical pressure applied; and so on.&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Measurement"&gt;Measurement&lt;/span&gt;&lt;/h2&gt;The value of a resistor can be measured with an &lt;a href="http://en.wikipedia.org/wiki/Ohmmeter" title="Ohmmeter"&gt;ohmmeter&lt;/a&gt;, which may be one function of a &lt;a href="http://en.wikipedia.org/wiki/Multimeter" title="Multimeter"&gt;multimeter&lt;/a&gt;. Usually, probes on the ends of test leads connect to the resistor.&lt;br /&gt;Measuring low-value resistors, such as fractional-ohm resistors, with acceptable accuracy requires four-terminal connections. One pair of terminals applies a known, calibrated current to the resistor, while the other pair senses the voltage drop across the resistor. Some laboratory test instruments have spring-loaded pairs of contacts, with neighboring contacts electrically isolated from each other. Better digital multimeters have four terminals on their panels, generally used with special test leads. These comprise four wires in all, and have special test clips with jaws insulated from each other. One jaw provides the measuring current, while the other senses the voltage drop. The resistance is then calculated using &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Ohm%27s_Law" title="Ohm's Law"&gt;Ohm's Law&lt;/a&gt;.&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Standards"&gt;Standards&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Production_resistors"&gt;Production resistors&lt;/span&gt;&lt;/h3&gt;Resistor characteristics are quantified and reported using various national standards. In the US, MIL-STD-202&lt;sup class="reference" id="cite_ref-10"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-10"&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; contains the relevant test methods to which other standards refer.&lt;br /&gt;There are various standards specifying properties of resistors for use in equipment:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/BS_1852" title="BS 1852"&gt;BS 1852&lt;/a&gt;&lt;/li&gt;&lt;li&gt;EIA-RS-279&lt;/li&gt;&lt;li&gt;MIL-PRF-26&lt;/li&gt;&lt;li&gt;MIL-PRF-39007 (Fixed Power, established reliability)&lt;/li&gt;&lt;li&gt;MIL-PRF-55342 (Surface-mount thick and thin film)&lt;/li&gt;&lt;li&gt;MIL-PRF-914&lt;/li&gt;&lt;li&gt;MIL-R-11&lt;/li&gt;&lt;li&gt;MIL-R-39017 (Fixed, General Purpose, Established Reliability)&lt;/li&gt;&lt;li&gt;MIL-PRF-32159 (zero ohm jumpers)&lt;/li&gt;&lt;/ul&gt;There are other United States military procurement MIL-R- standards.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Resistance_standards"&gt;Resistance standards&lt;/span&gt;&lt;/h3&gt;The &lt;a href="http://en.wikipedia.org/wiki/Primary_standard" title="Primary standard"&gt;primary standard&lt;/a&gt; for resistance, the "mercury ohm" was initially defined in 1884 in as a column of mercury 106mm long and 1 square millimeter in cross-section, at 0 degrees Celsius. Difficulties in precisely measuring the physical constants to replicate this standard result in variations of as much as 30 ppm. From 1900 the mercury ohm was replaced with a precision machined plate of &lt;a href="http://en.wikipedia.org/wiki/Manganin" title="Manganin"&gt;manganin&lt;/a&gt;&lt;sup class="reference" id="cite_ref-11"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-11"&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;. Since 1990 the international resistance standard has been based on the &lt;a href="http://en.wikipedia.org/wiki/Quantum_Hall_effect" title="Quantum Hall effect"&gt;quantized Hall effect&lt;/a&gt; discovered by &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Von_Klitzing" title="Von Klitzing"&gt;Klaus von Klitzing&lt;/a&gt;, for which he won the Nobel Prize in Physics in 1985&lt;sup class="reference" id="cite_ref-12"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-12"&gt;&lt;span&gt;[&lt;/span&gt;13&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Resistors of extremely high precision are manufactured for &lt;a href="http://en.wikipedia.org/wiki/Calibration" title="Calibration"&gt;calibration&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Laboratory" title="Laboratory"&gt;laboratory&lt;/a&gt; use. They may have four terminals, using one pair to carry an operating current and the other pair to measure the voltage drop; this eliminates errors caused by voltage drops across the lead resistances, because no current flows through voltage sensing leads. It is important in small value resistors (100–0.0001 Ohm) where lead resistance is significant or even comparable with respect to resistance standard value.&lt;sup class="reference" id="cite_ref-13"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-13"&gt;&lt;span&gt;[&lt;/span&gt;14&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Resistor_marking"&gt;Resistor marking&lt;/span&gt;&lt;/h2&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Electronic_color_code" title="Electronic color code"&gt;Electronic color code&lt;/a&gt;&lt;/div&gt;Most axial resistors use a pattern of colored stripes to indicate resistance. &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Surface-mount" title="Surface-mount"&gt;Surface-mount&lt;/a&gt; resistors are marked numerically, if they are big enough to permit marking; more-recent small sizes are impractical to mark. Cases are usually tan, brown, blue, or green, though other colors are occasionally found such as dark red or dark gray.&lt;br /&gt;Early 20th century resistors, essentially uninsulated, were dipped in paint to cover their entire body for color coding. A second color of paint was applied to one end of the element, and a color dot (or band) in the middle provided the third digit. The rule was "body, tip, dot", providing two significant digits for value and the decimal multiplier, in that sequence. Default tolerance was ±20%. Closer-tolerance resistors had silver (±10%) or gold-colored (±5%) paint on the other end.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Four-band_resistors"&gt;Four-band resistors&lt;/span&gt;&lt;/h3&gt;Four-band identification is the most commonly used color-coding scheme on resistors. It consists of four colored bands that are painted around the body of the resistor. The first two bands encode the first two significant digits of the resistance value, the third is a power-of-ten multiplier or number-of-zeroes, and the fourth is the &lt;a href="http://en.wikipedia.org/wiki/Engineering_tolerance" title="Engineering tolerance"&gt;tolerance accuracy&lt;/a&gt;, or acceptable error, of the value. The first three bands are equally spaced along the resistor; the spacing to the fourth band is wider. Sometimes a fifth band identifies the thermal coefficient, but this must be distinguished from the true 5-color system, with 3 significant digits.&lt;br /&gt;For example, green-blue-yellow-red is 56×10&lt;sup&gt;4&lt;/sup&gt;&amp;nbsp;Ω = 560&amp;nbsp;kΩ&amp;nbsp;±&amp;nbsp;2%. An easier description can be as followed: the first band, green, has a value of 5 and the second band, blue, has a value of 6, and is counted as 56. The third band, yellow, has a value of 10&lt;sup&gt;4&lt;/sup&gt;, which adds four 0's to the end, creating 560,000 Ω at ±2% tolerance accuracy. 560,000 Ω changes to 560 kΩ ±2% (as a kilo- is 10&lt;sup&gt;3&lt;/sup&gt;).&lt;br /&gt;Each color corresponds to a certain digit, progressing from darker to lighter colors, as shown in the chart below.&lt;br /&gt;&lt;table class="wikitable"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Color&lt;/th&gt; &lt;th&gt;1&lt;sup&gt;st&lt;/sup&gt; band&lt;/th&gt; &lt;th&gt;2&lt;sup&gt;nd&lt;/sup&gt; band&lt;/th&gt; &lt;th&gt;3&lt;sup&gt;rd&lt;/sup&gt; band (multiplier)&lt;/th&gt; &lt;th&gt;4&lt;sup&gt;th&lt;/sup&gt; band (tolerance)&lt;/th&gt; &lt;th&gt;Temp. Coefficient&lt;/th&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: black none repeat scroll 0% 0%; color: white;"&gt; &lt;td&gt;&lt;span style="color: white;"&gt;Black&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;0&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;0&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;×10&lt;sup&gt;0&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(101, 67, 33) none repeat scroll 0% 0%; color: white;"&gt; &lt;td&gt;&lt;span style="color: white;"&gt;Brown&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;1&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;1&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;×10&lt;sup&gt;1&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;±1% (F)&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;100 ppm&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(224, 36, 16) none repeat scroll 0% 0%; color: black;"&gt; &lt;td&gt;&lt;span style="color: black;"&gt;Red&lt;/span&gt;&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;2&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;±2% (G)&lt;/td&gt; &lt;td&gt;50 ppm&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#ff7f00"&gt; &lt;td&gt;Orange&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;3&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;15 ppm&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#ffff00"&gt; &lt;td&gt;Yellow&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;4&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;25 ppm&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#228b22"&gt; &lt;td&gt;&lt;span style="color: white;"&gt;Green&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;5&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;5&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;×10&lt;sup&gt;5&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;±0.5% (D)&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(0, 0, 205) none repeat scroll 0% 0%; color: white;"&gt; &lt;td&gt;&lt;span style="color: white;"&gt;Blue&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;6&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;6&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;×10&lt;sup&gt;6&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;±0.25% (C)&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(148, 0, 211) none repeat scroll 0% 0%; color: white;"&gt; &lt;td&gt;&lt;span style="color: white;"&gt;Violet&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;7&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;7&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;×10&lt;sup&gt;7&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style="color: white;"&gt;±0.1% (B)&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(128, 128, 128) none repeat scroll 0% 0%; color: white;"&gt; &lt;td&gt;Gray&lt;/td&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;8&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;±0.05% (A)&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#ffffff"&gt; &lt;td&gt;White&lt;/td&gt; &lt;td&gt;9&lt;/td&gt; &lt;td&gt;9&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;9&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#d4af37"&gt; &lt;td&gt;Gold&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;−1&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;±5% (J)&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr bgcolor="#c0c0c0"&gt; &lt;td&gt;Silver&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;×10&lt;sup&gt;−2&lt;/sup&gt;&lt;/td&gt; &lt;td&gt;±10% (K)&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;None&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;±20% (M)&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;There are many &lt;a href="http://en.wikipedia.org/wiki/Electronic_color_code#Mnemonics" title="Electronic color code"&gt;mnemonics for remembering these colors&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Preferred_values"&gt;Preferred values&lt;/span&gt;&lt;/h3&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Preferred_number" title="Preferred number"&gt;Preferred number&lt;/a&gt;&lt;/div&gt;Early resistors were made in more or less arbitrary round numbers; a series might have 100, 125, 150, 200, 300, etc. Resistors as manufactured are subject to a certain percentage &lt;a href="http://en.wikipedia.org/wiki/Engineering_tolerance" title="Engineering tolerance"&gt;tolerance&lt;/a&gt;, and it makes sense to manufacture values that correlate with the tolerance, so that the actual value of a resistor overlaps slightly with its neighbors. Wider spacing leaves gaps; narrower spacing increases manufacturing and inventory costs to provide resistors that are more or less interchangeable.&lt;br /&gt;A logical scheme is to produce resistors in a range of values which increase in a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Geometrical_progression" title="Geometrical progression"&gt;geometrical progression&lt;/a&gt;, so that each value is greater than its predecessor by a fixed multiplier or percentage, chosen to match the tolerance of the range. For example, for a tolerance of ±20% it makes sense to have each resistor about 1.5 times its predecessor, covering a decade in 6 values. In practice the factor used is 1.4678, giving values of 1.47, 2.15, 3.16, 4.64, 6.81, 10 for the 1-10 decade (a decade is a range increasing by a factor of 10; 0.1-1 and 10-100 are other examples); these are rounded in practice to 1.5, 2.2, 3.3, 4.7, 6.8, 10; followed, of course by 15, 22, 33, … and preceded by … 0.47, 0.68, 1. This scheme has been adopted as the &lt;b&gt;E6&lt;/b&gt; range of the &lt;a href="http://en.wikipedia.org/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission"&gt;IEC&lt;/a&gt; 60063 &lt;a href="http://en.wikipedia.org/wiki/Preferred_number" title="Preferred number"&gt;preferred number&lt;/a&gt; series. There are also &lt;b&gt;E12&lt;/b&gt;, &lt;b&gt;E24&lt;/b&gt;, &lt;b&gt;E48&lt;/b&gt;, &lt;b&gt;E96&lt;/b&gt; and &lt;b&gt;E192&lt;/b&gt; ranges for components of ever tighter tolerance, with 12, 24, 96, and 192 different values within each decade. The actual values used are in the &lt;a href="http://en.wikipedia.org/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission"&gt;IEC&lt;/a&gt; 60063 lists of &lt;a href="http://en.wikipedia.org/wiki/Preferred_number#Capacitors_and_resistors" title="Preferred number"&gt;preferred numbers&lt;/a&gt;.&lt;br /&gt;A resistor of 100 ohms ±20% would be expected to have a value between 80 and 120 ohms; its E6 neighbors are 68 (54-82) and 150 (120-180) ohms. A sensible spacing, E6 is used for ±20% components; E12 for ±10%; E24 for ±5%; E48 for ±2%, E96 for ±1%; E192 for ±0.5% or better. Resistors are manufactured in values from a few milliohms to about a gigaohm in IEC60063 ranges appropriate for their tolerance.&lt;br /&gt;Earlier power wirewound resistors, such as brown vitreous-enameled types, however, were made with a different system of preferred values, such as some of those mentioned in the first sentence of this section.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="5-band_axial_resistors"&gt;5-band axial resistors&lt;/span&gt;&lt;/h3&gt;5-band identification is used for higher &lt;a href="http://en.wikipedia.org/wiki/Accuracy_and_precision" title="Accuracy and precision"&gt;precision&lt;/a&gt; (lower tolerance) resistors (1%, 0.5%, 0.25%, 0.1%), to specify a third significant digit. The first three bands represent the significant digits, the fourth is the multiplier, and the fifth is the tolerance. Five-band resistors with a gold or silver 4th band are sometimes encountered, generally on older or specialized resistors. The 4th band is the tolerance and the 5th the temperature coefficient.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="SMD_resistors"&gt;SMD resistors&lt;/span&gt;&lt;/h3&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Zero_ohm_resistors_cropped.jpg"&gt;&lt;img alt="" class="thumbimage" height="187" src="http://1.1.1.2/bmi/upload.wikimedia.org/wikipedia/commons/thumb/0/05/Zero_ohm_resistors_cropped.jpg/220px-Zero_ohm_resistors_cropped.jpg" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Zero_ohm_resistors_cropped.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;This image shows four surface-mount resistors (the component at the upper left is a capacitor) including two &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Zero-ohm_resistor" title="Zero-ohm resistor"&gt;zero-ohm resistors&lt;/a&gt;. Zero-ohm links are often used instead of wire links, so that they can be inserted by a resistor-inserting machine. Of course, their resistance is finite, although quite low. &lt;i&gt;Zero&lt;/i&gt; is simply a brief description of their function.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="http://en.wikipedia.org/wiki/Surface-mount_technology" title="Surface-mount technology"&gt;Surface mounted&lt;/a&gt; resistors are printed with numerical values in a code related to that used on axial resistors. Standard-tolerance &lt;a href="http://en.wikipedia.org/wiki/Surface-mount_technology" title="Surface-mount technology"&gt;surface-mount technology (SMT)&lt;/a&gt; resistors are marked with a three-digit code, in which the first two digits are the first two &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Significant_digit" title="Significant digit"&gt;significant digits&lt;/a&gt; of the value and the third digit is the power of ten (the number of zeroes). For example:&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;334&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 33 × 10,000 ohms = 330 kilohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;222&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 22 × 100 ohms = 2.2 kilohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;473&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 47 × 1,000 ohms = 47 kilohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;105&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 10 × 100,000 ohms = 1.0 megohm&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Resistances less than 100 ohms are written: 100, 220, 470. The final zero represents ten to the power zero, which is 1. For example:&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;100&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 10 × 1 ohm = 10 ohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;220&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 22 × 1 ohm = 22 ohms&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Sometimes these values are marked as &lt;i&gt;10&lt;/i&gt; or &lt;i&gt;22&lt;/i&gt; to prevent a mistake.&lt;br /&gt;Resistances less than 10 ohms have 'R' to indicate the position of the decimal point (&lt;a href="http://en.wikipedia.org/wiki/Radix_point" title="Radix point"&gt;radix point&lt;/a&gt;). For example:&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;4R7&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 4.7 ohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;0R22&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 0.22 ohms&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;0R01&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 0.01 ohms&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Precision resistors are marked with a four-digit code, in which the first three digits are the significant figures and the fourth is the power of ten. For example:&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;1001&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 100 × 10 ohms = 1.00 kilohm&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;4992&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 499 × 100 ohms = 49.9 kilohm&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;i&gt;1000&lt;/i&gt;&lt;/td&gt; &lt;td&gt;= 100 × 1 ohm = 100 ohms&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;i&gt;000&lt;/i&gt; and &lt;i&gt;0000&lt;/i&gt; sometimes appear as values on surface-mount &lt;a href="http://en.wikipedia.org/wiki/Zero-ohm_link" title="Zero-ohm link"&gt;zero-ohm links&lt;/a&gt;, since these have (approximately) zero resistance.&lt;br /&gt;More recent surface-mount resistors are too small, physically, to permit practical markings to be applied.&lt;br /&gt;&lt;h3&gt;&lt;span class="mw-headline" id="Industrial_type_designation"&gt;Industrial type designation&lt;/span&gt;&lt;/h3&gt;&lt;b&gt;Format:&lt;/b&gt; &lt;i&gt;[two letters]&lt;space&gt;[resistance value (three digit)]&lt;nospace&gt;[tolerance code(numerical - one digit)]&lt;/nospace&gt;&lt;/space&gt;&lt;/i&gt; &lt;sup class="reference" id="cite_ref-14"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-14"&gt;&lt;span&gt;[&lt;/span&gt;15&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;table align="left" class="wikitable"&gt;&lt;caption&gt;Power Rating at 70 °C&lt;/caption&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Type No.&lt;/th&gt; &lt;th&gt;Power&lt;br /&gt;rating&lt;br /&gt;(watts)&lt;/th&gt; &lt;th&gt;&lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=MIL-R-11&amp;amp;action=edit&amp;amp;redlink=1" title="MIL-R-11 (page does not exist)"&gt;MIL-R-11&lt;/a&gt;&lt;br /&gt;Style&lt;/th&gt; &lt;th&gt;&lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=MIL-R-39008&amp;amp;action=edit&amp;amp;redlink=1" title="MIL-R-39008 (page does not exist)"&gt;MIL-R-39008&lt;/a&gt;&lt;br /&gt;Style&lt;/th&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;BB&lt;/td&gt; &lt;td&gt;⅛&lt;/td&gt; &lt;td&gt;RC05&lt;/td&gt; &lt;td&gt;RCR05&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;CB&lt;/td&gt; &lt;td&gt;¼&lt;/td&gt; &lt;td&gt;RC07&lt;/td&gt; &lt;td&gt;RCR07&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;EB&lt;/td&gt; &lt;td&gt;½&lt;/td&gt; &lt;td&gt;RC20&lt;/td&gt; &lt;td&gt;RCR20&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;GB&lt;/td&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;RC32&lt;/td&gt; &lt;td&gt;RCR32&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;HB&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;RC42&lt;/td&gt; &lt;td&gt;RCR42&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;GM&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;-&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;HM&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;-&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" class="wikitable"&gt;&lt;caption&gt;Tolerance Code&lt;/caption&gt; &lt;tbody&gt;&lt;tr align="center"&gt; &lt;th width="75"&gt;Industrial type designation&lt;/th&gt; &lt;th width="50"&gt;Tolerance&lt;/th&gt; &lt;th width="75"&gt;MIL Designation&lt;/th&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;±5%&lt;/td&gt; &lt;td&gt;J&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;±20%&lt;/td&gt; &lt;td&gt;M&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;±10%&lt;/td&gt; &lt;td&gt;K&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;±2%&lt;/td&gt; &lt;td&gt;G&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;±1%&lt;/td&gt; &lt;td&gt;F&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;±0.5%&lt;/td&gt; &lt;td&gt;D&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;±0.25%&lt;/td&gt; &lt;td&gt;C&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;-&lt;/td&gt; &lt;td&gt;±0.1%&lt;/td&gt; &lt;td&gt;B&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;The operational &lt;a href="http://en.wikipedia.org/wiki/Temperature" title="Temperature"&gt;temperature&lt;/a&gt; range distinguishes commercial grade, industrial grade and military grade components.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Commercial grade: 0 °C to 70 °C&lt;/li&gt;&lt;li&gt;Industrial grade: −40 °C to 85 °C (sometimes −25 °C to 85 °C)&lt;/li&gt;&lt;li&gt;Military grade: −55 °C to 125 °C (sometimes -65 °C to 275 °C)&lt;/li&gt;&lt;li&gt;Standard Grade -5 °C to 60 °C&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Electrical_and_thermal_noise"&gt;Electrical and thermal noise&lt;/span&gt;&lt;/h2&gt;In precision applications it is often necessary to minimize &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electronic_noise" title="Electronic noise"&gt;electronic noise&lt;/a&gt;. As dissipative elements, even ideal resistors will naturally produce a fluctuating "noise" voltage across their terminals. This &lt;a href="http://en.wikipedia.org/wiki/Johnson%E2%80%93Nyquist_noise" title="Johnson–Nyquist noise"&gt;Johnson–Nyquist noise&lt;/a&gt; is a fundamental noise source which depends only upon the temperature and resistance of the resistor, and is predicted by the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Fluctuation%E2%80%93dissipation_theorem" title="Fluctuation–dissipation theorem"&gt;fluctuation–dissipation theorem&lt;/a&gt;. For example, the gain in a simple (non-) inverting amplifier is set using a voltage divider. Noise considerations dictate that the smallest practical resistance should be used, since the Johnson–Nyquist noise voltage scales with resistance, and any resistor noise in the voltage divider will be impressed upon the amplifier's output.&lt;br /&gt;In addition, small voltage differentials may appear on the resistors due to &lt;a href="http://en.wikipedia.org/wiki/Thermoelectric_effect" title="Thermoelectric effect"&gt;thermoelectric effect&lt;/a&gt; if their ends are not kept at the same temperature. The voltages appear in the junctions of the resistor leads with the circuit board and with the resistor body. Common metal film resistors show such an effect at a magnitude of about 20 µV/°C. Some carbon composition resistors can go as high as 400 µV/°C, and specially constructed resistors can go as low as 0.05 µV/°C. In applications where thermoelectric effects may become important, care has to be taken (for example) to mount the resistors horizontally to avoid temperature gradients and to mind the air flow over the board.&lt;sup class="reference" id="cite_ref-15"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-15"&gt;&lt;span&gt;[&lt;/span&gt;16&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Practical resistors frequently exhibit other, "non-fundamental", sources of noise, usually called "excess noise." Excess noise results in a "Noise Index" for a type of resistor. Excess Noise is due to current flow in the resistor and is specified as μV/V/decade - μV of noise per volt applied across the resistor per decade of frequency. The μV/V/decade value is frequently given in dB so that a resistor with a noise index of 0dB will exhibit 1 μV (rms) of excess noise for each volt across the resistor in each frequency decade. Excess noise is an example of 1/&lt;i&gt;f&lt;/i&gt; noise. Thick-film and carbon composition resistors generate more noise than other types at low frequencies; wire-wound and thin-film resistors, though much more expensive, are often utilized for their better noise characteristics. Carbon composition resistors can exhibit a noise index of 0 dB while bulk metal foil resistors may have a noise index of -40 dB, usually making the excess noise of metal foil resistors insignificant.&lt;sup class="reference" id="cite_ref-16"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-16"&gt;&lt;span&gt;[&lt;/span&gt;17&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Thin film surface mount resistors typically have lower noise and better thermal stability than thick film surface mount resistors. However, the design engineer must read the data sheets for the family of devices to weigh the various device tradeoffs.&lt;br /&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Failure_modes"&gt;Failure modes&lt;/span&gt;&lt;/h2&gt;Like every part, resistors can fail in normal use. Thermal and mechanical stress, humidity, etc., can play a part. Carbon composition resistors and metal film resistors typically fail as open circuits. Carbon-film resistors may decrease or increase in resistance.&lt;sup class="reference" id="cite_ref-17"&gt;&lt;a href="http://en.wikipedia.org/wiki/Resistor#cite_note-17"&gt;&lt;span&gt;[&lt;/span&gt;18&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Carbon film and composition resistors can open if running close to their maximum dissipation. This is also possible but less likely with metal film and wirewound resistors. If not enclosed, wirewound resistors can corrode. The resistance of carbon composition resistors are prone to drift over time and are easily damaged by excessive heat in soldering (the binder evaporates). Variable resistors become electrically noisy as they wear.&lt;br /&gt;All resistors can be destroyed, usually by going open-circuit, if subjected to excessive current due to failure of other components or accident.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-2330324236821058630?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/2330324236821058630/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/resistor.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2330324236821058630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2330324236821058630'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/resistor.html' title='Resistor'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-6235575964265417453</id><published>2010-05-16T20:56:00.000-07:00</published><updated>2010-05-16T20:56:31.916-07:00</updated><title type='text'>Diode</title><content type='html'>&lt;h1 class="firstHeading" id="firstHeading"&gt;Diode&lt;/h1&gt;&lt;br /&gt;In &lt;a href="http://en.wikipedia.org/wiki/Electronics" title="Electronics"&gt;electronics&lt;/a&gt;, a &lt;b&gt;diode&lt;/b&gt; is a two-&lt;a href="http://en.wikipedia.org/wiki/Terminal_%28electronics%29" title="Terminal (electronics)"&gt;terminal&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Electronic_component" title="Electronic component"&gt;electronic component&lt;/a&gt; that conducts &lt;a href="http://en.wikipedia.org/wiki/Electric_current" title="Electric current"&gt;electric current&lt;/a&gt; in only one direction. The term usually refers to a &lt;b&gt;semiconductor diode&lt;/b&gt;, the most common type today, which is a crystal of &lt;a href="http://en.wikipedia.org/wiki/Semiconductor" title="Semiconductor"&gt;semiconductor&lt;/a&gt; connected to two electrical terminals. A &lt;b&gt;vacuum tube diode&lt;/b&gt; (now little used) is a &lt;a href="http://en.wikipedia.org/wiki/Vacuum_tube" title="Vacuum tube"&gt;vacuum tube&lt;/a&gt; with two &lt;a href="http://en.wikipedia.org/wiki/Electrode" title="Electrode"&gt;electrodes&lt;/a&gt;; a &lt;a href="http://en.wikipedia.org/wiki/Plate_electrode" title="Plate electrode"&gt;plate&lt;/a&gt; and a &lt;a href="http://en.wikipedia.org/wiki/Cathode" title="Cathode"&gt;cathode&lt;/a&gt;.&lt;br /&gt;The most common function of a diode is to allow an electric current to flow though it in one direction (called the diode's &lt;i&gt;forward&lt;/i&gt; direction) while blocking current in the opposite direction (the &lt;i&gt;reverse&lt;/i&gt; direction). Thus, the diode can be thought of as an electronic version of a &lt;a href="http://en.wikipedia.org/wiki/Check_valve" title="Check valve"&gt;check valve&lt;/a&gt;. This unidirectional behavior is called &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Rectification_%28electricity%29" title="Rectification (electricity)"&gt;rectification&lt;/a&gt;, and is used to convert &lt;a href="http://en.wikipedia.org/wiki/Alternating_current" title="Alternating current"&gt;alternating current&lt;/a&gt; to &lt;a href="http://en.wikipedia.org/wiki/Direct_current" title="Direct current"&gt;direct current&lt;/a&gt;, and extract &lt;a href="http://en.wikipedia.org/wiki/Modulation" title="Modulation"&gt;modulation&lt;/a&gt; from radio signals in radio receivers.&lt;br /&gt;However, diodes can have more complicated behavior than this simple on-off action, due to their complex &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Non-linear" title="Non-linear"&gt;non-linear&lt;/a&gt; electrical characteristics, which can be tailored by varying the construction of their &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/P-N_junction" title="P-N junction"&gt;P-N junction&lt;/a&gt;. These are exploited in special purpose diodes that perform many different functions. Diodes are used to regulate voltage (&lt;a href="http://en.wikipedia.org/wiki/Zener_diode" title="Zener diode"&gt;Zener diodes&lt;/a&gt;), electronically tune radio and TV receivers (&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Varactor_diode" title="Varactor diode"&gt;varactor diodes&lt;/a&gt;), generate &lt;a href="http://en.wikipedia.org/wiki/Radio_frequency" title="Radio frequency"&gt;radio frequency&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Oscillation" title="Oscillation"&gt;oscillations&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/Tunnel_diode" title="Tunnel diode"&gt;tunnel diodes&lt;/a&gt;), and produce light (&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Light_emitting_diode" title="Light emitting diode"&gt;light emitting diodes&lt;/a&gt;).&lt;br /&gt;Diodes were the first &lt;a href="http://en.wikipedia.org/wiki/Semiconductor_device" title="Semiconductor device"&gt;semiconductor electronic devices&lt;/a&gt;. The discovery of crystals' &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Rectification_%28electricity%29" title="Rectification (electricity)"&gt;rectifying&lt;/a&gt; abilities was made by German physicist &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Ferdinand_Braun" title="Ferdinand Braun"&gt;Ferdinand Braun&lt;/a&gt; in 1874. The first semiconductor diodes, called &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Cat%27s_whisker_diode" title="Cat's whisker diode"&gt;cat's whisker diodes&lt;/a&gt; were made of crystals of minerals such as &lt;a href="http://en.wikipedia.org/wiki/Galena" title="Galena"&gt;galena&lt;/a&gt;. Today most diodes are made of &lt;a href="http://en.wikipedia.org/wiki/Silicon" title="Silicon"&gt;silicon&lt;/a&gt;, but other &lt;a href="http://en.wikipedia.org/wiki/Semiconductor" title="Semiconductor"&gt;semiconductors&lt;/a&gt; such as &lt;a href="http://en.wikipedia.org/wiki/Germanium" title="Germanium"&gt;germanium&lt;/a&gt; are sometimes used.&lt;br /&gt;&lt;table class="toc" id="toc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle"&gt;&lt;h2&gt;Contents&lt;/h2&gt;&lt;span class="toctoggle"&gt;[&lt;a class="internal" href="javascript:toggleToc()" id="togglelink"&gt;hide&lt;/a&gt;]&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li class="toclevel-1 tocsection-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#History"&gt;&lt;span class="tocnumber"&gt;1&lt;/span&gt; &lt;span class="toctext"&gt;History&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Thermionic_and_gaseous_state_diodes"&gt;&lt;span class="tocnumber"&gt;2&lt;/span&gt; &lt;span class="toctext"&gt;Thermionic and gaseous state diodes&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Semiconductor_diodes"&gt;&lt;span class="tocnumber"&gt;3&lt;/span&gt; &lt;span class="toctext"&gt;Semiconductor diodes&lt;/span&gt;&lt;/a&gt; &lt;ul&gt;&lt;li class="toclevel-2 tocsection-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Current.E2.80.93voltage_characteristic"&gt;&lt;span class="tocnumber"&gt;3.1&lt;/span&gt; &lt;span class="toctext"&gt;Current–voltage characteristic&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Shockley_diode_equation"&gt;&lt;span class="tocnumber"&gt;3.2&lt;/span&gt; &lt;span class="toctext"&gt;Shockley diode equation&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Small-signal_behaviour"&gt;&lt;span class="tocnumber"&gt;3.3&lt;/span&gt; &lt;span class="toctext"&gt;Small-signal behaviour&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Types_of_semiconductor_diode"&gt;&lt;span class="tocnumber"&gt;4&lt;/span&gt; &lt;span class="toctext"&gt;Types of semiconductor diode&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Numbering_and_Coding_schemes"&gt;&lt;span class="tocnumber"&gt;5&lt;/span&gt; &lt;span class="toctext"&gt;Numbering and Coding schemes&lt;/span&gt;&lt;/a&gt; &lt;ul&gt;&lt;li class="toclevel-2 tocsection-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#EIA.2FJEDEC"&gt;&lt;span class="tocnumber"&gt;5.1&lt;/span&gt; &lt;span class="toctext"&gt;EIA/JEDEC&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-10"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Pro_Electron"&gt;&lt;span class="tocnumber"&gt;5.2&lt;/span&gt; &lt;span class="toctext"&gt;Pro Electron&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-11"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Related_devices"&gt;&lt;span class="tocnumber"&gt;6&lt;/span&gt; &lt;span class="toctext"&gt;Related devices&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-12"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Applications"&gt;&lt;span class="tocnumber"&gt;7&lt;/span&gt; &lt;span class="toctext"&gt;Applications&lt;/span&gt;&lt;/a&gt; &lt;ul&gt;&lt;li class="toclevel-2 tocsection-13"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Radio_demodulation"&gt;&lt;span class="tocnumber"&gt;7.1&lt;/span&gt; &lt;span class="toctext"&gt;Radio demodulation&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-14"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Power_conversion"&gt;&lt;span class="tocnumber"&gt;7.2&lt;/span&gt; &lt;span class="toctext"&gt;Power conversion&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-15"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Over-voltage_protection"&gt;&lt;span class="tocnumber"&gt;7.3&lt;/span&gt; &lt;span class="toctext"&gt;Over-voltage protection&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-16"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Logic_gates"&gt;&lt;span class="tocnumber"&gt;7.4&lt;/span&gt; &lt;span class="toctext"&gt;Logic gates&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-17"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Ionizing_radiation_detectors"&gt;&lt;span class="tocnumber"&gt;7.5&lt;/span&gt; &lt;span class="toctext"&gt;Ionizing radiation detectors&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-18"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Temperature_measurements"&gt;&lt;span class="tocnumber"&gt;7.6&lt;/span&gt; &lt;span class="toctext"&gt;Temperature measurements&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-19"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Current_steering"&gt;&lt;span class="tocnumber"&gt;7.7&lt;/span&gt; &lt;span class="toctext"&gt;Current steering&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-20"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Abbreviations"&gt;&lt;span class="tocnumber"&gt;8&lt;/span&gt; &lt;span class="toctext"&gt;Abbreviations&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-21"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#See_also"&gt;&lt;span class="tocnumber"&gt;9&lt;/span&gt; &lt;span class="toctext"&gt;See also&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-22"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#References"&gt;&lt;span class="tocnumber"&gt;10&lt;/span&gt; &lt;span class="toctext"&gt;References&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-23"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#External_links"&gt;&lt;span class="tocnumber"&gt;11&lt;/span&gt; &lt;span class="toctext"&gt;External links&lt;/span&gt;&lt;/a&gt; &lt;ul&gt;&lt;li class="toclevel-2 tocsection-24"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#Interactive_.26_Animations"&gt;&lt;span class="tocnumber"&gt;11.1&lt;/span&gt; &lt;span class="toctext"&gt;Interactive &amp;amp; Animations&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;script type="text/javascript"&gt;//&lt;![CDATA[if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } //]]&gt;&lt;/script&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="History"&gt;History&lt;/span&gt;&lt;/h2&gt;Although the crystal semiconductor diode was popular before the thermionic diode, thermionic and solid state diodes were developed in parallel.&lt;br /&gt;The basic principle of operation of &lt;a href="http://en.wikipedia.org/wiki/Thermionic_emission" title="Thermionic emission"&gt;thermionic&lt;/a&gt; diodes was discovered by &lt;a href="http://en.wikipedia.org/wiki/Frederick_Guthrie" title="Frederick Guthrie"&gt;Frederick Guthrie&lt;/a&gt; in 1873.&lt;sup class="reference" id="cite_ref-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Guthrie discovered that a positively-charged &lt;a href="http://en.wikipedia.org/wiki/Electroscope" title="Electroscope"&gt;electroscope&lt;/a&gt; could be discharged by bringing a grounded piece of white-hot metal close to it (but not actually touching it). The same did not apply to a negatively charged electroscope, indicating that the current flow was only possible in one direction.&lt;br /&gt;The principle was independently rediscovered by &lt;a href="http://en.wikipedia.org/wiki/Thomas_Edison" title="Thomas Edison"&gt;Thomas Edison&lt;/a&gt; on February 13, 1880. At the time Edison was carrying out research into why the filaments of his carbon-filament light bulbs nearly always burned out at the positive-connected end. He had a special bulb made with a metal plate sealed into the glass envelope, and he was able to confirm that an invisible current could be drawn from the glowing filament through the vacuum to the metal plate, but only when the plate was connected to the positive supply.&lt;br /&gt;Edison devised a circuit where his modified light bulb more or less replaced the resistor in a DC voltmeter and on this basis was awarded a patent for it in 1883.&lt;sup class="reference" id="cite_ref-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; There was no apparent practical use for such device at the time, and the patent application was most likely simply a precaution in case someone else did find a use for the so-called “Edison Effect”.&lt;br /&gt;About 20 years later, &lt;a href="http://en.wikipedia.org/wiki/John_Ambrose_Fleming" title="John Ambrose Fleming"&gt;John Ambrose Fleming&lt;/a&gt; (scientific adviser to the &lt;a href="http://en.wikipedia.org/wiki/Marconi_Company" title="Marconi Company"&gt;Marconi Company&lt;/a&gt; and former Edison employee) realized that the Edison effect could be used as a precision &lt;a href="http://en.wikipedia.org/wiki/Detector_%28radio%29" title="Detector (radio)"&gt;radio detector&lt;/a&gt;. Fleming patented the first true thermionic diode in Britain &lt;sup class="reference" id="cite_ref-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; on November 16, 1904 (followed by &lt;span&gt;&lt;a class="external text" href="http://www.google.com/patents?q=803684" rel="nofollow"&gt;U.S. Patent 803,684&lt;/a&gt;&lt;/span&gt; in November 1905).&lt;br /&gt;The principle of operation of crystal diodes was discovered in 1874 by the German scientist &lt;a href="http://en.wikipedia.org/wiki/Karl_Ferdinand_Braun" title="Karl Ferdinand Braun"&gt;Karl Ferdinand Braun&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Braun patented the crystal rectifier in 1899.&lt;sup class="reference" id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Braun’s discovery was further developed by &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Jagdish_Chandra_Bose" title="Jagdish Chandra Bose"&gt;Jagdish Chandra Bose&lt;/a&gt; into a useful device for radio detection.&lt;br /&gt;The first actual radio receiver using a crystal diode was built by &lt;a href="http://en.wikipedia.org/wiki/Greenleaf_Whittier_Pickard" title="Greenleaf Whittier Pickard"&gt;Greenleaf Whittier Pickard&lt;/a&gt;. Pickard received a patent for a silicon crystal detector on November 20, 1906.&lt;sup class="reference" id="cite_ref-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-5"&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Other experimenters tried a variety of minerals and other substances, although by far the most popular was the lead sulfide mineral &lt;a href="http://en.wikipedia.org/wiki/Galena" title="Galena"&gt;Galena&lt;/a&gt;. Although other substances offered slightly better performance, galena had the advantage of being cheap and easy to obtain, and was used almost exclusively in home-built “crystal sets”, until the advent of inexpensive fixed-germanium diodes in the 1950s.&lt;br /&gt;At the time of their invention, such devices were known as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Rectifiers" title="Rectifiers"&gt;rectifiers&lt;/a&gt;. In 1919, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/William_Henry_Eccles" title="William Henry Eccles"&gt;William Henry Eccles&lt;/a&gt; coined the term &lt;i&gt;&lt;b&gt;diode&lt;/b&gt;&lt;/i&gt; from the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Greek_and_Latin_roots" title="Greek and Latin roots"&gt;Greek roots&lt;/a&gt; &lt;i&gt;dia&lt;/i&gt;, meaning “through”, and &lt;i&gt;ode&lt;/i&gt; (from &lt;i&gt;ὅδος&lt;/i&gt;), meaning “path”.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Thermionic_and_gaseous_state_diodes"&gt;Thermionic and gaseous state diodes&lt;/span&gt;&lt;/h2&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 152px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Vacuum_diode.svg"&gt;&lt;img alt="" class="thumbimage" height="161" src="http://1.1.1.1/bmi/upload.wikimedia.org/wikipedia/commons/thumb/a/af/Vacuum_diode.svg/150px-Vacuum_diode.svg.png" width="150" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Vacuum_diode.svg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Figure 4: The symbol for an indirect heated vacuum tube diode. From top to bottom, the components are the anode, the cathode, and the heater filament.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;Thermionic diodes are &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Thermionic_valve" title="Thermionic valve"&gt;thermionic-valve&lt;/a&gt; devices (also known as &lt;a href="http://en.wikipedia.org/wiki/Vacuum_tube" title="Vacuum tube"&gt;vacuum tubes&lt;/a&gt;, tubes, or valves), which are arrangements of &lt;a href="http://en.wikipedia.org/wiki/Electrode" title="Electrode"&gt;electrodes&lt;/a&gt; surrounded by a vacuum within a glass envelope. Early examples were fairly similar in appearance to &lt;a href="http://en.wikipedia.org/wiki/Incandescent_light_bulb" title="Incandescent light bulb"&gt;incandescent light bulbs&lt;/a&gt;.&lt;br /&gt;In thermionic valve diodes, a current through the heater &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electrical_filament" title="Electrical filament"&gt;filament&lt;/a&gt; indirectly heats the &lt;a href="http://en.wikipedia.org/wiki/Cathode" title="Cathode"&gt;cathode&lt;/a&gt;, another internal electrode treated with a mixture of &lt;a href="http://en.wikipedia.org/wiki/Barium" title="Barium"&gt;barium&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Strontium" title="Strontium"&gt;strontium&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Oxide" title="Oxide"&gt;oxides&lt;/a&gt;, which are &lt;a href="http://en.wikipedia.org/wiki/Oxide" title="Oxide"&gt;oxides&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Alkaline_earth_metal" title="Alkaline earth metal"&gt;alkaline earth metals&lt;/a&gt;; these substances are chosen because they have a small &lt;a href="http://en.wikipedia.org/wiki/Work_function" title="Work function"&gt;work function&lt;/a&gt;. (Some valves use direct heating, in which a tungsten filament acts as both heater and cathode.) The heat causes &lt;a href="http://en.wikipedia.org/wiki/Thermionic_emission" title="Thermionic emission"&gt;thermionic emission&lt;/a&gt; of electrons into the vacuum. In forward operation, a surrounding metal electrode called the &lt;a href="http://en.wikipedia.org/wiki/Anode" title="Anode"&gt;anode&lt;/a&gt; is positively charged so that it &lt;a href="http://en.wikipedia.org/wiki/Electrostatics" title="Electrostatics"&gt;electrostatically&lt;/a&gt; attracts the emitted electrons. However, electrons are not easily released from the unheated anode surface when the &lt;a href="http://en.wikipedia.org/wiki/Voltage" title="Voltage"&gt;voltage&lt;/a&gt; polarity is reversed. Hence, any reverse flow is negligible.&lt;br /&gt;For much of the 20th century, thermionic valve diodes were used in analog signal applications, and as rectifiers in many power supplies. Today, valve diodes are only used in niche applications such as rectifiers in &lt;a href="http://en.wikipedia.org/wiki/Guitar_amplifier" title="Guitar amplifier"&gt;electric guitar&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/High-end_audio" title="High-end audio"&gt;high-end audio&lt;/a&gt; amplifiers as well as specialized high-voltage equipment.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Semiconductor_diodes"&gt;Semiconductor diodes&lt;/span&gt;&lt;/h2&gt;A modern semiconductor diode is made of a crystal of &lt;a href="http://en.wikipedia.org/wiki/Semiconductor" title="Semiconductor"&gt;semiconductor&lt;/a&gt; like silicon that has impurities added to it to create a region on one side that contains negative &lt;a href="http://en.wikipedia.org/wiki/Charge_carrier" title="Charge carrier"&gt;charge carriers&lt;/a&gt; (electrons), called &lt;a href="http://en.wikipedia.org/wiki/N-type_semiconductor" title="N-type semiconductor"&gt;n-type semiconductor&lt;/a&gt;, and a region on the other side that contains positive charge carriers (&lt;a href="http://en.wikipedia.org/wiki/Electron_hole" title="Electron hole"&gt;holes&lt;/a&gt;), called &lt;a href="http://en.wikipedia.org/wiki/P-type_semiconductor" title="P-type semiconductor"&gt;p-type semiconductor&lt;/a&gt;. The diode's terminals are attached to each of these regions. The boundary within the crystal between these two regions, called a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/PN_junction" title="PN junction"&gt;PN junction&lt;/a&gt;, is where the action of the diode takes place. The crystal conducts &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Conventional_current" title="Conventional current"&gt;conventional current&lt;/a&gt; in a direction from the p-type side (called the &lt;a href="http://en.wikipedia.org/wiki/Anode" title="Anode"&gt;anode&lt;/a&gt;) to the n-type side (called the &lt;a href="http://en.wikipedia.org/wiki/Cathode" title="Cathode"&gt;cathode&lt;/a&gt;), but not in the opposite direction.&lt;br /&gt;Another type of semiconductor diode, the &lt;a href="http://en.wikipedia.org/wiki/Schottky_diode" title="Schottky diode"&gt;Schottky diode&lt;/a&gt;, is formed from the contact between a metal and a semiconductor rather than by a p-n junction.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Current.E2.80.93voltage_characteristic"&gt;Current–voltage characteristic&lt;/span&gt;&lt;/h3&gt;A semiconductor diode’s behavior in a circuit is given by its &lt;a href="http://en.wikipedia.org/wiki/Current%E2%80%93voltage_characteristic" title="Current–voltage characteristic"&gt;current–voltage characteristic&lt;/a&gt;, or I–V graph (see graph at right). The shape of the curve is determined by the transport of charge carriers through the so-called &lt;i&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Depletion_zone" title="Depletion zone"&gt;depletion layer&lt;/a&gt;&lt;/i&gt; or &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Depletion_region" title="Depletion region"&gt;depletion region&lt;/a&gt;&lt;/i&gt; that exists at the &lt;a href="http://en.wikipedia.org/wiki/P-n_junction" title="P-n junction"&gt;p-n junction&lt;/a&gt; between differing semiconductors. When a p-n junction is first created, conduction band (mobile) electrons from the N-&lt;a href="http://en.wikipedia.org/wiki/Dopant" title="Dopant"&gt;doped&lt;/a&gt; region diffuse into the P-&lt;a href="http://en.wikipedia.org/wiki/Dopant" title="Dopant"&gt;doped&lt;/a&gt; region where there is a large population of holes (vacant places for electrons) with which the electrons “recombine”. When a mobile electron recombines with a hole, both hole and electron vanish, leaving behind an immobile positively charged donor (dopant) on the N-side and negatively charged acceptor (dopant) on the P-side. The region around the p-n junction becomes depleted of &lt;a href="http://en.wikipedia.org/wiki/Charge_carrier" title="Charge carrier"&gt;charge carriers&lt;/a&gt; and thus behaves as an &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Nonconductor" title="Nonconductor"&gt;insulator&lt;/a&gt;.&lt;br /&gt;However, the width of the depletion region (called the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Depletion_width" title="Depletion width"&gt;depletion width&lt;/a&gt;) cannot grow without limit. For each &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electron-hole_pair" title="Electron-hole pair"&gt;electron-hole pair&lt;/a&gt; that recombines, a positively-charged &lt;a href="http://en.wikipedia.org/wiki/Dopant" title="Dopant"&gt;dopant&lt;/a&gt; ion is left behind in the N-doped region, and a negatively charged dopant ion is left behind in the P-doped region. As recombination proceeds more ions are created, an increasing electric field develops through the depletion zone which acts to slow and then finally stop recombination. At this point, there is a “built-in” potential across the depletion zone.&lt;br /&gt;If an external voltage is placed across the diode with the same polarity as the built-in potential, the depletion zone continues to act as an insulator, preventing any significant electric current flow (unless electron/hole pairs are actively being created in the junction by, for instance, light. see &lt;a href="http://en.wikipedia.org/wiki/Photodiode" title="Photodiode"&gt;photodiode&lt;/a&gt;). This is the &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/P-n_junction" title="P-n junction"&gt;reverse bias&lt;/a&gt;&lt;/i&gt; phenomenon. However, if the polarity of the external voltage opposes the built-in potential, recombination can once again proceed, resulting in substantial electric current through the p-n junction (i.e. substantial numbers of electrons and holes recombine at the junction). For silicon diodes, the built-in potential is approximately 0.7 V. Thus, if an external current is passed through the diode, about 0.7 V will be developed across the diode such that the P-doped region is positive with respect to the N-doped region and the diode is said to be “turned on” as it has a &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/P-n_junction" title="P-n junction"&gt;forward bias&lt;/a&gt;&lt;/i&gt;.&lt;br /&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 502px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Diode-IV-Curve.svg"&gt;&lt;img alt="" class="thumbimage" height="300" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Diode-IV-Curve.svg/500px-Diode-IV-Curve.svg.png" width="500" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt;Figure 5: I–V characteristics of a P-N junction diode (not to scale).&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;A diode’s '&lt;i&gt;&lt;b&gt;I–V characteristic'&lt;/b&gt;&lt;/i&gt; can be approximated by four regions of operation (see the figure at right).&lt;br /&gt;At very large reverse bias, beyond the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Peak_Inverse_Voltage" title="Peak Inverse Voltage"&gt;peak inverse voltage&lt;/a&gt; or PIV, a process called reverse &lt;a href="http://en.wikipedia.org/wiki/Avalanche_breakdown" title="Avalanche breakdown"&gt;breakdown&lt;/a&gt; occurs which causes a large increase in current (i.e. a large number of electrons and holes are created at, and move away from the pn junction) that usually damages the device permanently. The &lt;a href="http://en.wikipedia.org/wiki/Avalanche_diode" title="Avalanche diode"&gt;avalanche diode&lt;/a&gt; is deliberately designed for use in the avalanche region. In the &lt;a href="http://en.wikipedia.org/wiki/Zener_diode" title="Zener diode"&gt;zener diode&lt;/a&gt;, the concept of PIV is not applicable. A zener diode contains a heavily doped p-n junction allowing electrons to tunnel from the valence band of the p-type material to the conduction band of the n-type material, such that the reverse voltage is “clamped” to a known value (called the &lt;i&gt;zener voltage&lt;/i&gt;), and avalanche does not occur. Both devices, however, do have a limit to the maximum current and power in the clamped reverse voltage region. Also, following the end of forward conduction in any diode, there is reverse current for a short time. The device does not attain its full blocking capability until the reverse current ceases.&lt;br /&gt;The second region, at reverse biases more positive than the PIV, has only a very small reverse saturation current. In the reverse bias region for a normal P-N rectifier diode, the current through the device is very low (in the µA range). However, this is temperature dependent, and at suffiently high temperatures, a substantial amount of reverse current can be observed (mA or more).&lt;br /&gt;The third region is forward but small bias, where only a small forward current is conducted.&lt;br /&gt;As the potential difference is increased above an arbitrarily defined “cut-in voltage” or “on-voltage” or “diode forward voltage drop (V&lt;sub&gt;d&lt;/sub&gt;)”, the diode current becomes appreciable (the level of current considered “appreciable” and the value of cut-in voltage depends on the application), and the diode presents a very low resistance.&lt;br /&gt;The current–voltage curve is &lt;a href="http://en.wikipedia.org/wiki/Exponential" title="Exponential"&gt;exponential&lt;/a&gt;. In a normal silicon diode at rated currents, the arbitrary “cut-in” voltage is defined as 0.6 to 0.7 &lt;a href="http://en.wikipedia.org/wiki/Volt" title="Volt"&gt;volts&lt;/a&gt;. The value is different for other diode types — &lt;a href="http://en.wikipedia.org/wiki/Schottky_diode" title="Schottky diode"&gt;Schottky diodes&lt;/a&gt; can be rated as low as 0.2 V and red or blue &lt;a href="http://en.wikipedia.org/wiki/Light-emitting_diode" title="Light-emitting diode"&gt;light-emitting diodes&lt;/a&gt; (LEDs) can have values of 1.4 V and 4.0 V respectively.&lt;br /&gt;At higher currents the forward voltage drop of the diode increases. A drop of 1 V to 1.5 V is typical at full rated current for power diodes.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Shockley_diode_equation"&gt;Shockley diode equation&lt;/span&gt;&lt;/h3&gt;The &lt;i&gt;Shockley ideal diode equation&lt;/i&gt; or the &lt;i&gt;diode law&lt;/i&gt; (named after &lt;a href="http://en.wikipedia.org/wiki/Transistor" title="Transistor"&gt;transistor&lt;/a&gt; co-inventor &lt;a href="http://en.wikipedia.org/wiki/William_Shockley" title="William Shockley"&gt;William Bradford Shockley&lt;/a&gt;, not to be confused with &lt;a href="http://en.wikipedia.org/wiki/Tetrode" title="Tetrode"&gt;tetrode&lt;/a&gt; inventor &lt;a href="http://en.wikipedia.org/wiki/Walter_H._Schottky" title="Walter H. Schottky"&gt;Walter H. Schottky&lt;/a&gt;) gives the I–V characteristic of an ideal diode in either forward or reverse bias (or no bias). The equation is:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="I=I_\mathrm{S} \left( e^{V_\mathrm{D}/(n V_\mathrm{T})}-1 \right),\," class="tex" src="http://1.1.1.3/bmi/upload.wikimedia.org/math/7/c/b/7cbe19104958cabb4dd28cd46ad0384a.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;where&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;i&gt;I&lt;/i&gt; is the diode current,&lt;/dd&gt;&lt;dd&gt;&lt;i&gt;I&lt;/i&gt;&lt;sub&gt;S&lt;/sub&gt; is the reverse bias &lt;a href="http://en.wikipedia.org/wiki/Saturation_current" title="Saturation current"&gt;saturation current&lt;/a&gt;,&lt;/dd&gt;&lt;dd&gt;&lt;i&gt;V&lt;/i&gt;&lt;sub&gt;D&lt;/sub&gt; is the voltage across the diode,&lt;/dd&gt;&lt;dd&gt;&lt;i&gt;V&lt;/i&gt;&lt;sub&gt;T&lt;/sub&gt; is the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Thermal_voltage" title="Thermal voltage"&gt;thermal voltage&lt;/a&gt;, and&lt;/dd&gt;&lt;dd&gt;&lt;i&gt;n&lt;/i&gt; is the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Emission_coefficient" title="Emission coefficient"&gt;emission coefficient&lt;/a&gt;, also known as the ideality factor. The emission coefficient &lt;i&gt;n&lt;/i&gt; varies from about 1 to 2 depending on the fabrication process and semiconductor material and in many cases is assumed to be approximately equal to 1 (thus the notation &lt;i&gt;n&lt;/i&gt; is omitted).&lt;/dd&gt;&lt;/dl&gt;The &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Thermal_voltage" title="Thermal voltage"&gt;thermal voltage&lt;/a&gt; &lt;i&gt;V&lt;/i&gt;&lt;sub&gt;T&lt;/sub&gt; is approximately 25.85 mV at 300 K, a temperature close to “room temperature” commonly used in device simulation software. At any temperature it is a known constant defined by:&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="V_\mathrm{T} = \frac{k T}{q} \, ," class="tex" src="http://1.1.1.5/bmi/upload.wikimedia.org/math/c/9/4/c9497d8b7539e67d1106a1ff161b68ff.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;where &lt;i&gt;k&lt;/i&gt; is the &lt;a href="http://en.wikipedia.org/wiki/Boltzmann_constant" title="Boltzmann constant"&gt;Boltzmann constant&lt;/a&gt;, &lt;i&gt;T&lt;/i&gt; is the absolute temperature of the p-n junction, and &lt;i&gt;q&lt;/i&gt; is the magnitude of charge on an &lt;a href="http://en.wikipedia.org/wiki/Electron" title="Electron"&gt;electron&lt;/a&gt; (the &lt;a href="http://en.wikipedia.org/wiki/Elementary_charge" title="Elementary charge"&gt;elementary charge&lt;/a&gt;).&lt;br /&gt;The &lt;i&gt;Shockley ideal diode equation&lt;/i&gt; or the &lt;i&gt;diode law&lt;/i&gt; is derived with the assumption that the only processes giving rise to the current in the diode are drift (due to electrical field), diffusion, and thermal recombination-generation. It also assumes that the recombination-generation (R-G) current in the depletion region is insignificant. This means that the Shockley equation doesn’t account for the processes involved in reverse breakdown and photon-assisted R-G. Additionally, it doesn’t describe the “leveling off” of the I–V curve at high forward bias due to internal resistance.&lt;br /&gt;Under &lt;i&gt;reverse bias&lt;/i&gt; voltages (see Figure 5) the exponential in the diode equation is negligible, and the current is a constant (negative) reverse current value of −&lt;i&gt;I&lt;sub&gt;S&lt;/sub&gt;&lt;/i&gt;. The reverse &lt;i&gt;breakdown region&lt;/i&gt; is not modeled by the Shockley diode equation.&lt;br /&gt;For even rather small &lt;i&gt;forward bias&lt;/i&gt; voltages (see Figure 5) the exponential is very large because the thermal voltage is very small, so the subtracted ‘1’ in the diode equation is negligible and the forward diode current is often approximated as&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;img alt="I=I_\mathrm{S} e^{V_\mathrm{D}/(n V_\mathrm{T})}" class="tex" src="http://1.1.1.5/bmi/upload.wikimedia.org/math/5/e/5/5e574f395d88b8eca1ebbd989369bdf6.png" /&gt;&lt;/dd&gt;&lt;/dl&gt;The use of the diode equation in circuit problems is illustrated in the article on &lt;a href="http://en.wikipedia.org/wiki/Diode_modelling#Shockley_diode_model" title="Diode modelling"&gt;diode modeling&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Small-signal_behaviour"&gt;Small-signal behaviour&lt;/span&gt;&lt;/h3&gt;For circuit design, a small-signal model of the diode behavior often proves useful. A specific example of diode modeling is discussed in the article on &lt;a href="http://en.wikipedia.org/wiki/Small-signal_model" title="Small-signal model"&gt;small-signal circuits&lt;/a&gt;.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Types_of_semiconductor_diode"&gt;Types of semiconductor diode&lt;/span&gt;&lt;/h2&gt;&lt;div class="thumb tright" style="background-color: #f9f9f9; border: 1px solid rgb(204, 204, 204); margin: 0.5em;"&gt; &lt;table border="0" cellpadding="10" cellspacing="0" style="border: 1px solid rgb(204, 204, 204); font-size: 85%; margin: 0.3em;"&gt;&lt;tbody&gt;&lt;tr align="center"&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Diode_symbol.svg" title="Diode symbol"&gt;&lt;img alt="Diode symbol" height="43" src="http://1.1.1.1/bmi/upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Diode_symbol.svg/100px-Diode_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Zener_diode_symbol.svg" title="Zener diode symbol"&gt;&lt;img alt="Zener diode symbol" height="43" src="http://1.1.1.2/bmi/upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Zener_diode_symbol.svg/100px-Zener_diode_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Schottky_diode_symbol.svg" title="Schottky diode symbol"&gt;&lt;img alt="Schottky diode symbol" height="43" src="http://1.1.1.2/bmi/upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Schottky_diode_symbol.svg/100px-Schottky_diode_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Tunnel_diode_symbol.svg" title="Tunnel diode symbol"&gt;&lt;img alt="Tunnel diode symbol" height="43" src="http://1.1.1.5/bmi/upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Tunnel_diode_symbol.svg/100px-Tunnel_diode_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;Diode&lt;/td&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Zener_diode" title="Zener diode"&gt;Zener&lt;br /&gt;diode&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Schottky_diode" title="Schottky diode"&gt;Schottky&lt;br /&gt;diode&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Tunnel_diode" title="Tunnel diode"&gt;Tunnel&lt;br /&gt;diode&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:LED_symbol.svg"&gt;&lt;img alt="LED symbol.svg" height="31" src="http://1.1.1.4/bmi/upload.wikimedia.org/wikipedia/commons/thumb/e/e5/LED_symbol.svg/100px-LED_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Photodiode_symbol.svg"&gt;&lt;img alt="Photodiode symbol.svg" height="43" src="http://1.1.1.2/bmi/upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Photodiode_symbol.svg/100px-Photodiode_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Varicap_symbol.svg"&gt;&lt;img alt="Varicap symbol.svg" height="43" src="http://1.1.1.1/bmi/upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Varicap_symbol.svg/100px-Varicap_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:SCR_symbol.svg"&gt;&lt;img alt="SCR symbol.svg" height="57" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/e/e0/SCR_symbol.svg/100px-SCR_symbol.svg.png" width="100" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr align="center"&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Light-emitting_diode" title="Light-emitting diode"&gt;Light-emitting&lt;br /&gt;diode&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Photodiode" title="Photodiode"&gt;Photodiode&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="http://en.wikipedia.org/wiki/Varicap" title="Varicap"&gt;Varicap&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Silicon_controlled_rectifier" title="Silicon controlled rectifier"&gt;Silicon controlled rectifier&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="border: medium none;"&gt; &lt;div class="thumbcaption"&gt;Figure 6: Some diode symbols.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Diode_3D_and_ckt.png"&gt;&lt;img alt="" class="thumbimage" height="108" src="http://1.1.1.3/bmi/upload.wikimedia.org/wikipedia/commons/thumb/0/05/Diode_3D_and_ckt.png/250px-Diode_3D_and_ckt.png" width="250" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Diode_3D_and_ckt.png" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Figure 7: Typical diode packages in same alignment as diode symbol. Thin bar depicts the &lt;a href="http://en.wikipedia.org/wiki/Cathode" title="Cathode"&gt;cathode&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Diodes.jpg"&gt;&lt;img alt="" class="thumbimage" height="263" src="http://1.1.1.5/bmi/upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Diodes.jpg/220px-Diodes.jpg" width="220" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Diodes.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://1.1.1.3/bmi/bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Figure 8: Several types of diodes. The scale is centimeters.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;There are several types of junction diodes, which either emphasize a different physical aspect of a diode often by geometric scaling, doping level, choosing the right electrodes, are just an application of a diode in a special circuit, or are really different devices like the Gunn and laser diode and the &lt;a href="http://en.wikipedia.org/wiki/MOSFET" title="MOSFET"&gt;MOSFET&lt;/a&gt;:&lt;br /&gt;Normal (p-n) diodes, which operate as described above, are usually made of doped &lt;a href="http://en.wikipedia.org/wiki/Silicon" title="Silicon"&gt;silicon&lt;/a&gt; or, more rarely, &lt;a href="http://en.wikipedia.org/wiki/Germanium" title="Germanium"&gt;germanium&lt;/a&gt;. Before the development of modern silicon power rectifier diodes, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Cuprous_oxide" title="Cuprous oxide"&gt;cuprous oxide&lt;/a&gt; and later &lt;a href="http://en.wikipedia.org/wiki/Selenium" title="Selenium"&gt;selenium&lt;/a&gt; was used; its low efficiency gave it a much higher forward voltage drop (typically 1.4–1.7&amp;nbsp;V per “cell”, with multiple cells stacked to increase the peak inverse voltage rating in high voltage rectifiers), and required a large heat sink (often an extension of the diode’s metal substrate), much larger than a silicon diode of the same current ratings would require. The vast majority of all diodes are the p-n diodes found in &lt;a href="http://en.wikipedia.org/wiki/CMOS" title="CMOS"&gt;CMOS&lt;/a&gt; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Integrated_circuits" title="Integrated circuits"&gt;integrated circuits&lt;/a&gt;, which include two diodes per pin and many other internal diodes.&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Avalanche_diode" title="Avalanche diode"&gt;Avalanche diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;Diodes that conduct in the reverse direction when the reverse bias voltage exceeds the breakdown voltage. These are electrically very similar to Zener diodes, and are often mistakenly called Zener diodes, but break down by a different mechanism, the &lt;i&gt;avalanche effect&lt;/i&gt;. This occurs when the reverse electric field across the p-n junction causes a wave of ionization, reminiscent of an avalanche, leading to a large current. Avalanche diodes are designed to break down at a well-defined reverse voltage without being destroyed. The difference between the avalanche diode (which has a reverse breakdown above about 6.2&amp;nbsp;V) and the Zener is that the channel length of the former exceeds the “mean free path” of the electrons, so there are collisions between them on the way out. The only practical difference is that the two types have temperature coefficients of opposite polarities.&lt;/dd&gt;&lt;/dl&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Cat%27s_whisker_diode" title="Cat's whisker diode"&gt;Cat’s whisker or crystal diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These are a type of point-contact diode. The cat’s whisker diode consists of a thin or sharpened metal wire pressed against a semiconducting crystal, typically &lt;a href="http://en.wikipedia.org/wiki/Galena" title="Galena"&gt;galena&lt;/a&gt; or a piece of &lt;a href="http://en.wikipedia.org/wiki/Coal" title="Coal"&gt;coal&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-6"&gt;&lt;span&gt;[&lt;/span&gt;7&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The wire forms the anode and the crystal forms the cathode. Cat’s whisker diodes were also called crystal diodes and found application in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Crystal_radio_receiver" title="Crystal radio receiver"&gt;crystal radio receivers&lt;/a&gt;. Cat’s whisker diodes are generally obsolete, but may be available from a few manufacturers.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from June 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Constant_current_diode" title="Constant current diode"&gt;Constant current diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These are actually a &lt;a href="http://en.wikipedia.org/wiki/JFET" title="JFET"&gt;JFET&lt;/a&gt; with the gate shorted to the source, and function like a two-terminal current-limiter analog to the Zener diode, which is limiting voltage. They allow a current through them to rise to a certain value, and then level off at a specific value. Also called &lt;i&gt;CLDs&lt;/i&gt;, &lt;i&gt;constant-current diodes&lt;/i&gt;, &lt;i&gt;diode-connected transistors&lt;/i&gt;, or &lt;i&gt;current-regulating diodes&lt;/i&gt;.&lt;/dd&gt;&lt;/dl&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Esaki" title="Esaki"&gt;Esaki&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Tunnel_diode" title="Tunnel diode"&gt;tunnel diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These have a region of operation showing &lt;a href="http://en.wikipedia.org/wiki/Negative_resistance" title="Negative resistance"&gt;negative resistance&lt;/a&gt; caused by &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Quantum_tunneling" title="Quantum tunneling"&gt;quantum tunneling&lt;/a&gt;, thus allowing amplification of signals and very simple bistable circuits. These diodes are also the type most resistant to nuclear radiation.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Gunn_diode" title="Gunn diode"&gt;Gunn diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These are similar to tunnel diodes in that they are made of materials such as GaAs or InP that exhibit a region of &lt;a href="http://en.wikipedia.org/wiki/Negative_resistance" title="Negative resistance"&gt;negative differential resistance&lt;/a&gt;. With appropriate biasing, dipole domains form and travel across the diode, allowing high frequency &lt;a href="http://en.wikipedia.org/wiki/Microwave" title="Microwave"&gt;microwave&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Electronic_oscillator" title="Electronic oscillator"&gt;oscillators&lt;/a&gt; to be built.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Light-emitting_diode" title="Light-emitting diode"&gt;Light-emitting diodes&lt;/a&gt; (LEDs)&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;In a diode formed from a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Direct_bandgap" title="Direct bandgap"&gt;direct band-gap&lt;/a&gt; semiconductor, such as &lt;a href="http://en.wikipedia.org/wiki/Gallium_arsenide" title="Gallium arsenide"&gt;gallium arsenide&lt;/a&gt;, carriers that cross the junction emit &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Photons" title="Photons"&gt;photons&lt;/a&gt; when they recombine with the majority carrier on the other side. Depending on the material, &lt;a href="http://en.wikipedia.org/wiki/Wavelength" title="Wavelength"&gt;wavelengths&lt;/a&gt; (or colors) from the &lt;a href="http://en.wikipedia.org/wiki/Infrared" title="Infrared"&gt;infrared&lt;/a&gt; to the near &lt;a href="http://en.wikipedia.org/wiki/Ultraviolet" title="Ultraviolet"&gt;ultraviolet&lt;/a&gt; may be produced. The forward potential of these diodes depends on the wavelength of the emitted photons: 1.2&amp;nbsp;V corresponds to red, 2.4&amp;nbsp;V to violet. The first LEDs were red and yellow, and higher-frequency diodes have been developed over time. All LEDs produce incoherent, narrow-spectrum light; “white” LEDs are actually combinations of three LEDs of a different color, or a blue LED with a yellow &lt;a href="http://en.wikipedia.org/wiki/Scintillator" title="Scintillator"&gt;scintillator&lt;/a&gt; coating. LEDs can also be used as low-efficiency photodiodes in signal applications. An LED may be paired with a photodiode or phototransistor in the same package, to form an &lt;a href="http://en.wikipedia.org/wiki/Opto-isolator" title="Opto-isolator"&gt;opto-isolator&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Laser_diode" title="Laser diode"&gt;Laser diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;When an LED-like structure is contained in a &lt;a href="http://en.wikipedia.org/wiki/Optical_cavity" title="Optical cavity"&gt;resonant cavity&lt;/a&gt; formed by polishing the parallel end faces, a &lt;a href="http://en.wikipedia.org/wiki/Laser" title="Laser"&gt;laser&lt;/a&gt; can be formed. Laser diodes are commonly used in &lt;a href="http://en.wikipedia.org/wiki/Optical_storage" title="Optical storage"&gt;optical storage&lt;/a&gt; devices and for high speed &lt;a href="http://en.wikipedia.org/wiki/Optical_communication" title="Optical communication"&gt;optical communication&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Peltier%E2%80%93Seebeck_effect" title="Peltier–Seebeck effect"&gt;Peltier diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These diodes are used as sensors, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Heat_engines" title="Heat engines"&gt;heat engines&lt;/a&gt; for &lt;a href="http://en.wikipedia.org/wiki/Thermoelectric_cooling" title="Thermoelectric cooling"&gt;thermoelectric cooling&lt;/a&gt;. Charge carriers absorb and emit their band gap energies as heat.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Photodiode" title="Photodiode"&gt;Photodiodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;All semiconductors are subject to optical &lt;a href="http://en.wikipedia.org/wiki/Charge_carrier" title="Charge carrier"&gt;charge carrier&lt;/a&gt; generation. This is typically an undesired effect, so most semiconductors are packaged in light blocking material. Photodiodes are intended to sense light(&lt;a href="http://en.wikipedia.org/wiki/Photodetector" title="Photodetector"&gt;photodetector&lt;/a&gt;), so they are packaged in materials that allow light to pass, and are usually PIN (the kind of diode most sensitive to light). A photodiode can be used in &lt;a href="http://en.wikipedia.org/wiki/Solar_cell" title="Solar cell"&gt;solar cells&lt;/a&gt;, in &lt;a href="http://en.wikipedia.org/wiki/Photometry_%28optics%29" title="Photometry (optics)"&gt;photometry&lt;/a&gt;, or in &lt;a href="http://en.wikipedia.org/wiki/Optical_communication" title="Optical communication"&gt;optical communications&lt;/a&gt;. Multiple photodiodes may be packaged in a single device, either as a linear array or as a two-dimensional array. These arrays should not be confused with &lt;a href="http://en.wikipedia.org/wiki/Charge-coupled_device" title="Charge-coupled device"&gt;charge-coupled devices&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;Point-contact diodes&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These work the same as the junction semiconductor diodes described above, but their construction is simpler. A block of n-type semiconductor is built, and a conducting sharp-point contact made with some group-3 metal is placed in contact with the semiconductor. Some metal migrates into the semiconductor to make a small region of p-type semiconductor near the contact. The long-popular 1N34 germanium version is still used in radio receivers as a detector and occasionally in specialized analog electronics.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/PIN_diode" title="PIN diode"&gt;PIN diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;A PIN diode has a central un-doped, or &lt;i&gt;intrinsic&lt;/i&gt;, layer, forming a p-type/intrinsic/n-type structure. They are used as radio frequency switches and attenuators. They are also used as large volume ionizing radiation detectors and as &lt;a href="http://en.wikipedia.org/wiki/Photodetector" title="Photodetector"&gt;photodetectors&lt;/a&gt;. PIN diodes are also used in &lt;a href="http://en.wikipedia.org/wiki/Power_electronics" title="Power electronics"&gt;power electronics&lt;/a&gt;, as their central layer can withstand high voltages. Furthermore, the PIN structure can be found in many &lt;a href="http://en.wikipedia.org/wiki/Power_semiconductor_device" title="Power semiconductor device"&gt;power semiconductor devices&lt;/a&gt;, such as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/IGBT" title="IGBT"&gt;IGBTs&lt;/a&gt;, power &lt;a href="http://en.wikipedia.org/wiki/MOSFET" title="MOSFET"&gt;MOSFETs&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Thyristor" title="Thyristor"&gt;thyristors&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Schottky_diode" title="Schottky diode"&gt;Schottky diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;&lt;a href="http://en.wikipedia.org/wiki/Walter_H._Schottky" title="Walter H. Schottky"&gt;Schottky&lt;/a&gt; diodes are constructed from a metal to semiconductor contact. They have a lower forward voltage drop than p-n junction diodes. Their forward voltage drop at forward currents of about 1&amp;nbsp;mA is in the range 0.15&amp;nbsp;V to 0.45&amp;nbsp;V, which makes them useful in voltage &lt;a href="http://en.wikipedia.org/wiki/Clamper_%28electronics%29" title="Clamper (electronics)"&gt;clamping applications&lt;/a&gt; and prevention of transistor saturation. They can also be used as low loss &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Rectifiers" title="Rectifiers"&gt;rectifiers&lt;/a&gt; although their reverse leakage current is generally higher than that of other diodes. Schottky diodes are &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Majority_carrier" title="Majority carrier"&gt;majority carrier&lt;/a&gt; devices and so do not suffer from minority carrier storage problems that slow down many other diodes — so they have a faster “reverse recovery” than p-n junction diodes. They also tend to have much lower junction capacitance than p-n diodes which provides for high switching speeds and their use in high-speed circuitry and RF devices such as &lt;a href="http://en.wikipedia.org/wiki/Switched-mode_power_supply" title="Switched-mode power supply"&gt;switched-mode power supply&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Frequency_mixer" title="Frequency mixer"&gt;mixers&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Detector_%28radio%29" title="Detector (radio)"&gt;detectors&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;Super Barrier Diodes&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;Super barrier diodes are rectifier diodes that incorporate the low forward voltage drop of the Schottky diode with the surge-handling capability and low reverse leakage current of a normal p-n junction diode.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Gold" title="Gold"&gt;Gold&lt;/a&gt;-doped diodes&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;As a dopant, gold (or &lt;a href="http://en.wikipedia.org/wiki/Platinum" title="Platinum"&gt;platinum&lt;/a&gt;) acts as recombination centers, which help a fast recombination of minority carriers. This allows the diode to operate at signal frequencies, at the expense of a higher forward voltage drop. Gold doped diodes are faster than other p-n diodes (but not as fast as Schottky diodes). They also have less reverse-current leakage than Schottky diodes (but not as good as other p-n diodes).&lt;sup class="reference" id="cite_ref-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-7"&gt;&lt;span&gt;[&lt;/span&gt;8&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-8"&gt;&lt;span&gt;[&lt;/span&gt;9&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; A typical example is the 1N914.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Step_recovery_diode" title="Step recovery diode"&gt;Snap-off&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Step_recovery_diode" title="Step recovery diode"&gt;Step recovery diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;The term &lt;i&gt;step recovery&lt;/i&gt; relates to the form of the reverse recovery characteristic of these devices. After a forward current has been passing in an &lt;a href="http://en.wikipedia.org/wiki/Step_recovery_diode" title="Step recovery diode"&gt;SRD&lt;/a&gt; and the current is interrupted or reversed, the reverse conduction will cease very abruptly (as in a step waveform). SRDs can therefore provide very fast voltage transitions by the very sudden disappearance of the charge carriers.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Transient_voltage_suppression_diode" title="Transient voltage suppression diode"&gt;Transient voltage suppression diode&lt;/a&gt; (TVS)&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These are avalanche diodes designed specifically to protect other semiconductor devices from high-voltage &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Transient" title="Transient"&gt;transients&lt;/a&gt;. Their p-n junctions have a much larger cross-sectional area than those of a normal diode, allowing them to conduct large currents to ground without sustaining damage.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Varicap" title="Varicap"&gt;Varicap&lt;/a&gt; or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Varactor_diode" title="Varactor diode"&gt;varactor diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;These are used as voltage-controlled &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Capacitors" title="Capacitors"&gt;capacitors&lt;/a&gt;. These are important in PLL (&lt;a href="http://en.wikipedia.org/wiki/Phase-locked_loop" title="Phase-locked loop"&gt;phase-locked loop&lt;/a&gt;) and FLL (&lt;a href="http://en.wikipedia.org/wiki/Frequency-locked_loop" title="Frequency-locked loop"&gt;frequency-locked loop&lt;/a&gt;) circuits, allowing tuning circuits, such as those in television receivers, to lock quickly, replacing older designs that took a long time to warm up and lock. A PLL is faster than an FLL, but prone to integer harmonic locking (if one attempts to lock to a broadband signal). They also enabled tunable oscillators in early discrete tuning of radios, where a cheap and stable, but fixed-frequency, crystal oscillator provided the reference frequency for a &lt;a href="http://en.wikipedia.org/wiki/Voltage-controlled_oscillator" title="Voltage-controlled oscillator"&gt;voltage-controlled oscillator&lt;/a&gt;.&lt;/dd&gt;&lt;/dl&gt;&lt;a href="http://en.wikipedia.org/wiki/Zener_diode" title="Zener diode"&gt;Zener diodes&lt;/a&gt;&lt;br /&gt;&lt;dl&gt;&lt;dd&gt;Diodes that can be made to conduct backwards. This effect, called Zener breakdown, occurs at a precisely defined voltage, allowing the diode to be used as a precision voltage reference. In practical voltage reference circuits Zener and switching diodes are connected in series and opposite directions to balance the temperature coefficient to near zero. Some devices labeled as high-voltage Zener diodes are actually avalanche diodes (see above). Two (equivalent) Zeners in series and in reverse order, in the same package, constitute a transient absorber (or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Transorb" title="Transorb"&gt;Transorb&lt;/a&gt;, a registered trademark). The Zener diode is named for Dr. &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Clarence_Melvin_Zener" title="Clarence Melvin Zener"&gt;Clarence Melvin Zener&lt;/a&gt; of Southern Illinois University, inventor of the device.&lt;/dd&gt;&lt;/dl&gt;Other uses for semiconductor diodes include sensing temperature, and computing analog &lt;a href="http://en.wikipedia.org/wiki/Logarithm" title="Logarithm"&gt;logarithms&lt;/a&gt; (see &lt;a href="http://en.wikipedia.org/wiki/Operational_amplifier_applications#Logarithmic" title="Operational amplifier applications"&gt;Operational amplifier applications#Logarithmic&lt;/a&gt;).&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Numbering_and_Coding_schemes"&gt;Numbering and Coding schemes&lt;/span&gt;&lt;/h2&gt;There are a number of common, standard and manufacturer-driven numbering and coding schemes for diodes; the two most common being the &lt;a href="http://en.wikipedia.org/wiki/EIA" title="EIA"&gt;EIA&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/JEDEC" title="JEDEC"&gt;JEDEC&lt;/a&gt; standard and the European &lt;a href="http://en.wikipedia.org/wiki/Pro_Electron" title="Pro Electron"&gt;Pro Electron&lt;/a&gt; standard:&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="EIA.2FJEDEC"&gt;EIA/JEDEC&lt;/span&gt;&lt;/h3&gt;A standardized 1N-series numbering system was introduced in the US by EIA/JEDEC (Joint Electron Device Engineering Council) about 1960. Among the most popular in this series were: 1N34A/1N270 (Germanium signal), 1N914/1N4148 (Silicon signal), &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/1N4001" title="1N4001"&gt;1N4001&lt;/a&gt;-1N4007 (Silicon 1A power rectifier) and 1N54xx (Silicon 3A power rectifier)&lt;sup class="reference" id="cite_ref-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-9"&gt;&lt;span&gt;[&lt;/span&gt;10&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-10"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-10"&gt;&lt;span&gt;[&lt;/span&gt;11&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-11"&gt;&lt;a href="http://en.wikipedia.org/wiki/Diode#cite_note-11"&gt;&lt;span&gt;[&lt;/span&gt;12&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Pro_Electron"&gt;Pro Electron&lt;/span&gt;&lt;/h3&gt;The European &lt;a href="http://en.wikipedia.org/wiki/Pro_Electron" title="Pro Electron"&gt;Pro Electron&lt;/a&gt; coding system for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Active_component" title="Active component"&gt;active components&lt;/a&gt; was introduced in 1966 and comprises two letters followed by the part code. The first letter represents the semiconductor material used for the component (A = Germanium and B = Silicon) and the second letter represents the general function of the part (for diodes: A = low-power/signal, B = Variable capacitance, X = Multiplier, Y = Rectifier and Z = Voltage reference), for example:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;AA-series germanium low-power/signal diodes (e.g.: AA119)&lt;/li&gt;&lt;li&gt;BA-series silicon low-power/signal diodes (e.g.: BAT18 Silicon RF Switching Diode)&lt;/li&gt;&lt;li&gt;BY-series silicon rectifier diodes (e.g.: BY127 1250V, 1A rectifier diode)&lt;/li&gt;&lt;li&gt;BZ-series silicon zener diodes (e.g.: BZY88C4V7 4.7V zener diode)&lt;/li&gt;&lt;/ul&gt;Other common numbering / coding systems (generally manufacturer-driven) include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;GD-series germanium diodes (ed: GD9) — this is a very old coding system&lt;/li&gt;&lt;li&gt;OA-series germanium diodes (e.g.: OA47) — a coding sequence developed by &lt;a href="http://en.wikipedia.org/wiki/Mullard" title="Mullard"&gt;Mullard&lt;/a&gt;, a UK company&lt;/li&gt;&lt;/ul&gt;As well as these common codes, many manufacturers or organisations have their own systems too — for example:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;HP diode 1901-0044 = JEDEC 1N4148&lt;/li&gt;&lt;li&gt;UK military diode CV448 = Mullard type OA81 = &lt;a href="http://en.wikipedia.org/wiki/General_Electric_Company_plc" title="General Electric Company plc"&gt;GEC&lt;/a&gt; type GEX23&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Related_devices"&gt;Related devices&lt;/span&gt;&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Rectifier" title="Rectifier"&gt;Rectifier&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Transistor" title="Transistor"&gt;Transistor&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Thyristor" title="Thyristor"&gt;Thyristor&lt;/a&gt; or silicon controlled rectifier (SCR)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/TRIAC" title="TRIAC"&gt;TRIAC&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/DIAC" title="DIAC"&gt;Diac&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Varistor" title="Varistor"&gt;Varistor&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;In optics, an equivalent device for the diode but with laser light would be the &lt;a href="http://en.wikipedia.org/wiki/Optical_isolator" title="Optical isolator"&gt;Optical isolator&lt;/a&gt;, also known as an Optical Diode, that allows light to only pass in one direction. It uses a &lt;a href="http://en.wikipedia.org/wiki/Faraday_rotator" title="Faraday rotator"&gt;Faraday rotator&lt;/a&gt; as the main component.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Applications"&gt;Applications&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Radio_demodulation"&gt;Radio demodulation&lt;/span&gt;&lt;/h3&gt;The first use for the diode was the demodulation of &lt;a href="http://en.wikipedia.org/wiki/Amplitude_modulation" title="Amplitude modulation"&gt;amplitude modulated&lt;/a&gt; (AM) radio broadcasts. The history of this discovery is treated in depth in the &lt;a href="http://en.wikipedia.org/wiki/Radio" title="Radio"&gt;radio&lt;/a&gt; article. In summary, an AM signal consists of alternating positive and negative peaks of voltage, whose &lt;a href="http://en.wikipedia.org/wiki/Amplitude" title="Amplitude"&gt;amplitude&lt;/a&gt; or “envelope” is proportional to the original audio signal. The diode (originally a crystal diode) &lt;a href="http://en.wikipedia.org/wiki/Rectifier" title="Rectifier"&gt;rectifies&lt;/a&gt; the AM radio frequency signal, leaving an audio signal which is the original audio signal, minus atmospheric noise. The audio is extracted using a simple &lt;a href="http://en.wikipedia.org/wiki/Electronic_filter" title="Electronic filter"&gt;filter&lt;/a&gt; and fed into an audio amplifier or &lt;a href="http://en.wikipedia.org/wiki/Transducer" title="Transducer"&gt;transducer&lt;/a&gt;, which generates sound waves.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Power_conversion"&gt;Power conversion&lt;/span&gt;&lt;/h3&gt;&lt;b&gt;&lt;a href="http://en.wikipedia.org/wiki/Rectifier" title="Rectifier"&gt;Rectifiers&lt;/a&gt;&lt;/b&gt; are constructed from diodes, where they are used to convert &lt;a href="http://en.wikipedia.org/wiki/Alternating_current" title="Alternating current"&gt;alternating current&lt;/a&gt; (AC) electricity into &lt;a href="http://en.wikipedia.org/wiki/Direct_current" title="Direct current"&gt;direct current&lt;/a&gt; (DC). Automotive &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Alternator_%28auto%29" title="Alternator (auto)"&gt;alternators&lt;/a&gt; are a common example, where the diode, which rectifies the AC into DC, provides better performance than the &lt;a href="http://en.wikipedia.org/wiki/Commutator_%28electric%29" title="Commutator (electric)"&gt;commutator&lt;/a&gt; of earlier &lt;a href="http://en.wikipedia.org/wiki/Electrical_generator" title="Electrical generator"&gt;dynamo&lt;/a&gt;. Similarly, diodes are also used in &lt;b&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Cockcroft-Walton_generator" title="Cockcroft-Walton generator"&gt;Cockcroft–Walton&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Voltage_multiplier" title="Voltage multiplier"&gt;voltage multipliers&lt;/a&gt;&lt;/b&gt; to convert AC into higher DC voltages.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Over-voltage_protection"&gt;Over-voltage protection&lt;/span&gt;&lt;/h3&gt;Diodes are frequently used to conduct damaging high voltages away from sensitive electronic devices. They are usually reverse-biased (non-conducting) under normal circumstances. When the voltage rises above the normal range, the diodes become forward-biased (conducting). For example, diodes are used in (&lt;a href="http://en.wikipedia.org/wiki/Stepper_motor" title="Stepper motor"&gt;stepper motor&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/H-bridge" title="H-bridge"&gt;H-bridge&lt;/a&gt;) &lt;a href="http://en.wikipedia.org/wiki/Motor_controller" title="Motor controller"&gt;motor controller&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Relay" title="Relay"&gt;relay&lt;/a&gt; circuits to de-energize coils rapidly without the damaging &lt;a href="http://en.wikipedia.org/wiki/Voltage_spike" title="Voltage spike"&gt;voltage spikes&lt;/a&gt; that would otherwise occur. (Any diode used in such an application is called a &lt;a href="http://en.wikipedia.org/wiki/Flyback_diode" title="Flyback diode"&gt;flyback diode&lt;/a&gt;). Many &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Integrated_circuits" title="Integrated circuits"&gt;integrated circuits&lt;/a&gt; also incorporate diodes on the connection pins to prevent external voltages from damaging their sensitive &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Transistors" title="Transistors"&gt;transistors&lt;/a&gt;. Specialized diodes are used to protect from over-voltages at higher power (see &lt;a href="http://en.wikipedia.org/wiki/Diode#Types_of_semiconductor_diode"&gt;Diode types&lt;/a&gt; above).&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Logic_gates"&gt;Logic gates&lt;/span&gt;&lt;/h3&gt;Diodes can be combined with other components to construct &lt;a href="http://en.wikipedia.org/wiki/Logical_conjunction" title="Logical conjunction"&gt;AND&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Logical_disjunction" title="Logical disjunction"&gt;OR&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Logic_gate" title="Logic gate"&gt;logic gates&lt;/a&gt;. This is referred to as &lt;a href="http://en.wikipedia.org/wiki/Diode_logic" title="Diode logic"&gt;diode logic&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Ionizing_radiation_detectors"&gt;Ionizing radiation detectors&lt;/span&gt;&lt;/h3&gt;In addition to light, mentioned above, &lt;a href="http://en.wikipedia.org/wiki/Semiconductor" title="Semiconductor"&gt;semiconductor&lt;/a&gt; diodes are sensitive to more &lt;a href="http://en.wikipedia.org/wiki/Energy" title="Energy"&gt;energetic&lt;/a&gt; radiation. In &lt;a href="http://en.wikipedia.org/wiki/Electronics" title="Electronics"&gt;electronics&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Cosmic_ray" title="Cosmic ray"&gt;cosmic rays&lt;/a&gt; and other sources of ionizing radiation cause &lt;a href="http://en.wikipedia.org/wiki/Noise" title="Noise"&gt;noise&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Pulse" title="Pulse"&gt;pulses&lt;/a&gt; and single and multiple bit errors. This effect is sometimes exploited by &lt;a href="http://en.wikipedia.org/wiki/Particle_detector" title="Particle detector"&gt;particle detectors&lt;/a&gt; to detect radiation. A single particle of radiation, with thousands or millions of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electron_volt" title="Electron volt"&gt;electron volts&lt;/a&gt; of energy, generates many charge carrier pairs, as its energy is deposited in the semiconductor material. If the depletion layer is large enough to catch the whole shower or to stop a heavy particle, a fairly accurate measurement of the particle’s energy can be made, simply by measuring the charge conducted and without the complexity of a magnetic spectrometer or etc. These semiconductor radiation detectors need efficient and uniform charge collection and low leakage current. They are often cooled by &lt;a href="http://en.wikipedia.org/wiki/Liquid_nitrogen" title="Liquid nitrogen"&gt;liquid nitrogen&lt;/a&gt;. For longer range (about a centimetre) particles they need a very large depletion depth and large area. For short range particles, they need any contact or un-depleted semiconductor on at least one surface to be very thin. The back-bias voltages are near breakdown (around a thousand volts per centimetre). Germanium and silicon are common materials. Some of these detectors sense position as well as energy. They have a finite life, especially when detecting heavy particles, because of radiation damage. Silicon and germanium are quite different in their ability to convert &lt;a href="http://en.wikipedia.org/wiki/Gamma_ray" title="Gamma ray"&gt;gamma rays&lt;/a&gt; to electron showers.&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Semiconductor_detector" title="Semiconductor detector"&gt;Semiconductor detectors&lt;/a&gt; for high energy particles are used in large numbers. Because of &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=Energy_loss_fluctuation&amp;amp;action=edit&amp;amp;redlink=1" title="Energy loss fluctuation (page does not exist)"&gt;energy loss fluctuations&lt;/a&gt;, accurate measurement of the energy deposited is of less use.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Temperature_measurements"&gt;Temperature measurements&lt;/span&gt;&lt;/h3&gt;A diode can be used as a &lt;a href="http://en.wikipedia.org/wiki/Temperature" title="Temperature"&gt;temperature&lt;/a&gt; measuring device, since the forward voltage drop across the diode depends on temperature, as in a &lt;a href="http://en.wikipedia.org/wiki/Silicon_bandgap_temperature_sensor" title="Silicon bandgap temperature sensor"&gt;Silicon bandgap temperature sensor&lt;/a&gt;. From the Shockley ideal diode equation given above, it appears the voltage has a positive temperature coefficient (at a constant current) but depends on doping concentration and &lt;a href="http://en.wikipedia.org/wiki/Operating_temperature" title="Operating temperature"&gt;operating temperature&lt;/a&gt; (Sze 2007). The temperature coefficient can be negative as in typical thermistors or positive for temperature sense diodes down to about 20 kelvins. Typically, silicon diodes have approximately −2 mV/˚C temperature coefficient at room temperature.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Current_steering"&gt;Current steering&lt;/span&gt;&lt;/h3&gt;Diodes will prevent currents in unintended directions. To supply power to an electrical circuit during a power failure, the circuit can draw current from a &lt;a href="http://en.wikipedia.org/wiki/Battery_%28electricity%29" title="Battery (electricity)"&gt;battery&lt;/a&gt;. An &lt;a href="http://en.wikipedia.org/wiki/Uninterruptible_power_supply" title="Uninterruptible power supply"&gt;Uninterruptible power supply&lt;/a&gt; may use diodes in this way to ensure that current is only drawn from the battery when necessary. Similarly, small boats typically have two circuits each with their own battery/batteries: one used for engine starting; one used for domestics. Normally both are charged from a single alternator, and a heavy duty split charge diode is used to prevent the higher charge battery (typically the engine battery) from discharging through the lower charged battery when the alternator is not running.&lt;br /&gt;Diodes are also used in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electronic_keyboards" title="Electronic keyboards"&gt;electronic musical keyboards&lt;/a&gt;. To reduce the amount of wiring needed in electronic musical keyboards, these instruments often use &lt;a href="http://en.wikipedia.org/wiki/Keyboard_matrix_%28music%29" title="Keyboard matrix (music)"&gt;keyboard matrix&lt;/a&gt; circuits. The keyboard controller scans the rows and columns to determine which note the player has pressed. The problem with matrix circuits is that when several notes are pressed at once, the current can flow backwards through the circuit and trigger "&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Keyboard_keys#Control_processor" title="Keyboard keys"&gt;phantom keys&lt;/a&gt;" that cause “ghost” notes to play. To avoid triggering unwanted notes, most keyboard matrix circuits have diodes soldered with the switch under each key of the &lt;a href="http://en.wikipedia.org/wiki/Musical_keyboard" title="Musical keyboard"&gt;musical keyboard&lt;/a&gt;. The same principle is also used for the switch matrix in solid state &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Pinball_machine" title="Pinball machine"&gt;pinball machines&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-6235575964265417453?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/6235575964265417453/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/diode.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/6235575964265417453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/6235575964265417453'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/diode.html' title='Diode'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-369222510990145056</id><published>2010-05-16T01:29:00.000-07:00</published><updated>2010-05-16T01:40:57.130-07:00</updated><title type='text'>Assembly language</title><content type='html'>&lt;h1 class="firstHeading" id="firstHeading"&gt;Assembly language&lt;/h1&gt;&lt;br /&gt;&lt;b&gt;Assembly languages&lt;/b&gt; are a type of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Low-level_language" title="Low-level language"&gt;low-level languages&lt;/a&gt; for programming &lt;a href="http://en.wikipedia.org/wiki/Computer" title="Computer"&gt;computers&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Microprocessor" title="Microprocessor"&gt;microprocessors&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Microcontroller" title="Microcontroller"&gt;microcontrollers&lt;/a&gt;, and other (usually) &lt;a href="http://en.wikipedia.org/wiki/Integrated_circuit" title="Integrated circuit"&gt;integrated circuits&lt;/a&gt;. They implement a symbolic representation of the numeric &lt;a href="http://en.wikipedia.org/wiki/Machine_code" title="Machine code"&gt;machine codes&lt;/a&gt; and other constants needed to program a particular &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/CPU" title="CPU"&gt;CPU&lt;/a&gt; architecture. This representation is usually defined by the hardware manufacturer, and is based on abbreviations (called &lt;a href="http://en.wikipedia.org/wiki/Mnemonic#Assembly_mnemonics" title="Mnemonic"&gt;mnemonics&lt;/a&gt;) that help the programmer remember individual &lt;a href="http://en.wikipedia.org/wiki/Instruction_%28computer_science%29" title="Instruction (computer science)"&gt;instructions&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Processor_register" title="Processor register"&gt;registers&lt;/a&gt;, etc. An assembly language family is thus specific to a certain physical (or virtual) computer architecture. This is in contrast to most &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/High-level_language" title="High-level language"&gt;high-level languages&lt;/a&gt;, which are (ideally) &lt;a href="http://en.wikipedia.org/wiki/Porting" title="Porting"&gt;portable&lt;/a&gt;.&lt;br /&gt;A &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Utility_program" title="Utility program"&gt;utility program&lt;/a&gt; called an &lt;b&gt;assembler&lt;/b&gt; is used to translate assembly language statements into the target computer's machine code. The assembler performs a more or less &lt;a href="http://en.wikipedia.org/wiki/Isomorphism" title="Isomorphism"&gt;isomorphic&lt;/a&gt; translation (a one-to-one mapping) from &lt;a href="http://en.wikipedia.org/wiki/Mnemonic" title="Mnemonic"&gt;mnemonic&lt;/a&gt; statements into machine instructions and data. This is in contrast with &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/High-level_language" title="High-level language"&gt;high-level languages&lt;/a&gt;, in which a single statement generally results in many machine instructions.&lt;br /&gt;Many sophisticated assemblers offer additional mechanisms to facilitate program development, control the assembly process, and aid &lt;a href="http://en.wikipedia.org/wiki/Debugging" title="Debugging"&gt;debugging&lt;/a&gt;. In particular, most modern assemblers include a &lt;a href="http://en.wikipedia.org/wiki/Macro_%28computer_science%29" title="Macro (computer science)"&gt;macro&lt;/a&gt; facility (described below), and are called &lt;b&gt;macro assemblers&lt;/b&gt;.&lt;br /&gt;&lt;table class="toc" id="toc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Key_concepts"&gt;Key concepts&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Assembler"&gt;Assembler&lt;/span&gt;&lt;/h3&gt;&lt;dl&gt;&lt;dd&gt;&lt;i&gt; &lt;/i&gt;&lt;/dd&gt;&lt;/dl&gt;Typically a modern &lt;b&gt;assembler&lt;/b&gt; creates &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Object_code" title="Object code"&gt;object code&lt;/a&gt; by translating assembly instruction mnemonics into &lt;a href="http://en.wikipedia.org/wiki/Opcode" title="Opcode"&gt;opcodes&lt;/a&gt;, and by resolving &lt;a href="http://en.wikipedia.org/wiki/Identifier" title="Identifier"&gt;symbolic names&lt;/a&gt; for memory locations and other entities.&lt;sup class="reference" id="cite_ref-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-0"&gt;[1]&lt;/a&gt;&lt;/sup&gt; The use of symbolic references is a key feature of assemblers, saving tedious calculations and manual address updates after program modifications. Most assemblers also include &lt;a href="http://en.wikipedia.org/wiki/Macro_%28computer_science%29" title="Macro (computer science)"&gt;macro&lt;/a&gt; facilities for performing textual substitution—e.g., to generate common short sequences of instructions as &lt;a href="http://en.wikipedia.org/wiki/Inline_expansion" title="Inline expansion"&gt;inline&lt;/a&gt;, instead of &lt;i&gt;called&lt;/i&gt; &lt;a href="http://en.wikipedia.org/wiki/Subroutine" title="Subroutine"&gt;subroutines&lt;/a&gt;, or even generate entire programs or program suites.&lt;br /&gt;Assemblers are generally simpler to write than &lt;a href="http://en.wikipedia.org/wiki/Compiler" title="Compiler"&gt;compilers&lt;/a&gt; for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/High-level_language" title="High-level language"&gt;high-level languages&lt;/a&gt;, and have been available since the 1950s. Modern assemblers, especially for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/RISC" title="RISC"&gt;RISC&lt;/a&gt; based architectures, such as &lt;a href="http://en.wikipedia.org/wiki/MIPS_architecture" title="MIPS architecture"&gt;MIPS&lt;/a&gt;, Sun &lt;a href="http://en.wikipedia.org/wiki/SPARC" title="SPARC"&gt;SPARC&lt;/a&gt;, and HP &lt;a href="http://en.wikipedia.org/wiki/PA-RISC" title="PA-RISC"&gt;PA-RISC&lt;/a&gt;, as well as &lt;a href="http://en.wikipedia.org/wiki/X86" title="X86"&gt;x86&lt;/a&gt;(&lt;a href="http://en.wikipedia.org/wiki/X86-64" title="X86-64"&gt;-64&lt;/a&gt;), optimize &lt;a href="http://en.wikipedia.org/wiki/Instruction_scheduling" title="Instruction scheduling"&gt;instruction scheduling&lt;/a&gt; to exploit the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/CPU_pipeline" title="CPU pipeline"&gt;CPU pipeline&lt;/a&gt; efficiently.&lt;br /&gt;There are two types of assemblers based on how many passes through the source are needed to produce the executable program.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;One-pass assemblers go through the source code once and assumes that all symbols will be defined before any instruction that references them.&lt;/li&gt;&lt;li&gt;Two-pass assemblers (and multi-pass assemblers) create a table with all unresolved symbols in the first pass, then use the 2nd pass to resolve these addresses. The advantage of a one-pass assembler is speed, which is not as important as it once was with advances in computer speed and capabilities. The advantage of the two-pass assembler is that symbols can be defined anywhere in the program source. As a result, the program can be defined in a more logical and meaningful way. This makes two-pass assembler programs easier to read and maintain.&lt;sup class="reference" id="cite_ref-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-1"&gt;[2]&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&lt;/ul&gt;More sophisticated &lt;a href="http://en.wikipedia.org/wiki/High-level_assembler" title="High-level assembler"&gt;high-level assemblers&lt;/a&gt; provide language abstractions such as:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Advanced control structures&lt;/li&gt;&lt;li&gt;High-level procedure/function declarations and invocations&lt;/li&gt;&lt;li&gt;High-level abstract data types, including structures/records, unions, classes, and sets&lt;/li&gt;&lt;li&gt;Sophisticated macro processing (although available on ordinary assemblers since late 1960s for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/IBM/360" title="IBM/360"&gt;IBM/360&lt;/a&gt;, amongst other machines)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Object-oriented_programming" title="Object-oriented programming"&gt;Object-Oriented&lt;/a&gt; features such as &lt;a href="http://en.wikipedia.org/wiki/Encapsulation_%28object-oriented_programming%29" title="Encapsulation (object-oriented programming)"&gt;encapsulation&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Type_polymorphism" title="Type polymorphism"&gt;polymorphism&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Inheritance_%28object-oriented_programming%29" title="Inheritance (object-oriented programming)"&gt;inheritance&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Interface_%28computer_science%29" title="Interface (computer science)"&gt;interfaces&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;See &lt;a href="http://en.wikipedia.org/wiki/Assembly_language#Language_design"&gt;Language design&lt;/a&gt; below for more details.&lt;br /&gt;Note that, in normal professional usage, the term &lt;b&gt;assembler&lt;/b&gt; is often used ambiguously: It is frequently used to refer to an assembly language itself, rather than to the assembler utility. Thus: "CP/CMS was written in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/S/360" title="S/360"&gt;S/360&lt;/a&gt; assembler" as opposed to "ASM-H was a widely-used &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/S/370" title="S/370"&gt;S/370&lt;/a&gt; assembler."&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from March 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Assembly_language"&gt;Assembly language&lt;/span&gt;&lt;/h3&gt;A program written in assembly language consists of a series of &lt;i&gt;instructions&lt;/i&gt;--mnemonics that correspond to a stream of executable instructions, when translated by an &lt;a href="http://en.wikipedia.org/wiki/Assembly_language#Assembler" title="Assembly language"&gt;assembler&lt;/a&gt;, that can be loaded into memory and executed.&lt;br /&gt;For example, an &lt;a href="http://en.wikipedia.org/wiki/X86" title="X86"&gt;x86&lt;/a&gt;/&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/IA-32" title="IA-32"&gt;IA-32&lt;/a&gt; processor can execute the following binary instruction (&lt;a href="http://en.wikipedia.org/wiki/MOV_%28x86_instruction%29" title="MOV (x86 instruction)"&gt;'MOV'&lt;/a&gt;) as expressed in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Machine_language" title="Machine language"&gt;machine language&lt;/a&gt; (see &lt;a href="http://en.wikipedia.org/wiki/X86_assembly_language" title="X86 assembly language"&gt;x86 assembly language&lt;/a&gt;):&lt;br /&gt;&lt;pre&gt;Hexadecimal: B0 61     (Binary: 10110000 01100001)&lt;/pre&gt;The equivalent assembly language representation is easier to remember (example in Intel syntax, more &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Mnemonic" title="Mnemonic"&gt;mnemonic&lt;/a&gt;&lt;/i&gt;):&lt;br /&gt;&lt;div class="mw-geshi" dir="ltr" style="text-align: left;"&gt;&lt;div class="asm source-asm" style="font-family: monospace;"&gt;&lt;pre class="de1"&gt;&lt;span class="kw1"&gt;MOV&lt;/span&gt; &lt;span class="kw3"&gt;AL&lt;/span&gt;&lt;span class="sy0"&gt;,&lt;/span&gt; &lt;span class="nu0"&gt;61h&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;This instruction means:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Move (really a copy) the &lt;a href="http://en.wikipedia.org/wiki/Hexadecimal" title="Hexadecimal"&gt;hexadecimal&lt;/a&gt; value '61' into the &lt;a href="http://en.wikipedia.org/wiki/Processor_register" title="Processor register"&gt;processor register&lt;/a&gt; known as "AL". (The h-suffix means &lt;a href="http://en.wikipedia.org/wiki/Hexadecimal" title="Hexadecimal"&gt;hexadecimal&lt;/a&gt; or = 97 in &lt;a href="http://en.wikipedia.org/wiki/Decimal" title="Decimal"&gt;decimal&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;The mnemonic "mov" represents the opcode &lt;b&gt;1011&lt;/b&gt; which actually &lt;i&gt;copies&lt;/i&gt; the value in the second operand into the register indicated by the first operand. The mnemonic was chosen by the designer of the instruction set to abbreviate "move", making it easier for the programmer to remember. Typical of an assembly language statement, a comma-separated list of arguments or parameters follows the opcode.&lt;br /&gt;In practice many programmers drop the word &lt;i&gt;mnemonic&lt;/i&gt; and, technically incorrectly, call "mov" an &lt;i&gt;opcode&lt;/i&gt;. When they do this they are referring to the underlying &lt;a href="http://en.wikipedia.org/wiki/Binary_code" title="Binary code"&gt;binary code&lt;/a&gt; which it represents. To put it another way, a mnemonic such as "mov" is not an opcode, but as it symbolizes an opcode, one might refer to "the opcode mov" for example when one intends to refer to the binary opcode it symbolizes rather than to the symbol -- the mnemonic -- itself. As few modern programmers have need to be mindful of actually what binary patterns are (the opcodes for specific instructions), the distinction has in practice become a bit blurred among programmers but not among processor designers&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from January 2010"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;.&lt;br /&gt;Transforming assembly into machine language is accomplished by an &lt;a href="http://en.wikipedia.org/wiki/Assembly_language#Assembler" title="Assembly language"&gt;assembler&lt;/a&gt;, and the (partial) reverse by a &lt;a href="http://en.wikipedia.org/wiki/Disassembler" title="Disassembler"&gt;disassembler&lt;/a&gt;. Unlike &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/High-level_language" title="High-level language"&gt;high-level languages&lt;/a&gt;, there is usually a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/One-to-one_correspondence" title="One-to-one correspondence"&gt;one-to-one correspondence&lt;/a&gt; between simple assembly statements and machine language instructions. However, in some cases, an assembler may provide &lt;i&gt;pseudoinstructions&lt;/i&gt; (essentially macros) which expand into several machine language instructions to provide commonly needed functionality. For example, for a machine that lacks a "branch if greater or equal" instruction, an assembler may provide a pseudoinstruction that expands to the machine's "set if less than" and "branch if zero (on the result of the set instruction)". Most full-featured assemblers also provide a rich &lt;a href="http://en.wikipedia.org/wiki/Macro_%28computer_science%29" title="Macro (computer science)"&gt;macro&lt;/a&gt; language (discussed below) which is used by vendors and programmers to generate more complex code and data sequences.&lt;br /&gt;Each &lt;a href="http://en.wikipedia.org/wiki/Computer_architecture" title="Computer architecture"&gt;computer architecture&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Processor_architecture" title="Processor architecture"&gt;processor architecture&lt;/a&gt; usually has its own machine language. On this level, each instruction is simple enough to be executed using a relatively small number of electronic circuits. Computers differ by the number and type of operations they support. For example, a new 64-bit machine would have different circuitry from a 32-bit machine. They may also have different sizes and numbers of registers, and different representations of data types in storage. While most general-purpose computers are able to carry out essentially the same functionality, the ways they do so differ; the corresponding assembly languages reflect these differences.&lt;br /&gt;Multiple sets of &lt;a href="http://en.wikipedia.org/wiki/Mnemonic" title="Mnemonic"&gt;mnemonics&lt;/a&gt; or assembly-language syntax may exist for a single instruction set, typically instantiated in different assembler programs. In these cases, the most popular one is usually that supplied by the manufacturer and used in its documentation.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Language_design"&gt;Language design&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Basic_elements"&gt;Basic elements&lt;/span&gt;&lt;/h3&gt;Any Assembly language consists of 3 types of instruction statements which are used to define the program operations:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Opcode" title="Opcode"&gt;Opcode&lt;/a&gt; mnemonics&lt;/li&gt;&lt;li&gt;Data sections&lt;/li&gt;&lt;li&gt;Assembly directives&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Opcode_mnemonics"&gt;Opcode mnemonics&lt;/span&gt;&lt;/h4&gt;Instructions (statements) in assembly language are generally very simple, unlike those in &lt;a href="http://en.wikipedia.org/wiki/High-level_programming_language" title="High-level programming language"&gt;high-level languages&lt;/a&gt;. Generally, an opcode is a symbolic name for a single executable machine language instruction, and there is at least one opcode mnemonic defined for each machine language instruction. Each instruction typically consists of an &lt;i&gt;operation&lt;/i&gt; or &lt;i&gt;opcode&lt;/i&gt; plus zero or more &lt;i&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Operands" title="Operands"&gt;operands&lt;/a&gt;&lt;/i&gt;. Most instructions refer to a single value, or a pair of values. Operands can be either immediate (typically one byte values, coded in the instruction itself) or the addresses of data located elsewhere in storage. This is determined by the underlying processor architecture: the assembler merely reflects how this architecture works.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Data_sections"&gt;Data sections&lt;/span&gt;&lt;/h4&gt;There are instructions used to define data elements to hold data and variables. They define the type of data, the length and the alignment of data. These instructions can also define whether the data is available to outside programs (programs assembled separately) or only to the program in which the data section is defined.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Assembly_directives_and_pseudo-ops"&gt;Assembly directives and pseudo-ops&lt;/span&gt;&lt;/h4&gt;Assembly directives are instructions that are executed by the assembler at assembly time, not by the CPU at run time. They can make the assembly of the program dependent on parameters input by the programmer, so that one program can be assembled different ways, perhaps for different applications. They also can be used to manipulate presentation of the program to make it easier for the programmer to read and maintain.&lt;br /&gt;(For example, pseudo-ops would be used to reserve storage areas and optionally their initial contents.) The names of pseudo-ops often start with a dot to distinguish them from machine instructions.&lt;br /&gt;Some assemblers also support &lt;i&gt;pseudo-instructions&lt;/i&gt;, which generate two or more machine instructions.&lt;br /&gt;Symbolic assemblers allow programmers to associate arbitrary names (&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Label_%28programming_language%29" title="Label (programming language)"&gt;labels&lt;/a&gt;&lt;/i&gt; or &lt;i&gt;symbols&lt;/i&gt;) with memory locations. Usually, every constant and variable is given a name so instructions can reference those locations by name, thus promoting &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Self-documenting_code" title="Self-documenting code"&gt;self-documenting code&lt;/a&gt;. In executable code, the name of each subroutine is associated with its entry point, so any calls to a subroutine can use its name. Inside subroutines, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/GOTO" title="GOTO"&gt;GOTO&lt;/a&gt; destinations are given labels. Some assemblers support &lt;i&gt;local symbols&lt;/i&gt; which are lexically distinct from normal symbols (e.g., the use of "10$" as a GOTO destination).&lt;br /&gt;Most assemblers provide flexible symbol management, allowing programmers to manage different &lt;a href="http://en.wikipedia.org/wiki/Namespace_%28computer_science%29" title="Namespace (computer science)"&gt;namespaces&lt;/a&gt;, automatically calculate offsets within &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Data_structures" title="Data structures"&gt;data structures&lt;/a&gt;, and assign labels that refer to literal values or the result of simple computations performed by the assembler. Labels can also be used to initialize constants and variables with relocatable addresses.&lt;br /&gt;Assembly languages, like most other computer languages, allow comments to be added to assembly &lt;a href="http://en.wikipedia.org/wiki/Source_code" title="Source code"&gt;source code&lt;/a&gt; that are ignored by the assembler. Good use of comments is even more important with assembly code than with higher-level languages, as the meaning and purpose of a sequence of instructions is harder to decipher from the code itself.&lt;br /&gt;Wise use of these facilities can greatly simplify the problems of coding and maintaining low-level code. &lt;i&gt;Raw&lt;/i&gt; assembly source code as generated by compilers or disassemblers—code without any comments, meaningful symbols, or data definitions—is quite difficult to read when changes must be made.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Macros"&gt;Macros&lt;/span&gt;&lt;/h3&gt;Many assemblers support &lt;i&gt;predefined&lt;/i&gt; &lt;i&gt;macros&lt;/i&gt;, and others support &lt;i&gt;programmer-defined&lt;/i&gt; (and repeatedly redefinable) macros involving sequences of text lines that variables and constants are embedded in. This sequence of text lines may include a sequence of instructions, or a sequence of data storage pseudo-ops. Once a macro has been defined using the appropriate pseudo-op, its name may be used in place of a mnemonic. When the assembler processes such a statement, it replaces the statement with the text lines associated with that macro, then processes them just as though they had appeared in the source code file all along (including, in better assemblers, expansion of any macros appearing in the replacement text).&lt;br /&gt;Since macros can have 'short' names but expand to several or indeed many lines of code, they can be used to make assembly language programs appear to be much shorter (require less lines of source code from the application programmer, as with a higher level language). They can also be used to add higher levels of structure to assembly programs, optionally introduce embedded de-bugging code via parameters and other similar features.&lt;br /&gt;Many assemblers have built-in (or &lt;i&gt;predefined&lt;/i&gt;) macros for system calls and other special code sequences, such as the generation and storage of data realized through advanced bitwise and &lt;a href="http://en.wikipedia.org/wiki/Boolean" title="Boolean"&gt;boolean&lt;/a&gt; operations used in gaming, software security, data management, and cryptography.&lt;br /&gt;Macro assemblers often allow macros to take &lt;a href="http://en.wikipedia.org/wiki/Parameter_%28computer_science%29" title="Parameter (computer science)"&gt;parameters&lt;/a&gt;. Some assemblers include quite sophisticated macro languages, incorporating such high-level language elements as optional parameters, symbolic variables, conditionals, string manipulation, and arithmetic operations, all usable during the execution of a given macro, and allowing macros to save context or exchange information. Thus a macro might generate a large number of assembly language instructions or data definitions, based on the macro arguments. This could be used to generate record-style data structures or "unrolled" loops, for example, or could generate entire algorithms based on complex parameters. An organization using assembly language that has been heavily extended using such a macro suite can be considered to be working in a higher-level language, since such programmers are not working with a computer's lowest-level conceptual elements.&lt;br /&gt;Macros were used to customize large scale software systems for specific customers in the mainframe era and were also used by customer personnel to satisfy their employers' needs by making specific versions of manufacturer operating systems; this was done, for example, by systems programmers working with IBM's Conversational Monitor System/Virtual Machine (CMS/VM) and with &lt;a href="http://en.wikipedia.org/wiki/IBM" title="IBM"&gt;IBM&lt;/a&gt;'s "real time transaction processing" add-ons, &lt;a href="http://en.wikipedia.org/wiki/CICS" title="CICS"&gt;CICS&lt;/a&gt;, Customer Information Control System, and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Airline_Control_Program" title="Airline Control Program"&gt;ACP&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/Transaction_Processing_Facility" title="Transaction Processing Facility"&gt;TPF&lt;/a&gt;, the airline/financial system that began in the 1970s and still runs many large &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Global_Distribution_Systems" title="Global Distribution Systems"&gt;Global Distribution Systems&lt;/a&gt; (GDS) and credit card systems today.&lt;br /&gt;It was also possible to use solely the macro processing capabilities of an assembler to generate code written in completely different languages, for example, to generate a version of a program in Cobol using a pure macro assembler program containing lines of Cobol code inside assembly time operators instructing the assembler to generate arbitrary code.&lt;br /&gt;This was because, as was realized in the 1970s, the concept of "macro processing" is independent of the concept of "assembly", the former being in modern terms more word processing, text processing, than generating object code. The concept of macro processing in fact appeared in and appears in the C programming language, which supports "preprocessor instructions" to set variables, and make conditional tests on their values. Note that unlike certain previous macro processors inside assemblers, the C preprocessor was not &lt;a href="http://en.wikipedia.org/wiki/Turing_completeness" title="Turing completeness"&gt;Turing-complete&lt;/a&gt; because it lacked the ability to either loop or "go to", the latter allowing the programmer to loop.&lt;br /&gt;Despite the power of macro processing, it fell into disuse in high level languages while remaining a perennial for assemblers.&lt;br /&gt;This was because many programmers were rather confused by macro parameter substitution and did not disambiguate macro processing from assembly and execution&lt;sup class="noprint Inline-Template" style="white-space: nowrap;" title="The material in the vicinity of this tag may not be factual or accurate from January 2010"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Disputed_statement" title="Wikipedia:Disputed statement"&gt;dubious&lt;/a&gt; &lt;span class="metadata"&gt;– &lt;a href="http://en.wikipedia.org/wiki/Talk:Assembly_language#Dubious" title="Talk:Assembly language"&gt;discuss&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;]&lt;/sup&gt;.&lt;br /&gt;Macro parameter substitution is strictly by name: at macro processing time, the value of a parameter is textually substituted for its name. The most famous class of bugs resulting was the use of a parameter that itself was an expression and not a simple name when the macro writer expected a name. In the macro: &lt;tt&gt;foo: macro a load a*b&lt;/tt&gt; the intention was that the caller would provide the name of a variable, and the "global" variable or constant b would be used to multiply "a". If foo is called with the parameter a-c, an unexpected macro expansion occurs.&lt;br /&gt;To avoid this, users of macro processors learned to religiously parenthesize formal parameters inside macro definitions, and callers had to do the same to their "actual" parameters&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from January 2010"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;.&lt;br /&gt;PL/I and C feature macros, but this facility was underused or dangerous when used&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from January 2010"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; because they can only manipulate text. On the other hand, homoiconic languages, such as &lt;a href="http://en.wikipedia.org/wiki/Lisp_%28programming_language%29" title="Lisp (programming language)"&gt;Lisp&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Prolog" title="Prolog"&gt;Prolog&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Forth" title="Forth"&gt;Forth&lt;/a&gt;, retain the power of assembly language macros because they are able to manipulate their own code as data.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Support_for_structured_programming"&gt;Support for structured programming&lt;/span&gt;&lt;/h3&gt;Some assemblers have incorporated &lt;a href="http://en.wikipedia.org/wiki/Structured_programming" title="Structured programming"&gt;structured programming&lt;/a&gt; elements to encode execution flow. The earliest example of this approach was in the &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=Concept-14_macro_set&amp;amp;action=edit&amp;amp;redlink=1" title="Concept-14 macro set (page does not exist)"&gt;Concept-14 macro set&lt;/a&gt;, originally proposed by Dr. H.D. Mills (March, 1970), and implemented by Marvin Kessler at IBM's Federal Systems Division, which extended the S/360 macro assembler with IF/ELSE/ENDIF and similar control flow blocks.&lt;sup class="reference" id="cite_ref-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-2"&gt;[3]&lt;/a&gt;&lt;/sup&gt; This was a way to reduce or eliminate the use of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/GOTO" title="GOTO"&gt;GOTO&lt;/a&gt; operations in assembly code, one of the main factors causing &lt;a href="http://en.wikipedia.org/wiki/Spaghetti_code" title="Spaghetti code"&gt;spaghetti code&lt;/a&gt; in assembly language. This approach was widely accepted in the early 80s (the latter days of large-scale assembly language use).&lt;br /&gt;A curious design was &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=A-natural&amp;amp;action=edit&amp;amp;redlink=1" title="A-natural (page does not exist)"&gt;A-natural&lt;/a&gt;, a "stream-oriented" assembler for 8080/&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Z80" title="Z80"&gt;Z80&lt;/a&gt; processors&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from January 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; from &lt;a href="http://en.wikipedia.org/wiki/Whitesmiths" title="Whitesmiths"&gt;Whitesmiths Ltd.&lt;/a&gt; (developers of the &lt;a href="http://en.wikipedia.org/wiki/Unix" title="Unix"&gt;Unix&lt;/a&gt;-like &lt;a href="http://en.wikipedia.org/wiki/Idris_%28operating_system%29" title="Idris (operating system)"&gt;Idris&lt;/a&gt; operating system, and what was reported to be the first commercial &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Compiler" title="Compiler"&gt;compiler&lt;/a&gt;). The language was classified as an assembler, because it worked with raw machine elements such as opcodes, registers, and memory references; but it incorporated an expression syntax to indicate execution order. Parentheses and other special symbols, along with block-oriented structured programming constructs, controlled the sequence of the generated instructions. A-natural was built as the object language of a C compiler, rather than for hand-coding, but its logical syntax won some fans.&lt;br /&gt;There has been little apparent demand for more sophisticated assemblers since the decline of large-scale assembly language development.&lt;sup class="reference" id="cite_ref-assembly-language.3Fcat.3Dtechnology_3-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-assembly-language.3Fcat.3Dtechnology-3"&gt;[4]&lt;/a&gt;&lt;/sup&gt; In spite of that, they are still being developed and applied in cases where resource constraints or peculiarities in the target system's architecture prevent the effective use of higher-level languages.&lt;sup class="reference" id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-4"&gt;[5]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Use_of_assembly_language"&gt;Use of assembly language&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Historical_perspective"&gt;Historical perspective&lt;/span&gt;&lt;/h3&gt;Assembly languages were first developed in the 1950s, when they were referred to as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Second_generation_programming_language" title="Second generation programming language"&gt;second generation programming languages&lt;/a&gt;. They eliminated much of the error-prone and time-consuming &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/First-generation_language" title="First-generation language"&gt;first-generation&lt;/a&gt; programming needed with the earliest computers, freeing the programmer from tedium such as remembering numeric codes and calculating addresses. They were once widely used for all sorts of programming. However, by the 1980s (1990s on &lt;a href="http://en.wikipedia.org/wiki/Microcomputer" title="Microcomputer"&gt;small computers&lt;/a&gt;), their use had largely been supplanted by &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/High-level_language" title="High-level language"&gt;high-level languages&lt;/a&gt;&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from November 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;, in the search for improved &lt;a href="http://en.wikipedia.org/wiki/Programming_productivity" title="Programming productivity"&gt;programming productivity&lt;/a&gt;. Today, although assembly language is almost always handled and generated by &lt;a href="http://en.wikipedia.org/wiki/Compiler" title="Compiler"&gt;compilers&lt;/a&gt;, it is still used for direct hardware manipulation, access to specialized processor instructions, or to address critical performance issues. Typical uses are &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Device_drivers" title="Device drivers"&gt;device drivers&lt;/a&gt;, low-level &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Embedded_systems" title="Embedded systems"&gt;embedded systems&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Real-time_computing" title="Real-time computing"&gt;real-time&lt;/a&gt; systems.&lt;br /&gt;Historically, a large number of programs have been written entirely in assembly language. Operating systems were almost exclusively written in assembly language until the widespread acceptance of &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt; in the 1970s and early 1980s. Many commercial applications were written in assembly language as well, including a large amount of the IBM mainframe software written by large corporations. &lt;a href="http://en.wikipedia.org/wiki/COBOL" title="COBOL"&gt;COBOL&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/FORTRAN" title="FORTRAN"&gt;FORTRAN&lt;/a&gt; eventually displaced much of this work, although a number of large organizations retained assembly-language application infrastructures well into the 90s.&lt;br /&gt;Most early microcomputers relied on hand-coded assembly language, including most operating systems and large applications. This was because these systems had severe resource constraints, imposed idiosyncratic memory and display architectures, and provided limited, buggy system services. Perhaps more important was the lack of first-class high-level language compilers suitable for microcomputer use. A psychological factor may have also played a role: the first generation of microcomputer programmers retained a hobbyist, "wires and pliers" attitude.&lt;br /&gt;In a more commercial context, the biggest reasons for using assembly language were minimal bloat (size), minimal overhead, greater speed, and reliability.&lt;br /&gt;Typical examples of large assembly language programs from this time are the &lt;a href="http://en.wikipedia.org/wiki/MS-DOS" title="MS-DOS"&gt;MS-DOS&lt;/a&gt; operating system, the early IBM PC &lt;a href="http://en.wikipedia.org/wiki/Spreadsheet" title="Spreadsheet"&gt;spreadsheet&lt;/a&gt; program &lt;a href="http://en.wikipedia.org/wiki/Lotus_1-2-3" title="Lotus 1-2-3"&gt;Lotus 1-2-3&lt;/a&gt;, and almost all popular games for the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Atari_800" title="Atari 800"&gt;Atari 800&lt;/a&gt; family of home computers. Even into the 1990s, most console video games were written in assembly, including most games for the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Sega_Mega_Drive" title="Sega Mega Drive"&gt;Mega Drive/Genesis&lt;/a&gt; and the &lt;a href="http://en.wikipedia.org/wiki/Super_Nintendo_Entertainment_System" title="Super Nintendo Entertainment System"&gt;Super Nintendo Entertainment System&lt;/a&gt;&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from February 2007"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;. According to some industry insiders, the assembly language was the best computer language to use to get the best performance out of the &lt;a href="http://en.wikipedia.org/wiki/Sega_Saturn" title="Sega Saturn"&gt;Sega Saturn&lt;/a&gt;, a console that was notoriously challenging to develop and program games for &lt;sup class="reference" id="cite_ref-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-5"&gt;[6]&lt;/a&gt;&lt;/sup&gt;. The popular arcade game &lt;a href="http://en.wikipedia.org/wiki/NBA_Jam" title="NBA Jam"&gt;NBA Jam&lt;/a&gt; (1993) is another example. On the Commodore 64, Amiga, Atari ST, as well as ZX Spectrum home computers, assembler has long been the primary development language. This was in large part due to the fact that BASIC dialects on these systems offered insufficient execution speed, as well as insufficient facilities to take full advantage of the available hardware on these systems. Some systems, most notably Amiga, even have IDEs with highly advanced debugging and macro facilities, such as the freeware &lt;a class="external text" href="http://www.theflamearrows.info/homepage.html" rel="nofollow"&gt;ASM-One assembler&lt;/a&gt;, comparable to that of &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio" title="Microsoft Visual Studio"&gt;Microsoft Visual Studio&lt;/a&gt; facilities (ASM-One predates Microsoft Visual Studio).&lt;br /&gt;&lt;i&gt;The Assembler for the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/VIC-20" title="VIC-20"&gt;VIC-20&lt;/a&gt;&lt;/i&gt; was written by Don French and published by &lt;i&gt;French Silk&lt;/i&gt;. At 1639 bytes in length, its author believes it is the smallest symbolic assembler ever written. The assembler supported the usual symbolic addressing and the definition of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Character_string" title="Character string"&gt;character strings&lt;/a&gt; or hex strings. It also allowed address expressions which could be combined with &lt;a href="http://en.wikipedia.org/wiki/Addition" title="Addition"&gt;addition&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Subtraction" title="Subtraction"&gt;subtraction&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Multiplication" title="Multiplication"&gt;multiplication&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Division_%28mathematics%29" title="Division (mathematics)"&gt;division&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Logical_AND" title="Logical AND"&gt;logical AND&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Logical_OR" title="Logical OR"&gt;logical OR&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Exponentiation" title="Exponentiation"&gt;exponentiation&lt;/a&gt; operators.&lt;sup class="reference" id="cite_ref-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-6"&gt;[7]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Current_usage"&gt;Current usage&lt;/span&gt;&lt;/h3&gt;There have always been debates over the usefulness and performance of assembly language relative to high-level languages. Assembly language has specific niche uses where it is important; see below. But in general, modern &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Optimizing_compiler" title="Optimizing compiler"&gt;optimizing compilers&lt;/a&gt; are claimed&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from March 2010"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; to render high-level languages into code that can run as fast as hand-written assembly, despite the counter-examples that can be found &lt;sup class="reference" id="cite_ref-goto_7-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-goto-7"&gt;[8]&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-bit-fild_8-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-bit-fild-8"&gt;[9]&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-gcc-mess_9-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-gcc-mess-9"&gt;[10]&lt;/a&gt;&lt;/sup&gt;. The complexity of modern processors and memory sub-system makes effective optimization increasingly difficult for compilers, as well as assembler programmers &lt;sup class="reference" id="cite_ref-GreatDebate1_10-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-GreatDebate1-10"&gt;[11]&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-compiler-fails1_11-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-compiler-fails1-11"&gt;[12]&lt;/a&gt;&lt;/sup&gt;. Moreover, and to the dismay of efficiency lovers, increasing processor performance has meant that most CPUs sit idle most of the time, with delays caused by predictable bottlenecks such as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/I/O" title="I/O"&gt;I/O&lt;/a&gt; operations and &lt;a href="http://en.wikipedia.org/wiki/Paging" title="Paging"&gt;paging&lt;/a&gt;. This has made raw code execution speed a non-issue for many programmers.&lt;br /&gt;There are some situations in which practitioners might choose to use assembly language, such as when:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;a stand-alone binary executable is required, i.e. one that must execute without recourse to the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Run-time" title="Run-time"&gt;run-time&lt;/a&gt; components or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Library_%28computer_science%29" title="Library (computer science)"&gt;libraries&lt;/a&gt; associated with a high-level language; this is perhaps the most common situation. These are embedded programs that store only a small amount of memory and the device is intended to do single purpose tasks. Such examples consist of telephones, automobile fuel and ignition systems, air-conditioning control systems, security systems, and sensors.&lt;/li&gt;&lt;li&gt;interacting directly with the hardware, for example in &lt;a href="http://en.wikipedia.org/wiki/Device_driver" title="Device driver"&gt;device drivers&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Interrupt_handler" title="Interrupt handler"&gt;interrupt handlers&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;using processor-specific instructions not exploited by or available to the compiler. A common example is the &lt;a href="http://en.wikipedia.org/wiki/Circular_shift" title="Circular shift"&gt;bitwise rotation&lt;/a&gt; instruction at the core of many encryption algorithms.&lt;/li&gt;&lt;li&gt;creating vectorized functions for programs in higher-level languages such as C. In the higher-level language this is sometimes aided by compiler &lt;a href="http://en.wikipedia.org/wiki/Intrinsic_function" title="Intrinsic function"&gt;intrinsic functions&lt;/a&gt; which map directly to SIMD mnemonics, but nevertheless result in a one-to-one assembly conversion specific for the given vector processor.&lt;/li&gt;&lt;li&gt;extreme optimization is required, e.g., in an inner &lt;a href="http://en.wikipedia.org/wiki/Control_flow#Loops" title="Control flow"&gt;loop&lt;/a&gt; in a processor-intensive algorithm. &lt;a href="http://en.wikipedia.org/wiki/Game_programmer" title="Game programmer"&gt;Game programmers&lt;/a&gt; take advantage of the capabilities of hardware features in systems, enabling the games to run faster.&lt;/li&gt;&lt;li&gt;a system with severe resource constraints (e.g., an &lt;a href="http://en.wikipedia.org/wiki/Embedded_system" title="Embedded system"&gt;embedded system&lt;/a&gt;) must be hand-coded to maximize the use of limited resources; but this is becoming less common as processor price decreases and performance improves.&lt;/li&gt;&lt;li&gt;no high-level language exists, on a new or specialized processor, for example.&lt;/li&gt;&lt;li&gt;writing &lt;a href="http://en.wikipedia.org/wiki/Real-time_computing" title="Real-time computing"&gt;real-time&lt;/a&gt; programs that need precise timing and responses, such as simulations, flight navigation systems, and medical equipment. For example, in a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Fly-by-wire" title="Fly-by-wire"&gt;fly-by-wire&lt;/a&gt; system, telemetry must be interpreted and acted upon within strict time constraints. Such systems must eliminate sources of unpredictable delays, which may be created by (some) interpreted languages, automatic &lt;a href="http://en.wikipedia.org/wiki/Garbage_collection_%28computer_science%29" title="Garbage collection (computer science)"&gt;garbage collection&lt;/a&gt;, paging operations, or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Preemptive_multitasking" title="Preemptive multitasking"&gt;preemptive multitasking&lt;/a&gt;. However, some higher-level languages incorporate run-time components and operating system interfaces that can introduce such delays. Choosing assembly or lower-level languages for such systems gives the programmer greater visibility and control over processing details.&lt;/li&gt;&lt;li&gt;complete control over the environment is required, in extremely high security situations where &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Trusting_trust#Reflections_on_Trusting_Trust" title="Trusting trust"&gt;nothing can be taken for granted&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;writing &lt;a href="http://en.wikipedia.org/wiki/Computer_virus" title="Computer virus"&gt;computer viruses&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Bootloader" title="Bootloader"&gt;bootloaders&lt;/a&gt;, certain &lt;a href="http://en.wikipedia.org/wiki/Device_driver" title="Device driver"&gt;device drivers&lt;/a&gt;, or other items very close to the hardware or low-level operating system.&lt;/li&gt;&lt;li&gt;writing &lt;a href="http://en.wikipedia.org/wiki/Instruction_set_simulator" title="Instruction set simulator"&gt;instruction set simulators&lt;/a&gt; for monitoring, tracing and &lt;a href="http://en.wikipedia.org/wiki/Debugging" title="Debugging"&gt;debugging&lt;/a&gt; where additional overhead is kept to a minimum&lt;/li&gt;&lt;li&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Reverse-engineering" title="Reverse-engineering"&gt;reverse-engineering&lt;/a&gt; existing &lt;a href="http://en.wikipedia.org/wiki/Binary_file" title="Binary file"&gt;binaries&lt;/a&gt; that may or may not have originally been written in a high-level language, for example when cracking copy protection of proprietary software.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Reverse_engineering" title="Reverse engineering"&gt;reverse engineering&lt;/a&gt; and modifying &lt;a href="http://en.wikipedia.org/wiki/Video_game" title="Video game"&gt;video games&lt;/a&gt; (also known as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/ROM_Hacking" title="ROM Hacking"&gt;ROM Hacking&lt;/a&gt;), which is possible with a range of techniques. The most widely employed is altering the program code at the assembly language level.&lt;/li&gt;&lt;li&gt;writing &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Self_modifying_code" title="Self modifying code"&gt;self modifying code&lt;/a&gt;, to which assembly language lends itself well.&lt;/li&gt;&lt;li&gt;writing &lt;a href="http://en.wikipedia.org/wiki/Calculator_gaming" title="Calculator gaming"&gt;games&lt;/a&gt; and other software for &lt;a href="http://en.wikipedia.org/wiki/Graphing_calculator" title="Graphing calculator"&gt;graphing calculators&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-12"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-12"&gt;[13]&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&lt;li&gt;writing compiler software that generates assembly code, and the writers should therefore be expert assembly language programmers themselves.&lt;/li&gt;&lt;li&gt;writing cryptographic algorithms that must always take strictly the same time to execute, preventing &lt;a href="http://en.wikipedia.org/wiki/Timing_attack" title="Timing attack"&gt;timing attacks&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;Nevertheless, assembly language is still taught in most &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Computer_Science" title="Computer Science"&gt;Computer Science&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Electronic_Engineering" title="Electronic Engineering"&gt;Electronic Engineering&lt;/a&gt; programs. Although few programmers today regularly work with assembly language as a tool, the underlying concepts remain very important. Such fundamental topics as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Binary_arithmetic" title="Binary arithmetic"&gt;binary arithmetic&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Memory_allocation" title="Memory allocation"&gt;memory allocation&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Stack_%28data_structure%29" title="Stack (data structure)"&gt;stack processing&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Character_set" title="Character set"&gt;character set&lt;/a&gt; encoding, &lt;a href="http://en.wikipedia.org/wiki/Interrupt" title="Interrupt"&gt;interrupt&lt;/a&gt; processing, and &lt;a href="http://en.wikipedia.org/wiki/Compiler" title="Compiler"&gt;compiler&lt;/a&gt; design would be hard to study in detail without a grasp of how a computer operates at the hardware level. Since a computer's behavior is fundamentally defined by its instruction set, the logical way to learn such concepts is to study an assembly language. Most modern computers have similar instruction sets. Therefore, studying a single assembly language is sufficient to learn: i) The basic concepts; ii) To recognize situations where the use of assembly language might be appropriate; and iii) To see how efficient executable code can be created from high-level languages. &lt;sup class="reference" id="cite_ref-13"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-13"&gt;[14]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Typical_applications"&gt;Typical applications&lt;/span&gt;&lt;/h3&gt;Hard-coded assembly language is typically used in a system's &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Boot_ROM" title="Boot ROM"&gt;boot ROM&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/BIOS" title="BIOS"&gt;BIOS&lt;/a&gt; on IBM-compatible &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Personal_Computer" title="Personal Computer"&gt;PC&lt;/a&gt; systems). This low-level code is used, among other things, to initialize and test the system hardware prior to booting the OS, and is stored in &lt;a href="http://en.wikipedia.org/wiki/Read-only_memory" title="Read-only memory"&gt;ROM&lt;/a&gt;. Once a certain level of hardware initialization has taken place, execution transfers to other code, typically written in higher level languages; but the code running immediately after power is applied is usually written in assembly language. The same is true of most &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Boot_loader" title="Boot loader"&gt;boot loaders&lt;/a&gt;.&lt;br /&gt;Many compilers render high-level languages into assembly first before fully compiling, allowing the assembly code to be viewed for &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Debug" title="Debug"&gt;debugging&lt;/a&gt; and optimization purposes. Relatively low-level languages, such as &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt;, often provide special &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Syntax_of_programming_languages" title="Syntax of programming languages"&gt;syntax&lt;/a&gt; to embed assembly language directly in the source code. Programs using such facilities, such as the &lt;a href="http://en.wikipedia.org/wiki/Linux_kernel" title="Linux kernel"&gt;Linux kernel&lt;/a&gt;, can then construct abstractions utilizing different assembly language on each hardware platform. The system's &lt;a href="http://en.wikipedia.org/wiki/Software_portability" title="Software portability"&gt;portable&lt;/a&gt; code can then utilize these processor-specific components through a uniform interface.&lt;br /&gt;Assembly language is also valuable in &lt;a href="http://en.wikipedia.org/wiki/Reverse_engineering" title="Reverse engineering"&gt;reverse engineering&lt;/a&gt;, since many programs are distributed only in machine code form, and machine code is usually easy to translate into assembly language and carefully examine in this form, but very difficult to translate into a higher-level language. Tools such as the &lt;a href="http://en.wikipedia.org/wiki/Interactive_Disassembler" title="Interactive Disassembler"&gt;Interactive Disassembler&lt;/a&gt; make extensive use of disassembly for such a purpose.&lt;br /&gt;A particular niche that makes use of assembly language is the &lt;a href="http://en.wikipedia.org/wiki/Demoscene" title="Demoscene"&gt;demoscene&lt;/a&gt;. Certain competitions require the contestants to restrict their creations to a very small size (e.g. 256&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Bytes" title="Bytes"&gt;B&lt;/a&gt;, 1&lt;a href="http://en.wikipedia.org/wiki/Kilobyte" title="Kilobyte"&gt;KB&lt;/a&gt;, 4KB or 64 KB), and assembly language is the language of choice to achieve this goal.&lt;sup class="reference" id="cite_ref-14"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-14"&gt;[15]&lt;/a&gt;&lt;/sup&gt; When resources, particularly CPU-processing constrained systems, like the earlier &lt;a href="http://en.wikipedia.org/wiki/Amiga" title="Amiga"&gt;Amiga&lt;/a&gt; models, and the &lt;a href="http://en.wikipedia.org/wiki/Commodore_64" title="Commodore 64"&gt;Commodore 64&lt;/a&gt;, are a concern, assembler coding is a must: optimized assembler code is written "by hand" and instructions are sequenced manually by the &lt;a href="http://en.wikipedia.org/wiki/Programmer" title="Programmer"&gt;coders&lt;/a&gt; in an attempt to minimize the number of CPU cycles used; the CPU constraints are so great that every CPU cycle counts. However, using such techniques has enabled systems like the Commodore 64 to produce real-time &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/3D_graphics" title="3D graphics"&gt;3D graphics&lt;/a&gt; with advanced effects, a feat which might be considered unlikely or even impossible for a system with a 0.99&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/MHz" title="MHz"&gt;MHz&lt;/a&gt; processor.&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs references to reliable sources from September 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt;&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Related_terminology"&gt;Related terminology&lt;/span&gt;&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Assembly language&lt;/b&gt; or &lt;b&gt;assembler language&lt;/b&gt; is commonly called &lt;b&gt;assembly&lt;/b&gt;, &lt;b&gt;assembler&lt;/b&gt;, &lt;b&gt;ASM&lt;/b&gt;, or &lt;b&gt;symbolic machine code&lt;/b&gt;. A generation of IBM mainframe programmers called it &lt;b&gt;BAL&lt;/b&gt; for &lt;i&gt;Basic Assembly Language&lt;/i&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;dl&gt;&lt;dd&gt;&lt;dl&gt;&lt;dd&gt;Note: Calling the language &lt;b&gt;assembler&lt;/b&gt; is of course potentially confusing and ambiguous, since this is also the name of the utility program that translates assembly language statements into machine code. Some may regard this as imprecision or error. However, this usage has been common among professionals and in the literature for decades.&lt;sup class="reference" id="cite_ref-15"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-15"&gt;[16]&lt;/a&gt;&lt;/sup&gt; Similarly, some early computers called their &lt;i&gt;assembler&lt;/i&gt; its &lt;b&gt;assembly program&lt;/b&gt;.&lt;sup class="reference" id="cite_ref-16"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-16"&gt;[17]&lt;/a&gt;&lt;/sup&gt;)&lt;/dd&gt;&lt;/dl&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;ul&gt;&lt;li&gt;The computational step where an assembler is run, including all macro processing, is known as &lt;b&gt;assembly time&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;The use of the word &lt;b&gt;assembly&lt;/b&gt; dates from the early years of computers (&lt;i&gt;cf.&lt;/i&gt; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Short_Code_%28Computer_language%29" title="Short Code (Computer language)"&gt;short code&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Speedcoding" title="Speedcoding"&gt;speedcode&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;A &lt;b&gt;cross assembler&lt;/b&gt; (see &lt;a href="http://en.wikipedia.org/wiki/Cross_compiler" title="Cross compiler"&gt;cross compiler&lt;/a&gt;) is functionally just an assembler. This term is used to stress that the assembler is run on a different computer than the target system, the system on which the resulting code is run. Because nowadays assemblers are written portably in a high level language like C, this is largely irrelevant. Cross assembling may be necessary if the target system lacks the capacity to run an assembler itself. This is typically the case for small embedded systems. The most important distinguishing feature of a cross assembler is that it provides for or interfaces to facilities to transport the code to the target processor, e.g. to reside in flash or EPROM. It generates a binary image, or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Intel_Hex" title="Intel Hex"&gt;Intel Hex&lt;/a&gt; file rather than an &lt;a href="http://en.wikipedia.org/wiki/Object_file" title="Object file"&gt;object file&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;An &lt;b&gt;assembler directive&lt;/b&gt; is a command given to an assembler. These directives may do anything from telling the assembler to include other source files, to telling it to allocate memory for constant data.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="List_of_assemblers_for_different_computer_architectures"&gt;List of assemblers for different computer architectures&lt;/span&gt;&lt;/h2&gt;The following page has a list of different assemblers for the different computer architectures, along with any associated information for that specific assembler:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/List_of_assemblers" title="List of assemblers"&gt;List of assemblers&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Further_details"&gt;Further details&lt;/span&gt;&lt;/h2&gt;For any given personal computer, mainframe, embedded system, and game console, both past and present, at least one--possibly dozens--of assemblers have been written. For some examples, see the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/List_of_assemblers" title="List of assemblers"&gt;list of assemblers&lt;/a&gt;.&lt;br /&gt;On &lt;a href="http://en.wikipedia.org/wiki/Unix" title="Unix"&gt;Unix&lt;/a&gt; systems, the assembler is traditionally called &lt;a href="http://en.wikipedia.org/wiki/As_%28Unix%29" title="As (Unix)"&gt;as&lt;/a&gt;, although it is not a single body of code, being typically written anew for each port. A number of Unix variants use &lt;a href="http://en.wikipedia.org/wiki/GNU_Assembler" title="GNU Assembler"&gt;GAS&lt;/a&gt;.&lt;br /&gt;Within processor groups, each assembler has its own dialect. Sometimes, some assemblers can read another assembler's dialect, for example, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/TASM" title="TASM"&gt;TASM&lt;/a&gt; can read old &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/MASM" title="MASM"&gt;MASM&lt;/a&gt; code, but not the reverse. &lt;a href="http://en.wikipedia.org/wiki/FASM" title="FASM"&gt;FASM&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Netwide_Assembler" title="Netwide Assembler"&gt;NASM&lt;/a&gt; have similar syntax, but each support different macros that could make them difficult to translate to each other. The basics are all the same, but the advanced features will differ.&lt;sup class="reference" id="cite_ref-Hyde_17-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-Hyde-17"&gt;[18]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Also, assembly can sometimes be portable across different operating systems on the same type of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/CPU" title="CPU"&gt;CPU&lt;/a&gt;. &lt;a href="http://en.wikipedia.org/wiki/Calling_convention" title="Calling convention"&gt;Calling conventions&lt;/a&gt; between operating systems often differ slightly or not at all, and with care it is possible to gain some portability in assembly language, usually by linking with a &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt; library that does not change between operating systems. An &lt;a href="http://en.wikipedia.org/wiki/Instruction_set_simulator" title="Instruction set simulator"&gt;instruction set simulator&lt;/a&gt; (which would ideally be written in an assembler language) can, in theory, process the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Object_code" title="Object code"&gt;object code&lt;/a&gt;/ &lt;a href="http://en.wikipedia.org/wiki/Binary_file" title="Binary file"&gt;binary&lt;/a&gt; of &lt;i&gt;any&lt;/i&gt; assembler to achieve portability even across &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Platform_%28computing%29" title="Platform (computing)"&gt;platforms&lt;/a&gt; (with an overhead no greater than a typical bytecode interpreter). This is essentially what microcode achieves when a hardware platform changes internally.&lt;br /&gt;For example, many things in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Libc" title="Libc"&gt;libc&lt;/a&gt; depend on the preprocessor to do OS-specific, C-specific things to the program before compiling. In fact, some functions and symbols are not even guaranteed to exist outside of the preprocessor. Worse, the size and field order of structs, as well as the size of certain &lt;a href="http://en.wikipedia.org/wiki/Typedef" title="Typedef"&gt;typedefs&lt;/a&gt; such as off_t, are entirely unavailable in assembly language without help from a &lt;a href="http://en.wikipedia.org/wiki/Configure_script" title="Configure script"&gt;configure script&lt;/a&gt;, and differ even between versions of &lt;a href="http://en.wikipedia.org/wiki/Linux" title="Linux"&gt;Linux&lt;/a&gt;, making it impossible to portably call functions in libc other than ones that only take simple integers and pointers as parameters. To address this issue, &lt;a class="new" href="http://en.wikipedia.org/w/index.php?title=FASMLIB&amp;amp;action=edit&amp;amp;redlink=1" title="FASMLIB (page does not exist)"&gt;FASMLIB&lt;/a&gt; project provides a portable assembly library for Win32 and Linux platforms, but it is yet very incomplete.&lt;sup class="reference" id="cite_ref-FASMLIB_18-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-FASMLIB-18"&gt;[19]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;Some higher level computer languages, such as &lt;a href="http://en.wikipedia.org/wiki/C_%28programming_language%29" title="C (programming language)"&gt;C&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Borland_Pascal" title="Borland Pascal"&gt;Borland Pascal&lt;/a&gt;, support &lt;a href="http://en.wikipedia.org/wiki/Inline_assembler" title="Inline assembler"&gt;inline assembly&lt;/a&gt; where relatively brief sections of assembly code can be embedded into the high level language code. The &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Forth_programming_language" title="Forth programming language"&gt;Forth programming language&lt;/a&gt; commonly contains an assembler used in CODE words.&lt;br /&gt;Many people use an &lt;a href="http://en.wikipedia.org/wiki/Emulator" title="Emulator"&gt;emulator&lt;/a&gt; to debug assembly-language programs.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Example_listing_of_assembly_language_source_code"&gt;Example listing of assembly language source code&lt;/span&gt;&lt;/h2&gt;&lt;table class="wikitable"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Address&lt;/th&gt; &lt;th&gt;Label&lt;/th&gt; &lt;th&gt;Instruction (AT&amp;amp;T syntax)&lt;/th&gt; &lt;th&gt;Object code&lt;sup class="reference" id="cite_ref-Murdocca_19-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-Murdocca-19"&gt;[20]&lt;/a&gt;&lt;/sup&gt;&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;.begin&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;.org 2048&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;a_start&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;.equ 3000&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2048&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;ld length,%&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2064&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;be done&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;00000010 10000000 00000000 00000110&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2068&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;addcc&amp;nbsp;%r1,-4,%r1&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;10000010 10000000 01111111 11111100&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2072&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;addcc&amp;nbsp;%r1,%r2,%r4&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;10001000 10000000 01000000 00000010&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2076&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;ld&amp;nbsp;%r4,%r5&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;11001010 00000001 00000000 00000000&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2080&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;ba loop&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;00010000 10111111 11111111 11111011&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2084&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;addcc&amp;nbsp;%r3,%r5,%r3&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;10000110 10000000 11000000 00000101&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2088&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;done:&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;jmpl&amp;nbsp;%r15+4,%r0&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;10000001 11000011 11100000 00000100&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2092&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;length:&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;20&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;00000000 00000000 00000000 00010100&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;2096&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;address:&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;a_start&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;00000000 00000000 00001011 10111000&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;.org a_start&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;tt&gt;3000&lt;/tt&gt;&lt;/td&gt; &lt;td&gt;&lt;tt&gt;a:&lt;/tt&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Example of a selection of instructions (for a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Universal_Virtual_Computer" title="Universal Virtual Computer"&gt;virtual computer&lt;/a&gt;&lt;sup class="reference" id="cite_ref-wwwPOCA_20-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Assembly_language#cite_note-wwwPOCA-20"&gt;[21]&lt;/a&gt;&lt;/sup&gt;) with the corresponding &lt;a href="http://en.wikipedia.org/wiki/Memory_address" title="Memory address"&gt;address&lt;/a&gt; in memory where each instruction will be placed. These addresses are not static, see &lt;a href="http://en.wikipedia.org/wiki/Memory_management" title="Memory management"&gt;memory management&lt;/a&gt;. Accompanying each instruction is the generated (by the assembler) &lt;a href="http://en.wikipedia.org/wiki/Object_file" title="Object file"&gt;object code&lt;/a&gt; that coincides with the virtual computer's architecture (or &lt;a href="http://en.wikipedia.org/wiki/Instruction_set" title="Instruction set"&gt;ISA&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-369222510990145056?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/369222510990145056/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/assembly-language.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/369222510990145056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/369222510990145056'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/assembly-language.html' title='Assembly language'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-8230327929329225367</id><published>2010-05-16T01:05:00.000-07:00</published><updated>2010-05-16T01:09:39.700-07:00</updated><title type='text'>Microcontroller</title><content type='html'>This article needs additional citations for verification.&lt;br /&gt;Please help improve this article by adding reliable references. Unsourced material may be challenged and removed. (November 2009)&lt;br /&gt;The integrated circuit from an Intel 8742, an 8-bit microcontroller that includes a CPU running at 12 MHz, 128 bytes of RAM, 2048 bytes of EPROM, and I/O in the same chip.&lt;br /&gt;&lt;br /&gt;A microcontroller is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications.&lt;br /&gt;&lt;br /&gt;Microcontrollers are used in automatically controlled products and devices, such as automobile engine control systems, implantable medical devices, remote controls, office machines, appliances, power tools, and toys. By reducing the size and cost compared to a design that uses a separate microprocessor, memory, and input/output devices, microcontrollers make it economical to digitally control even more devices and processes. Mixed signal microcontrollers are common, integrating analog components needed to control non-digital electronic systems.&lt;br /&gt;&lt;br /&gt;Some microcontrollers may use four-bit words and operate at clock rate frequencies as low as 4 kHz, for low power consumption (milliwatts or microwatts). They will generally have the ability to retain functionality while waiting for an event such as a button press or other interrupt; power consumption while sleeping (CPU clock and most peripherals off) may be just nanowatts, making many of them well suited for long lasting battery applications. Other microcontrollers may serve performance-critical roles, where they may need to act more like a digital signal processor (DSP), with higher clock speeds and power consumption.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Contents&lt;br /&gt;[hide]&lt;br /&gt;&lt;br /&gt;    * 1 Embedded design&lt;br /&gt;          o 1.1 Interrupts&lt;br /&gt;          o 1.2 Programs&lt;br /&gt;          o 1.3 Other microcontroller features&lt;br /&gt;    * 2 Higher integration&lt;br /&gt;    * 3 Volumes&lt;br /&gt;    * 4 Programming environments&lt;br /&gt;    * 5 Types of microcontrollers&lt;br /&gt;    * 6 Interrupt latency&lt;br /&gt;    * 7 History&lt;br /&gt;    * 8 Microcontroller embedded memory technology&lt;br /&gt;          o 8.1 Data&lt;br /&gt;          o 8.2 Firmware&lt;br /&gt;    * 9 See also&lt;br /&gt;    * 10 Notes&lt;br /&gt;    * 11 External links&lt;br /&gt;&lt;br /&gt;Embedded design&lt;br /&gt;&lt;br /&gt;A microcontroller can be considered a self-contained system with a processor, memory and peripherals and can be used as an embedded system. [1] The majority of microcontrollers in use today are embedded in other machinery, such as automobiles, telephones, appliances, and peripherals for computer systems. These are called embedded systems. While some embedded systems are very sophisticated, many have minimal requirements for memory and program length, with no operating system, and low software complexity. Typical input and output devices include switches, relays, solenoids, LEDs, small or custom LCD displays, radio frequency devices, and sensors for data such as temperature, humidity, light level etc. Embedded systems usually have no keyboard, screen, disks, printers, or other recognizable I/O devices of a personal computer, and may lack human interaction devices of any kind.&lt;br /&gt;Interrupts&lt;br /&gt;&lt;br /&gt;Microcontrollers must provide real time (predictable, though not necessarily fast) response to events in the embedded system they are controlling. When certain events occur, an interrupt system can signal the processor to suspend processing the current instruction sequence and to begin an interrupt service routine (ISR, or "interrupt handler"). The ISR will perform any processing required based on the source of the interrupt before returning to the original instruction sequence. Possible interrupt sources are device dependent, and often include events such as an internal timer overflow, completing an analog to digital conversion, a logic level change on an input such as from a button being pressed, and data received on a communication link. Where power consumption is important as in battery operated devices, interrupts may also wake a microcontroller from a low power sleep state where the processor is halted until required to do something by a peripheral event.&lt;br /&gt; Programs&lt;br /&gt;&lt;br /&gt;Microcontroller programs must fit in the available on-chip program memory, since it would be costly to provide a system with external, expandable, memory. Compilers and assemblers are used to turn high-level language and assembler language codes into a compact machine code for storage in the microcontroller's memory. Depending on the device, the program memory may be permanent, read-only memory that can only be programmed at the factory, or program memory may be field-alterable flash or erasable read-only memory.&lt;br /&gt;Other microcontroller features&lt;br /&gt;&lt;br /&gt;Microcontrollers usually contain from several to dozens of general purpose input/output pins (GPIO). GPIO pins are software configurable to either an input or an output state. When GPIO pins are configured to an input state, they are often used to read sensors or external signals. Configured to the output state, GPIO pins can drive external devices such as LED's or motors.&lt;br /&gt;&lt;br /&gt;Many embedded systems need to read sensors that produce analog signals. This is the purpose of the analog-to-digital converter (ADC). Since processors are built to interpret and process digital data, i.e. 1s and 0s, they won't be able to do anything with the analog signals that may be sent to it by a device. So the analog to digital converter is used to convert the incoming data into a form that the processor can recognize. A less common feature on some microcontrollers is a digital-to-analog converter (DAC) that allows the processor to output analog signals or voltage levels.&lt;br /&gt;&lt;br /&gt;In addition to the converters, many embedded microprocessors include a variety of timers as well. One of the most common types of timers is the Programmable Interval Timer (PIT). A PIT just counts down from some value to zero. Once it reaches zero, it sends an interrupt to the processor indicating that it has finished counting. This is useful for devices such as thermostats, which periodically test the temperature around them to see if they need to turn the air conditioner on, the heater on, etc.&lt;br /&gt;&lt;br /&gt;Time Processing Unit (TPU) is a sophisticated timer. In addition to counting down, the TPU can detect input events, generate output events, and perform other useful operations.&lt;br /&gt;&lt;br /&gt;A dedicated Pulse Width Modulation (PWM) block makes it possible for the CPU to control power converters, resistive loads, motors, etc., without using lots of CPU resources in tight timer loops.&lt;br /&gt;&lt;br /&gt;Universal Asynchronous Receiver/Transmitter (UART) block makes it possible to receive and transmit data over a serial line with very little load on the CPU. Dedicated on-chip hardware also often includes capabilities to communicate with other devices (chips) in digital formats such as I2C and Serial Peripheral Interface (SPI).&lt;br /&gt;Higher integration&lt;br /&gt;&lt;br /&gt;In contrast to general-purpose CPUs, micro-controllers may not implement an external address or data bus as they integrate RAM and non-volatile memory on the same chip as the CPU. Using fewer pins, the chip can be placed in a much smaller, cheaper package.&lt;br /&gt;&lt;br /&gt;Integrating the memory and other peripherals on a single chip and testing them as a unit increases the cost of that chip, but often results in decreased net cost of the embedded system as a whole. Even if the cost of a CPU that has integrated peripherals is slightly more than the cost of a CPU and external peripherals, having fewer chips typically allows a smaller and cheaper circuit board, and reduces the labor required to assemble and test the circuit board.&lt;br /&gt;&lt;br /&gt;A micro-controller is a single integrated circuit, commonly with the following features:&lt;br /&gt;&lt;br /&gt;    * central processing unit - ranging from small and simple 4-bit processors to complex 32- or 64-bit processors&lt;br /&gt;    * discrete input and output bits, allowing control or detection of the logic state of an individual package pin&lt;br /&gt;    * serial input/output such as serial ports (UARTs)&lt;br /&gt;    * other serial communications interfaces like I²C, Serial Peripheral Interface and Controller Area Network for system interconnect&lt;br /&gt;    * peripherals such as timers, event counters, PWM generators, and watchdog&lt;br /&gt;    * volatile memory (RAM) for data storage&lt;br /&gt;    * ROM, EPROM, EEPROM or Flash memory for program and operating parameter storage&lt;br /&gt;    * clock generator - often an oscillator for a quartz timing crystal, resonator or RC circuit&lt;br /&gt;    * many include analog-to-digital converters&lt;br /&gt;    * in-circuit programming and debugging support&lt;br /&gt;&lt;br /&gt;This integration drastically reduces the number of chips and the amount of wiring and circuit board space that would be needed to produce equivalent systems using separate chips. Furthermore, and on low pin count devices in particular, each pin may interface to several internal peripherals, with the pin function selected by software. This allows a part to be used in a wider variety of applications than if pins had dedicated functions. Micro-controllers have proved to be highly popular in embedded systems since their introduction in the 1970s.&lt;br /&gt;&lt;br /&gt;Some microcontrollers use a Harvard architecture: separate memory buses for instructions and data, allowing accesses to take place concurrently. Where a Harvard architecture is used, instruction words for the processor may be a different bit size than the length of internal memory and registers; for example: 12-bit instructions used with 8-bit data registers.&lt;br /&gt;&lt;br /&gt;The decision of which peripheral to integrate is often difficult. The microcontroller vendors often trade operating frequencies and system design flexibility against time-to-market requirements from their customers and overall lower system cost. Manufacturers have to balance the need to minimize the chip size against additional functionality.&lt;br /&gt;&lt;br /&gt;Microcontroller architectures vary widely. Some designs include general-purpose microprocessor cores, with one or more ROM, RAM, or I/O functions integrated onto the package. Other designs are purpose built for control applications. A micro-controller instruction set usually has many instructions intended for bit-wise operations to make control programs more compact.[2] For example, a general purpose processor might require several instructions to test a bit in a register and branch if the bit is set, where a micro-controller could have a single instruction to provide that commonly-required function.&lt;br /&gt;&lt;br /&gt;Microcontrollers typically do not have a math coprocessor, so floating point arithmetic is performed by software.&lt;br /&gt;Volumes&lt;br /&gt;&lt;br /&gt;About 55% of all CPUs sold in the world are 8-bit microcontrollers and microprocessors. According to Semico, over four billion 8-bit microcontrollers were sold in 2006.[3]&lt;br /&gt;&lt;br /&gt;A typical home in a developed country is likely to have only four general-purpose microprocessors but around three dozen microcontrollers. A typical mid-range automobile has as many as 30 or more microcontrollers. They can also be found in many electrical device such as washing machines, microwave ovens, and telephones.&lt;br /&gt;A PIC 18F8720 microcontroller in an 80-pin TQFP package.&lt;br /&gt;&lt;br /&gt;Manufacturers have often produced special versions of their microcontrollers in order to help the hardware and software development of the target system. Originally these included EPROM versions that have a "window" on the top of the device through which program memory can be erased by ultraviolet light, ready for reprogramming after a programming ("burn") and test cycle. Since 1998, EPROM versions are rare and have been replaced by EEPROM and flash, which are easier to use (can be erased electronically) and cheaper to manufacture.&lt;br /&gt;&lt;br /&gt;Other versions may be available where the ROM is accessed as an external device rather than as internal memory, however these are becoming increasingly rare due to the widespread availability of cheap microcontroller programmers.&lt;br /&gt;&lt;br /&gt;The use of field-programmable devices on a microcontroller may allow field update of the firmware or permit late factory revisions to products that have been assembled but not yet shipped. Programmable memory also reduces the lead time required for deployment of a new product.&lt;br /&gt;&lt;br /&gt;Where hundreds of thousands of identical devices are required, using parts programmed at the time of manufacture can be an economical option. These 'mask programmed' parts have the program laid down in the same way as the logic of the chip, at the same time.&lt;br /&gt;[edit] Programming environments&lt;br /&gt;&lt;br /&gt;Microcontrollers were originally programmed only in assembly language, but various high-level programming languages are now also in common use to target microcontrollers. These languages are either designed specially for the purpose, or versions of general purpose languages such as the C programming language. Compilers for general purpose languages will typically have some restrictions as well as enhancements to better support the unique characteristics of microcontrollers. Some microcontrollers have environments to aid developing certain types of applications. Microcontroller vendors often make tools freely available to make it easier to adopt their hardware.&lt;br /&gt;&lt;br /&gt;Many microcontrollers are so quirky that they effectively require their own non-standard dialects of C, such as SDCC for the 8051, which prevent using standard tools (such as code libraries or static analysis tools) even for code unrelated to hardware features. Interpreters are often used to hide such low level quirks.&lt;br /&gt;&lt;br /&gt;Interpreter firmware is also available for some microcontrollers. For example, BASIC on the early microcontrollers Intel 8052[4]; BASIC and FORTH on the Zilog Z8[5] as well as some modern devices. Typically these interpreters support interactive programming.&lt;br /&gt;&lt;br /&gt;Simulators are available for some microcontrollers, such as in Microchip's MPLAB environment. These allow a developer to analyze what the behavior of the microcontroller and their program should be if they were using the actual part. A simulator will show the internal processor state and also that of the outputs, as well as allowing input signals to be generated. While on the one hand most simulators will be limited from being unable to simulate much other hardware in a system, they can exercise conditions that may otherwise be hard to reproduce at will in the physical implementation, and can be the quickest way to debug and analyze problems.&lt;br /&gt;&lt;br /&gt;Recent microcontrollers are often integrated with on-chip debug circuitry that when accessed by an in-circuit emulator via JTAG, allow debugging of the firmware with a debugger.&lt;br /&gt; Types of microcontrollers&lt;br /&gt;Wiki letter w.svg  This section requires expansion.&lt;br /&gt;See also: List of common microcontrollers&lt;br /&gt;&lt;br /&gt;As of 2008 there are several dozen microcontroller architectures and vendors including:&lt;br /&gt;&lt;br /&gt;    * 68HC11&lt;br /&gt;    * 8051&lt;br /&gt;    * ARM processors (from many vendors) using ARM7 or Cortex-M3 cores are generally microcontrollers&lt;br /&gt;    * STMicroelectronics STM8S (8-bit), ST10 (16-bit) and STM32 (32-bit)&lt;br /&gt;    * Atmel AVR (8-bit), AVR32 (32-bit), and AT91SAM&lt;br /&gt;    * Freescale ColdFire (32-bit) and S08 (8-bit)&lt;br /&gt;    * Hitachi H8, Hitachi SuperH&lt;br /&gt;    * Hyperstone E1/E2 (32-bit, First full integration of RISC and DSP on one processor core [1996] [1])&lt;br /&gt;    * MIPS (32-bit PIC32)&lt;br /&gt;    * NEC V850&lt;br /&gt;    * PIC (8-bit PIC16, PIC18, 16-bit dsPIC33 / PIC24)&lt;br /&gt;    * PowerPC ISE&lt;br /&gt;    * PSoC (Programmable System-on-Chip)&lt;br /&gt;    * Rabbit 2000&lt;br /&gt;    * Texas Instruments MSP430 (16-bit), C2000 (32-bit), and Stellaris (32-bit)&lt;br /&gt;    * Toshiba TLCS-870&lt;br /&gt;    * Zilog eZ8, eZ80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and many others, some of which are used in very narrow range of applications or are more like applications processors than microcontrollers. The microcontroller market is extremely fragmented, with numerous vendors, technologies, and markets. Note that many vendors sell (or have sold) multiple architectures.&lt;br /&gt;Interrupt latency&lt;br /&gt;&lt;br /&gt;In contrast to general-purpose computers, microcontrollers used in embedded systems often seek to optimize interrupt latency over instruction throughput. Issues include both reducing the latency, and making it be more predictable (to support real-time control).&lt;br /&gt;&lt;br /&gt;When an electronic device causes an interrupt, the intermediate results (registers) have to be saved before the software responsible for handling the interrupt can run. They must also be restored after that software is finished. If there are more registers, this saving and restoring process takes more time, increasing the latency. Ways to reduce such context/restore latency include having relatively few registers in their central processing units (undesirable because it slows down most non-interrupt processing substantially), or at least not having hardware save them all (hoping that the software doesn't then need to compensate by saving the rest "manually"). Another technique involves spending silicon gates on "shadow registers": one or more duplicate registers used only by the interrupt software, perhaps supporting a dedicated stack.&lt;br /&gt;&lt;br /&gt;Other factors affecting interrupt latency include:&lt;br /&gt;&lt;br /&gt;    * Cycles needed to complete current CPU activities. To minimize those costs, microcontrollers tend to have short pipelines (often three instructions or less), small write buffers, and ensure that longer instructions are continuable or restartable. RISC design principles ensure that most instructions take the same number of cycles, helping avoid the need for most such continuation/restart logic.&lt;br /&gt;    * The length of any critical section that needs to be interrupted. Entry to a critical section restricts concurrent data structure access. When a data structure must be accessed by an interrupt handler, the critical section must block that interrupt. Accordingly, interrupt latency is increased by however long that interrupt is blocked. When there are hard external constraints on system latency, developers often need tools to measure interrupt latencies and track down which critical sections cause slowdowns.&lt;br /&gt;          o One common technique just blocks all interrupts for the duration of the critical section. This is easy to implement, but sometimes critical sections get uncomfortably long.&lt;br /&gt;          o A more complex technique just blocks the interrupts that may trigger access to that data structure. This often based on interrupt priorities, which tend to not correspond well to the relevant system data structures. Accordingly, this technique is used mostly in very constrained environments.&lt;br /&gt;          o Processors may have hardware support for some critical sections. Examples include supporting atomic access to bits or bytes within a word, or other atomic access primitives like the LDREX/STREX exclusive access primitives introduced in the ARMv6 architecture.&lt;br /&gt;    * Interrupt nesting. Some microcontrollers allow higher priority interrupts to interrupt lower priority ones. This allows software to manage latency by giving time-critical interrupts higher priority (and thus lower and more predictable latency) than less-critical ones.&lt;br /&gt;    * Trigger rate. When interrupts occur back-to-back, microcontrollers may avoid an extra context save/restore cycle by a form of tail call optimization.&lt;br /&gt;&lt;br /&gt;Lower end microcontrollers tend to support fewer interrupt latency controls than higher end ones.&lt;br /&gt;History&lt;br /&gt;Wiki letter w.svg  This section requires expansion.&lt;br /&gt;&lt;br /&gt;The first single-chip microprocessor was the 4-bit Intel 4004 released in 1971, headed by Intels lead research scientist Hunter H. Hetfeld. With the Intel 8008 and more capable microprocessors available over the next several years.&lt;br /&gt;&lt;br /&gt;These however all required external chip(s) to implement a working system, raising total system cost, and making it impossible to economically computerise appliances.&lt;br /&gt;&lt;br /&gt;The first computer system on a chip optimised for control applications - microcontroller was the Intel 8048 released in 1975[citation needed], with both RAM and ROM on the same chip. This chip would find its way into over one billion PC keyboards, and other numerous applications. At this time Intels President, Luke J. Valenter, stated that the (Microcontroller) was one of the most successful in the companies history, and expanded the division's budget over 25%.&lt;br /&gt;&lt;br /&gt;Most microcontrollers at this time had two variants. One had an erasable EEPROM program memory, which was significantly more expensive than the PROM variant which was only programmable once.&lt;br /&gt;&lt;br /&gt;In 1993, the introduction of EEPROM memory allowed microcontrollers (beginning with the Microchip PIC16x84) [2][citation needed]) to be electrically erased quickly without an expensive package as required for EPROM, allowing both rapid prototyping, and In System Programming.&lt;br /&gt;&lt;br /&gt;The same year, Atmel introduced the first microcontroller using Flash memory. [6].&lt;br /&gt;&lt;br /&gt;Other companies rapidly followed suit, with both memory types.&lt;br /&gt;&lt;br /&gt;Cost has plummeted over time, with the cheapest 8-bit microcontrollers being available for under $0.25 in quantity (thousands) in 2009, and some 32-bit microcontrollers around $1 for similar quantities.&lt;br /&gt;&lt;br /&gt;Nowadays microcontrollers are low cost and readily available for hobbyists, with large online communities around certain processors.&lt;br /&gt;&lt;br /&gt;In the future, MRAM could potentially be used in microcontrollers as it has infinite endurance and its incremental semiconductor wafer process cost is relatively low.&lt;br /&gt;Microcontroller embedded memory technology&lt;br /&gt;&lt;br /&gt;Since the emergence of microcontrollers, many different memory technologies have been used. Almost all microcontrollers have at least two different kinds of memory, a non-volatile memory for storing firmware and a read-write memory for temporary data.&lt;br /&gt; Data&lt;br /&gt;&lt;br /&gt;From the earliest microcontrollers to today, six-transistor SRAM is almost always used as the read/write working memory, with a few more transistors per bit used in the register file. MRAM could potentially replace it as it is 4-10 times denser which would make it more cost effective.&lt;br /&gt;&lt;br /&gt;In addition to the SRAM, some microcontrollers also have internal EEPROM for data storage; and even ones that don't have any (or don't have enough) are often connected to external serial EEPROM chip (such as the BASIC Stamp) or external serial flash memory chip.&lt;br /&gt;&lt;br /&gt;A few recent microcontrollers beginning in 2003 have "self-programmable" flash memory[7].&lt;br /&gt;Firmware&lt;br /&gt;&lt;br /&gt;The earliest microcontrollers used hard-wired or mask ROM to store firmware. Later microcontrollers (such as the early versions of the Freescale 68HC11 and early PIC microcontrollers) had quartz windows that allowed ultraviolet light in to erase the EPROM.&lt;br /&gt;&lt;br /&gt;The Microchip PIC16C84, introduced in 1993,[8] was the first microcontroller to use EEPROM to store firmware.&lt;br /&gt;&lt;br /&gt;Also in 1993, Atmel introduced the first microcontroller using NOR Flash memory to store firmware.[7]&lt;br /&gt;&lt;br /&gt;PSoC microcontrollers, introduced in 2002, store firmware in SONOS flash memory.&lt;br /&gt;&lt;br /&gt;MRAM could potentially be used to store firmware.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-8230327929329225367?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/8230327929329225367/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/microcontroller.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/8230327929329225367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/8230327929329225367'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/microcontroller.html' title='Microcontroller'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-2343452168774279893</id><published>2010-05-14T22:28:00.000-07:00</published><updated>2010-05-16T01:42:06.884-07:00</updated><title type='text'>Network switch</title><content type='html'>&lt;h1 class="firstHeading" id="firstHeading"&gt;Network switch&lt;/h1&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Ethernet_switch_Atlantis_A02-F5P_5_ports_frontend.jpg"&gt;&lt;img alt="" class="thumbimage" height="188" src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Ethernet_switch_Atlantis_A02-F5P_5_ports_frontend.jpg/250px-Ethernet_switch_Atlantis_A02-F5P_5_ports_frontend.jpg" width="250" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Ethernet_switch_Atlantis_A02-F5P_5_ports_frontend.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Typical &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Small_office" title="Small  office"&gt;SOHO&lt;/a&gt; network switch.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Ethernet_switch_Atlantis_A02-F5P_5_ports_backend.jpg"&gt;&lt;img alt="" class="thumbimage" height="186" src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Ethernet_switch_Atlantis_A02-F5P_5_ports_backend.jpg/250px-Ethernet_switch_Atlantis_A02-F5P_5_ports_backend.jpg" width="250" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Ethernet_switch_Atlantis_A02-F5P_5_ports_backend.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;Back view of Atlantis network switch with &lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt;  &lt;a href="http://en.wikipedia.org/wiki/Computer_port_%28hardware%29" title="Computer port (hardware)"&gt;ports&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;A &lt;b&gt;network switch&lt;/b&gt; or &lt;b&gt;switching hub&lt;/b&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Computer_networking_device" title="Computer networking device"&gt;computer networking device&lt;/a&gt; that  connects &lt;a href="http://en.wikipedia.org/wiki/Network_segment" title="Network segment"&gt;network segments&lt;/a&gt;.&lt;br /&gt;The term commonly refers to a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_bridge" title="Network  bridge"&gt;network bridge&lt;/a&gt; that processes and routes  data at the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Data_link_layer" title="Data link layer"&gt;data link layer&lt;/a&gt; (layer  2) of the &lt;a href="http://en.wikipedia.org/wiki/OSI_model" title="OSI  model"&gt;OSI model&lt;/a&gt;. Switches that additionally process data at the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_layer" title="Network layer"&gt;network layer&lt;/a&gt; (layer 3 and above) are often  referred to as Layer 3 switches or &lt;a href="http://en.wikipedia.org/wiki/Multilayer_switch" title="Multilayer  switch"&gt;multilayer switches&lt;/a&gt;.&lt;br /&gt;The term &lt;b&gt;network switch&lt;/b&gt; does not generally encompass  unintelligent or passive network devices such as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_hub" title="Network hub"&gt;hubs&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Repeaters" title="Repeaters"&gt;repeaters&lt;/a&gt;.&lt;br /&gt;The first &lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt; switch was introduced by &lt;a href="http://en.wikipedia.org/wiki/Kalpana_%28company%29" title="Kalpana  (company)"&gt;Kalpana&lt;/a&gt; in 1990.&lt;sup class="reference" id="cite_ref-0"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-0"&gt;[1]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;table class="toc" id="toc"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2&gt;&lt;span class="mw-headline" id="Function"&gt;Function&lt;/span&gt;&lt;/h2&gt;The &lt;i&gt;network switch&lt;/i&gt;, &lt;i&gt;packet switch&lt;/i&gt; (or just &lt;i&gt;switch&lt;/i&gt;)  plays an integral part in most &lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt;  &lt;a href="http://en.wikipedia.org/wiki/Local_area_network" title="Local  area network"&gt;local area networks&lt;/a&gt; or &lt;i&gt;LANs&lt;/i&gt;. Mid-to-large sized  LANs contain a number of linked &lt;a href="http://en.wikipedia.org/wiki/Network_switch#Configuration_options" title="Network switch"&gt;managed&lt;/a&gt; switches. &lt;a href="http://en.wikipedia.org/wiki/Small_office/home_office" title="Small office/home office"&gt;Small office/home office&lt;/a&gt; (SOHO)  applications typically use a single switch, or an all-purpose &lt;a href="http://en.wikipedia.org/wiki/Technological_convergence" title="Technological convergence"&gt;converged device&lt;/a&gt; such as &lt;a href="http://en.wikipedia.org/wiki/Residential_gateway" title="Residential gateway"&gt;gateway&lt;/a&gt; access to small office/home &lt;a href="http://en.wikipedia.org/wiki/Broadband" title="Broadband"&gt;broadband&lt;/a&gt;  services such as &lt;a href="http://en.wikipedia.org/wiki/Residential_gateway" title="Residential gateway"&gt;DSL router&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Cable_modem" title="Cable modem"&gt;cable&lt;/a&gt;  &lt;a href="http://en.wikipedia.org/wiki/Wi-Fi#Wireless_Router" title="Wi-Fi"&gt;Wi-Fi router&lt;/a&gt;. In most of these cases, the end user  device contains a &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;router&lt;/a&gt; and components that interface to the  particular physical broadband technology, as in the Linksys 8-port and  48-port devices. User devices may also include a telephone interface to &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/VoIP" title="VoIP"&gt;VoIP&lt;/a&gt;.&lt;br /&gt;In the context of a standard 10/100 Ethernet switch, a switch  operates at the data-link layer of the &lt;a href="http://en.wikipedia.org/wiki/OSI_model" title="OSI model"&gt;OSI  model&lt;/a&gt; to create a different collision domain per switch port. If you  have 4 computers A/B/C/D on 4 switch ports, then A and B can transfer  data between them as well as C and D at the same time, and they will  never interfere with each others' conversations. In the case of a "hub"  then they would all have to share the bandwidth and run in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Half_duplex" title="Half duplex"&gt;Half duplex&lt;/a&gt;. The result is that there would be  collisions and retransmissions. Using a switch is called  micro-segmentation. It allows you to have dedicated bandwidth on point  to point connections with every computer and to therefore run in &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Full_duplex" title="Full duplex"&gt;Full duplex&lt;/a&gt; with no collisions.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Role_of_switches_in_networks"&gt;Role of switches  in networks&lt;/span&gt;&lt;/h2&gt;Switches may operate at one or more &lt;a href="http://en.wikipedia.org/wiki/OSI_model" title="OSI model"&gt;OSI&lt;/a&gt;  layers, including &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Physical_layer" title="Physical layer"&gt;physical&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Data_link_layer" title="Data link  layer"&gt;data link&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_layer" title="Network layer"&gt;network&lt;/a&gt;, or &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Transport_layer" title="Transport  layer"&gt;transport (i.e., end-to-end)&lt;/a&gt;. A device  that operates simultaneously at more than one of these layers is known  as a &lt;a href="http://en.wikipedia.org/wiki/Multilayer_switch" title="Multilayer switch"&gt;multilayer switch&lt;/a&gt;.&lt;br /&gt;In switches intended for commercial use, built-in or modular  interfaces make it possible to connect different types of networks,  including &lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Fibre_Channel" title="Fibre Channel"&gt;Fibre  Channel&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Asynchronous_Transfer_Mode" title="Asynchronous Transfer Mode"&gt;ATM&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/ITU-T" title="ITU-T"&gt;ITU-T&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/G.hn" title="G.hn"&gt;G.hn&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/802.11" title="802.11"&gt;802.11&lt;/a&gt;. This connectivity can be at any of the  layers mentioned. While Layer 2 functionality is adequate for  speed-shifting within one technology, interconnecting technologies such  as &lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt;  and &lt;a href="http://en.wikipedia.org/wiki/Token_ring" title="Token  ring"&gt;token ring&lt;/a&gt; are easier at Layer 3.&lt;br /&gt;Interconnection of different Layer 3 networks is done by &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;routers&lt;/a&gt;.  If there are any features that characterize "Layer-3 switches" as  opposed to general-purpose routers, it tends to be that they are  optimized, in larger switches, for high-density Ethernet connectivity.&lt;br /&gt;In some service provider and other environments where there is a need  for a great deal of analysis of network performance and security,  switches may be connected between WAN routers as places for analytic  modules. Some vendors provide &lt;a href="http://en.wikipedia.org/wiki/Firewall_%28computing%29" title="Firewall (computing)"&gt;firewall&lt;/a&gt;,&lt;sup class="reference" id="cite_ref-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-1"&gt;[2]&lt;/a&gt;&lt;/sup&gt;&lt;sup class="reference" id="cite_ref-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-2"&gt;[3]&lt;/a&gt;&lt;/sup&gt;  network &lt;a href="http://en.wikipedia.org/wiki/Intrusion_detection" title="Intrusion detection"&gt;intrusion detection&lt;/a&gt;,&lt;sup class="reference" id="cite_ref-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-3"&gt;[4]&lt;/a&gt;&lt;/sup&gt;  and performance analysis modules that can plug into switch ports. Some  of these functions may be on combined modules.&lt;sup class="reference" id="cite_ref-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-4"&gt;[5]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;In other cases, the switch is used to create a mirror image of data  that can go to an external device. Since most switch port mirroring  provides only one mirrored stream, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_hub" title="Network hub"&gt;network hubs&lt;/a&gt; can be useful for fanning out data  to several read-only analyzers, such as &lt;a href="http://en.wikipedia.org/wiki/Intrusion_detection_system" title="Intrusion detection system"&gt;intrusion detection systems&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Packet_sniffer" title="Packet  sniffer"&gt;packet sniffers&lt;/a&gt;.&lt;br /&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer-specific_functionality"&gt;Layer-specific  functionality&lt;/span&gt;&lt;/h2&gt;&lt;div class="rellink relarticle mainarticle"&gt;Main article: &lt;a href="http://en.wikipedia.org/wiki/Multilayer_switch" title="Multilayer  switch"&gt;Multilayer switch&lt;/a&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Smartswitch6000.jpg"&gt;&lt;img alt="" class="thumbimage" height="257" src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Smartswitch6000.jpg/250px-Smartswitch6000.jpg" width="250" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Smartswitch6000.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A modular network switch with three network modules (a total of 24  Ethernet and 14 Fast Ethernet ports) and one power supply.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;While switches may learn about topologies at many &lt;a href="http://en.wikipedia.org/wiki/OSI_model" title="OSI model"&gt;layers&lt;/a&gt;,  and forward at one or more layers, they do tend to have common  features. Other than for high-performance applications, modern  commercial switches use primarily Ethernet interfaces, which can have  different input and output speeds of 10, 100, 1000 or 10,000 &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Megabits_per_second" title="Megabits  per second"&gt;megabits per second&lt;/a&gt;. Switch ports  almost always default to &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Full_duplex" title="Full duplex"&gt;Full duplex&lt;/a&gt; operation, unless there is a  requirement for interoperability with devices that are strictly &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Half_duplex" title="Half duplex"&gt;Half duplex&lt;/a&gt;. &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Half_duplex" title="Half duplex"&gt;Half duplex&lt;/a&gt; means that the device can only send  or receive at any given time, whereas &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Full_duplex" title="Full duplex"&gt;Full duplex&lt;/a&gt; can send and receive at the same  time.&lt;br /&gt;At any layer, a modern switch may implement &lt;a href="http://en.wikipedia.org/wiki/Power_over_Ethernet" title="Power  over Ethernet"&gt;power over Ethernet&lt;/a&gt; (PoE), which avoids the need for  attached devices, such as an IP telephone or &lt;a href="http://en.wikipedia.org/wiki/Wireless_access_point" title="Wireless access point"&gt;wireless access point&lt;/a&gt;, to have a  separate power supply. Since switches can have redundant power circuits  connected to &lt;a href="http://en.wikipedia.org/wiki/Uninterruptible_power_supply" title="Uninterruptible power supply"&gt;uninterruptible power supplies&lt;/a&gt;,  the connected device can continue operating even when regular office  power fails.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer-1_hubs_versus_higher-layer_switches"&gt;Layer-1 hubs versus  higher-layer switches&lt;/span&gt;&lt;/h3&gt;A &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_hub" title="Network  hub"&gt;network hub&lt;/a&gt;, or repeater, is a fairly  unsophisticated network device. Hubs do not manage any of the traffic  that comes through them. Any packet entering a &lt;a href="http://en.wikipedia.org/wiki/Computer_port_%28hardware%29" title="Computer port (hardware)"&gt;port&lt;/a&gt; is broadcast out or "repeated"  on every other port, except for the port of entry. Since every packet  is repeated on every other port, packet &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Collision_%28telecommunications%29" title="Collision (telecommunications)"&gt;collisions&lt;/a&gt;  result, which slows down the network.&lt;br /&gt;There are specialized applications where a hub can be useful, such as  copying traffic to multiple network sensors. High end switches have a  feature which does the same thing called &lt;a href="http://en.wikipedia.org/wiki/Port_mirroring" title="Port  mirroring"&gt;port mirroring&lt;/a&gt;. There is no longer any significant price  difference between a hub and a low-end switch.&lt;sup class="reference" id="cite_ref-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-5"&gt;[6]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer_2"&gt;Layer 2&lt;/span&gt;&lt;/h3&gt;A &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_bridge" title="Network bridge"&gt;network bridge&lt;/a&gt;, operating  at the &lt;a href="http://en.wikipedia.org/wiki/Media_Access_Control" title="Media Access Control"&gt;Media Access Control&lt;/a&gt; (MAC) sublayer of  the data link layer, may interconnect a small number of devices in a  home or office. This is a trivial case of bridging, in which the bridge  learns the &lt;a href="http://en.wikipedia.org/wiki/MAC_address" title="MAC  address"&gt;MAC address&lt;/a&gt; of each connected device. Single bridges also  can provide extremely high performance in specialized applications such  as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Storage_area_networks" title="Storage area networks"&gt;storage area networks&lt;/a&gt;.&lt;br /&gt;Classic bridges may also interconnect using a &lt;a href="http://en.wikipedia.org/wiki/Spanning_tree_protocol" title="Spanning tree protocol"&gt;spanning tree protocol&lt;/a&gt; that disables  links so that the resulting local area network is a &lt;a href="http://en.wikipedia.org/wiki/Tree_%28graph_theory%29" title="Tree  (graph theory)"&gt;tree&lt;/a&gt; without loops. In contrast to routers, spanning  tree bridges must have topologies with only one active path between two  points. The older &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.1D" title="IEEE 802.1D"&gt;IEEE 802.1D&lt;/a&gt; spanning tree protocol could be  quite slow, with forwarding stopping for 30 seconds while the spanning  tree would reconverge. A &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Rapid_Spanning_Tree_Protocol" title="Rapid Spanning Tree Protocol"&gt;Rapid Spanning  Tree Protocol&lt;/a&gt; was introduced as IEEE &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/802.1w" title="802.1w"&gt;802.1w&lt;/a&gt;, but the newest edition of &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.1D" title="IEEE 802.1D"&gt;IEEE  802.1D&lt;/a&gt;-2004, adopts the 802.1w extensions as the base standard. The  IETF is specifying the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/TRILL_%28Computer_Networking%29" title="TRILL (Computer Networking)"&gt;TRILL&lt;/a&gt;  protocol, which is the application of link-state routing technology to  the layer-2 bridging problem. Devices which implement TRILL, called &lt;a href="http://en.wikipedia.org/wiki/Routing_Bridge" title="Routing  Bridge"&gt;RBridges&lt;/a&gt;, combine the best features of both routers and  bridges.&lt;br /&gt;While "layer 2 switch" remains more of a marketing term than a  technical term,&lt;sup class="Template-Fact" style="white-space: nowrap;" title="This claim needs  references to reliable sources from January 2009"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; the  products that were introduced as "switches" tended to use &lt;a href="http://en.wikipedia.org/wiki/Microsegmentation" title="Microsegmentation"&gt;microsegmentation&lt;/a&gt; and &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Full_duplex" title="Full duplex"&gt;Full duplex&lt;/a&gt; to prevent collisions among devices  connected to Ethernets. By using an internal &lt;a href="http://en.wikipedia.org/wiki/Forwarding_plane" title="Forwarding  plane"&gt;forwarding plane&lt;/a&gt; much faster than any interface, they give  the impression of simultaneous paths among multiple devices.&lt;br /&gt;Once a bridge learns the topology through a spanning tree protocol,  it forwards data link layer frames using a layer 2 forwarding method.  There are four forwarding methods a bridge can use, of which the second  through fourth method were performance-increasing methods when used on  "switch" products with the same input and output port speeds:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Store_and_forward" title="Store and forward"&gt;Store and forward&lt;/a&gt;: The switch buffers and,  typically, performs a &lt;a href="http://en.wikipedia.org/wiki/Checksum" title="Checksum"&gt;checksum&lt;/a&gt; on each frame before forwarding it on.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Cut-through_switching" title="Cut-through switching"&gt;Cut through&lt;/a&gt;: The switch reads only up  to the frame's hardware address before starting to forward it. There is  no error checking with this method.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Fragment_free" title="Fragment  free"&gt;Fragment free&lt;/a&gt;: A method that attempts to retain the benefits  of both "store and forward" and "cut through". Fragment free checks the  first 64 &lt;a href="http://en.wikipedia.org/wiki/Byte" title="Byte"&gt;bytes&lt;/a&gt;  of the &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Data_frame" title="Data  frame"&gt;frame&lt;/a&gt;, where &lt;a href="http://en.wikipedia.org/wiki/Address_space" title="Address space"&gt;addressing&lt;/a&gt;  information is stored. According to Ethernet specifications, collisions  should be detected during the first 64 bytes of the frame, so frames  that are in error because of a collision will not be forwarded. This way  the frame will always reach its intended destination. Error checking of  the actual data in the packet is left for the end device in Layer 3 or  Layer 4 (&lt;a href="http://en.wikipedia.org/wiki/OSI_model" title="OSI  model"&gt;OSI&lt;/a&gt;), typically a &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;router&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Adaptive_switching" title="Adaptive switching"&gt;Adaptive switching&lt;/a&gt;: A method of  automatically switching between the other three modes.&lt;/li&gt;&lt;/ol&gt;Cut-through switches have to fall back to store and forward if the  outgoing port is busy at the time the packet arrives. While there are  specialized applications, such as storage area networks, where the input  and output interfaces are the same speed, this is rarely the case in  general LAN applications. In LANs, a switch used for end user access  typically concentrates lower speed (e.g., 10/100 Mbit/s) into a higher  speed (at least 1 Gbit/s). Alternatively, a switch that provides access  to server ports usually connects to them at a much higher speed than is  used by end user devices.Cypress Semiconductor design and manufacturing  company along with TPACK offers the flexibility to cope with various  system architecture for Ethernet switches through reference design. The  reference design involves TPX4004 and CY7C15632KV18 72-Mbit SRAMs.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer_3"&gt;Layer 3&lt;/span&gt;&lt;/h3&gt;Within the confines of the Ethernet physical layer, a layer 3 switch  can perform some or all of the functions normally performed by a &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;router&lt;/a&gt;. A  true router is able to forward traffic from one type of network  connection (e.g., &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Digital_signal_1" title="Digital  signal 1"&gt;T1&lt;/a&gt;, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Digital_subscriber_line" title="Digital subscriber line"&gt;DSL&lt;/a&gt;) to another  (e.g., Ethernet, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/WiFi" title="WiFi"&gt;WiFi&lt;/a&gt;).&lt;br /&gt;The most common layer-3 capability is awareness of &lt;a href="http://en.wikipedia.org/wiki/IP_multicast" title="IP multicast"&gt;IP  multicast&lt;/a&gt;. With this awareness, a layer-3 switch can increase  efficiency by delivering the traffic of a multicast group only to ports  where the attached device has signaled that it wants to listen to that  group. If a switch is not aware of multicasting and broadcasting, frames  are also forwarded on all ports of each &lt;a href="http://en.wikipedia.org/wiki/Broadcast_domain" title="Broadcast  domain"&gt;broadcast domain&lt;/a&gt;, but in the case of IP multicast this  causes inefficient use of bandwidth. To work around this problem some  switches implement &lt;a href="http://en.wikipedia.org/wiki/IGMP_snooping" title="IGMP snooping"&gt;IGMP snooping&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-6"&gt;[7]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer_4"&gt;Layer 4&lt;/span&gt;&lt;/h3&gt;While the exact meaning of the term Layer-4 switch is  vendor-dependent, it almost always starts with a capability for &lt;a href="http://en.wikipedia.org/wiki/Network_address_translation" title="Network address translation"&gt;network address translation&lt;/a&gt;, but  then adds some type of &lt;a href="http://en.wikipedia.org/wiki/Load_balancing_%28computing%29" title="Load balancing (computing)"&gt;load distribution&lt;/a&gt; based on &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" title="Transmission Control Protocol"&gt;TCP&lt;/a&gt; sessions.&lt;sup class="reference" id="cite_ref-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-7"&gt;[8]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;The device may include a stateful &lt;a href="http://en.wikipedia.org/wiki/Firewall_%28computing%29" title="Firewall (computing)"&gt;firewall&lt;/a&gt;, a &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/VPN" title="VPN"&gt;VPN&lt;/a&gt;  concentrator, or be an &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/IPSec" title="IPSec"&gt;IPSec&lt;/a&gt; security gateway.&lt;br /&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Layer_7"&gt;Layer 7&lt;/span&gt;&lt;/h3&gt;Layer 7 switches may distribute loads based on &lt;a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator" title="Uniform Resource Locator"&gt;URL&lt;/a&gt; or by some  installation-specific technique to recognize application-level  transactions. A Layer-7 switch may include a &lt;a href="http://en.wikipedia.org/wiki/Web_cache" title="Web cache"&gt;web  cache&lt;/a&gt; and participate in a &lt;a href="http://en.wikipedia.org/wiki/Content_delivery_network" title="Content delivery network"&gt;content delivery network&lt;/a&gt;.&lt;sup class="reference" id="cite_ref-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-8"&gt;[9]&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 262px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:24-port_3Com_switch.JPG"&gt;&lt;img alt="" class="thumbimage" height="195" src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/24-port_3Com_switch.JPG/260px-24-port_3Com_switch.JPG" width="260" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:24-port_3Com_switch.JPG" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://en.wikipedia.org/wiki/19-inch_rack" title="19-inch rack"&gt;Rack-mounted&lt;/a&gt;  24-port &lt;a href="http://en.wikipedia.org/wiki/3Com" title="3Com"&gt;3Com&lt;/a&gt;  switch&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Types_of_switches"&gt;Types of switches&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Form_factor"&gt;Form factor&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Desktop, not mounted in an enclosure, typically intended to be used  in a home or office environment outside of a wiring closet&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/19-inch_rack" title="19-inch  rack"&gt;Rack&lt;/a&gt; mounted&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Chassis" title="Chassis"&gt;Chassis&lt;/a&gt;  — with swappable "switch module" cards. e.g. Alcatel's OmniSwitch 7000;  Cisco &lt;a href="http://en.wikipedia.org/wiki/Catalyst_switch" title="Catalyst switch"&gt;Catalyst switch&lt;/a&gt; 4500 and 6500; 3Com 7700,  7900E, 8800.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/DIN_rail" title="DIN rail"&gt;DIN  rail&lt;/a&gt; mounted, normally seen in industrial environments or panels&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Configuration_options"&gt;Configuration options&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Unmanaged&lt;/i&gt; switches — These switches have no configuration  interface or options. They are &lt;a href="http://en.wikipedia.org/wiki/Plug_and_play" title="Plug and play"&gt;plug  and play&lt;/a&gt;. They are typically the least expensive switches, found in  home, &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/SOHO_network" title="SOHO  network"&gt;SOHO&lt;/a&gt;, or small businesses. They can be  desktop or rack mounted.&lt;/li&gt;&lt;li&gt;&lt;i&gt;Managed&lt;/i&gt; switches — These switches have one or more methods to  modify the operation of the switch. Common management methods include: a  &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Serial_console" title="Serial  console"&gt;serial console&lt;/a&gt; or command line  interface accessed via &lt;a href="http://en.wikipedia.org/wiki/Telnet" title="Telnet"&gt;telnet&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Secure_Shell" title="Secure Shell"&gt;Secure  Shell&lt;/a&gt;, an embedded &lt;a href="http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol" title="Simple Network Management Protocol"&gt;Simple Network Management  Protocol&lt;/a&gt; (SNMP) agent allowing management from a remote console or  management station, or a web interface for management from a web  browser. Examples of configuration changes that one can do from a  managed switch include: enable features such as &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Spanning_Tree_Protocol" title="Spanning Tree Protocol"&gt;Spanning Tree  Protocol&lt;/a&gt;, set &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Transmission_rate" title="Transmission rate"&gt;port speed&lt;/a&gt;, create or  modify &lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN" title="Virtual  LAN"&gt;Virtual LANs&lt;/a&gt; (VLANs), etc. Two sub-classes of managed switches  are marketed today: &lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Smart&lt;/i&gt; (or intelligent) switches — These are managed switches  with a limited set of management features. Likewise "web-managed"  switches are switches which fall in a market niche between unmanaged and  managed. For a price much lower than a fully managed switch they  provide a web interface (and usually no CLI access) and allow  configuration of basic settings, such as VLANs, port-speed and duplex.&lt;sup class="reference" id="cite_ref-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-9"&gt;[10]&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&lt;li&gt;&lt;i&gt;Enterprise Managed&lt;/i&gt; (or fully managed) switches — These have a  full set of management features, including Command Line Interface, SNMP  agent, and web interface. They may have additional features to  manipulate configurations, such as the ability to display, modify,  backup and restore configurations. Compared with smart switches,  enterprise switches have more features that can be customized or  optimized, and are generally more expensive than "smart" switches.  Enterprise switches are typically found in networks with larger number  of switches and connections, where centralized management is a  significant savings in administrative time and effort. A &lt;a href="http://en.wikipedia.org/wiki/Stackable_switch" title="Stackable  switch"&gt;stackable switch&lt;/a&gt; is a version of enterprise-managed switch.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Traffic_monitoring_on_a_switched_network"&gt;Traffic  monitoring on a switched network&lt;/span&gt;&lt;/h4&gt;Unless port mirroring or other methods such as &lt;a href="http://en.wikipedia.org/wiki/RMON" title="RMON"&gt;RMON&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/SMON" title="SMON"&gt;SMON&lt;/a&gt; are  implemented in a switch,&lt;sup class="reference" id="cite_ref-10"&gt;&lt;a href="http://en.wikipedia.org/wiki/Network_switch#cite_note-10"&gt;[11]&lt;/a&gt;&lt;/sup&gt;  it is difficult to monitor traffic that is bridged using a switch  because all ports are isolated until one transmits data, and even then  only the sending and receiving ports can see the traffic. These  monitoring features rarely are present on consumer-grade switches.&lt;br /&gt;Two popular methods that are specifically designed to allow a network  analyst to monitor traffic are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Port_mirroring" title="Port  mirroring"&gt;Port mirroring&lt;/a&gt; — the switch sends a copy of network  packets to a monitoring network connection.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/SMON" title="SMON"&gt;SMON&lt;/a&gt; —  "Switch Monitoring" is described by &lt;a class="external  mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc2613"&gt;RFC 2613&lt;/a&gt; and is a protocol for controlling  facilities such as port mirroring.&lt;/li&gt;&lt;/ul&gt;Another method to monitor may be to connect a Layer-1 hub between the  monitored device and its switch port. This will induce minor delay, but  will provide multiple interfaces that can be used to monitor the  individual switch port.&lt;br /&gt;&lt;h4&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Typical_switch_management_features"&gt;Typical  switch management features&lt;/span&gt;&lt;/h4&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Linksys48portswitch.jpg"&gt;&lt;img alt="" class="thumbimage" height="257" src="http://upload.wikimedia.org/wikipedia/en/thumb/5/5f/Linksys48portswitch.jpg/250px-Linksys48portswitch.jpg" width="250" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Linksys48portswitch.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://en.wikipedia.org/wiki/Linksys" title="Linksys"&gt;Linksys&lt;/a&gt;  48-port switch&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="thumb tright"&gt;&lt;div class="thumbinner" style="width: 222px;"&gt;&lt;a class="image" href="http://en.wikipedia.org/wiki/File:Switch-and-nest.jpg"&gt;&lt;img alt="" class="thumbimage" height="165" src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Switch-and-nest.jpg/220px-Switch-and-nest.jpg" width="220" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div class="thumbcaption"&gt;&lt;div class="magnify"&gt;&lt;a class="internal" href="http://en.wikipedia.org/wiki/File:Switch-and-nest.jpg" title="Enlarge"&gt;&lt;img alt="" height="11" src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png" width="15" /&gt;&lt;/a&gt;&lt;/div&gt;A rack-mounted switch with network cables&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Turn some particular port range on or off&lt;/li&gt;&lt;li&gt;Link speed and &lt;a href="http://en.wikipedia.org/wiki/Duplex_%28telecommunications%29" title="Duplex (telecommunications)"&gt;duplex&lt;/a&gt; settings&lt;/li&gt;&lt;li&gt;Priority settings for ports&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/MAC_filtering" title="MAC  filtering"&gt;MAC filtering&lt;/a&gt; and other types of "port security" features  which prevent &lt;a href="http://en.wikipedia.org/wiki/MAC_flooding" title="MAC flooding"&gt;MAC flooding&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Use of &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Spanning_Tree_Protocol" title="Spanning Tree Protocol"&gt;Spanning Tree  Protocol&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol" title="Simple Network Management Protocol"&gt;SNMP&lt;/a&gt; monitoring of device  and link health&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Port_mirroring" title="Port  mirroring"&gt;Port mirroring&lt;/a&gt; (also known as: port monitoring, spanning  port, SPAN port, roving analysis port or link mode port)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Link_aggregation" title="Link  aggregation"&gt;Link aggregation&lt;/a&gt; (also known as &lt;i&gt;bonding&lt;/i&gt;, &lt;i&gt;trunking&lt;/i&gt;  or &lt;i&gt;teaming&lt;/i&gt;)&lt;/li&gt;&lt;li&gt;VLAN settings&lt;/li&gt;&lt;li&gt;&lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/802.1X" title="802.1X"&gt;802.1X&lt;/a&gt; &lt;a class="mw-redirect" href="http://en.wikipedia.org/wiki/Network_access_control" title="Network access control"&gt;network access  control&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/IGMP_snooping" title="IGMP  snooping"&gt;IGMP snooping&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://en.wikipedia.org/wiki/Link_aggregation" title="Link  aggregation"&gt;Link aggregation&lt;/a&gt; allows the use of multiple ports for  the same connection achieving higher data transfer speeds. Creating  VLANs can serve security and performance goals by reducing the size of  the &lt;a href="http://en.wikipedia.org/wiki/Broadcast_domain" title="Broadcast domain"&gt;broadcast domain&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-2343452168774279893?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/2343452168774279893/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/network-switch.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2343452168774279893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/2343452168774279893'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/network-switch.html' title='Network switch'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-5413290190749663531</id><published>2010-05-14T22:27:00.000-07:00</published><updated>2010-05-14T22:28:10.017-07:00</updated><title type='text'>Network address translation ( NAT )</title><content type='html'>&lt;h1 id="firstHeading" class="firstHeading"&gt;Network address translation&lt;/h1&gt;    &lt;!-- /firstHeading --&gt;    &lt;!-- bodyContent --&gt;         &lt;!-- tagline --&gt;&lt;p&gt;In &lt;a href="http://en.wikipedia.org/wiki/Computer_network" title="Computer network"&gt;computer networking&lt;/a&gt;, &lt;b&gt;network address  translation&lt;/b&gt; (NAT) is the process of modifying &lt;a href="http://en.wikipedia.org/wiki/Network_address" title="Network  address"&gt;network address&lt;/a&gt; information in datagram (IP) packet headers  while in transit across a traffic &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;routing device&lt;/a&gt;  for the purpose of remapping a given &lt;a href="http://en.wikipedia.org/wiki/Address_space" title="Address space"&gt;address  space&lt;/a&gt; into another.&lt;/p&gt; &lt;p&gt;Most often today, NAT is used in conjunction with &lt;i&gt;network  masquerading&lt;/i&gt; (or &lt;i&gt;IP masquerading&lt;/i&gt;) which is a technique that  hides an entire address space, usually consisting of &lt;a href="http://en.wikipedia.org/wiki/Private_network" title="Private  network"&gt;private network&lt;/a&gt; addresses (&lt;a href="http://tools.ietf.org/html/rfc1918" class="external  mw-magiclink-rfc"&gt;RFC 1918&lt;/a&gt;), behind a single IP address in another,  often public address space. This mechanism is implemented in a &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;routing device&lt;/a&gt;  that uses &lt;a href="http://en.wikipedia.org/wiki/Stateful_firewall" title="Stateful firewall"&gt;stateful&lt;/a&gt; translation tables to map the  "hidden" addresses into a single address and then rewrites the outgoing &lt;a href="http://en.wikipedia.org/wiki/Internet_Protocol" title="Internet  Protocol"&gt;Internet Protocol&lt;/a&gt; (IP) packets on exit so that they appear  to originate from the router. In the reverse communications path,  responses are mapped back to the originating IP address using the rules  ("state") stored in the translation tables. The translation table rules  established in this fashion are flushed after a short period without new  traffic refreshing their state.&lt;/p&gt; &lt;p&gt;As described, the method enables communication through the router  only when the conversation originates in the masqueraded network, since  this establishes the translation tables. For example, a web browser in  the masqueraded network can browse a website outside, but a web browser  outside could not browse a web site in the masqueraded network. However,  most NAT devices today allow the network administrator to configure  translation table entries for permanent use. This feature is often  referred to as "static NAT" or &lt;a href="http://en.wikipedia.org/wiki/Port_forwarding" title="Port  forwarding"&gt;port forwarding&lt;/a&gt; and allows traffic originating in the  'outside' network to reach designated hosts in the masqueraded network.&lt;/p&gt; &lt;p&gt;Because of the popularity of this technique (see below), the term &lt;i&gt;NAT&lt;/i&gt;  has become virtually synonymous with the method of IP masquerading.&lt;/p&gt; &lt;p&gt;Network address translation has serious consequences (&lt;a href="http://en.wikipedia.org/wiki/NAT#Drawbacks"&gt;Drawbacks&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/NAT#Benefits"&gt;Benefits&lt;/a&gt;) on the  quality of Internet connectivity and requires careful attention to the  details of its implementation. As a result, many methods have been  devised to alleviate the issues encountered. See article on &lt;a href="http://en.wikipedia.org/wiki/NAT_traversal" title="NAT traversal"&gt;NAT  traversal&lt;/a&gt;.&lt;/p&gt; &lt;table id="toc" class="toc"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;div id="toctitle"&gt; &lt;h2&gt;Contents&lt;/h2&gt;  &lt;span class="toctoggle"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;ul&gt;&lt;li class="toclevel-1 tocsection-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Overview"&gt;&lt;span class="tocnumber"&gt;1&lt;/span&gt;  &lt;span class="toctext"&gt;Overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Basic_NAT_and_PAT"&gt;&lt;span class="tocnumber"&gt;2&lt;/span&gt; &lt;span class="toctext"&gt;Basic NAT and PAT&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Types_of_NAT"&gt;&lt;span class="tocnumber"&gt;3&lt;/span&gt; &lt;span class="toctext"&gt;Types of NAT&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#NAT_and_TCP.2FUDP"&gt;&lt;span class="tocnumber"&gt;4&lt;/span&gt; &lt;span class="toctext"&gt;NAT and TCP/UDP&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Destination_network_address_translation_.28DNAT.29"&gt;&lt;span class="tocnumber"&gt;5&lt;/span&gt; &lt;span class="toctext"&gt;Destination network  address translation (DNAT)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#SNAT"&gt;&lt;span class="tocnumber"&gt;6&lt;/span&gt;  &lt;span class="toctext"&gt;SNAT&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Dynamic_network_address_translation"&gt;&lt;span class="tocnumber"&gt;7&lt;/span&gt; &lt;span class="toctext"&gt;Dynamic network  address translation&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Applications_affected_by_NAT"&gt;&lt;span class="tocnumber"&gt;8&lt;/span&gt; &lt;span class="toctext"&gt;Applications affected  by NAT&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Drawbacks"&gt;&lt;span class="tocnumber"&gt;9&lt;/span&gt; &lt;span class="toctext"&gt;Drawbacks&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-10"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Benefits"&gt;&lt;span class="tocnumber"&gt;10&lt;/span&gt;  &lt;span class="toctext"&gt;Benefits&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-11"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#Examples_of_NAT_software"&gt;&lt;span class="tocnumber"&gt;11&lt;/span&gt; &lt;span class="toctext"&gt;Examples of NAT  software&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-12"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#See_also"&gt;&lt;span class="tocnumber"&gt;12&lt;/span&gt;  &lt;span class="toctext"&gt;See also&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-13"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#References"&gt;&lt;span class="tocnumber"&gt;13&lt;/span&gt; &lt;span class="toctext"&gt;References&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-14"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#External_links"&gt;&lt;span class="tocnumber"&gt;14&lt;/span&gt; &lt;span class="toctext"&gt;External links&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }  //]]&gt; &lt;/script&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Overview"&gt;Overview&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;In the mid-1990s NAT became a popular tool for alleviating the &lt;a href="http://en.wikipedia.org/wiki/IPv4_address_exhaustion" title="IPv4  address exhaustion"&gt;IPv4 address exhaustion&lt;/a&gt;. It has become a  standard, indispensable feature in &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;routers&lt;/a&gt;  for home and small-office Internet connections.&lt;/p&gt; &lt;p&gt;Most systems using NAT do so in order to enable multiple &lt;a href="http://en.wikipedia.org/wiki/Host_%28network%29" title="Host  (network)"&gt;hosts&lt;/a&gt; on a &lt;a href="http://en.wikipedia.org/wiki/Private_network" title="Private  network"&gt;private network&lt;/a&gt; to access the &lt;a href="http://en.wikipedia.org/wiki/Internet" title="Internet"&gt;Internet&lt;/a&gt;  using a single public IP address (see &lt;a href="http://en.wikipedia.org/wiki/Gateway_%28telecommunications%29" title="Gateway (telecommunications)"&gt;gateway&lt;/a&gt;). However, NAT breaks  the originally envisioned model of IP &lt;a href="http://en.wikipedia.org/wiki/End-to-end_connectivity" title="End-to-end connectivity"&gt;end-to-end connectivity&lt;/a&gt; across the  Internet, introduces complications in communication between hosts, and  affects performance.&lt;/p&gt; &lt;p&gt;NAT obscures an internal network's structure: all traffic appears to  outside parties as if it originated from the gateway machine.&lt;/p&gt; &lt;p&gt;Network address translation involves re-writing the source and/or  destination &lt;a href="http://en.wikipedia.org/wiki/IP_address" title="IP  address"&gt;IP addresses&lt;/a&gt; and usually also the &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" title="Transmission Control Protocol"&gt;TCP&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" title="User  Datagram Protocol"&gt;UDP&lt;/a&gt; port numbers of &lt;a href="http://en.wikipedia.org/wiki/Internet_Protocol" title="Internet  Protocol"&gt;IP&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Packet_%28information_technology%29" title="Packet (information technology)"&gt;packets&lt;/a&gt; as they pass through  the NAT. Checksums (both IP and TCP/UDP) must also be rewritten to take  account of the changes.&lt;/p&gt; &lt;p&gt;In a typical configuration, a local network uses one of the  designated &lt;a href="http://en.wikipedia.org/wiki/Private_network" title="Private network"&gt;"private" IP address&lt;/a&gt; subnets (the &lt;a href="http://tools.ietf.org/html/rfc1918" class="external  mw-magiclink-rfc"&gt;RFC 1918&lt;/a&gt;). Private Network Addresses are  192.168.x.x, 172.16.x.x through 172.31.x.x, and 10.x.x.x (or using &lt;a href="http://en.wikipedia.org/wiki/CIDR_notation" title="CIDR notation"&gt;CIDR  notation&lt;/a&gt;, 192.168/16, 172.16/12, and 10/8), and a router on that  network has a private address (such as 192.168.0.1) in that address  space. The router is also connected to the Internet with a single  "public" address (known as "overloaded" NAT) or multiple "public"  addresses assigned by an &lt;a href="http://en.wikipedia.org/wiki/Internet_service_provider" title="Internet service provider"&gt;ISP&lt;/a&gt;. As traffic passes from the  local network to the Internet, the source address in each packet is  translated on the fly from the private addresses to the public  address(es). The router tracks basic data about each active connection  (particularly the destination address and port). When a reply returns to  the router, it uses the connection tracking data it stored during the  outbound phase to determine where on the internal network to forward the  reply; the &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" title="Transmission Control Protocol"&gt;TCP&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" title="User  Datagram Protocol"&gt;UDP&lt;/a&gt; client &lt;a href="http://en.wikipedia.org/wiki/TCP_and_UDP_port" title="TCP and UDP  port"&gt;port&lt;/a&gt; numbers are used to &lt;a href="http://en.wikipedia.org/wiki/Multiplexing" title="Multiplexing"&gt;demultiplex&lt;/a&gt;  the packets in the case of overloaded NAT, or IP address and port  number when multiple public addresses are available, on packet return.  To a system on the Internet, the router itself appears to be the  source/destination for this traffic.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Basic_NAT_and_PAT"&gt;Basic NAT and PAT&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;There are two levels of network address translation.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;b&gt;Basic NAT&lt;/b&gt;. This involves IP address translation only, not  port mapping.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href="http://en.wikipedia.org/wiki/Port_address_translation" title="Port address translation"&gt;PAT&lt;/a&gt; (Port Address Translation)&lt;/b&gt;.  Also called simply "NAT" or "&lt;a href="http://en.wikipedia.org/wiki/Port_address_translation" title="Port  address translation"&gt;Network Address Port Translation, NAPT&lt;/a&gt;". This  involves the translation of both IP addresses and port numbers.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;All Internet packets have a source IP address and a destination IP  address. Both or either of the source and destination addresses may be  translated.&lt;/p&gt; &lt;p&gt;Some Internet packets do not have port numbers. For example, &lt;a href="http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol" title="Internet Control Message Protocol"&gt;ICMP&lt;/a&gt; packets have no port  numbers. However, the vast bulk of Internet traffic is TCP and UDP  packets, which do have port numbers. Packets which do have port numbers  have both a source port number and a destination port number. Both or  either of the source and destination ports may be translated.&lt;/p&gt; &lt;p&gt;NAT which involves translation of the source IP address and/or source  port is called &lt;b&gt;source NAT&lt;/b&gt; or &lt;b&gt;SNAT&lt;/b&gt;. This re-writes the IP  address and/or port number of the computer which originated the packet.&lt;/p&gt; &lt;p&gt;NAT which involves translation of the destination IP address and/or  destination port number is called &lt;b&gt;destination NAT&lt;/b&gt; or &lt;b&gt;DNAT&lt;/b&gt;.  This re-writes the IP address and/or port number corresponding to the  destination computer.&lt;/p&gt; &lt;p&gt;SNAT and DNAT may be applied simultaneously to Internet packets.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;[&lt;a href="http://en.wikipedia.org/w/index.php?title=Network_address_translation&amp;amp;action=edit&amp;amp;section=3" title="Edit section: Types of NAT"&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class="mw-headline" id="Types_of_NAT"&gt;Types of NAT&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Network address translation is implemented in a variety of schemes of  translating addresses and port numbers, each affecting application  communication protocols differently. In some application protocols that  use IP address information, the application running on a node in the  masqueraded network needs to determine the external address of the NAT,  i.e., the address that its communication peers detect, and, furthermore,  often needs to examine and categorize the type of mapping in use. For  this purpose, the &lt;a href="http://en.wikipedia.org/wiki/Simple_traversal_of_UDP_over_NATs" title="Simple traversal of UDP over NATs" class="mw-redirect"&gt;Simple  traversal of UDP over NATs&lt;/a&gt; (STUN) protocol was developed (&lt;a href="http://tools.ietf.org/html/rfc3489" class="external  mw-magiclink-rfc"&gt;RFC 3489&lt;/a&gt;, March 2003). It classified NAT  implementation as &lt;b&gt;full cone NAT&lt;/b&gt;, &lt;b&gt;(address) restricted cone NAT&lt;/b&gt;,  &lt;b&gt;port restricted cone NAT&lt;/b&gt; or &lt;b&gt;symmetric NAT&lt;/b&gt;&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#cite_note-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  and proposed a methodology for testing a device accordingly. However,  these procedures have since been deprecated from standards status, as  the methods have proven faulty and inadequate to correctly assess many  devices. New methods have been standardized in &lt;a href="http://tools.ietf.org/html/rfc5389" class="external  mw-magiclink-rfc"&gt;RFC 5389&lt;/a&gt; (October 2008) and the STUN acronym now  represents the new title of the specification: &lt;i&gt;Session Traversal  Utilities for NAT&lt;/i&gt;.&lt;/p&gt; &lt;table class="wikitable"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;b&gt;Full cone NAT&lt;/b&gt;, also known as one-to-one NAT &lt;ul&gt;&lt;li&gt;Once an internal address (iAddr:iPort) is mapped to an external  address (eAddr:ePort), any packets from iAddr:iPort will be sent through  eAddr:ePort.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Any external host&lt;/b&gt; can send packets to iAddr:iPort by sending  packets to eAddr:ePort.&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;td&gt; &lt;div class="floatright"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Full_Cone_NAT.svg" class="image"&gt;&lt;img alt="Full Cone NAT.svg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Full_Cone_NAT.svg/400px-Full_Cone_NAT.svg.png" width="400" height="180" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;(Address) Restricted cone NAT&lt;/b&gt; &lt;ul&gt;&lt;li&gt;Once an internal address (iAddr:iPort) is mapped to an external  address (eAddr:ePort), any packets from iAddr:iPort will be sent through  eAddr:ePort.&lt;/li&gt;&lt;li&gt;An external host (&lt;b&gt;hAddr:any&lt;/b&gt;) can send packets to iAddr:iPort  by sending packets to eAddr:ePort only if iAddr:iPort had previously  sent a packet to hAddr:&lt;i&gt;any&lt;/i&gt;. "any" means the port number doesn't  matter.&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;td&gt; &lt;div class="floatright"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Restricted_Cone_NAT.svg" class="image"&gt;&lt;img alt="Restricted Cone NAT.svg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Restricted_Cone_NAT.svg/400px-Restricted_Cone_NAT.svg.png" width="400" height="180" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;Port-Restricted cone NAT&lt;/b&gt; &lt;p&gt;Like an &lt;b&gt;(Address) Restricted cone NAT&lt;/b&gt;, but the restriction  includes port numbers.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Once an internal address (iAddr:iPort) is mapped to an external  address (eAddr:ePort), any packets from iAddr:iPort will be sent through  eAddr:ePort.&lt;/li&gt;&lt;li&gt;An external host (&lt;b&gt;hAddr:hPort&lt;/b&gt;) can send packets to  iAddr:iPort by sending packets to eAddr:ePort only if iAddr:iPort had  previously sent a packet to hAddr:hPort.&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;td&gt; &lt;div class="floatright"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Port_Restricted_Cone_NAT.svg" class="image"&gt;&lt;img alt="Port Restricted Cone NAT.svg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Port_Restricted_Cone_NAT.svg/400px-Port_Restricted_Cone_NAT.svg.png" width="400" height="180" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;Symmetric NAT&lt;/b&gt; &lt;ul&gt;&lt;li&gt;Each request from the same internal IP address and port to a  specific destination IP address and port is mapped to a unique external  source IP address and port.&lt;/li&gt;&lt;li&gt;If the same internal host sends a packet even with the same source  address and port but to a different destination, a different mapping is  used.&lt;/li&gt;&lt;li&gt;Only an external host that receives a packet from an internal host  can send a packet back.&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;td&gt; &lt;div class="floatright"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Symmetric_NAT.svg" class="image"&gt;&lt;img alt="Symmetric NAT.svg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Symmetric_NAT.svg/400px-Symmetric_NAT.svg.png" width="400" height="180" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;This terminology has been the source of much confusion, as it has  proven inadequate at describing real-life NAT behavior.&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  Many NAT implementations combine these types, and it is therefore  better to refer to specific individual &lt;a href="http://en.wikipedia.org/w/index.php?title=NAT_behavior&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="NAT behavior (page does not exist)"&gt;NAT behaviors&lt;/a&gt;  instead of using the Cone/Symmetric terminology. Especially, most NAT  translators combine &lt;i&gt;symmetric NAT&lt;/i&gt; for outgoing connections with &lt;i&gt;static  port mapping&lt;/i&gt;, where incoming packets to the external address and  port are redirected to a specific internal address and port. Some  products can redirect packets to several internal hosts, e.g. to divide  the load between a few servers. However, this introduces problems with  more sophisticated communications that have many interconnected packets,  and thus is rarely used.&lt;/p&gt; &lt;p&gt;Many NAT implementations follow the &lt;b&gt;port preservation&lt;/b&gt; design.  For most communications, they use the same values as internal and  external port numbers. However, if two internal hosts attempt to  communicate with the same external host using the same port number, the  external port number used by the second host will be chosen at random.  Such NAT will be sometimes perceived as &lt;b&gt;(address) restricted cone NAT&lt;/b&gt;  and other times as &lt;b&gt;symmetric NAT&lt;/b&gt;.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="NAT_and_TCP.2FUDP"&gt;NAT and TCP/UDP&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;"Pure NAT", operating on IP alone, may or may not correctly parse  protocols that are totally concerned with IP information, such as &lt;a href="http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol" title="Internet Control Message Protocol"&gt;ICMP&lt;/a&gt;, depending on whether  the payload is interpreted by a host on the "inside" or "outside" of  translation. As soon as the protocol stack is climbed, even with such  basic protocols as &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" title="Transmission Control Protocol"&gt;TCP&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" title="User  Datagram Protocol"&gt;UDP&lt;/a&gt;, the protocols will break unless NAT takes  action beyond the network layer.&lt;/p&gt; &lt;p&gt;IP has a checksum in each packet header, which provides error  detection only for the header. IP datagrams may become fragmented and it  is necessary for a NAT to reassemble these fragments to allow correct  recalculation of higher level checksums and correct tracking of which  packets belong to which connection.&lt;/p&gt; &lt;p&gt;The major transport layer protocols, TCP and UDP, have a checksum  that covers all the data they carry, as well as the TCP/UDP header, plus  a "pseudo-header" that contains the source and destination IP addresses  of the packet carrying the TCP/UDP header. For an originating NAT to  successfully pass TCP or UDP, it must recompute the TCP/UDP header  checksum based on the translated IP addresses, not the original ones,  and put that checksum into the TCP/UDP header of the first packet of the  fragmented set of packets. The receiving NAT must recompute the IP  checksum on every packet it passes to the destination host, and also  recognize and recompute the TCP/UDP header using the retranslated  addresses and pseudo-header. This is not a completely solved problem.  One solution is for the receiving NAT to reassemble the entire segment  and then recompute a checksum calculated across all packets.&lt;/p&gt; &lt;p&gt;Originating host may perform &lt;a href="http://en.wikipedia.org/wiki/Maximum_transmission_unit" title="Maximum transmission unit"&gt;Maximum transmission unit&lt;/a&gt; (MTU)  path discovery (&lt;a href="http://tools.ietf.org/html/rfc1191" class="external mw-magiclink-rfc"&gt;RFC 1191&lt;/a&gt;) to determine the packet  size that can be transmitted without fragmentation, and then set the  "don't fragment" bit in the appropriate packet header field.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Destination_network_address_translation_.28DNAT.29"&gt;Destination  network address translation (DNAT)&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;DNAT is a technique for transparently changing the destination &lt;a href="http://en.wikipedia.org/wiki/IP_address" title="IP address"&gt;IP  address&lt;/a&gt; of an en-route &lt;a href="http://en.wikipedia.org/wiki/Packet" title="Packet"&gt;packet&lt;/a&gt; and performing the inverse function for any  replies. Any &lt;a href="http://en.wikipedia.org/wiki/Router" title="Router"&gt;router&lt;/a&gt; situated between two endpoints can perform  this transformation of the packet.&lt;/p&gt; &lt;p&gt;DNAT is commonly used to publish a service located in a private  network on a publicly accessible &lt;a href="http://en.wikipedia.org/wiki/IP_address" title="IP address"&gt;IP  address&lt;/a&gt;. This use of DNAT is also called &lt;a href="http://en.wikipedia.org/wiki/Port_forwarding" title="Port  forwarding"&gt;port forwarding&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="SNAT"&gt;SNAT&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;The usage of the term SNAT varies by vendor. Many vendors have  proprietary definitions for SNAT. A common definition is Source NAT, the  counterpart of Destination NAT (DNAT).&lt;/p&gt; &lt;p&gt;Microsoft uses the term for Secure NAT, in regards to the ISA Server  extension discussed below. For Cisco Systems, SNAT means Stateful NAT.&lt;/p&gt; &lt;p&gt;The &lt;a href="http://en.wikipedia.org/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force"&gt;Internet Engineering Task Force&lt;/a&gt;  (IETF) defines SNAT as Softwires Network Address Translation. This type  of NAT is named after the Softwires working group that is charged with  the standardization of discovery, control and encapsulation methods for  connecting IPv4 networks across IPv6 networks and IPv6 networks across  IPv4 networks.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt; &lt;span class="mw-headline" id="Dynamic_network_address_translation"&gt;Dynamic  network address translation&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Dynamic NAT, just like static NAT, is not common in smaller networks  but is found within larger corporations with complex networks. The way  dynamic NAT differs from static NAT is that where static NAT provides a  one-to-one internal to public static IP address mapping, dynamic NAT  doesn't make the mapping to the public IP address static and usually  uses a group of available public IP addresses.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Applications_affected_by_NAT"&gt;Applications  affected by NAT&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Some &lt;a href="http://en.wikipedia.org/wiki/Application_Layer" title="Application Layer"&gt;Application Layer&lt;/a&gt; protocols (such as &lt;a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol" title="File  Transfer Protocol"&gt;FTP&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Session_Initiation_Protocol" title="Session Initiation Protocol"&gt;SIP&lt;/a&gt;) send explicit network  addresses within their application data. &lt;a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol" title="File  Transfer Protocol"&gt;FTP&lt;/a&gt; in active mode, for example, uses separate  connections for control traffic (commands) and for data traffic (file  contents). When requesting a file transfer, the host making the request  identifies the corresponding data connection by its &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_3:_Network_layer" title="OSI model"&gt;network layer&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_4:_Transport_layer" title="OSI model"&gt;transport layer&lt;/a&gt; addresses. If the host making the  request lies behind a simple NAT firewall, the translation of the IP  address and/or TCP port number makes the information received by the  server invalid. The &lt;a href="http://en.wikipedia.org/wiki/Session_Initiation_Protocol" title="Session Initiation Protocol"&gt;Session Initiation Protocol&lt;/a&gt;  (SIP) controls &lt;a href="http://en.wikipedia.org/wiki/Voice_over_IP" title="Voice over IP" class="mw-redirect"&gt;Voice over IP&lt;/a&gt; (VoIP)  communications and suffers the same problem. SIP may use multiple ports  to set up a connection and transmit voice stream via &lt;a href="http://en.wikipedia.org/wiki/Real-time_Transport_Protocol" title="Real-time Transport Protocol"&gt;RTP&lt;/a&gt;. IP addresses and port  numbers are encoded in the payload data and must be known prior to the  traversal of NATs. Without special techniques, such as &lt;a href="http://en.wikipedia.org/wiki/STUN" title="STUN" class="mw-redirect"&gt;STUN&lt;/a&gt;, NAT behavior is unpredictable and  communications may fail.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Application_Layer_Gateway" title="Application Layer Gateway" class="mw-redirect"&gt;Application Layer  Gateway&lt;/a&gt; (ALG) software or hardware may correct these problems. An  ALG software module running on a NAT firewall device updates any payload  data made invalid by address translation. ALGs obviously need to  understand the higher-layer protocol that they need to fix, and so each  protocol with this problem requires a separate ALG.&lt;/p&gt; &lt;p&gt;Another possible solution to this problem is to use &lt;a href="http://en.wikipedia.org/wiki/NAT_traversal" title="NAT traversal"&gt;NAT  traversal&lt;/a&gt; techniques using protocols such as &lt;a href="http://en.wikipedia.org/wiki/STUN" title="STUN" class="mw-redirect"&gt;STUN&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/Interactive_Connectivity_Establishment" title="Interactive Connectivity Establishment"&gt;ICE&lt;/a&gt; or proprietary  approaches in a &lt;a href="http://en.wikipedia.org/wiki/Session_Border_Controller" title="Session Border Controller" class="mw-redirect"&gt;session border  controller&lt;/a&gt;. NAT traversal is possible in both TCP- and UDP-based  applications, but &lt;a href="http://en.wikipedia.org/wiki/UDP_hole_punching" title="UDP hole  punching"&gt;the UDP-based technique&lt;/a&gt; is simpler, more widely  understood, and more compatible with legacy NATs. In either case, the  high level protocol must be designed with NAT traversal in mind, and it  does not work reliably across symmetric NATs or other poorly-behaved  legacy NATs.&lt;/p&gt; &lt;p&gt;Other possibilities are &lt;a href="http://en.wikipedia.org/wiki/Universal_Plug_and_Play" title="Universal Plug and Play"&gt;UPnP&lt;/a&gt; (Universal Plug and Play) or &lt;a href="http://en.wikipedia.org/wiki/Bonjour_%28software%29" title="Bonjour (software)"&gt;Bonjour&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/NAT-PMP" title="NAT-PMP" class="mw-redirect"&gt;NAT-PMP&lt;/a&gt;), but these require the cooperation of  the NAT device.&lt;/p&gt; &lt;p&gt;Most traditional client-server protocols (FTP being the main  exception), however, do not send layer 3 contact information and  therefore do not require any special treatment by NATs. In fact,  avoiding NAT complications is practically a requirement when designing  new higher-layer protocols today.&lt;/p&gt; &lt;p&gt;NATs can also cause problems where &lt;a href="http://en.wikipedia.org/wiki/IPsec" title="IPsec"&gt;IPsec&lt;/a&gt;  encryption is applied and in cases where multiple devices such as &lt;a href="http://en.wikipedia.org/wiki/Session_Initiation_Protocol" title="Session Initiation Protocol"&gt;SIP&lt;/a&gt; phones are located behind a  NAT. Phones which encrypt their signaling with IPsec encapsulate the  port information within the IPsec packet meaning that NA(P)T devices  cannot access and translate the port. In these cases the NA(P)T devices  revert to simple NAT operation. This means that all traffic returning to  the NAT will be mapped onto one client causing the service to fail.  There are a couple of solutions to this problem, one is to use &lt;a href="http://en.wikipedia.org/wiki/Transport_Layer_Security" title="Transport Layer Security"&gt;TLS&lt;/a&gt; which operates at level 4 in  the &lt;a href="http://en.wikipedia.org/wiki/ISO/OSI_Reference_Model" title="ISO/OSI Reference Model" class="mw-redirect"&gt;OSI Reference Model&lt;/a&gt;  and therefore does not mask the port number, or to Encapsulate the  IPsec within &lt;a href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" title="User  Datagram Protocol"&gt;UDP&lt;/a&gt; - the latter being the solution chosen by &lt;a href="http://en.wikipedia.org/wiki/TISPAN" title="TISPAN" class="mw-redirect"&gt;TISPAN&lt;/a&gt; to achieve secure NAT traversal.&lt;/p&gt; &lt;p&gt;The DNS protocol vulnerability announced by &lt;a href="http://en.wikipedia.org/wiki/Dan_Kaminsky" title="Dan Kaminsky"&gt;Dan  Kaminsky&lt;/a&gt; on 2008 July 8 is indirectly affected by NAT port mapping.  To avoid DNS server cache poisoning, it is highly desirable to not  translate UDP source port numbers of outgoing DNS requests from any DNS  server which is behind a firewall which implements NAT. The recommended  work-around for the DNS vulnerability is to make all caching DNS servers  use randomized UDP source ports. If the NAT function de-randomizes the  UDP source ports, the DNS server will be made vulnerable.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Drawbacks"&gt;Drawbacks&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;Hosts behind NAT-enabled routers do not have &lt;a href="http://en.wikipedia.org/wiki/End-to-end_connectivity" title="End-to-end connectivity"&gt;end-to-end connectivity&lt;/a&gt; and cannot  participate in some &lt;a href="http://en.wikipedia.org/wiki/Internet_protocol" title="Internet  protocol" class="mw-redirect"&gt;Internet protocols&lt;/a&gt;. Services that  require the initiation of &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" title="Transmission Control Protocol"&gt;TCP&lt;/a&gt; connections from the  outside network, or stateless protocols such as those using &lt;a href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" title="User  Datagram Protocol"&gt;UDP&lt;/a&gt;, can be disrupted. Unless the NAT router  makes a specific effort to support such protocols, incoming packets  cannot reach their destination. Some protocols can accommodate one  instance of NAT between participating hosts ("passive mode" &lt;a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol" title="File  Transfer Protocol"&gt;FTP&lt;/a&gt;, for example), sometimes with the assistance  of an &lt;a href="http://en.wikipedia.org/wiki/Application-level_gateway" title="Application-level gateway"&gt;application-level gateway&lt;/a&gt; (see  below), but fail when both systems are separated from the Internet by  NAT. Use of NAT also complicates &lt;a href="http://en.wikipedia.org/wiki/Tunneling_protocol" title="Tunneling  protocol"&gt;tunneling protocols&lt;/a&gt; such as &lt;a href="http://en.wikipedia.org/wiki/IPsec" title="IPsec"&gt;IPsec&lt;/a&gt;  because NAT modifies values in the headers which interfere with the  integrity checks done by &lt;a href="http://en.wikipedia.org/wiki/IPsec" title="IPsec"&gt;IPsec&lt;/a&gt; and other tunneling protocols.&lt;/p&gt; &lt;p&gt;End-to-end connectivity has been a core principle of the Internet,  supported for example by the &lt;a href="http://en.wikipedia.org/wiki/Internet_Architecture_Board" title="Internet Architecture Board"&gt;Internet Architecture Board&lt;/a&gt;.  Current Internet architectural documents observe that NAT is a violation  of the End-to-End Principle, but that NAT does have a valid role in  careful design.&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#cite_note-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  There is considerably more concern with the use of IPv6 NAT, and many  IPv6 architects believe IPv6 was intended to remove the need for NAT.&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Because of the short-lived nature of the stateful translation tables  in NAT routers, devices on the internal network lose IP connectivity  typically within a very short period of time unless they implement NAT &lt;a href="http://en.wikipedia.org/wiki/Keepalive" title="Keepalive"&gt;keep-alive&lt;/a&gt;  mechanisms by frequently accessing outside hosts. This dramatically  shortens the power reserves on battery-operated hand-held devices and  has thwarted more widespread deployment of such IP-native  Internet-enabled devices.&lt;/p&gt; &lt;p&gt;Some &lt;a href="http://en.wikipedia.org/wiki/Internet_service_provider" title="Internet service provider"&gt;Internet service providers&lt;/a&gt;  (ISPs), especially in Russia, Asia and other "developing" regions  provide their customers only with "local" IP addresses, due to limited  number of external IP addresses allocated to those entities.&lt;sup class="Template-Fact" title="This claim needs references to reliable  sources from March 2008" style="white-space: nowrap;"&gt;[&lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"&gt;citation needed&lt;/a&gt;&lt;/i&gt;]&lt;/sup&gt; Thus,  these customers must access services external to the ISP's network  through NAT. As a result, the customers cannot achieve true end-to-end  connectivity, in violation of the core principles of the Internet as  laid out by the &lt;a href="http://en.wikipedia.org/wiki/Internet_Architecture_Board" title="Internet Architecture Board"&gt;Internet Architecture Board&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Benefits"&gt;Benefits&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;The primary benefit of IP-masquerading NAT is that it has been a  practical solution to the impending exhaustion of IPv4 address space.  Even large networks can be connected to the Internet with as little as a  single IP address. The more common arrangement is having machines that  require end-to-end connectivity supplied with a routable IP address,  while having machines that do not provide services to outside users  behind NAT with only a few IP addresses used to enable Internet access.&lt;/p&gt; &lt;p&gt;Some&lt;sup id="cite_ref-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/NAT#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  have also called this exact benefit a major drawback, since it delays  the need for the implementation of &lt;a href="http://en.wikipedia.org/wiki/IPv6" title="IPv6"&gt;IPv6&lt;/a&gt;, quote:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;"... it is possible that its [NAT] widespread use will significantly  delay the need to deploy IPv6. ... It is probably safe to say that  networks would be better off without NAT, ..."&lt;/p&gt; &lt;/blockquote&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Examples_of_NAT_software"&gt;Examples of NAT  software&lt;/span&gt;&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/IPFilter" title="IPFilter"&gt;IPFilter&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/PF_%28firewall%29" title="PF  (firewall)"&gt;PF (firewall)&lt;/a&gt;: The OpenBSD Packet Filter.&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Netfilter" title="Netfilter"&gt;Netfilter&lt;/a&gt;  NAT engine&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Internet_Connection_Sharing" title="Internet Connection Sharing"&gt;Internet Connection Sharing&lt;/a&gt;  (ICS)&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/WinGate_%28computing%29" title="WinGate (computing)" class="mw-redirect"&gt;WinGate&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-5413290190749663531?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/5413290190749663531/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/network-address-translation-nat.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5413290190749663531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/5413290190749663531'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/network-address-translation-nat.html' title='Network address translation ( NAT )'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-3269992568933405480</id><published>2010-05-14T22:23:00.000-07:00</published><updated>2010-05-14T22:24:09.767-07:00</updated><title type='text'>Configuring Private VLANs</title><content type='html'>&lt;h3 class="p_H_Head2"&gt; Configuring Private VLANs &lt;/h3&gt; &lt;a name="wp1042584"&gt;&lt;/a&gt;&lt;a name="wpmkr1047718"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; To configure a private VLAN, perform these steps: &lt;/p&gt; &lt;hr noshade="noshade"&gt; &lt;a name="wp1038682"&gt;&lt;/a&gt;&lt;p class="pSF_StepFirst"&gt; &lt;b&gt;Step 1 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;Set VTP mode to transparent. &lt;/p&gt; &lt;a name="wp1038685"&gt;&lt;/a&gt;&lt;p class="pSN_StepNext"&gt; &lt;b&gt;Step 2 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;Create the primary and secondary VLANs and  associate them. See the &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1038781"&gt;"Configuring  and Associating VLANs in a Private VLAN" section&lt;/a&gt;. &lt;/p&gt; &lt;div class="Note2"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Note2"&gt; &lt;a name="wp1045173"&gt;&lt;/a&gt;&lt;p class="pN2_Note2"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="6" height="2" /&gt;If the VLAN is not created  already, the private-VLAN configuration process creates it. &lt;/p&gt; &lt;hr class="Note2"&gt;&lt;a name="wp1038699"&gt;&lt;/a&gt;&lt;p class="pSN_StepNext"&gt; &lt;b&gt;Step 3 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;Configure interfaces to be isolated or community  host ports, and assign VLAN membership to the host port. See the &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1038990"&gt;"Configuring  a Layer 2 Interface as a Private-VLAN Host Port" section&lt;/a&gt;. &lt;/p&gt; &lt;a name="wp1038707"&gt;&lt;/a&gt;&lt;p class="pSN_StepNext"&gt; &lt;b&gt;Step 4 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;Configure interfaces as promiscuous ports, and map  the promiscuous ports to the primary-secondary VLAN pair. See the &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1039067"&gt;"Configuring  a Layer 2 Interface as a Private-VLAN Promiscuous Port" section&lt;/a&gt;. &lt;/p&gt; &lt;a name="wp1038714"&gt;&lt;/a&gt;&lt;p class="pSN_StepNext"&gt; &lt;b&gt;Step 5 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;If inter-VLAN routing will be used, configure the  primary SVI, and map secondary VLANs to the primary. See the &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1044399"&gt;"Mapping  Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface" section&lt;/a&gt;. &lt;/p&gt; &lt;a name="wp1038715"&gt;&lt;/a&gt;&lt;p class="pSN_StepNext"&gt; &lt;b&gt;Step 6 &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="5" height="2" /&gt;Verify private-VLAN configuration. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1038716"&gt;&lt;/a&gt; &lt;a name="Default_Private-VLAN_Configuration"&gt; &lt;/a&gt;  &lt;a name="wp1038741"&gt;&lt;/a&gt;&lt;a name="wpxref24030"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Default Private-VLAN Configuration &lt;/h3&gt; &lt;a name="wp1043424"&gt;&lt;/a&gt;&lt;a name="wpmkr1047719"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; No private VLANs are configured. &lt;/p&gt;  &lt;a name="Private-VLAN_Configuration_Guidelines"&gt; &lt;/a&gt;  &lt;a name="wp1039817"&gt;&lt;/a&gt;&lt;a name="wpxref26243"&gt;&lt;/a&gt;&lt;a name="wpxref62505"&gt;&lt;/a&gt;&lt;a name="wpmkr1039816"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Private-VLAN Configuration Guidelines &lt;/h3&gt; &lt;a name="wp1057000"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Guidelines for configuring private VLANs fall into these categories: &lt;/p&gt; &lt;a name="wp1057084"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;&lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1057006"&gt;Secondary  and Primary VLAN Configuration&lt;/a&gt; &lt;/p&gt; &lt;a name="wp1057096"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;&lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1055972"&gt;Private-VLAN  Port Configuration&lt;/a&gt; &lt;/p&gt; &lt;a name="wp1057640"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;&lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1057603"&gt;Limitations  with Other Features&lt;/a&gt; &lt;/p&gt;  &lt;a name="Secondary_and_Primary_VLAN_Configuration"&gt; &lt;/a&gt;  &lt;a name="wp1057006"&gt;&lt;/a&gt;&lt;a name="wpxref93170"&gt;&lt;/a&gt;&lt;a name="wpxref82904"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head3"&gt; Secondary and Primary VLAN Configuration &lt;/h3&gt; &lt;a name="wp1039818"&gt;&lt;/a&gt;&lt;a name="wpmkr1047720"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Follow these guidelines when configuring private VLANs: &lt;/p&gt; &lt;a name="wp1039819"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Set VTP to transparent mode. After you  configure a private VLAN, you should not change the VTP mode to client  or server. For information about VTP, see &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swvtp.html#wpxref31101"&gt;Chapter 14,  "Configuring VTP."&lt;/a&gt; &lt;/p&gt; &lt;a name="wp1057273"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You must use VLAN configuration  (config-vlan) mode to configure private VLANs. You cannot configure  private VLANs in VLAN database configuration mode. For more information  about VLAN configuration, see &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swvlan.html#wpxref80496"&gt;"VLAN  Configuration Mode Options" section on page 13-7&lt;/a&gt;. &lt;/p&gt; &lt;a name="wp1054668"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;After you have configured private  VLANs, use the &lt;b class="cBold"&gt;copy running-config startup config &lt;/b&gt;privileged  EXEC command to save the VTP transparent mode configuration and  private-VLAN configuration in the switch startup configuration file.  Otherwise, if the switch resets, it defaults to VTP server mode, which  does not support private VLANs. &lt;/p&gt; &lt;a name="wp1039823"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;VTP does not propagate private-VLAN  configuration. You must configure private VLANs on each device where you  want private-VLAN ports. &lt;/p&gt; &lt;a name="wp1039824"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You cannot configure VLAN 1 or VLANs  1002 to 1005 as primary or secondary VLANs. Extended VLANs (VLAN IDs  1006 to 4094) can belong to private VLANs &lt;/p&gt; &lt;a name="wp1049362"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;A primary VLAN can have one isolated  VLAN and multiple community VLANs associated with it. An isolated or  community VLAN can have only one primary VLAN associated with it.  &lt;/p&gt; &lt;a name="wp1049402"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Although a private VLAN contains more  than one VLAN, only one Spanning Tree Protocol (STP) instance runs for  the entire private VLAN. When a secondary VLAN is associated with the  primary VLAN, the STP parameters of the primary VLAN are propagated to  the secondary VLAN.  &lt;/p&gt; &lt;a name="wp1047150"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You can enable DHCP snooping on private  VLANs. When you enable DHCP snooping on the primary VLAN, it is  propagated to the secondary VLANs. If you configure DHCP on a secondary  VLAN, the configuration does not take effect if the primary VLAN is  already configured. &lt;/p&gt; &lt;a name="wp1059520"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;When you enable IP source guard on  private-VLAN ports, you must enable DHCP snooping on the primary VLAN.  &lt;/p&gt; &lt;a name="wp1049444"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;We recommend that you prune the private  VLANs from the trunks on devices that carry no traffic in the private  VLANs. &lt;/p&gt; &lt;a name="wp1049445"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You can apply different quality of  service (QoS) configurations to primary, isolated, and community VLANs. &lt;/p&gt; &lt;a name="wp1056615"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;When you configure private VLANs,  sticky Address Resolution Protocol (ARP) is enabled by default, and ARP  entries learned on Layer 3 private VLAN interfaces are sticky ARP  entries. For security reasons, private VLAN port sticky ARP entries do  not age out.  &lt;/p&gt; &lt;div class="Note3"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Note3"&gt; &lt;a name="wp1056907"&gt;&lt;/a&gt;&lt;p class="pN3_Note3"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="6" height="2" /&gt;We recommend that you display and  verify private-VLAN interface ARP entries. &lt;/p&gt; &lt;hr class="Note3"&gt;&lt;a name="wp1056756"&gt;&lt;/a&gt;&lt;p class="pB2_Body2"&gt; Connecting a device with a different MAC address but with the same IP  address generates a message and the ARP entry is not created. Because  the private-VLAN port sticky ARP entries do not age out, you must  manually remove private-VLAN port ARP entries if a MAC address changes.  &lt;/p&gt; &lt;a name="wp1056767"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;You can remove a private-VLAN ARP entry  by using the &lt;b class="cBold"&gt;no arp&lt;/b&gt; &lt;em class="cEmphasis"&gt;ip-address&lt;/em&gt;  global configuration command.  &lt;/p&gt; &lt;a name="wp1056771"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;You can add a private-VLAN ARP entry by  using the &lt;b class="cBold"&gt;arp&lt;/b&gt; ip&lt;em class="cEmphasis"&gt;-address  hardware-address&lt;/em&gt; &lt;b class="cBold"&gt;type&lt;/b&gt; global configuration  command. &lt;/p&gt; &lt;a name="wp1056613"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You can configure VLAN maps on primary  and secondary VLANs (see the &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swacl.html#wpxref58493"&gt;"Configuring  VLAN Maps" section&lt;/a&gt;). However, we recommend that you configure the  same VLAN maps on private-VLAN primary and secondary VLANs. &lt;/p&gt; &lt;a name="wp1049450"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;When a frame is Layer-2 forwarded  within a private VLAN, the same VLAN map is applied at the ingress side  and at the egress side. When a frame is routed from inside a private  VLAN to an external port, the private-VLAN map is applied at the ingress  side. &lt;/p&gt; &lt;a name="wp1054217"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;For frames going upstream from a host  port to a promiscuous port, the VLAN map configured on the secondary  VLAN is applied. &lt;/p&gt; &lt;a name="wp1054221"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;For frames going downstream from a  promiscuous port to a host port, the VLAN map configured on the primary  VLAN is applied. &lt;/p&gt; &lt;a name="wp1055599"&gt;&lt;/a&gt;&lt;p class="pB2_Body2"&gt; To filter out specific IP traffic for a private VLAN, you should apply  the VLAN map to both the primary and secondary VLANs. &lt;/p&gt; &lt;a name="wp1055600"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You can apply router ACLs only on the  primary-VLAN SVIs. The ACL is applied to both primary and secondary VLAN  Layer 3 traffic. &lt;/p&gt; &lt;a name="wp1049451"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Although private VLANs provide host  isolation at Layer 2, hosts can communicate with each other at Layer 3.  &lt;/p&gt; &lt;a name="wp1055556"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Private VLANs support these Switched  Port Analyzer (SPAN) features: &lt;/p&gt; &lt;a name="wp1055557"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;You can configure a private-VLAN port  as a SPAN source port. &lt;/p&gt; &lt;a name="wp1055558"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;You can use VLAN-based SPAN (VSPAN) on  primary, isolated, and community VLANs or use SPAN on only one VLAN to  separately monitor egress or ingress traffic. &lt;/p&gt;  &lt;a name="Private-VLAN_Port_Configuration"&gt; &lt;/a&gt;  &lt;a name="wp1055972"&gt;&lt;/a&gt;&lt;a name="wpmkr1055971"&gt;&lt;/a&gt;&lt;a name="wpxref44293"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head3"&gt; Private-VLAN Port Configuration &lt;/h3&gt; &lt;a name="wp1049371"&gt;&lt;/a&gt;&lt;a name="wpmkr1050515"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Follow these guidelines when configuring private-VLAN ports: &lt;/p&gt; &lt;a name="wp1049384"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Use only the private-VLAN configuration  commands to assign ports to primary, isolated, or community VLANs.  Layer 2 access ports assigned to the VLANs that you configure as  primary, isolated, or community VLANs are inactive while the VLAN is  part of the private-VLAN configuration. Layer 2 trunk interfaces remain  in the STP forwarding state. &lt;/p&gt; &lt;a name="wp1055048"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Do not configure ports that belong to a  PAgP or LACP EtherChannel as private-VLAN ports. While a port is part  of the private-VLAN configuration, any EtherChannel configuration for it  is inactive. &lt;/p&gt; &lt;a name="wp1043711"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Enable Port Fast and BPDU guard on  isolated and community host ports to prevent STP loops due to  misconfigurations and to speed up STP convergence (see &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swstpopt.html#wpxref42053"&gt;Chapter 20,  "Configuring Optional Spanning-Tree Features"&lt;/a&gt;). When enabled, STP  applies the BPDU guard feature to all Port Fast-configured Layer 2 LAN  ports. Do not enable Port Fast and BPDU guard on promiscuous ports. &lt;/p&gt; &lt;a name="wp1053815"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;If you delete a VLAN used in the  private-VLAN configuration, the private-VLAN ports associated with the  VLAN become inactive. &lt;/p&gt; &lt;a name="wp1039845"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Private-VLAN ports can be on different  network devices if the devices are trunk-connected and the primary and  secondary VLANs have not been removed from the trunk. &lt;/p&gt;  &lt;a name="Limitations_with_Other_Features"&gt; &lt;/a&gt;  &lt;a name="wp1057603"&gt;&lt;/a&gt;&lt;a name="wpxref76690"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head3"&gt; Limitations with Other Features &lt;/h3&gt; &lt;a name="wp1057604"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; When configuring private VLANs, remember these limitations with other  features: &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1059281"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;In some cases, the configuration  is accepted with no error messages, but the commands have no effect. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1057605"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Do not configure fallback bridging on  switches with private VLANs. &lt;/p&gt; &lt;a name="wp1057606"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;When IGMP snooping is enabled on the  switch (the default), the switch stack supports no more than 20  private-VLAN domains.  &lt;/p&gt; &lt;a name="wp1057608"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Do not configure a remote SPAN (RSPAN)  VLAN as a private-VLAN primary or secondary VLAN. &lt;/p&gt; &lt;a name="wp1057612"&gt;&lt;/a&gt;&lt;p class="pB2_Body2"&gt; For more information about SPAN, see &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swspan.html#wpxref25516"&gt;Chapter 28,  "Configuring SPAN and RSPAN."&lt;/a&gt; &lt;/p&gt; &lt;a name="wp1057613"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Do not configure private-VLAN ports on  interfaces configured for these other features: &lt;/p&gt; &lt;a name="wp1057614"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;dynamic-access port VLAN membership &lt;/p&gt; &lt;a name="wp1057615"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;Dynamic Trunking Protocol (DTP)  &lt;/p&gt; &lt;a name="wp1057616"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;Port Aggregation Protocol (PAgP) &lt;/p&gt; &lt;a name="wp1057617"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;Link Aggregation Control Protocol  (LACP)  &lt;/p&gt; &lt;a name="wp1057618"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;Multicast VLAN Registration (MVR) &lt;/p&gt; &lt;a name="wp1057619"&gt;&lt;/a&gt;&lt;p class="pBu2_Bullet2"&gt; –&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="17" height="2" /&gt;voice VLAN &lt;/p&gt; &lt;a name="wp1057621"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;A private-VLAN port cannot be a secure  port and should not be configured as a protected port. &lt;/p&gt; &lt;a name="wp1057622"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;You can configure IEEE 802.1x  port-based authentication on a private-VLAN port, but do not configure  802.1x with port security, voice VLAN, or per-user ACL on private-VLAN  ports. &lt;/p&gt; &lt;a name="wp1057623"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;A private-VLAN host or promiscuous port  cannot be a SPAN destination port. If you configure a SPAN destination  port as a private-VLAN port, the port becomes inactive. &lt;/p&gt; &lt;a name="wp1057624"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;If you configure a static MAC address  on a promiscuous port in the primary VLAN, you must add the same static  address to all associated secondary VLANs. If you configure a static MAC  address on a host port in a secondary VLAN, you must add the same  static MAC address to the associated primary VLAN. When you delete a  static MAC address from a private-VLAN port, you must remove all  instances of the configured MAC address from the private VLAN. &lt;/p&gt; &lt;div class="Note3"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Note3"&gt; &lt;a name="wp1057625"&gt;&lt;/a&gt;&lt;p class="pN3_Note3"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="6" height="2" /&gt;Dynamic MAC addresses learned in  one VLAN of a private VLAN are replicated in the associated VLANs. For  example, a MAC address learned in a secondary VLAN is replicated in the  primary VLAN. When the original dynamic MAC address is deleted or aged  out, the replicated addresses are removed from the MAC address table. &lt;/p&gt; &lt;hr class="Note3"&gt;&lt;a name="wp1057626"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Configure Layer 3 VLAN interfaces  (SVIs) only for primary VLANs.  &lt;/p&gt;  &lt;a name="Configuring_and_Associating_VLANs_in_a_Private_VLAN_"&gt; &lt;/a&gt;  &lt;a name="wp1038781"&gt;&lt;/a&gt;&lt;a name="wpxref25653"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Configuring and Associating VLANs in a Private VLAN  &lt;/h3&gt; &lt;a name="wp1038783"&gt;&lt;/a&gt;&lt;a name="wpmkr1038782"&gt;&lt;/a&gt;&lt;a name="wpmkr1047721"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Beginning in privileged EXEC mode, follow these steps to configure a  private VLAN: &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1046725"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;The &lt;b class="cBold"&gt;private-vlan&lt;/b&gt;  commands do not take effect until you exit VLAN configuration mode. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1038823"&gt;&lt;/a&gt;&lt;p class="pAnchor"&gt; &lt;/p&gt; &lt;div align="left"&gt; &lt;table class="steptable" id="wp1042858table1038785" border="1" bordercolor="#808080" cellpadding="3" cellspacing="0" width="80%"&gt;   &lt;caption&gt;&lt;br /&gt;&lt;/caption&gt;   &lt;tbody&gt;&lt;tr align="left" valign="bottom"&gt;    &lt;th scope="col"&gt; &lt;a name="wp1042856"&gt;&lt;/a&gt;&lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1042858"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Command &lt;/div&gt; &lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1042860"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Purpose &lt;/div&gt; &lt;/th&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042862"&gt;&lt;/a&gt;&lt;p class="pCSF_CellStepFirst"&gt; Step 1  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042864"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;configure terminal&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042866"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1045756"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 2  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1045758"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;vtp mode transparent&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1045760"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Set VTP mode to transparent (disable VTP). &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042868"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 3  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042870"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;vlan&lt;/b&gt; &lt;em class="cEmphasis"&gt;vlan-id&lt;/em&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042872"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter VLAN configuration mode and designate or create a VLAN that will  be the primary VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042874"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 4  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042876"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;private-vlan&lt;/b&gt; &lt;b class="cBold"&gt;primary&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042878"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Designate the VLAN as the primary VLAN.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042881"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 5  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042883"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;exit&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042885"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042887"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 6  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042889"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;vlan&lt;/b&gt; &lt;em class="cEmphasis"&gt;vlan-id&lt;/em&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048260"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; (Optional) Enter VLAN configuration mode and designate or create a VLAN  that will be an isolated VLAN. The VLAN ID range is 2 to 1001 and 1006  to 4094. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042893"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 7  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042895"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;private-vlan&lt;/b&gt; &lt;b class="cBold"&gt;isolated&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042897"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Designate the VLAN as an isolated VLAN.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042900"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 8  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042902"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;exit&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042904"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042906"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 9  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042908"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;vlan&lt;/b&gt; &lt;em class="cEmphasis"&gt;vlan-id&lt;/em&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048278"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; (Optional) Enter VLAN configuration mode and designate or create a VLAN  that will be a community VLAN. The VLAN ID range is 2 to 1001 and 1006  to 4094. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042912"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 10  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042914"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;private-vlan&lt;/b&gt; &lt;b class="cBold"&gt;community&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042916"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Designate the VLAN as a community VLAN.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042919"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 11  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042921"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;exit&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042923"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042925"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 12  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1059020"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;vlan&lt;/b&gt; &lt;em class="cEmphasis"&gt;vlan-id&lt;/em&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042929"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter VLAN configuration mode for the primary VLAN designated in Step 2. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042950"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 13  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042961"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;private-vlan association&lt;/b&gt; [&lt;b class="cBold"&gt;add&lt;/b&gt; |  &lt;b class="cBold"&gt;remove&lt;/b&gt;] &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042963"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Associate the secondary VLANs with the primary VLAN.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042944"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 14  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042946"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;end&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042948"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to privileged EXEC mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1042931"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 15  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042933"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show vlan private-vlan&lt;/b&gt; [&lt;b class="cBold"&gt;type&lt;/b&gt;]  &lt;/p&gt; &lt;a name="wp1054324"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; or  &lt;/p&gt; &lt;a name="wp1054325"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interfaces status&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1042935"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Verify the configuration. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1048056"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 16  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048058"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;copy running-config startup config&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048060"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Save your entries in the switch startup configuration file. To save the  private-VLAN configuration, you need to save the VTP transparent mode  configuration and private-VLAN configuration in the switch startup  configuration file. Otherwise, if the switch resets, it defaults to VTP  server mode, which does not support private VLANs. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p class="pAnchor"&gt;  &lt;/p&gt; &lt;a name="wp1044209"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; When you associate secondary VLANs with a primary VLAN, note this syntax  information: &lt;/p&gt; &lt;a name="wp1044210"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;The &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;  parameter cannot contain spaces. It can contain multiple  comma-separated items. Each item can be a single private-VLAN ID or a  hyphenated range of private-VLAN IDs. &lt;/p&gt; &lt;a name="wp1044211"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;The &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;  parameter can contain multiple community VLAN IDs but only one isolated  VLAN ID. &lt;/p&gt; &lt;a name="wp1044213"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Enter a &lt;em class="cEmphasis"&gt;secondary_vlan_list,  &lt;/em&gt;or use the &lt;b class="cBold"&gt;add&lt;/b&gt; keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; to associate secondary VLANs  with a primary VLAN. &lt;/p&gt; &lt;a name="wp1044214"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Use the &lt;b class="cBold"&gt;remove&lt;/b&gt;  keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; to clear  the association between secondary VLANs and a primary VLAN. &lt;/p&gt; &lt;a name="wp1044215"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;The command does not take effect until  you exit VLAN configuration mode. &lt;/p&gt; &lt;a name="wp1038824"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; This example shows how to configure VLAN 20 as a primary VLAN, VLAN 501  as an isolated VLAN, and VLANs 502 and 503 as community VLANs, to  associate them in a private VLAN, and to verify the configuration:  &lt;/p&gt; &lt;a name="wp1038825"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;configure terminal&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1038826"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;vlan 20&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1038827"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;private-vlan primary&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1043930"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;exit&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1043967"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;vlan 501&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1043968"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;private-vlan isolated&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044019"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;exit&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1043931"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;vlan 502&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1043932"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;private-vlan community&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044023"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;exit&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044027"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;vlan 503&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044028"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;private-vlan community&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044029"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;exit&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044034"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;vlan 20&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044035"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;private-vlan association 501-503&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044041"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-vlan)# &lt;b class="cBold"&gt;end&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045538"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;show vlan private vlan&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045412"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Primary Secondary Type              Ports&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045454"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;------- --------- ----------------- ------------------------------------------&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045478"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;20      501       isolated         &lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045479"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;20      502       community        &lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045480"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;20      503       community        &lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1045469"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;20      504       non-operational&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; &lt;a name="Configuring_a_Layer_2_Interface_as_a_Private-VLAN_Host_Port"&gt; &lt;/a&gt;  &lt;a name="wp1038990"&gt;&lt;/a&gt;&lt;a name="wpxref74288"&gt;&lt;/a&gt;&lt;a name="wpxref89442"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Configuring a Layer 2 Interface as a Private-VLAN Host Port &lt;/h3&gt; &lt;a name="wp1038991"&gt;&lt;/a&gt;&lt;a name="wpmkr1047722"&gt;&lt;/a&gt;&lt;a name="wpmkr1047725"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Beginning in privileged EXEC mode, follow these steps to configure a  Layer 2 interface as a private-VLAN host port and to associate it with  primary and secondary VLANs: &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1044609"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;Isolated and community VLANs are  both secondary VLANs. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1039035"&gt;&lt;/a&gt;&lt;p class="pAnchor"&gt; &lt;/p&gt; &lt;div align="left"&gt; &lt;table class="steptable" id="wp1038996table1038992" border="1" bordercolor="#808080" cellpadding="3" cellspacing="0" width="80%"&gt;   &lt;caption&gt;&lt;br /&gt;&lt;/caption&gt;   &lt;tbody&gt;&lt;tr align="left" valign="bottom"&gt;    &lt;th scope="col"&gt; &lt;a name="wp1038994"&gt;&lt;/a&gt;&lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1038996"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Command &lt;/div&gt; &lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1038998"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Purpose &lt;/div&gt; &lt;/th&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039000"&gt;&lt;/a&gt;&lt;p class="pCSF_CellStepFirst"&gt; Step 1  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039002"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;configure terminal&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039004"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039006"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 2  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039008"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;interface&lt;/b&gt; &lt;em class="cEmphasis"&gt;interface-id&lt;/em&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039010"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter interface configuration mode for the Layer 2 interface to be  configured. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039012"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 3  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039014"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;switchport mode private-vlan&lt;/b&gt; &lt;b class="cBold"&gt;host&lt;/b&gt;   &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039016"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Configure the Layer 2 port as a private-VLAN host port.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039018"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 4  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039020"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;switchport private-vlan host-association&lt;/b&gt; &lt;em class="cEmphasis"&gt;primary_vlan_id&lt;/em&gt; &lt;em class="cEmphasis"&gt;secondary_vlan_id&lt;/em&gt;   &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039022"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Associate the Layer 2 port with a private VLAN.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039024"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 5  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039026"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;end&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039028"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to privileged EXEC mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039030"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 6  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039032"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interfaces&lt;/b&gt; [&lt;em class="cEmphasis"&gt;interface-id&lt;/em&gt;]  &lt;b class="cBold"&gt;switchport&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039034"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Verify the configuration. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1048145"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 7  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048147"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;copy running-config startup config&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048149"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; (Optional) Save your entries in the switch startup configuration file. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p class="pAnchor"&gt;  &lt;/p&gt; &lt;a name="wp1039036"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; This example shows how to configure an interface as a private-VLAN host  port, associate it with a private-VLAN pair, and verify the  configuration: &lt;/p&gt; &lt;a name="wp1039037"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;configure terminal&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039038"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;interface fastethernet1/0/22&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039039"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;switchport mode private-vlan host&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039040"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;switchport private-vlan host-association 20 25&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039041"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;end&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055380"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;show interfaces fastethernet1/0/22 switchport&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055339"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Name: Fa1/0/22&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055340"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switchport: Enabled&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055341"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative Mode: private-vlan host&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055342"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Operational Mode: private-vlan host&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055343"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative Trunking Encapsulation: negotiate&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055344"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Operational Trunking Encapsulation: native&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055345"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Negotiation of Trunking: Off&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055346"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Access Mode VLAN: 1 (default)&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055347"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Trunking Native Mode VLAN: 1 (default)&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055348"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative Native VLAN tagging: enabled&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055349"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Voice VLAN: none&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055350"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan host-association: 20 (VLAN0020) 25 (VLAN0025)&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055351"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan mapping: none&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055352"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan trunk native VLAN: none&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055353"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan trunk Native VLAN tagging: enabled&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055354"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan trunk encapsulation: dot1q&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055355"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan trunk normal VLANs: none&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055356"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Administrative private-vlan trunk private VLANs: none&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055357"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Operational private-vlan:&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1055358"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;20 (VLAN0020) 25 (VLAN0025)&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;div class="pPreformatted"&gt;&lt;pre class="pPreformatted"&gt;&lt;a name="wp1055363"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a name="wp1055430"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;&lt;output&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; &lt;a name="Configuring_a_Layer_2_Interface_as_a_Private-VLAN_Promiscuous_Port"&gt;  &lt;/a&gt;  &lt;a name="wp1039067"&gt;&lt;/a&gt;&lt;a name="wpxref78410"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Configuring a Layer 2 Interface as a Private-VLAN Promiscuous Port &lt;/h3&gt; &lt;a name="wp1039069"&gt;&lt;/a&gt;&lt;a name="wpmkr1047723"&gt;&lt;/a&gt;&lt;a name="wpmkr1047724"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Beginning in privileged EXEC mode, follow these steps to configure a  Layer 2 interface as a private-VLAN promiscuous port and map it to  primary and secondary VLANs: &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1044583"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;Isolated and community VLANs are  both secondary VLANs. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1039113"&gt;&lt;/a&gt;&lt;p class="pAnchor"&gt; &lt;/p&gt; &lt;div align="left"&gt; &lt;table class="steptable" id="wp1039074table1039070" border="1" bordercolor="#808080" cellpadding="3" cellspacing="0" width="80%"&gt;   &lt;caption&gt;&lt;br /&gt;&lt;/caption&gt;   &lt;tbody&gt;&lt;tr align="left" valign="bottom"&gt;    &lt;th scope="col"&gt; &lt;a name="wp1039072"&gt;&lt;/a&gt;&lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1039074"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Command &lt;/div&gt; &lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1039076"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Purpose &lt;/div&gt; &lt;/th&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039078"&gt;&lt;/a&gt;&lt;p class="pCSF_CellStepFirst"&gt; Step 1  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039080"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;configure terminal&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039082"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039084"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 2  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039086"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;interface&lt;/b&gt; &lt;em class="cEmphasis"&gt;interface-id&lt;/em&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039088"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter interface configuration mode for the Layer 2 interface to be  configured. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039090"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 3  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039092"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;switchport mode private-vlan&lt;/b&gt; &lt;b class="cBold"&gt;promiscuous&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039094"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Configure the Layer 2 port as a private-VLAN promiscuous port.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039096"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 4  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039098"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;switchport private-vlan mapping&lt;/b&gt; &lt;em class="cEmphasis"&gt;primary_vlan_id&lt;/em&gt; {&lt;b class="cBold"&gt;add&lt;/b&gt; | &lt;b class="cBold"&gt;remove&lt;/b&gt;} &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039100"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Map the private-VLAN promiscuous port to a primary VLAN and to selected  secondary VLANs.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039102"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 5  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039104"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;end&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039106"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to privileged EXEC mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039108"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 6  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039110"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interfaces&lt;/b&gt; [&lt;em class="cEmphasis"&gt;interface-id&lt;/em&gt;]  &lt;b class="cBold"&gt;switchport&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039112"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Verify the configuration. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1048178"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 7  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048180"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;copy running-config startup config&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048182"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; (Optional) Save your entries in the switch startup configuration file. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p class="pAnchor"&gt;  &lt;/p&gt; &lt;a name="wp1039114"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; When you configure a Layer 2 interface as a private-VLAN promiscuous  port, note this syntax information: &lt;/p&gt; &lt;a name="wp1039115"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;The &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;  parameter cannot contain spaces. It can contain multiple  comma-separated items. Each item can be a single private-VLAN ID or a  hyphenated range of private-VLAN IDs. &lt;/p&gt; &lt;a name="wp1039116"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Enter a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;,  or use the &lt;b class="cBold"&gt;add&lt;/b&gt; keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list &lt;/em&gt;to map the secondary VLANs to  the private-VLAN promiscuous port. &lt;/p&gt; &lt;a name="wp1039117"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Use the &lt;b class="cBold"&gt;remove&lt;/b&gt;  keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; to clear  the mapping between secondary VLANs and the private-VLAN promiscuous  port. &lt;/p&gt; &lt;a name="wp1039118"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; This example shows how to configure an interface as a private-VLAN  promiscuous port and map it to a private VLAN. The interface is a member  of primary VLAN 20 and secondary VLANs 501 to 503 are mapped to it. &lt;/p&gt; &lt;a name="wp1039119"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;configure terminal&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039120"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;interface fastethernet1/0/2&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039121"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;switchport mode private-vlan promiscuous&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039122"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;switchport private-vlan mapping 20 add 501-503&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1039123"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;end&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt; &lt;/div&gt;&lt;div class="pPreformatted"&gt;&lt;pre class="pPreformatted"&gt;&lt;a name="wp1046253"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;a name="wp1046389"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Use the &lt;b class="cBold"&gt;show vlan private-vlan&lt;/b&gt; or the &lt;b class="cBold"&gt;show interface status&lt;/b&gt; privileged EXEC command to  display primary and secondary VLANs and private-VLAN ports on the  switch. &lt;/p&gt;  &lt;a name="Mapping_Secondary_VLANs_to_a_Primary_VLAN_Layer_3_VLAN_Interface"&gt;  &lt;/a&gt;  &lt;a name="wp1044399"&gt;&lt;/a&gt;&lt;a name="wpxref62680"&gt;&lt;/a&gt;&lt;h3 class="p_H_Head2"&gt; Mapping Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface &lt;/h3&gt; &lt;a name="wp1044556"&gt;&lt;/a&gt;&lt;a name="wpmkr1047726"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; If the private VLAN will be used for inter-VLAN routing, you configure  an SVI for the primary VLAN and map secondary VLANs to the SVI. &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1044401"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;Isolated and community VLANs are  both secondary VLANs. &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1044402"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Beginning in privileged EXEC mode, follow these steps to map secondary  VLANs to the SVI of a primary VLAN to allow Layer 3 switching of  private-VLAN traffic: &lt;/p&gt; &lt;a name="wp1044440"&gt;&lt;/a&gt;&lt;p class="pAnchor"&gt; &lt;/p&gt; &lt;div align="left"&gt; &lt;table class="steptable" id="wp1044407table1044403" border="1" bordercolor="#808080" cellpadding="3" cellspacing="0" width="80%"&gt;   &lt;caption&gt;&lt;br /&gt;&lt;/caption&gt;   &lt;tbody&gt;&lt;tr align="left" valign="bottom"&gt;    &lt;th scope="col"&gt; &lt;a name="wp1044405"&gt;&lt;/a&gt;&lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1044407"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Command &lt;/div&gt; &lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1044409"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Purpose &lt;/div&gt; &lt;/th&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1044411"&gt;&lt;/a&gt;&lt;p class="pCSF_CellStepFirst"&gt; Step 1  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044413"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;configure terminal&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044415"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter global configuration mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1044417"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 2  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044419"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;interface vlan&lt;/b&gt; &lt;em class="cEmphasis"&gt;primary_vlan_id&lt;/em&gt;   &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048288"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Enter interface configuration mode for the primary VLAN, and configure  the VLAN as an SVI. The VLAN ID range is 2 to 1001 and 1006 to 4094. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1044423"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 3  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044425"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;private-vlan mapping&lt;/b&gt; [&lt;b class="cBold"&gt;add&lt;/b&gt; | &lt;b class="cBold"&gt;remove&lt;/b&gt;] &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;   &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044427"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Map the secondary VLANs to the Layer 3 VLAN interface of a primary VLAN  to allow Layer 3 switching of private-VLAN ingress traffic.  &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1044429"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 4  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044431"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt;  &lt;b class="cBold"&gt;end&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044433"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Return to privileged EXEC mode. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1044435"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 5  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044437"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interface private-vlan mapping&lt;/b&gt;  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1044439"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Verify the configuration. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1048187"&gt;&lt;/a&gt;&lt;p class="pCSN_CellStepnext"&gt; Step 6  &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048189"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;copy running-config startup config&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1048191"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; (Optional) Save your entries in the switch startup configuration file. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p class="pAnchor"&gt;  &lt;/p&gt; &lt;div class="Note1B"&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/note.gif" alt="" /&gt;&lt;/div&gt;&lt;hr class="Cautn1table"&gt; &lt;a name="wp1047473"&gt;&lt;/a&gt;&lt;p class="pN1_Note1"&gt; &lt;b&gt;Note &lt;/b&gt;&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="1" height="2" /&gt;The &lt;b class="cBold"&gt;private-vlan  mapping&lt;/b&gt; interface configuration command only affects private-VLAN  traffic that is Layer 3 switched.  &lt;/p&gt; &lt;hr class="Cautn1table"&gt;&lt;a name="wp1044441"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; When you map secondary VLANs to the Layer 3 VLAN interface of a primary  VLAN, note this syntax information: &lt;/p&gt; &lt;a name="wp1044443"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;The &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt;  parameter cannot contain spaces. It can contain multiple  comma-separated items. Each item can be a single private-VLAN ID or a  hyphenated range of private-VLAN IDs. &lt;/p&gt; &lt;a name="wp1044444"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Enter a &lt;em class="cEmphasis"&gt;secondary_vlan_list,&lt;/em&gt;  or use the &lt;b class="cBold"&gt;add&lt;/b&gt; keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; to map the secondary VLANs to  the primary VLAN. &lt;/p&gt; &lt;a name="wp1044445"&gt;&lt;/a&gt;&lt;p class="pBu1_Bullet1"&gt; •&lt;img src="http://www.cisco.com/en/US/i/templates/blank.gif" alt="" border="0" width="19" height="2" /&gt;Use the &lt;b class="cBold"&gt;remove&lt;/b&gt;  keyword with a &lt;em class="cEmphasis"&gt;secondary_vlan_list&lt;/em&gt; to clear  the mapping between secondary VLANs and the primary VLAN. &lt;/p&gt; &lt;a name="wp1044446"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; This example shows how to map the interfaces of VLANs 501and 502 to  primary VLAN 10, which permits routing of secondary VLAN ingress traffic  from private VLANs 501 to 502: &lt;/p&gt; &lt;a name="wp1044447"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;configure terminal&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044448"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;interface vlan 10&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044449"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;private-vlan mapping 501-502&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044450"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config-if)# &lt;b class="cBold"&gt;end&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1044451"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch# &lt;b class="cBold"&gt;show interfaces private-vlan mapping&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1046905"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Interface Secondary VLAN Type&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1046906"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;--------- -------------- -----------------&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1046907"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;vlan10    501            isolated&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1046902"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;vlan10    502            community&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="Monitoring_Private_VLANs"&gt; &lt;/a&gt;  &lt;a name="wp1039328"&gt;&lt;/a&gt;&lt;a name="wpxref47750"&gt;&lt;/a&gt;&lt;a name="wpxref37221"&gt;&lt;/a&gt;&lt;a name="wpxref34664"&gt;&lt;/a&gt;&lt;a name="wpmkr1039327"&gt;&lt;/a&gt;&lt;h2 class="p_H_Head1"&gt; Monitoring Private VLANs &lt;/h2&gt;  &lt;a name="wp1039333"&gt;&lt;/a&gt;&lt;a name="wpmkr1047727"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;a onclick="'s_objectID="" href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1044789"&gt;Table 16-1&lt;/a&gt;  shows the privileged EXEC commands for monitoring private-VLAN  activity. &lt;/p&gt; &lt;a name="wp1039357"&gt;&lt;/a&gt;&lt;p class="pAnchor"&gt; &lt;/p&gt; &lt;div align="left"&gt; &lt;table id="wp1044789table1039334" border="1" bordercolor="#808080" cellpadding="3" cellspacing="0" width="80%"&gt;    &lt;caption&gt;&lt;a name="wp1044789"&gt;&lt;/a&gt;&lt;a name="wpxref97633"&gt;&lt;/a&gt;&lt;p class="pTC_TableCap"&gt; Table 16-1 Private VLAN Monitoring Commands &lt;/p&gt; &lt;/caption&gt;    &lt;tbody&gt;&lt;tr align="left" valign="bottom"&gt;    &lt;th scope="col"&gt;&lt;a name="wp1039342"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Command &lt;/div&gt; &lt;/th&gt;     &lt;th scope="col"&gt;&lt;a name="wp1039344"&gt;&lt;/a&gt;&lt;div class="pCH1_CellHead1"&gt; Purpose &lt;/div&gt; &lt;/th&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1054330"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interfaces status&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1054338"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Displays the status of interfaces, including the VLANs to which they  belongs. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039346"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show vlan private-vlan &lt;/b&gt;[&lt;b class="cBold"&gt;type&lt;/b&gt;] &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039348"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Display the private-VLAN information for the switch stack. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039350"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interface switchport&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039352"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Display private-VLAN configuration on interfaces. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt;   &lt;tr align="left" valign="top"&gt;&lt;td&gt;&lt;a name="wp1039354"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;show interface private-vlan mapping&lt;/b&gt; &lt;/p&gt; &lt;/td&gt; &lt;td&gt;&lt;a name="wp1039356"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; Display information about the private-VLAN mapping for VLAN SVIs. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;&lt;br /&gt;&lt;p class="pAnchor"&gt;  &lt;/p&gt; &lt;a name="wp1047383"&gt;&lt;/a&gt;&lt;p class="pB1_Body1"&gt; This is an example of the output from the &lt;b class="cBold"&gt;show vlan  private-vlan&lt;/b&gt; command: &lt;/p&gt; &lt;a name="wp1047452"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Switch(config)# &lt;b class="cBold"&gt;show vlan private-vlan&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1047396"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;Primary Secondary Type              Ports&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1047397"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;------- --------- ----------------- ------------------------------------------&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1047398"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;10      501       isolated          Fa2/0/1, Gi3/0/1, Gi3/0/2&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1047399"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;10      502       community         Fa2/0/11, Gi3/0/1, Gi3/0/4&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;a name="wp1047394"&gt;&lt;/a&gt;&lt;div class="pEx1_Example1"&gt; &lt;pre&gt;10      503       non-operational&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;&lt;div class="pPreformatted"&gt;&lt;pre class="pPreformatted"&gt;&lt;a name="wp1045623"&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/957187747233470584-3269992568933405480?l=nanomh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nanomh.blogspot.com/feeds/3269992568933405480/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://nanomh.blogspot.com/2010/05/configuring-private-vlans.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/3269992568933405480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/957187747233470584/posts/default/3269992568933405480'/><link rel='alternate' type='text/html' href='http://nanomh.blogspot.com/2010/05/configuring-private-vlans.html' title='Configuring Private VLANs'/><author><name>Nano Site</name><uri>http://www.blogger.com/profile/13761966561616515627</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/_UHGKvvTXl9A/S-6MjDmwyQI/AAAAAAAAAAM/U7dDqTesuwg/S220/Image455.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-957187747233470584.post-5801555202197925484</id><published>2010-05-14T22:19:00.000-07:00</published><updated>2010-05-14T22:22:21.667-07:00</updated><title type='text'>Virtual LAN</title><content type='html'>&lt;h1 id="firstHeading" class="firstHeading"&gt;Virtual LAN&lt;/h1&gt;    &lt;!-- /firstHeading --&gt;    &lt;!-- bodyContent --&gt;         &lt;!-- tagline --&gt;&lt;table class="metadata plainlinks ambox ambox-content" style=""&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="mbox-image"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="mbox-text" style=""&gt;&lt;small&gt;&lt;i&gt;&lt;/i&gt;&lt;/small&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;A &lt;b&gt;virtual LAN&lt;/b&gt;, commonly known as a &lt;b&gt;VLAN&lt;/b&gt;, is a group of  hosts with a common set of requirements that communicate as if they were  attached to the same &lt;a href="http://en.wikipedia.org/wiki/Broadcast_domain" title="Broadcast  domain"&gt;broadcast domain&lt;/a&gt;, regardless of their physical location. A  VLAN has the same attributes as a physical &lt;a href="http://en.wikipedia.org/wiki/Local_area_network" title="Local area  network"&gt;LAN&lt;/a&gt;, but it allows for end stations to be grouped together  even if they are not located on the same &lt;a href="http://en.wikipedia.org/wiki/Network_switch" title="Network  switch"&gt;network switch&lt;/a&gt;. Network reconfiguration can be done through  software instead of physically relocating devices.&lt;/p&gt; &lt;table id="toc" class="toc"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;div id="toctitle"&gt; &lt;h2&gt;Contents&lt;/h2&gt;  &lt;span class="toctoggle"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;ul&gt;&lt;li class="toclevel-1 tocsection-1"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Uses"&gt;&lt;span class="tocnumber"&gt;1&lt;/span&gt; &lt;span class="toctext"&gt;Uses&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-2"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Motivation"&gt;&lt;span class="tocnumber"&gt;2&lt;/span&gt; &lt;span class="toctext"&gt;Motivation&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-3"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Protocols_and_design"&gt;&lt;span class="tocnumber"&gt;3&lt;/span&gt; &lt;span class="toctext"&gt;Protocols and design&lt;/span&gt;&lt;/a&gt; &lt;ul&gt;&lt;li class="toclevel-2 tocsection-4"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Cisco_VLAN_Trunking_Protocol_.28VTP.29"&gt;&lt;span class="tocnumber"&gt;3.1&lt;/span&gt; &lt;span class="toctext"&gt;Cisco VLAN Trunking  Protocol (VTP)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li class="toclevel-1 tocsection-5"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Establishing_VLAN_memberships"&gt;&lt;span class="tocnumber"&gt;4&lt;/span&gt; &lt;span class="toctext"&gt;Establishing VLAN  memberships&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-6"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#Protocol_Based_VLANs"&gt;&lt;span class="tocnumber"&gt;5&lt;/span&gt; &lt;span class="toctext"&gt;Protocol Based VLANs&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-7"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#See_also"&gt;&lt;span class="tocnumber"&gt;6&lt;/span&gt; &lt;span class="toctext"&gt;See also&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-8"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#References"&gt;&lt;span class="tocnumber"&gt;7&lt;/span&gt; &lt;span class="toctext"&gt;References&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-9"&gt;&lt;a href="http://en.wikipedia.org/wiki/Virtual_LAN#External_links"&gt;&lt;span class="tocnumber"&gt;8&lt;/span&gt; &lt;span class="toctext"&gt;External links&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }  //]]&gt; &lt;/script&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Uses"&gt;Uses&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;VLANs are created to provide the segmentation services traditionally  provided by routers in LAN configurations. VLANs address issues such as  scalability, security, and network management. Routers in VLAN  topologies provide broadcast filtering, security, address summarization,  and traffic flow management. By definition, switches may not bridge IP  traffic between VLANs as it would violate the integrity of the VLAN  broadcast domain.&lt;/p&gt; &lt;p&gt;This is also useful if someone wants to create multiple &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_3:_Network_Layer" title="OSI model"&gt;Layer 3&lt;/a&gt; networks on the same &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_2:_Data_Link_Layer" title="OSI model"&gt;Layer 2&lt;/a&gt; switch. For example, if a &lt;a href="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol" title="Dynamic Host Configuration Protocol"&gt;DHCP&lt;/a&gt; server (which will  broadcast its presence) is plugged into a switch it will serve any host  on that switch that is configured to get its IP from a DHCP server. By  using VLANs you can easily split the network up so some hosts won't use  that DHCP server and will obtain &lt;a href="http://en.wikipedia.org/wiki/Link-local_address" title="Link-local  address"&gt;link-local addresses&lt;/a&gt;, or obtain an address from a  different DHCP server.&lt;/p&gt; &lt;p&gt;Virtual LANs are essentially &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_2:_Data_Link_Layer" title="OSI model"&gt;Layer 2&lt;/a&gt; constructs, compared with IP &lt;a href="http://en.wikipedia.org/wiki/Subnetwork" title="Subnetwork"&gt;subnets&lt;/a&gt;  which are &lt;a href="http://en.wikipedia.org/wiki/OSI_model#Layer_3:_Network_Layer" title="OSI model"&gt;Layer 3&lt;/a&gt; constructs. In an environment employing  VLANs, a one-to-one relationship often exists between VLANs and IP  subnets, although it is possible to have multiple subnets on one VLAN or  have one subnet spread across multiple VLANs. Virtual LANs and IP  subnets provide independent Layer 2 and Layer 3 constructs that map to  one another and this correspondence is useful during the network design  process.&lt;/p&gt; &lt;p&gt;By using VLANs, one can control traffic patterns and react quickly to  relocations. VLANs provide the flexibility to adapt to changes in  network requirements and allow for simplified administration.&lt;/p&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Motivation"&gt;Motivation&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;In a legacy network, users were assigned to networks based on  geography and were limited by physical topologies and distances. VLANs  can logically group networks so that the network location of users is no  longer so tightly coupled to their physical location. Technologies able  to implement VLANs are:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Asynchronous_Transfer_Mode" title="Asynchronous Transfer Mode"&gt;Asynchronous Transfer Mode (ATM)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Fiber_Distributed_Data_Interface" title="Fiber Distributed Data Interface"&gt;Fiber Distributed Data  Interface (FDDI)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Ethernet" title="Ethernet"&gt;Ethernet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Fast_Ethernet" title="Fast  Ethernet"&gt;Fast Ethernet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Gigabit_Ethernet" title="Gigabit Ethernet"&gt;Gigabit Ethernet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/10_Gigabit_Ethernet" title="10  Gigabit Ethernet"&gt;10 Gigabit Ethernet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/HiperSockets" title="HiperSockets" class="mw-redirect"&gt;HiperSockets&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;h2&gt;&lt;span class="editsection"&gt;&lt;/span&gt;&lt;span class="mw-headline" id="Protocols_and_design"&gt;Protocols and design&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;The protocol most commonly used today in configuring virtual LANs is &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.1Q" title="IEEE 802.1Q"&gt;IEEE  802.1Q&lt;/a&gt;. The IEEE committee defined this method of multiplexing  VLANs in an effort to provide multivendor VLAN support. Prior to the  introduction of the 802.1Q standard, several proprietary protocols  existed, such as &lt;a href="http://en.wikipedia.org/wiki/Cisco_Systems" title="Cisco Systems"&gt;Cisco&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Cisco_Inter-Switch_Link" title="Cisco  Inter-Switch Link"&gt;ISL&lt;/a&gt; (Inter-Switch Link) and &lt;a href="http://en.wikipedia.org/wiki/3Com" title="3Com"&gt;3Com&lt;/a&gt;'s VLT  (Virtual LAN Trunk). Cisco also implemented VLANs over &lt;a href="http://en.wikipedia.org/wiki/FDDI" title="FDDI" class="mw-redirect"&gt;FDDI&lt;/a&gt; by carrying VLAN information in an &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.10" title="IEEE 802.10"&gt;IEEE  802.10&lt;/a&gt; frame header, contrary to the purpose of the &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.10" title="IEEE 802.10"&gt;IEEE  802.10&lt;/a&gt; standard.&lt;/p&gt; &lt;p&gt;Both ISL and IEEE 802.1Q tagging perform "explicit tagging" - the  frame itself is tagged with VLAN information. ISL uses an external  tagging process that does not modify the existing Ethernet frame, while  802.1Q uses a frame-internal field for tagging, and so does modify the  Ethernet frame. This internal tagging is what allows IEEE 802.1Q to work  on both access and trunk links: frames are standard Ethernet, and so  can be handled by commodity hardware.&lt;/p&gt; &lt;p&gt;The IEEE 802.1Q header contains a 4-byte tag header containing a  2-byte tag protocol identifier (TPID) and a 2-byte tag control  information (TCI). The TPID has a fixed value of 0x8100 that indicates  that the frame carries the 802.1Q/802.1p tag information. The TCI  contains the following elements:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Three-bit user priority&lt;/li&gt;&lt;li&gt;One-bit canonical format indicator (CFI)&lt;/li&gt;&lt;li&gt;Twelve-bit VLAN identifier (VID)-Uniquely ide
