Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
20 views

How to access legacy service from behind a reverse proxy

I have a set of services running in Docker containers and are all behind a reverse proxy. Some of those need to contact other non Docker services hosted on different machines. At the moment, Docker ...
1
vote
1answer
81 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 ...
0
votes
0answers
32 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 ...
0
votes
0answers
48 views

How is NAT punchthrough accomplished in p2p networks?

Say I have Peer A and Peer B. Peer B is a part of a P2P network with a DHT used for locating files. There are many other peers in the network. Peer A and Peer B are behind NAT. Not the same NAT, two ...
1
vote
1answer
58 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 ...
0
votes
1answer
19 views

Architecture for remote data collection using MySQL

I am working through a MySQL design issue. I have a server with a database of phone numbers used in nuisance calls, like robocallers. I also have remote clients that are provisioned. I want the remote ...
0
votes
1answer
143 views

Network programming (boost::asio), architecture and communication protocols

I'm trying to make a simple network application using boost::asio. I think that I understood the basic things like io_context, async functions etc, but I really don't know how to deal with buffers. ...
0
votes
1answer
200 views

non blocking udp socket send receive

I'm writing some embedded Linux software where we have two microprocessors on the same PCB and they communicate with each other using UDP through a switch that is embedded on the PCB. Each application ...
1
vote
0answers
54 views

Should I use gRpc in my business layer?

I'm moving from REST APIs to gRpc but having a hard time figuring out how to structure my logic. The basic layout of my solution is having a business layer/API and a few different front-ends (Windows ...
-4
votes
2answers
66 views

Should I use async for networking application/library [closed]

I decided to make an application, networking application, don't know what it has to do yet but mainly it should be a cross-client kind of like framework networking application/library. Since ...
2
votes
2answers
155 views

What is the term for a client that does things on behalf of the server?

We are starting to have a few projects that have a design where a web server needs access to services/devices (think database connections and specialized hardware) that are on a local network. Instead ...
-3
votes
1answer
159 views

Is my algorithm for determining whether a ipv4 is public or private correct? [closed]

I have just created a function which checks whether a ipv4 is public or not. I have not heavily tested it yet since it is kind of practically impossible to do so (because I do not know where to start)....
1
vote
0answers
115 views

Separating WebRTC Signal Server and Media (SFU) server

I'm working on a WebRTC VOIP product. I am not using peer-to-peer connections, but instead having clients connect to a SFU which distributes audio to everyone involved in a call. From my ...
0
votes
1answer
48 views

Optimising network data usage in vehicle tracker

I'm currently working on an Android application that broadcasts the location of the device every 5 seconds. Pseudo showing current app process: deviceLocation = getLocation() if (hasChanged(...
2
votes
2answers
286 views

How are transactions on ATMs and their banks typically synchronized?

There are points of failure: ATM gives money then send a deduction request to it's bank. What happens, if the request will fail? the user got the money but his account hasn't been deducted - fail. ...
1
vote
1answer
150 views

Theoretical: How Do Servers Handle Requests With No Spare Memory?

I'm trying to understand how servers handle many requests when they start to run out of RAM. Let's say you have a server with 1GB of idle RAM. Let's pretend it was bombarded with 1024 requests in 1 ...
0
votes
0answers
84 views

How to create a router-like configuration page on Raspberry PI?

We have a Raspberry PI (with raspbian OS) that runs some application, this application uses a local configuration file that contains some data like username, password, server url etc. We will provide ...
1
vote
1answer
241 views

Network Topology for ATM and POS Systems

I'm looking to understand the high-level architecture, topology, protocols and componentry of ATMs and POS systems work with banking institutions worldwide. I've read several half-way decent articles ...
0
votes
1answer
122 views

C# - How should I design my server? [closed]

I'm confused in designing a TCP server with C#. Where should I put my TCP Listener ? inside Program class or create Server class ? or ... Where should I start handling client ? from Listener accept ...
0
votes
1answer
139 views

Handling Networking on Android

While doing android development. There is really no clear way of doing network operations, Sending and receiving data. Currently I am handing it using HttpsURLConnection and having streams to build a ...
0
votes
2answers
215 views

What does it mean for two components to be connected?

It is my impression that in software engineering, a connection can mean many things depending on context and the level of abstraction at which some system is considered. I'm surprised no one has asked ...
1
vote
2answers
564 views

How do multi packet transmissions work with UDP?

I have been reading up on UDP connections and understand that UDP transmissions are "Best Effort", maybe your data will be received, maybe it won't, and if it is, it could be out of order. What I'm ...
2
votes
0answers
49 views

Layer below Service and NetworkingManager to handle received data

I'm in the early stages of building a cryptocurrency tracking app for iOS and looking for a scalable design. My question specifically relates to the element of the app which retrieves data from an API ...
0
votes
1answer
158 views

Is a URC (Uniform Resource Citation) synonymous with a Query String or Url Parameters?

Reading this: https://renenyffenegger.ch/notes/development/web/URI-URL-URN-IRI-URC URCs provide a set of attribute/value pairs that describe properties of URIs like authorship, publisher, ...
-1
votes
1answer
140 views

How to secure my browser application against malicious requests?

I'm working on an application which can be added to third party websites. This means that this app runs in the browsers of the users of a third party and I don't have control over what runs in their ...
2
votes
1answer
2k views

Can someone implement a custom network protocol?

So in networking class they taught us the OSI model, TCP, CDMA, congestion, frames, etc. What I would like to know if standards that have been around for 20-30 years like TCP, are burnt into today's ...
1
vote
1answer
69 views

