Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling a 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using backend custom application Lab 3: demonstrate backend CA
Miscellaneous: custom application over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
VS
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Applications
Client-server applications Examples: HTTP, FTP Peer-peer applications
REQUEST RESPONSE REQUEST RESPONSE REQUEST RESPONSE
REQUEST
4
REQUEST
3
RESPONSE
RESPONSE
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Multi-tier Applications
Functionality is divided into separate tiers or levels A single successful instance of the application consists of multiple transactions A transaction consists of exchanges (request/response sequences) at the same logical level Tiers can be located on the same computer or on separate computers.
Tier-1 transaction Tier-2 transaction REQUEST REQUEST RESPONSE RESPONSE
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Custom Application
Can be used to model client-server, peer-peer, multi-tier applications Business: E-commerce, Medical Imaging, etc. Enterprise: ERP, CRM, etc. Defense: Command control, Recon data collection, etc. Home-grown
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Applications
Define application configuration
Tasks
Describe basic unit of user activity
Custom application
Phases
Define communication patterns within each task
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Profiles
Profile = collection of applications Describes activity patterns of
An individual user A group of users
CFO
CEO
Help desk
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Profile Definition
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
10
Applications in Profiles
defined in
I have the definitions of the following applications: Database Access (Light) Email (Light) Web Browsing (Light) FTP
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
11
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
12
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
13
Define profiles
Configure servers/peers
Deploy Profiles
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
14
Configure tiers
Deploy profiles
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
15
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
16
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
17
LOGIN
PURCHASE
LOGOUT
CUSTOM APPLICATION
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
18
LOGIN
PURCHASE
LOGOUT
CUSTOM APPLICATION
CONNECT
AUTHENTICATE
REPLY
LOGIN
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
19
LOGIN
PURCHASE
CUSTOM APPLICATION
CONNECT
AUTHENTICATE
LOGOUT
LOGIN
Request
Response
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
20
Phase
Request Response
Inter-request time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
21
Define Profiles
Configure Servers/Peers
Deploy profiles
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
22
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
23
Task Configuration
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
24
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
25
Phase Configuration
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
26
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
27
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
28
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
29
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
30
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
31
Phase 2
Phase 1 TASK
Requests Responses 32
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Request
Response
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
33
Phase
time
Inter-request time
Phase
time
Inter-request time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
34
a b c d
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
35
T sec
Response
Source
Destination
36
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
37
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
38
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
39
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
40
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
41
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
42
10 requests + 10 responses
2048 bytes Phase Select 3072 bytes init time: 5 sec init time:0.5 sec Phase Checkout_confirm 1024 bytes 512 bytes
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Phase Transaction_inv
43
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
44
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
45
Break
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
46
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
47
Define Profiles
Configure tiers
Deploy profiles
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
48
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
49
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
50
Phase1.3
Phase2.1
Phase3.1 Phase2.2
TASK 1
TASK 2
TASK 3
CUSTOM APPLICATION
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
51
Phase1.3
TASK 1
Phase2.1 Phase2.2
TASK 2
Phase3.1
TASK 3
CUSTOM APPLICATION
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
52
Phase1.3
TASK 1
TASK 3
TASK 2
CUSTOM APPLICATION
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
53
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
54
Request Response
Phase1
Phase2 TASK
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
55
Request Response
Phase1
Phase2 TASK
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
56
Phase1
Phase2 TASK1
Phase1
Phase2 TASK2
CUSTOM APPLICATION
time
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
57
Phase1
Phase2 TASK1
Phase1
Phase2
TASK2 CUSTOM APPLICATION
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
58
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
59
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
60
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
61
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
62
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
63
Define Profiles
Configure tiers
Deploy profiles
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
64
Configure Tiers
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
65
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
66
Destination Preferences
Resolves symbol WEB_SERVER to web_server_1 & web_server_2
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
67
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
68
Symbol Resolution
Symbol Resolution is done every time a Task is executed
Once a symbolic name is resolved to a node, the resolution will not change during the execution of the Task If a symbolic name cannot be resolved, custom application logs an error and stops the task execution
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
69
Contention Modeling
Server Contention Modeled for
Src Dest Traffic: Init Time Dest Src Traffic: Request Processing Time
If Server_Job_Name attribute is set, contention will be modeled using Advanced Server / Mainframe Models
Refer to the Online Documentation on Advanced Server Configuration for details on modeling Advanced Server / Mainframe jobs
Otherwise, the Simple CPU model will be used for contention modeling
Refer to FAQ 1106 for details on configuring the Simple CPU model
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
70
Source Preferences
Soldier 2 Soldier 1
Commander
Soldier 3
HQ
Independent sources
Set the Start Phase After to Application Starts
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
71
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
72
Available Statistics
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
73
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
74
2 3
RESPONSE
Custom Back-end
Each application request triggers the start of the custom application on the server with a given probability. Once the custom application run is over, a response is sent back to the client.
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
75
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
76
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
77
Agenda
Custom Application Overview Custom Application Workflow Breaking-down an application into tasks and phases Task Configuration lab 1: Modeling 3-Tier E-Commerce Application Task Scheduling Connection reuse Lab 2: Demonstrate connection reuse Using back-end custom application lab 3: Demonstrate backend CA
Miscellaneous: Custom app over IP Multicast, ACE Troubleshooting lab 4: Troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
78
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
79
Agenda
Custom application overview Custom application workflow Breaking down an application into tasks and phases Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
80
IP Multicast / ACE
Custom applications can run over IP Multicast
Simply set the Phase Destination to the IP Multicast address Supported over UDP only Supports only Src Dest Traffic Refer session 1316 for IP Multicast configuration
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
81
Agenda
Custom application overview Breaking down an application into tasks and phases Custom application workflow Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using custom application to model back-end behavior of servers Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
82
Troubleshooting Guidelines
1. 2. 3. 4. 5. 6. Check simulation logs Look at the Common problems section of this presentation Use constant distributions to make application deterministic Use detailed Custom Application Statistics (phase, task) Collect application Traffic Sent/Received stats in All Values mode Shows exact size and time data was sent Make sure this is not a network issue Connect an application demand between your client and server See if you get application demand response time statistics Scale down your network Isolate the problem Use User Defined Reports in Scenarios menu Globally visualize attribute settings Use Network Difference Report in Scenarios menu Compare a similar working scenario
83
7. 8. 9.
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
84
In serial mode, an application will not start if previous application duration is equal to profile duration
Simulation
Engineer profile FTP application HTTP application
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
85
? ?
Im an engineer
Engineer profile
86
87
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
88
Sorry, I am confused. There are two phases with the same name : connect 89
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
<
Simulation end time Common when using exponential distribution with start time and/or start time offset
>
Simulation
Profile start time
Simulation
Engineer profile
Profile start time Application start time offset
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
90
The symbol map Unlimited for profile and application Repeatability has a default inter arrival time of 300 secs
Engineer profile
Engineer profile
Engineer profile
Engineer profile
Etc
300 secs
300 secs
300 secs 91
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Phase2.2
TASK 2
In a multi-tier application with phases A->B and B->C, the destination symbol C must be resolved on the node that is destination for phase A->B
Wait, I dont know who C is!!!
?
92
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
Phases are not executed if a prior phase which precedes these (in dependency) times out and the time-out action is Go to next task
APP
Phase 1.1 Phase1.3 Phase2.1
APP
Phase2.2
Phase3.1
Phase 1.2
TASK 1
TASK 2
TASK 3
93
Advanced Troubleshooting
Run OPNET debugger (ODB)
Diagnostic traces
For Custom application type: ltrace gna_ca for task information: ltrace gna_task for connection information: ltrace gna_conn for traffic (requests/responses) information: ltrace gna_traf For all applications: ltrace gna Simple example Start simulation under ODB ODB> ltrace gna_conn ODB> cont This is an advanced technique. For more details, see session 1502 Debugging Simulation Models Introduction
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
94
TS FAQs
729 769 986 How do I configure a back-end custom application? What is the Task Weight attribute used for in custom applications? Is IP Multicast supported for custom applications?
1160 I dont see any application traffic or I dont see the expected application traffic. How do I troubleshoot my application configuration?
1170 I have configured a custom application and it works fine with the simple CPU model. How do I integrate the custom app with advanced server model?
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
95
Agenda
Custom application overview Breaking down an application into tasks and phases Custom application workflow Task configuration Lab 1: modeling 3-tier e-commerce application Task scheduling Connection reuse Lab 2: demonstrate connection reuse Using back-end custom application Lab 3: demonstrate backend CA
Miscellaneous: custom app over IP multicast, ACE Troubleshooting Lab 4: troubleshoot misconfigurations
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
96
lab 4: Troubleshooting
Objective
Learn how to troubleshoot a custom application setup Refer to the lab manual
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
97
Advanced features
Scheduling Connection reuse
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
98
Related Sessions
Configuring Application Models Session 1418 Trends in Traffic Modeling Session 1338 Predicting Server Performance Scalability Intro Session 1405 Introduction to Using ACE Session 1209 Planning Application Deployments with ACE Session 1409 Customizing Application Layer Models Session 1509
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
99
Questions?
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
100
Thank You
Copyright 2003 OPNET Technologies, Inc. Confidential, not for distribution to third parties.
101