当前位置:网站首页>防范SYN洪泛攻击的方法 -- SYN cookie
防范SYN洪泛攻击的方法 -- SYN cookie
2022-07-25 11:25:00 【ZboY.】
SYN洪泛攻击
在tcp的三次握手中,如果客户端不发送ACK来完成三次握手的第三步,那么通常一分多钟之后,服务器将中止半开连接并回收资源。
如果攻击者发送大量的TCP SYN报文段,而不完成第三次握手的步骤,那么服务器会不断为这些半开连接分配资源,导致服务器的连接资源被消耗殆尽。
当在服务器上发现大量的半连接状态,同时源ip地址是随机的,基本可以判断是一次SYN洪泛攻击。
SYN cookie -- 通过修改第二步握手中的序列号来实现

1. 当服务器收到一个SYN报文段时,先不为这个报文段生成半开连接。相反,服务器生成一个初始TCP序列号,又称为cookie。服务器利用一个散列函数,以SYN报文段源和目的地址和端口号为输入,将输出的cookie作为第二步握手的序列号(seq)返回给客户端。
2. 如果用户是合法的,他将返回一个ACK。对于一个合法的ACK, 在确认字段中确认号(ack)的值等于第二步握手中序列号值(seq)加一。服务器从ACK中取出确认号ack的值,同时根据ACK中源和目的地址和端口号运行相同的散列函数,如果输出的值加一等于从ACK中的ack值,那么合法。
边栏推荐
- 小程序image 无法显示base64 图片 解决办法 有效
- [GCN multimodal RS] pre training representations of multi modal multi query e-commerce search KDD 2022
- 【高并发】SimpleDateFormat类到底为啥不是线程安全的?(附六种解决方案,建议收藏)
- Sword finger offer 22. the penultimate node in the linked list
- Scott+Scott律所计划对Yuga Labs提起集体诉讼,或将确认NFT是否属于证券产品
- Application and innovation of low code technology in logistics management
- R语言使用wilcox.test函数执行wilcox符号秩检验获取总体中位数(median)的置信区间(默认输出结果包括95%置信水平的置信区间)
- 知识图谱用于推荐系统问题(MVIN,KERL,CKAN,KRED,GAEAT)
- Median (二分答案 + 二分查找)
- aaaaaaaaaaA heH heH nuN
猜你喜欢

Learning to Pre-train Graph Neural Networks(图预训练与微调差异)

Transformer变体(Routing Transformer,Linformer,Big Bird)

【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)

创新突破!亚信科技助力中国移动某省完成核心账务数据库自主可控改造
![[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22](/img/02/5f24b4af44f2f9933ce0f031d69a19.png)
[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22

【6篇文章串讲ScalableGNN】围绕WWW 2022 best paper《PaSca》

Qin long, a technical expert of Alibaba cloud: a prerequisite for reliability assurance - how to carry out chaos engineering on the cloud

Transformer variants (spark transformer, longformer, switch transformer)

selenium使用———安装、测试

Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
随机推荐
【6篇文章串讲ScalableGNN】围绕WWW 2022 best paper《PaSca》
Web programming (II) CGI related
投屏收费背后:爱奇艺季度盈利,优酷急了?
Meta-learning(元学习与少样本学习)
[multimodal] hit: hierarchical transformer with momentum contract for video text retrieval iccv 2021
Intelligent information retrieval (overview of intelligent information retrieval)
aaaaaaaaaaA heH heH nuN
Location analysis of recording an online deadlock
Transformer variants (routing transformer, linformer, big bird)
PHP curl post length required error setting header header
【GCN-RS】Are Graph Augmentations Necessary? Simple Graph Contrastive Learning for RS (SIGIR‘22)
图神经网络用于推荐系统问题(IMP-GCN,LR-GCN)
Introduction to redis
[high concurrency] I summarized the best learning route of concurrent programming with 10 diagrams!! (recommended Collection)
Power Bi -- these skills make the report more "compelling"“
【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化点状条带图、设置palette参数配置不同水平数据点的颜色、设置add参数在点状条带图中添加均值标准差竖线
[comparative learning] understanding the behavior of contractual loss (CVPR '21)
Innovation and breakthrough! AsiaInfo technology helped a province of China Mobile complete the independent and controllable transformation of its core accounting database