Use utils.Limiter for discv5
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- go
- Área
- networking, security
Línea de trabajo
Empieza leyendo les/utils/limiter.go y les/utils/costfilter.go de la implementación WIP enlazada y, a continuación, compara sus supuestos con el procesamiento de solicitudes de discv5. El issue busca principalmente comentarios sobre seguridad y diseño de DHT; se consideraría terminado cuando exista un alcance acordado y un plan concreto de integración para discv5.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have a WIP branch where I implemented a fairly simple DDoS protector for lespay UDP talk requests (400 LOC total + utils.WeightedRandomSelect, does not use the NodeStateMachine). The reason I spent time with it at this early stage is that I think the token market interface really needs to be designed with this aspect in mind. Polling rates and unhealthy competition (arms race) can be a problem with markets, especially in a decentralized and uncontrolled, somewhat chaotic environment. The reason I opened an issue for discussion about it is because I think something like this could be a recommendation (maybe even an EIP) for our entire DHT and I am interested in your opinons from both a security and DHT centric perspective.
So basically what it does is
- keeps request queues by both IP address (
string) andenode.ID - has a single processing loop that even does
time.Sleeps between serving them so that the DHT logic can never hurt other processes - has a probabilistic selection based throttling mechanism (which behaves trivially and deterministically when there is no extreme usage but tries to give a sufficient chance to the proven useful connections during extreme traffic).
- 50% of serving probability weights are distributed equally between active individual IP addresses. Multiple
enode.IDs can request from the same IP in which case the IP's weight is further distributed equally. - the other 50% is proportional to
value / sumValuewhere the "value" is anything that is an indicator of usefulness in the (preferably not very distant) past. - the first half protects from DoS but gives limited protection againgst DDoS, the second one ensures that already proven connections can not be easily broken even with heavy DDoS so there is much less incentive to even try and spend money on. Basically an attacker can only hinder the forming of new connections but that will not do real damage very soon. This is also a Kademlia recommendation to prioritize older contiuous connections. Maybe for a Kademlia the weight could simply be the connection age. For lespay it is money received from the
enode.ID. Multiple dimensions of value can also be easily added if necessary, each dimension getting a guaranteed total percentage of service.
https://github.com/zsfelfoldi/go-ethereum/blob/les4udp/les/utils/limiter.go
The service throttling can also take actual serving resource costs (CPU and/or bandwidth usually) into account. An attack deliberately making the most expensive requests will be proportionally more heavily throttled while economical usage of the resources of the serving node is rewarded by quicker responses. Practice with LES servers has shown though that direct time-based cost metering sometimes gives extreme outliers that are unrelated to the given request. utils.CostFilter ensures that these outliers will not block service for some nodes by accident.
https://github.com/zsfelfoldi/go-ethereum/blob/les4udp/les/utils/costfilter.go
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 301
- Merge medio
- 12 h 3 min
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ethereum/devp2p
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Los mantenedores suelen responder en 1 día
-
Post-quantum ENR/discv5Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Specify the "snap" ENR entry and how it signals snap versionsPosiblemente ocupada @MysticRyuujin la tomó hace 47 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
ethereum/devp2p#286 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ethereum/devp2p#282 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
ethereum/devp2p#279 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de ethereum/devp2p
Issues similares
-
[External Plugin]: zooopAbiertoexternal-plugin ready-for-review
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/awesome-copilot#6655 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
c-w-z/commit-decision-record#32 ·
Los mantenedores suelen responder en 1 día
-
perf: the Evaluations leaderboard and the @ model menus download every model image at oncePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug confirmed issue
Dificultad 2/5 Medio día Aptitud para principiantes 78/100
open-webui/open-webui#35213 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
exa-studio/ApiVault#338 ·