described above. (0≤op≤1) (1≤x≤105) (1≤y≤105)It is guaranteed, the graph contains no self loops or multiple edges.
Output
For each test case, and for each mission whose op=1, print one line containing one integer, the length of the shortest pat H between X and Y.
Sample Input
25 51 2 32 3 52 4 52 5 14 3 30 1 51 3 21 5 40 5 41 5 15 31 2 31 3 23 4 44 5 52 5 50 1 30 4 11 1 4
Sample Output
5666
AnalysisWhen the game is silly, change the tree to a base
Preface
Traffic information can be directly in the /proc/net/dev view, the author implements the program to use the command:
Python net.py interface
Which interface is the name of the network card, what network card to use, the computer has what network card, you can use
sudo ifconfig
To view.
Python implements t
# Author li ning# Date 2015.11.30 00:41:35 Import sysimport Time "" "Principle: Linux system based on the principle of all documents, we can put any information as a string read into the analysis" "#若没有提供参数, here The default is the network card is eth0, according to their actual situation to connect parameters. Eg: (python get_net_infor.py eth1) If Len (sys.argv) > 1:interface = sys.argv[1]else:interface = "eth0" print "currently viewed NIC is:", Inte
Use ntop to analyze network trafficBusiness (xian) Business (de) needs (dan) to (teng), do the LAN egress traffic analysis.Ntop is a mature network traffic analysis tool, which is easy to install and quick to use. It charges fees and takes several minutes to install it.Environment: 1) configure an image port for the Hu
steps even if the installation is complete. If the compilation fails, most of them are missing the compilation environment.3. How to use3.1 Run Nethogs directly to see the current bandwidth-consuming process3.2 We're going to test the program to find the bandwidth-intensive eth0.Nethogs Network card DeviceWe test eth0, run the command.[Email protected] ~]# nethogs eth0The first line in the graph is the traffic
First, introduce
Linux under the nload is a very useful tool, the function is very strong, but relatively single, can only view the total flow. Can monitor the traffic of the network card in real time, divide incoming,outgoing two parts, namely flow of inflow and outflow
At the same time statistics current, average, smallest, largest, total flow value official website: http://www.roland-riegel.de/nload/in
IndicatorNetspeed is a software used by Ubuntu users to display software upload and download network traffic. The software integration supports the Unity panel. For more information about downloading, installing, and configuring Ubuntu14.04, see http://www.linuxidc.com/linux/2014-04/100370.htm?tu14.04system :http://www.linuxidc.com/linu.
Indicator Netspeed is a Ubuntu software used to display
1. Using IptrafIptraf is a text screen interface tool for real-time viewing of network traffic.Some systems are not necessarily installed,If it is RHEL, then go to the installation disk to find the iptraf*.rpm package installation;If it's CentOS, install it with Yum install-y IptrafIptraf is a text full-screen interface that is relatively straightforward to operate. It is best to use putty to see that SECURECRT may show garbled characters.It provide
PHP Learning notes: PHP network traffic statistics System
Description: Code Source "PHP and MySQL Web application Development" a book, and there is some of the code is modified, after my test all can be used. This inside the IP address shows the normal, my computer is supported IPv6. The database script for this example executes the set names GBK first; (Because the script contains Chinese) then execute the
Acdream 1211 Reactor Cooling [upstream and downstream network stream + output traffic], acdreamcooling
Title: acdream 1211 Reactor Cooling
Category: upstream and downstream network streams without Sink.
Question:
For n points and m pipe, each pipe is used to lay the liquid. One-way, each pipe is equal to the substance that flows in every moment, to make m pipe
"Unix/linux Network log analysis and Traffic monitoring" new book listing one months, sales ranked TOP 10, thank you for your support, there will be a heavy new book launch, 2015 Happy New Year!650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/C0/wKioL1SkpVfChn_nAAaBy3tWQs4478.jpg "title=" screen shot 2015-01-01 a.m. 8.44.22.png "alt=" Wkiol1skpvfchn_naaaby3twqs4478.jpg "/>This article is from t
There are previously written, but some do not have components can not install, here write down the installation components of the
Install the required components
Yum List | grep LIBP
Yum Install libp*
wget ftp://ftp.lmd.ens.fr/pub/devil/devel/sources/1.2/libpcap-0.9.8.tar.gz
Install Iftop
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
Tar zxvf iftop-0.17.tar.gz
CD iftop-0.17
./configure
Make
Make install
Use commands when you are finished installing
Iftop-i eth0
Data communication and network Note: Traffic Control at the data link layer is an important function of the data link layer. It coordinates the number of data sent before receiving confirmation. In most protocols, traffic control is a series of programs that tell the sender how much data it can transmit before the confirmation from the receiver, any receiving dev
PHP Study Notes: php network traffic statistics systemNote: the source of the Code is PHP and MySQL Web application development. Some of the Code has been modified and can be used after my tests. The IP address is displayed normally. My computer supports IPv6. The database script in this example ~~~ Execute set names gbk first (because the script contains Chinese characters) and then execute the statement:
Iftop is a useful tool. The following command monitors the wireless network card of my notebookIftop-I wlan0For example, if I play a video of letv, The iftop displays the following information:Basic description:1. the main part of the screen is the data transfer between two machines, with an arrow indicating the direction. The three values on the right are the average traffic of the past 2 seconds, 10 secon
Cisco L3 switch Policy Routing for network access and Traffic DistributionI. Description of the solution environment 1. There are two groups of Group1 and Group2 in the environment, respectively, to access the Internet from two different network outlets. 2. The core network is a Cisco 3560G layer-3 Switch with four VLA
Article Title: View your network using vnStat to monitor broadband traffic. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. many articles have introduced how to monitor bandwidth in Windows operating systems, this article discusses how to monitor
Network Traffic Statistics utility nicstat
Nicstat InstallationNicstat installation:# Wget-c http://nchc.dl.sourceforge.net/project/nicstat/nicstat-1.92.tar.gz# tar zxvf nicstat-1.92.tar.gz # cd nicstat-1.92 # cp Makefile. linux Makefile # uname-mx86_64 # diff Makefile. linux # if it is not a 64-bit machine, you do not need to modify Makefile17c17
Use nicstatThere is a nicstat. sh script in the extract
1. The Calico node container runs in the daemonset mode in kubernetes. The container network mode is hostnetwor. It shares the network stack with the host and has the same IP address and hostname.
2. view a pod: [email protected] ~] # Kubectl get pods-O wide-N Kube-system | grep-I Tiller
Tiller-deploy-5dfffddb8d-n4vp6 1/1 running 0 3D 10.233.122.4 bserver42
3. view the NIC and IP address of a pod
Use cali
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.