Flannel working principle and source code implementation of Kubernetes network analysis
Flannel is an open-source CNI network plug-in of cereos. The figure below shows a schematic diagram of a data package provided by flannel official website after packet, transmission and unpacking. From this picture, we can see that the docker0 of two machines are in different segments: 10.1.20.1/24 and 10.1.15.1/24. If you connect the Backend S ...
Posted by ben2.0 on Fri, 18 Oct 2019 06:03:21 +0200
ACL access control list -- named access control list (implementation!!!)
Named access control list can adjust the policy flexibly, provided that on the basis of standard access list and extended access list, no+ACL number can be used to delete the policy, or ACL number + permit+ip can be used to append the ACL policy.
Experimental environment
One two-layer switch
A three-layer switch
Four PCs
Experimental requi ...
Posted by MuseiKaze on Thu, 17 Oct 2019 20:40:13 +0200
Secondary encapsulation (update) of axios based on common business scenarios
Update the second encapsulation of axios according to the common business scenarios under vue project after one year
Function realization:1. Compatible with ie browser to avoid caching2. Reduce or update duplicate requests3. Interface domain name usage environment variable4. Global loading status5. Global error alerts that can be turned off6. G ...
Posted by phillips321 on Thu, 17 Oct 2019 00:56:47 +0200
Practice of establishing named access control list
Practice of establishing named ACL
The topology of this experiment is as follows:
Experimental purpose
To complete the establishment of named ACL on sw-3 route, the experimental requirements are as follows:
Allow PC2 host in vlan10 to access PC4;
Deny other hosts in VLAN 10 to access PC4;
Allow other network hosts to access PC4.
Experimenta ...
Posted by zigizal on Wed, 16 Oct 2019 18:27:19 +0200
Three ways to save canvas to local pictures
Three ways to save canvas to local pictures
canvas saves local pictures
The first method (modifying the media type of the picture, window.open download directly)
The second method (create a tag and download it by triggering clicks on it)
The third method (converting image data into Blob data to save ...
Posted by shane18 on Mon, 14 Oct 2019 18:00:47 +0200
php version: filter out sensitive words such as advertisements
Now the network is still very messy, especially full of all kinds of **, **, and ** related content, it is obvious that this is not in accordance with our country's law, so in order to a product can live a long and healthy life, it is better to use a certain strategy to filter or remind users not to send such content. But it's easier said than ...
Posted by jamie85 on Fri, 11 Oct 2019 00:28:28 +0200
Solutions for Packing and Unpacking in Netty
Packet sticking and unpacking are inevitable in TCP network programming. Whether the server or the client, when we read or send messages, we need to consider the underlying TCP packet sticking/unpacking mechanism.
TCP sticking and unpacking
TCP is a "flow" protocol. The so-called stream is a string of data without boundaries. The ...
Posted by xsaero00 on Thu, 10 Oct 2019 15:49:00 +0200
50 Knowledgeable Linux Command Techniques
1. Vim automatically adds annotations and intelligently changes lines
#vi ~/.vimrc
set autoindent
set tabstop=4
set shiftwidth=4
function AddTitle()
call setline(1,"#!/bin/bash")
call append(1,"#====================================================")
call append(2,"# Author: lizhenliang")
call append(3,"# Create Date: " . strftime("%Y-%m-%d")) ...
Posted by lessthanthree on Wed, 09 Oct 2019 10:31:55 +0200
Do you know about Android threads and thread pools?
In Android, threads are divided into main threads and sub-threads. The main interface is used to interact with users and perform UI-related operations, while sub-threads are responsible for time-consuming operations. If time-consuming operations are performed in the main thread, the program will not be able to respond in time. Therefore, time-c ...
Posted by lm_a_dope on Wed, 09 Oct 2019 03:06:16 +0200
[Java Concurrency] Foundation
I. overview
1.1 Thread and Process Differences
Performance issues caused by 1.2 multithreading
2. Multithread Creation
2.1 First type - inheritance of Thread class
2.2 the second way to implement the Runnable interface
2.3 Third Kind - Implementing Callable Interface
2.4 Common Thread Constructors
2.5 Is it better to inherit ...
Posted by Terrum on Wed, 09 Oct 2019 00:56:05 +0200