教案成果入门测试mblb for unionpay fixed length message_第1页
教案成果入门测试mblb for unionpay fixed length message_第2页
教案成果入门测试mblb for unionpay fixed length message_第3页
教案成果入门测试mblb for unionpay fixed length message_第4页
教案成果入门测试mblb for unionpay fixed length message_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Ping XiongJun 20132 F5 Networks, Inc.Agenda Technical Background for Online Transaction Interface Overall structure ISO8583 Fixed Length Message MBLB for Fixed Length Message Handling half-duplex, asynchronous messages iRules Collect data Get message length, make sure the full message captured Get t

2、he sequence # for reference Dispatch the response message to proper sender3 F5 Networks, Inc.4 F5 Networks, Inc.Technical Specification Long life TCP connections Half-Duplex Communication Overall Message structureMessage Length(4 Bytes)Message Body005050 bytes message body (8583 or Fixed Length)Exam

3、pleData Structure5 F5 Networks, Inc.ISO8583 Message Structure Message HeaderMessage HeaderMessage Type IDBitmapMessage FieldsFieldField NameLength(Byte)Field1Header Length1Field2Header Flag and Version1Field3Total Message Length4Field4Destination ID11Field5Source ID11Field6Message Status Flags3Field

4、7Batch Number1Field8Reserved for Use8Field9User Info16 F5 Networks, Inc.ISO8583 Other useful fields Field 7: TRANSMISSION-DATE-AND-TIME, 10 bytes Field 11: SYSTEM-TRACE-AUDIT-NUMBER, 6 Bytes Field 32: ACQUIRING-INSTITUTION-IDENTIFICAT ION-CODE, 11 bytes Field 7, 11 and 32 compose a unique ID for a t

5、ransaction We can use this unique ID to track a transaction7 F5 Networks, Inc.Fixed Length Message For Counter Transaction, Phone Banking, Call Center Useful Information Message Length, the first 4 bytes Field 7: Transaction Sequence Number Example: Credit Account Inquiry RequestField NameVariableFo

6、rmat Remarks1Transaction CodeTRXTYPEN (4)30012Response CodeRETCODE A(6)3Bank NumberBNKNBRA(4)4Transaction Source SOURCEA(2)5Branch NumberBRN_NON(6)6Operator NumberOPE_NON(6)7Sequence NumberSEQNON(6)8Card NumberCARDNOA(19)9PIN FlagPIN_FLAG A(1)10 PasswordA(8)8 F5 Networks, Inc.9 F5 Networks, Inc.WANH

7、andling Half-Duplex, Asynchronous Message We can use Field7, Sequence Number, to track the message Here is the iRulesCUP FE VIPRIONBank AFEBank AFECUP DataBank LANvs cup_fevs bank_afeRequest_nResponse_n10 F5 Networks, Inc.iRules Collecting message data, make sure the full message captured # Get firs

8、t 4 bytes for the length of the message# Get data count, 1-4 Bytes, then turn it into integerset bitVal substr $payloadbit 0 32set len binary format B* $bitValset nlen expr expr substr $len 0 1 * 1000 + expr substr $len 1 1 * 100 + expr substr $len 2 1 * 10 + expr substr $len 3 1log Mess

9、age Length:$nlenif $tcplen expr $nlen + 4 # more packets in the message, need to collect more datalog payload length is $tcplen, continue to collect .TCP:collect11 F5 Networks, Inc.iRules When full message captured, get field7 for reference else # data collection finished, start to proce

10、ss .set ascii7 substr TCP:payload 32 6set tkey $ascii7log Field7 SEQNO: $ascii712 F5 Networks, Inc.iRules Select proper pool member based on field7(sequence #) content# client Select, for VS which receive Unionpay response dataif $rflag = 1 if table lookup -subtable UNIONPAYFIXED -notouch $tkey eq $ippos pool $static:Recive_Pool member $ippos else pool $static:Recive_Poolelseif $rflag = 0 table set -subtable UNION

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论