SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
Exploring the Huawei HG8010H GPON ONT
Optical networking, ugly firmwares and more...
Marco d’Itri
<md@linux.it>
@rfc1036
SHA2017 - 7 august 2017
1/17
2/17
GPON basics
GPON: Gigabit Passive Optical Network
In the CO: Optical Line Terminal (OLT).
Street cabinet: 1:4 passive optical splitter.
Building distribution frame: 1:16 passive optical splitter.
In the customer premises: Optical Network Terminal (ONT).
One single fiber from the CO serves a tree of about 50 customers with
the 1:64 splitting factor (4 × 16 = 64, for Telecom Italia).
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
3/17
GPON basics (2)
Wave division multiplexing
Downstream (1490 nm): 2.5 Gbps broadcast (but AES-encrypted).
Upstream (1310 nm): 1.25 Gbps time division multiplexing.
The fiber is used bidirectionally, hence a single fiber strand enters the
customer premises.
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
4/17
The Huawei HG8010H GPON ONT
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
5/17
The Huawei HG8010H GPON ONT
CPE provided in Italy by Telecom Italia and Vodafone.
Costs about 15$ on Alibaba.
One optical GPON port.
One copper Ethernet port.
(Not so) dumb bridge: it needs a PPPoE router.
Linux version 2.6.34.10_sd5115v100_wr4.3
(root@vL10t193037) (gcc version 4.4.6 (GCC) )
#1 SMP Wed Jul 2 19:38:31 CST 2014
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
6/17
Digital Optical Monitoring data
http://192.168.100.1/html/status/opticinfo.asp
returns:
var opticInfos = new Array(new stOpticInfo
("InternetGatewayDevice.X_HW_DEBUG.AMP.Optic",
" 2.08","-17.01","3306","38","13"),null);
function stOpticInfo(domain,transOpticPower,
revOpticPower,voltage,temperature,bias)
So we get:
Transmitted optical power (dbM)
Received optical power (dbM)
Voltage (mV)
Temperature (°C)
Bias current (mA)
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
7/17
Web GUI authentication
// nonce (not actually a constant)
function GetRandCnt() {return 'cbe1603a6d364f7d31acad86d8227dca'}
function SubmitForm() {
var Username = document.getElementById('txt_Username');
var Password = document.getElementById('txt_Password');
// ...
var Language = 'english';
var cnt = GetRandCnt();
var cookie2 = "Cookie=" + "rid=" + RndSecurityFormat("" + cnt)
+ RndSecurityFormat(Username.value + cnt) +
RndSecurityFormat(RndSecurityFormat(hex_md5(Password.value))
+ cnt) + ":" + "Language:" + Language + ":" + "id=-1;path=/";
document.cookie = cookie2;
window.location.replace('/login.cgi');
return true;
}
RndSecurityFormat() is SHA-256...
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
8/17
Accessing the shell
Default username and password: admin / admin.
But the privileged username and password telecomadmin /
admintelecom (cannot be modified!) allows to download the
configuration.
The configuration is AES-encrypted, but the key is common to
many Huawei CPEs...
To access the shell, just set TelnetLanEnable=1 (no SSH...),
encrypt again the configuration and upload it.
Then the display optic command will show what we need.
Add Perl as needed...
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
9/17
Measuring optical power
dB: the decibel is the ratio of two values of a physical quantity.
Dimentionless.
dB = 10 · log10
(
Powerin
Powerout
)
3dB ≈ 2
−3dB ≈ 1
2
−10dB = 1
10
−20dB = 1
100
dBm: decibel-milliwatts represents power referenced to 1mW.
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
10/17
DOM paramters
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
Apr20
May04
May18
Jun01
Jun15
Jun29
Jul13
Jul27
Aug10
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dBm
°C
RxPower
TxPower
Temperature
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
11/17
DOM paramters
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
Jul15
Jul17
Jul19
Jul21
Jul23
Jul25
Jul27
Jul29
Jul31
Aug02
Aug04
Aug06
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dBm
°C
RxPower
TxPower
Temperature
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
12/17
DOM paramters
-18
-17
Apr20
May04
May18
Jun01
Jun15
Jun29
Jul13
Jul27
Aug10
dBm
RxPower
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
13/17
Questions
Why is the RX power fluctuating?
Is it really correlated to the environment temperature?
Is it directly influenced by the environment temperature? Why?
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
14/17
Linux-based routing: PPPoE interface
Create a dedicated interface for PPPoE:
auto eth9
iface eth9 inet static
address 192.168.100.2/30
pre-up ip link add link eth0 $IFACE type macvlan
post-down ip link del $IFACE
And add some NAT to reach the router from your internal network:
iptables -t nat -A POSTROUTING -d 192.168.100.1 -j SNAT←
--to-source 192.168.100.2
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
15/17
Linux-based routing: pppd@.service
[Unit]
Description=PPP connection for %I
Documentation=man:pppd(8)
DefaultDependencies=no
IgnoreOnIsolate=yes
After=local-fs.target network.target apparmor.service ←
systemd-sysctl.service systemd-modules-load.service
Before=shutdown.target network-online.target
Conflicts=shutdown.target
[Service]
Type=forking
ExecStart=/usr/sbin/pppd call %I linkname %I updetach
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
Restart=on-failure
PrivateTmp=yes
[Install]
WantedBy=multi-user.target
WantedBy=network-online.target
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
16/17
Linux-based routing: pppd@.service
A modern approach to starting pppd:
systemctl enable pppd@myisp
systemctl start pppd@myisp
systemctl status pppd@myisp
journalctl --unit=pppd@myisp.service --since='30 days
(Work in progress... Will appear in Debian later.)
Exploring the Huawei HG8010H GPON ONT Marco d’Itri
17/17
Domande?
http://www.linux.it/ md/text/gpon-sha2017.pdf
(Google . . . Marco d’Itri . . . I feel lucky)
Exploring the Huawei HG8010H GPON ONT Marco d’Itri

