Go language foundation: network programming

Network foundation, socket programming It's not popular. For me, it's really an old-fashioned concept. python Network Programming Beginner level chapter, Advanced 1, Realize TCP communication 1. TCP protocol TCP/IP(Transmission Control Protocol/Internet Protocol), i.e. transmission control protocol / inter network protocol, is a connec ...

Posted by prkarpi on Mon, 27 Dec 2021 12:43:03 +0100

Principle and related experiments of Lianx network card binding (Bond0-6)

1. Network card binding principle Under normal circumstances, the working mode of the network card is Direct Model. In this mode, the network card only receives frames whose destination address is its own Mac address. Other data frames are filtered out to reduce the burden of the driver. However, the network card also supports another hybrid m ...

Posted by melsi on Sun, 26 Dec 2021 10:35:32 +0100

Linux (raspberry pie) installation v2ray client

When compiling the Rust project on raspberry pie, I was stuck in update Crites, of course, because of some force majeure So try installing v2ray on raspberry pie The following is the tossing process, and finally success Two methods are provided here. The first method is relatively simple but unsuccessful (there should be a problem with the ste ...

Posted by [PQ3]RogeR on Sun, 26 Dec 2021 03:20:42 +0100

SIP protocol details (taking call center incoming and outgoing calls as an example)

1, Background Traditional call making process: A calls B and invites B to establish an invitePhone B rings and phone A can hear the ringPhone B indicates a reply, so the call is establishedOn the phone...Either party hangs up and the call ends The traditional telephone uses electromagnetic wave to transmit communication signals, but at this ...

Posted by CheesierAngel on Sat, 25 Dec 2021 14:24:27 +0100

There are two ways to encapsulate the Retrofit + collaboration to achieve elegant and fast network requests

objective Simple call and less repetitive code Independent of third-party libraries (only including Retrofit+Okhttp + collaboration) You can start immediately even if you don't understand the collaborative process at all (template code) What does it mean to write Kotlin code in Kotlin's way? Compare the following two codes: mViewModel.wx ...

Posted by moagrius on Sat, 25 Dec 2021 04:31:32 +0100

016 layer 3 switching technology and HSRP

1: Three layer switching technology 1.1: General summary: Layer 3 switch: 1: layer 3 switch = Layer 3 routing (but it can't be completely used as a router, generally only as a router) vlan Network segment connection) + Layer 2 switch is essentially a layer 2 device 2: The layer 3 routing function can be turned on and off. It can onl ...

Posted by peter11 on Fri, 24 Dec 2021 18:07:17 +0100

UDP network programming of Socket socket one-way and two-way exception handling normal communication between two people based on UDP

UDP network programming one-way and two-way exception handling of Socket socket Socket It is used to describe the IP address and port. It is the handle of the communication chain. The application sends or responds to the network request through the SocketIt is the basic operation unit of network communication supporting TCP/IP protocol,It is ...

Posted by peerData on Fri, 24 Dec 2021 14:31:49 +0100

Linux Routing and Policy Routing

Linux Routing and Policy Routing OSI seven-tier reference model Routing Introduce Layer 2 switch, Layer 3 route: The exchange is located in the second layer of the OSI seven-layer model, where the data frame is encapsulated in an Ethernet header that records the mac address of the target network. Routing is located in the third layer of ...

Posted by mikanmao on Fri, 24 Dec 2021 07:22:38 +0100

Deep understanding of CNI (container network interface)

original text Introduction to CNI The configuration of container network is a complex process. In order to meet various needs, container network solutions are also diverse, such as flannel, calico, Kube ovn, weave and so on. At the same time, the container platform / runtime is also diverse, such as Kubernetes, Openshift, rkt, etc. It will be ...

Posted by cool-palace-ceo on Fri, 24 Dec 2021 05:31:04 +0100

Analysis of the flow of flink task execution

background From the perspective of source code, this paper mainly analyzes how the bottom layer of flink allocates tasks to each task executor for execution, as well as the thread model of task execution. It will involve how jobmaster distributes tasks to taskExecutor, the detailed process of task execution by taskExecutor, and the mailBox thr ...

Posted by Cliftron on Thu, 23 Dec 2021 20:59:06 +0100