TCP

Sliding window

http://www.tcpipguide.com/free/t_TCPSlidingWindowAcknowledgmentSystemForDataTranspo-3.htm

The send window is the key to the entire TCP sliding window system: it represents the maximum number of unacknowledged bytes a device is allowed to have outstanding at once. The usable window is the amount of the send window that the sender is still allowed to send at any point in time; it is equal to the size of the send window less the number of unacknowledged bytes already transmitted.

Advertisements
TCP

tensorflow

Installation

whq-48, docker, gpu

run:

docker run -it gcr.io/tensorflow/tensorflow bash

 

SDN

iou2, docker, ryu, ovs, mininet

http://osrg.github.io/ryu-book/en/html

run command in mininet, to access node, use

s1 ovs-ofctl -O OpenFlow13 dump-flows “s1”

where s1 indicate the node you want to process, following the command, the objective name in the command needs quote.

 

 

Related

Data

rank-number  of dimensions.

shape-list of dimensions.

 

Tutorial

http://ufldl.stanford.edu/tutorial/supervised/LinearRegression/

tensorflow

bugs note

Python:

pip doesn’t work:

reinstall:

#find pip
which pip
#uninstall and reinstall
/usr/local/bin/pip uninstall pip 
sudo apt-get remove python-pip
sudo apt-get install python-pip
#change permission of packages to public 
#show the location of the package
sudo pip show <package_name>
sudo chmod -R ugo+rX path_to_package
 

 

bugs note

paper process

Clustering:

1st target conf: IMC, deadline May 11,18.

2nd target conf: INFOCOMM, deadline July. need to corporate with Yordanos, Yuming.

one point: control cache which is too autonomous originally

http://jet-stream.com/blog/cache-server-vs-cdn-server/

get the syntax mapping coordinates distribution as the public source

simulate cdn with different intra-cluster similarity

ICN broker

ICN conf. deadline: May1, 8.

Get rid of search engine

Nokia lab, deadline: May 1.

paper process

vim

1.move to previous line end

To move to the beginning of the next line, hit Enter. See :help <CR>.

To make right and l wrap to the beginning of the next line, add > and l to the ‘whichwrap’ option, e.g.,

:set whichwrap+=>,l

Similarly, to make left and h wrap to the end of the previous line, add < and h to the ‘whichwrap’ option, e.g.,

:set whichwrap+=<,h

See :help 'whichwrap'.

2.

vim

OpenNetVM

Installation

https://github.com/sdnfv/openNetVM/blob/master/docs/Install.md

  1. doesn’t support osx
  2. installed on pc in Helsinki:  whq-48.cs.helsinki.fi:/home/pengzhou/openNetVM
    1. PC_NIC: Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
      $lshw            #show the hardware config
      $lshw -class network  #show the network hardware config
      $lspci             #show all pci
    2. kernel: 3.13.0
  3. echo export ONVM_NUM_HUGEPAGES=2048 >> ~/.bashrc

    #default ONVM_NUM_HUGEPAGES is 1024, here we set as 2048

  4.  export ONVM_NIC_PCI=" 00:19.0"

    #specify NIC port to be bound to DPDK, port found in step 2.

  5. run scripts/install.sh every time of rebooting, as it loads the appropraite kernel modules and can bind your NIC ports to the DPDK driver.
    https://github.com/sdnfv/openNetVM/blob/master/scripts/install.sh
    output:

    Build complete [x86_64-native-linuxapp-gcc]
    
    Installation cannot run with T defined and DESTDIR undefined
    
    Configuring 2048 hugepages with size 2048
    
    Adding huge fs to /etc/fstab
    
    Mounting hugepages
    
    Creating 2048 hugepages
    
    Configuring environment
    
    Please export $ONVM_HOME and set it to /home/pengzhou/openNetVM

    should due to

    106 scripts/setup_environment.sh
    $echo export ONVM_HOME=/home/pengzhou/openNetVM >> ~/.bashrc
    $source ~/.bashrc

    then installed successfully

  6. now here
    ./onvm/go.sh 0,1,2,3 1 -s stdout

    output:

    sudo: /home/pengzhou/openNetVM/onvm/onvm_mgr/onvm_mgr//onvm_mgr: command not found

    coming from last line of go.sh:

    sudo $SCRIPTPATH/onvm_mgr/onvm_mgr/$RTE_TARGET/onvm_mgr -l $cpu -n 4 --proc-type=primary ${virt_addr} -- -p ${ports} ${num_srvc} ${def_srvc} ${stats}

    was because of an error edit in bashrc.

  7. test completed successfully

Examples

  1. Linear NF Chain
    Determine CPU architecture and running limits:

    scripts/corehelper.py

    output:

          - openNetVM can handle 0 NFs on this system
    scripts/corehelper.py:
    182 print "** MAKE SURE HYPERTHREADING IS DISABLED **

    to disable hyper theading(sth. like virtual cpu core), {Hyper-threading (HT) refers to the hardware-backed capacity of Intel CPUs to efficiently switch between two execution threads}read file /proc/cpuinfo, in which the processors with same core ids are the real-virtual pair of cores in one physical core.
    http://nicolas.limare.net/pro/notes/2014/11/26_ht_freq_scal/
    after emailing with Neel, seems there is a bug.
    try to continue with manually command.
    using and reading onvm/go.sh:

    18 cpu=$1    #use man bash to see detail

    after running the commands, get  to the step of “start a packet generator”
    install Pktgen-DPDK.
    when running it, met with the prob about no free hugepage , should due to that opennetvm is still running, maybe should make hugepage larger in the start.

 

 

 

OpenNetVM

ipv6

The 128 bits of an IPv6 address are represented in 8 groups of 16 bits each. Each group is written as four hexadecimal digits and the groups are separated by colons (:). An example of this representation is 2001:0db8:0000:0000:0000:ff00:0042:8329.

For convenience, an IPv6 address may be abbreviated to shorter notations by application of the following rules.

  • One or more leading zeroes from any groups of hexadecimal digits are removed; this is usually done to either all or none of the leading zeroes. For example, the group 0042 is converted to 42.
  • Consecutive sections of zeroes are replaced with a double colon (::). The double colon may only be used once in an address, as multiple use would render the address indeterminate. RFC 5952 recommends that a double colon must not be used to denote an omitted single section of zeroes.[38]

An example of application of these rules:

Initial address: 2001:0db8:0000:0000:0000:ff00:0042:8329
After removing all leading zeroes in each group: 2001:db8:0:0:0:ff00:42:8329
After omitting consecutive sections of zeroes: 2001:db8::ff00:42:8329
ipv6