devices(mikrotik): the CCR2004-1G-12S+2XS SFP+ cages run 1G, not 10G-only #2586

Merged
jaylouisw merged 1 commit from catalogue/1127-1152 into main 2026-11-27 12:39:21 +00:00
Owner

Supersedes #2582. Refs #2580.

devices/mikrotik/ccr2004-1g-12s-2xs.json declared all twelve SFP+ cages as speedCaps: [10000]. A 1G SFP in SFP+1 was refused as E_NO_COMMON_SPEED — the two ends shared media but no rate — while the hardware brings that link up happily.

The vendor says it in one sentence

MikroTik, MikroTik wired interface compatibility, section "Devices which SFP+ ports support 1G links":

CCR2004-1G-12S+2XS - All SFP+ interfaces can be used in 1G mode if required.

https://manual.mikrotik.com/docs/7.25/wired-connections/mikrotik-wired-interface-compatibility/

The same text is why ccr1036 and ccr2004-16g-2s already carry [1000, 10000]; this row was the odd one out. CAGE_SPEEDS['sfp+'] is [1000, 10000], so nothing in the engine had to move — the spec was narrowing a rate the cage already carries.

before after
portTemplate.speedCaps [10000] [1000, 10000]
1G SFP peer (canMate) E_NO_COMMON_SPEED link, negotiateSpeed = 1000
10G SFP+ peer 10000 10000

2.5G is stated too, and is deliberately not claimed

The same page, under "Devices which support 2.5G links in SFP/SFP+/SFP28 ports", says: "CCR2004-1G-12S+2XS - All SFP+ and SFP28 interfaces can be used in 2.5G mode if required."

That is not modelled, so it is not declared. No 2500BASE-X medium exists in the catalogue and no cage ladder (sfp+, sfp28) carries a 2.5G optical rate; a 2500 cap would advertise a rate the connector table cannot honour, and derivePortHardware() would then hand the port a speedCaps its own CAGE_SPEEDS disagrees with. Adding it means engine work — a 2.5G optic in MEDIA, a 2500 rung on the two optical ladders — which is not this stream. The spec's notes record the vendor sentence and why it is unmodelled, so the next pass does not have to re-derive it.

The two SFP28 cages are untouched: sfp28 already defaults to [1000, 10000, 25000] and the spec declares no caps of its own.

Test

test/mikrotik-ccr2004-1g-12s-2xs-sfp-rates.test.js, 24 assertions: the template declares its cage and both rates, SFP+1 and SFP+12 both train at 1G (the declaration is a template, not one port), a 1G SFP peer mates and negotiates 1000, a 10G peer still negotiates 10000, the SFP28 cages keep 1G/10G/25G, no 2500 appears in the template or the derived caps and no 2500BASE-X medium exists, and the notes still cite the compatibility page and quote the sentence.

Gates

  • node scripts/syntax-check.js — 571 files, all OK
  • node scripts/check-control-bytes.ts — clean
  • node scripts/audit-port-types.js — 0 contradictions; undeclared template ports 2190 (unchanged)
  • node scripts/audit-devices.js — 2359 models, 30,180 ports, 0 hard defects, 0 uncablable ethernet ports
  • node test/hardware-invariants.test.js — 26 passed, 0 failed
  • node scripts/regen-registry-doc.js — no diff (docs/DEVICE_REGISTRY.md regenerated, unchanged)
  • full suite: 487 suites, 16,350 assertions, 0 failed (2033.6 s)