Is there a simple way to call a method on an object in another program with a given id over TCP?

I'm working on a project where I have two programs which need to invoke methods on some of each other's objects. I do this by sending JSON objects over a TCP connection. These objects have a ...
0
votes
3answers
796 views

Calculate Web-application Acceptable use Bandwidth

I need to measure a web application average bit rate consumption to see what is the recommended bandwidth needed for the end-user to connect and use the web application with no performance issues from ...
-2
votes
1answer
159 views

How does Steam resume downloads without computing a partial hash?

The Steam Client application allows one to download games purchased through the associated Steam account. A typical modern game uses quite a bit of disk space (in the order of 50-70 GB), so it is not ...
-1
votes
2answers
119 views

Peer-to-peer UDP collaborative syncing possible?

I'm developing an Android application where they want to have track multiple patient's vitals (current HR, SPO2, Respiration, etc.) in real-time with each patient having a large form that represents ...
0
votes
1answer
77 views

Multi-user data driven desktop application for RDPs on a network

I'm currently making an desktop application for the company I work for. The goal of the application is to control the flow of a manufacturing process and it will be used by 5-7 user (working of remote ...
2
votes
1answer
598 views

Scaling tcp/ip socket server applications

I have been trying to understand how one would scale an application utilizing tcp/ip sockets for client server communication. For example in the simple diagram below: +------------+ | ...
-3
votes
1answer
89 views

more then one device has same globle ip still internet is working… how?

i have a static IP from my ISP(for eg-> 123.202.21.45). i have configured my router with that Static IP, and my laptop is connected with that router and its ip is 123.202.21.45. works great!! but ...
1
vote
0answers
168 views

Server design: How should the server communicate with the rest of the program?

I've been trying to learn how to handle network input in C++ (using asio for networking). Right now I'm trying to build a program which should be able to receive commands and data from a client ...
-1
votes
2answers
150 views

Bandwidth Congestion in a Large Distributed System

I've been working on a large distributed system typically with over 10,000 clients living on a single network (LAN) all accessing a central set of API's in the cloud. Not exactly a challenging problem....
2
votes
3answers
300 views

Who or what decided conventional network timeout length?

I recently had a discussion with a coworker about network timeouts. This person wanted to have 1 second timeouts because they believe the optimal user experience is one where the user doesn't have to ...
0
votes
1answer
170 views

AMQP protocol and protocols in general

Recently I was reading the AMQP protocol specification from the official website, however, because this is my first protocol that I am trying to study in depth so couple of generic questions about ...
-4
votes
2answers
2k views

What is the importance of multithreading for network applications?

I wanna know what is the importance of multithreading in network applications? I have researched for a while but I didn't find references related to this specific topic.
3
votes
0answers
127 views

Some “intent”-related questions vis-à-vis Operational Transformation and CRDTs

I’m a little unclear on some questions relating to the "intent" part of concurrent collaboration algorithms (operational transformation and conflict-free replicated data types). Please help! Strings ...
1
vote
1answer
62 views

Looking for best way to implement BFD module

I'm going to implement a BFD module (for MPLS LSPs) in VxWorks and was wondering the following: Is it better to create and use a separate timer instance (<2048) per BFD session at the specified Tx ...
5
votes
3answers
2k views

Local client-server communication through files or TCP?

I have a Python client launching a subprocess in C++. The C++ program runs several threads that need to report results to the Python client. Knowing that both the Python client and the C++ ...
13
votes
2answers
21k views

TCP or UDP for a multiplayer game?

This is a question I see a lot. Most people say UDP is always better for real-time games than TCP. My understanding is that TCP tries to re-send packets over and over til the other side gets them ...
0
votes
1answer
146 views

What is the right way not to put passwords into end user program in java?

In the simplest form, our (near future) project consists of a end user program, that directly connects to databases and apis. This is obviously bad as then the end user program consists of sensitive ...
3
votes
2answers
719 views

A function as a parameter in UML

I was wondering what is the best way to represent a function that is passed as a parameter in UML. Because I want to create a sequence diagram of my current networking code in my Swift project and ...
1
vote
1answer
35 views

Using a second GAE app as backup

I have a Google App Engine app which is used by a small amount of users of a certain niche website. The app's only function is to get data about the user from that website's API, use that data to ...
3
votes
2answers
194 views

How can I avoid both objects A and B using class C (or is it unavoidable)?

I have the following setup: An object A running as a separate service with its own address (implemented via Pyro package in Python). An object B running as a separate service with its own address. ...
0
votes
2answers
2k views

Is SMTP client created in singleton scope or request scope?

In a web application, we create an email provider, which in turn creates an SMTP client: my question is whether we should create an SMTP client per request or create only one client and have it ...
2
votes
1answer
380 views

Possible ways of implementing an HTTP proxy with priority mechanism

I'm working on a TCP HTTP proxy: need to turn it in a priority proxy. The standard proxy used to deal every connection with a fork and the child process handles the connection. Now I've implemented a ...
1
vote
3answers
173 views

Multi-tenancy…as opposed to what?

In the last several years I keep hearing the term multi-tenancy being thrown around, and each time I Google its meaning it leaves me confused: (Wikipedia) : The term "software multitenancy" refers ...
0
votes
1answer
120 views

What is the way to keep track of mobile clients ip?

assume Service S want send data to mobile App in device A in arbitrary time without client interaction. what is best way to keep track of A IP? the only way i can think of is to run a service for ...