Coder Social home page Coder Social logo

trex-java-sdk's People

Contributors

egorblagov avatar emil-gustafsson avatar ericsson-peiwuyang avatar hedjuo avatar hhaim avatar hongjiangeric avatar kisel avatar leomaateric avatar methodlevelanalyzer avatar mingyuaneric avatar ningning-chen avatar pavelagapov avatar shamrockeric avatar stanleywu51 avatar sumboid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trex-java-sdk's Issues

trex server v2.88 ZMQ API interface changes

Due to this issue, #636 there was a need to change the major API version to 5.0 (STL)

I will add the commit once it will be ready.

The high level changes from client side are:

  1. Client should keep the ZMQ SUB/PUB but there is no need to read from it the information. The events shoudl be read using REQ/RES channel
  2. Client must use a thread that pool the events using a new API get_async_events with session_id as an input. Each session will have a seperate queue for events. session_id is a unique number per session
  3. Python client pool every 200msec the events queue
  4. There is a new field in each event json called seq from type ```uint32``. Client could check that there is no missing events using this counter.

stop traffic does not contain field 'handler'

when i use the TrexClient method stopTraffic(int portIndex) i get JSON error respons from server(v2.29):
INFO : Call stop_traffic method.
INFO : JSON Req: {"method":"stop_traffic","id":"aggogxls","jsonrpc":"2.0","params":{"api_h":"Ptr5c4Rb","port_id":1}}
INFO : JSON Resp: [{"error":{"code":-32602,"message":"Bad paramters for method","specific_err":"field 'handler' is missing"},"id":"aggogxls","jsonrpc":"2.0"}]

Have i done something wrong or have something changed in recent version of trex or sdk?

[Question] Plan about ASTF support

Hi,
Current trex-java-sdk can supports stateless mode only.
But, we need to use java based ASTF APIs.

Q1. Do you have plan to support ASTF APIs in trex-java-sdk?
Q2. Do you have any additional information about ASTF RPC commands?
Current ASTF RPC command manual is not enough for us and referring the existing Python based ASTF API library code is time consuming job.

Thanks

Best Regards
Gwangmoon

how to use packet capture

Hi,
Im not sure if this should be here because it is not a issue more of a question how to use the packet capture in the sdk. Maybe i should ask this in the google trex group instead?
My problem is that i can't figure out or find any info how to use trex java sdk to get captured packets and do anything with them, this is how far i got:
CapturedPackets captureStream = trex.stopCapture(rxPort, captureId);
List capturedPackets = captureStream.getPkts();
System.out.print("First captured packet origin:" + capturedPackets.get(1).getOrigin());

But i want to see the complete packet and do checks on it like if it had expected vlan header.
How do i accomplish this?

Version mismatching issue after major API version update

Hi @hhaim
After major version update, Java API and TRex should have exactly same version.
It's really picky issue because we have too many Java client users with various versions of TRex server and Java APIs.
Currently, with this major update, the version of all Java client and TRex server should be synchronized at the same time.
It's hard to handle for large scaled distributed users.
We need temporary coexisting period before uplifting peers.
Maybe 2 options would be possible,

  1. Java API to support both(4.x, 5.x) versions according to the peer TRex server version.
  2. Allow option in TRex server to ignore mismatched version in TRex server side - of course, Java client should have no issue to connect any TRex server versions. If old Java client does not use async port, it'll have no issue to connect to new version of TRex server if TRex server do not reject old client versions.

Do you have any suggestion regarding this issue?

Example of VM usage

Hi,
Can you provide a simple example of how to use VM Instruction in Stream using SDK?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.