tcp-ip

Netty 4: high and low write watermarks

倖福魔咒の 提交于 2019-12-04 08:47:00
问题 I am working with Netty 4. I see folowing options of Netty server: WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK. The official page Related articles has link to Netty best practices (slides w/ video) by Norman Maurer. One of slides looks like this: ServerBootstrap bootstrap = new ServerBootstrap(); bootstrap.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 32 * 1024); bootstrap.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 8 * 1024); and has this preface: Set

Why ARP requests a non-local address?

*爱你&永不变心* 提交于 2019-12-04 07:42:44
I have a Linux virtual server with 2 NICs. eth0 <IP1> eth1 <IP2> arp_filter is turned on and rp_filter is set to be 2(loose mode). Policy-routing is configured as the following: table T1 default via <GW> dev eth0 src <IP1> 127.0.0.0/8 dev lo <LAN> dev eth0 src <IP1> table T2 default via <GW> dev eth1 src <IP2> 127.0.0.0/8 dev lo <LAN> dev eth1 src <IP2> ip rule add from <IP1> table T1 ip rule add from <IP2> table T2 After that, I can ping both binding floatingips of <IP1> and <IP2> from outside. However ping -I eth1 <some_domain> dosen't work. tcpdump shows that when I ping from eth1 to

How to send file more then once

微笑、不失礼 提交于 2019-12-04 07:05:55
问题 There are two C# projects: one project is for the client, the other one is for the server. First step is to run the server , then to choose a target folder, after that to run the client project, to choose some text.txt to send to the server's target folder. Only client can send files to the server Demo: 1.choosing file target 2.client sends +------------+ | tar folder | <---------------- text.txt +------------+ This works fine, but I want it to send the text.txt automatically every few

Receive an object over TCP/IP

杀马特。学长 韩版系。学妹 提交于 2019-12-04 03:58:56
问题 I am going to write a program over TCP/IP and I should send objects by client or by server, It is going right when I want to send or receive strings but when I am trying to read an object: private Socket client; public ThreadedClient(Socket client) { this.client = client; } @Override public void run() { try { ObjectInputStream objIn = new ObjectInputStream(client.getInputStream()); while(true){ try { Object fromClient = objIn.readObject(); } catch (ClassNotFoundException e) {e.printStackTrace

Max MQTT connections

◇◆丶佛笑我妖孽 提交于 2019-12-03 07:23:05
I have a need to create a server farm that can handle 5+ million connections, 5+ million topics (one per client), process 300k messages/sec. I tried to see what various message brokers were capable so I am currently using two RHEL EC2 instances (r3.4xlarge) to make lots of available resources. So you do not need to look it up, it has 16vCPU, 122GB RAM. I am nowhere near that limit in usage. I am unable to pass the 600k connections limit. Since there doesn't seem to be any O/S limitation (plenty of RAM/CPU/etc.) on either the client nor the server what is limiting me? I have edited /etc

Does a docker container have its own TCP/IP stack?

我们两清 提交于 2019-12-03 05:36:28
问题 I'm trying to understand what's happening under the hood to a network packet coming from the wire connected to the host machine and directed to an application inside a Docker container. If it were a classic VM, I know that a packet arriving on the host would be transmitted by the hypervisor (say VMware, VBox etc.) to the virtual NIC of the VM and from there through the TCP/IP stack of the guest OS, finally reaching the application. In the case of Docker, I know that a packet coming on the

Netty 4: high and low write watermarks

拜拜、爱过 提交于 2019-12-02 23:54:07
I am working with Netty 4. I see folowing options of Netty server: WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK. The official page Related articles has link to Netty best practices (slides w/ video) by Norman Maurer . One of slides looks like this: ServerBootstrap bootstrap = new ServerBootstrap(); bootstrap.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 32 * 1024); bootstrap.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 8 * 1024); and has this preface: Set sane WRITE_BUFFER_HIGH_WATER_MARK and WRITE_BUFFER_LOW_WATER_MARK But what is it WRITE_BUFFER_HIGH_WATER

Does a docker container have its own TCP/IP stack?

这一生的挚爱 提交于 2019-12-02 18:54:51
I'm trying to understand what's happening under the hood to a network packet coming from the wire connected to the host machine and directed to an application inside a Docker container. If it were a classic VM, I know that a packet arriving on the host would be transmitted by the hypervisor (say VMware, VBox etc.) to the virtual NIC of the VM and from there through the TCP/IP stack of the guest OS, finally reaching the application. In the case of Docker, I know that a packet coming on the host machine is forwarded from the network interface of the host to the docker0 bridge, that is connected

ADB TCPIP Connecting trouble

感情迁移 提交于 2019-12-02 15:25:13
问题 I have two Galaxy S3. One of them is rooted and the other one is not. So, when I tried to connect them over the local network, computer can see the rooted one. But normal one stucks on the tcpip step. So, I write adb tcpip 5555 It says restarting in TCP mode port : 5555 but nothing else. Can you help me with these? Note: My OS is Win8. 回答1: After running adb tcpip 5555 What is the ouput when you try to run the "connect" command to the devices based on knowing the IP of the phone e.g. adb

TCPIP connection in c# and data sending/receiving in another threads

最后都变了- 提交于 2019-12-02 11:26:07
I have a problem with my TCPIP connection Form programm. I have a code, where I'm trying to send and receive some data from server. The main problem of my app is how to reconcile some threads: myListenThread - to listening data from server myReadStreamThread - to read data from server System.Threading.Thread - main thread eg. to write data to server captureThread - to do another things like capturing images from camera Part of my code: private void buttonConnect_Click(object sender, EventArgs e) { try { Connect(); Connected = true; this.myListenThread = new Thread(new ThreadStart(Listen));