通信学报 ›› 2012, Vol. 33 ›› Issue (Z2): 15-19.doi: 10.3969/j.issn.1000-436x.2012.z2.003

• 学术论文 • 上一篇    下一篇

NS2中TCP连接建立模拟的改进

姜誉1,2,任健3(),周黎明1   

  1. 1 黑龙江大学 计算机科学技术学院,黑龙江 哈尔滨 150080
    2 黑龙江省数据库与并行计算重点实验室,黑龙江 哈尔滨 150080
    3 黑龙江大学 信息科学与技术学院,黑龙江 哈尔滨 150080
  • 出版日期:2012-11-25 发布日期:2017-08-03
  • 基金资助:
    黑龙江省自然科学基金资助项目;黑龙江省教育厅科学技术研究项目基金资助项目;黑龙江省教育厅科学技术研究项目基金资助项目

Improvement on simulating TCP connection establishment in NS2

Yu JIANG1,2,Jian REN3(),Li-ming ZHOU1   

  1. 1 School of Computer Science and Technology,Heilongjiang University,Harbin 150080,China
    2 Key Laboratory of Database and Parallel Computing of Heilongjiang Province,Harbin 150080,China
    3 School of Information Science and Technology,Heilongjiang University,Harbin 150080,China
  • Online:2012-11-25 Published:2017-08-03
  • Supported by:
    The National Natural Science Foundation of Heilongjiang Province;The Science and Technology Research Project Foundation of Heilongjiang Education Office;The Science and Technology Research Project Foundation of Heilongjiang Education Office

摘要:

传输控制协议(TCP,transmission control protocol)连接建立的“三次握手”过程中涉及对半连接表和连接表的管理。但是,已得到广泛应用的网络模拟器NS2对TCP连接建立过程只有一个形式的表示,没有完整的具体实现。对此进行了改进,为NS2增加了半连接表结构,并将Linux内核管理半连接表的方式移植到了NS2中。仿真结果可清晰地看到TCP连接建立过程中半连接表变化,从而满足TCP SYN洪泛攻击防控等研究中对TCP连接建立过程模拟的需要。

关键词: 网络模拟, 传输控制协议, 连接建立, 半连接

Abstract:

In the procedure of three-way handshake of transmission control protocol connection establishment,it involves the management of half-connection and connection tables.However,in the famous networks simulator NS2,there is only a formal description instead of a concrete and complete implementation for the procedure of TCP connection establishment.An improvement was beed made on the point.Table structures for half-connections and connections are added,and the way of managing half-connection table in Linux kernel is also imported into NS2.Simulation results show that it is clear to monitor the change in half-connection table in the TCP connection establishment procedure,and thus the requirement of simulating the connection establishment procedure in studies such as protection from TCP SYN flooding attack can be met.

Key words: network simulation, transmission control protocol, connection establishment, half-connection

No Suggested Reading articles found!