Nodejs play process

First of all, we should know that node is executed by single thread, but today's computer has developed to multi-core CPU. Therefore, it has become an important problem to solve the problem of node using multi-core CPU server. I Multi process architecture Analysis: in master JS folder, through child_process to copy sub processes, and os to ac ...

Added by Rianna on Fri, 04 Feb 2022 05:36:00 +0200

Linux network protocol stack 4--bridge receiving and contracting

bridge is a virtual switch on linux, which has the function of switch. After the network card receives the packet, go to__ netif_ receive_ skb_ After the core, peel off the vlan and find the vlan sub interface (if any). If SKB - > dev is a bridge member port, it will go to the receiving and processing function of the bridge member port. st ...

Added by gabo on Thu, 03 Feb 2022 15:18:57 +0200

Linux network protocol stack 5--ovs receiving and contracting

ovs, whose full name is openvswitch, is a high-quality, multi-layer virtual switch with some advantages over bridge: 1) Facilitate network management and monitoring. The introduction of OVS can facilitate administrators to monitor the network status and data traffic in the whole cloud environment. For example, they can analyze which VM, OS and ...

Added by rallan on Thu, 03 Feb 2022 11:41:24 +0200

HCIP - republish routing policy

Republish, redistribute and redistribute: When there are two routing protocols or different processes of the same in a network; Protocols, processes, databases and information are independent and not shared; Redistributing technology can share routing entries between two protocols or two processes to achieve the accessibility of the whole netw ...

Added by pdaoust on Thu, 03 Feb 2022 00:47:51 +0200

BGP second experiment

BGP experiment II 1. There are two loopbacks in AS1, one address is 192.168.1.0/24, which cannot declare that there are two loopbacks in AS3 in any protocol, and the other address is 192.168.2.0/24, which cannot declare that the two loopbacks can communicate with each other in any protocol; The other loopback of AS1 is 10.1.1.0/24, and the ...

Added by davil on Mon, 31 Jan 2022 00:55:06 +0200

Computer network: detailed explanation and expansion of real problems of application layer postgraduate entrance examination

I Single choice questions (11 questions in total, 100.0 points) 1[2009] FTP Transfer between client and server FTP Command, the connection used is (). A,Based on TCP Control connection above B,Based on TCP Data connection on C,Based on UDP Control connection above D,Based on UDP Data connection on Correct answer: A FTP uses TCP 2[2010]If t ...

Added by keithschm on Sat, 29 Jan 2022 14:52:28 +0200

Learn ARP with arpend command

Learn ARP with arpend command Quoted from https://mp.weixin.qq.com/s?__biz=MzkxMTMxNjQ0NQ==&mid=2247483685&idx=1&sn=c3d27891c3226f35b21a5ba052fa38bb&chksm=c11f4597f668cc811aaf5db73da6e8506efedb0318f9e1a37b56cdeb84dc3d1a01b01614da19#rd The task of ARP (Address Resolution Protocol) is to resolve IP address (network layer ad ...

Added by infestedarch0n on Fri, 28 Jan 2022 20:29:07 +0200

How to connect the network: Chapter 2: a life cycle of TCP connection | CSDN creation punch in

The book is based on a simple scenario: the user enters a URL into the browser and returns the response, which is the life cycle of a network request. The book is divided into six parts: The application layer client generates HTTP and delegates it to the protocol stack of the operating systemThe protocol stack (TCP/IP module) calls the netwo ...

Added by countrydj on Thu, 27 Jan 2022 07:33:02 +0200

2, TCP network programming

catalogue 1, Network programming for TCP 1. Example 1: the client sends information to the server, and the server displays the data on the console ① Client ② Server 2. Example 2: the client sends the file to the server, and the server saves the file locally ① Client ② Server 3. Example 3: Send a file from the client to the server, the s ...

Added by RoundPorch on Mon, 24 Jan 2022 03:59:37 +0200

Gin implements upload / download services

In this article, let's take a look at the file upload service in {Gin}. Create project mkdir ginupload && cd ginupload go mod init ginupload go get -u github.com/gin-gonic/gin touch main.go We create a "ginupload" directory to store code, and use "go mod" to manage dependencies. Then, add "gin" as a th ...

Added by nemesis1931 on Sun, 23 Jan 2022 22:53:22 +0200