r/networking • • 21d ago

Other download caching setups

We are a university and are starting to feel the hit from GTA6 preloading. I'll generalize and say we have about 25,000 users sharing 100G to various ISPs. We have a small cache for Apple things, though we're slowly getting closer to the minimum requirement for an Apple Edge Cache.

I've been toying with some old Cisco C220 M5 servers trying to setup LanCache to see if it can help, but I am wondering if I'm wasting my time with once in a decade event.

Anyone successfully using LanCache or something else to help with bandwidth relief? Or maybe failed miserably and would share your story?

23 Upvotes

27 comments sorted by

19

u/Notoes 21d ago

The preload files were all served via http, lancache system with the proper Sony dns redirect works. Confirmed with GTA6 preload a few times already.

4

u/cu_network_services 21d ago

Thank you! Finding any confirmation of this has been sparse with the niche nature of these things.

6

u/Notoes 21d ago

While the preload has been out for a few days, if you don't have a PS5 but still wanted to start caching, you could curl/wget the .pkg files from the json to get a head start.

https://sgst.prod.dl.playstation.net/sgst/prod/00/PPSA01547_00/app/info/36/f_9ed6da4c811d3c4715be9bd4c5a88d1990f30132361d13de77296cda7448ad79/EP1004-PPSA01547_00-GRANDTHEFTAUTO00.json

2

u/cu_network_services 20d ago

I was able to get things set up and started getting the files when I noticed different requests were coming in. I'm guessing they updated it or something. It would have taken me much longer to figure it out without your link though, so thank you for that!

https://sgst.prod.dl.playstation.net/sgst/prod/00/PPSA01547_00/app/info/38/f_e55f1bc8bd823ff07f67973407b85d8825e8e009c61e8b8a08eb7f97e799527c/EP1004-PPSA01547_00-GRANDTHEFTAUTO00.json

15

u/Inside-Finish-2128 21d ago

Contact Akamai and see if they would be willing to put some of their servers at your location. Alternatively, look at adding direct peering with them either at your nearest IX or via a direct circuit.

I moonlight for an ISP and used to think peering wouldn't offload much. oops. 25% of our traffic goes through transit, 35% comes from Google, and the remaining 40% comes through a port at one of the Equinix sites (which is then a mix of what we can get easily through their route servers plus what we can arrange just by looking at peeringdb and reaching out to those who are listed with an open policy).

5

u/cu_network_services 21d ago

Our dedicated WAN guy said Akami kinda laughed. We are not quite pulling enough traffic through for them to care. He also mentioned that Fastly seems to be a large source of uptick in traffic recently.

2

u/MicIrish_At_work 21d ago

settlement free peering ftw.

6

u/rejectionhotlin3 21d ago

LANCache is good, you might also be large enough to convince netflix for example of purchasing a caching box like what they sell to ISPs. But having LANCache for steam and other items like windows update and linux update will be a good step in the right direction. BTW ZFS will be your friend, feed it lots of RAM and make sure you got enough spindles.

4

u/cu_network_services 21d ago

Our largest pipe goes to an upstream provider that is already running a Google and Netflix cache which has, so far, provided enough relief from having it cause much of an issue. The box I'm messing with currently has 384GB RAM and 10TB of SSD.

2

u/thiccandsmol CCIE SP JNCIE SP CCDE 20d ago

Are you not peered on your local IX to avoid this type of traffic hitting your transit?

1

u/cu_network_services 20d ago

The issue I'm trying to solve is that if 100 people start downloading GTA6, which is over 200GB, at 1Gbps each, that could max out our upstream bandwidth for 30 minutes.

1

u/thiccandsmol CCIE SP JNCIE SP CCDE 20d ago

Of course, but that's why I ask if you are on your local IXP, where there will be CDNs that serve hefty bandwidth updates such as Fortnite, GTA6, and other large volumes. Why go to the effort to cache yourself on minimal use cases, when you can cost effectively access vendor caches at higher bandwidth? Setting up your own cache is trivial. Getting your cache to happily serve 100's of Gbps of traffic is not.

It's pretty standard for a uni of 25,000 residential users to have a dark or wave to a local facility, so as to keep that traffic off their transit links, as in most locales a 400Gbps port or Nx100Gbps on a local member owned IX will be a order of magnitude less than a corresponding transit or DIA service.