Weitere ähnliche Inhalte

Was ist angesagt?

Opti x rtn 910950980 hardware description wind
Opti x rtn 910950980 hardware description windOpti x rtn 910950980 hardware description wind
Opti x rtn 910950980 hardware description wind
nctgayaranga
 
140556299 huawei-node b-data-configuration
140556299 huawei-node b-data-configuration140556299 huawei-node b-data-configuration
140556299 huawei-node b-data-configuration
Shelton Siziba
 
02 opti x rtn 900 v100r002 configuration guide-20100119-a
02 opti x rtn 900 v100r002 configuration guide-20100119-a02 opti x rtn 900 v100r002 configuration guide-20100119-a
02 opti x rtn 900 v100r002 configuration guide-20100119-a
Waheed Ali
 

Was ist angesagt? (20)

Beginners: Non Terrestrial Networks (NTN)
Beginners: Non Terrestrial Networks (NTN)Beginners: Non Terrestrial Networks (NTN)
Beginners: Non Terrestrial Networks (NTN)
 
Opti x rtn 910950980 hardware description wind
Opti x rtn 910950980 hardware description windOpti x rtn 910950980 hardware description wind
Opti x rtn 910950980 hardware description wind
 
LTE: X2 interface
LTE: X2 interfaceLTE: X2 interface
LTE: X2 interface
 
Ericsson RBS 6000
Ericsson RBS 6000Ericsson RBS 6000
Ericsson RBS 6000
 
140556299 huawei-node b-data-configuration
140556299 huawei-node b-data-configuration140556299 huawei-node b-data-configuration
140556299 huawei-node b-data-configuration
 
SDH Principle - Huawei
SDH Principle - HuaweiSDH Principle - Huawei
SDH Principle - Huawei
 
Ml tn modems presentation
Ml tn modems presentationMl tn modems presentation
Ml tn modems presentation
 
RADIUS and LDAP - pfSense Hangout August 2015
RADIUS and LDAP - pfSense Hangout August 2015RADIUS and LDAP - pfSense Hangout August 2015
RADIUS and LDAP - pfSense Hangout August 2015
 
Siae datasheet
Siae datasheetSiae datasheet
Siae datasheet
 
E nodeb commissioning guide(v100r005c00 04)(pdf)-en
E nodeb commissioning guide(v100r005c00 04)(pdf)-enE nodeb commissioning guide(v100r005c00 04)(pdf)-en
E nodeb commissioning guide(v100r005c00 04)(pdf)-en
 
4g interview-question
4g interview-question4g interview-question
4g interview-question
 
C8 Réseaux : Couche applicative
C8 Réseaux : Couche applicativeC8 Réseaux : Couche applicative
C8 Réseaux : Couche applicative
 
IMS ENUM & DNS Mechanism
IMS ENUM & DNS MechanismIMS ENUM & DNS Mechanism
IMS ENUM & DNS Mechanism
 
LTE Attach Call Flow_Vi.pptx
LTE Attach Call Flow_Vi.pptxLTE Attach Call Flow_Vi.pptx
LTE Attach Call Flow_Vi.pptx
 
Shu description and installation
Shu description and installationShu description and installation
Shu description and installation
 
Huawei GPON Fundamentals
Huawei GPON FundamentalsHuawei GPON Fundamentals
Huawei GPON Fundamentals
 
