Компютърни Мрежи и GNU/Linux Боян Кроснов Мариян Маринов SiteGround LLC.

Slides:



Advertisements
Similar presentations
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
Advertisements

Introduction to Networking Andrew Hamilton TJ IT Technician.
Networks and TCP/IP Part 2. PORTS Ports – What and Why are They?  Typically: Computers usually have only one network access point to the internet 
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 14 TCP/IP and Routing Part #1 Unix System Administration.
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Chapter 3 Review of Protocols And Packet Formats
Transport Layer TCP and UDP IS250 Spring 2010
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
CIS 193A – Lesson12 Monitoring Tools. CIS 193A – Lesson12 Focus Question What are the common ways of specifying network packets used in tcpdump, wireshark,
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 12 Transmission Control Protocol (TCP) Basics.
TCP/IP Networking sections 13.2,3,4,5 Road map: TCP, provide connection-oriented service IP, route data packets from one machine to another (RFC 791) ICMP,
Packet Analysis with Wireshark
Semester 2v2 Chapter 9:  TCP/IP.
Chabot College ELEC Ports (Layer 4).
TCP/IP Illustracted Vol1. 제목 : IP Routing ( 수 ) 한 민 규
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 4 TCP/IP Overview Connecting People To Information.
CDPA 網管訓練 駭客任務 2 Ethernet Switching ARP, IP, LAN, Subnet IP Header, Routing ICMP
TCP/IP Basic Theory V1.2. Course Outline OSI model and layer function TCP/IP protocol suite Transfer Control Protocol Internet Protocol Address Resolution.
Networking Colin Alworth May 26, Quick Review IP address: four octets Broadcast addresses –IP addresses use all 1’s for the host bits, and whatever.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Introduction to internetworking Part Two.
TCP/IP Protocols Contains Five Layers
Hands-On Ethical Hacking and Network Defense Chapter 2 TCP/IP Concepts Review.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
ECE453 – Introduction to Computer Networks Lecture 17 – Top – Down Approach (A Review)
NAT Network Address Translation. Reading CNI – pp Port Mapping LA – pp NAT.
Data Networks ISOTDAQ 2012
Cisco Networking Academy S2 C9 TCP/IP. ensure communication across any set of interconnected networks Stack components such as protocols to support file.
Internet Protocol Formats. IP (V4) Packet byte 0 byte1 byte 2 byte 3 data... – up to 65 K including heading info Version IHL Serv. Type Total Length Identifcation.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Telecommunications Essentials John R. Durrett July 5, 2005.
Hands-On Ethical Hacking and Network Defense
Net7: IP 協定 Internet Protocol 授課教師:雲林科技大學 張慶龍 老師.
A network primer (or refresher) Henning Schulzrinne (based on slides from Kurose/Ross)
or call for office visit,
Network Basics CS490 - Security in Computing Copyright © 2005 by Scott Orr and the Trustees of Indiana University.
Hands-On Ethical Hacking and Network Defense Chapter 2 TCP/IP Concepts Review Last modified
Компютърни Мрежи и GNU/Linux Боян Кроснов Мариян Маринов SiteGround LLC.
UDP : User Datagram Protocol 백 일 우
1 OSI Reference Model Benefits Standardizes interfaces Facilitates modular engineering Ensures interoperable technology Accelerates evolution Simplifies.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Packet Switch Network Server client IP Ether IPTCPData.
Victoria Manfredi September 13, 2016.
© 2003, Cisco Systems, Inc. All rights reserved.
Wireshark Tutorial KUAS, Hao-Xiang Gu.
Introduction to TCP/IP networking
Introduction to TCP/IP
or call for office visit, or call Kathy Cheek,
or call for office visit,
Internet Protocol Formats
TCP/IP Transmission Control Protocol / Internet Protocol
IP : Internet Protocol Surasak Sanguanpong
Design of a Diversified Router: November 2006 Demonstration Plans
Internet Protocol Formats
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
Review of Internet Protocols Network Layer
32 bit destination IP address
Presentation transcript:

Компютърни Мрежи и GNU/Linux Боян Кроснов Мариян Маринов SiteGround LLC

2 Лекцията Преговор Linux Networking Stack Команди – IP ARP протокол Команди – ARP Sniffers TCP и UDP протоколи Команди – TCP и UDP

3 Преговор

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

5

6 Протоколи

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

8 Команди lspci ip link ethtool, mii-tool ifconfig; /proc/net/dev vconfig; /proc/net/vlan

9 Demo setup

10

11 NIC

12 Linux kernel networking stack

13 Linux kernel

14 Команди - IP ipcalc ip addr; ifconfig ip route; route ping; fping traceroute; mtr /etc/network/interfaces (Debian) /etc/sysconfig/network-scripts (Redhat)

ARP Protocol RFC826: Ethernet Address Resolution Protocol: Or Converting Network Protocol Addresses to 48.bit Ethernet Address for Transmission on Ethernet Hardware. D. Plummer. November (Format: TXT=21556 bytes) (Also STD0037) (Status: STANDARD)

Команди - ARP ip neigh, arp arping

ARP Table gw:~# arp -n Address HWtypeHWaddress Flags MaskIface ether00:0B:DB:4A:BD:8ACeth ether00:0E:A6:6A:B1:12Ceth ether00:14:BF:2C:94:5ACeth ether00:13:02:4F:78:16Ceth ether00:1C:BF:0F:24:F9Ceth (incomplete) eth ether00:17:0F:AD:E1:C0Ceth ether00:19:66:34:B1:24CMeth0

MAC address table Switch# show mac-address-table vlan vlan mac address type learn age ports * a00.326c dynamic Yes 5 Gi1/29 * f402.60e5 dynamic Yes 0 Gi1/3 * a00.35c0 dynamic Yes 5 Gi1/3 * a00.31dc dynamic Yes 5 Gi1/3 * c7f6.11e3 dynamic Yes 0 Gi1/3 * a dynamic Yes 5 Gi1/3 * a00.350c dynamic Yes 5 Gi1/3 * a dynamic Yes 5 Gi1/3...

20 Sniffers Wireshark, tshark tcpdump

21 Демонстрация

22 Q&A

23 TCP и UDP протоколи UDP (RFC768 J.Postel 1980) – ports TCP (RFC793 J.Postel 1981) – Session establishment and tear-down – Window procedure – Slow start and congestion avoidance (VJ 1988) Berkeley sockets (1983) – The Berkeley socket API forms the de facto standard abstraction for network sockets. Most other programing languages use an interface similar to the C API. // wikipedia

24 Протоколи

UDP header | Source | Destination | | Port | Port | | | | | Length | Checksum | | | data octets User Datagram Header Format

TCP Header | Source Port | Destination Port | | Sequence Number | | Acknowledgment Number | | Data | |U|A|P|R|S|F| | | Offset| Reserved |R|C|S|S|Y|I| Window | | | |G|K|H|T|N|N| | | Checksum | Urgent Pointer | | Options | Padding | | data | TCP Header Format

27 Linux kernel networking stack

28 TCP и UDP команди telnet tcptraceroute netstat, fuser, lsof hping nc - TCP/IP swiss army knife /etc/inetd.conf

29 Q&A

Extra slides

iptables Netfilter firewall connection tracking filter, nat, mangle, raw

Linux router ip route zebra/quagga XORP, Vyatta

Linux bridge (switch) brctl ebtables

IP Fragmentation, MTU, PMTU-D MTU concept TCP MSS DF (Don't Fragment) bit ICMP type 3 (destination unreachable), code 4 (fragmentation needed but don't-fragment bit set)