Calmisi Lee

Never like what you think.


  • Home

  • Archives

  • Tags

  • Categories

  • About

  • Search

网络中的一些common sense

Posted on 2017-03-06 | Edited on 2018-09-16 | In Networking | Views:
Symbols count in article: 259 | Reading time ≈ 1 mins.

网络包需要另外20B

以太网帧需要1.前导码和帧开始符preamble(8B),2.gap(12B)两帧之前的间隔。总共20B。
所以实际传输的最小帧为64B+20B=84B,
10Gbps的网,传输一个64B的数据包,需要84B/10Gbps=848bit/1010^9bps=67.2ns

Read more »

编译click modular router遇到的一些问题

Posted on 2017-03-01 | Edited on 2018-09-16 | In Linux | Views:
Symbols count in article: 530 | Reading time ≈ 1 mins.

系统为Ubuntu 16.04.1 LTS

#问题1:

1
2
Cant't find /usr/src/linux, so I can't compile the linuxmodule driver
(You may need the --with-linux=DIR option.)

Read more »

intel XL710模式设置

Posted on 2017-02-16 | Edited on 2018-09-16 | In Networking | Views:
Symbols count in article: 652 | Reading time ≈ 1 mins.

买了块Intel 40G的网卡XL710QDA2.
由于实验室的交换机是pica8的,只有4个10G的光口,为了让XL710网卡能和交换机互连,就需要设置其工作模式。

设置其工作模式需要用到Intel的QCU工具(QSFP+ Configuration Utility),
官方有个说明文档:http://www.intel.com/content/dam/www/public/us/en/documents/guides/qsfp-configuration-utility-quick-usage-guide.pdf

Read more »

MTU,MSS以及Mpps

Posted on 2017-01-10 | Edited on 2018-09-16 | In Networking | Views:
Symbols count in article: 1.5k | Reading time ≈ 1 mins.

转自http://blog.csdn.net/smartfox80/article/details/22508637

MSS是指应用层在一个数据包内最大能传输的字节数
MTU是指IP层在一个数据包内最大能传输的字节数
MTU= MSS+TCP层头部长度+IP层头部长度

Read more »

Xlinx vc709 trd DMA驱动源码解读

Posted on 2016-12-29 | Edited on 2018-09-16 | In vc709 DMA 驱动 | Views:
Symbols count in article: 13k | Reading time ≈ 12 mins.

raw ethernet performance测试

在运行Raw Ethernet Perfomance Mode的时候,
安装驱动运行的脚本为/v7_xt_conn_trd/software/linux/v7_xt_conn_trd/linux_driver_app/run_raw_ethermode.sh
其内容为:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
compilation_error=1
module_insertion_error=2
compilation_clean_error=3

pgrep App|xargs kill -SIGINT 1>/dev/null 2>&1
sleep 5;
cd App
make clean 1>/dev/null 2>&1
make APP_MODE=RAWETHERNET 1>/dev/null 2>&1
./App 1>Applog 2>&1 &
cd ../

/bin/sh remove_modules.sh
cd driver
make DRIVER_MODE=RAWETHERNET clean
if [ "$?" != "0" ]; then
echo "Error in cleaning RAW_ETHERNET performance driver"
exit $compilation_clean_error;
fi
make DRIVER_MODE=RAWETHERNET
if [ "$?" != "0" ]; then
echo "Error in compiling RAW_ETHERNET performance driver"
exit $compilation_error;
fi
sudo make DRIVER_MODE=RAWETHERNET insert
if [ "$?" != "0" ]; then
echo "Error in inserting RAW_ETHERNET performance driver"
exit $module_insertion_error;
fi

可以看到6-12行代码,先判断系统中是否有App程序在运行,如果有就Kill掉。
然后等待5秒后,进入App目录,重新编译App程序,编译完成后以RAWETHERNET模式运行APP。

Read more »

linux设备驱动,内核相关知识点

Posted on 2016-12-27 | Edited on 2018-09-16 | In Linux | Views:
Symbols count in article: 5.6k | Reading time ≈ 5 mins.

本文记录一些在开发Linux 设备驱动过程中,遇到的函数和知识点。
仅供以后回顾。

Read more »

Linux网络编程之sockaddr,sockaddr_in,sockaddr_un结构体详解

Posted on 2016-12-26 | Edited on 2018-09-16 | In Linux | Views:
Symbols count in article: 2.4k | Reading time ≈ 2 mins.

sockaddr

1
2
3
4
struct sockaddr {
unsigned short sa_family; /* address family, AF_xxx */
char sa_data[14]; /* 14 bytes of protocol address */
};
Read more »

eclipse+CDT+JNI开发流程

Posted on 2016-12-26 | Edited on 2018-09-16 | In Java & eclipse | Views:
Symbols count in article: 2.9k | Reading time ≈ 3 mins.

买的Xilinx官方的板子的user application的源代码是用java写,为了测试batching,需要修改源代码。
发现驱动层的调用是使用JNI。
没办法就得看JNI部分的代码,正好java代码是用eclipse看的,那就直接搞了个CDT一起开发JNI。
本文记录eclipse+CDT+JNI的配置开发流程。

Read more »

notes for video learning of vivado PR project

Posted on 2016-12-21 | Edited on 2018-09-16 | In Vivado development | Views:
Symbols count in article: 2.8k | Reading time ≈ 3 mins.

Vivado Design Suite QuickTake Video Tutorial: Partial Reconfiguration in Vivado

https://www.xilinx.com/video/hardware/partial-reconfiguration-in-vivado.html

1.Synthesis:

- Synthesise static logic and reconfigurable modules seperately
- Use bottom-up or out-of-context synthesis

2.Partial Reconfiguration Control Sequence

  • Initiation of reconfiguration implemented by the designer
    • Off-chip microprocessor or other controller,
    • On-chip state machine, processor or other logic
  • Activate decoupling logic and reset
    1. Disconnect the reconfigurable region from the static region
    2. Deliver Partial Bitstream
    3. Region is automatically initialized
    4. Release decoupling logic when reconfiguration is complete.

3.Full configurations implemented in-context

- Static design and reconfigurable modules stored in checkpoints.
Read more »

QSFP,QSFP28等光模块及线缆

Posted on 2016-12-13 | Edited on 2018-09-16 | In Networking | Views:
Symbols count in article: 6.4k | Reading time ≈ 6 mins.

本文转自知乎,详见:
https://zhuanlan.zhihu.com/p/23165312
https://zhuanlan.zhihu.com/p/23058741
https://zhuanlan.zhihu.com/p/22050145
https://zhuanlan.zhihu.com/p/22967479

Read more »
1…4567
Calmisi Lee

Calmisi Lee

Pas de regrets

67 posts
19 categories
52 tags
GitHub E-Mail
0%
© 2015.6 – 2019 Calmisi Lee | Symbols count total: 319k | Reading time total ≈ 4:50
Powered by Hexo
|
Theme – NexT.Pisces v7.0.0