12/25/2023 0 Comments Beaglebone black network speed testerThat’s fast! What’s more is this speed does not come at a cost to the main processor’s load. They function much like microcontrollers however, the two PRU cores on the BeagleBone Black operate at 200mhz with instructions executing on them at a fixed time of 5NS. Using a BeagleBone Black and the power of its two Programable Realtime Units (PRUs), the Internet Speedometer will not only test download times, but also output the speed results visually to the tricolor LED strip.īut what are PRUs and why use them? PRUs are quite possibly the coolest feature of the BeagleBone Black, and one that sets it apart from other single board computers. That’s where the Internet Speedometer can help. Modern Operating Systems provide utilities to track all the bits and bytes that pass over a network connection, but typically these tools lack obvious visualization. Monitoring network and internet speeds can be a major concern, especially in the case of LAN parties or video streaming. The table below shows the results we got for each buffer size tested.Monitor your network performance with Beaglebone Black. We got an average time of 0.479 ms for USB and 0.642 for Ethernet. When we send an echo message through ping, we notice that if we use USB communication, we’ll be 25% faster than using Ethernet. In our tests, we used an Ethernet patch cable and a certified USB 2.0 cable. The only difference will be the order: the server will receive and then resend the message. The server side of our TCP socket will be almost the same as the client one. We’ll end up with several txt files since we’re using different buffer sizes. To do so, we’ll save the output of our program in a separate text file. ![]() When running our socket, we need to save the result for creating a graph later on. The code used in this post is available on my GitHub:įor timing our socket, we’ll use the gettimeofday function as shown below: gettimeofday(&tempo_inicial, NULL) Īfter the processing is finished, we’ll calculate the time in ms using the following: tms = ( tempo_sec - tempo_sec)*1000000 If you want to learn more about this data transfer protocol, don’t hesitate to check out its RFC. A stream socket transmits data reliably, in order, and with out-of-band capabilities. Stream sockets are also called TCP socket. There are several tutorials available on the Internet to guide you on this process. ![]() For this reason, let’s also vary the buffer size and analyse its impact on the resultsīefore we start, it’s important that you know how to connect to your BeagleBone board through ssh. The buffer size is pivotal when dealing with data transfer. Let’s create a TCP Socket and use the BeagleBone Black with you computer to measure the throughput of each one of these protocols. AnalysisĪs stated at the beginning of this post, the goal here is to compare these two standards using a real-world application with embedded systems. The speed is also another advantage of this standard since it can reach up to 100 Mbit/s of throughput in each direction (full-duplex). Unlike USB cables, Ethernet’s can have up 100 m. It runs over two wire-pairs inside a category 5 or above cable. 10/100 Ethernetġ00BASE-TX is the protocol known as fast ethernet due to its high speed at the time of its release. ![]() While some industrial protocols can reach up to 100 m, the maximum length of a USB cable is 5 m. Another limitation of USB cables is the length. The current this version can handle is also limited to 5 A. The 2.0 version of this standard can reach speeds up to 480 Mbit/s (60 MB/s). The Universal Serial Bus (USB) 2.0 is an industry standard that establishes specifications for cables, connectors, and protocols.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |