InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Are The Supported Routing Protocols Trex Can Emulate? |
|
Answer» For now, none. You can CONNECT your router to a switch with TRex and a MACHINE RUNNING routes. Then, inject routes USING route, and other traffic using TRex. For now, none. You can connect your router to a switch with TRex and a machine running routes. Then, inject routes using route, and other traffic using TRex. |
|
| 2. |
Can I Test Qos Using Trex? |
|
Answer» YES. USING Field ENGINE you can BUILD streams with different TOS and get statistic/latency/jitter per stream. Yes. Using Field Engine you can build streams with different TOS and get statistic/latency/jitter per stream. |
|
| 3. |
Are You Recommending Trex Hltapi? |
|
Answer» TRex has MINIMAL and basic support for HLTAPI. For SIMPLE USE cases (without latency and per stream statistic) it will probably work. For advanced use cases, there is no REPLACEMENT for native API that has full control and in most cases is simpler to use. TRex has minimal and basic support for HLTAPI. For simple use cases (without latency and per stream statistic) it will probably work. For advanced use cases, there is no replacement for native API that has full control and in most cases is simpler to use. |
|
| 4. |
Is There A Plan To Have Luajit As A Field Engine Program? |
|
Answer» It is a great IDEA to ADD it; we are looking for SOMEONE to CONTRIBUTE this support. It is a great idea to add it; we are looking for someone to contribute this support. |
|
| 5. |
Can I Have A Synchronization Between Different Stream Variable? |
|
Answer» No. each STREAM has its own, SEPARATE FIELD ENGINE PROGRAM. No. each stream has its own, separate field engine program. |
|
| 6. |
Can I Create Corrupted Packets? |
|
Answer» Yes. You can BUILD any PACKET you like using Scapy. HOWEVER, there is no way to create corrupted L1 fields (Like Ethernet FCS), SINCE these are usually handled by the NIC HARDWARE. Yes. You can build any packet you like using Scapy. However, there is no way to create corrupted L1 fields (Like Ethernet FCS), since these are usually handled by the NIC hardware. |
|
| 7. |
Is Multi-user Supported? |
|
Answer» Yes. MULTIPLE TREX clients can CONNECT to the same TRex SERVER. Yes. Multiple TRex clients can connect to the same TRex server. |
|
| 8. |
Some Of The Incoming Frames Are Of Type Sctp. Why? |
|
Answer» Default latency PACKETS are SCTP, you can OMIT the -l <num> from COMMAND line, or change it to ICMP. Default latency packets are SCTP, you can omit the -l <num> from command line, or change it to ICMP. |
|
| 9. |
I Want To Have More Active Flows On The Dut, How Can I Do This? |
|
Answer» After stretching TRex to its maximum CPS capacity, consider the FOLLOWING: DUT will have much more active flows in case of a UDP flow due to the nature of AGING (DUT does not know when the flow ENDS while TRex KNOWS). In order to artificially increase the length of the active flows in TRex, you can config larger IPG in the YAML file. This will cause each flow to last LONGER. Alternatively, you can increase PH in your PCAP file as well. After stretching TRex to its maximum CPS capacity, consider the following: DUT will have much more active flows in case of a UDP flow due to the nature of aging (DUT does not know when the flow ends while TRex knows). In order to artificially increase the length of the active flows in TRex, you can config larger IPG in the YAML file. This will cause each flow to last longer. Alternatively, you can increase PH in your PCAP file as well. |
|
| 10. |
Is There A Plan To Add Tcp Stack? |
|
Answer» Yes. We know this is SOMETHING many people would like, and are working on this. No ETA yet. Once a progress is MADE, we will ANNOUNCE it on the T REX sight and mailing list. Yes. We know this is something many people would like, and are working on this. No ETA yet. Once a progress is made, we will announce it on the T Rex sight and mailing list. |
|
| 11. |
Why The Performance Is Low? |
|
Answer» TREX performance depends on MANY factors:
TRex performance depends on many factors: |
|
| 12. |
Trex Is Connected To A Switch And I Observe Many Dropped Packets At Trex Startup? |
|
Answer» A switch might be configured with spanning tree ENABLED. TRex reset the PORT at startup, making the switch reset it side as well, and spanning tree can drop the packets until it stabilizes. Disabling spanning tree can help. On CISCO nexus, you can do that using spanning-tree port type edge You can ALSO start TRex with -k <num> flag. This will send packets for k seconds before starting the actual test, letting the spanning tree time to stabilize. This issue will be fixed when we consolidate “Stateful” and “Stateless” RPC. A switch might be configured with spanning tree enabled. TRex reset the port at startup, making the switch reset it side as well, and spanning tree can drop the packets until it stabilizes. Disabling spanning tree can help. On Cisco nexus, you can do that using spanning-tree port type edge You can also start TRex with -k <num> flag. This will send packets for k seconds before starting the actual test, letting the spanning tree time to stabilize. This issue will be fixed when we consolidate “Stateful” and “Stateless” RPC. |
|
| 13. |
Trex Traffic Does Not Show Up On Wire Shark, So I Can Not Capture The Traffic From The T Rex Port? |
|
Answer» TREX uses DPDK which TAKES OWNERSHIP of the ports, so using Wire shark is not possible. You can USE SWITCH with port mirroring to capture the traffic. TRex uses DPDK which takes ownership of the ports, so using Wire shark is not possible. You can use switch with port mirroring to capture the traffic. |
|
| 14. |
During Os Installation, Screen Is Skewed / Error "out Of Range" / Resolution Not Supported Etc? |
Answer»
|
|
| 15. |
What Is The Release Process? How Do I Know When A New Release Is Available? |
|
Answer» It is a CONTINUOUS INTEGRATION. The latest internal version is under 24/7 regression on few steps in our LAB. Once we have enough content we release it to GitHub (Usually every few weeks). We do not send an email for every new release, as it COULD be too frequent for some people. We announce big feature releases on the mailing list. You can always check the GitHub of course. It is a continuous integration. The latest internal version is under 24/7 regression on few steps in our lab. Once we have enough content we release it to GitHub (Usually every few weeks). We do not send an email for every new release, as it could be too frequent for some people. We announce big feature releases on the mailing list. You can always check the GitHub of course. |
|
| 16. |
I Want To Contribute To The Project? |
|
Answer» You have several ways you can help:
You have several ways you can help: |
|
| 17. |
I Have Xl710 Nic With 2 X 40 Gb/sec Ports And I Can Not Get Line Rate? |
|
Answer» XL710-da2 with 2 40G ports can REACH maximum of 40 MPPS/50Gb (total for all ports) and not 60 MPPS with SMALL PACKETS (64B) Intel had in mind redundancy use case when they produced a two port NIC. Card was not intended to reach 80G line rate. XL710-da2 with 2 40G ports can reach maximum of 40 MPPS/50Gb (total for all ports) and not 60 MPPS with small packets (64B) Intel had in mind redundancy use case when they produced a two port NIC. Card was not intended to reach 80G line rate. |
|
| 18. |
I Have Intel X710 Nic With 4 X 10 Gb/sec Ports And I Cannot Get Line Rate. |
|
Answer» X710da4fh with 4 10G ports can reach a maximum of 40MPPS (total for all ports) with 64 BYTES packets. (Can not reach the THEORETICAL 60MPPS limit). This is still better than the Intel x520 (82559 based) which can reach ~30MPPS for two ports with one NIC. X710da4fh with 4 10G ports can reach a maximum of 40MPPS (total for all ports) with 64 bytes packets. (Can not reach the theoretical 60MPPS limit). This is still better than the Intel x520 (82559 based) which can reach ~30MPPS for two ports with one NIC. |
|
| 19. |
What Is Better, Running Trex On Vm With Pci Pass Through Or Trex On Bare Metal? |
|
Answer» BARE metal will have lower latency and better performance. VM has the ADVANTAGES you NORMALLY GET when using VMs. Bare metal will have lower latency and better performance. VM has the advantages you normally get when using VMs. |
|
| 20. |
Can I Use Multiple Types Of Ports With The Same Trex Server Instance? |
|
Answer» No. All PORTS in the configuration file should be of the same NIC type. The workaround is to run SEVERAL TREX INSTANCES. No. All ports in the configuration file should be of the same NIC type. The workaround is to run several TRex instances. |
|
| 21. |
I Cannot See All 16 Ports Statistics On Trex Server? |
|
Answer» We PRESENT statistics only for first four ports because there is no console space. Global statistics (like TOTAL TX) is correct, taking into account all ports. You can USE the GUI/console or PYTHON API, to see statistics for all ports. We present statistics only for first four ports because there is no console space. Global statistics (like total TX) is correct, taking into account all ports. You can use the GUI/console or Python API, to see statistics for all ports. |
|
| 23. |
Is 100gbs Nic Sfp+ Supported? |
|
Answer» Mellanox Connectx 4 is SUPPORTED. Connect 3 and 5 STILL have issues (WIP to fix). Support for FM10K is under DEVELOPMENT. Mellanox Connectx 4 is supported. Connect 3 and 5 still have issues (WIP to fix). Support for FM10K is under development. |
|
| 24. |
Is Cisco Vic Supported? |
|
Answer» Yes. Since VERSION 2.12, with these limitations. Especially NOTE that a NEW firmware version is NEEDED. Yes. Since version 2.12, with these limitations. Especially note that a new firmware version is needed. |
|
| 25. |
Which Nics Are Supported / Why Not All Dpdk Supported Nics Supported By Trex? |
|
Answer» We are using specific NIC features. Not all the NICS have the capabilities we need. We have regression tests in our LAB for each recommended NIC. We do not claim to support NICs we do not have in our lab. You can FIND the LIST of supported NICs here. Look for “Supported NIcs” table. Notice that some unsupported NICs can also be used using --SOFTWARE command line argument. We are using specific NIC features. Not all the NICs have the capabilities we need. We have regression tests in our lab for each recommended NIC. We do not claim to support NICs we do not have in our lab. You can find the list of supported NICs here. Look for “Supported NIcs” table. Notice that some unsupported NICs can also be used using --software command line argument. |
|
| 26. |
Can Trex Run On A Hyper Visor With Virtual Nics? |
|
Answer» Yes. Currently there is a NEED for 2-3 cores and 4GB memory. For VM use case, memory requirement can be significantly reduced if NEEDED (at the cost of supporting less concurrent flows) by using the following CONFIGURATION.
Yes. Currently there is a need for 2-3 cores and 4GB memory. For VM use case, memory requirement can be significantly reduced if needed (at the cost of supporting less concurrent flows) by using the following configuration. Limitations: |
|
| 27. |
What Are The Stateful And Stateless Modes Of Operation? |
|
Answer» “Stateful” MODE is meant for testing networking gear which saves state per FLOW (5 tuple). Usually this is done by injecting pre-recorded CAPTURE files on pairs of interfaces of the DEVICE under TEST, and dynamically changing src/dst IP/port. “Stateless” mode is meant to test networking gear that does not manage any state per flow (instead operating on a per packet basis). This is usually done by injecting customized packet streams to the device under test. “Stateful” mode is meant for testing networking gear which saves state per flow (5 tuple). Usually this is done by injecting pre-recorded capture files on pairs of interfaces of the device under test, and dynamically changing src/dst IP/port. “Stateless” mode is meant to test networking gear that does not manage any state per flow (instead operating on a per packet basis). This is usually done by injecting customized packet streams to the device under test. |
|
| 28. |
Who Uses Trex? |
|
Answer» CISCO SYSTEMS, INTEL, Imperva, Mellanox, Vasona NETWORKS and MUCH more. Cisco systems, Intel, Imperva, Mellanox, Vasona networks and much more. |
|
| 29. |
What Are The Common Use Cases For Trex? |
Answer»
|
|
| 30. |
What Is Trex? |
|
Answer» TREX is fast realistic OPEN source traffic generation tool, RUNNING on STANDARD Intel processors, based on DPDK. It SUPPORTS both stateful and stateless traffic generation modes. TRex is fast realistic open source traffic generation tool, running on standard Intel processors, based on DPDK. It supports both stateful and stateless traffic generation modes. |
|