Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Lab 1, Basic Linux and Networking Commands Shiv Kalyanaraman Yong Xia (TA)

Slides:



Advertisements
Similar presentations
Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Advertisements

Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #07 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
1 CCNA 2 v3.1 Module 9. 2 Basic Router Troubleshooting CCNA 2, Module 9.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Network Layer Shivkumar.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1: Solutions Time: 60 min (strictly enforced) Points: 50 YOUR.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
WXES2106 Network Technology Semester /2005 Chapter 7 TCP/IP Suite Error and Control Messages CCNA2: Module 8, 9.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Protocol (IP): Addressing and Forwarding Shivkumar Kalyanaraman Rensselaer Polytechnic.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Click to edit Master subtitle style Chapter 17: Troubleshooting Tools Instructor:
CS 356 Systems Security Spring Dr. Indrajit Ray
1 TCP/IP architecture A set of protocols allowing communication across diverse networks Out of ARPANET Emphasize on robustness regarding to failure Emphasize.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Chapter Overview TCP/IP Overview Configuring TCP/IP Clients
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Chapter Eleven An Introduction to TCP/IP. Objectives To compare TCP/IP’s layered structure to OSI To review the structure of an IP address To look at.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Björn Landfeldt School of Information Technologies NETS 3303 ICMP and applications.
TCP/IP Protocol Suite - examples
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Exploring the Packet Delivery Process Chapter
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
PA3: Router Junxian (Jim) Huang EECS 489 W11 /
Examining TCP/IP.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #03 SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
© 2002, Cisco Systems, Inc. All rights reserved..
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
CS 6401 Internetworking Outline Internet Architecture Best Effort Service Model.
POSTECH DP&NM Lab. Internet Traffic Monitoring and Analysis: Methods and Applications (1) 4. Active Monitoring Techniques.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
Lab 1, Basic Linux and Networking Commands Shiv Kalyanaraman Yong Xia (former TA) Vijay Subramanian
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
Day 14 Introduction to Networking. Unix Networking Unix is very frequently used as a server. –Server is a machine which “serves” some function Web Server.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
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.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Cisco Networking Academy S2 C9 TCP/IP. ensure communication across any set of interconnected networks Stack components such as protocols to support file.
Linux Networking #1 Dr. Michael L. Collard 1.
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
Chapter 2 - Page 1 Infogem Institute of Technology CCNA Course TCP/IP Protocol Suite TCP/IP PROTOCOL SUITE Chapter 3 Sybex, Chapter 9 Exam Cram.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Linux Operations and Administration Chapter Eight Network Communications.
Lab 1, Basic Linux and Networking Commands Shiv Kalyanaraman Yong Xia (former TA) Google:
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Midterm Review. Chapter 1 Internet Concepts Applications, End-hosts, Routers, Switches, Communication Links Overall architecture How they are organized.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Click to edit Master subtitle style
CompTIA Network+ N Authorized Cert Guide
3. Internetworking (part 1)
Chapter 6 – Routing.
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Presentation transcript:

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Lab 1, Basic Linux and Networking Commands Shiv Kalyanaraman Yong Xia (TA) Aug 29, 2002 Experimental Networking (ECSE 4963) 1

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 2 q Linux commands q Networking commands and tools q Socket programming q An introduction project q Preview of the next lab Basic Commands 2

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 3 Basic Linux Commands q man – manual page (help info) q pwd – present working directory q ls – list content in current directory q mv / cp / rm – move(rename) / copy / delete file q mkdir / rmdir – create / delete a new directory q chmod – change w/r/x modes of file q ps – check process status q kill – terminate process q pipe operator >, >>, | 3

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 4 Internet Protocols Stack 4 IP TCPUDP ATM Satellite Ethernet  Packet-switched network  IP is the glue  Hour-glass architecture -all hosts and routers run IP -IP runs over everything  Common Intermediate Representation ICMP Cable

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5 TCP / UDP / IP q IP q Unreliable, best-effort service q Connectionless: no per-packet or per- session state information inside network, each IP packet is delivered independent of all other packets q Like post-office (USPS) mail 5

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 6 TCP / UDP / IP q UDP q Datagram service: explicit boundary between packets q What’s more than IP? q Port number: multiplexing for applications q Checksum: weak error detection (not correction!) 6

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 7 TCP / UDP / IP q TCP q Many versions: Tahoe, Reno, SACK, Vegas q Connection-oriented: per-session state variables maintained at end-hosts (but not in network, unlike circuit-switched and virtual- circuit approaches) q Aka end-to-end “connection” or “association” q Reliably setup and tear down the end-to- end association 7

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 8 TCP (contd) q Reliable: uses: q ACKs (“sender: receiver correctly got this packet”), q checksum (“receiver: is this packet is correct or wrong?”) and q window (multiple packets in flight: pipelined) q Byte-stream: no application-packet boundary like UDP q Congestion control: reduce demand during overload, to ensure stable statistical multiplexing of the network

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 9 Basic Networking Commands 9 M n q How to detect if another machine is alive, the path to it, and resolve its DNS name to ip address, etc. …?

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 10 q Input and output queues (buffers) q Switch fabric (forwarding / routing) 10 A Router Model Scheduler queue 1 queue 2 …… queue k Classifier buffer management I 1 I 2 I m O1O1 O2O2 OnOn router

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 11 Basic Networking Commands q ping – check if machine is alive q ifconfig – interface (ip addr / mask) configuration q arp – link / network layer address mapping q netstat – status info of network configuration q telnet – remote terminal q ftp – file transfer tool q route – set static route of a machine q traceroute – gather route information q tcpdump – dump packet header q nslookup – resolve DNS name of target hostname Key : What can you infer about the network or end-to- end properties with these commands? 11

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 12 q Packet is processed at a router: q Packet enters at IP input queue from an interface (ifconfig) q Calculate next hop router based on longest-prefix match of packet header destination IP address with routing table entry q Routing table is maintained dynamically by a daemon (e.g. gated), or statically by route command q View routing info etc. via netstat command q If it’s an ICMP packet, further processing q ICMP echo  ping q Decrement Time_To_Live (TTL), dicard packet if it’s zero and send ICMP error back to source  traceroute q Send packet to output queue (forwarding) q Nslookup: gives ip address of a host (or router I/f) name q Tcpdump can be used to view the whole packet! 12 Packet’s Life in a Router

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 13 Some Miscellaneous Hints q To check default gateway/static routes without being dependent on DNS: netstat -rn q If you get an error saying command not found, set the path: export PATH=$PATH: q Common directories where programs are found: /usr/sbin, /sbin, /usr/bin, /usr/local/bin q If you have root and want to start/stop/restart the networking modules : /etc/init.d/network start /etc/init.d/network stop /etc/init.d/network restart

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 14 Project: Measuring RTT q Write program to measure round-trip time between two end host on the Internet; q Refer to ping: write a simple wrapper program.. q Propose a model for RTT prediction, i.e., give a sequence of RTT measures, estimate the next RTT value. q Measure several values of RTT. What can you say about the samples? If they are variable, what can you do to reduce the variability of the RTT estimate? q Time series model 14

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 15 Advanced Ideas: For Fun! q Can you correlate info across measurements using different techniques? q “Rocketfuel”: ISP maps q q Skitter: Internet Maps q q Pathchar: bandwidth measurement q q Pathrate/Pathload: load/available bandwidth measurement q q Visualization tools & utilities: q q q King: end-to-end latency estimator q q Internet Traffic Archive: q

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 16 Internet AS Map: caida.org