当前的即时通讯客户端如何防范洪泛攻击?
让我们以 Jabber 为例:如果我设置自己的 jabber 服务器,并让它通过发送具有不同发件人地址的消息来淹没另一台服务器上的 jabber 用户,那么该用户通常会如何受到保护(如果有的话)?如果客户端通常在每个会话中在 RAM 中保存至少几条消息(据我所知,每个客户端都会这样做),那么 RAM 不会很快溢出吗?
Let's use Jabber as an example: If I setup my own jabber server and let it flood a jabber user on another server by sending messages with varying sender addresses, how would that user usually be protected, if at all? If the client usually saves at least a few messages per conversation in RAM (as far as I know, every client does that), wouldn't the RAM quickly overflow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所涉及的服务器通常内置有 DoS 保护。无论如何,服务器必须保护自己免受攻击,因此它们也保护其用户。如果您仍然担心,请在处理时停止从套接字读取。您遇到了一个队列理论问题,即如何能够赶上,但至少您不会耗尽内存。
The servers involved usually have DoS protections built into them. The servers have to protect themselves from attack anyway, so they also protect their users. If you're still worried about it, stop reading from the socket while you're processing. You've got a queue-theory problem of being able to ever catch up, but at least you won't run out of memory.