News for hackers. Stuff that matters.
Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @10:53AM (#10507389)
I'm getting approximately the same CPU & storage performance out of Azure's A0 machine w/Debian8, as from AWS t2.micro instance with spinning rust storage and Debian8 (both are cheapest offer available, and price is quite similar between them).

Network on Azure though is a totally wrecked thing:

- A0 instance is capped to a miserable 5 megabit/s uplink (downlink is fine);

- If you want TCP/UDP ports open, you need to open them one-by-one, going through a 2-page wizard with 8 fields in total to fill in for each port you are opening, and then waiting 15-20 seconds for each "change" to be applied. Good luck opening a 1024-port range for your SIP server;

- You can't open ICMP/GRE/IPSEC or any other custom protocol;

- There are ton of really weirdly configured network gear between your VM and the Internet - packet drops and private IPs in traceroute, etc...

- On a plus side, you can enable so called "direct server return" and you will get incoming packets with your public IP as a destination IP; a really nice feature sorely missing on AWS.

Re:Microsoft and Red Hat partner by gruez on Wednesday November 04, 2015 @12:12PM (#10507974)
>A0 instance is capped to a miserable 5 megabit/s uplink (downlink is fine);

I thought it was 10Mb/s?

>If you want TCP/UDP ports open, you need to open them one-by-one, going through a 2-page wizard with 8 fields in total to fill in for each port you are opening, and then waiting 15-20 seconds for each "change" to be applied. Good luck opening a 1024-port range for your SIP server;

...or use the powershell cmdlets and do it in one line

Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @12:31PM (#10508112)
> I thought it was 10Mb/s?

Alas... Also, in my experience, throttling is really slow to react, i.e. you get a chunk of data out at 10-20Mb/s, then everything freezes for few seconds until average would drop below 5Mbps, then another speed-up/slow-down cycle. Long-term average is exactly 5Mbps as per their spec-sheet [1].

[1] http://download.microsoft.com/download/4/1/1/411621F0-D0BF-4...

[2] https://www.oaklight.us/2014/06/azure-network-speed-quick-te...

Re:Microsoft and Red Hat partner by X-Istence on Wednesday November 04, 2015 @12:46PM (#10508223)
I don't see why private IP's in a trace route is necessarily wrong...

Many large providers are numbering their hops with private IP space and routing public space across it because they don't want to waste /30's of public space for each point to point.

Yes, /31 is an option, but there were a lot of edge cases or network gear that didn't support it.

Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @01:13PM (#10508403)
Yes, you are absolutely right that IPv4 addresses are scarce.

Which bring a related question - what's up with none of AWS/Azure/GCE supporting IPv6?

Re:Microsoft and Red Hat partner by X-Istence on Saturday November 07, 2015 @03:57PM (#10526198)
Unfortunately IPv6 in cloud deployments is still very much lacking. OpenStack is one of those where IPv6 has only recently become something that is being built into OpenStack.
Re:Microsoft and Red Hat partner by mobiplayer on Wednesday November 04, 2015 @01:20PM (#10508452)
Hi aexaey,

There are some things wrong on your comment, please let me comment on them:

I don't think A0 are capped at all, I don't know where did you get that:

user@A0VM:~$ speedtest-cli

Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...

Testing from Microsoft Corporation (40.113.XX.XX)...

Selecting best server based on latency...

Hosted by KsFiberNet (Wichita, KS) [45.26 km]: 139.703 ms

Testing download speed........................................

Download: 44.48 Mbit/s

Testing upload speed..................................................

Upload: 22.54 Mbit/s

I just had to run one single test to get these results. Multi-threading will probably pump this up (let's say a multi-thread iPerf test between two VMs on two different regions, through their public IP addresses).

(Funnily enough this VM is in Dublin, hence the latency to Wichita).

You can get access to all your TCP/UDP ports by adding an instance-level IP: https://azure.microsoft.com/en-gb/documentation/articles/vir... (you can later protect it with NSGs --> https://azure.microsoft.com/en-us/documentation/articles/vir... ). What you've seen is when you create endpoints on the load balancer that points to the VMs behind it. Now in Azure Resource Manager, spinning up a VM from the new portal will actually get you an ILPIP and no load balancer by default.

About that statement about a ton of weirdly configured network gear: Well, for starters you're doing network virtualization here :) but seriously now, the platform doesn't forward ICMPs to/from Internet, so I'm curious about those private IP addresses on a traceroute (and of course the packet drops). If you're talking about hops between you and the VIP (the load balanced public IP in front of your VM), that's probably your provider, other providers and finally Microsoft's Network. As per the rest of the path, you've said that ICMP doesn't go through, so traceroute it's not going to work (tcptraceroute also needs ICMP to work :)).

Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @02:34PM (#10509001)
ILPIP look promising. I'll try it, thanks!

Speed test though... hm... 22Mbit/s is not exactly unrestricted, plus not sure how long is the burst that "speedtest-cli" makes. In my experience A0's uplink is burstable (but unusably slow when recovering from a burst), with long-term average being bang-on 5Mbps.

I do of course see exactly one "my" private IP in traceroute, but I'm not talking about that. I meant there are microsoft's private IPs (#12-#15) and dropped packets (#16 and on).

And of course, "platform doesn't forward ICMPs" is an annoyance in itself - i can't even ping my own VM.

    # target IP anonymized, but still have enough granularity to reproduce the traceroute
    traceroute to xxxxx.cloudapp.net (191.235.128.128), 30 hops max, 60 byte packets
     1  192.168.1.1 (192.168.1.1)  0.093 ms  0.117 ms  0.063 ms
     2  193.47.232.12 (193.47.232.12)  0.785 ms  0.785 ms  0.776 ms
     3  microsoft.mix-it.net (217.29.66.112)  1.219 ms  1.233 ms  1.225 ms
     4  xe-0-1-1-0.fra-96cbe-1a.ntwk.msn.net (207.46.42.12)  8.700 ms  8.902 ms  8.430 ms
     5  * * *
     6  * * *
     7  104.44.9.142 (104.44.9.142)  42.112 ms  39.194 ms  38.987 ms
     8  * * *
     9  be-6-0.ibr01.dub30.network.microsoft.com (104.44.4.142)  39.738 ms  38.266 ms  38.929 ms
    10  * * *
    11  ae2-0.db3-96c-3b.ntwk.msn.net (204.152.141.81)  36.986 ms  36.984 ms  36.925 ms
    12  25.149.64.247 (25.149.64.247)  36.951 ms  36.775 ms  37.152 ms
    13  10.10.132.81 (10.10.132.81)  36.917 ms  37.477 ms  37.287 ms
    14  10.60.31.77 (10.60.31.77)  37.317 ms  37.699 ms  37.899 ms
    15  10.60.31.69 (10.60.31.69)  37.653 ms  37.326 ms  37.441 ms
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    21  * * *
    22  * * *
    23  * * *
    24  * * *
    25  * * *
    26  * * *
    27  * * *
    28  * * *
    29  * * *
    30  * * *
P.S. #12 - lol!
Re:Microsoft and Red Hat partner by toyg on Wednesday November 04, 2015 @03:25PM (#10509396)
> P.S. #12 - lol!

In view of today's news, this is not funny at all.

		netname:        UK-MOD-19850128
		descr:          UK Ministry of Defence
		country:        GB
		org:            ORG-DMoD1-RIPE
		admin-c:        MN1891-RIPE
		tech-c:         MN1891-RIPE
		status:         LEGACY
		mnt-by:         UK-MOD-MNT
		mnt-domains:    UK-MOD-MNT
		mnt-routes:     UK-MOD-MNT
		mnt-by:         RIPE-NCC-LEGACY-MNT
		created:        2005-08-23T10:27:23Z
		last-modified:  2015-07-24T14:31:16Z
		source:         RIPE # Filtered
Re:Microsoft and Red Hat partner by sivaedupuganti on Thursday November 05, 2015 @11:27AM (#10514218)
Based on iperf tests, it appears uplink on a A0 is being capped around 5Mbps. Considering I work with Azure Networking, I will find more details on this internally.

I generally work with Azure CLI (https://github.com/azure/azure-xplat-cli) and ARM templates (https://github.com/Azure/azure-quickstart-templates), helps with simpler configuration and consistent results across deployments.

Though we are aggressively working on adding more features and improving documentation, evidently there are gaps in certain areas. Please feel free to reach out to us through Twitter (@AzureSupport) or Stackoverflow (tag-Azure), for anything we can help with your deployments on Azure.

Re:Microsoft and Red Hat partner by mobiplayer on Wednesday November 04, 2015 @03:23PM (#10509377)
Yeah, the ICMP stuff could be a bit annoying :)

My comment about the traceroute was because you previously said that you've found those weird IP addresses between the VM and Internet. That's not how I actually see it, but I get your point, too.

The ones you identify as packet loss are just the ones you didn't get an ICMP back. I don't know anything about your background, but as per my experience with networking I've stopped considering traceroute as something remotely useful further than the first hop long ago, especially on environments outside my control (i.e. Internet). There are things out there like ICMP throttling and the fact that I could send you the "TTL Expired" ICMP identifying myself with any IP address. Remember the "Star Wars traceroute"? http://www.theregister.co.uk/2013/02/15/star_wars_traceroute... (doesn't seem to work for me now).

(About #12, WTF? Weird!)

Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @04:09PM (#10509784)
Actually, in public Internet traceroutes are reasonably reliable. It's corporate networks where you would expect weird stuff like that.

> (About #12, WTF? Weird!)

There is a fairly boring explanation to that. Similar to public IPv4 exhaustion, RFC1918-style private IPv4 addresses can easily be exhausted in a big private network as well. If you have noticed, MS has actually run out of RFC1918, and uses RFC6598 (a.k.a. 100.64.0.0/10) network in Azure for their "classic" segment. 100.64.0.0/10 was not supposed to be used as RFC1918-style general-purpose private IP space, but rather as a local side of a CGN pool. But then again, if you squint a bit, well... it's still private, so will never be advertised into the Internet, so it's fair game to use it if you run out of RFC1918, right?

Some people choose to squint even further, and declare anything that is not advertised into public BGP as a fair game. I've seen a big ISP "borrowing" 44.0.0.0/8 (amateur radio AX.25) subnet to deploy video segment of their huge "triple-play" network. 33/8 (US DoD) is also popular as "borrowed" private space, 1/8 was fairly popular until it actually became real public address space handed to APNIC (oops!). Now we have an example of using 25/8 like that as well.

Re:Microsoft and Red Hat partner by X-Istence on Thursday November 05, 2015 @01:32PM (#10515200)
This is why it is unfortunate that more companies are not using IPv6 or moving towards it.

Currently working at a large MSP, and all of our stuff is still IPv4 only. Although we happen to have a ton of extra IPv4 space, so we aren't as concerned, but there is no movement towards IPv6 at all.

Re:Microsoft and Red Hat partner by ygra on Wednesday November 04, 2015 @12:14PM (#10507984)
Wouldn't this work for configuring lots of open ports: https://msdn.microsoft.com/library/azure/dn495300.aspx?

Never used the cmdlets for Azure and it's been a while that I dealt with it, but that sounds like an issue you'd only do via the web interface if you're insane.

Re:Microsoft and Red Hat partner by aexaey on Wednesday November 04, 2015 @12:23PM (#10508041)
Wouldn't work for me, as the {Get,Add}-Azure* scripts are windows/powershell-only. But then again, existence of CLI tools means there's an API. So, with a bit of luck, we might one day see a portable CLI tool (maybe boto3 [1] ported to azure API... one can dream! :-)

Thanks for pointing those out!

[1] https://github.com/boto/boto3

Re:Microsoft and Red Hat partner by ppog on Wednesday November 04, 2015 @12:50PM (#10508250)
There is a cross-platform CLI (based on Node.js), which runs on OS X and Linux as well as Windows - I don't specifically know if it has commands for opening ports though. There's information and links at https://azure.microsoft.com/en-us/documentation/articles/xpl... if you want to check it out.
Re:Microsoft and Red Hat partner by weazl on Wednesday November 04, 2015 @12:43PM (#10508212)
Try their xplat cli [1], it's built on node/npm. I'm on Windows but still prefer this one over the PowerShell one.

[1] https://www.npmjs.com/package/azure-cli