
SFP, SFP+, SFP28, QSFP+, QSFP28—these optical module specifications have similar appearances and names, often causing confusion. This article clarifies the differences in speed, appearance, channels, distance, and usage in a table, and explains whether they can be mixed, helping you quickly choose the right specifications for your network. Beyond the surface-level naming, the real decisions you face every day—sfp vs sfp+ for a 10G uplink, sfp vs sfp28 for a 25G leaf, qsfp vs qsfp28 for a 40G-to-100G migration, or whether a 100G port can breakout into 4×25G—come down to electrical lane structure, IEEE 802.3 PHY type, and switch ASIC support. This guide is written from the perspective of an engineer who has provisioned thousands of these modules across Cisco, Arista, Juniper, HPE, and MikroTik fabrics, and it gives you the dBm power budgets, real-world reach, power draw, and mixing rules you need to specify with confidence.
Understand All Differences at a Glance
Every module in the SFP and QSFP families is governed by a Small Form-factor Pluggable Multi-Source Agreement (SFF MSA) document, which fixes the mechanical envelope, the electrical edge connector, and the management interface (the SFF-8472 / SFF-8636 digital diagnostics, or DDM/DOM). Because the MSA is shared, modules of different speeds look nearly identical—the difference lives almost entirely in the serializer/deserializer (SerDes) lane rate and the IEEE 802.3 PHY each module implements. The summary table below is the fastest way to orient yourself before we drill into each comparison.
| Specification | Speed | Appearance | Channels | Typical Distance | Sanoc Products |
|---|---|---|---|---|---|
| SFP | 1G | Small | 1 | 0.5–80km | 1000BASE SFP |
| SFP+ | 10G | Small (same as SFP) | 1 | 0.3–80km | 10G SFP+ |
| SFP28 | 25G | Small (same as SFP) | 1 | 0.1–10km | 25G SFP28 |
| QSFP+ | 40G | Large | 4×10G | 0.1–40km | 40G QSFP+ |
| QSFP28 | 100G | Large (same as QSFP+) | 4×25G | 0.1–40km | 100G QSFP28 |
The IEEE 802.3 and SFF MSA Standards Behind Each Form Factor
Each speed grade maps to a specific IEEE 802.3 clause and a form-factor MSA, and knowing this mapping removes most of the guesswork from interoperability:
- SFP (1G) — 1000BASE-X PHYs defined in IEEE 802.3z (1000BASE-SX/LX) and 1000BASE-T copper variants; mechanical/electrical per the SFP MSA with SFF-8472 diagnostics.
- SFP+ (10G) — 10GBASE-R PHYs from IEEE 802.3ae (SR/LR/ER/ZR); the SFP+ MSA (SFF-8431) defines the 10.3125 Gbps single-lane electrical interface (SFI).
- SFP28 (25G) — 25GBASE-R PHYs from IEEE 802.3by; a single 25.78 Gbps NRZ lane in the same SFP mechanical envelope, often requiring RS-FEC (Reed-Solomon Forward Error Correction) on longer copper or marginal fiber links.
- QSFP+ (40G) — 40GBASE-R PHYs from IEEE 802.3ba (SR4/LR4); four 10.3125 Gbps lanes per the QSFP+ MSA (SFF-8436).
- QSFP28 (100G) — 100GBASE-R PHYs from IEEE 802.3bm (SR4/LR4) and 802.3cd-era variants; four 25.78 Gbps NRZ lanes per the QSFP28 MSA (SFF-8665 / SFF-8636 management).
The pattern is consistent: the SFP family is always one electrical lane, and the QSFP family is always four electrical lanes. That single structural fact explains almost every breakout, density, and compatibility behavior discussed below.
Quantified Comparison: Power Budget, Reach, Power Draw, and Lanes
The table below consolidates the measured optical and electrical characteristics our test bench records for the most common variants. “Spec reach” is the IEEE/MSA worst-case rating; “measured reach” reflects clean single-mode plant with low connector loss in our lab. Power-budget figures are typical link budgets (Tx min output minus Rx sensitivity) in dB.
| Variant | Lanes | Lane Rate | Spec Reach | Measured Reach (lab) | Link Budget | Typical Power Draw |
|---|---|---|---|---|---|---|
| 1000BASE-SX (SFP) | 1 | 1.25G | 550 m (OM2) | ~600 m OM3 | ~7.5 dB | ~0.5 W |
| 1000BASE-LX (SFP) | 1 | 1.25G | 10 km | ~12 km | ~9 dB | ~0.6 W |
| 10GBASE-SR (SFP+) | 1 | 10.3G | 300 m (OM3) | ~400 m OM4 | ~2.4 dB | ~0.7 W |
| 10GBASE-LR (SFP+) | 1 | 10.3G | 10 km | ~11 km | ~6.2 dB | ~1.0 W |
| 10GBASE-ER (SFP+) | 1 | 10.3G | 40 km | ~42 km | ~10.5 dB | ~1.5 W |
| 25GBASE-SR (SFP28) | 1 | 25.78G | 70–100 m (OM4) | ~100 m OM4 | ~1.9 dB | ~1.0 W |
| 25GBASE-LR (SFP28) | 1 | 25.78G | 10 km | ~10 km | ~6.4 dB | ~1.2 W |
| 40GBASE-SR4 (QSFP+) | 4 | 10.3G | 100 m (OM3) | ~150 m OM4 | ~1.5 dB/lane | ~1.5 W |
| 40GBASE-LR4 (QSFP+) | 4 (CWDM) | 10.3G | 10 km | ~10 km | ~6.7 dB | ~3.5 W |
| 100GBASE-SR4 (QSFP28) | 4 | 25.78G | 70–100 m (OM4) | ~100 m OM4 | ~1.9 dB/lane | ~2.5 W |
| 100GBASE-LR4 (QSFP28) | 4 (LAN-WDM) | 25.78G | 10 km | ~10 km | ~6.3 dB | ~3.5 W |
Two practical takeaways: first, as lane rate climbs (1.25G → 25.78G NRZ), the per-lane optical budget shrinks, which is why 25G and 100G short-reach links are far less forgiving of dirty connectors than 1G. Second, QSFP modules draw 2–5× the power of an SFP, so a fully populated 32-port 100G QSFP28 spine has a very different thermal and PSU profile than a 48-port SFP28 leaf—something to budget for at the rack level, not just the port level.
SFP vs SFP+ vs SFP28
The three have identical appearances and use the same SFP slots, with differences only in speed: SFP=1G, SFP+=10G, SFP28=25G. Most high-speed slots are backward compatible (25G slots often accept 10G/1G), but low-speed slots do not support high-speed modules. Confirm the maximum speed of the switch port before selecting.
sfp vs sfp+: The 1G-to-10G Decision
When engineers ask “sfp vs sfp+,” they are almost always deciding an uplink or server-NIC speed. SFP is 1G (1000BASE-X); SFP+ is 10G (10GBASE-R). The connector, cage, and SFF-8472 management are shared, so an SFP+ port is mechanically able to seat a 1G SFP. Whether it links depends on the switch: most modern 10G SFP+ ports run a 1G SFP at 1000BASE-X, but the port often must be told to negotiate at 1G (auto-speed or a forced speed 1000). The reverse never works—a 1G-only SFP cage cannot drive the 10.3 Gbps SerDes an SFP+ module needs. For greenfield builds, SFP+ is the safer choice because it covers both 10G and (on most platforms) 1G, giving you a single SKU that downshifts.
sfp vs sfp28: Why 25G Replaced 10G at the Leaf
The “sfp vs sfp28” question is the modern access-layer dilemma. SFP28 delivers 25G on a single lane (IEEE 802.3by) in the exact same physical size as SFP/SFP+. The industry moved to 25G because it is the natural single-lane building block of 100G (4×25G), so a 25G leaf and a 100G spine share the same SerDes generation—cleaner signal integrity, lower cost per bit, and trivial breakout. An SFP28 port is typically multi-rate: it will run SFP28 (25G), SFP+ (10G), and often SFP (1G) modules, auto-detecting the inserted module’s rate. This makes SFP28 ports the most flexible single-lane cages available, which is why they dominate AI/cloud server access today.
Backward Compatibility Rules Within the SFP Family
Backward compatibility flows downward, never upward, and is gated by the port ASIC, not the module:
- A 25G SFP28 port usually accepts 25G / 10G / 1G modules.
- A 10G SFP+ port usually accepts 10G / 1G modules, but never 25G.
- A 1G SFP port accepts only 1G modules.
Two caveats from the field: (1) some 25G ports require RS-FEC be enabled for 25G to link, and disabled (or “FEC off”) for 10G/1G—a mismatch here is the single most common “module won’t come up” ticket; (2) a few low-cost 10G switches lock the port to 10G only and will not downshift to 1G, so always check the platform’s speed-negotiation matrix before standardizing on a downshift strategy.
SFP+ vs QSFP+ vs QSFP28
The key difference is “Single Channel vs Four Channels”: The SFP family (SFP/SFP+/SFP28) is single-channel, compact, and has high port density, suitable for access layers; the QSFP family (QSFP+/QSFP28) contains 4 channels and high bandwidth, suitable for backbone/spine. 100G QSFP28 can break out to 4×25G SFP28, which is a standard pairing for leaf-spine architectures.
sfp+ vs sfp28 vs the QSFP Family: Choosing a Lane Architecture
The “sfp+ vs sfp28” comparison sits entirely inside the single-lane world—same cage, same density, just 10G vs 25G. Stepping up to QSFP changes the architecture: you trade 1 lane for 4. A QSFP+ aggregates four 10G lanes into 40G; a QSFP28 aggregates four 25G lanes into 100G. The four-lane structure is what gives QSFP its higher per-port bandwidth and its native ability to break out. The trade-off is physical size and power: a QSFP cage is roughly twice the footprint of an SFP cage and draws 2–5× the power, so you fit fewer of them per RU. The design rule of thumb: use single-lane SFP-family cages where you want maximum port count (server access), and four-lane QSFP cages where you want maximum bandwidth per port (spine uplinks).
qsfp vs qsfp28: 40G vs 100G in the Same Cage
“qsfp vs qsfp28” is the 40G-to-100G migration question. Both are QSFP-form-factor, four-lane modules and they are mechanically identical—a QSFP28 module physically fits a QSFP+ cage. The difference is the lane rate: QSFP+ runs four 10.3 Gbps lanes (40G total), QSFP28 runs four 25.78 Gbps lanes (100G total). A port is “QSFP28-capable” only if its ASIC SerDes can clock at 25G per lane. Most QSFP28 ports are dual-rate and will also run a QSFP+ (40G) module by clocking the lanes down to 10G; the reverse—a QSFP28 module in a 40G-only QSFP+ port—will not reach 100G because the host SerDes tops out at 10G/lane. When in doubt, read the port’s supported-speeds output (show interface transceiver on most NOS) before ordering.
Breakout in Depth: QSFP28 → 4×SFP28
Breakout is the QSFP family’s defining superpower and the backbone of every leaf-spine design. Because a 100G QSFP28 is four independent 25G lanes, you can fan it out into four separate 25G links:
- 100G QSFP28 → 4×25G SFP28 — one spine port feeds four 25G leaf/server connections (DAC, AOC, or split fiber via MPO-to-4×LC).
- 40G QSFP+ → 4×10G SFP+ — the previous-generation equivalent, fanning a 40G port into four 10G links.
- 100G QSFP28 → 2×50G — a less common split used on platforms supporting 50G PAM4 lanes.
Breakout requires three things to align: a host port that supports breakout mode (configured, e.g., port-group breakout 4x25G), a physically split medium (a breakout DAC/AOC or an MPO trunk with a fan-out cassette), and matching FEC settings on both ends. A 32-port 100G QSFP28 spine configured for 4×25G breakout effectively becomes 128 ports of 25G—the math that makes high-radix spines economical. For the cabling, our DAC copper and AOC breakout assemblies are pre-terminated for exactly this topology.
First-Hand Selection Notes from the Field
The specifications above tell you what is possible; this section captures what we have learned actually deploying these modules at scale.
Real Switch-Port Compatibility, Not Just MSA Compliance
Every Sanoc module is MSA-compliant, but MSA compliance only guarantees the mechanical and electrical interface—it does not guarantee the host will accept the module’s EEPROM identity. Cisco, Arista, Juniper, and HPE each read the SFF-8472/8636 vendor and part-number fields and match them against an internal qualified-optics list. This is why a correctly coded compatible module matters: the same 10GBASE-LR optics must present SFP-10G-LR to a Cisco port, 10GBASE-LR to an Arista port, and the Juniper-style identity to a Junos port. Sanoc programs the EEPROM (free coding) to the target platform, so the module is recognized exactly as the OEM part would be—no service unsupported-transceiver overrides required.
Mixing Modules on a Live Fabric
You will routinely mix module types on one switch, and that is fine—each port is independent. The rules that actually bite are per-link, not per-switch: both ends of a single link must agree on speed, on FEC mode, and on optical type (you cannot pair an SR transmitter with an LR receiver). A common real-world mix is a 32-port QSFP28 spine where 24 ports run native 100G to other spines/leaves and 8 ports run 4×25G breakout to server racks—perfectly valid, because breakout is configured per port-group. The only mixing that fails is trying to force a port above its ASIC’s lane rate (a 25G module in a 10G-only port).
Cost and Lifecycle: Where the Money Actually Goes
On a per-gigabit basis, 25G SFP28 and 100G QSFP28 are now cheaper than the 10G/40G generation they replace, because they ride the same high-volume 25G SerDes. The hidden costs are elsewhere: QSFP modules consume more power and generate more heat (driving PSU and cooling sizing), and breakout cabling (MPO trunks, fan-out cassettes) adds first-install complexity. For short in-rack interconnects, DAC copper cables are dramatically cheaper and lower-power than optics and should be the default below ~3–5 m; AOC covers the 5–30 m gap where DAC becomes too thick and heavy. Reserve LR/ER optics for genuine campus and metro spans.
Lifecycle matters too. The 40G QSFP+ generation is effectively end-of-life for new builds—it costs roughly the same per port as 100G QSFP28 while delivering 60% less bandwidth, so the only reason to buy QSFP+ today is to match an existing 40G aggregation tier. If you are standardizing a new fabric, skip 40G entirely: build the access layer on 25G SFP28 and the spine on 100G QSFP28, and use breakout to bridge them. This single-generation SerDes alignment (25G everywhere) minimizes spare-part SKUs, simplifies FEC policy, and gives you a clean upgrade path to 400G later, since 400G QSFP-DD and OSFP modules reuse the same 8×50G PAM4 building blocks that grow naturally out of a 25G/100G foundation.
Common Misconceptions, Corrected
- “They look the same, so they’re interchangeable.” Appearance is shared by MSA; speed capability is set by the host ASIC. Identical look, different electrical lane rate.
- “QSFP is just a bigger SFP.” No—QSFP is four lanes, SFP is one. That structural difference, not size, is what enables breakout.
- “A 100G port will always run a 40G module.” Usually, but not guaranteed; dual-rate support is a platform feature. Check the supported-speeds matrix.
- “Compatible modules won’t be recognized.” They are, when the EEPROM is coded to the target platform—which is exactly what Sanoc does at no charge.
Which One is Right for You?
| Requirement | Recommended Specification |
|---|---|
| 1G Edge / FTTx Access | SFP (1000BASE) |
| 10G Enterprise Core / Server Uplink | SFP+ |
| 25G AI/Cloud Leaf Access | SFP28 |
| 40G Existing Backbone | QSFP+ |
| 100G Modern Data Center Spine | QSFP28 |
| Short-distance Interconnects within Rack | DAC Copper Cables / AOC |
Once you determine the specifications, check compatibility and selection details in the Compatible Optical Module Selection Guide; to understand the cost comparison between compatible and original products, see Complete Comparison of Compatible vs OEM.
Frequently Asked Questions
Can SFP and SFP+ be mixed on the same switch?
Yes—each port is independent, so one switch can run 1G SFP and 10G SFP+ modules in different ports simultaneously. Within a single link, however, both ends must agree: an SFP+ port can typically downshift to run a 1G SFP module (often after enabling 1G negotiation), but a 1G-only SFP port can never run a 10G SFP+ module. Backward compatibility flows from high speed to low, never the reverse.
Can a QSFP28 module be inserted into a QSFP+ slot?
Mechanically yes—they share the QSFP form factor. Electrically, it only reaches 100G if the host port’s SerDes supports 25G per lane (a true QSFP28-capable port). In a 40G-only QSFP+ port, the host lanes top out at 10G, so the QSFP28 module cannot run at 100G. Conversely, most QSFP28 ports are dual-rate and will happily run a 40G QSFP+ module by clocking the lanes down. Always confirm the port’s supported speeds before assuming.
What is the difference between sfp vs sfp28?
SFP is 1G (1000BASE-X, IEEE 802.3z); SFP28 is 25G (25GBASE-R, IEEE 802.3by). They share the identical SFP mechanical envelope and single-lane structure, but SFP28 runs a 25.78 Gbps lane versus SFP’s 1.25 Gbps. An SFP28 port is usually multi-rate and accepts 25G/10G/1G modules; a 1G SFP port accepts only 1G.
What is the difference between qsfp vs qsfp28?
Both are four-lane QSFP-form-factor modules. QSFP+ runs four 10.3 Gbps lanes for 40G total; QSFP28 runs four 25.78 Gbps lanes for 100G total. They are mechanically interchangeable, but a port must have a 25G-capable ASIC to reach 100G with a QSFP28. The “28” denotes the ~28 Gbps per-lane signaling envelope used for 25G NRZ.
How does QSFP28 breakout into 4×SFP28 work?
A 100G QSFP28 is internally four independent 25G lanes. When the host port is configured for breakout mode, those four lanes are exposed as four separate 25G interfaces, connected via a breakout DAC/AOC or an MPO trunk with a 4×LC fan-out. The result is one spine port serving four 25G leaf/server links—the standard leaf-spine pairing. Breakout requires host support, split media, and matching FEC on both ends.
Are SFP+ and SFP28 backward compatible?
The “sfp+ vs sfp28” relationship is downward-compatible at the port: a 25G SFP28 port typically runs a 10G SFP+ module, but a 10G-only SFP+ port cannot run a 25G SFP28 module because its single lane is limited to 10.3 Gbps. The most common pitfall when downshifting a 25G port is FEC: 25G often needs RS-FEC on, while 10G needs it off—mismatched FEC keeps the link down even though the optics are correct.
Do different specifications all comply with the SFF MSA?
Yes. SFP/SFP+/SFP28 share the SFP MSA family (SFF-8472 diagnostics), and QSFP+/QSFP28 share the QSFP MSA family (SFF-8636 management). Because the MSA is common, compatible modules from any vendor can operate on mainstream Cisco/Arista/Juniper/HPE/MikroTik devices once the EEPROM is correctly coded to the target platform’s expected identity.
Why does my 25G module fail to link even though it’s the right speed?
The top three field causes, in order: (1) FEC mismatch—one side has RS-FEC enabled and the other disabled; set both to the same mode. (2) Speed-negotiation lock—the port is forced to a speed the module doesn’t match; set auto or force the correct rate. (3) Dirty or high-loss connectors—25G NRZ has a tight optical budget (~1.9 dB on SR), so a smudged ferrule that a 1G link would tolerate will drop a 25G link. Inspect and clean the endface, then re-seat.
Should I use DAC, AOC, or optics for short links?
For sub-3–5 m in-rack interconnects (including breakout), DAC copper is cheapest and lowest-power. For 5–30 m where DAC becomes too thick and heavy, AOC gives optical flexibility without separate transceivers. Reserve discrete SR/LR optics with structured fiber for cross-rack, campus, and metro spans where DAC/AOC reach runs out.
Not sure which specification to choose?
Tell us your switch model and requirements, and the Sanoc engineering team will assist you in selecting the right option for free, providing free test samples compatible with Cisco/Arista/Juniper/HPE/MikroTik.
Related In-Depth Guides
sfp vs ethernet, SR vs LR, and the Questions Buyers Still Search
sfp vs ethernet: A Transceiver Is Not a Protocol
One of the most common searches in this space — “SFP vs Ethernet” — compares two things that live at different layers, so the honest answer is that they are not competing alternatives at all. Ethernet (IEEE 802.3) is the data-link protocol that defines how frames are formatted and carried; SFP is a form factor — a hot-pluggable module that physically carries an Ethernet (or Fibre Channel, or other) signal over copper or fiber. An SFP port on a switch is almost always an Ethernet port; the SFP simply lets you choose the medium and reach — 1000BASE-T copper, 1000BASE-SX/LX fiber, 10GBASE-SR/LR, and so on.
So the practical version of “SFP vs Ethernet” is really “SFP fiber/DAC vs the fixed RJ45 copper port”: both run Ethernet, but an SFP slot gives you fiber distance (up to 80 km with ZR optics), lower latency, electrical isolation, and the freedom to swap media without changing the switch. A fixed RJ45 port cannot do any of that. If your question is simply “should I use the SFP port or the built-in RJ45 port?”, the answer is reach and media: copper RJ45 for short, low-cost runs; SFP for fiber distance, noise immunity, and speeds beyond what Cat cabling supports.
sfp sr vs lr (and ER/ZR): Reach Variants Within One Speed
Beyond the SFP-versus-SFP+ speed question, engineers constantly compare reach variants — SR vs LR vs ER vs ZR — which exist inside nearly every speed grade. These suffixes describe the optical budget, wavelength, and fiber type, not the data rate:
| Variant | Fiber type | Wavelength | Typical reach | Best for |
|---|---|---|---|---|
| SR (Short Reach) | Multimode (OM3/OM4) | 850 nm | 300–400 m | In-rack & intra-data-center |
| LR (Long Reach) | Single-mode | 1310 nm | 10 km | Campus & building-to-building |
| ER (Extended Reach) | Single-mode | 1550 nm | 40 km | Metro links |
| ZR | Single-mode | 1550 nm | 80 km | Long-haul / DCI |
The rule of thumb: SR over multimode for in-rack and intra-data-center; LR over single-mode for campus and metro; ER/ZR for long-haul. You cannot mix an SR end with an LR end on the same link — both transceivers must match wavelength and fiber type, or the link will not come up. For the full optical-budget math (mW↔dBm, insertion loss, and how to read a power-budget table), see our single-mode vs multimode SFP guide and the optical power budget guide.
The Questions Buyers Still Search (Quick Answers)
Is SFP+ backward compatible with SFP?
Mostly yes, in the downward direction: most SFP+ ports will accept a 1G SFP module and negotiate down to 1G. The reverse is not true — a 1G-only SFP port will not run a 10G SFP+ module. Always confirm the switch’s per-port speed and the vendor compatibility matrix before mixing.
Can I put an SFP module in an SFP+ port?
Usually yes. An SFP+ cage is mechanically and electrically backward compatible with 1G SFP, so a 1000BASE module will link at 1G in an SFP+ port — provided the switch permits the port to down-shift in speed. A 10G SFP+ module, however, will not operate in a 1G-only SFP port.
What is the difference between SFP SR and LR?
SR runs over multimode fiber at 850 nm for roughly 300 m; LR runs over single-mode fiber at 1310 nm for up to 10 km. They are not interchangeable — both ends of a link must use the same variant and the matching fiber type. For longer reach within single-mode, step up to ER (40 km) or ZR (80 km).
Still deciding which module to standardize on? Start with our complete SFP module guide or talk to a Sanoc engineer for a free, compatibility-checked sample — we reply within four business hours.
Author: Sanoc Optical Communications Engineering Team — SANway Optoelectronics (Sanoc) is a Taiwan-based B2B optical transceiver manufacturer with its own factory in Hsinchu, specializing in compatible SFP / SFP+ / SFP28 / QSFP / QSFP28 modules for Cisco, Arista, Juniper, HPE, MikroTik and other major platforms. Winner of the 2025 Taiwan Excellence Award.
Technical basis: This article follows the MSA (Multi-Source Agreement), IEEE 802.3 Ethernet standards and ITU-T optical recommendations.
Quality & review: All Sanoc modules are bench-tested on enterprise-grade switches before shipping, with a 1-year warranty and immediate DOA replacement, without voiding your switch warranty. Contact our engineers with any questions.
Last updated: June 2026 | Educational content; engineering inquiries are replied to within 4 hours.
Further Reading: Expert Technical Columns
- Cisco Compatible SFP & SFP+: The Complete Compatibility Guide
- Do Compatible Transceivers Void Your Warranty? The Engineering Answer
- Arista, Juniper and HPE Aruba Compatible Transceivers: Platform Notes
- IEEE 802.3 and the MSA: What Transceiver Standards Actually Guarantee
- The 400G to 800G Data Center Transition: What IT Leaders Should Plan For
- AI Networking and the Optical Interconnect Surge: A Strategic View
- My SFP Link Won’t Come Up — A Field Troubleshooting Guide
- Inside the Sanoc QA Lab: How We Bench-Test Every Batch
- Why Taiwan Optical Manufacturing Matters for Your Supply Chain