7/11/2007 AIIT Summer Course - D# 1 Wireless Embedded Systems and Networking Lab Day 3: Part 1: IP access using standard client programs Lab Assistant:

Slides:



Advertisements
Similar presentations
Network Programming Class 1. Tugas & TR 5 Tugas 1 TR Beberapa Kejutan.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Networks and TCP/IP Part 2. PORTS Ports – What and Why are They?  Typically: Computers usually have only one network access point to the internet 
IPv6 and Microsoft Windows (as of April 14, 2002) IPv6 Workshop Bill Cerveny.
Precept 3 Host Configuration 1 Peng Sun. What TCP conn. running? Commands netstat [-n] [-p] [-c] (Linux) lsof -i -P (Mac) ss (newer version of netstat)
7/9/2007 AIIT Summer Course - D# 1 Wireless Embedded Systems and Networking Lab Day 1: Part 2: Build a self-organized mesh over a physical extent. Lab.
Skills: : Use ping and traceroute and query the whois database Concepts: network transit time, router hops, command-line user interface, whois database,
Skills: use ping Concepts: network transit time, command-line user interface vs. graphical user interface, prefixes for small quantities This work is licensed.
CPSC 441 Tutorial - Network Tools 1 Network Tools CPSC 441 – Computer Communications Tutorial.
7/10/2007 AIIT Summer Course - D# 1 Wireless Embedded Systems and Networking Lab Day 2: Part 3: Custom analysis of the networking Lab Assistant: Jaein.
7/13/2007AIIT Summer Course - D#1 Wireless Embedded Systems and Networking Lab Day 5: Part 1: TinyOS Programming on Open Source Distribution Jaein Jeong.
7/10/2007 AIIT Summer Course - D# 1 Wireless Embedded Systems and Networking Lab Day 2: Part 1: Add your own external sensors Lab Assistant: Jaein Jeong.
Network Management And Debugging
Network Debugging Organizational Communications and Technologies Prithvi Rao H. John Heinz III School of Public Policy and Management Carnegie Mellon University.
CISCO NETWORKING ACADEMY Chabot College ELEC ping & traceroute.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Cisco Public © 2013 Cisco and/or its affiliates. All rights reserved. 1.
1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Defining the IP Packet Delivery Process INTRO v2.0—4-1.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Module 1: Reviewing the Suite of TCP/IP Protocols.
IP-adresses and subnet masks. Figure 19.9 Dotted-decimal notation.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
Videoconferencing: Network Tools & Troubleshooting Dave Devereaux-Weber University of Wisconsin-Madison Internet2 Commons Site Coordinator Training September.
ECE498 Introduction to Network Engineering Professor Bruce Segee Fall 2000.
1 Computer Networks and Internets Spring 2005 Assistant Professor JainShing Liu.
The Relationship of the Protocol Stack to the Operating System Last Update Copyright Kenneth M. Chipps Ph.D.
Herramientas para diagnósticos. Ping USO: Ping nombre.dominio o dirección IP Options: -t Ping the specifed host until interrupted. -a Resolve addresses.
ICMP : Internet Control Message Protocol. Introduction ICMP is often considered part of the IP layer. It communicates error messages and other conditions.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
Chapter 2 (cont..) Viewing the layers using a Network protocol Analyzer. Application Layer Protocols & IP Utilities.
PA3: Router Junxian (Jim) Huang EECS 489 W11 /
Examining TCP/IP.
OSPF alfred. Step 1 建立校園骨幹 Dlink 3627 Lab, 含出口 Wan 建立 forti3950 學校 vlan and 10 筆靜態路由指到 Dlink 確認 dlink3627 與 forti 3950 學校 vlan 互通. Ex:3950 ERDC.
POSTECH DP&NM Lab. Internet Traffic Monitoring and Analysis: Methods and Applications (1) 4. Active Monitoring Techniques.
CDPA 網管訓練 駭客任務 2 Ethernet Switching ARP, IP, LAN, Subnet IP Header, Routing ICMP
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP: A helper protocol to IP The Internet Control Message Protocol (ICMP) is the protocol used for error.
IPv4 Exercices Q1. How many hosts are described with the following prefixes? Q2. Find the Network and the Broadcast addresses for the following.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
SWE 622- Distributed Systems Project Phase III Eric Barnes, David Chang, David Nelson Fisayo Oluwadiya, Xiang Shen.
4061 Session 25 (4/17). Today Briefly: Select and Poll Layered Protocols and the Internets Intro to Network Programming.
7/9/2007 AIIT Summer Course - Lab Wireless Embedded Systems and Networking Lab Day 1: Part 1: First Table-top IP/WSN Lab Assistant: Jaein Jeong University.
IP network tools & troubleshooting AFCHIX 2010 Nairobi, Kenya October 2010.
IP Telephone Lab 1 Connectivity Test IP Telephone Lab 2 Outline Ping & ICMP Fast Ping (fping) & AutoStatus One-Way Ping.
 Socket class ◦ provides a rich set of methods and properties for network communications. The Socket class allows you to perform both synchronous and.
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
Computer Communication: An example What happens when I click on
Module 16: Distributed System Structures Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Apr 4, 2005 Distributed.
438 labs. Labs Lab 1: Refreshing C and Linux Programming 2 Lab 1: Refreshing C and Linux Programming 2 – First: Getting familiar with development.
1 7 Ping Program. 2 7 Introduction - Problem How do I know if a host is reachable?
Ping and Traceroute by Aleisa A. Drivere Supervisor Graciela Perera.
Victoria Manfredi September 13, 2016.
Lecture#6:Connectivity Verification
LESSON Networking Fundamentals Understand TCP/IP.
Port Connection Status
Connectivity Verification
Network Tools and Utilities
Hping2.
ICMP ICMP = Internet Control Message Protocol Layer 3
Lecture#7:Connectivity Verification
IP network tools & troubleshooting
Introduction to Networking
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Ewan MacKellar & Mario Tevanian
Advanced Computer Networks
Lecture#6:Connectivity Verification
Socket Programming.
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
Internet Control Message Protocol
Presentation transcript:

