APP下载

高性能HTTPS服务中的TLS Record Size优化分析

2016-04-22帖军,沙恒

中南民族大学学报(自然科学版) 2016年1期
关键词:用户

帖 军,沙 恒

(中南民族大学 计算机科学学院,武汉 430074)



高性能HTTPS服务中的TLS Record Size优化分析

帖军,沙恒

(中南民族大学 计算机科学学院,武汉 430074)

摘要为优化HTTPS性能,研究了TCP特性对TLS性能的影响.通过数学模型分析,指出了2种不同条件下,TLS Record Size选择对用户首数据响应延时(TTFB)、首页面响应延时(TTFP)、网络效益、吞吐率等参数指标的影响.大的TLS Record Size提高网络吞吐和利用率,但增加了用户首数据响应延时,适合需要高吞吐但响应延时不敏感的场景;小的TLS Record Size降低用户响应延时却降低了网络吞吐和利用率,适合对用户响应时间敏感的场景.

关键词安全传输层协议;安全传输层协议记录协议数据块大小;安全超文本传输协议;传输控制协议

TLS Record Size Optimization Analysis of High Performance HTTPS Service

TieJun,ShaHeng

(College of Computer Science, South-Central University for Nationalities, Wuhan 430074, China)

AbstractThis paper studies the effect of TCP characteristics on the performance of TLS in order to optimize the performance of HTTPS. Through the analysis of mathematical model, it points out the influence of Record Size TLS selection on the first data response time delay (TTFB), the first page response time delay (TTFP), network efficiency, and throughput rate and other parameters in two different conditions. Large TLS Record Size blocks could improve network throughput and utilization rate, but increase user time to the first byte, which is suitable for the scenes of requiring high throughput but latency insensitive scene, while small TLS Record Size blocks could decrease the user latency but reduce network throughput and utilization rate, which is suitable for user response time sensitive scene.

KeywordsTLS;TLS Record Size;HTTPS;TCP

人们的生活现在已经越来越离不开互联网,与此同时,隐私和安全问题日益重要.国外很多网站包括google,facebook,twitter都支持全站HTTPS,国内也愈发重视.特别是在BAT三巨头的支付、网购、搜索等核心业务中更有体现.在此背景下,海量并发下的高性能HTTPS服务的研究也更具有价值.HTTPS可认为是HTTP+TLS,TLS[1]协议为传输层加密协议,其工作在传输层协议TCP之上.TLS协议又由两层协议构成:TLS记录协议(TLS Record)以及TLS握手协议,较低的一层为TLS Record协议,它的格式如图1所示.

Byte+1+2+3+40ContentType1..4VersionLength5..nPayloadn..mMACm..pPadding

图1TLS Record协议格式

Fig.1TLS Record structure

总体来说,HTTPS协议提供了3个功能:(1) 内容加密.数据以加密形式传输,中间者无法直接查看原始内容;(2) 身份认证.保证用户访问的是目的服务器;(3) 数据完整性.防止传输的内容被第三方冒充或者篡改.

享受安全、隐私的HTTPS服务需要付出额外的代……

登录APP查看全文

猜你喜欢

用户
雅阁国内用户交付突破300万辆
关注用户
关注用户
两新党建新媒体用户与全网新媒体用户之间有何差别
关注用户
关注用户
挖掘用户需求尖端科技应用
Camera360:拍出5亿用户
100万用户
如何获取一亿海外用户