實驗二 Linux 下網路驅動程式追蹤 教師: 助教: 1998/10/19 High Speed Network Lab. Department of Computer Information Science, NCTU.

Slides:



Advertisements
Similar presentations
Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
Advertisements

DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
實驗九 網路應用程式及網站使用實驗 教師: 助教: 1998/10/19 High Speed Network Lab. Department of Computer Information Science, NCTU.
Introduction of MontaVista Linux Ku-Chuan Lin. MontaVista Linux2 2015/6/3 Outlines Introduction of Embedded System Environment Build Host Build Target.
Linux Networking TCP/IP stack kernel controls the TCP/IP protocol Ethernet adapter is hooked to the kernel in with the ipconfig command ifconfig sets the.
1 實驗五:媒介存取協定模擬 教師: 助教:. 2 Outline  Background  Transmission Protocols  ALOHA  CSMA/CD  CSMA/CA  Network Devices  Hub  Switch  Access Point (AP)
Network+ Guide to Networks, Fourth Edition Chapter 10 Netware-Based Networking.
Linux Driver SD Card 期末報告 Team4 : 曹啟訓 許弘達.
Introduction to Linux device driver 潘仁義. The role of device driver Flexible Mechanism? Policy? 只提供存取硬體的能力,而不加諸任何限制 介於『應用程式』與『硬體裝置』的軟體層 功能性 ? 簡潔性 ?
1 Web Server Administration Chapter 3 Installing the Server.
電腦網路 4 教師:賴薇如 4 助教:李宜興 4 Room: Phone:
1 網路實體連結 Instructor: Teaching Assistant:. 2 Outline Structure of a Typical LAN Simplex vs. Duplex Wiring and Making connectors Experiment Steps.
1 實驗十:以 Linux 架設 Internet/Intranet 伺服 器 教師: 助教:. 2 Outline  Background  Linux system  Popular Internet services  Internet services  Internet  HTTP.
Lab : OpenMP Programming Parallel Programming (CS5423) Instructor : 鍾葉青 Author : 吳宇宸.
JSP 簡介. Outline 什麼是 JSP? JSP 運作模式 安裝 JSP JSP 範例一 JSP 範例二.
實驗五 網路探測實驗 教師: 助教: 1998/10/19 High Speed Network Lab. Department of Computer Information Science, NCTU.
Wireless LAN Security  Setup & Optimizing Wireless Client in Linux  Hacking and Cracking Wireless LAN  Setup Host Based AP ( hostap ) in Linux & freeBSD.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Click to edit Master subtitle style Chapter 17: Troubleshooting Tools Instructor:
Linux Networking Commands
COMPUTER SYSTEM LABORATORY Lab8 - Debugging II. Lab 8 Experimental Goal Learn how to debug Linux in source-level by Domingo and diagnose target boards.
System Administration Network Tools. ping Test connectivity / latency (RTT) ICMP echo request/reply Variants ◦ARP ping  Send ARP instead  May also ping.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
TCP/IP Networking sections 13.2,3,4,5 Road map: TCP, provide connection-oriented service IP, route data packets from one machine to another (RFC 791) ICMP,
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
IP Forwarding.
1 Introduce Linux Speaker: Yi-Ji Jheng Date:
資訊技術實驗室 ITLAB. Download 2009/3/52 Visual studio c 安裝教學.
Networking Colin Alworth May 26, Quick Review IP address: four octets Broadcast addresses –IP addresses use all 1’s for the host bits, and whatever.
1 實驗九:建置網路安全閘道器 教師: 助教:. 2 Outline  Background  Proxy – Squid  Firewall – IPTables  VPN – OpenVPN  Experiment  Internet gateway  Firewall  VPN.
Subversion Tutorial Presenter: Ya-Lin Huang. Introduction 版本控制系統是什麼? 管理對資訊所做人為變動 程式設計師的工具之一 為何要使用版本控制系統? 促成有效率的團隊合作 使變動歷程能被追溯 2.
自由軟體實驗室 設置 Hadoop 環境 王耀聰 陳威宇 國家高速網路與計算中心 (NCHC)
RTL8712(8188_8191_8192SU) USB Linux Driver Quick Installation Guide
RTL8192C USB Linux Driver Quick Installation Guide
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Linux Routing. Why use Linux as a router? Its cheap. Linux has low hardware requirements. A properly configured P166 Mhz computer would have no problems.
NCTUns Emulation 指導教授:潘仁義 報告者:李詩涵、蕭惠陽. Kernel Re-entering Simulation Methodology  Tunnel 網路介面是實現 Kernel Re-entering Simulation Methodology 的關鍵技術  Tunnel.
Internet Technology Laboratory Department of Computer and Communication Kun Shan University  官方網站:
1 IPTABLES and NAT on Fedora Core 6 Speaker : Rex Wu Date :
Linux Operations and Administration Chapter Eight Network Communications.
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
D EPT. OF I NFO. & C OMM., GIST Networked Media Lab. Networked Media Laboratory Dept. of Information & Communications Gwangju Institute of Science & Technology.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 1.
Cisco Router. Basic setting  清除原有之 configuration information Router#write erase Reboot Router  初始設定 Would you like to enter the initial configuration.
實驗三 Linux 網路協定程式追蹤 教師: 助教:. 2 Outline Why Linux ? Linux 核心的內部 Linux 開機始末 實驗步驟.
實驗四 Linux 子網域分割 之設定與觀察 教師: 助教:. 2 Outline Traditional IP Allocation Netmask: the Concept Subnetting Realization Proxy-ARP Transparent Router Different.
2: Operating Systems Networking for Home & Small Business.
1 Setup and Compile Linux Kernel Speaker: Yi-Ji Jheng Date:
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
Rebuilding Linux Kernel Dedicated to penguin lovers everywhere 26 September 20161Rebuilding kernel by Visakh M R.

LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Managing and Directing Network Traffic with Linux
Onno W. Purbo Ethernet di Linux Onno W. Purbo
Click to edit Master subtitle style
Operating System & Application Software
UNIT-V EMBEDDED LINUX.
LINUX ADMINISTRATION
Onno W. Purbo Ethernet di Linux Onno W. Purbo
Drivers and the kernel UNIX system has three layers: Kernel
IP Network Layer and Ethernet Encapsulation
嵌入式系統 Embedded System 楊昌益.
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Chapter 2: The Linux System Part 1
COP 4343 Unix System Administration
System configuration and Log
Introduction to Linux device driver
Presentation transcript:

實驗二 Linux 下網路驅動程式追蹤 教師: 助教: 1998/10/19 High Speed Network Lab. Department of Computer Information Science, NCTU

Outline Why Linux ? Linux 核心的內部 Linux 開機始末 實驗步驟

Why Linux ? Free !! Compatible with System V & BSD UNIX Compliant to POSIX 1.0 Fast update !! Internet Powerful !! Pure 32-bit OS Candidate OS for embedded system Source code open !! Suitable for academic use

Linux 核心內部

Linux 開機始末 Load the kernel Probe & setup the hardware Create system process System initialization getty login process

實驗步驟 安裝 Linux 追蹤開機始末 編譯核心 設定 Linux 網路組態 在 kernel 中追蹤 network driver

安裝 Linux Where should I install it from ? Which distribution should I choose from ? Which version should I take ? How do I install it ? Does there exist any document ? –/usr/doc

追蹤 Linux 開機始末 Capture bootup sequence –dmesg –Shift + [PgUp | PgDw] –syslogd Traverse /etc/initab /etc/rc.d/ Tools grep Microsoft Visio Studio - Edit - Find in files

編譯核心 FTP, tar make [config | menuconfig | xconfig] –Modules support –Choose your adapter driver –Choose TCP/IP protocol stack make dep, make clean, make zImage make modules, make modules_install move to /boot re-write boot sector (lilo -v -v -v)

設定網路組態 Internet 參數 –Network Interface Configuration ifconfig eth0 x.x.x.x netmask y.y.y.y broadcast z.z.z.z –Routing table Configuration route add -net default gw dev eth0 route add -net dev eth0

追蹤 kernel 中的 network driver Trace by debugger Trace by printing, record by logging –klogd vs. syslogd Trigger network modules by “ping”

決定待測機器 Host IP= H, Netmask=M, Router=R far active host (IP address=F) near active host (IP address=N1) near inactive host (IP address=N2) ( H and M )=( R and M )=( R and N1 )=( R and N2 ) ≠ ( R and F )