![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/robertttbs/xdp
Package github.com/asavie/xdp allows one to use XDP sockets from the Go programming language.
For usage examples, see the documentation or the examples/ directory.
With the default UDP payload size of 1400 bytes, running on Linux kernel 5.1.20, on a tg3 (so no native XDP support) gigabit NIC, sendudp.go does around 980 Mb/s, so practically line rate.
TL;DR: in the same environment, sending a pre-generated DNS query using an ordinary UDP socket yields around 30 MiB/s whereas sending it using the senddnsqueries.go example program yields around 77 MiB/s.
Connecting a PC with Intel Core i7-7700 CPU running Linux kernel 5.0.17 and igb driver to a laptop with Intel Core i7-5600U CPU running Linux kernel 5.0.9 with e1000e with a cat 5E gigabit ethernet cable and using the following program
package main
import (
"net"
"github.com/miekg/dns"
)
func main() {
query := new(dns.Msg)
query.SetQuestion(dns.Fqdn("asavie.com"), dns.TypeA)
payload, err := query.Pack()
if err != nil {
panic(err)
}
conn, err := net.ListenPacket("udp", ":0")
if err != nil {
panic(err)
}
defer conn.Close()
dst, err := net.ResolveUDPAddr("udp", "192.168.111.10:53")
if err != nil {
panic(err)
}
for {
_, err = conn.WriteTo(payload, dst)
if err != nil {
panic(err)
}
}
}
which uses an ordinary UDP socket to send a pre-generated DNS query from PC to laptop as quickly as possible - I get about 30 MiB/s at laptop side.
Using the senddnsqueries.go example program - I get about 77 MiB/s at laptop side.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.