Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. UDP packet loss
Forum Updated to NodeBB v4.3 + New Features

UDP packet loss

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohit rai
    wrote on last edited by
    #1

    Hello,
    I am using UDP protocol for file tx.(100MB) from one pc to other pc. Payload is 1450(no of byes I read from file). Every time when I am transferring the 100 MB,2300 byes are loss at receiving end. If I will change the payload size, my data loss at receiving pc will change.

    Any one has idea about it. How can I resolve it?

    Thanks

    Regards,
    Mohit

    jsulmJ J.HilkJ JonBJ 3 Replies Last reply
    0
    • M Mohit rai

      Hello,
      I am using UDP protocol for file tx.(100MB) from one pc to other pc. Payload is 1450(no of byes I read from file). Every time when I am transferring the 100 MB,2300 byes are loss at receiving end. If I will change the payload size, my data loss at receiving pc will change.

      Any one has idea about it. How can I resolve it?

      Thanks

      Regards,
      Mohit

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mohit-rai First, you should show your code, else other can only guess what can be wrong.
      Why do you use UDP and not TCP? UDP does not guarantee that everything will arrive.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5
      • M Mohit rai

        Hello,
        I am using UDP protocol for file tx.(100MB) from one pc to other pc. Payload is 1450(no of byes I read from file). Every time when I am transferring the 100 MB,2300 byes are loss at receiving end. If I will change the payload size, my data loss at receiving pc will change.

        Any one has idea about it. How can I resolve it?

        Thanks

        Regards,
        Mohit

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @Mohit-rai said in UDP packet loss:

        Hello,
        I am using UDP protocol for file tx.(100MB) from one pc to other pc. Payload is 1450(no of byes I read from file). Every time when I am transferring the 100 MB,2300 byes are loss at receiving end. If I will change the payload size, my data loss at receiving pc will change.

        Any one has idea about it. How can I resolve it?

        Thanks

        Regards,
        Mohit

        have you verified that your datagram's length in smaller than the UdpSocket-buffer of your receiving & sending socket ?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        1
        • M Mohit rai

          Hello,
          I am using UDP protocol for file tx.(100MB) from one pc to other pc. Payload is 1450(no of byes I read from file). Every time when I am transferring the 100 MB,2300 byes are loss at receiving end. If I will change the payload size, my data loss at receiving pc will change.

          Any one has idea about it. How can I resolve it?

          Thanks

          Regards,
          Mohit

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Mohit-rai
          The point of using UDP is that you can & will "lose" UDP packets at receivers, so you wouldn't use it for "file transfer".

          1 Reply Last reply
          2
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            Can you try with file size of 10KB or 20KB ? Can you try with smaller payload size e.g read only 500 bytes of data and send it.
            Pay attention for debugs. Many times people are doing the read debug also. reading it somewhere also. ie. same message is read twice.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            1 Reply Last reply
            0
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on last edited by
              #6

              @Mohit-rai how did the issue go?. Are you able to solve this issue ? Do you still have the problem ?

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved