文档介绍:华中科技大学
硕士学位论文
POS接入系统设计与实现
姓名:张良伦
申请学位级别:硕士
专业:通信与信息系统
指导教师:刘玉
20090523
华中科技大学硕士学位论文
摘要
随着信息化时代的到来,银行卡业务开始迅速发展,POS 也逐渐成为我国金融行
业资金流动和货币支付的重要手段。由于历史原因,目前的 POS 网络中存在着如拨
号接入、异步接入和 TCP 接入等诸多 POS 接入方式。面对如此众多的 POS 接入方式,
如何搭建一个经济有效并具备良好兼容性和扩展性的 POS 网络,成为一个需要解决
的问题。为此,本文设计了一种基于路由器的 POS 接入系统,可以在不改动原有组
网的情况下直接替换原有 POS 接入设备,在兼容现有主流 POS 接入技术的同时,具
备良好的扩展性。
针对目前 POS 接入中存在的各种问题,本文提出了相应的解决方案,并进行了
设计与实现。首先,为了解决各种 POS 接入方式下的报文互通问题,本文提出了 POS
标准报文的设计方案,设计了一种可携带足量信息的 POS 标准报文,作为报文交互
的中间报文。其次,为了解决同一 POS 机与不同银行的交互问题,本文提出了多应
用映射的设计方案,可以根据 POS 终端报文中的 TPDU 目的地址选择不同的 POS 应
用。再次,为了解决大流量下的系统拥塞问题,本文提出了双缓存的设计方案,在终
端和应用侧均设置了接收缓存和发送缓存。另外,本文还提出了长短连接、POS 透传、
通告报文等设计方案,分别解决了 TCP 应用交互效率、未知报文处理以及异常通告的
问题。
本文最后给出了 POS 接入系统的测试方案和测试结果分析。测试数据表明该系
统运行正常且性能良好,完全满足设计要求。本课题所研究的 POS 接入系统,可直
接应用于目前的 POS 网络,无需重复组网即可对原有接入设备进行直接替代,具有
广泛的应用前景。
关键词:POS 接入 POS 标准报文多应用映射双缓存长短连接透传异常通
告
I
华中科技大学硕士学位论文
Abstract
With the development of information technology, bank card is more and more popular,
POS system gradually es an important means of fund flow and payment. In the face
of so many POS access modes, such as dial-up, asynchronous and TCP access mode, it is
the high time to build a more economical, effective, compatible and expansible POS
network. In this paper, we design a POS access system based on router, which can replace
the original POS access devices directly without changing the work. It has not
only a patibility with the existing POS access technology, but also a nice
expansibility to the future application.
In this paper, we put forward corresponding solutions to the exsiting problems of POS
access, also design and realize them. In order to municate with a variety of POS
access modes, we design a standard POS packet, to be a middle packet between POS
transaction. In order to achieve transaction between the same POS machine and different
bank servers, we propose a multi-application mapping design, so that POS access system
can select