A RealTek Application Using our own device-driver and a standard networking protocol to discover the ‘active’ workstations.

Slides:



Advertisements
Similar presentations
ARP Caching Christopher Avilla. What is ARP all about? Background Packet Structure Probe Announcement Inverse and Reverse Proxy Tools Poisoning MAC Flooding.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
ARP: Address Resolution Protocol
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
I/o multiplexing On adding a ‘poll()’ method to our character-mode device-driver for an 82573L network controller.
Special IP Addresses All 0’s – this computer on bootstrap Network.000s – id’s the network Network.111s – broadcast – broadcast 127.x loopback 6/9/2015ICSS420.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
Computer Network 實踐資管 Wang-Jiunn Cheng 2004 PART IV-2 Local Area Networks (LANs) Frame.
Examining network packets Information about the RTL8139 needed for understanding our ‘watch235.c’ pseudo driver.
The ‘ioctl’ driver-function On implementing ‘show’ and ‘hide’ for the SiS 315 hardware cursor.
Concurrent TCP connections A look at design-changes which permit a TCP server to handle multiple clients without delays.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
The hardware ringbuffer Understanding the RTL-8139 mechanism for packet reception.
Adjusting out device-driver Here we complete the job of modifying our ‘nicf.c’ Linux driver to support ‘raw’ packet-transfers.
Multiplexing i/o A look at some alternatives under Linux for dealing concurrently with multiple sources of device-input.
Hardware-address filtering How can we send packets to just one node on our ‘anchor’ cluster?
Detection of Promiscuous nodes Using Arp Packets By Engin Arslan.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
DHCP Dynamic Host Configuration Protocol Information management 2 Groep T Leuven – Information department 2/18 Agenda Introduction BOOTP.
Exploring the Packet Delivery Process Chapter
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
Examining TCP/IP.
ARP Address Resolution Protocol Ref:
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP and RARP Understand the need for ARP Understand the cases in which ARP is used.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
1 CS 4396 Computer Networks Lab Dynamic Host Configuration Protocol (DHCP)
Pack-it Technology Highly versatile Internet connectivity solution for non-Internet enabled devices. Seamless interface with RS232, Ethernet, switches,
Chapter 19 - Binding Protocol Addresses
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
IP Addresses Universal address regardless of layer 2 architecture Each address is that of an interface, not necessarily a host A host may have more than.
Chapter 19 Binding Protocol Addresses (ARP) A frame transmitted across a physical network must contain the hardware address of the destination. Before.
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
Chapter 7 ARP and RARP.
Chapter 9 Hardware Address & Frame Type Identification Hardware address of frame Addressing schemes Ethernet Frame header format.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
1 Ch 9 Hardware Addressing and Frame Type Identification.
BAI513 - PROTOCOLS ARP BAIST – Network Management.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Address Resolution Protocol.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Exploring the Packet Delivery Process.
1 Hardware Addressing and Frame Type Identification.
1 Connectivity with ARP and RARP. 2 There needs to be a mapping between the layer 2 and layer 3 addresses (i.e. IP to Ethernet). Mapping should be dynamic.
ARP ‘n RARP. The Address Resolution Protocol (ARP) is a request sent out by a computer to find another computer’s MAC address. It already knows the IP.
1 Binding Protocol Addresses (ARP ). 2 Resolving Addresses Hardware only recognizes MAC addresses IP only uses IP addresses Consequence: software needed.
TCP/IP Protocol Suite 1 Chapter 7 Upon completion you will be able to: ARP ( and ARP ( RFC-826) and RARP ( RARP ( RFC-903) Understand the need for ARP.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
RARP : Reverse Address Resolution Protocol
ARP Address Resolution Protocol
IP: Addressing, ARP, Routing
Lab 2: Packet Capture & Traffic Analysis with Wireshark
Chapter 8 ARP(Address Resolution Protocol)
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Semester 2 1 JEOPARDY CHAPTER 1 REVIEW S2C01 Jeopardy Review.
Address Resolution Protocol (ARP)
Address Resolution Protocol
Net 323: NETWORK Protocols
One Upon A Time Computer Networks
NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.
8PM – Quickly Overview Final Project
ARP: Address Resolution Protocol
Remote Login: Telnet Objectives Chapter 18
Chapter 7 ARP and RARP Prof. Choong Seon HONG.
Address Resolution Protocol (ARP)
ARP: Address Resolution Protocol
Dynamic Host Configuration Protocol (DHCP)
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Presentation transcript:

A RealTek Application Using our own device-driver and a standard networking protocol to discover the ‘active’ workstations

Our ‘rxplustx.c’ driver open read write my_fops ioctl my_ioctl() my_open() my_read() my_write() my_release() my_isr() init_module() cleanup_module() release

Our ‘arpquery.cpp’ program Opens device-file Gets netaddress then forks Installs a signal-handler While-loop receives ARP replies until signaled parent-process child-process For-loop transmits ARP request to all stations on local network then signals parent and exits

ARP request AB CDE request Station ‘A’ wants to know the Ethernet Address for station ‘B’ So ‘A’ broadcasts an ARP request-packet to all other stations

ARP reply AB CDE reply Station ‘B’ recognizes that the request is for its Ethernet Address. So ‘B’ replies directly to ‘A’, and other stations ignore the request.

Format for ARP Frames Source MAC address 0x0806 PTYPE 0x0800 HLEN 0x06 PLEN 0x04 ARP command Source hardware address Source protocol address Destination hardware address Destination protocol address Destination MAC address HTYPE 0x0001 Legend: ARP commands (0x0001=request, 0x0002=reply)

‘roomview.cpp’

Terminal ‘line graphics’ Most text-mode terminals can draw ‘boxes’ by using an ‘alternate character set’ which includes the so-called ‘line graphic’ glyphs: Upper-Left: ┌ Upper-Right: ┐ Horizontal-bar: ─Vertical-bar: │ Lower-left: └Lower-right: ┘ ┌───────────────┐ └───────────────┘

Uniform terminal interface Because terminal hardware may differ, we need a standard software interface to get the same desired effects on all platforms UNIX programming environments offer a long-established mechanism for doing this Need this header-file: #include Need linkage with ‘ncurses’ function-library

How ‘terminfo’ is used Initialize with the ‘setupterm()’ function Extract your terminal’s parameters (e.g., numbers or special control-strings) using the functions ‘tigetnum()’ and ‘tigetstr()’ Parametrize control-strings with ‘tparm()’ Output these control-strings with ‘putp()’ Our ‘roomview.cpp’ demonstrates these

Line-graphic character-codes Your terminal’s mapping of the numbers for the line-graphics glyphs can be found by a string-search of terminfo’s database This is illustrated in our ‘roomview’ demo Examples: char *acsc = tigetstr( “acsc” ); charHZ = strchr( acsc, ‘q’ )[ 1 ]; charVT = strchr( scsc, ‘x’ )[ 1 ];

Special terminal effects You can enable (or disable) use of glyphs from the terminal’s alternate character set, by using special control-sequences: ‘smacs’ and ‘rmacs’ You can put the cursor where you want it, by outputting a special control-sequence: ‘cup’ You can draw characters in ‘reverse-video’, by outputting a special control-sequence: ‘rev’ You can draw characters in ‘normal’ mode, by outputting a special control-sequence: ‘sgr0’

‘roomview.cpp’

In-class exercise Combine the programming ideas used in ‘roomview.cpp’ and ‘arpquery.cpp’ so you get a view of all the Kudlick Classroom’s workstations, but with those that sent ARP reply-packets shown with ‘reverse-video’ so as to highlight their presence online