Application Layer Active Network

Slides:



Advertisements
Similar presentations
Sockets Programming CS144 Review Session 1 April 4, 2008 Ben Nham.
Advertisements

Networks: TCP/IP Socket Calls1 Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
1 Netcomm Sockets Communication Networks Recitation 1.
Socket Programming: a Primer Socket to me!. Feb. 23, 2001EE122, UCB2 Why does one need sockets? application network protocol sockets network.
UDP: User Datagram Protocol. UDP: User Datagram Protocol [RFC 768] r “bare bones”, “best effort” transport protocol r connectionless: m no handshaking.
CS 311 – Lecture 18 Outline IPC via Sockets – Server side socket() bind() accept() listen() – Client side connect() Lecture 181CS Operating Systems.
Telnet/SSH Tim Jansen, Mike Stanislawski. TELNET is short for Terminal Network Enables the establishment of a connection to a remote system, so that the.
Socket Addresses. Domains Internet domains –familiar with these Unix domains –for processes communicating on the same hosts –not sure of widespread use.
Winsock programming.  TCP/IP UDP TCP  Winsock #include wsock32.lib.
ISP – 9 th Recitation Socket programming – Client side.
1 Tutorial on Socket Programming Computer Networks - CSC 458 Department of Computer Science Yukun Zhu (Slides are mainly from Monia Ghobadi, and Amin Tootoonchian,
Basic Socket Programming TCP/IP overview. TCP interface Reference: –UNIX Network Programming, by Richard Stevens. –UNIX man page.
TCP Socket Programming. r An abstract interface provided to the application programmer  File descriptor, allows apps to read/write to the network r Allows.
Operating Systems Chapter 9 Distributed Communication.
LWIP TCP/IP Stack 김백규.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
Sirak Kaewjamnong Computer Network Systems
Server Sockets: A server socket listens on a given port Many different clients may be connecting to that port Ideally, you would like a separate file descriptor.
1 Writing Network Applications using the TCP/IP Protocol Stack: Socket Programming.
Windows Network Programming ms-help://MS.MSDNQTR.2004JAN.1033/winsock/winsock/windows_sockets_start_page_2.htm 井民全.
CSC 600 Internetworking with TCP/IP Unit 2: Client-Server Model and Sockets(Ch.2, 3, 21, 22) Dr. Cheer-Sun Yang Fall 2000.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface.
Technical Details for sockaddr_in Structure Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
Outline Socket programming with Windows OSSocket programming with Windows OS C++ UDPSocket classC++ UDPSocket class Socket programming with Windows OSSocket.
1 COMP445 Fall 2006 Lab assignment 1. 2 STEP1: Get the name of the second party STEP2: Get phone number from white pages CALLERRECEIVER STEP1: Plug the.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
1 Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 3: Sockets.
TELE202 Lecture 15 Socket programming 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (2) »Source: chapter 17 ¥This Lecture »Socket programming.
Prepared by: Azara Prakash L.. Contents:-  Data Transmission  Introduction  Socket Description  Data Flow Diagram  Module Design Specification.
University of Calgary – CPSC 441.  A socket is an interface between the application and the network (the lower levels of the protocol stack)  The application.
Introduction to Socket
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 3.1 Internet Applications Ch. 28,… (Client-Server Concept, Use of Protocol Ports, Socket API)
Chapter 27 Socket API Interface The interface between an application program and the communication protocols in an operating system is known as the Application.
Socket Programming Tutorial Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
Socket Programming Lab 1 1CS Computer Networks.
1 Sockets Programming Socket to me!. 2 Network Application Programming Interface (API) The services provided by the operating system that provide the.
2: Application Layer1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
Network Programming By J. H. Wang Nov. 21, Outline Introduction to network programming Socket programming –BSD Socket –WinSock –Java Socket Exercises.
Introduction to Sockets
Berkeley Socket Abstraction
Read() recv() connection establishment Server (connection-oriented protocol) blocks until connection from client Client socket() bind() listen() accept()
CSCI 330 UNIX and Network Programming Unit XIV: User Datagram Protocol.
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 16 Socket Interface.
Advanced UNIX programming Fall 2002 Instructor: Ashok Srinivasan Lecture 17 Acknowledgements: The syllabus and power point presentations are modified versions.
Lecture 15 Socket Programming CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
1 Socket Interface. 2 Client-Server Architecture The client is the one who speaks first Typical client-server situations  Client and server on the same.
Socket Programming(1/2). Outline  1. Introduction to Network Programming  2. Network Architecture – Client/Server Model  3. TCP Socket Programming.
CHAT APPLICATION A PRESENTATION ON Dr. Neepa shah
Jim Fawcett CSE 681 – Software Modeling & Analysis Fall 2002
Jim Fawcett CSE 687-OnLine – Object Oriented Design Summer 2017
The Pocket Guide to TCP/IP Sockets: C Version
Jim Fawcett CSE 775 – Distributed Objects Spring 2007
Network Programming with Sockets
Socket Interface 1 Introduction 11 Socket address formats 2 API 12 13
Tutorial on Socket Programming
Transport layer API: Socket Programming
Chapter 3 Sockets Introduction
Chapter 16 Socket Interface.
28.
27.
ECS152b Behrooz Khorashadi
Lecture 2 Socket Programming
Chapter 3 Socket API © Bobby Hoggard, Department of Computer Science, East Carolina University These slides may not be used or duplicated without permission.
Socket Programming(1/2)
Sockets Programming Socket to me!.
Sockets Programming Socket to me!.
Windows sockets Iveta LenčiauskaitE.
Outline Communications in Distributed Systems Socket Programming
CSI 4118 – UNIVERSITY OF OTTAWA
Jim Fawcett CSE 681 – Software Modeling & Analysis Summer 2003
Presentation transcript:

Application Layer Active Network Developing a Network-Interface for controlling the Data-Communication of an Network-Card (Entwicklung eines Netzwerk-Interface zur Steuerung der Datenkommunikation einer Netzwerkkarte) Diploma Thesis (Diplomarbeit) Martin Wodrich 2004 Presentation 2 (Vortrag 2)

Table of Contents What is to do for Active Network The Windows Network Stack Type of Network Connections The Application Layer Active Network Systemarchiteture Why modules? How that works? What can a Execution Enviroment do? Limits of the Architecture News and tomorows Windows Yesterdays Windows Portability Protocols TCP/IP

What is to do for ALAN? Controlling all Network Traffic Resource-Managment Modification of Network-Pakets

Windows Network Stack Part I (Usermode)

Windows Network Stack Part II (Kernelmode)

Usable for Custom Drivers * Layered Service Provider * Intermediate Driver Choosen for Active Network: * Layered Service Provider

Types of Network Connections Connectionless Sender Connectionless Receiver Connectionoriented Server Connectionoriented Client

Steps for a Network Connection – All Types Open the Winsock Init the Winsock (WSAStartup()) Open a Socket (WSASocket())

Steps for a Network Connection - Connectionless Sender Send the Data (WSASendto()) Close the Socket (WSAShutdown()) Cleanup the Winsock (WSACleanup())

Steps for a Network Connection – Connectionless Receiver Bind the socket to an adress (bind()) Receive the Data (WSARecvfrom()) Close the Socket Cleanup the Winsock

Steps for a Network Connection – Connectionoriented Server Bind the Socket to an Adress Take the Socket into listen state (listen()) Accept a Connection (accept()) Send and Receive Data (send()/received()) Close the Socket Cleanup the Winsock

Steps for a Network Connection – Connectionoriented Client Connect to a Server (connect()) Send and Receive Data Close the Socket Cleanup the Winsock

Steps for a Network Connection – Why Steps All these steps are useful to track and intercept connections to manipulate the data.

Application Layer Active Network Systemarchitecture

All these Modules nessesary? - Protocol Helper No Transport Protocol are the same as an other. See TCP/IP v4 and TCP/IP v6 as an Example an the next pages. We must know the Application Layer Protocol to modify the Data. On TCP/IP (both versions) its an Number called Port.

TCP/IPv4 Socketaddress struct sockaddr_in { short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; };

TCP/IPv6 Socketaddress struct sockaddr_in6 { short sin6_family; u_short sin6_port; u_long sin6_flowinfo; struct in6_addr sin6_addr; u_long sin6_scope_id; };

All these Modules nessesary? - Execution Enviroments The use of Execution Enviroments is more flexible than a fixed Ruleset for Modifikation. A new Type of data modifing means nowthing more than adding a new Execution Enviroment.

All these Modules nessesary? - Monitor DLL A Layered Service Provider only have a single entry Point. Everything else is done by List. These List can only have a fixed list of entrys. But we need an interface for a Management Application that control the whool active network system.

How that work? - Open a Socket Application opens a socket The ALAN_LSP calls the ALAN_MON.dll to save the parameters of the socket (Number of socket,protocolnumber and Type of socket)

How that work? - Bind or Connect Application calls bind() or connect() (Bind is for a server, connect for a client) The ALAN_LSP calls the ALAN_MON.dll The ALAN_MON searchs for a protocol helper The Protocol Helper extracts the Number of the Application Layer Protocol from the sockaddr-Structure (In TCP/IP this is called portnumber). The ALAN_MON searchs for the right EE.

How that work? - Accept Application calls accept() The ALAN_LSP calls the ALAN_MON The ALAN_MON copys the Information. Now the old and the new socket akt as the same.

How that work? - Send (Part 1) Application calls the send-function The ALAN_LSP calls the ALAN_MON to modify the data. If this is the first send-Call, then the new lenght of the data are the old lenght. If we don´t have a measurement of the datarate, we use a default instead.

How that work? - Send (Part 2) ALAN_MON calculate the rate with the application will send the data. ALAN_MON calculate the needed new lenght of the data, and calls then the EE. The EE modify the data. The ALAN_LSP measures the datarate.

How that work? - Calculation of the application send rate. size_of_last_senddata send_rate_of_ ------------------------------ = the_application time - last_send_time

How that work? - Calculation of the new data lenght size_of_unmodifyed_data sendrate of apl. ------------------------------- = ------------------- new_size_of_data data_rate

What can a Execution Enviroment do? Nothing (only a dummy) Call an other Execution Enviroment Implement a Virtual Maschine or Just everything that can modify data.

Limits of the architecture Unknown transport level protocols Unknown application layer protocol Unknown subtype of data Connectionless network connection Broadcast,Multicast and Anycast (Anycast is only TCP/IPv6)

News and Tomorows Windows Windows XP SP2 Windows 2003 Windows 64 Bit Edition Windows Longhorn

Yesterdays Windows Windows 1.0 to 3.11 Windows 95 Windows 98 and ME Windows NT 3.x Windows NT4.0 Windows CE

Portability Winsock 1.1 MSDOS and Windows to 3.11 OS not from MS

Protocols TCP/IP

Any Questions left? This presentation end now. Are any questions left? This presentation can be downloaded from http://www.martinwodrich.de/science/alan/vortrag2/