SlideShare una empresa de Scribd logo
1 de 54
Компютърни Мрежи и GNU/Linux




Мариян Маринов      Боян Кроснов

mm@yuhu.biz         boyan@krosnov.org
SiteGround Ltd.     http://boyan.krosnov.org/
Кой съм аз
       Независим консултант




       За свободен софтуер, свобода на словото,
        достъпа до информация и т.н, както и
        Хуманизъм, Neurodiversity, Freedom of thought,
        etc.
       CCIE #8701 (Януари 2002)
2
Увод
     Какво   са компютърните мрежи?




3
Лекцията
     Мрежови  модели
     Често срещани протоколи
     Стандартни организации
     Инструменти и примери
     Хардуер
      –   Дънни платки
      –   Мрежови карти
     Ethernet,VLANs
     IP, UDP, TCP

4
Слоести ...




5
Слоести мрежови модели
                OSI




6
Моделите

      OSI              IETF        IEEE




               Session/Transport




7
8
Протоколи




9
Протоколи




10
Стандартни организации

      IETF     W3C              3GPP                ...


                                             IETF            ...
      IETF         ...
                                                    IETF
      IETF                  IETF
                                                           IETF
      IEEE   ITU         IETF          ...


      IEEE   ITU          ...


11
Стандартни организации
      Internet  Engineering Task F (www.ietf.org)
      Institute of Electrical and Electronics
       Engineers - IEEE (www.ieee.org)
      International Telecommunication Union - ITU
       (www.itu.int)
      3GPP (www.3gpp.org)
      x Forum, y Alliance, z Foundation (WiMax
       Forum, WiMedia Alliance, XMPP Standards
       Foundation, и т.н.)
      Повечето широко-използвани протоколи в
       мрежите са свободни
12
Мрежова топология




13
Мрежова топология

       Bus




       Line




14
Мрежова топология

      Ring




15
Мрежова топология

      Star




16
Мрежова топология

      Fully connected star




17
Мрежова топология

      Mesh




18
Мрежова топология

      Tree




19
Инструменти




20
21
Q&A




22
Desktop Hardware




23
Server




24
lspci
     gaia:~# lspci
     00:00.0 Host bridge: Intel Corporation E7320 Memory Controller Hub (rev 0c)
     00:00.1 Class ff00: Intel Corporation E7320 Error Reporting Registers (rev 0c)
     00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 0c)
     00:03.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A1 (rev 0c)
     00:1c.0 PCI bridge: Intel Corporation 6300ESB 64-bit PCI-X Bridge (rev 02)
     00:1d.0 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev
         02)
     00:1d.1 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev
         02)
     00:1d.4 System peripheral: Intel Corporation 6300ESB Watchdog Timer (rev 02)
     00:1d.5 PIC: Intel Corporation 6300ESB I/O Advanced Programmable Interrupt
         Controller (rev 02)
     00:1d.7 USB Controller: Intel Corporation 6300ESB USB2 Enhanced Host Controller (rev
         02)
     00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 0a)
     00:1f.0 ISA bridge: Intel Corporation 6300ESB LPC Interface Controller (rev 02)
     00:1f.1 IDE interface: Intel Corporation 6300ESB PATA Storage Controller (rev 02)
     00:1f.3 SMBus: Intel Corporation 6300ESB SMBus Controller (rev 02)
     03:01.0 RAID bus controller: 3ware Inc 9550SX SATA-RAID
     04:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
     04:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet
         (rev 03)



25
NIC




26
Ethernet PHY
      Диференциални
       сигнали
      Усукани двойки


      Категории    кабели
       –   5/5е (100MHz)
       –   6/6а (250/500 MHz)




27
8P8C (RJ-45)




28
Ethernet PHY




                100BASE-TX

29
Crossed cable
      бо,о,бз,с,бс,з,бк,к
                         – тип B
      1,2 <-> 3,6 и обратно




30
31
Hub, Switch, Router

     Repeater




32
Hub, Switch, Router

                   Layer 1 devices:
                           Repeater
                           Hub (multi-port repeater)
                           Media converter
                           LAN Card




33
Hub, Switch, Router

     Bridge
          NET 1                     NET 2




     C8:60:00:C5:BD:ED     40:B3:95:5B:0F:6F
     00:27:22:56:6A:B3     14:DA:E9:09:6F:2B
     00:0E:08:D3:CC:07     00:27:22:56:72:21
     00:0E:08:D3:CC:05     B8:8D:12:08:01:9A

34
Hub, Switch, Router

                   Layer 1 devices:
                           Bridge
                           Switch (multi-port bridge)
                           LAN Card




35
Рамки, пакети, сегменти




36
Рамки, пакети, сегменти




37
Ethernet рамка




      Network order / Machine order ...
      битове 6 и 7 от MAC адреса ...




      max   150 Kpps @ 100Mbps

38
Hub, Switch, Router




39
Switch
      Принцип   на работа

      Broadcast/Multicast/Unicast
      Unknown   Unicast




40
VLANs and Trunking
      IEEE 802.1q / 802.1p
      Принцип на работа
      Native(untagged) VLAN


      Tag  Protocol ID (TPID) 0x8100
      3-bit priority, 12-bit VLAN ID




41
Ethernet




                Q&A



42
IP (RFC 791)




43
Relation to other protocols
               +------+ +-----+ +-----+       +-----+
               |Telnet| | FTP | | TFTP| ... | ... |
               +------+ +-----+ +-----+       +-----+
                      |    |         |           |
                    +-----+       +-----+     +-----+
                    | TCP |       | UDP | ... | ... |
                    +-----+       +-----+     +-----+
                         |           |           |
                    +--------------------------+----+
                    |      Internet Protocol & ICMP   |
                    +--------------------------+----+
                                     |
                        +---------------------------+
                        |   Local Network Protocol |
                        +---------------------------+

                       Protocol Relationships

44                           Figure 1.
Model of operation


      Application                                             Application
      Program                                                     Program
                                                                 /
          Internet Module      Internet Module      Internet Module
                                 /                        /
                LNI-1          LNI-1      LNI-2         LNI-2
                              /                       /
                  Local Network 1           Local Network 2



                               Transmission Path

                                   Figure 2



45
Мрежова топология




46
IP Header
        0                        1                      2                     3
            0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |Version|   IHL   |Type of Service|              Total Length         |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |           Identification          |Flags|        Fragment Offset    |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |   Time to Live |       Protocol   |           Header Checksum       |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |                           Source Address                            |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |                        Destination Address                          |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
            |                        Options                      |    Padding    |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


                                 Example Internet Datagram Header


47                                          Figure 4.
IP Address




48
IP Subnetting
      CIDR       (RFC1519 ’93 -> RFC4632)
       notation      addrs/block    # blocks
       --------      -----------   ----------
       n.n.n.n/32              1   4294967296   "host route"
       n.n.n.x/31              2   2147483648   "p2p link"
       n.n.n.x/30              4   1073741824
       n.n.n.x/29              8    536870912
       n.n.n.x/28             16    268435456
       n.n.n.x/27             32    134217728
       n.n.n.x/26             64     67108864
       n.n.n.x/25            128     33554432
       n.n.n.0/24            256     16777216   legacy "Class C"
       n.n.x.0/23            512      8388608
       n.n.x.0/22           1024      4194304
       n.n.x.0/21           2048      2097152
       n.n.x.0/20           4096      1048576
49
IP Subnetting
        n.n.x.0/19         8192   524288
        n.n.x.0/18        16384   262144
        n.n.x.0/17        32768   131072
        n.n.0.0/16        65536    65536   legacy "Class B"
        n.x.0.0/15       131072    32768
        n.x.0.0/14       262144    16384
        n.x.0.0/13       524288     8192
        n.x.0.0/12      1048576     4096
        n.x.0.0/11      2097152     2048
        n.x.0.0/10      4194304     1024
        n.x.0.0/9       8388608      512
        n.0.0.0/8      16777216      256   legacy "Class A"
        x.0.0.0/7      33554432      128
        x.0.0.0/6      67108864       64
        x.0.0.0/5     134217728       32
        x.0.0.0/4     268435456       16
        x.0.0.0/3     536870912        8
        x.0.0.0/2    1073741824        4
        x.0.0.0/1    2147483648        2
        0.0.0.0/0    4294967296        1   "default route"
50
ipcalc




51
52
Special adresses
      0.0.0.0 – uninitialized endpoint
      0.0.0.0/8 – local network (not 0/0)
      127.0.0.0/8 – loopback
      169.254.0.0/16 – link-local adresses
      224.0.0.0/4 – Multicast (Class D)
      240.0.0.0/4 – Experimental (Class E)
      255.255.255.255 – Local Broadcast




53
Special adresses
      RFC1918
      10.0.0.0/8
      172.16.0.0/12
      192.168.0.0/16




54

Más contenido relacionado

La actualidad más candente

The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecturehugo lu
 
Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Jim Geovedi
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking ExplainedThomas Graf
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 
Uip Sip Implementation Best Practices060409
Uip Sip Implementation Best Practices060409Uip Sip Implementation Best Practices060409
Uip Sip Implementation Best Practices060409Abdel-Fattah M. Hmoud
 
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SP
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SPKrzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SP
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SPPROIDEA
 
How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1n|u - The Open Security Community
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)NYversity
 
BIRD Routing Daemon
BIRD Routing DaemonBIRD Routing Daemon
BIRD Routing DaemonAPNIC
 

La actualidad más candente (20)

6.Routing
6.Routing6.Routing
6.Routing
 
12 ethernet-wifi
12 ethernet-wifi12 ethernet-wifi
12 ethernet-wifi
 
The linux networking architecture
The linux networking architectureThe linux networking architecture
The linux networking architecture
 
Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2
 
Services
ServicesServices
Services
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
Day2
Day2Day2
Day2
 
Sockets and Socket-Buffer
Sockets and Socket-BufferSockets and Socket-Buffer
Sockets and Socket-Buffer
 
Understanding iptables
Understanding iptablesUnderstanding iptables
Understanding iptables
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 
Packet Card Knowledge Transferfinal
Packet Card Knowledge TransferfinalPacket Card Knowledge Transferfinal
Packet Card Knowledge Transferfinal
 
9 ipv6-routing
9 ipv6-routing9 ipv6-routing
9 ipv6-routing
 
Uip Sip Implementation Best Practices060409
Uip Sip Implementation Best Practices060409Uip Sip Implementation Best Practices060409
Uip Sip Implementation Best Practices060409
 
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SP
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SPKrzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SP
Krzysztof Mazepa - Netflow/cflow - ulubionym narzędziem operatorów SP
 
How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)
 
Gre tunnel pdf
Gre tunnel pdfGre tunnel pdf
Gre tunnel pdf
 
BIRD Routing Daemon
BIRD Routing DaemonBIRD Routing Daemon
BIRD Routing Daemon
 
RAZORPOINT TCP/UDP PORTS LIST
RAZORPOINT TCP/UDP PORTS LISTRAZORPOINT TCP/UDP PORTS LIST
RAZORPOINT TCP/UDP PORTS LIST
 
CCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick NotesCCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick Notes
 

Destacado

An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...
An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...
An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...James Salter
 
12 Multiple Access
12 Multiple Access12 Multiple Access
12 Multiple AccessAhmar Hashmi
 
03 internetworking
03 internetworking03 internetworking
03 internetworkingbajulusiraj
 
24 Congestion Control_and_Quality_of_Service
24 Congestion Control_and_Quality_of_Service24 Congestion Control_and_Quality_of_Service
24 Congestion Control_and_Quality_of_ServiceAhmar Hashmi
 
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTPAhmar Hashmi
 
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_FirewallsAhmar Hashmi
 
H.264 nal and RTP
H.264 nal and RTPH.264 nal and RTP
H.264 nal and RTPYoss Cohen
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolMohd Arif
 
Fragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseFragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseAbhilasha Lahigude
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram ProtocolPeter R. Egli
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networkingicanhasfay
 

Destacado (18)

30 Cryptography
30 Cryptography30 Cryptography
30 Cryptography
 
RTP
RTPRTP
RTP
 
An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...
An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...
An Efficient Reactive Model for Resource Discovery in DHT-Based Peer-to-Peer ...
 
29 Multimedia
29 Multimedia29 Multimedia
29 Multimedia
 
12 Multiple Access
12 Multiple Access12 Multiple Access
12 Multiple Access
 
03 internetworking
03 internetworking03 internetworking
03 internetworking
 
RTP
RTPRTP
RTP
 
24 Congestion Control_and_Quality_of_Service
24 Congestion Control_and_Quality_of_Service24 Congestion Control_and_Quality_of_Service
24 Congestion Control_and_Quality_of_Service
 
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP23 Process to_Process_Delivery_UDP_TCP_and_SCTP
23 Process to_Process_Delivery_UDP_TCP_and_SCTP
 
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls
32 Security in_Internet_IP_SEC_SSL/TLS_PGN_VPN_and_Firewalls
 
Rtsp
RtspRtsp
Rtsp
 
H.264 nal and RTP
H.264 nal and RTPH.264 nal and RTP
H.264 nal and RTP
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Fragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseFragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed Database
 
Ipv4
Ipv4Ipv4
Ipv4
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 

Similar a Networking

L2 over l3 ecnaspsulations (english)
L2 over l3 ecnaspsulations (english)L2 over l3 ecnaspsulations (english)
L2 over l3 ecnaspsulations (english)Motonori Shindo
 
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...Afnic
 
L3HA-VRRP-20141201
L3HA-VRRP-20141201L3HA-VRRP-20141201
L3HA-VRRP-20141201Manabu Ori
 
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Yongyoon Shin
 
SDN/OpenFlow #lspe
SDN/OpenFlow #lspeSDN/OpenFlow #lspe
SDN/OpenFlow #lspeChris Westin
 
Zenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks
 
شرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNAشرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNADawood Aqlan
 
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...IRJET Journal
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法Naoto MATSUMOTO
 
2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdfRandyDookheran2
 
2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdfRandyDookheran1
 
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014Nat Morris
 
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDesigning an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDr. Mohieddin Moradi
 

Similar a Networking (20)

L2 over l3 ecnaspsulations (english)
L2 over l3 ecnaspsulations (english)L2 over l3 ecnaspsulations (english)
L2 over l3 ecnaspsulations (english)
 
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...
JCSA2013 06 Luigi Iannone - Le protocole LISP ("Locator/Identifier Sepration ...
 
Rfc1723
Rfc1723Rfc1723
Rfc1723
 
06 tk 1073 network layer
06   tk 1073 network layer06   tk 1073 network layer
06 tk 1073 network layer
 
Quic illustrated
Quic illustratedQuic illustrated
Quic illustrated
 
L3HA-VRRP-20141201
L3HA-VRRP-20141201L3HA-VRRP-20141201
L3HA-VRRP-20141201
 
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1
 
SDN/OpenFlow #lspe
SDN/OpenFlow #lspeSDN/OpenFlow #lspe
SDN/OpenFlow #lspe
 
CCNA
CCNACCNA
CCNA
 
The Universal Dataplane
The Universal DataplaneThe Universal Dataplane
The Universal Dataplane
 
Clase 4. Routing IP.pdf
Clase 4. Routing IP.pdfClase 4. Routing IP.pdf
Clase 4. Routing IP.pdf
 
Zenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOS
 
شرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNAشرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNA
 
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法
 
Multipath TCP Upstreaming
Multipath TCP UpstreamingMultipath TCP Upstreaming
Multipath TCP Upstreaming
 
2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf
 
2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf2) Routing Protocol Basis.pdf
2) Routing Protocol Basis.pdf
 
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
 
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-basedDesigning an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
Designing an 4K/UHD1 HDR OB Truck as 12G-SDI or IP-based
 

Más de Marian Marinov

Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingMarian Marinov
 
Basic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsBasic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsMarian Marinov
 
Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Marian Marinov
 
Introduction and replication to DragonflyDB
Introduction and replication to DragonflyDBIntroduction and replication to DragonflyDB
Introduction and replication to DragonflyDBMarian Marinov
 
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMessage Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMarian Marinov
 
How to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfHow to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfMarian Marinov
 
How to survive in the work from home era
How to survive in the work from home eraHow to survive in the work from home era
How to survive in the work from home eraMarian Marinov
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefsMarian Marinov
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd Marian Marinov
 
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storageComparison of-foss-distributed-storage
Comparison of-foss-distributed-storageMarian Marinov
 
Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Marian Marinov
 
Securing your MySQL server
Securing your MySQL serverSecuring your MySQL server
Securing your MySQL serverMarian Marinov
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKMarian Marinov
 
Challenges with high density networks
Challenges with high density networksChallenges with high density networks
Challenges with high density networksMarian Marinov
 
SiteGround building automation
SiteGround building automationSiteGround building automation
SiteGround building automationMarian Marinov
 
Preventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingPreventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingMarian Marinov
 
Managing a lot of servers
Managing a lot of serversManaging a lot of servers
Managing a lot of serversMarian Marinov
 
Let's Encrypt failures
Let's Encrypt failuresLet's Encrypt failures
Let's Encrypt failuresMarian Marinov
 

Más de Marian Marinov (20)

Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & Logging
 
Basic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsBasic presentation of cryptography mechanisms
Basic presentation of cryptography mechanisms
 
Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?
 
Introduction and replication to DragonflyDB
Introduction and replication to DragonflyDBIntroduction and replication to DragonflyDB
Introduction and replication to DragonflyDB
 
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMessage Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
 
How to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfHow to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdf
 
How to survive in the work from home era
How to survive in the work from home eraHow to survive in the work from home era
How to survive in the work from home era
 
Managing sysadmins
Managing sysadminsManaging sysadmins
Managing sysadmins
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefs
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd
 
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storageComparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
 
Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?
 
Securing your MySQL server
Securing your MySQL serverSecuring your MySQL server
Securing your MySQL server
 
Sysadmin vs. dev ops
Sysadmin vs. dev opsSysadmin vs. dev ops
Sysadmin vs. dev ops
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDK
 
Challenges with high density networks
Challenges with high density networksChallenges with high density networks
Challenges with high density networks
 
SiteGround building automation
SiteGround building automationSiteGround building automation
SiteGround building automation
 
Preventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingPreventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel tracking
 
Managing a lot of servers
Managing a lot of serversManaging a lot of servers
Managing a lot of servers
 
Let's Encrypt failures
Let's Encrypt failuresLet's Encrypt failures
Let's Encrypt failures
 

Networking

  • 1. Компютърни Мрежи и GNU/Linux Мариян Маринов Боян Кроснов mm@yuhu.biz boyan@krosnov.org SiteGround Ltd. http://boyan.krosnov.org/
  • 2. Кой съм аз  Независим консултант  За свободен софтуер, свобода на словото, достъпа до информация и т.н, както и Хуманизъм, Neurodiversity, Freedom of thought, etc.  CCIE #8701 (Януари 2002) 2
  • 3. Увод  Какво са компютърните мрежи? 3
  • 4. Лекцията  Мрежови модели  Често срещани протоколи  Стандартни организации  Инструменти и примери  Хардуер – Дънни платки – Мрежови карти  Ethernet,VLANs  IP, UDP, TCP 4
  • 7. Моделите OSI IETF IEEE Session/Transport 7
  • 8. 8
  • 11. Стандартни организации IETF W3C 3GPP ... IETF ... IETF ... IETF IETF IETF IETF IEEE ITU IETF ... IEEE ITU ... 11
  • 12. Стандартни организации  Internet Engineering Task F (www.ietf.org)  Institute of Electrical and Electronics Engineers - IEEE (www.ieee.org)  International Telecommunication Union - ITU (www.itu.int)  3GPP (www.3gpp.org)  x Forum, y Alliance, z Foundation (WiMax Forum, WiMedia Alliance, XMPP Standards Foundation, и т.н.)  Повечето широко-използвани протоколи в мрежите са свободни 12
  • 17. Мрежова топология Fully connected star 17
  • 21. 21
  • 25. lspci gaia:~# lspci 00:00.0 Host bridge: Intel Corporation E7320 Memory Controller Hub (rev 0c) 00:00.1 Class ff00: Intel Corporation E7320 Error Reporting Registers (rev 0c) 00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 0c) 00:03.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A1 (rev 0c) 00:1c.0 PCI bridge: Intel Corporation 6300ESB 64-bit PCI-X Bridge (rev 02) 00:1d.0 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev 02) 00:1d.1 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev 02) 00:1d.4 System peripheral: Intel Corporation 6300ESB Watchdog Timer (rev 02) 00:1d.5 PIC: Intel Corporation 6300ESB I/O Advanced Programmable Interrupt Controller (rev 02) 00:1d.7 USB Controller: Intel Corporation 6300ESB USB2 Enhanced Host Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 0a) 00:1f.0 ISA bridge: Intel Corporation 6300ESB LPC Interface Controller (rev 02) 00:1f.1 IDE interface: Intel Corporation 6300ESB PATA Storage Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 6300ESB SMBus Controller (rev 02) 03:01.0 RAID bus controller: 3ware Inc 9550SX SATA-RAID 04:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27) 04:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet (rev 03) 25
  • 27. Ethernet PHY  Диференциални сигнали  Усукани двойки  Категории кабели – 5/5е (100MHz) – 6/6а (250/500 MHz) 27
  • 29. Ethernet PHY 100BASE-TX 29
  • 30. Crossed cable  бо,о,бз,с,бс,з,бк,к – тип B  1,2 <-> 3,6 и обратно 30
  • 31. 31
  • 32. Hub, Switch, Router Repeater 32
  • 33. Hub, Switch, Router Layer 1 devices: Repeater Hub (multi-port repeater) Media converter LAN Card 33
  • 34. Hub, Switch, Router Bridge NET 1 NET 2 C8:60:00:C5:BD:ED 40:B3:95:5B:0F:6F 00:27:22:56:6A:B3 14:DA:E9:09:6F:2B 00:0E:08:D3:CC:07 00:27:22:56:72:21 00:0E:08:D3:CC:05 B8:8D:12:08:01:9A 34
  • 35. Hub, Switch, Router Layer 1 devices: Bridge Switch (multi-port bridge) LAN Card 35
  • 38. Ethernet рамка  Network order / Machine order ...  битове 6 и 7 от MAC адреса ...  max 150 Kpps @ 100Mbps 38
  • 40. Switch  Принцип на работа  Broadcast/Multicast/Unicast  Unknown Unicast 40
  • 41. VLANs and Trunking  IEEE 802.1q / 802.1p  Принцип на работа  Native(untagged) VLAN  Tag Protocol ID (TPID) 0x8100  3-bit priority, 12-bit VLAN ID 41
  • 42. Ethernet Q&A 42
  • 44. Relation to other protocols +------+ +-----+ +-----+ +-----+ |Telnet| | FTP | | TFTP| ... | ... | +------+ +-----+ +-----+ +-----+ | | | | +-----+ +-----+ +-----+ | TCP | | UDP | ... | ... | +-----+ +-----+ +-----+ | | | +--------------------------+----+ | Internet Protocol & ICMP | +--------------------------+----+ | +---------------------------+ | Local Network Protocol | +---------------------------+ Protocol Relationships 44 Figure 1.
  • 45. Model of operation Application Application Program Program / Internet Module Internet Module Internet Module / / LNI-1 LNI-1 LNI-2 LNI-2 / / Local Network 1 Local Network 2 Transmission Path Figure 2 45
  • 47. IP Header 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| IHL |Type of Service| Total Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identification |Flags| Fragment Offset | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Time to Live | Protocol | Header Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Example Internet Datagram Header 47 Figure 4.
  • 49. IP Subnetting  CIDR (RFC1519 ’93 -> RFC4632) notation addrs/block # blocks -------- ----------- ---------- n.n.n.n/32 1 4294967296 "host route" n.n.n.x/31 2 2147483648 "p2p link" n.n.n.x/30 4 1073741824 n.n.n.x/29 8 536870912 n.n.n.x/28 16 268435456 n.n.n.x/27 32 134217728 n.n.n.x/26 64 67108864 n.n.n.x/25 128 33554432 n.n.n.0/24 256 16777216 legacy "Class C" n.n.x.0/23 512 8388608 n.n.x.0/22 1024 4194304 n.n.x.0/21 2048 2097152 n.n.x.0/20 4096 1048576 49
  • 50. IP Subnetting n.n.x.0/19 8192 524288 n.n.x.0/18 16384 262144 n.n.x.0/17 32768 131072 n.n.0.0/16 65536 65536 legacy "Class B" n.x.0.0/15 131072 32768 n.x.0.0/14 262144 16384 n.x.0.0/13 524288 8192 n.x.0.0/12 1048576 4096 n.x.0.0/11 2097152 2048 n.x.0.0/10 4194304 1024 n.x.0.0/9 8388608 512 n.0.0.0/8 16777216 256 legacy "Class A" x.0.0.0/7 33554432 128 x.0.0.0/6 67108864 64 x.0.0.0/5 134217728 32 x.0.0.0/4 268435456 16 x.0.0.0/3 536870912 8 x.0.0.0/2 1073741824 4 x.0.0.0/1 2147483648 2 0.0.0.0/0 4294967296 1 "default route" 50
  • 52. 52
  • 53. Special adresses  0.0.0.0 – uninitialized endpoint  0.0.0.0/8 – local network (not 0/0)  127.0.0.0/8 – loopback  169.254.0.0/16 – link-local adresses  224.0.0.0/4 – Multicast (Class D)  240.0.0.0/4 – Experimental (Class E)  255.255.255.255 – Local Broadcast 53
  • 54. Special adresses  RFC1918  10.0.0.0/8  172.16.0.0/12  192.168.0.0/16 54