Sockets - Bandwidth Issue - Linux

This is a discussion on Sockets - Bandwidth Issue - Linux ; I am into an application, that has multiple threads, each with multiple sockets. I have many high capacity gateways and i'll be sending/receiving lot of icmp msgs. I know that i am not running into any traffic shaping issues but ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Sockets - Bandwidth Issue

  1. Sockets - Bandwidth Issue

    I am into an application, that has multiple threads, each with
    multiple sockets. I have many high capacity gateways and i'll be
    sending/receiving lot of icmp msgs. I know that i am not running into
    any traffic shaping issues but i am not able to get traffic more that
    1MBps. I use raw sockets to send packets and ICMP sockets to receive
    (send sock and receiving sock are different). I running app as root,
    still not able get higher bandwidth. Any leads/hints to get more icmp
    bandwidth is much appreciated. Thank you.

  2. Re: Sockets - Bandwidth Issue

    On Sep 16, 6:16*am, Devi wrote:

    > I am into an application, that has multiple threads, each with
    > multiple sockets. I have many high capacity gateways and i'll be
    > sending/receiving lot of icmp msgs. I know that i am not running into
    > any traffic shaping issues but i am not able to get traffic more that
    > 1MBps. I use raw sockets to send packets and ICMP sockets to receive
    > (send sock and receiving sock are different). I running app as root,
    > still not able get higher bandwidth. Any leads/hints to get more icmp
    > bandwidth is much appreciated. Thank you.


    You need to figure out what the limiting factor is. Also, what do you
    mean by "get traffic"? Is that how much you see on the wire or how
    much your code reports that it has sent?

    DS

  3. Re: Sockets - Bandwidth Issue

    On Sep 16, 11:16*pm, Devi wrote:
    > I am into an application, that has multiple threads, each with
    > multiple sockets. I have many high capacity gateways and i'll be
    > sending/receiving lot of icmp msgs. I know that i am not running into
    > any traffic shaping issues but i am not able to get traffic more that
    > 1MBps. I use raw sockets to send packets and ICMP sockets to receive
    > (send sock and receiving sock are different). I running app as root,
    > still not able get higher bandwidth. Any leads/hints to get more icmp
    > bandwidth is much appreciated. Thank you.


    What type of system is it (CPU, Network card/chip ...) ? On embedded
    systems I have noticed that the limiting factor to be the actual
    processing of packets. This is because all layers up from DataLink
    layer is handled by SW and requires CPU time.
    Other limiting factors could be :
    - HUB/Switch
    - DMA status of your network device
    - Errors on your network device
    - Heavily loaded CPU

+ Reply to Thread