Telecom
|
Index
|
|
General
|
|
|
interfícies / interfaces |
implementació / implementation |
distribució / distribution |
interconn. |
subcapa / sublayer
|
PDU |
OSI
|
Internet |
|
|
|
|
|
|
capa
/ layer |
funció / function |
exemple
de
correus / post example |
capa / layer
|
|
|
|
|
|
|
data |
host layers |
7 aplicació / application |
Network process to application |
manager (write letter) |
Application
(procés)
|
|
|
|
|
|
|
data |
6 presentació / presentation |
Data representation and encryption |
assistant (correct, format letter) |
sockets |
|
|
|
|
data |
5 sessió / session |
Interhost communication
|
secretary (envelope) |
|
|
|
|
Transport
(host to host)
|
(ports) |
|
|
|
segment |
4 transport |
End-to-end connections and reliability |
driver (to post office) |
|
OpenWRT
(cfg) |
encaminador / router |
|
packet |
media layers |
3 xarxa / network |
Path determination and
logical addressing |
intake and sorting |
Internet |
|
NDIS,
ODI |
|
|
Network access |
|
|
|
LLC (802.2) |
frame |
2 enllaç / link |
Physical addressing |
packaging |
|
|
|
pont, commutador / bridge, switch |
MAC
|
|
|
|
repetidor / hub |
|
bit |
1 físic / physical |
Media, signal and binary transmission |
loading |
10baseT
100baseT |
802.11a
802.11b
802.11g |
DVB mod |
DAB |
|
|
Operadores / Operators
|
|
|
|
ADSL + mòbil
|
|
|
Orange
|
Movistar
|
Vodafone
|
Jazztel
|
|
|
Canguro
35
|
Canguro
45
|
Fusion
Mini
4G
|
Fusion
4G
|
Base
GB
|
Smart
S
|
Smart
M
|
Xarxa
S
|
Xarxa
M
|
Pack
ahorro
100
|
Pack
ahorro
sin límite
|
ADSL
|
|
20
|
20
|
10
|
10
|
20/35
|
30
|
30
|
fix a fix
|
nacional
|
il·limitades
|
il·limitades
|
il·limitades
|
il·limitades |
3000'
|
5000'
|
5000'
|
|
internacional
|
-
|
-
|
-
|
-
|
|
|
|
fix a mòbil
|
|
1000'
|
1000'
|
-
|
500' (c.set.)
50' (dl-dv)
|
350'
(c.set.)
|
-
|
120'
|
mòbil
|
trucades
|
150'
|
il·limitades
|
100'
|
il·limitades
|
0¤/min (0,1815¤/trucada)
|
200'
|
200'
|
il·limitades
|
il·limitades
|
100'
|
il·limitades
|
|
dades
|
300MB
|
1GB
|
100MB
|
1GB
|
1GB
|
600MB
|
1,2GB
|
600MB
|
1,2GB
|
100MB
|
1GB
|
|
sms
|
0,11¤/sms
|
1000 sms
|
|
il·limitats |
0,12¤/sms |
0,12¤/sms |
0,12¤/sms |
il·limitats |
il·limitats |
|
0,10¤/sms
|
|
terminal
|
tienda
|
|
|
|
|
|
|
|
|
|
|
paguen permanència
|
|
|
|
|
|
|
|
|
|
no
|
sí
|
preu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
línia
|
|
|
|
|
0
(VoIP)
|
14,99+iva
|
14,99+iva |
|
ADSL
|
|
|
|
|
24,20ii |
18,15ii |
19,99+iva
|
19,95+iva
|
|
mòbil
|
|
|
|
|
11,00ii
|
18,00ii
|
25,00ii
|
30,00ii
|
36,00ii
|
0
|
10,00+iva
|
total ¤
|
|
35
|
45
|
34,9
|
49,9
|
|
|
|
|
|
34,94
|
44,94
|
total ¤ iva inclòs
|
|
42,35ii |
54,45ii |
42,2ii |
60,37ii |
35,20ii |
42,20ii |
49,20ii |
48,15ii |
54,15ii |
42,27ii |
54,37ii |
|
Associacions
|
|
Protocols
|
|
Internet Protocol (IP)
|
- Internet
suit
protocol (Wikipedia)
- Subnetwork
(Wikipedia)
-
class |
leading bits |
start |
end |
default submask |
CIDR
notation |
use |
A |
0xxxxxxx.X.X.X |
1.0.0.0 |
126.0.0.0 |
255.0.0.0 |
/8 |
|
B |
10xxxxxx.X.X.X |
128.0.0.0 |
191.255.0.0 |
255.255.0.0 |
/16 |
|
C |
110xxxxx.X.X.X |
192.0.0.0 |
223.255.255.0 |
255.255.255.0 |
/24 |
|
D |
1110xxxx.X.X.X |
224.0.0.0 |
239.255.255.0 |
|
|
multicast |
E |
1111xxxx.X.X.X |
240.0.0.0 |
255.255.255.0 |
|
|
reserved |
- Private networks (RFC
3330 "Special-Use IPv4 addresses"):
range |
CIDR notation |
|
10.0.0.0 - 10.255.255.255 |
/8 |
|
169.254.0.0/16 |
/16 |
|
172.16.0.0 - 172.31.255.255 |
/12 |
|
192.168.0.0 -
192.168.255.255 |
/16 |
|
- Multicast
- Programari
multicast / Multicast software
- Internet
Multicast
Addresses (IANA) (224.0.0.0/4 -> 11100000.0.0.0):
start |
end |
notation |
block |
notes |
224.0.0.0 |
224.0.0.255 |
224.0.0/24 |
Local Network Control |
TTL=1 (not forwarded by routers) |
224.0.1.0 |
224.0.1.255 |
224.0.1/24 |
Internetwork Control |
global |
224.0.2.0 |
224.0.255.255 |
|
Ad-hoc I
|
224.1.0.0
|
224.1.255.255
|
224.1/16
|
Reserved
|
224.2.0.0 |
224.2.255.255 |
224.2/16 |
SDP/SAP
(SAPv1: 224.2.127.254) |
224.3.0.0 |
224.4.255.255
|
224.3/16, 224.4/16
|
Ad-hoc II
|
224.5.0.0
|
224.251.255.255
|
251/16s
|
Reserved
|
|
224.252.0.0
|
224.255.255.255
|
224.252/14
|
DIS Transient Groups
|
|
225.0.0.0
|
231.255.255.255
|
7/8s
|
Reserved
|
|
232.0.0.0
|
232.255.255.255
|
232/8
|
Source-specific
multicast
|
|
233.0.0.0 |
233.251.255.255 |
233.0.0.0/8 |
GLOP |
RFC 2770
(AS number) |
233.252.0.0
|
233.255.255.255
|
233.252/14
|
Ad-hoc III
|
|
234.0.0.0
|
234.255.255.255
|
|
Unicast-prefix-based
|
|
235.0.0.0
|
238.255.255.255
|
|
Scoped multicast
ranges: reserved
|
|
239.0.0.0
|
239.255.255.255
|
|
Scoped multicast
ranges: organization-local scope
|
RFC 2365 |
- MAC multicast addresses (Cisco):
|
|
|
01:00:5e:00:00:00 |
01:00:5e:7f:ff:ff |
IANA multicast |
|
|
|
multicast: xxxx xxx1:
xxxx xxxx : xxxx xxxx : xxxx xxxx
- TCP/IP
handbook (pdf)
- sendip:
Send arbitrary IP packets
- Packet size
|
P2P (Peer-to-peer)
|
|
Modulacions / Modulations
|
|
2
|
4
|
8
|
16
|
32
|
64
|
256
|
QAM
|
|
4-QAM
|
|
16-QAM
|
32-QAM
|
64-QAM
|
256-QAM
|
PSK
|
BPSK
|
QPSK
|
8-PSK
|
|
|
|
|
APSK
|
|
|
|
16-APSK
|
32-APSK
|
|
|
DVB-T,
DVB-T2
DVB-S,
DVB-S2
|
Intel·ligència
ambiental / Ambient intelligence
|
|
|
|
Estàndards / Standards
|
- 3GPP
- IEEE
- Ethernet
- AVB - Audio Video
Bridging (wp)
(*)
- 802.1BA
- 802.1Qav
- P802.1Qat
- P802.1AS
- ITU
- LTE (4G)
|
OMA (Open Mobile Alliance)
|
- Info
-
|
Working group
|
docs |
other info
|
TP
|
Technical Penary
|
|
|
|
Architecture
|
|
|
BCAST
|
Broadcasting
|
|
|
CD
|
Content Distribution
|
|
|
DM
|
Device Management
|
|
|
DRM
|
Digital
Rights
Management
|
|
|
IOP
|
Interoperability
|
|
|
LOC
|
Location
|
|
|
COM
|
Communications
|
|
|
REL
|
Release Planning &
Management
|
|
|
REQ
|
Requirements
|
|
|
- OMA
DRM
- DRM Content Format
|
description
|
purpose
|
mime-type
|
file extension
|
ISOBFF
brand
|
encryption
|
tools
|
DCF
|
DRM Content Format
|
discrete media
(ring tones, applications, images)
|
application/vnd.oma.drm.dcf
|
- .odf
- .o4a (audio)
- .o4v (video)
|
odcf
|
- NULL
- AES_128_CBC
(cipher block chaining)
- AES_128_CTR
(counter mode)
|
|
PDCF
|
Packetised DRM
Content Format
|
continuous media
(audio, video)
|
|
|
opf2
|
|
|
Comercial
|
|
|
GPS
|
|
ICT
|
|
Publicacions / Publications
|
|
|
|
Transmissió per àudio /Audio
transmission
|
- Tecnologia / Technology
- Programari / Software
|
Ràdio / Radio
|
|
Tarifes
|
|
|
|
|
- Internet Telephony
Interoperability Consortium
- FAQ:
How
can I use the Internet as a telephone?
- Programari AV
conferència / AV conference software
- Jazztel - ZTE F680
- ZTE
ZXHN F680 (Redes Zone)
- unlock device
- Info:
- Method 1: busybox / samba
- Info
- Steps
- get a USB stick
- format it in NTFS
- put 3 files in it:
- ln -s /var/samba/lib/smb.conf .
- wget
https://busybox.net/downloads/binaries/1.21.1/busybox-armv7l
- mv busybox-armv7l busybox
- cp busybox sh
- connect the usb stick to ONT
- enable samba server in ONT
- access the samba files in your ONT from your
computer (old Windows, or allow SMB v1.0 on new
versions)
- start a new samba client (old Windows, or
allow SMB v1.0 on new versions)
- connect to new telnet session on port 27
- telnet 192.168.1.1 27
sendcmd 1 DB p DevAuthInfo
sendcmd
1 DB p GPONCFG
sendcmd 1 DB p VoIPSIPLine
sendcmd 1 DB p TelnetCfg
- depending on your version (e.g.
V2.0.10T16) you may get asterisks for
password values; use KirO
method instead
- Method 2: UART
- Info
- Steps
- physical connection:
- backup ONT config from web admin:
- Administration / System Management / User
Configuration Management: Backup
Configuration
- serial connection (Linux serial communication)
screen
/dev/ttyUSB0 115200
- restart ONT
- press enter on tty session
- user/password: root/root (root/Zte521)
- for next steps, depending on your version
(e.g. V2.0.10T16) you may get
asterisks for password values; use KirO method instead
- extract admin credentials (to be used as
credentials in web access):
sendcmd 1 DB p DevAuthInfo
- <DM name="User" val="admin"
AccessAttr="0"/>
<DM name="Pass" val="########"
AccessAttr="0"/>
- extract GPON password (to use another ONT
with our F680 as a router):
sendcmd 1 DB p GPONCFG
- <DM name="Vendor_ID" val="ZTEG"
AccessAttr="0"/>
...
<DM name="Password" val="xXxXxXxxX#"
AccessAttr="0"/>
- extract SIP credentials (to be able to use
IP phones):
sendcmd 1 DB p VoIPSIPLine
- <DM name="AuthUserName" val="+34#########"
AccessAttr="0"/>
<DM name="AuthPassword" val="XxXxX#xX"
AccessAttr="0"/>
<DM name="DigestUserName" val="+34#########@ims.masmovil.com"
AccessAttr="0"/>
- enable telnet access (permanent until next
reset)
sendcmd 1 DB set TelnetCfg 0
UserTypeFlag 0
sendcmd 1 DB save
- ...
- telnet connection (you need an unlocked device; see
previous steps)
- Info
- telnet 192.168.1.1
- user/password: root/Zte521
- SIP config
- Info:
- Steps:
- unlock device and get admin credentials
- web access: admin/...
- get SIP info from ONT
- sendcmd 1 DB p VoIPSIPLine
sendcmd 1 DB p DevInfo
- config:
source |
field |
example |
ATA SIP Grandstream HT701 |
Android Phone app |
Ekiga |
Twinkle |
... |
Web :
Application/VoIP/SIP
(user with Level=1 in DevAuthInfo)
(sendcmd 1 DB p VoIPSIPServer )
|
Primary Registrar Server |
ims.jazztel.net |
Primary SIP Server |
Servidor |
Registrador |
SIP server: Registrar |
Domain |
Secondary Registrar Server |
ims.jazztel.net |
Failover SIP Server |
|
|
|
|
Primary Outbond Proxy Server |
212.x.x.x |
Outbond Proxy |
Adreça del servidor intermediari de
sortida |
|
Outbond proxy: Outbond proxy |
|
Primary Proxy Port |
5060 |
Local SIP Port |
Número de port |
|
|
|
sendcmd 1 DB
p VoIPSIPLine
(or use KirO
method)
|
AuthUserName |
+34... |
SIP User ID |
Nom d'usuari |
Usuari |
SIP account: User name |
|
DigestUserName |
...@ims.jazztel.net |
Authenticate ID |
|
Authentication user |
SIP authentication: Authentication name |
|
AuthPassword |
xxxx |
Authenticate Password |
Contrasenya |
Contrasenya |
SIP authentication: Password |
|
sendcmd 1 DB p DevInfo |
|
ZXHN
<ManuFacturer><ModelName>/<BootVer>_<ProvisioningCode><SoftwareVer_fromT> |
Use SIP User-Agent Header |
|
|
|
|
- ...
- Maquinari
- Programari / Software
- List
of SIP software (wp)
- Linux
- Android
- Info
- Aplicacions
- Aplicació nativa de Telèfon
- Fer
trucades per Wi-Fi
- Opció 2: utilitzar un servei VoIP per fer
trucades per Wi-Fi
- Configuració / Trucades / Comptes de
trucades / Comptes SIP / +
|
|
|
- Documents
- Programari
/
Software
- Tallafocs / Firewalls
-
- Netdisco (web-based
network management, SNMP)
- name
/ IP address
- DNS
- Instal·lació / Installation
nslookup/dig dns_name
nslookup/dig ip_address
- dig
dig server.toto.org
- specific type (e.g. TXT):
- specify DNS server
dig @8.8.8.8
server.toto.org
- Inverse
- NetBios (MS Windows)
- Instal·lació / Installation
nmblookup windows_name
nmblookup -A ip_address
findsmb
#!/bin/bash
x=1
while [ $x -le 255 ]
do
nmblookup -A 172.16.11.$x
x=$((x+1))
done
- Ports
- Tipus
- 0-1023: well known ports
- 1024-49151: registered ports
- 49151-65536: dynamic and private ports
- Llistat / List
- Els ports poden estar blocats per / Ports can
be blocked by:
- Open
a
port (eg udp:123 NTP)
iptables
-I INPUT 1 -m udp -p udp -s 0/0 --sport 123
-d 0/0 --dport 123 -j ACCEPT (*)
- using shorewall
(urpmi shorewall)
- firewalld
- List of ports
- List of open ports
(UNIX
tips):
- How
to check open ports in Linux using the CLI
- local machine:
- ss
(iproute2)
- netstat
- DEPRECATED. Use iproute2
(see equivalence table) tools:
ip -s,
ss, ip
route
- Instal·lació / Installation
- Mageia
sudo dnf install
net-tools
- CentOS
sudo yum install
net-tools
netstat -pena --ip
- if a port is listed, it means
that a process is listening to it
netstat -tulpn | grep
LISTEN
- multicast
netstat -g
netstat -anu|sort -nk4
- Local address:
-
Local
address
|
description
|
nmap
from other computer
|
config |
|
|
|
Apache
|
nginx
|
Postgresql
|
Postfix
|
|
|
|
|
|
postgresql.conf
|
main.cf
|
127.0.0.1:<port> |
service
is only available locally
|
-
|
|
listen
localhost:80;
|
listen_addresses
= 'localhost'
|
inet_interfaces
= localhost
|
0.0.0.0:<port> |
service
is available from any computer
from outside, through any
network interface
|
<port>/tcp
open <service>
|
|
listen
80;
|
listen_addresses
= '*'
|
inet_interfaces
= all |
192.168.1.100:<port> |
service
is available from any computer
from outside, through network
interface with address
192.168.1.100
|
<port>/tcp
open <service> |
|
listen
192.168.1.100:80;
|
listen_addresses
= '192.168.1.100'
port = 5432
|
inet_interfaces
= $myhostname |
- ...
- remote machine:
nmap
- Examples
- scan 1000 most used ports:
- scan a specific port:
nmap -p 11211
<server_ip>
- if remote computer has a
firewall:
nmap
-v -sU -pU:123 --reason
<server_ip>
- UDP (
-sU )
sudo nmap -sU -p
19302 stun.l.google.com
- STATE
- open: port is accessible and
a process is listening to it
- closed (not listed when
remote computer has no firewall): port
is accessible, but no process is
listening to it
- filtered (not listed, unless
option "-d -d" is specified): port is
not accessible, because it is blocked
by:
nc
/ netcat / ncat
- Examples
- port range 20-30
- UDP
nc -vu stun.l.google.com
19302
- who is using a port
- arping
- Multicast
- IPv6
- MTU (Maximum Transmission
Unit) (wp)
- Desenvolupament / Development
- UDP
- Potser haureu de deshabilitar el tallafoc
|
send |
receive |
ncat |
echo -ne "\x04\x00\x10\x00" | ncat -u
192.168.0.111 21105 |
|
C++ |
|
|
Python |
import socket
UDP_DST_IP = "192.168.0.111"
UDP_DST_PORT = 21105
UDP_PAYLOAD = "..."
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.sendto(bytes(UDP_PAYLOAD, "utf-8"),
(UDP_IP, UDP_PORT))
sock.close() |
import socket
UDP_PORT = 8888
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
sock.bind(('', UDP_PORT))
while True:
data, addr =
sock.recvfrom(1024)
print("received message:")
print(data.decode('utf-8')) |
ESP32 |
WiFiUDPClient.ino
#include <WiFiUdp.h>
void loop(){
//only send data when connected
if(connected){
Serial.println(String(millis()) + " sending
udp packet");
//Send a packet
udp.beginPacket(udpAddress,udpPort);
udp.printf("Seconds since
boot: %lu", millis()/1000);
udp.endPacket();
}
//Wait for 1 second
delay(1000);
}
|
|
Java |
|
|
... |
|
|
- ...
- VLAN
- Xarxes
domèstiques / Home networks
- WiFi
- Accés
remot / Remote access
- HomeRF
- Home
Networking
Tutorial
- Practically
Networked
- Ponts / Bridges
- Tallafocs /
Firewalls
- Zeroconf
(.local)
- Using
Zeroconf
on Linux: What Is It Good For?
- Protocols
- mDNS (multicast
DNS)
- DNS-SD (service discovery)
-
|
package installation
|
usage
|
info
|
ports |
Mageia Control Center (shorewall) |
server |
|
|
Synology
NAS
- DSM 7: File Services -> Advanced
- ssh
|
|
|
apt-get
install avahi-daemon |
insserv
avahi-daemon |
Debian / RPi
|
|
|
urpmi avahi
|
systemctl start
avahi-daemon
|
Mageia
|
|
|
yum install
avahi
|
systemctl start
avahi-daemon |
CentOS
|
|
|
client |
|
dolphin network:/
|
mDNS
(multicast DNS)
|
5353/udp
|
Seguretat
/ Tallafoc personal:
«Autodescobriment de serveis de xarxa (zeroconf i
slp)» |
|
dolphin zeroconf:/
|
DNS-SD
(service discovery) |
(still needed?) 427/udp |
|
avahi
|
avahi-browse -a
-r -t |
|
|
|
avahi-x11 |
avahi-discover-standalone |
|
|
|
avahi-python |
avahi-discover |
|
|
|
- Servidor / Server
- Synology
- Avahi
(Linux)
- Config
- /etc/avahi/avahi-daemon.conf
[server]
host-name=my_pc
domain-name=local
- /etc/avahi/services/
- Advertising
Linux Services via Avahi/Bonjour
- httpd.service
<?xml
version="1.0"
standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM
"avahi-service.dtd">
<service-group>
<name
replace-wildcards="yes">HTTP server
on %h</name>
<service>
<type>_http._tcp</type>
<port>80</port>
</service>
</service-group>
- openssh.service
<?xml
version="1.0"
standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM
"avahi-service.dtd">
<service-group>
<name
replace-wildcards="yes">Remote
Access on %h</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
</service>
<service>
<type>_sftp-ssh._tcp</type>
<port>22</port>
</service>
</service-group>
- Ports ... must be open
- Start / Stop / Status
- systemd
services
systemctl status
avahi-daemon.service
- SysV
init
service avahi-daemon start
- Debian / Raspberry
Pi
sudo insserv avahi-daemon
- ...
- Problemes / Problems
- no es troben màquines remotes de tipus .local
- cerqueu-les amb:
avahi-discover-standalone
- comproveu que la màquina remota té engegat
el servidor (p.ex. avahi, tant en una
màquina linux com en un NAS Synology)
- comproveu que el tallafoc de la instància
des d'on voleu veure la remota, permet el
pas dels paquets zeroconf:
- Mageia
- Autodescobriment de serveis de
xarxa (zeroconf i slp)
- avahi-daemon
and ".local" domain issues
- ...
- Client
- Ports
must be open
- Dolphin
- Xarxa / Network (
remote: )
- Xarxa / Network (mDNS)
(
network: /)
- Serveis de xarxa / Network services (DNS-SD) (
zeroconf: /)
- CLI (avahi)
avahi-browse -a -r -t (dnf install avahi)
avahi-discover (urpmi avahi-python)
avahi-discover-standalone (urpmi
avahi-x11)
- Programari / Software
- Network
switching
tutorial
- Network
interfaces (OpenWrt)
- IP over
DVB
- NTP
(Network Time Protocol) (123/UDP)
- PTP (Precision Time Protocol) (IEEE
1588) (Wikipedia)
-
TCP Westwood+ congestion control
- hosts (DNS)
- UNIX
- dd-wrt
- Services / Services / DNSMasq
- Enable LocalDNS
- address=/fake_domain.org/192.168.1.123
- MS
Windows
- Problema: paquets duplicats / Problem: duplicated
packets
- Check that you don't have a network interface
called "PANDA NDIS IM Filter"
- DHCP
- Problemes / Problems
- L'accés a alguns servidors darrere una NAT
funciona per WiFi però no per Ethernet / Access to some
servers behind a NAT works using WiFi but not using Ethernet
- Solució / Solution
- a l'encaminador, assegureu-vos que la
connexió ADSL és PPPoE (MTU=1492) i no PPPoA
(MTU=1458) / in the router, check that ADSL
connection is using PPPoE (MTU=1492) and not PPPoA
(MTU=1458)
- SNMP
|
http://www.francescpinyol.cat/telecom.html
Darrera modificació: 25 de juny de 2024 / Last update: 25th June
2024
Cap a casa / Back home. |