Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited bytes are sent only when using BulkSend app with QuicSocket #24

Open
inayatalikhan opened this issue Nov 2, 2022 · 0 comments

Comments

@inayatalikhan
Copy link

Hi,
I am trying to send 2GB bytes with BulkSend app using QuicSocket however the app stops sending data after sending a few hundred thousand bytes (approx 14600 Quic packets). Is there any issue with the Quic implementation or it's me doing something wrong?
I used the code from quic-variants-comparison-bulksend.cc

Thank you

uint16_t port = 50000; // well-known echo port number

Address sinkLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port));

ApplicationContainer clientApps;
ApplicationContainer serverApps;
// applications client and server

  AddressValue remoteAddress (InetSocketAddress (interfaces.GetAddress (1), port));
  BulkSendHelper ftp ("ns3::QuicSocketFactory", Address ());
  ftp.SetAttribute ("Remote", remoteAddress);
  ftp.SetAttribute ("SendSize", UintegerValue (1400));
  ftp.SetAttribute ("MaxBytes", UintegerValue (10000000));   // = 2147483648;     //2GB file
  clientApps.Add(ftp.Install (terminals.Get (0)));
  PacketSinkHelper sinkHelper ("ns3::QuicSocketFactory", sinkLocalAddress);
  sinkHelper.SetAttribute ("Protocol", TypeIdValue (QuicSocketFactory::GetTypeId ()));
  serverApps.Add(sinkHelper.Install (terminals.Get (1)));

serverApps.Start (Seconds (1.0));
clientApps.Stop (Seconds (50.0));
clientApps.Start (Seconds (4.0));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant