Efficient Network Management (236635) SNMP TCP Backchannel Submitted by: An SNMP agent extension for transferring large files Tsachi Sharfman 029710399.

Slides:



Advertisements
Similar presentations
Current methods for negotiating firewalls for the Condor ® system Bruce Beckles (University of Cambridge Computing Service) Se-Chang Son (University of.
Advertisements

Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
Chapter 7: Transport Layer
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
Internet Control Message Protocol (ICMP). Introduction The Internet Protocol (IP) is used for host-to-host datagram service in a system of interconnected.
Chapter 13 Mobile IP. Outline  ADDRESSING  AGENTS  THREE PHASES  AGENT DISCOVERY  REGISTRATION  DATA TRANSFER  INEFFICIENCY IN MOBILE IP.
COS 420 Day 20. Agenda Group Project Discussion Protocol Definition Due April 12 Paperwork Due April 29 Assignment 3 Due Assignment 4 is posted Last Assignment.
CSEE W4140 Networking Laboratory Lecture 11: SNMP Jong Yul Kim
Project: Evaluating SNMP Application Level Gateway (SNMP ALG) Eyal Kessler Alexander Shifrin Dmitri Gorbenko
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
Ch 23 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007 Ameera Almasoud.
Polaris Financial Technologies Welcomes the members of Hyderabad chapter for the 2nd event on 4 th July 14 held by PACE (The Testing Practice)
SNMP & MIME Rizwan Rehman, CCS, DU. Basic tasks that fall under this category are: What is Network Management? Fault Management Dealing with problems.
Firewalls and VPNS Team 9 Keith Elliot David Snyder Matthew While.
1 Internet Control Message Protocol (ICMP) RIZWAN REHMAN CCS, DU.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
Network Management Concepts and Practice Author: J. Richard Burke Presentation by Shu-Ping Lin.
Process-to-Process Delivery:
IGEL UMS Product Marketing Manager October 2011 Florian Spatz Universal Management Suite.
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Professor OKAMURA Laboratory. Othman Othman M.M. 1.
13/09/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Transport layer and Application Layer Slide 1.
Remote Access Chapter 4. Learning Objectives Understand implications of IEEE 802.1x and how it is used Understand VPN technology and its uses for securing.
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
HTTP HTTP stands for Hypertext Transfer Protocol. It is an TCP/IP based communication protocol which is used to deliver virtually all files and other.
Presented by Xiaoyu Qin Virtualized Access Control & Firewall Virtualization.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Professor OKAMURA Laboratory. Othman Othman M.M. 1.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
Module 12: Routing Fundamentals. Routing Overview Configuring Routing and Remote Access as a Router Quality of Service.
Othman Othman M.M., Koji Okamura Kyushu University 1.
UNIT IP Datagram Fragmentation Figure 20.7 IP datagram.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
Othman Othman M.M., Koji Okamura Kyushu University 1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Security, NATs and Firewalls Ingate Systems. Basics of SIP Security.
Module 7: Advanced Application and Web Filtering.
Transmission Control Protocol (TCP) Internet Protocol (IP)
“ is not to be used to pass on information or data. It should used only for company business!” – Memo from IBM Executive The Languages, Methods &
1 Kyung Hee University Chapter 11 User Datagram Protocol.
Process-to-Process Delivery:
Mobile IP THE 12 TH MEETING. Mobile IP  Incorporation of mobile users in the network.  Cellular system (e.g., GSM) started with mobility in mind. 
Internet Control Message Protocol (ICMP)
Chapter 7: Transport Layer
Introduction to Networks
Internet Control Message Protocol (ICMP)
Chapter 11 User Datagram Protocol
LESSON Networking Fundamentals Understand TCP/IP.
The Transport Layer Implementation Services Functions Protocols
Internet Control Message Protocol (ICMP)
Understand the OSI Model Part 2
Chapter 6: Network Layer
Introduction to Networks
NET323 D: Network Protocols
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Chapter 14 User Datagram Protocol (UDP)
Internet Control Message Protocol (ICMP)
NET323 D: Network Protocols
Process-to-Process Delivery:
Setting Up Firewall using Netfilter and Iptables
CSCD 330 Network Programming
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

Efficient Network Management (236635) SNMP TCP Backchannel Submitted by: An SNMP agent extension for transferring large files Tsachi Sharfman Kfir Karmon

Efficient Network Management (236635) Problem Description SNMP runs over UDP SNMP runs over UDP UDP is unreliable and therefore is inefficient for transferring large amounts of data UDP is unreliable and therefore is inefficient for transferring large amounts of data

Efficient Network Management (236635) Solution ’ s Requirements Should enable the efficient transfer of any SNMP table supported by the agent. Should enable the efficient transfer of any SNMP table supported by the agent. Should be transparent to existing SNMP clients. Should be transparent to existing SNMP clients.

Efficient Network Management (236635) Possible Solutions (1/3) Download a mirrored table using FTP Download a mirrored table using FTP Based on widespread known technology (SNMP & FTP) Relies on an reliable protocol (FTP/TCP)  Not transparent to existing SNMP clients (Fails to withstand the requirements) 1.Send an SNMP SET command to a special OID 2.The agent will locally save a specified table 3.The client will retrieve the table using FTP Pros and Cons:

Efficient Network Management (236635) Possible Solutions (2/3) Use SNMP through a TCP tunnel Use SNMP through a TCP tunnel Full transparency for existing SNMP clients Relies on an reliable transfer protocol (TCP)  Non standard, relies on proprietary technology  Overhead for short SNMP requests (UDP is cheaper) 1.Open a TCP tunnel between the client and server 2.SNMP packets are routed through the TCP tunnel Pros and Cons:

Efficient Network Management (236635) Possible Solutions (3/3) Use a TCP backchannel for SNMP responses Use a TCP backchannel for SNMP responses Full transparency for existing SNMP clients Relies on an efficient transfer protocol (TCP)  Might be non-friendly to firewalls and NAT gateways 1.Client requests the table using SNMP 2.Client has a service, listening on a designated TCP port 3.Agent sends the SNMP responses encapsulated in the TCP backchannel to the client ’ s listening port 4.The service locally emulates the agent ’ s SNMP response Pros and Cons:

Efficient Network Management (236635) Implementing Solution #3 In order to trigger the Backchannel (BC) mechanism the client should : In order to trigger the Backchannel (BC) mechanism the client should : –Register its IP and listening port –Register the wanted table (OID) –Issue an SNMP request to the Mirrored OID At this point the SNMP agent will query itself with SNMP for the requested OID (the real one) At this point the SNMP agent will query itself with SNMP for the requested OID (the real one) After the receiving the table a bakchannel to the client is opened and the table is transferred After the receiving the table a bakchannel to the client is opened and the table is transferred The client side will send itself an SNMP response with the received table The client side will send itself an SNMP response with the received table Architecture Overview - TCP backchannel (1/1)

Efficient Network Management (236635) Implementing Solution #3 New MIB defined in the “ NET-SNMP-EXAMPLES-MIB.txt ” file New MIB defined in the “ NET-SNMP-EXAMPLES-MIB.txt ” file It introduced two table: It introduced two table: –BCRegisteredClientsTable Every client that wants to use the BC mechanism needs to register itself here –BCRegisteredOIDsTable Each OID that needs to be transferred via the BC should be registered here An additional “ phantom ” table was introduced, it includes OIDs that issuing SNMP requests to them triggers the BC mechanism An additional “ phantom ” table was introduced, it includes OIDs that issuing SNMP requests to them triggers the BC mechanism Backchannel Control MIB (BCM) 1/3

Efficient Network Management (236635) Implementing Solution #3 BCRegisteredClients BCRegisteredClients BCRegisteredOIDs BCRegisteredOIDs Legend: Backchannel Control MIB (BCM) 2/3

Efficient Network Management (236635) Implementing Solution #3 BCMirroredOIDsTable BCMirroredOIDsTable –These names are not defined in the MIB, though the structure is supported by the agent add-on (via the numeric annotation) Legend: Backchannel Control MIB (BCM) 3/3

Efficient Network Management (236635) Implementing Solution #3 The NET SNMP agent was extended using the, existing, add-on mechanism The NET SNMP agent was extended using the, existing, add-on mechanism The extension would handle any SNMP requests that are targeted to the “… BackchannelControl.* ” OIDs The extension would handle any SNMP requests that are targeted to the “… BackchannelControl.* ” OIDs When an SNMP Get* request, to the MirroredOIDs, is received the agent will query itself for the appropriate OID When an SNMP Get* request, to the MirroredOIDs, is received the agent will query itself for the appropriate OID The agent will send, via the TCP BC, the SNMP packets constructing the received response (in the TCP packets payloads) The agent will send, via the TCP BC, the SNMP packets constructing the received response (in the TCP packets payloads) Backchannel Server (BCServer) 1/1

Efficient Network Management (236635) Implementing Solution #3 A.K.A BackChannel Listener (BL) A.K.A BackChannel Listener (BL) The client registers itself and the wanted OIDs to the designated tables as described above. The client registers itself and the wanted OIDs to the designated tables as described above. The client issues a standard SNMP Request to the MirroredOID The client issues a standard SNMP Request to the MirroredOID The BCClient listens to the designated port for a connection to be made by the BCServer The BCClient listens to the designated port for a connection to be made by the BCServer After receiving the encapsulated SNMP response packets from the BCServer, the BCClient issues a standard SNMP response “ spoofed ” with the server ’ s IP. After receiving the encapsulated SNMP response packets from the BCServer, the BCClient issues a standard SNMP response “ spoofed ” with the server ’ s IP. Thus causing the initial, standard, SNMP request to receive the response without knowing that it was sent via a TCP BC. Thus causing the initial, standard, SNMP request to receive the response without knowing that it was sent via a TCP BC. Backchannel Client (BCClient) 1/1

Efficient Network Management (236635) Implementing Solution #3 The Whole Picture

Efficient Network Management (236635) How We Tested (1/2) I order to test the efficiency of the new BC mechanism we built the following network topology I order to test the efficiency of the new BC mechanism we built the following network topology Windows SNMP Client + BCClientWindows SNMP Agent + BCServer Linux based router + Configurable Packet loss driver

Efficient Network Management (236635) How We Tested (2/2) We created scripts to automate our testing: We created scripts to automate our testing: –_AddRoutingRules.vbs This script added routing rules to the agent ’ s routing table, a rule was added for each IP in the range: 10.0.[0-4].[0-255] –_Test.vbs This was the main script, its usage: _T est.vbs [TCP | UDP] [Server's IP] [Client's IP] [NumOfRepititions] [NumOfTimes] [CSV_File] This script performs snmpBulkGet requests to the server using a defined number of repetitions in the bulk response. This script performs snmpBulkGet requests to the server using a defined number of repetitions in the bulk response. The requests were executed a defined number of times. The requests were executed a defined number of times. The output was exported to a CSV formatted file for later data processing in MS-Excel. The output was exported to a CSV formatted file for later data processing in MS-Excel. TCP requests were issued to the mirrored OID and UDP requests were issued to the regular ipRoutingTable OID (both via standard SNMP) TCP requests were issued to the mirrored OID and UDP requests were issued to the regular ipRoutingTable OID (both via standard SNMP)

Efficient Network Management (236635) Results (1/4) At first we compared the BC mechanism ’ s efficiency against the standard SNMP with the following parameters: At first we compared the BC mechanism ’ s efficiency against the standard SNMP with the following parameters: –60 repetitions in the bulk response (= a single IP packet) –Packet Loss rate ranging from 0%-50% stepping in 10% –Each scenario was tested 50 times Increase Packet Loss Rate & no IP Fragments

Efficient Network Management (236635) Results (2/4) Then we used the following parameters: Then we used the following parameters: –126 repetitions in the bulk response (= 2 IP packet, caused by IP- fragmentation) –Packet Loss rate ranging from 0%-50% stepping in 10% –Each scenario was tested 50 times Increase Packet Loss Rate & 2 IP Fragments

Efficient Network Management (236635) Results (3/4) Then after we used the following parameters: Then after we used the following parameters: –400 repetitions in the bulk response (= ~8 IP packet, caused by IP- fragmentation) –Packet Loss rate ranging from 0%-50% stepping in 10% –Each scenario was tested 50 times Increase Packet Loss Rate & 8 IP Fragments

Efficient Network Management (236635) Results (4/4) The last test had the following parameters: The last test had the following parameters: –Repetitions ranging from 6 to 2880, in the bulk response, stepping in ~400 –Packet Loss rate of 10% –Each scenario was tested 50 times Increasing IP Fragments & fixed Packet Loss

Efficient Network Management (236635) Observations (1/2) Both methods success rate drop when packet loss rate inclines Both methods success rate drop when packet loss rate inclines Though, BC success rate is consistently higher than standard SNMP Though, BC success rate is consistently higher than standard SNMP UDP ’ s average success time is constant, BC ’ s average time increases. (UDP fails at const timeout, BC retries) UDP ’ s average success time is constant, BC ’ s average time increases. (UDP fails at const timeout, BC retries) BC ’ s performance declines when packet loss increases over 20% (Combination of average time and success rate) BC ’ s performance declines when packet loss increases over 20% (Combination of average time and success rate) Increase Packet Loss Rate

Efficient Network Management (236635) Observations (2/2) When packet loss rate set to 10% and increasing the size of the bulk... When packet loss rate set to 10% and increasing the size of the bulk... BC delivers great performance: Nearly fixed time & high success rate BC delivers great performance: Nearly fixed time & high success rate Standard SNMP suffers from increasing average time and steep drop in success rate Standard SNMP suffers from increasing average time and steep drop in success rate Fixed Low Packet Loss

Efficient Network Management (236635) Conclusion Using a TCP Backchannel proved to be very effective in relatively moderate packet loss rates (~10%) Using a TCP Backchannel proved to be very effective in relatively moderate packet loss rates (~10%) The solution is transparent to existing SNMP based management tools The solution is transparent to existing SNMP based management tools Provides efficient method for retrieving large amounts of data in a quick and reliable manner Provides efficient method for retrieving large amounts of data in a quick and reliable manner

Efficient Network Management (236635) The End