GithubHelp home page GithubHelp logo

alexanderlc / cmppsimulategateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crazymouse/cmppsimulategateway

0.0 2.0 0.0 308 KB

**移动短信模拟网关,支持cmpp20、30协议及多客户端同时连接

Java 99.87% Shell 0.13%

cmppsimulategateway's Introduction

更新历史


2014年7月11日上午11:37:

  • 加入ClientManager用于准备桥接上行数据,并加入代码使用样例,样例不能直接执行,仅供开发参考

2014年7月10日下午4:02:

  • 修改响应和上行数据编码bug

2014年7月4日上午9:55:

  • 加入鉴权控制开关,允许通过修改参数关闭鉴权

2014年7月3日下午3:49:

  • 增加客户端连接鉴权,注释掉影响日志查看的统计数据,需要可自行在server-beans.xml中开启

2014年5月8日下午3:06:

  • 编码解码过程放入线程池,netty主线程只负责数据读取,不再处理业务逻辑,提高吞吐量

2014年4月22日上午10:35:

  • 添加数据统计

2014年4月21日下午10:10:

  • 流量控制已经添加,核心功能完成,可进行大批量数据压力测试

2014年4月21日上午10:52:

  • 基本功能完成,能正常接收短信,并返回响应及状态报告,支持多号码批量发送数据
  • 支持多客户端同时连接

2014年4月17日下午4:16:

  • 连接活动检测已生效

  • 链接空闲检测已生效

2014年4月16日下午4:03:

  • 协议对象编码解码完成并通过单元测试

功能列表


功能 cmpp20 cmpp30 说明
协议对象编解码
短信上行接收 接收客户端发送短信并返回响应
心跳处理 接收客户端心跳并返回响应,指定时间无心跳,关闭连接
状态报告 接收上行并返回状态报告
流量控制 客户端数据超过流量限制返回超流量响应
数据统计 统计系统数据量及速度
短信上行发送 模拟手机向客户端发送短信
响应延时模拟 对客户端发送短信数据延迟返回响应
登陆数据认证 对用户生份进行验证

性能数据:


  1. 测试环境:MAC OS 10.9,CPU:I7 4核8线程,内存:8G

  2. 数据包大小:

    短信包大小:280 bytes
    响应包大小:21 bytes
    状态报告大小:145 bytes 状态报告响应大小:21 bytes

  3. 短信下行速度 平均1500条/s

cmppsimulategateway's People

Contributors

crazymouse avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.