From owner-freebsd-pkg@freebsd.org Sat Apr 11 21:03:22 2020 Return-Path: Delivered-To: freebsd-pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F46F27B271 for ; Sat, 11 Apr 2020 21:03:22 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4906mT2bQPz47KJ for ; Sat, 11 Apr 2020 21:03:21 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22a.google.com with SMTP id b7so1798143oic.2 for ; Sat, 11 Apr 2020 14:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:from:date:message-id:subject:to; bh=hVDcV3jmtRPwmv4No+a9QGxAmKAXjOWmxTlkFQX/ajE=; b=NdVEyZALVyQSXKUxSdmEOF0W4fDGo/E7+IpoNYicWFhD7ftVeYP1ujJPaUV5MMouAJ D5xXZS/puBoTGlR7I2Ir7nwP4wlUly63BX9yDKPtgSeIOJNrQS9VaaXqAon/i3gAiUg1 Aog4HTaYhYdYq0BuqVZ3KIy1J7N92Mf3l5fIHt7MuDGvXWRDgD+h+Ur1spAVGVGFgRJR frVatRzc6tZE7f4jfwNHe/9bKehvK/HeF9sZ+7B7eruzPSi7NLPydTt6XIFvzkxur/GR PD8C5J/DrVPDJhYrQ24C4n8t5BYEvhD2u2eq79VySGieclvqYIgjbHchCIfAkrI3K1xg ASLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hVDcV3jmtRPwmv4No+a9QGxAmKAXjOWmxTlkFQX/ajE=; b=XSOxeR/BhYCa5VbGOlVZUc1muA0EKQgtNTODUKjBJgnQheLDQJJ4M0Dc6Y+PB0nqpw BJDprYR98trG9OuEUb1HiB5EuewjphnanZXDXKSJAnD1lYBJmPxwxFKaum6WluSxNyzr FSeEZRqaGAGQyvdm8SqdzAcrlF/XVl3D0WwYQ1ojYEvAYsyRpza/9yI3DHf0htXCcG90 mZB/R9QGEcNXkJPRWZPdvoE9z07F/DkmtISTEGIIu8YOK52pPU3rW8rEtkUIkCh5HXQc sdeAY3fqpBCQbccc6YSsgTfr2BY5c9bguzaJQmj6eBo2q7TAt4R86GViXkTkMvIJzlRv tSWQ== X-Gm-Message-State: AGi0PuYirxG/7tMUPDhBJ1h8yVtz5whHYagMbMMH3Pn2K5dDi7LfiqYu ZElkD+A7Ez1HGbxOZy84+0Jyrw== X-Google-Smtp-Source: APiQypKe9adPVf7kBVKQWIsiTZ1PQQCmAQ+5o3spaMyYX3yfje2WVChr+X5OnHNr3HsxyBtk4xf40Q== X-Received: by 2002:aca:47c8:: with SMTP id u191mr7661104oia.170.1586639000133; Sat, 11 Apr 2020 14:03:20 -0700 (PDT) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com. [209.85.167.170]) by smtp.gmail.com with ESMTPSA id f1sm3834551ooj.38.2020.04.11.14.03.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Apr 2020 14:03:19 -0700 (PDT) Received: by mail-oi1-f170.google.com with SMTP id k9so4350734oia.8; Sat, 11 Apr 2020 14:03:18 -0700 (PDT) X-Received: by 2002:a05:6808:485:: with SMTP id z5mr7275471oid.78.1586638998185; Sat, 11 Apr 2020 14:03:18 -0700 (PDT) MIME-Version: 1.0 From: Tomasz CEDRO Date: Sat, 11 Apr 2020 23:02:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: BSDPKGNET: PKG MESH CDN P2P To: FreeBSD Questions Mailing List , freebsd-pkg@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4906mT2bQPz47KJ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=NdVEyZAL; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::22a) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-1.93 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pkg@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; SUBJ_ALL_CAPS(2.03)[27]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.65)[ip: (-7.46), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2020 21:03:22 -0000 Hello world :-) I have this idea on how we could improve PKG delivery speeds.. :-) How about creating a dedicated low-power distributed head-less ARM based PKG delivery system that could be burned to a SD card then run from some sort of *Pi (RaspberryPi, BananaPi, ARM routers, etc) device connected to a broadband by users all around the planet? Another idea is to use P2P of some sort, so such proxies would provide only bits of data, maybe even FreeBSD users could serve as P2P nodes if they wanted to. This way we could have lots of low power local delivery locations that could act as Tier-2 PKG mirrors / caches / proxies. We could have then Tier-1 PKG platrofms and control provided by the FreeBSD project :-) I would gladly share my 60MBit uplink broadband to host this kind of PKG CDN. I could also install such low-power devices in places with fast broadband which are barely used in casual everyday situations. Here are the goals: 1. I would run on a low power device such as network router or BananaPi of any sort (around 10W power usage). 2. It would require only burning a SD card image to set up. Maybe ifconfig (local uart CLI no web interface). 3. All cached packages would be also stored on a SD card (64GB? 128GB?) no external drives attached. 4. All maintenance could be automated from a central command and require no user interaction. 5. The SD card image can be even encrypted to improve security. 6. P2P protocols could be used to spread the bits of data and off-load the traffic from a single pkg host to a many smaller hosts or even workstations. Hints and Comments are welcome :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info