network-protocols

How to measure network performance (how to benchmark network protocol)

谁说胖子不能爱 提交于 2019-12-17 18:25:01
问题 First, a bit of a background. There are many various comparisons of distributed version control systems (DVCS) which compare size of repository, or benchmark speed of operations. I haven't found any that would benchmark network performance of various DVCS, and various protocols used... beside measuring speed of operations (commands) involving network like 'clone', 'pull'/'fetch' or 'push'. I'd like to know then how would you make such comparison; how to measure network performance of an

Implementing IPSEC Protocol [closed]

五迷三道 提交于 2019-12-14 03:28:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I want to implement a IPSEC protocol in java. I want to know how to create our own protocol. And how to embedded this protocol with

Why do browsers inefficiently make 2 requests here?

我是研究僧i 提交于 2019-12-13 11:38:45
问题 I noticed something odd regarding ajax and image loading. Suppose you have an image on the page, and ajax requests the same image - one would guess that ajax requests would hit the browser cache, or it should at least only make one request, the resulting image going to the page and the script that wants to read/process the image. Surprisingly, I found that even when the javascript waits for the entire page to load, the image request still makes a new request! Is this a known bug in Firefox

nodejs - https requests taking too long

笑着哭i 提交于 2019-12-13 03:33:37
问题 So every 0.5 seconds, I'm interested in getting the price of Bitcoin as fast as possible. curl https://www.okcoin.com/api/ticker.do?ok=1 *** 1st I do this in nodejs: var https = require('https'); var options = { host: 'www.okcoin.com', port: 443, path: '/api/ticker.do?ok=1', method: 'GET' }; var time; time=process.hrtime(); var req = https.request(options, function (res) { res.setEncoding('utf8'); res.on('data', function (chunk) { var diff=process.hrtime(time); console.log("took %dms", (diff

How to run tcp and udp on a single port at same time?

谁说我不能喝 提交于 2019-12-12 13:29:53
问题 I have a situation like I have to run UDP and TCP both on a single port at a time. This is because in my application at any time anyone can call for any protocol. So I need to continously check the incoming request and serve the request. Can anyone pls help me to get rid of this situation in java? 回答1: You can't check whether a request is TCP or UDP. Instead you add a listener which is TCP and a listener which is UDP. IMHO UDP is more useful if you use a broadcast or multi-cast address. e.g.

Checking the TLS version in browser requests to https connection

我怕爱的太早我们不能终老 提交于 2019-12-12 05:38:40
问题 I want to check which TLS version client(Browser) is supporting currently.And which TLS version it wants to use. Is there any other way to check which TLS version a particular browser support. 回答1: Almost all browsers can now support TLS 1.0. Other versions of TLS 1.1 and 1.2 depend much more of your Browser and its version. I will recommend you to keep staying with TLS 1.0 except if you really need one of the new features... 回答2: "wants to use" is typically the highest level it supports,

About the return values of the telnet server on windows xp

假如想象 提交于 2019-12-12 03:07:51
问题 I am writing a telnet proxy on xp. Now I can telnet to system's telnet server and print its return values sending back to my procedure. I find a very puzzling phenomenon. When I first telnet to the server,it will ask me to log in. I type in "tamlok" , and I can see that it sending back to me that "116,97,109,108,111,107,10,13" which is the ascii value of "tamlok"(10 and 13 means '\n' and '\r') . However after I log in,I type in "tamlok" again. It sends back to me that "27,91,56,59,51,52,72

NSException kills the app if raised in background

蹲街弑〆低调 提交于 2019-12-11 20:02:38
问题 I am performing some network related code. When the code starts executing and the user sends the app in background and that time if exception raise the app is killed. if exception is not raised app is not killed. Is it possible to stop/pause any kind of network activity? or a way to stop app from killing? UPDATE I am using matt gallahar (cocoa with love) written uncaughtexception handler. How do I cancel the request once it fired. The code for request is called in this function +(NSString*

Java: Receiving platform independent TCP streams [closed]

本小妞迷上赌 提交于 2019-12-11 19:44:24
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I want to build a Java server that accepts TCP streams that are completely platform independent, so that the client could be written in any other language like C++, PHP, ActionScript or anything else. However,

How does system fill MIB entries with Read-Only Access?

房东的猫 提交于 2019-12-11 19:15:16
问题 For managing the system configuration, we use MIB Management Systems in some form or the other, which may be C-structure based or Yang Module for data modeling. Now there are entries in the MIB which are marked as read-only, or not accessible for the manager i.e. Northbound Interfaces. The operational data is often kept in such entries, like system up-time etc. So, is the filling of data by the Device itself in these fields implementation specific or does the device also use GET/SET/TEST type