Supersedes #2582. Refs #2580. `devices/mikrotik/ccr2004-1g-12s-2xs.json` declared all twelve SFP+ cages as `speedCaps: [10000]`. A 1G SFP in `SFP+1` was refused as `E_NO_COMMON_SPEED` — the two ends shared media but no rate — while the hardware brings that link up happily. ### The vendor says it in one sentence MikroTik, *MikroTik wired interface compatibility*, section **"Devices which SFP+ ports support 1G links"**: > **CCR2004-1G-12S+2XS** - All SFP+ interfaces can be used in 1G mode if required. https://manual.mikrotik.com/docs/7.25/wired-connections/mikrotik-wired-interface-compatibility/ The same text is why `ccr1036` and `ccr2004-16g-2s` already carry `[1000, 10000]`; this row was the odd one out. `CAGE_SPEEDS['sfp+']` is `[1000, 10000]`, so nothing in the engine had to move — the spec was narrowing a rate the cage already carries. | | before | after | |---|---|---| | `portTemplate.speedCaps` | `[10000]` | `[1000, 10000]` | | 1G SFP peer (`canMate`) | `E_NO_COMMON_SPEED` | link, `negotiateSpeed` = 1000 | | 10G SFP+ peer | 10000 | 10000 | ### 2.5G is stated too, and is deliberately not claimed The same page, under *"Devices which support 2.5G links in SFP/SFP+/SFP28 ports"*, says: *"CCR2004-1G-12S+2XS - All SFP+ and SFP28 interfaces can be used in 2.5G mode if required."* That is not modelled, so it is not declared. No `2500BASE-X` medium exists in the catalogue and no cage ladder (`sfp+`, `sfp28`) carries a 2.5G optical rate; a `2500` cap would advertise a rate the connector table cannot honour, and `derivePortHardware()` would then hand the port a `speedCaps` its own `CAGE_SPEEDS` disagrees with. Adding it means engine work — a 2.5G optic in `MEDIA`, a 2500 rung on the two optical ladders — which is not this stream. The spec's `notes` record the vendor sentence and why it is unmodelled, so the next pass does not have to re-derive it. The two SFP28 cages are untouched: `sfp28` already defaults to `[1000, 10000, 25000]` and the spec declares no caps of its own. ### Test `test/mikrotik-ccr2004-1g-12s-2xs-sfp-rates.test.js`, 24 assertions: the template declares its cage and both rates, `SFP+1` **and** `SFP+12` both train at 1G (the declaration is a template, not one port), a 1G SFP peer mates and negotiates 1000, a 10G peer still negotiates 10000, the SFP28 cages keep 1G/10G/25G, no `2500` appears in the template or the derived caps and no `2500BASE-X` medium exists, and the notes still cite the compatibility page and quote the sentence. ### Gates - `node scripts/syntax-check.js` — 571 files, all OK - `node scripts/check-control-bytes.ts` — clean - `node scripts/audit-port-types.js` — 0 contradictions; undeclared template ports 2190 (unchanged) - `node scripts/audit-devices.js` — 2359 models, 30,180 ports, 0 hard defects, 0 uncablable ethernet ports - `node test/hardware-invariants.test.js` — 26 passed, 0 failed - `node scripts/regen-registry-doc.js` — no diff (`docs/DEVICE_REGISTRY.md` regenerated, unchanged) - full suite: **487 suites, 16,350 assertions, 0 failed** (2033.6 s)
devices(mikrotik): the CCR2004-1G-12S+2XS SFP+ cages run 1G, not 10G-only
All checks were successful
CI / Typecheck (pull_request) Successful in 1m6s
CI / Test (Node 22) (pull_request) Successful in 1m13s
CI / Test (Node 24) (pull_request) Successful in 1m14s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke and Docker build (pull_request) Successful in 1m28s
CI / Arm auto-merge (pull_request) Successful in 3s
a0c7dfc5f2
All twelve SFP+ cages carried speedCaps [10000], so the simulator refused a 1G
SFP uplink with E_NO_COMMON_SPEED - a link the hardware forms without complaint.

MikroTik says so themselves. Wired interface compatibility, "Devices which SFP+
ports support 1G links": "CCR2004-1G-12S+2XS - All SFP+ interfaces can be used in
1G mode if required."
https://manual.mikrotik.com/docs/7.25/wired-connections/mikrotik-wired-interface-compatibility/

The sfp+ ladder already carries 1000, so this is a device fact the spec was
narrowing away, not an engine gap: [1000, 10000] makes the 1G module terminate
and leaves 10G untouched.

The same page also lists this model for 2.5G in its SFP+ and SFP28 cages. That
is deliberately not declared: no 2500BASE-X medium exists in the catalogue and
no cage ladder carries a 2.5G optical rate, so a 2500 cap would name a rate the
connector table cannot honour. It is recorded in the spec's notes as a known
gap rather than guessed into speedCaps.

test/mikrotik-ccr2004-1g-12s-2xs-sfp-rates.test.js (24 assertions) pins the
declaration, the 1G link, the surviving 10G link, the SFP28 defaults, the
absence of a 2.5G claim, and the citation.

Refs #2580. Supersedes #2582, whose only structural delta was this same line,
there without a citation.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-27 12:26:10 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-27 12:30:22 +00:00
jaylouisw deleted branch catalogue/1127-1152 2026-11-27 12:39:29 +00:00
Sign in to join this conversation.
No description provided.