GPON-Doctor TR-156 Monitoring Features
GPON-Doctor TR-156 Monitoring FeaturesGPON-Doctor TR-156 Monitoring Features
GPON-Doctor TR-156 Monitoring Features
 
Lte principles overview
Lte principles  overviewLte principles  overview
Lte principles overview
 
UMTS/WCDMA Call Flows for PS services
UMTS/WCDMA Call Flows for PS servicesUMTS/WCDMA Call Flows for PS services
UMTS/WCDMA Call Flows for PS services
 
02 opti x rtn 900 v100r002 configuration guide-20100119-a
02 opti x rtn 900 v100r002 configuration guide-20100119-a02 opti x rtn 900 v100r002 configuration guide-20100119-a
02 opti x rtn 900 v100r002 configuration guide-20100119-a
 

Ähnlich wie Exploring the Huawei HG8010H GPON ONT

Chicony_XAVi_Profile_20160118
Chicony_XAVi_Profile_20160118Chicony_XAVi_Profile_20160118
Chicony_XAVi_Profile_20160118
YC Pan
 
Avb pov 2017 v2
Avb pov 2017 v2Avb pov 2017 v2
Avb pov 2017 v2
Jeff Green
 
Huaweiumtsnodebconfigurationprinciple 161222082051
Huaweiumtsnodebconfigurationprinciple 161222082051Huaweiumtsnodebconfigurationprinciple 161222082051
Huaweiumtsnodebconfigurationprinciple 161222082051
moussaCoulibaly22
 
332641220-10G-GPON-FTTH-Solution-Poster.pdf
332641220-10G-GPON-FTTH-Solution-Poster.pdf332641220-10G-GPON-FTTH-Solution-Poster.pdf
332641220-10G-GPON-FTTH-Solution-Poster.pdf
taha karram
 
GPON technology equipment fiberhoe technologies indo
GPON technology equipment fiberhoe technologies indoGPON technology equipment fiberhoe technologies indo
GPON technology equipment fiberhoe technologies indo
rizkiutomo1992
 

Ähnlich wie Exploring the Huawei HG8010H GPON ONT (20)

Chicony xa vi_profile_20160118
Chicony xa vi_profile_20160118Chicony xa vi_profile_20160118
Chicony xa vi_profile_20160118
 
Chicony_XAVi_Profile_20160118
Chicony_XAVi_Profile_20160118Chicony_XAVi_Profile_20160118
Chicony_XAVi_Profile_20160118
 
Fujitsu Iccad Presentation--Enable 100G
Fujitsu Iccad Presentation--Enable 100GFujitsu Iccad Presentation--Enable 100G
Fujitsu Iccad Presentation--Enable 100G
 
Avb pov 2017 v2
Avb pov 2017 v2Avb pov 2017 v2
Avb pov 2017 v2
 
Huawei ftth c b e2 e solution
Huawei ftth c b e2 e solutionHuawei ftth c b e2 e solution
Huawei ftth c b e2 e solution
 
Make The Impossible Possible - Industrial PoE Brochure 2014
Make The Impossible Possible - Industrial PoE Brochure 2014Make The Impossible Possible - Industrial PoE Brochure 2014
Make The Impossible Possible - Industrial PoE Brochure 2014
 
ZyXEL Next Generation GPON-FTTH solution
ZyXEL Next Generation GPON-FTTH solutionZyXEL Next Generation GPON-FTTH solution
ZyXEL Next Generation GPON-FTTH solution
 
Huawei umts node b configuration principle
Huawei umts node b configuration principleHuawei umts node b configuration principle
Huawei umts node b configuration principle
 
Huaweiumtsnodebconfigurationprinciple 161222082051
Huaweiumtsnodebconfigurationprinciple 161222082051Huaweiumtsnodebconfigurationprinciple 161222082051
Huaweiumtsnodebconfigurationprinciple 161222082051
 
Gpon the technology --rev 1
Gpon the technology --rev 1Gpon the technology --rev 1
Gpon the technology --rev 1
 
Gpon the technology --rev 1
Gpon the technology --rev 1Gpon the technology --rev 1
Gpon the technology --rev 1
 
C.pdf
C.pdfC.pdf
C.pdf
 
HTTP and 5G (fixed1)
HTTP and 5G (fixed1)HTTP and 5G (fixed1)
HTTP and 5G (fixed1)
 
Gpon Network
Gpon NetworkGpon Network
Gpon Network
 
Gpon Network
Gpon NetworkGpon Network
Gpon Network
 
