Giter Site home page Giter Site logo

twamp-gui's People

Contributors

demirten avatar vvidic avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twamp-gui's Issues

fraction part pf timestamp is no accurate

Fraction part of the time is not accurate as you take the time in milisec and multiply or divide by 4294.967296 which results in values 0-4,294,967 (multiply) or values > 1000 when dividing which is not the full 0-2^32 range nor mili values > 1000

My suggestion is to change:

define TWAMP_FLOAT_DENOM 4294967.296

Additionally in twamp_time TwampCommon::getTwampTime there are 2 calls to QDateTime::currentMSecsSinceEpoch(), as time changes between calls, I propose to make a single call

the suggestion is as follows:
struct twamp_time TwampCommon::getTwampTime()
{
struct twamp_time t;
qint64 tmp_time = QDateTime::currentMSecsSinceEpoch();
t.seconds = tmp_time / 1000 + TWAMP_BASE_TIME_OFFSET;
t.fraction = (tmp_time % 1000) * TWAMP_FLOAT_DENOM;
return t;
}

Responder Seems to leak memory

From email exchange:
mikeshev says:
The program seems to be leaking a significant amount of memory. After leaving TWAMP Responder up for about a day (on windows) it leaks about 500M of memory. If I clear logs or restart the process the memory goes back down to about 20MB (measured by windows Task Manager). Do you know of any fix for this? I do not have a Qt5 development environment,

Your Reply:
If GUI is not a problem for you, you can remove the pushing logs to the QT/QML interface. You can open an issue on github project, I can have a look at it if I can found a free time for this.

mikeshev:
I don't care that responses are shown in the GUI. At this point I'm more interested in have the program run for a longer period of time (at least 1 month - after which I reboot the Windows machine for patches anyways).

twamp-responder doesnt run on Windows7 Pro Service Pack 1

Hi there

I installed "TwampGuiInstaller-1.0.5" on Win 7 Pro SP1 but when I open twamp-responder it doesn't work properly, the windows doesn't show any information and just appear the border of the window but not buttons, logs or any other info. I have tried in others computer and it's work, so I suspect that can be a specific configuration on Windows (maybe), unfortunately I can not use the computer in which its works; and more than that, if great to know the issue in order to help to anothers.

twamp-responder

twamp not working over internet

Hi @ALL

I Setup Client in Public IP xx.xxx.xx.xx and enable the port forwarding on that IP, And I setup the responder on different IP xx.xx.xx.xx.

When I am trying to establish the connection TCP handshake is happen after that UDP packets are not going, it show error "No response receive".
image

Any plans for a CLI version?

Thanks for this great tool!
I would like to use TWAMP client/responder via scripts, so a CLI based version would be nice for this purpose.

Add FAQ or "How to use twamp-GUI" to website or readme

In particular, I struggled a little bit until I found out, it was firewall related.

I needed to

  1. On client device: allow twamp-gui in my Windows firewall (add it to allow in private network)
  2. Middleware: my primary router (fritzbox 7490), which my packets flow through, has to allow connected devices to open ports on their own
  3. On response device: Open following ports in the firewall:
    • twamp control listen port
    • twamp light udp listen port
    • open ports 40000 and 40001 (!) I only figured this out, because i saw this port being used in screenshots on the website

Another helpful note would be to clarify that the port specified in the Twamp Client has to be the same port as twamp control listen port and twamp light udp listen port in Twamp Responder

But thank you for this tool, it works nicely so far (made use of it in a small household. I do have full admin control over my small local area network, so at the end of the day, all problems setting it up could be solved). Great job! :-)

no response from server

I installed the windows client and did a quick test on our routers.

and I got this:

image

it looks the initial handshakes are fine but then there is no response to the pull.
I couldn't find any logs from the server, so wondering where is the issue...

Assets for the site

This issue open for the hold static assets for github pages, not related to twamp-gui codes itself

client
client-detail
twamp-responder
android

responder padding handling not according to spec in reflected TWAMP-Test messages

According to RFC5357 the padding handling with TWAMP-Test messages should be:
Note that the Session-Reflector Test packet formats are larger than the Sender's formats. The Session-Reflector SHOULD reduce the length of the Sender's Packet Padding to achieve equal IP packet payload lengths in each direction of transmission, when sufficient padding is present. The Session-Reflector MAY re-use the Sender's Packet Padding (since the requirements for padding generation are the same for each), and in this case the Session-Reflector SHOULD truncate the padding such that the highest-number octets are discarded.

To achieve this change line 368 in twamp_responder_worker.cpp to:

int payload = 0;
if (rc > (int)sizeof(struct twamp_message_reflector_unathenticated))
    payload = rc - (int)sizeof(struct twamp_message_reflector_unathenticated);

Not able to compile

Can you please help me, how to compile your repository?
I want to add few features to your application.

sender and receiver ports mixed in reponder

If sender and receiver ports are different in Request-Session message the responder will try to reflect TWAMP-Test packets to the receiver port of the Session-Sender (should be sender port). To fix this change lines 156-157 in twamp_responder_worker.cpp to:

            client->testUdpPort = qFromBigEndian(session->sender_port);
            sendAcceptSession(client, qFromBigEndian(session->receiver_port));

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.