You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Requires packages.microsoft.com cdn of China #2882
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
-----------------------------------
Almost unable to download .net core package from China because of the speed of reaching packages.microsoft.com server。Is it possible to add CDN of packages.microsoft.com in China?
😍
Reacted by yuyongjie, Lemmingh, Davis Goodin, Edwin Hui, Dunn, A1lo and bocchi810
It's still a big problem. The download speed is very slow in China.
My speed is usually less than 20 kB/s. Every time I update .NET Core SDK or PowerShell, I have to wait for about one hour.
In my opinion, there are mainly two ways to improve download experience now:
Reach the team that controls the package repository, and switch to a CDN working better in China.
Grant permissions to a mirror service like Tsinghua TUNA, and suggest Chinese users download there. Actually, there are already some discussions (微软产品镜像源申请 tuna/issues#335), but no one has any idea on Microsoft's attitude to mirroring or the contact information of Microsoft.
I would appreciate it if this problem is resolved.
Reacted by Davis Goodin, Dian Ritonga, Edwin Hui, Bruce Sun and Arnie97
The repo team did a little bit of investigation into this. In summary, they see the value but there is no definite timeline.
The team is unable to create a VM in China to test the exact scenario you're hitting here. However, there is a mirror set up for East Asia, and they confirmed that after creating a VM in East Asia, the mirror works as expected and they don't experience slowness. They also investigated that mirror's health and don't see any issues.
I wonder if it's possible you're being routed to the wrong mirror, causing this slowness. @hzexe, @Lemmingh, can you give me the IP address you're connecting to? For example, run this command:
(That IP addr is the mirror I'm being connected to--I don't know the IP of the East Asia mirror.)
I can then ask the repo admins if the IP address you're hitting is the East Asia mirror. They believe that traffic from China should go there, but they're not sure.
However, it's possible you're being routed correctly and the connection is simply slow.
Grant permissions to a mirror service like Tsinghua TUNA, and suggest Chinese users to download there. Actually, there are already some discussions (tuna/issues#335), but no one has any idea on Microsoft's attitude to mirroring or the contact information of Microsoft.
@leecow, can we clarify this? I assume it is fine to redistribute the .NET Core RPM and Deb packages, but potentially not ok to mirror the entire repo.
Thanks for checking! I've confirmed with the repo owners that 13.75.127.55 is expected for East Asia, so it appears that the routing is happening as they expect and it's simply slow.
Note: the IP internally redirects to four mirrors, and the repo team isn't completely sure all four are healthy. They don't see any obvious signs of bad behavior. If someone (perhaps in a different part of China) has good download speeds, this may help them figure out if one of these mirrors is unhealthy--please let us know.
To make sure it's clear: the repo owners aren't currently able to set up a mirror in China, unfortunately. They do see the value, but there is no timeline as of yet.
The packages.microsoft.com team now has their own GitHub repository for issues, so I believe it's now best to ask about this at their repo so you can get the opinions of the team responsible for that resource:
Activity
carlossanlop commentedon Jul 9, 2019
Not sure if this is something our team controls. @dagood do you know if the install/setup area could assist with this request?
dagood commentedon Jul 9, 2019
We don't control it, but @leecow may know if the Microsoft package repository owners have some plan here.
carlossanlop commentedon Sep 27, 2019
@leecow no answer since July :( do you have any updates?
leecow commentedon Sep 28, 2019
I don't have any information regarding package.microsoft.com CDNs. @hzexe - please reactivate if this is still an issue.
Lemmingh commentedon Jan 30, 2020
It's still a big problem. The download speed is very slow in China.
My speed is usually less than 20 kB/s. Every time I update .NET Core SDK or PowerShell, I have to wait for about one hour.
In my opinion, there are mainly two ways to improve download experience now:
Reach the team that controls the package repository, and switch to a CDN working better in China.
Grant permissions to a mirror service like Tsinghua TUNA, and suggest Chinese users download there. Actually, there are already some discussions (微软产品镜像源申请 tuna/issues#335), but no one has any idea on Microsoft's attitude to mirroring or the contact information of Microsoft.
I would appreciate it if this problem is resolved.
dagood commentedon Jan 30, 2020
I've sent an email to the admins of the packages.microsoft.com repos, I'll comment here with more info if I get a response.
(Note that recently, there have been frequent outages for all users of the service that is a higher priority for us at the moment, tracked by #4167.)
dagood commentedon Feb 10, 2020
The repo team did a little bit of investigation into this. In summary, they see the value but there is no definite timeline.
The team is unable to create a VM in China to test the exact scenario you're hitting here. However, there is a mirror set up for East Asia, and they confirmed that after creating a VM in East Asia, the mirror works as expected and they don't experience slowness. They also investigated that mirror's health and don't see any issues.
I wonder if it's possible you're being routed to the wrong mirror, causing this slowness. @hzexe, @Lemmingh, can you give me the IP address you're connecting to? For example, run this command:
(That IP addr is the mirror I'm being connected to--I don't know the IP of the East Asia mirror.)
I can then ask the repo admins if the IP address you're hitting is the East Asia mirror. They believe that traffic from China should go there, but they're not sure.
However, it's possible you're being routed correctly and the connection is simply slow.
@leecow, can we clarify this? I assume it is fine to redistribute the .NET Core RPM and Deb packages, but potentially not ok to mirror the entire repo.
xiaoyinl commentedon Feb 11, 2020
@dagood I am connecting to 13.75.127.55, which is located in Hong Kong SAR, China. But I also hope there are mirrors in Beijing and Shanghai.
dagood commentedon Feb 12, 2020
Thanks for checking! I've confirmed with the repo owners that 13.75.127.55 is expected for East Asia, so it appears that the routing is happening as they expect and it's simply slow.
Note: the IP internally redirects to four mirrors, and the repo team isn't completely sure all four are healthy. They don't see any obvious signs of bad behavior. If someone (perhaps in a different part of China) has good download speeds, this may help them figure out if one of these mirrors is unhealthy--please let us know.
To make sure it's clear: the repo owners aren't currently able to set up a mirror in China, unfortunately. They do see the value, but there is no timeline as of yet.
leecow commentedon May 19, 2020
@nakarnam - can you check if the packages.microsoft.com owners have specific policy guidance for this question?
mairaw commentedon Aug 11, 2021
@leecow @dagood any updates here?
dagood commentedon Aug 12, 2021
/cc @dleeapho
eveloki commentedon Nov 18, 2023
#7239 (comment)
so can we use cdn.azure.cn cdn node?
or like microsoft/vscode-dotnettools#138
@dagood
dagood commentedon Nov 20, 2023
The packages.microsoft.com team now has their own GitHub repository for issues, so I believe it's now best to ask about this at their repo so you can get the opinions of the team responsible for that resource:
VAllens commentedon Jan 18, 2024
Any progress on this?
It's occasionally slow and occasionally fast, which seems to CDN cause problems.
bocchi810 commentedon Feb 25, 2025
Is any progress on this issues?
microsoft.com domain is registered in China, but it may only www.microsoft.com using China CDN
And the package download speed like this
That's toooooo slow
dagood commentedon Feb 25, 2025
It looks like the issue I linked:
was closed as a duplicate of:
which was closed as resolved.
I'd recommend looking for another issue in https://github.com/microsoft/linux-package-repositories that fits, and filing a new issue there if you don't find one. That's where the people who might be able to do something about this will be looking.