2022 Developer Survey is open! Take survey.

Questions tagged [networking]

Use this tag in reference to any topic related to networking hardware and software. Do not use this tag in reference to personal networking like on social media.

Filter by
Sorted by
Tagged with
0 votes
1 answer
86 views

How to establish communication between devices on separate local networks?

There is a number of devices with Internet access but they are on LANs and have no public IPs. As time goes by more devices will be added. I need to be able to communicate with each device on demand (...
user avatar
1 vote
1 answer
77 views

Contextual Implementation Overhead vs Redundancy

I have an application that has use cases relative to where it is used. A local client and server, where all the server data is in a single location and the client queries that server knowing it is ...
user avatar
0 votes
0 answers
20 views

Reverse proxy between two backends

Our application is under heavy refactoring and we have now splitted it in 2 parts: a dockerized one made of web servers exposed behind a reverse proxy a legacy one with the core business interacting ...
user avatar
0 votes
1 answer
134 views

How does resuming downloads work?

I have seen download managers manage to resume HTTP downloads from where they stopped. How are they able to resume downloads? Is it related to the Accept-Range Header? Or are there other mechanisms ...
user avatar
0 votes
1 answer
76 views

What is the current practice in handling connection errors when the service "offers" multiple IP addresses?

With the current implementation of getaddrinfo(), I'm not given any information about a timeout of the IP address(es) returned. The library implementing that function has the information, but I haven'...
user avatar
0 votes
1 answer
32 views

Do I have to duplicate implementations on a client server udp application

I think the question is pretty straight forward but just to clarify, if the client and server are separate machines and need to be able to communicate with each other, does that mean that certain ...
user avatar
2 votes
3 answers
291 views

How do RPC systems deal with slow or flaky networks?

In an RPC (Remote Procedure Call) design, an interaction across the network is hidden behind a synchronous API that makes the network interaction look (to the rest of the local program) like "...
user avatar
0 votes
0 answers
51 views

Designing a simple 'site license' system for a software license

The aim is to have a system that would allow any user on any client machine of a home network to be able to use my software. Activations outside of this network would not be allowed. The base for this ...
user avatar
  • 109
0 votes
0 answers
52 views

Best design principles and approaches for a Windows desktop app used across a home network

Forgive this question if it's too 'newbie' or green - I'm not a professional developer or anything. I'm a hobbyist coder. I'm developing a windows desktop application which requires the following ...
user avatar
  • 109
10 votes
5 answers
2k views

How can I discover a local network appliance and connect to its built-in webserver?

This question is vaguely Internet of Things (IoT) related - but it's about the intra-net (no external internet connection in this scenario - we are air-gapped). Let's say I have a new smart household ...
user avatar
  • 213
0 votes
1 answer
107 views

Is Epoll/Multiplexing suitable to make network requests instead of "listen to" incoming requests?

I'm studying asynchronous IO, concurrent models for IO and how things works on windows, linux and most used web frameworks. I'm struggling on understanding why single-threaded event loops like the one ...
user avatar
0 votes
2 answers
198 views

Concurrent network I/O

Correct me if I am wrong, but regarding file I/O and concurrency, I understand that it makes no sense to read 2 files concurrently, since the data bus cannot be used simultaneously. This means that ...
user avatar
  • 103
-1 votes
1 answer
63 views

How should a client handle receiving data from a seperate thread?

There are plenty of tutorials on the internet on how to build a server that handles its clients through the creation of seperate threads, but there is no tutorials (at least I couldn't find any) on ...
user avatar
0 votes
4 answers
143 views

Where is network data stored while awaiting to be written to disk?

I think download rates may depend on these 3 factors: the Network Infrastructure (router, VPN, network card, towers), the RAM or cache, the Final Storage (HDD or SDD or whatnot). So we take this as an ...
user avatar
  • 133
2 votes
2 answers
133 views

Is there a reliable way to get get the fingerprint of a file hosted online, without fully downloading it?

Background Tertiary to this question, I have been building my own imageboard that prevents [for example] duplicate images from being downloaded again and again on behalf of the client. How I do this, ...
user avatar
  • 3,319
-2 votes
1 answer
63 views

Automated Encryption Keys

A question that I have been wondering for quite some time now, is how do two devices send encrypted data over the internet know the encryption keys to encrypt and decrypt the data, or more importantly ...
user avatar
1 vote
1 answer
111 views

How can an anycast IP address handle millions of RPS (requests per second)

So, in terms of systems design: given a highly scalable system being served through a single load-balanced anycast IP address, when that system receives a load in the order of (hundreds of) millions ...
user avatar
  • 119
2 votes
1 answer
100 views

Transfer a changing file over unreliable network

Summary: I want to transfer a file which changes over time, probably faster than the available connection allows a successful transfer. Setup: A remote device with bad network reliability and speed ...
user avatar
2 votes
4 answers
344 views

Reverse Load Balancer: Out Balancer?

Load balancing in is a common topic, but there isn't as much said about load balancing out. I may have an application that can prepare 1mm requests/s but is unable to send them all out at that speed ...
user avatar
  • 195
-3 votes
1 answer
162 views

Would structs be better than classes in this scenario?

I've recently been developing a networking application layer (or at least attempting to) for my game I've been working on. I think I've got a decent basic idea for the system now, but there is ...
user avatar
  • 117
1 vote
3 answers
397 views

How to handle database connection drops?

I'm currently writing some microservices, some of them communicating using RabbitMQ, RedisDB, Kafka and other communication streams. When any of those connections drop, I can't know for sure if a ...
user avatar
  • 131
0 votes
1 answer
37 views

Remotely monitoring bash terminal progress

I'm thinking of creating a system which would help me transfer the output of my bash terminal to an app in a remote device(like my Android smartphone). I was thinking of tackling this problem as just ...
user avatar
-2 votes
1 answer
51 views

A Recipe for Handling an AWS Network Request from Start to Finish at Global Scale

I have been reading the AWS documentation for a solid 2 weeks, and configuring a terraform system to deploy a multi-region network. I have it mostly wired up, but I am not sure I have accounted for ...
user avatar
  • 2,412
2 votes
0 answers
26 views

In a multi-region network, how do you organize requests through VPNs for atomic database transaction requirements?

I am trying to setup a multi-region (global) AWS system, where each region (which has multiple availability zones) has its own VPC. In theory these VPCs all use different portions of the private IP ...
user avatar
  • 2,412
-2 votes
1 answer
67 views

How the basic structure of a simple messaging app works?

How the messaging apps works? What is the Basic algorithm of it? I tried the following method to make a messaging app. I enters message Message converts to a text file Text text file uploads to the ...
user avatar
-1 votes
1 answer
392 views

Suitable networking protocols for low latency, one-packet messaging

What would be some suitable transport and application layer protocols for a secure payments network where low latency is a key goal? Here "low latency" means completing an encrypted ...
user avatar
3 votes
1 answer
150 views

The publish-subscribe pattern: garbage-collecting old subscriptions

I've been studying distributed systems design, in particular the Udi Dahan's class. He talks about the publish-subscribe pattern as a common pattern in messaging-oriented designs. There's obviously a ...
user avatar
  • 715
-1 votes
1 answer
53 views

How can we extend a packet in the case of an overflow?

I have asked this question in stackOverflow, but I guess that maybe softwareEngineering is more appropriate. (here is the question in stackOverflow) I have frames sized with a fixed size of 7 values (...
user avatar
  • 13
0 votes
1 answer
79 views

Finding the IP of a specific IoT device on a local network reliably without DNS?

I'm currently designing an IoT device that connects to a home network and an app to communicate over said network. I'm trying to find a way to reliably connect to the IoT device/ make the IoT device ...
user avatar
0 votes
1 answer
294 views

Modbus over TCP concurrency pattern

I'm trying to learn about MODBUS as a free-time project. It is a long standing desire to write my own driver in Golang. That being said, I'm now trying to design the concurrency model for device ...
user avatar
  • 111
1 vote
1 answer
62 views

Multiple webservices on a single port

I am developing a webservice, which offers different services, but currently under different ports. Existing services like GitHub or GitLab also several services, but I am wondering how they can ...
user avatar
-5 votes
1 answer
26 views

Implementing an intranet software in which client machines get push updates from a server?

I have an existing .net server infrastructure that resides in a company's intranet. Now for a new feature I'd like normal users (employees) to receive notifications on their machines when specific ...
user avatar
  • 91
2 votes
1 answer
153 views

Publisher-Subscriber architecture with central registry

Problem description Publisher-Subscriber architecture with a central registry where agents can either promote their capabilities or search for a given capability. The project must be developed with ...
user avatar
  • 129
-4 votes
2 answers
73 views

How do browsers isolate traffic within a single tab?

I know that browsers use a separate port for each tab. However, in each tab, there might be multiple scripts doing data transfer over the network. How does a browser makes sure that the data is ...
user avatar
1 vote
2 answers
302 views

TCP delayed acks vs Nagle's algorithm

When you have an application that suffers from the unfortunate interaction between TCP delayed ack and Nagle's algorithm, common solution offered is to turn off Nagle's algorithm. However, in general ...
user avatar
  • 651
-2 votes
1 answer
101 views

How do you implement an app autoupdate feature from scratch?

I am trying to imagine how Google Chrome automatically updates but have some questions: Is this against Apple's terms of service? I feel like I've seen somewhere that Chrome for MacOS isn't in the ...
user avatar
  • 2,412
-3 votes
1 answer
82 views

What exactly is HTTP/2 protocol

Saw below definition on https://http2.github.io/: What is HTTP/2? HTTP/2 is a replacement for how HTTP is expressed “on the wire.” It is not a ground-up rewrite of the protocol; HTTP methods, status ...
user avatar
  • 245
1 vote
1 answer
382 views

Are there still reasons to use DNS for load balancing?

I wanted to learn more about DNS, and I happened to have a copy of Computer Networking: A Top-Down Approach 4th Edition lying around. Section 2.5.1 (page 132) suggests using DNS as a load balancer: ...
user avatar
  • 131
-1 votes
1 answer
58 views

IP Whitelisting AWS consumers

If consumers of my API have their software on AWS, their ip address is subject to change if they are scaling their services horizontally (adding more machines). This means that I can't whitelist a ...
user avatar
  • 165
0 votes
1 answer
258 views

Prioritizing messages sent over a socket

I'm looking at the source code for a client - server program that communicates using TCP sockets. 5 connections are used to communicate, named very_slow, slow, medium, fast and very_fast. A socket is ...
user avatar
0 votes
2 answers
711 views

Where is the difference with client-socket port and server-socket port?

If we decided to create a (TCP) socket-server (for example) on port 12336 imagine it like a: socket.bind(12336) and then to create a (TCP) client-socket for it, like a: socket.connect("12.34.56.78"...
user avatar
  • 23
0 votes
1 answer
144 views

How does Packet Loss affect Ping (RTT) calculation?

I am storing my Ping records in a limited queue, and I also have a cumulative sum to get the average. I'm doing it like a window. My problem is this: Does it make sense that I have 5ms Ping with 98% ...
user avatar
4 votes
1 answer
251 views

(C++) Ideal design pattern for associating requests/responses on socket?

I'm working on my first big C++ project and while I understand the language I'm trying to learn elegant design patterns using it. I have some low-level networking over a UDP sockets API where each ...
user avatar
  • 151
2 votes
1 answer
129 views

Determinism for networked games

I am currently making a game project that will have players play together. And i am basically planning to do it by only sending player inputs and have each client run the simulation on the pretence ...
user avatar
  • 1,953
1 vote
1 answer
55 views

How HttpResponse is mapped back in case of dynamic IP?

I have dynamic IP provided by ISP. Say IP is x I type google.com in browser. Http request goes to google server IP changes to Y. How does http response comes back to my laptop/broswer when IP changed ...
user avatar
  • 1,856
-1 votes
1 answer
125 views

What would be a best design for a 'cloud relay' application? [closed]

I'd like to build a client/server application that doesn't require the client to open a port in its firewall for incoming connection requests. In other words, the clients will be able to communicate ...
user avatar
  • 223
0 votes
1 answer
209 views

What sort of data limit would make sense for pulling down all data vs autocomplete/pagination via ajax?

Imagine a page with an autocomplete textbox on it, to get Customer. I am wondering what sort of limit for record size makes sense in this day and age regarding whether all the customers should be ...
user avatar
  • 2,977
1 vote
1 answer
86 views

Approach to handle network breakdowns in application dealing with database?

I have an application that writes data to database. In case of network breakdowns, the connection to database gets lost & my db queries freezes the whole application. So, in order to make it ...
user avatar
  • 111
0 votes
0 answers
177 views

How to analyse the throughput of multithreaded client server programs?

I am practicing socket programming in C language. I have two codes - server and client (based on TCP) on two different laptops. The server forks a new process for every new request. For simulating ...
user avatar
2 votes
2 answers
888 views

How to design sequential requests to third-party APIs?

I need to implement the following flow: Back-end makes HTTP request to Service A, waits for a response from Service A, then makes HTTP request to Service B, waits for a response, then makes ...
user avatar

1
2 3 4 5