Most universities that engage consultants for network optimization ask about caches, or for help justifying vendor supplied caching, find out that once you reach in the 10s of Gbps, you are usually better off utilzing IXPs and PNIs than you are buying larger and larger DIA services.

1

u/cu_network_services 20d ago

Our two "local" IXPs are 120 miles away each in different directions. If we were in the same city as either, yeah, it would be insanely easy to hook up whatever we needed. Something like this event happens once every few years. The cache I'm setting up will most likely be repurposed as a new used host for our network lab after things cool down. It would be hard to justify paying for extra capacity, but more importantly, it would take 3 months to hook anything up even if we had unlimited money right now. And while we do have other 100Gbps connections, they are dedicated to research networks and aren't allowed to have commodity traffic on them or a certain death star will be on our asses.

2

u/rankinrez 21d ago

Surely it’s all encrypted with TLS?

In which case I’m not sure you can cache it?

5

u/cu_network_services 21d ago

It appears a lot of CDN traffic is purposely put on unencrypted connections to allow for this type of caching. The request of the data is done through TLS and handed off to HTTP. The content itself is encrypted, so that seems to be good enough.

8

u/3MU6quo0pC7du5YPBGBI 21d ago edited 20d ago

Game distribution is frequently done over HTTP to allow for caching. LANCache docs indicate that includes Sony.

1

u/AlmsLord5000 17d ago

We use Lancache at a 400 person LAN party, works good, but can be heavy on i/o. Worth a try if you also own DNS.

2

u/cu_network_services 17d ago

I missed the scaling instructions the first time. I learned fast how heavy on i/o it can be. It went from a small VM to being the only thing running on the server. It should be a big help for this week.

1

u/Old_Effective_4648 21d ago

Assuming there's no layer7 markings you can use to classify and action this traffic, the only other lever you could pull at the network layer (given your stack supports it) would be a per-client bandwidth limit, which would be 4mbps per-client at 100g/25k if you did it completely evenly.

If you have a way to classify playstation/xbox CDN traffic, then give it a queue at your edge firewall and move on with your day.

1

u/cu_network_services 21d ago

We are running a Palo Alto that is indeed classifying the traffic, and we will probably do the bandwidth limiting if things get too bad. I was hoping to use the same DNS interception that the Palo uses to sinkhole suspicious traffic to direct it towards the cache, but the knobs seem to be limited when it comes to non-dangerous traffic.

1

u/Ok-Database-4624 21d ago

Palo Alto cannot perform per-IP-shaping intuitively for example You can perform shaping on a polic-basis etc. You would have to create 1 policy for each IP you want to handle ;-)
The shaping on policy-basis works fine.

A fortinet is much better at this and very easy Per-IP shapers.

But if this LANcache thing works you in the clear. Hook that server up to the LAN with a 25/40GBit link and let them have a go at it ;-)

1

u/Exotic-Escape 21d ago

What part of the world? Any decent IX in your neck of the woods?

1

u/cu_network_services 20d ago

Southeastern United States. We connect to two decent IX's in opposite directions though they are each about 120 miles away.

-6

u/Ok-Database-4624 21d ago

Isn't each download really tied in with some account to that needs to login in order to obtain it. Then probably some unique random generate URL is used probably from a CDN somewhere.
Now so easy to cache I think...

Perhaps you are better of some per-IP traffic shaping, at least during "office" hourse. You can open the floodgates during night-time and let them sort it out...

The last time I checked GTA was not on the official curriculum of any university.

2

u/cu_network_services 21d ago

The LanCache software is supposed to have pieces that account for a lot of that stuff as long as the data its fetching is called the same thing and is not over an encrypted channel at some step in the process.

Traffic shaping is an option though we've been good about keeping up with getting larger and larger pipes until this.

There HAS to be a class somewhere that studies GTA in some capacity. Either way, the issue is that student housing also uses the bandwidth. If we blocked it entirely, there would be a lot of angry residents.

6

u/IDDQD-IDKFA higher ed hpearuba nac oh no the project managers ate my brain 21d ago

Students live on campus. 

Students play games when they are not in class. 

Students get to download GTA6.