Anritsu mt1100 анализатор протоколов 100 Гбит
Anritsu mt1100 анализатор протоколов 100 ГбитAnritsu mt1100 анализатор протоколов 100 Гбит
Anritsu mt1100 анализатор протоколов 100 Гбит
 
332641220-10G-GPON-FTTH-Solution-Poster.pdf
332641220-10G-GPON-FTTH-Solution-Poster.pdf332641220-10G-GPON-FTTH-Solution-Poster.pdf
332641220-10G-GPON-FTTH-Solution-Poster.pdf
 
Ats networking products price
Ats networking products priceAts networking products price
Ats networking products price
 
GPON technology equipment fiberhoe technologies indo
GPON technology equipment fiberhoe technologies indoGPON technology equipment fiberhoe technologies indo
GPON technology equipment fiberhoe technologies indo
 
400G/800G High Speed Networking product guide
400G/800G High Speed Networking product guide400G/800G High Speed Networking product guide
400G/800G High Speed Networking product guide
 

Mehr von Marco d'Itri

Mehr von Marco d'Itri (20)

BGP security at internet exchanges
BGP security at internet exchangesBGP security at internet exchanges
BGP security at internet exchanges
 
The Internet of (other people's) Things
The Internet of (other people's) ThingsThe Internet of (other people's) Things
The Internet of (other people's) Things
 
Introduzione alla sicurezza di BGP
Introduzione alla sicurezza di BGPIntroduzione alla sicurezza di BGP
Introduzione alla sicurezza di BGP
 
Introduzione al peering
Introduzione al peeringIntroduzione al peering
Introduzione al peering
 
The Internet of (other people's) Things
The Internet of (other people's) ThingsThe Internet of (other people's) Things
The Internet of (other people's) Things
 
State-encouraged BGP hijacking
State-encouraged BGP hijackingState-encouraged BGP hijacking
State-encouraged BGP hijacking
 
Sicurezza di BGP
Sicurezza di BGPSicurezza di BGP
Sicurezza di BGP
 
Un mistero di censura all'italiana
Un mistero di censura all'italianaUn mistero di censura all'italiana
Un mistero di censura all'italiana
 
Interconnessioni tra le reti Italiane
Interconnessioni tra le reti ItalianeInterconnessioni tra le reti Italiane
Interconnessioni tra le reti Italiane
 
An introduction to peering in Italy
An introduction to peering in ItalyAn introduction to peering in Italy
An introduction to peering in Italy
 
Peering e depeering
Peering e depeeringPeering e depeering
Peering e depeering
 
Introduzione al peering
Introduzione al peeringIntroduzione al peering
Introduzione al peering
 
Depeering di Telecom Italia
Depeering di Telecom ItaliaDepeering di Telecom Italia
Depeering di Telecom Italia
 
RPSL and rpsltool
RPSL and rpsltoolRPSL and rpsltool
RPSL and rpsltool
 
Piano di indirizzamento di una rete IPv6
Piano di indirizzamento di una rete IPv6Piano di indirizzamento di una rete IPv6
Piano di indirizzamento di una rete IPv6
 
Il nuovo Bryar.pm
Il nuovo Bryar.pmIl nuovo Bryar.pm
Il nuovo Bryar.pm
 
Transizione a IPv6: come la vedo io
Transizione a IPv6: come la vedo ioTransizione a IPv6: come la vedo io
Transizione a IPv6: come la vedo io
 
Networking in ambienti cloud
Networking in ambienti cloudNetworking in ambienti cloud
Networking in ambienti cloud
 
DNSSEC - una breve introduzione
DNSSEC - una breve introduzioneDNSSEC - una breve introduzione
DNSSEC - una breve introduzione
 
RPSL e rpsltool
RPSL e rpsltoolRPSL e rpsltool
RPSL e rpsltool
 

Kürzlich hochgeladen

一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
F
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 

Kürzlich hochgeladen (20)

一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 

Exploring the Huawei HG8010H GPON ONT

  • 1. Exploring the Huawei HG8010H GPON ONT Optical networking, ugly firmwares and more... Marco d’Itri <md@linux.it> @rfc1036 SHA2017 - 7 august 2017 1/17
  • 2. 2/17 GPON basics GPON: Gigabit Passive Optical Network In the CO: Optical Line Terminal (OLT). Street cabinet: 1:4 passive optical splitter. Building distribution frame: 1:16 passive optical splitter. In the customer premises: Optical Network Terminal (ONT). One single fiber from the CO serves a tree of about 50 customers with the 1:64 splitting factor (4 × 16 = 64, for Telecom Italia). Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 3. 3/17 GPON basics (2) Wave division multiplexing Downstream (1490 nm): 2.5 Gbps broadcast (but AES-encrypted). Upstream (1310 nm): 1.25 Gbps time division multiplexing. The fiber is used bidirectionally, hence a single fiber strand enters the customer premises. Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 4. 4/17 The Huawei HG8010H GPON ONT Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 5. 5/17 The Huawei HG8010H GPON ONT CPE provided in Italy by Telecom Italia and Vodafone. Costs about 15$ on Alibaba. One optical GPON port. One copper Ethernet port. (Not so) dumb bridge: it needs a PPPoE router. Linux version 2.6.34.10_sd5115v100_wr4.3 (root@vL10t193037) (gcc version 4.4.6 (GCC) ) #1 SMP Wed Jul 2 19:38:31 CST 2014 Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 6. 6/17 Digital Optical Monitoring data http://192.168.100.1/html/status/opticinfo.asp returns: var opticInfos = new Array(new stOpticInfo ("InternetGatewayDevice.X_HW_DEBUG.AMP.Optic", " 2.08","-17.01","3306","38","13"),null); function stOpticInfo(domain,transOpticPower, revOpticPower,voltage,temperature,bias) So we get: Transmitted optical power (dbM) Received optical power (dbM) Voltage (mV) Temperature (°C) Bias current (mA) Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 7. 7/17 Web GUI authentication // nonce (not actually a constant) function GetRandCnt() {return 'cbe1603a6d364f7d31acad86d8227dca'} function SubmitForm() { var Username = document.getElementById('txt_Username'); var Password = document.getElementById('txt_Password'); // ... var Language = 'english'; var cnt = GetRandCnt(); var cookie2 = "Cookie=" + "rid=" + RndSecurityFormat("" + cnt) + RndSecurityFormat(Username.value + cnt) + RndSecurityFormat(RndSecurityFormat(hex_md5(Password.value)) + cnt) + ":" + "Language:" + Language + ":" + "id=-1;path=/"; document.cookie = cookie2; window.location.replace('/login.cgi'); return true; } RndSecurityFormat() is SHA-256... Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 8. 8/17 Accessing the shell Default username and password: admin / admin. But the privileged username and password telecomadmin / admintelecom (cannot be modified!) allows to download the configuration. The configuration is AES-encrypted, but the key is common to many Huawei CPEs... To access the shell, just set TelnetLanEnable=1 (no SSH...), encrypt again the configuration and upload it. Then the display optic command will show what we need. Add Perl as needed... Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 9. 9/17 Measuring optical power dB: the decibel is the ratio of two values of a physical quantity. Dimentionless. dB = 10 · log10 ( Powerin Powerout ) 3dB ≈ 2 −3dB ≈ 1 2 −10dB = 1 10 −20dB = 1 100 dBm: decibel-milliwatts represents power referenced to 1mW. Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 13. 13/17 Questions Why is the RX power fluctuating? Is it really correlated to the environment temperature? Is it directly influenced by the environment temperature? Why? Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 14. 14/17 Linux-based routing: PPPoE interface Create a dedicated interface for PPPoE: auto eth9 iface eth9 inet static address 192.168.100.2/30 pre-up ip link add link eth0 $IFACE type macvlan post-down ip link del $IFACE And add some NAT to reach the router from your internal network: iptables -t nat -A POSTROUTING -d 192.168.100.1 -j SNAT← --to-source 192.168.100.2 Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 15. 15/17 Linux-based routing: pppd@.service [Unit] Description=PPP connection for %I Documentation=man:pppd(8) DefaultDependencies=no IgnoreOnIsolate=yes After=local-fs.target network.target apparmor.service ← systemd-sysctl.service systemd-modules-load.service Before=shutdown.target network-online.target Conflicts=shutdown.target [Service] Type=forking ExecStart=/usr/sbin/pppd call %I linkname %I updetach ExecStop=/bin/kill $MAINPID ExecReload=/bin/kill -HUP $MAINPID StandardOutput=null Restart=on-failure PrivateTmp=yes [Install] WantedBy=multi-user.target WantedBy=network-online.target Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 16. 16/17 Linux-based routing: pppd@.service A modern approach to starting pppd: systemctl enable pppd@myisp systemctl start pppd@myisp systemctl status pppd@myisp journalctl --unit=pppd@myisp.service --since='30 days (Work in progress... Will appear in Debian later.) Exploring the Huawei HG8010H GPON ONT Marco d’Itri
  • 17. 17/17 Domande? http://www.linux.it/ md/text/gpon-sha2017.pdf (Google . . . Marco d’Itri . . . I feel lucky) Exploring the Huawei HG8010H GPON ONT Marco d’Itri