7/11/2007 AIIT Summer Course - D# 1 Wireless Embedded Systems and Networking Lab Day 3: Part 1: IP access using standard client programs Lab Assistant: Jaein Jeong University of California, Berkeley

7/11/2007AIIT Summer Course - D#2 Today’s Topics Set up IP routing to nodes. Ping nodes. Using IP level service for nodes. –Telnet or TCP,UDP/IP application.

7/11/2007AIIT Summer Course - D#3 Set up routing to nodes By default, sensor nodes have IPv4 address of /16. Add a route between Ethernet and LoWPAN. –Linux: ip route add /16 via –Windows: route add mask –E.g. route add mask Exercise 3-1: type the routing command for your environment.

7/11/2007AIIT Summer Course - D#4 Ping nodes Step 1: Find IP address of a node

7/11/2007AIIT Summer Course - D#5 Ping nodes Step 2: Type ‘ping ’. Exercise 3-2: Ping one of the nodes in your network. $ ping Pinging with 32 bytes of data: Reply from : bytes=32 time=124ms TTL=32 Reply from : bytes=32 time=134ms TTL=32 Reply from : bytes=32 time=143ms TTL=32 Reply from : bytes=32 time=136ms TTL=32 Ping statistics for : Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 124ms, Maximum = 143ms, Average = 134ms

7/11/2007AIIT Summer Course - D#6 Telnet to services on ports Port 7 (echo) $ java EchoClient Connected to echo server Hello, world. Port 10 (leds) $ java LedsClient Connected to LEDs server 3 Port 11 (sysstat) $ java SysstatClient Connected to sysstat server pltfm : telosb proc : MSP430F1611 eui64 : 00173B000C version : builton : uptime : 6504 cputime : 30 radtime : 73 mV : 2999 wdt : 0 Port 15 (netstat) Connected to netstat server Lnk TX PTX RX OVH Net TX RTX DRP OVR Rte Addr Hops RSSI 0: : : Port 30 (raw sensor reading) $ java SensorReadClient Connected to sensor reading server Hum : 0 Temp : 0 PAR : 0 TSR : 2 Vcc : 4020 ADC0 : 1179 ADC1 : 1421 IO0 : 0 IO1 : 0 IO2 : 0 Swtch: 0

7/11/2007AIIT Summer Course - D#7 Telnet to services on ports Syntax: telnet Exercise 3-3: What are the raw sensor readings when you telneted to one of the nodes? $ telnet Hum : 0 Temp : 0 PAR : 0 TSR : 2 Vcc : 4019 ADC0 : 1180 ADC1 : 1419 IO0 : 0 IO1 : 0 IO2 : 0 Swtch: 0

7/11/2007AIIT Summer Course - D#8 netcat – what can we do with it?? netcat can pull information from a host at certain port. Syntax: netcat Exercise 3-4: What are the RSSI reading to the parent node and the first alternate parent node when you netcated to a node?

7/11/2007AIIT Summer Course - D#9 Custom IP application With TCP,UDP/IP Programming –Open a TCP or UDP socket using API. –Send and receive lines of characters as a message / response.. try { Socket theSocket = new Socket(hostname, 30); networkIn = new BufferedReader( new InputStreamReader(theSocket.getInputStream())); BufferedReader userIn = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(theSocket.getOutputStream()); System.out.println("Connected to sensor reading server"); String reply reply = networkIn.readLine(); while (reply != null) { System.out.println(reply); reply = networkIn.readLine(); } } // end try

7/11/2007AIIT Summer Course - D#10 Wrap-up Time permitting start on Embedded Programming