ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Linux I/O(NIU) Performance Test
    Protocols/IP_TCP_SCTP_DIAMETER_HTTP 2020. 7. 29. 11:26

     

    When you need to test real bandwidth performance between Linux base servers, it's so useful!

     

    <Speed check>

    You can check your NIC speed.

    # ethtool enp0s3                                  // enp0s3 is example interface name.
    Settings for enp0s3:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            MDI-X: off (auto)
            Supports Wake-on: umbg
            Wake-on: d
            Current message level: 0x00000007 (7)
                                   drv probe link
            Link detected: yes

     

     

    <Server>

    You need 'nmap-ncat' for this test in a server side.

     

    #sudo yum install nmap-ncat -y

    #sudo nc -l 22333 > /dev/null

     

    Now, the server is ready. Let's move on a client side.

     

     

    <Client>

    You are going to send a 1GiByte file to the server.

     

    #dd if=/dev/zero bs=1G count=1 | nc 192.168.1.x 22333         // IP is example, you should command server IP

    1+0 records in
    1+0 records out
    1073741824 bytes (1.1 GB, 1.0 GiB) copied, 7.83713 s, 137 MB/s

     

    1073741824 bytes (1.1 GB, 1.0 GiB) copied

    You should know what is different with GB and GiB.

    You can calculate the storage and file volume on Google.

    www.google.com/search?client=firefox-b-d&q=1GiB

     

    7.83713 s

    it took as long as 7.8s for Client to send 1GiB to Server.

     

    137 MB/s

    the speed was 137 MegaByte/s

    'Protocols > IP_TCP_SCTP_DIAMETER_HTTP' 카테고리의 다른 글

    Ping process  (0) 2019.10.03
    Installing Wireshark on CentOS6.7  (0) 2019.10.03

    댓글

Designed by Tistory.