[SOLVED] Using multiple HC1 in a private network - speed issue

Post Reply
hkim
Posts: 5
Joined: Tue Sep 15, 2020 11:30 pm
languages_spoken: english
ODROIDs: HC-1, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

[SOLVED] Using multiple HC1 in a private network - speed issue

Post by hkim »

I'm currently set up a distributed storage system with eight HC1 boards.
Each board is connected to a switch (Netgear GS110EMX).

I changed the hostname of each board as "odroid##", ## represents the last number of the IP of each board.

For example, the first board has the hostname "odroid21" and the ethernet setting is as following

address: 192.168.1.21
gateway: 192.168.1.1
nameservers: 8.8.8.8, 8.8.4.4


Also, I modified files /etc/hostname (odroid21) and /etc/hosts (add 192.168.1.21 odroid21).

The problem is when I perform ping tests to eight HC1 boards,
some (4) boards have no problems whereas the others (4) report more than 80% packet loss.


Are there any more configurations to modify that I missed?

User avatar
lazlo
Posts: 223
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4 N2+
Has thanked: 6 times
Been thanked: 10 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by lazlo »

EDIT: I made a double post. Oops! :o
Last edited by lazlo on Wed Sep 16, 2020 4:01 am, edited 1 time in total.

User avatar
lazlo
Posts: 223
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4 N2+
Has thanked: 6 times
Been thanked: 10 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by lazlo »

Just to be clear, does the file /etc/hosts looks like this on all 8 systems?

Code: Select all

127.0.0.1	localhost  #  This should be the same on every system.
127.0.1.1	odroid## ## represents the last number of the IP of each board. So put in the real numbers for the given board here since 
# the comment character in this file.

#Everything below this line can be the same on all eight boards

192.168.1.21	odroid21
192.168.1.22	odroid22
192.168.1.23	odroid23
192.168.1.24	odroid24
192.168.1.25	odroid25
192.168.1.26	odroid26
192.168.1.27	odroid27
192.168.1.28	odroid28
These users thanked the author lazlo for the post:
hkim (Wed Sep 16, 2020 1:28 pm)

User avatar
lazlo
Posts: 223
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4 N2+
Has thanked: 6 times
Been thanked: 10 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by lazlo »

lazlo wrote:
Wed Sep 16, 2020 3:21 am
Just to be clear, does the file /etc/hosts looks like this on all 8 systems?

Code: Select all

127.0.0.1	localhost  #  This should be the same on every system.
127.0.1.1	odroid## ## represents the last number of the IP of each board. So put in the real numbers for the given board here since 
# the comment character in this file.

#Everything below this line can be the same on all eight boards and the system you are pinging them from

192.168.1.21	odroid21
192.168.1.22	odroid22
192.168.1.23	odroid23
192.168.1.24	odroid24
192.168.1.25	odroid25
192.168.1.26	odroid26
192.168.1.27	odroid27
192.168.1.28	odroid28

mad_ady
Posts: 8458
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 577 times
Been thanked: 461 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by mad_ady »

Packet loss should not depend on hostnames. Is link established securely (no flaps in dmesg)? What does an iperf test show? Do you get the same behavior without the switch (with the problematic device connected directly to a PC? I once experienced huge problems because of the switch sending ethernet pause frames.

Oh, one more thing - check that the mac addresses on all odroids are unique, otherwise you might experience weird problems.
These users thanked the author mad_ady for the post:
hkim (Wed Sep 16, 2020 1:28 pm)

User avatar
odroid
Site Admin
Posts: 35266
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1074 times
Been thanked: 821 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by odroid »

We made some mistakes in our HC1 production process and there could be no MAC address in some batches.
In that case, you have to manually write the MAC address by following this annoying instruction.
https://wiki.odroid.com/odroid-xu4/trou ... change_mac
These users thanked the author odroid for the post:
hkim (Wed Sep 16, 2020 1:28 pm)

hkim
Posts: 5
Joined: Tue Sep 15, 2020 11:30 pm
languages_spoken: english
ODROIDs: HC-1, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by hkim »

I will add all eight board names! thx!!

lazlo wrote:
Wed Sep 16, 2020 3:21 am
Just to be clear, does the file /etc/hosts looks like this on all 8 systems?

Code: Select all

127.0.0.1	localhost  #  This should be the same on every system.
127.0.1.1	odroid## ## represents the last number of the IP of each board. So put in the real numbers for the given board here since 
# the comment character in this file.

#Everything below this line can be the same on all eight boards

192.168.1.21	odroid21
192.168.1.22	odroid22
192.168.1.23	odroid23
192.168.1.24	odroid24
192.168.1.25	odroid25
192.168.1.26	odroid26
192.168.1.27	odroid27
192.168.1.28	odroid28

hkim
Posts: 5
Joined: Tue Sep 15, 2020 11:30 pm
languages_spoken: english
ODROIDs: HC-1, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by hkim »

checking the mac addresses!!!
There are no MAC addresses at all!
Thanks for your hint!!! ;-)
mad_ady wrote:
Wed Sep 16, 2020 3:53 am
Packet loss should not depend on hostnames. Is link established securely (no flaps in dmesg)? What does an iperf test show? Do you get the same behavior without the switch (with the problematic device connected directly to a PC? I once experienced huge problems because of the switch sending ethernet pause frames.

Oh, one more thing - check that the mac addresses on all odroids are unique, otherwise you might experience weird problems.

hkim
Posts: 5
Joined: Tue Sep 15, 2020 11:30 pm
languages_spoken: english
ODROIDs: HC-1, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by hkim »

There is no MAC address on my boards!

Do I have to change the OS images?
Currently, I'm using Ubuntu 18.04 distribution with customized kernel 4.14.

odroid wrote:
Wed Sep 16, 2020 9:51 am
We made some mistakes in our HC1 production process and there could be no MAC address in some batches.
In that case, you have to manually write the MAC address by following this annoying instruction.
https://wiki.odroid.com/odroid-xu4/trou ... change_mac

User avatar
odroid
Site Admin
Posts: 35266
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1074 times
Been thanked: 821 times
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by odroid »

Right. Unfortunately, Realtek's MAC flashing API supports only very old kernel version in Ubuntu 16.04.
Just flash one SD card and use it with eight HC1 devices only for MAC fusing purpose.
Sorry for the inconvenience caused.
These users thanked the author odroid for the post:
hkim (Wed Sep 16, 2020 9:32 pm)

hkim
Posts: 5
Joined: Tue Sep 15, 2020 11:30 pm
languages_spoken: english
ODROIDs: HC-1, XU4
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Using multiple HC1 in a private network - speed issue

Post by hkim »

The problem is solved by flashing MAC to each board!

Thanks! ;-)

odroid wrote:
Wed Sep 16, 2020 3:40 pm
Right. Unfortunately, Realtek's MAC flashing API supports only very old kernel version in Ubuntu 16.04.
Just flash one SD card and use it with eight HC1 devices only for MAC fusing purpose.
Sorry for the inconvenience caused.
These users thanked the author hkim for the post:
odroid (Thu Sep 17, 2020 9:31 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest