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
-1
votes
1answer
39 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 ...
0
votes
1answer
43 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 ...
0
votes
2answers
86 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"...
0
votes
1answer
40 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% ...
0
votes
0answers
28 views

Implementing SSO for a mobile app connecting to SharePoint

I am currently designing an architecture for a mobile app that renders content from an On-Premises SharePoint Server. The SP-Server sits inside the LAN and is not directly exposed to the internet. ...
3
votes
1answer
88 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 ...
2
votes
1answer
122 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 ...
1
vote
1answer
33 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 ...
-1
votes
1answer
69 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 ...
0
votes
1answer
70 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 ...
0
votes
0answers
21 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
46 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
53 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 ...
2
votes
2answers
110 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
20 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
394 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
934 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 ...
3
votes
0answers
106 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
74 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
163 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
164 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
138 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
52 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
431 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
154 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
503 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
130 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
186 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 ...
1
vote
2answers
292 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 ...
2
votes
2answers
1k 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 ...
3
votes
0answers
51 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
172 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 ...
3
votes
1answer
3k 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
70 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
1k 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
181 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
140 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
85 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 ...
3
votes
1answer
775 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
91 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
votes
2answers
163 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
423 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
189 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 ...
-3
votes
2answers
3k 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
128 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
64 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++ ...