Stack Exchange Network

Stack Exchange network consists of 174 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
39 views

implementing CSMA in Python

I am struggling to implement this concept correctly, so basically the concept in there is that a global time is ongoing, and each stations randomly transmit data in any slot (so I have to create a ...
0
votes
0answers
40 views

How do you test a system using real network traffic?

We have a system which mainly works with requests coming from the internet. The system relies on real traffic, IPs, countries, regions, carriers, and also a set of random fields embedded in the ...
0
votes
0answers
13 views

Grouping clients with horizontal scaling

I am creating a system which will be deployed on Kubernetes using GCP. The team working on this is really small, only two people, so we are looking for solutions that don't take forever to implement ...
-2
votes
0answers
26 views

Dockerizing Apache Kafka Cluster - Storage and Networking

What would be the different factors to consider for storage and networking, when we want to build a docker-ized Apache Kafka Multi-Node Cluster? I have gone through 1 and 2 until now. But it appears ...
2
votes
2answers
218 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
121 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
55 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
55 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
101 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
0answers
50 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
141 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 ...
0
votes
0answers
32 views

Where would be a good place to handle the networking request cancellation?

The apple's networking cancellation is done in the NSURLSessionTask. Alamofire does the cancellation in its Request object. Now I am building a networking framework that wraps Alamofire and I have ...
1
vote
2answers
127 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
25 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
105 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
48 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 ...
1
vote
1answer
553 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
67 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
319 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
155 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 ...
0
votes
0answers
75 views

Implementing URLConnection#getContentType() for non-MIME connections

I've been messing around with networking in Java and have been implementing various protocols as practice. One of the protocols I implemented was Gopher, a directory-style resource browser that ...
-1
votes
2answers
86 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
0answers
36 views

Adaptive Playout Buffer handling network fluctuations?

I am creating a multiplayer game with Unity/C#, and have made a system which revolves around a PlayoutBuffer class. Player inputs and object corrections are sent via reliable UDP through a Client-...
0
votes
1answer
69 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
392 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
86 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
132 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
136 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
188 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
117 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
1k 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
118 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
57 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
1k 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++ ...
10
votes
2answers
13k views

TCP or UDP for a multiplayer game?

This is a question I see a lot. Most people say UDP always for real-time games over TCP. My understanding is that TCP tries to re-send packets over and over til the other side gets them whereas UDP ...
0
votes
1answer
142 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
537 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
34 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 ...
4
votes
2answers
192 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
1k 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
325 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
150 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
112 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 ...
0
votes
0answers
31 views

Workflow to access shared structs in networking

I want to find an example in UNIX socket programming or in general networking applications where the following situation is common: Consider three request threads T1,T2,T3 and a manager thread T. ...
0
votes
1answer
64 views

Architecture for distributed packet inspection

Currently I'm working on a new open-source project for a packet inspection. I have almost none experience with designing an architecture. Thus I would like to ask your opinion on my current ...
1
vote
1answer
698 views

bind() call in socket programming

I am reading about socket programming and got to know that ip is assigned to socket with bind() call before connection to server.Is my thinking of binding address means to bind any ip address correct.
0
votes
2answers
566 views

Asychronous TCP File transfer

I have an asychronous file transfer using boost::asio. Multiple files can be transfered at the 'same time'. Same time as in - file packet for file 1, next packet for file 3, next for file 2, ... No ...
2
votes
1answer
459 views

What are mIa, mId and dIa interfaces?

This document on European Telecommunications Standards Institute website describes some Machine2Machine (M2M) communications protocols. I've seen mIa, mId and dIa interfaces in some research papers, ...
12
votes
3answers
1k views

Is it a good idea to multiplex blocking streams into a TCP connection?

I need several duplex channels between two hosts. There are a number of advantages to establish only one TCP connection. But I doubt multiplexing would cause some inevitable problems. Will it harm ...
-1
votes
1answer
173 views

use of UDP in DNS

UDP provides no guarantee for delivery and no protection from duplication and is connection-less protocol but why then DNS uses UDP protocol. Please make me clarify. At what conditions we should ...