In hex, these can be represented in a friendlier fashion, ranging from 00 to FF. This means one byte can carry binary values from 0000 0000 to 1111 1111. Each hex digit represents four binary digits therefore, hex is a language to write binary in an abbreviated form.įour binary digits (also called nibbles) make up half a byte. Hex is used in mathematics and information technologies as a more friendly way to represent binary numbers. The letters are used because of the need to represent the values 10, 11, 12, 13, 14 and 15 each in one single symbol. These are the 10 decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the first six letters of the English alphabet (A, B, C, D, E, F). As a base-16 numeral system, it uses 16 symbols. The hexadecimal system (shortly hex), uses the number 16 as its base (radix). Multiply every digit with 16 power of digit location.Get the decimal equivalent of hex from table.Here are the steps to convert hex to decimal: See below of the page to check the hex to decimal chart. We need to know the decimal equivalent of every hex number digit. is a world leading Huawei distributor, offering Huawei switches, Huawei routers, Huawei SFP, Huawei modules and others.Hex is a base 16 number and decimal is a base 10 number. The more you use Hex the easier it gets, but for MACs just remember. You could break everything down into binary, but since you really only have to concern yourself with one particular hex character, it would actually be a waste of time. It's easy when they're numbers as we all know 1 is lower than 3, but as long as you remember that A comes after 9, B comes after A (counting up) it will be easy for you. The only one that matters is the first character from the left that doesn't match, that's the one that decides who wins. When you're trying to figure out who has the lower MAC address, just compare each hex character from left to right. However, once you want to goto decimal 16, the hex value will now be 10 (don't get this confused with decimal 10) Since hex is base(16), we can only have 16 numbers, hence 0 to F. So in hex, once you hit 10 you are starting with the letter A. 802.1D (regular spanning tree) is 16 bits of priority and 48 bits of MAC address.
Remember bridge ID is 64 bits long (4 bits or priority plus 12 bits of vlan ID plus 48 bits of MAC address). This would be the determining winner if the bridge ID value is equal. So E would be lower than F so the first choice would be the lower MAC address. In hex, 0 is lowest and F (15) is highest value. Well, the MAC is the same until the fourth octect from the left (which would be where we start when determining the lowest address).
After some exposure to it though, you should just be able to glance at the MAC and determine the lowest MAC address quite easily.
An easier way, if you have access, is to use windows calculator. You can break it down to binary if you wish and then convert it to decimal to determine what value will be used for the root bridge election. I follow that letters A -F are hex values but do I plug the value into the number sequence or do I break it down to binary When a MAC address in Huawei S2700 has letters in it how do you calculate the lowest value for Root Bridge selection ?