standard protocol for host-host by guruh purnama - winpulsa.com

43
PROPOSED STANDARD PROTOCOL HOST-HOST By Guruh Purnama WINpulsa.com

Upload: cv-bandung-surya-makmur

Post on 08-Jul-2015

384 views

Category:

Documents


6 download

DESCRIPTION

Presentation of Proposed Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com. For Electronic Voucher Industry in Indonesia

TRANSCRIPT

Page 1: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

PROPOSEDSTANDARD PROTOCOLHOST-HOST

By Guruh PurnamaWINpulsa.com

Page 2: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

BACKGROUND

Page 3: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Who we are

Winpulsa Not Developer – Not Selling Software to customer Distributor Service Company

We are User, Partnering with Developer

Winpulsa: IT Company: Content Provider, Application Service Provider Partnering: Operator Cellular, Banking All System developed by In-house developer

Page 4: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

What we needs

Protocol:

Plug & Play

Secure

Reliable

Performance

Trustable

Page 5: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

What is Standard ?

Acceptable

Adoptable

Scalable

Agreeable

Trustable

Page 6: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

What to be standardized ?

Process

Method

Format

Field & Parameter

Status

Security

Page 7: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Requirement

Multi Transports HTTP/S YM –Yahoo Messenger Protocol XMPP/Jabber/G-Talk JMS/AMQP

Any Language PHP .NET Java Python Ruby Delphi / Pascal

Page 8: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

TRANSACTION/ORDER PROCESS

Page 9: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process

Request - Response

Synchronous / Active Client

Report –

Asynchronous / Passive Client

Inquiry – Result

Synchronous / Active Client

HTTP - Dynamic IP

Page 10: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Synchronous

Client Server

Process

Request

Report

Inquiry

Result

Phase 1

Phase 2

Phase 3

Page 11: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Sync/Asynchronous

Client Server

Process

Request

Response

Report

Inquiry

Result

Phase 1

Phase 2

Phase 3

Phase 4

Confirm

Page 12: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 1

Phase 1 (Internal)

Authentication – User id, password, PIN

Admin: has enough Balance, etc

Validation: Product Code, etc

Page 13: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 2

Phase 2 (External)

On Progress

Failed Transaction

Success Transaction

Page 14: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 2 - External

Client Server

On Progress

Success

Failed

Page 15: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase3 - Report

Phase 3

Report result from the Transaction process

Phase 3 – client must confirm

Authentication By Client

On Progress

Failed

Success

Page 16: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 3 - Report

Server Client

On Progress

Success

Failed

Page 17: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 4 - Inquiry

Inquiry just like Report but more on Clientside that active

Can be used for checking &validating last transaction

Inquiry Process

Authentication By Server

On Progress

Failed

Success

Page 18: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Phase 4 - Inquiry

Client Server

On Progress

Success

Failed

Page 19: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

METHOD

Page 20: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Method

Message Passing Asynchronous YM,JMS One - Many Node More Flexible Can be Transformed, Filtered & Controlled etc

RPC – Remote Procedure Call Synchronous XMLRPC,SOAP One – One Node Rigid

Page 21: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

FORMAT

Page 22: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Format

Binary/Bitmap based – More Machine language ISO 8583 - Financial transaction card originated

messages

Binary XML

Faster

Text based – More Human readable JSON,XML,YAML

Slower but easy to maintain

Page 23: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

PARAMETERS

Page 24: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Request

Reference ID – Integer

Transaction Time – Integer

User ID – String

MD5 Password – String

MD5/SH1 Generated – MD5(Time + Password)

Product ID – String

MSISDN – String

Page 25: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Response

Request ID – Integer

Reference ID – Integer

Response Time – Numeric

14 Digits -YYYYMMDDhhiiss

Status – Integer

Page 26: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Report

Report ID - Integer Request ID - Integer Reference ID – Integer Report Time - Numeric Transaction Time – Numeric User ID – String MD5 Password - String Status – Integer Serial Number - Integer Message - String

Page 27: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Confirm

Confirm ID – Integer

Report ID – Integer

Confirm Time – Numeric

Status – Integer

Message - String

Page 28: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Inquiry

Reference ID – Integer

Inquiry Time – Integer

User ID – String

MD5 Password – String

MD5/SH1 Generated – MD5(Time + Password)

Page 29: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Result

Result ID - Integer Request ID - Integer Reference ID - Integer Transaction Time – Numeric Status – Integer Serial Number - Integer Message - String

Optional: Price - Float

Page 30: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

ADDITIONAL PROCESSES

Page 31: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Additional Process

Accounting Info

Product Info

Other importance business process

Page 32: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Accounting Info

For checking status client’s accounting information

Result Fields: Transaction Time – DateTime Numeric Last Deposit – Datetime Numeric Amount Last Deposit - Float Last Transaction – Datetime numeric Amount last Transaction - Float Current Balance - Float Status - Integer Message - String

Page 33: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Process – Product Info

For automated product price & quota checking

Result Fields: Transaction Time – DateTime Numeric

Product Code - String

Price – Float

Quota - Integer

Status - Integer

Message - String

Page 34: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

STATUS

Page 35: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Status Type

Status – Must Be Clear and Detail – Cannot be General

Success Cannot be retried Method Automatic Manual

Failed Caused By Client: Invalid: password, MSISDN etc Caused By Server: Out of Stock, Internal Error Retry able Don’t-Retry able Method Automatic Manual

Page 36: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Status - Categorical Digit

8 Digit Status Code in Unsigned Integer MEDIUMINT for MYSQL Field Type

1 Digit – Process Code = 1 Transaction

1 Digit – Phase = 1,3,5,6

1 Digit – By Client=1, By Server=2

1 Digit – Retry=1, Don’t Retry=2

1 Digit – State = On Progress=1, Failed=2, Success=3

3 Digit – Detail

Page 37: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Status

User/Pass Failed: 1-1-1-2-001 => 11112001

Out of Stock: 3-2-1-2-101 => 13212101

Success Transaction: 3-2-1-3-500 => 13213500

Inquiry Failed – Internal Error: 6-2-1-2-201 => 16212201

Page 38: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

SECURITY

Page 39: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Security

Data is Valuable ==== Money !

Message Must be Secure

Only 2 Machine can be read/write

Data must be Encrypted !!

Encrypted with Exchanged Trusted Key

Page 40: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Encrypted Data Flow

A B

Key A

Key B

Encrypt Decrypt

EncryptEncrypt

Page 41: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

Key & Encrypted Function

Key generated by trusted organization/forum

Encryption Function: SHA-1

Maintain key for period of time (1 Month)

Page 42: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

WHAT NEXT

Page 43: Standard Protocol for Host-Host by Guruh Purnama - Winpulsa.com

What next ?

This is just beginning …

Version 1.0

Continue improvement

There will be Version 2.0, 3.0 etc