How incoming data is distributed among tabs in a browser? [closed] - networking

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Does number of available ports limit the number of tabs that can be opened in a browser, if not the how browser knows which incoming data belongs to which tab.

There doesn't need to be a direct association between browser tabs and network connections. When a tab needs to send a request to a server, it could open a network connection, send the request, receive the reply and then close the connection.
There are other options too:
The browser could open multiple connections so that it can make multiple requests to the same server simultaneously.
The browser keep old connections open so that it can sens a sequence of requests.
To get a better understanding of how a browser could interact with a webserver, refer to the HTTP specification; e.g. RFC7231

Related

BLE Custom Scan Response [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Working with ESP32 and IDF
I'm working in developing an application that advertises BLE data. I need to send custom data to each one of the different devices scanning. I'm able to write a custom manufacturer data. I can also write a custom scan response message but, can a different custom response message be sent to each individual remote device? If possible, how do I do it?
I have multiple iOS software for checking the BLE data but I have not been able to find one that displays both the Advertisement data and the scan response data in real-time. Does anyone know of one?
Thanks
Please don't ask two completely separate questions in one question. But anyway:
The Bluetooth specification has no way of specifying different scan response data for different scan request bluetooth addresses. The address field in the scan request is there only to make it possible to discard scan requests from devices that are not in the white list.
The iOS api does not differentiate advertisement packets from scan response packets, so I don't think any app can do this. But you should however be able to get a notification as soon as some data arrives. I guess nRF Connect does this.

What is the difference between HTTP 1.1 and HTTP 2.0? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
HTTP/1.1 has served the Web well for more than fifteen years, but its
age is starting to show.
Can anybody explain what is the main difference between HTTP 1.1 and 2.0?
Is there any change in the transport protocol?
HTTP/2 supports queries multiplexing, headers compression, priority and more intelligent packet streaming management. This results in reduced latency and accelerates content download on modern web pages.
More details here.
HTTP 2.0 is a binary protocol that multiplexes numerous streams going over a single (normally TLS-encrypted) TCP connection.
The contents of each stream are HTTP 1.1 requests and responses, just encoded and packed up differently. HTTP2 adds a number of features to manage the streams, but leaves old semantics untouched.

how exactly does http.sys work [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
The community reviewed whether to reopen this question 10 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I'm trying to get a deeper understanding of how IIS works.
http.sys i understand is one its major components. However, i have been having trouble finding easily digestible information about it. I couldn't get a good mental model going until i heard about the WSK, then i think it all fell into place.
From a lot of random googling a little experimentation this is my current high level understanding of why it exists and how it does it's stuff.
Why:
Port sharing, and higher performance caching.
How:
User mode processes use the WinSock api to open a socket listening on a port to gain access to the networking subsystem, e.g. tcp/ip. Kernal mode software like the http.sys driver uses Winsock Kernal Sockets (WSK) api to achieve the same end using the same pool of TCP port numbers as the WinSock api.
IIS, a web service or anything that wants to use http registers itself with http.sys using a unique url/port combination. http.sys opens up a socket on this port using WSK (if it hasn't already for another url/port combination with the same port) and listens.
When the transport layer (tcpip.sys) has reconstructed a load of ip packets back into an http request that a client sent it gives it to http.sys via the port in the request. Http.sys uses the url/port number to send it the the appropriate process which parses it however it pleases.
I know it seems like I'm answering my own question but I'm really not that sure of myself on this and would like some closure so i can get on with more interesting things.
Am i close?

How to disable encryption on local xmpp network [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to see plain xml text of xmpp messages content for developing , debugging ,etc
so I've installed 'ejabberd' as xmpp server and 'empathy' as xmpp client.(i track packets with wireshark)
i think it should be done by changing configuration in xmpp server , but i don't know how ?!
I would like someone to guide me through disabling encryption and see xmpp request in plain text form in wireshark.
Thanks in advance!
In ejabberd.cfg, in the listen section, look for configurations for ejabberd_c2s.
Comment out the lines specifying the the certificate and starttls support.
Without starttls, no encryption will be offered (you might need to confirm on your client that you want to connect without encryption as some clients prevents that by default).

Is there a way I can replicate http traffic to a redundant server? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I will be moving a high load prod system over to new hardware over the next few weeks. However in the mean time I would like to validate that the new hardware will handle the expected loads. I would really like to stick some kind of 'proxy' infront of the current web server and copy all that http traffic to the new environment, i.e. run them both in parallel.
Ideally this proxy would also validate that the responses are the same.
I can then monitor the new hardware stats (cpu, mem, etc) and see if it looks ok.
What is this kind of proxy called? Any one have any suggestions? This is for a Windows .Net (asp.net) and SQL server environment.
Thanks all
Varnish comes to mind - https://www.varnish-cache.org/
Edit
I'd actually use nginx... (two years experience after answering this question).. varnish would be silly to use. nginx would definitely be the better option.
Have a look a JMeter. It's Java based but allows you to record user journeys and play them back in bulk for stress testing.

Resources