1 Router, 2 expansion card, multiples SFP types and interfaces inheriting multiples atributes... #11909
Replies: 3 comments 7 replies
-
Hi, did you tried to use the {module} variable? This will take the position field of the module-bay in the device. When I understand correct then you want to add SFPs as modules? But adding a module to an module is not possible. |
Beta Was this translation helpful? Give feedback.
-
Netbox's model of 'interfaces' is simplistic, and does not handle the full detail you're looking for around (Q)SFPs. What you should do is:
That is, whilst what you want is
what Netbox provides is:
For the case where one QSFP module has an MPO port with 8 fibres (say), but still represents one logical interface (e.g. 100G), then you use the ability of Netbox to have a variable number of connections at each end: e.g. you create a single "cable" which has one "interface" connection at the QSFP interface end, and 8 "frontport" connections at the ODF end. For the case where one QSFP module is visible to the OS as multiple interfaces (e.g. 4 x 25G) with a breakout cable, then you need to create additional interfaces in Netbox to represent those 4 interfaces. You create them by hand, after inserting the "module", and you can associate them with the physical port by using the "parent" interface association. Again, a QSFP breakout cable would be modelled as connecting to one "interface" at the QSFP end, and either four "interfaces" or eight "frontports" at the other end. A direct MPO connection between two QSFP interfaces, which doesn't go via an ODF, would be modeled as a single cable with a single interface connection at both ends - even though internally the cable carries 8 fibre strands, and even though in reality it plugs into the outer port on the QSFP module, not directly into the QSFP slot of the switch/router. (Unless it's a DAC of course). This model certainly has limitations. It mixes the concepts of a physical socket (e.g. a QSFP port), an interface (e.g. four 25G interfaces sharing the same QSFP port) and a fibre strand (e.g. separate TX and RX strands on one interface); it doesn't allow accurate end-to-end tracing between interfaces in these more complex scenarios. However it is simple to understand, and good enough for many use cases. It works because Netbox does not perform any validation of connectors and matings: that is, a cable in Netbox does not have any physical connectors defined, and can mate with any type of interface or port. You should not be afraid of manually adjusting the device by adding or removing interfaces to it after the modules have been inserted. After all, this is what you would do for virtual interfaces (e.g. loopback interfaces, vlan subinterfaces etc) |
Beta Was this translation helpful? Give feedback.
-
Like many others, I am trying to get my head around this modeling problem. Cable-tracing is an important requirement for us. One of the devices I am trying to model is https://evertz.com/products/NATX-32/64-100G - it has QSFP-DDs (at 200GbE, not 400GbE) which support 8x channels of 10/25GbE as well as 2x 100GbE. Each QSDFP-DD is managed as a group of 8 10/25GbE "ports". From the QSFP-DDs the cabling variably
From the ODF they variably exit as MPO or 4x LC and back to racks via more ties and then often break out at the racks in MPO-LC panels. The rack panels and ODF are fairly-obviously RearPort - FrontPort models. So far @candlerb's solution seems to be the best one for the NATX QSFP-DDs but cable-tracing is an important requirement for us. I saw #10037 (Interfaces table, dropdown menu: "Add child interface" option) and pondered if a 100GbE QSFP could own 4x virtual 25GbE Interfaces but I suppose a cable trace would not honor the Port Lanes, or even trace to a virtual connection in any case. That feels like "wring way, go back". Is the best/only modeling solution for the QSFP-DD that breaks into, say 1x 100GbE + 4x 10/25GbE to pretend it is all of those connectors? Should it also go through a pseudo device that represents the physical QSFP-DD connection to the ties, ODF etc. ? Edit: dunno why this disappeared from the Wiki but here's the long-gone FAQ on breakout cables. https://github.com/netbox-community/netbox/wiki/Data-Model-Limitations/_compare/1f7b6961b9e9093ebad8bcf611c073d978733ec1...07275f26a2a7dd71e7fb212387be14477ebb44e5?diff=unified - not applicable any more? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Solution for (x)SFP on expansion board in modular equipment.
Using a Huawei NE800 M8 router as a reference.
Scenario: 1 Router with 8 slots for expansion cards, two expansion cards, some types of SFP+ modules of 3 different types (SFP+ twisted pair, SFP+ WDM Simplex and SFP+ duplex).
I have 2 problems.
1st Model the expansion cards so that the interfaces are identified according to the position of the slot where the card was inserted. For example, card X contains 10 SFP+ ports (0-9) and has been inserted into slot 7, the ports are identified in the system as Xgigabit 0/7/[0-9] (F/S/P). The Y card contains 2 QSFP28 ports and being inserted into slot 3, the ports are identified as 100Gigabit 0/3/[0-1]. In this case, the modules option is not useful because each interface of the board mentioned above is not a “complete” interface, since the type and number of connections is intrinsically linked to the SFP module installed in the port (it can be twisted pair, a single fiber , even two fibers and up to 12 fibers in an MPO connector) with the same interface designation in the system. And each board also doesn't work in isolation (like the example of blade servers in the documentation), so it would need to be a module that accepts adding other modules (inception). How to model the Router and the boards so that each board has the second digit of the interface identification according to the position in which the board was inserted in the router (F/S/P identified frame)?
2º Model the (x)SFP ports as modules so that these modules represent the interface according to the module. Example: in port Xgigabit 0/7/0 an SFP+ module for twisted pair was inserted, in port X 0/7/4 an SFP+ WDM module with a single fiber was inserted, in port X 0/7/9 a Module was inserted Duplex (two-fiber) SFP+ therefore uses 2 strands on a single interface. How to model these “variable” interfaces according to the used module?
Summary: I need the router to have slots for the card to be automatically associated with its position (Frame/Slot/Port) and for the interfaces associated with that card to be slots for the interface connection to be relative to the module inserted in it (twisted pair, one fiber, two fibers or more).
Original em português....
Solução para (x)SFP em placa de expansão em equipamento modular.
Usando como referência um roteador Huawei NE800 M8.
Cenário: 1 Router com 8 slots para placas de expansão, duas placas de expansão, alguns tipos de módulos SFP+ de 3 tipos diferentes (SFP+ par trançado, SFP+ WDM Simplex e SFP+ dúplex).
Tenho 2 problemas.
1º Modelar as placas de expansão para que as interfaces sejam identificadas de acordo com a posição do slot em que a placa foi inserida. Por exemplo, a placa X contém 10 portas SFP+ (0 a 9) e foi inserida no slot 7, as portas são identificadas no sistema como Xgigabit 0/7/[0-9] (F/S/P). A placa Y contém 2 portas QSFP28 e sendo inserida no slot 3, as portas são identificadas como 100Gigabit 0/3/[0-1]. Nesse caso a opção módulos não é útil porque, cada interface da placa acima citada não é uma interface “completa” pois, o tipo e a quantidade de conexões é intrinsecamente ligado ao módulo SFP instalado na porta (podendo ser par trançado, uma única fibra, mesmo duas fibras e até 12 fibras num conector MPO) sendo a mesma designação de interface no sistema. E cada placa também não funciona isoladamente (como o exemplo de servidores blade da documentação), logo precisaria ser um módulo que aceite adicionar outros módulos (inception). Como modelar o Router e as placas para que cada placa tenha o segundo dígito da identificação da interface de acordo com a posição em que a placa fora inserida no router (frame no identificado F/S/P)?
2º Modelar as portas (x)SFP como módulos que esses módulos representem a interface de acordo com o módulo. Exemplo: na porta Xgigabit 0/7/0 foi inserido um módulo SFP+ para par trançado, na porta X 0/7/4 foi inserido um módulo SFP+ WDM com uma única fibra, na porta X 0/7/9 foi inserido um Módulo SFP+ dúplex (duas fibras), portanto, usa 2 cordões em uma única interface. Como modelar essas interfaces “variáveis” de acordo com o módulo usado?
Resumo: preciso que o router tenha slots que a placa seja automaticamente associado à sua posição (Frame/Slot/Porta) e que, as interfaces associadas a essa placa sejam slots que a conexão da interface seja relativa ao módulo nela inserido (par trançado, uma fibra, duas fibras ou mais).
Imagens
The router NE800 M8 (fame + cards) / O roteador (frame + placas) NE8000 M8
Position and slot names / Posição e nomenclatura dos slots
SFPs
SFP twisted pair / Par trançado
SFP Simplex
SFP Duplex / Dúplex
SFP MPO
Beta Was this translation helpful? Give feedback.
All reactions