Experiential Learning Workshop on Basics of Network Layer

Size: px
Start display at page:

Download "Experiential Learning Workshop on Basics of Network Layer"

Transcription

1 Experiential Learning Workshop on Basics of Network Layer July 03, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in

2 Resources & Acknowledgements Resources Learning.html Articles in ACCS Journal Slides Example web pages, and programs Acknowledgements: Computer Networking: Kurose, Ross!2

3 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!3

4 Day 2: Basics of HTTP Overview: HTTP and Versions Request and Response Format, Basic headers Handson-1: Analyze HTTP headers, status codes HTTP persistent and non-persistent connections Apache config support for persistent connections Handson-2: Configuring persistent connections Web caching, HTTP headers for cache control Handson-3: Cachecing, E-tags HTTP cookies mechanisms Secure cookies, sub-domains, HTTP only cookies Handson-4: using cookies, secure cookies Summary!4

5 Day 3: Basics of Transport Layer Overview: Transport layer, requirements Connection less and connection oriented transport Handson-1: Analyze TCP 4-tuple and UDP 2-tuple Pseudo headers in TCP/UDP Concurrent communications : UDP and TCP Handson-2: Using data with same checksum TCP and UDP Error control, TCP flags Handson-3: Connection Mgmt, Queues, and states TCP Streaming, Reliability misnomer, UDP message boundaries Handson-4: TCP Streams and UDP messages Summary!5

6 Day 4: Basics of Web Security Overview: HTTPS protocol Server certificate and server authentication Mixed content and browser warnings Locks icons and HTTP Status Handson-1: HTTPS website with mixed content MITM attack and ARP spoofing MITM with browser and information stealing Understanding HSTS, CSP Handson-2: Implementing ARP Spoofing Summary!6

7 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!7

8 NETWORK Novel Experience of Theoretical, Working, Operational, and Realized Knowledge Acronym!8

9 The Web Today Total num of hostnames and active sites (June 2018) src: category/web-server-survey/ Number of sitenames and active sites Sitenames: 1.6+B, Active sites: 177+M Web server vendors June 2018: Apache: 25%, MS IIS : 32%, Nginx: 23% Web Clients: GUI browsers, text browsers Communication protocols HTTP, HTTPS Extension of HTTP: WebDAV, CarDAV, CalDAV!9

10 Setup Requirement Internet 1 3 Switch/ Router 2 Ha: /24 Hb: /24!10

11 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!11

12 Tools wireshark wsug_html_chunked/ Enables viewing of bytes sent/recd on network Capture and Display filters Graphical, built on tcpdump TCP session display Changing UI options tcpdump: command line capture tool -o output file -c packet count -i interface names!12

13 !13

14 !14

15 L2 L3 L4 L7!15

16 Wireshark: UI Options Color coding Time format Packet reordering (in display) Defining protocol Using display filter Following TCP Stream Capture packets with proper capture filter Needed for analyzing packet layers!16

17 Wireshark capture filters Traffic between A and either B or C host A and \( B or C\) Traffic between A any host except B host A and not B Capture web traffic port 80 Capture ICMP traffic (e.g. ping, traceroute) icmp Capture web traffic port 80 Capture traffic for a subnet net /24!17

18 Wireshark Display Filters Source IP filter ip.src == Destination IP filter ip.dst == ip.dst!= Protocol filter http icmp Port number tcp.port eq 80 TCP Seq tcp.stream eq 1!18

19 Saving file Saving selected packets Reading from file Time display format Statistics Other options Wireshark - Misc!19

20 tcpdump Command line interface ASCII content Capture full packet Capture filters Output file Ethernet frame display!20

21 tcpdump - Usage Examples To capture between two specified hosts and save $ sudo tcpdump -n -i eth0 -s 0 w file.pcap host <A> and host <B> To capture 100 packets received from host X $ sudo tcpdump -n -i eth0 -c 100 src <X> To capture first 256 bytes and display in ASII $ sudo tcpdump -n -i eth0 -s 256 -A To capture with (link level) ethernet headers $ sudo tcpdump -n -i eth0 -e!21

22 Application Software Apache Web Server ( Configurations (/etc/apache2/apache2.config) /etc/apache2/sites-available/000-default.conf Directives Logging DocumentRoot Loadable Modules Virtual Host Firefox browser Options for configurations: about:config Nginx server, IIS server.!22

23 Tools wget: wget [options] <url> Options -d # to debug headers -O <file> # to save with different name -i <urlsfile> # list of urls in a file -c # to resume to broken download -b # run in background --limit-rate=500k --header=<headers> --http-user=user --http-password=.. -mk # mirroring with local link conversion!23

24 Tools - nc nc (netcat) Works as both layer client & server Supports both TCP and UDP Supports both IPv4 and IPv6 Common use Simple TCP/UDP based data transfer Shell script based HTTP clients and servers Network daemon testing SOCKS or HTTP ProxyCommand for ssh!24

25 Tools - nc nc usage -l acting as server -u use UDP -i for interval based transmission (lines) -k for keeping server up after connection close Examples nc <servername> <server port> # client nc -l port # server To transfer files Server: nc -l <port> >file.dat Client: cat <file> nc <servername> <port>!25

26 Usage: nc Terminating connection after idle time nc -w 10 <server> <port> # timeout 10s Don t use with server option Providing remote shell access on server to a client Create a FIFO file rm -f /tmp/f; mkfifo /tmp/f run nc on server by executing the shell cat /tmp/f /bin/bash -i 2>&1 nc -l 2222 > /tmp/f!26

27 Tools - ping ping (Packet Inter Network Groper) Checking reachability ping hostname -i changing packet interval -c packet count -f flooding the network -q quite mode -s change packet size -W response timeout!27

28 Usage: ping $ ping -c 10 PING ( ): 56 data bytes 64 bytes from : icmp_seq=0 ttl=47 time= ms 64 bytes from : icmp_seq=1 ttl=47 time= ms 64 bytes from : icmp_seq=2 ttl=47 time= ms 64 bytes from : icmp_seq=3 ttl=47 time= ms 64 bytes from : icmp_seq=4 ttl=47 time= ms 64 bytes from : icmp_seq=5 ttl=47 time= ms 64 bytes from : icmp_seq=6 ttl=47 time= ms 64 bytes from : icmp_seq=7 ttl=47 time= ms 64 bytes from : icmp_seq=8 ttl=47 time= ms 64 bytes from : icmp_seq=9 ttl=47 time= ms ping statistics packets transmitted, 10 packets received, 0.0% packet loss round-trip min/avg/max/stddev = / / / ms!28

29 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!29

30 Hands-On 1 nc : chat between two systems Using both UDP and TCP ping: understand delay and response. check google and yahoo reachability. check your favourite website reachability wget: Downline contents of a website for offline use. wireshark Access smvdu.ac.in and check capture. chat (nc) and analyze capture traceroute a site and analyze capture!30

31 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!31

32 Network layer service models: Network Architecture Service Model Bandwidth Guarantees? Loss Order Timing Congestion feedback Internet best effort none no no no no (inferred via loss) Source: Kurose, Ross: Computer Networking, A Top Down Approach!32

33 message segment datagram frame H l H n H n H t H t H t M M M M source application transport network link physical Encapsulation Source: Kurose, Ross: Computer Networking, A Top Down Approach Source: Kurose, Ross: Computer Networking, A Top Down Approach link physical switch H l H n H n H t H t H t M M M M destination application transport network link physical H l H n H n H t H t M M network link physical H n H t Source: Kurose, Ross: Computer Networking, A Top Down Approach M router!33

34 TCP segment structure URG: urgent data (generally not used) ACK: ACK # valid PSH: push data now (generally not used) RST, SYN, FIN: connection estab (setup, teardown commands) Internet checksum (as in UDP) head len 32 bits source port # dest port # sequence number acknowledgement number not used checksum U A P R S F application data (variable length) receive window Urg data pointer options (variable length) counting by bytes of data (not segments!) # bytes rcvr willing to accept Source: Kurose, Ross: Computer Networking, A Top Down Approach!34

35 Wireshark Capture Filters Connection setup tcp[tcpflags] & (tcp-syn)!= 0 Connection teardown only tcp[tcpflags] & (tcp-fin)!= 0 Connection reset only tcp[tcpflags] & (tcp-rst)!= 0!35

36 UDP: segment header source port # dest port # length 32 bits application data (payload) checksum UDP segment format length, in bytes of UDP segment, including header includes pseudo header no connection establishment (which can add delay) simple: no connection state at sender, receiver small header size no congestion control: UDP can blast away as fast as desired Source: Kurose, Ross: Computer Networking, A Top Down Approach!36

37 IP datagram format IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) ver head. len 16-bit identifier time to live type of service upper layer 32 bits flgs length 32 bit source IP address fragment offset header checksum total datagram length (bytes) for fragmentation/ reassembly upper layer protocol to deliver payload to how much overhead? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead 32 bit destination IP address options (if any) data (variable length, typically a TCP or UDP segment) e.g. timestamp, record route taken, specify list of routers to visit. Source: Kurose, Ross: Computer Networking, A Top Down Approach!37

38 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!38

39 TCP Data Computation of TCP payload length IP packet length (2 bytes from offset of 2 bytes) IP header length (LSB 4 bits, first byte, *4) TCP header length (12th byte, MSB 4 bits, *4) HTTP connections with some data 'port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2))!= 0) TCP Conncetion analysis UDP communication analysis!39

40 The Internet network layer host, router network layer functions: transport layer: TCP, UDP routing protocols path selection RIP, OSPF, BGP forwarding table ICMP protocol error reporting router signaling network layer IP protocol addressing conventions datagram format packet handling conventions link layer Source: Kurose, Ross: Computer Networking, A Top Down Approach physical layer

41 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!41

42 Handson 2: Analysis of TCP/IP Layers Use wireshark to analyze TCP/IP layers Transport layer: Use nc to communicate between two hosts Analyse TCP headers IP Layer: Analyze IP headers in web packets & nc chat!42

43 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!43

44 IP fragmentation, reassembly network links have MTU (max.transfer size) - largest possible link-level frame different link types, different MTUs large IP datagram divided ( fragmented ) within net one datagram becomes several datagrams reassembled only at final destination IP header bits used to identify, order related fragments reassembly fragmentation: in: one large datagram out: 3 smaller datagrams Source: Kurose, Ross: Computer Networking, A Top Down Approach!44

45 IP fragmentation, reassembly example: 4000 byte datagram MTU = 1500 bytes length =4000 ID =x fragflag =0 one large datagram becomes several smaller datagrams offset = bytes in data field length =1500 ID =x fragflag =1 offset =0 offset = 1480/8 length =1500 ID =x fragflag =1 offset =185 length =1040 ID =x fragflag =0 offset =370 Source: Kurose, Ross: Computer Networking, A Top Down Approach!45

46 Example : Re-fragmentation Re-fragmentation? Src: Forouzan - Data Communication and Networking!46

47 Example : Re-fragmentation Re-fragmentation Src: Forouzan - Data Communication and Networking!47

48 IP fragmentation, reassembly Questions A pkt has arrived with an M bit of 0. Is this the first, last of middle segment? Can we say if pkt was fragmented? A pkt has arrived with an M bit of 1. Is this the first, last of middle segment? Can we say if pkt was fragmented? A pkt has arrived with an M bit of 1 and offset value 0. Is this the first, last of middle segment? Can we say if pkt was fragmented? A pkt has arrived with offset value 100, and HLEN value of 5, value of total length field is 100. What are the numbers of the first byte and last byte?!48

49 Path MTU Discovery It is a mechanism It is not a protocol Mechanism Intermediate router informs the sender error : destination not reachable code : Fragmentation required!49

50 IP Fragmentation IP Fragmentation is avoided in general Path MTU (PMTU) discovery is used to find the max segment size for a given path Fragment is a costly process especially for NAT address is configured by default in any enterprise!50

51 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!51

52 ICMP: internet control message protocol used by hosts & routers to communicate networklevel information error reporting: unreachable host, network, port, protocol echo request/reply (used by ping) network-layer above IP: ICMP msgs carried in IP datagrams ICMP message: type, code plus first 8 bytes of IP datagram causing error Source: Kurose, Ross: Computer Networking, A Top Down Approach Query Messages: Type Code description 0/8 0 Echo reply/request (ping) 13/14 0 Timestamp request/reply 10/9 0 Router solicitation/advt Error Reporting Messages 3 0 dest. network unreachable 3 1 dest host unreachable 3 2 dest protocol unreachable 3 3 dest port unreachable 3 6 dest network unknown 3 7 dest host unknown 4 0 source quench (congestion control - not used) 5 0 Redirect 11 0 TTL expired 12 0 bad IP header!52

53 NAT: network address translation Motivation: local network uses just one IP address as far as outside world is concerned: range of addresses not needed from ISP: just one IP address for all devices can change addresses of devices in local network without notifying outside world can change ISP without changing addresses of devices in local network devices inside local net not explicitly addressable, visible by outside world (a security plus)!53

54 NAT: network address translation NAT router must: outgoing datagrams: replace (source IP address, port #) of every outgoing datagram to (NAT IP address, new port #)... remote clients/servers will respond using (NAT IP address, new port #) as destination addr remember (in NAT translation table) every (source IP address, port #) to (NAT IP address, new port #) translation pair incoming datagrams: replace (NAT IP address, new port #) in dest fields of every incoming datagram with corresponding (source IP address, port #) stored in NAT table!54

55 Address Allocation for private networks RFC 1918 One Class A network (2 24 ) 16 Class B Networks (2 20 ) 256 Class C Networks (2 16 )!55

56 NAT: network address translation 2: NAT router changes datagram source addr from , 3345 to , 5001, updates table 2 NAT translation table WAN side addr LAN side addr , , 3345 S: , 5001 D: , Protocol 1: host sends datagram to , 80 S: , 3345 D: , S: , 80 D: , : reply arrives dest. address: , 5001 S: , 80 D: , : NAT router changes datagram dest addr from , 5001 to , 3345 Source: Kurose, Ross: Computer Networking, A Top Down Approach !56

57 NAT: network address translation 16-bit port-number field: simultaneous connections on one NAT address! 65,535 NAT is controversial: routers should only process up to layer 3 violates end-to-end argument NAT possibility must be taken into account by app designers, e.g., P2P applications address shortage should instead be solved by IPv6 gets complicated with IP fragmentation!57

58 NAT traversal problem Client wants to connect to server with address server address local to LAN (client can t use it as destination addr) only one externally visible NATed address: solution1: statically configure NAT to forward incoming connection requests at given port to server e.g., ( , port 2500) always forwarded to port client? NAT router Source: Kurose, Ross: Computer Networking, A Top Down Approach!58

59 ICMP Msg format ICMP Query Msg ICMP Error Msg Type Code Checksum Identifier Sequence Number RFC 792 Src: Forouzan - Computer Networking!59

60 ICMP Messages Few points to note No ICMP error msg will be generated for Response to datagram carrying an ICMP error message Fragmented datagram that is not the first fragment Datagram having multicast address Datagram having special address e.g , or !60

61 ICMP Redirect Src: Forouzan - Computer Networking!61

62 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!62

63 Handson-3: ICMP Redirect Ha: 10.x.1.1/ Switch Hc: 10.x.1.201/24 lo:10.x.3.201/24 Hb:10.x.1.101/24 lo:10.x.2.101/24 On Ha sudo ip route add 10.x.2.0/24 via 10.x sudo ip route add 10.x.3.0/24 via 10.x On Hb sudo ip route add 10.x.3.0/24 via 10.x On Hc sudo ip route add 10.x.3.0/24 via 10.x.1.101!63

64 Handson-3: PMTU Discovery Ha: 10.x.1.1/24 Hc: 10.x.3.201/ Router Hb-e1:10.x.1.101/24 Hb-e2:10.x.3.1/24 On Hb sudo ip link set dev eth2 mtu 1000 sudo sysctl -w net.ipv4.ip_forward=1 On Ha ping -c 2 s p !64

65 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!65

66 ARP - Address Resolution Protocol Packet delivery to a host requires two addresses Logical address - IP Address Physical address - MAC address Need to find mapping from logical to physical ARP is used - RFC 826 Src: Forouzan - Computer Networking!66

67 ARP - 4 cases MAC MAC Src: Forouzan - Computer Networking!67

68 ARP ARP Request and Reply ARP Request is broadcast ARP Reply is Unicast Other forms of ARP Proxy ARP (RFC 1027) Reverse ARP (RFC 903) Gratuitous ARP!68

69 Proxy ARP Router (Proxy ARP Server) replied to all requests Used when Splitting a network w/o changing hosts netmask Mobile IP Src: Forouzan - Computer Networking!69

70 Reverse ARP Reverse ARP (RARP) : RFC 903 Used for diskless stations Organization does not have enough IP Address Target as MAC Bcast does not cross the router Needs one RARP server for each subnet BOOTP Improvement over RARP Has a relay agent to forward across network Static mapping of MAC to IP Manageability issues DHCP - replaces BOOTP!70

71 Gratuitous ARP Ref: Gratuitous ARP Request Both src and dstn IP is set to that of m/c Dstn MAC is broadcast i.e. ff:ff:ff:ff:ff:ff Ordinarily, no reply will occur normally if a m/c exists, it may respond Gratuitous ARP Reply (for HA, LB, Spoofing) A reply to which no request has occurred!71

72 Gratuitous ARP Why Gratuitous ARP Help detect IP conflicts if a m/c receives G-ARP req which is its own, implies IP conflict Helps in updating other m/cs ARP tables Used in clustering solutions, when IP is moved Helps inform the switch to update its port table Each time an i/f comes up (after down), sends G-ARP!72

73 Life of Packet in Internet DNS Record: -> Q: User at host A types ping -c1 What is the packet flow?!73

74 DHCP Goal: allow host to dynamically obtain its IP address Renew its lease on address in use, on lease expiry Preferably gets the same address, not guaranteed Support for mobile users who join network Guarantee: only one address to only one client Retain DHCP client address across reboots not guaranteed Retain DHCP client configs across server reboot Must coexist with statically assigned addresses Should work with DHCP server failovers Interoperate with BOOTP relay agents!74

75 DHCP: more than IP addresses DHCP can return more than just allocated IP address on subnet: Address of first-hop router for client Name and IP address of DNS sever Network mask (indicating network versus host portion of address)!75

76 DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP UDP IP Eth Phy DHCP UDP IP Eth Phy Source: Kurose, Ross: Computer Networking, A Top Down Approach DHCP: example router with DHCP server built into router connecting laptop needs its IP address, addr of firsthop router, addr of DNS server: use DHCP vdhcp request encapsulated in UDP, encapsulated in IP, encapsulated in Ethernet v Ethernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running DHCP server v Ethernet demuxed to IP demuxed, UDP demuxed to DHCP

77 DHCP: example DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP DHCP UDP IP Eth Phy DHCP UDP IP Eth Phy Source: Kurose, Ross: Computer Networking, A Top Down Approach router with DHCP server built into router DHCP server formulates DHCP ACK containing client s IP address, IP address of first-hop router for client, name & IP address of DNS server v encapsulation of DHCP server, frame forwarded to client, demuxing up to DHCP at client v client now knows its IP address, name and IP address of DSN server, IP address of its first-hop router!77

78 DHCP: Dynamic Host Configuration Protocol DHCP overview: An extension of BOOTP mechanism Host broadcasts DHCP Discover msg [optional] DHCP server responds with DHCP Offer msg more than one server can make the offer client can choose which server to send request to Host requests IP address: DHCP Request msg DHCP server sends address: DHCP Ack msg Renewal happens with DHCP Request/ack On completion, client sends DHCP Release msg Practically not seen!78

79 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!79

80 Handson-4: ARP Understand ARP working. Know current ARP working arp -an ping H x (where H x is not in ARP table) but live See the ARP table to have Hx entry ping H y (where H y is not live) What does ARP table shows Create state ARP entry for H z not in ARP table sudo arp -s <IP Addr> <MAC Addr> ping H z No ARP Request should be transmitted. ping -b -c5 <Broadcast address>!80

81 Handson-4: Proxy ARP Ha: /22 Hc: / Router Hb-e1: /24 Hb-e2: /24 Enable proxy ARP, and routing on Hb sudo sysctl -w net.ipv4.conf.all.proxy_arp=1 sudo sysctl -w net.ipv4.ip_forward=1 Ping Hc from Ha Note down the ARP table of Ha and Hc. It should show MAC addresses of Hb!81

82 Handson-4: Gratuituos ARP Ha: /24 Hc: /24 Hb: /24 Switch Use arping to issue gratuituous ARP On Ha, assign IP of Hc sudo ip addr del /24 dev eth0 sudo ip addr add /24 dev eth0 sudo arping -A -I eth Analyze ARP table of Hb 2!82

83 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!83

84 Summary Networking tools Wireshark, nc, wget, ping Network and transport layer headers IP, TCP, UDP headers ICMP Errors ICMP redirect PMTU discovery NAT DHCP ARP!84

85 Thank You!85

Experiential Learning Workshop on Transport & IP Routing

Experiential Learning Workshop on Transport & IP Routing Experiential Learning Workshop on Transport & IP Routing July 28, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources https://rprustagi.com/elnt/experiential- Learning.html

More information

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction The Network layer Host, network layer functions: Network layer Routing protocols path selection R, OSPF, BGP Transport layer: TCP, forwarding table Link layer physical layer protocol addressing conventions

More information

Experiential Learning Workshop on Understanding Network Basics

Experiential Learning Workshop on Understanding Network Basics Experiential Learning Workshop on Understanding Network Basics June 27, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources & Acknowledgements Resources https://rprustagi.com/elnt/experiential-

More information

Experiential Learning Workshop on Basics of Transport/Network Layer

Experiential Learning Workshop on Basics of Transport/Network Layer Experiential Learning Workshop on Basics of Transport/Network Layer July 05, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources & Acknowledgements Resources https://rprustagi.com/elnt/experiential-

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Introduction (forwarding and routing) Review of queueing theory Routing algorithms Link state, Distance Vector Router design and operation IP: Internet Protocol IPv4 (datagram format, addressing,

More information

Router Architecture Overview

Router Architecture Overview Chapter 4: r Introduction (forwarding and routing) r Review of queueing theory r Router design and operation r IP: Internet Protocol m IPv4 (datagram format, addressing, ICMP, NAT) m Ipv6 r Generalized

More information

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what

More information

Network layer: Overview. Network Layer Functions

Network layer: Overview. Network Layer Functions Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network

More information

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview Chapter 4: chapter goals: understand principles behind services service models forwarding versus routing how a router works generalized forwarding instantiation, implementation in the Internet 4- Network

More information

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting Quiz v 10/30/2013 (Wednesday), 20 mins v Midterm question (available on website) v TCP basics Segment structure and fields Flow control (rwnd) Timeout interval v TCP Congestion control Phases transition

More information

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Data Communication & Networks G22.2262-001 Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Dr. Jean-Claude Franchitti New York University Computer Science

More information

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP 4.5 routing algorithms link state

More information

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097 Chair for Network Architectures and Services Prof. Carle Department for Computer Science TU München Master Course Computer Networks IN2097 Prof. Dr.-Ing. Georg Carle Christian Grothoff, Ph.D. Chair for

More information

CMPE 80N: Introduction to Networking and the Internet

CMPE 80N: Introduction to Networking and the Internet CMPE 80N: Introduction to Networking and the Internet Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 17 CMPE 80N Spring'10 1 Announcements Next class: Presentation of fun projects

More information

TDTS06: computer Networks

TDTS06: computer Networks TDTS06: computer Networks Lecturer: Johannes Schmidt The slides are taken from the book s companion Web site with few modifications: Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2015 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer 1 CPSC 826 Intering The Network Layer: Routing & Addressing Outline The Network Layer Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu November 10, 2004 Network layer

More information

Exercises: Basics of Networking II Experiential Learning Workshop

Exercises: Basics of Networking II Experiential Learning Workshop Exercises: Basics of Networking II Experiential Learning Workshop 1 General Guidelines 1. Make a team of two or three unless stated otherwise. 2. For each exercise, use wireshark capture to verify contents

More information

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane This presentation is adapted from slides produced by Jim Kurose and Keith Ross for their book, Computer Networking:

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017 Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer Reti degli Elaboratori Canale AL Prof.ssa Chiara Petrioli a.a. 2014/2015 We thank for the support material Prof. Kurose-Ross All material copyright 1996-2012 J.F Kurose and K.W.

More information

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Lecture 3. The Network Layer (cont d) Network Layer 1-1 Lecture 3 The Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router? Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets

More information

Computer Networks. (Intensive Learning Experience) July 03, 2018

Computer Networks. (Intensive Learning Experience) July 03, 2018 Computer Networks (Intensive Learning Experience) July 03, 2018 Dr. Ram P Rustagi Dept of CSE KSIT, Bangalore rprustagi@ksit.edu.in http://www.rprustagi.com!1 Executive Summary Why ILE Covering employability

More information

Network Layer: Internet Protocol

Network Layer: Internet Protocol Network Layer: Internet Protocol Motivation Heterogeneity Scale Intering IP is the glue that connects heterogeneous s giving the illusion of a homogenous one. Salient Features Each host is identified by

More information

Computer Networking Introduction

Computer Networking Introduction Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.13 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram

More information

Lecture 8. Network Layer (cont d) Network Layer 1-1

Lecture 8. Network Layer (cont d) Network Layer 1-1 Lecture 8 Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets Network

More information

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner Communication Networks (0368-3030) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner Kurose & Ross, Chapter 4 (5 th ed.) Many slides adapted from: J. Kurose & K. Ross

More information

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24 EE 586 Communication and Switching Networks (Fall 2010) Lecture 24 October 25, 2010 1-1 Announcements Midterm 1: Mean = 92.2 Stdev = 8 Still grading your programs (sorry about the delay) Network Layer

More information

Network Layer: Router Architecture, IP Addressing

Network Layer: Router Architecture, IP Addressing Network Layer: Router Architecture, IP Addressing UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross Router Architecture

More information

Exercises: Basics of Network Layer Experiential Learning Workshop

Exercises: Basics of Network Layer Experiential Learning Workshop Exercises: Basics of Network Layer Experiential Learning Workshop 1 General Guidelines 1. Make a team of two or three unless stated otherwise. 2. For each exercise, use wireshark capture to verify contents

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 4: network layer

Chapter 4: network layer Chapter 4: network layer chapter goals: understand principles behind network layer services: network layer service models forwarding versus routing how a router works routing (path selection) broadcast,

More information

Network Layer: DHCP, ICMP, NAT, IPv6

Network Layer: DHCP, ICMP, NAT, IPv6 Network Layer:, ICMP, NAT, IPv6 CS 352, Lecture 11 http://www.cs.rutgers.edu/~sn624/352-s19 Srinivas Narayana (heavily adapted from slides by Prof. Badri Nath and the textbook authors) 1 IP addresses:

More information

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Data Communications & Networks Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer Dr. Jean-Claude Franchitti New York University Computer Science Department Courant

More information

Lecture 16: Network Layer Overview, Internet Protocol

Lecture 16: Network Layer Overview, Internet Protocol Lecture 16: Network Layer Overview, Internet Protocol COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016,

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations; and

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer Computer Networking A Top-Down Approach These slides are based on the slides made available by Kurose and Ross. All material copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights

More information

Introduction to Computer Networking. Guy Leduc. Chapter 4 Network Layer: The Data Plane. Chapter 4: Network Layer Data Plane

Introduction to Computer Networking. Guy Leduc. Chapter 4 Network Layer: The Data Plane. Chapter 4: Network Layer Data Plane Introduction to Computer Networking Guy Leduc Chapter 4 Network Layer: The Data Plane Computer Networking: A Top Down Approach, 7 th edition. Jim Kurose, Keith Ross Addison-Wesley, April 2016. From Computer

More information

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing Last time Network layer Introduction forwarding vs. routing Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding tables, longest prefix matching IP: the Internet Protocol

More information

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access Last time Wireless link-layer Introduction Wireless hosts, base stations, wireless links Characteristics of wireless links Signal strength, interference, multipath propagation Hidden terminal, signal fading

More information

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 4450:427/527 - Computer Networks Spring 2017 ECE 4450:427/527 - Computer Networks Spring 2017 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.2: IP Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527 Computer Networks

More information

ICS 451: Today's plan

ICS 451: Today's plan ICS 451: Today's plan ICMP ping traceroute ARP DHCP summary of IP processing ICMP Internet Control Message Protocol, 2 functions: error reporting (never sent in response to ICMP error packets) network

More information

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 4 The Network Layer Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Network layer functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

COMP211 Chapter 4 Network Layer: The Data Plane

COMP211 Chapter 4 Network Layer: The Data Plane COMP211 Chapter 4 Network Layer: The Data Plane All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach 7 th edition Jim Kurose, Keith Ross

More information

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS 1. General (5p) a) The so-called hourglass model (sometimes referred to as a wine-glass ) has been used

More information

Network Layer: Data Plane 4-2

Network Layer: Data Plane 4-2 Network Layer: Data Plane EECS3214 18-02-25 4-1 Chapter 4: outline 4.1 Overview of Network layer data plane control plane 4.2 What s inside a router 4.3 IP: Internet Protocol datagram format fragmentation

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane Lu Su Assistant Professor Department of Computer Science and Engineering State University of New York at Buffalo Adapted from the slides of the book s authors Computer

More information

Different Layers Lecture 20

Different Layers Lecture 20 Different Layers Lecture 20 10/15/2003 Jian Ren 1 The Network Layer 10/15/2003 Jian Ren 2 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every host,

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane Chapter 4: outline 4.1 Overview of Network layer data plane control plane 4.2 What s inside a router 4.3 IP: Internet Protocol datagram format fragmentation IPv4

More information

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang CS 356: Computer Network Architectures Lecture 10: IP Fragmentation, ARP, and ICMP Xiaowei Yang xwy@cs.duke.edu Overview Homework 2-dimension parity IP fragmentation ARP ICMP Fragmentation and Reassembly

More information

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks Welcome to CS 3516: Advanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 320 Fall 2017 A-term 1 Some slides are originally from the course materials of the textbook

More information

CSC 4900 Computer Networks: Network Layer

CSC 4900 Computer Networks: Network Layer CSC 4900 Computer Networks: Network Layer Professor Henry Carter Fall 2017 Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized

More information

CSCI Computer Networks Fall 2016

CSCI Computer Networks Fall 2016 source: computer-s-webdesign.com CSCI 4760 - Computer Networks Fall 2016 Instructor: Prof. Roberto Perdisci perdisci@cs.uga.edu These slides are adapted from the textbook slides by J.F. Kurose and K.W.

More information

CS 3516: Computer Networks

CS 3516: Computer Networks Welcome to CS 3516: Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: AK 219 Fall 2018 A-term 1 Some slides are originally from the course materials of the textbook Computer

More information

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link. Internet Layers Application Application Transport Transport Network Network Network Network Link Link Link Link Ethernet Fiber Optics Physical Layer Wi-Fi ARP requests and responses IP: 192.168.1.1 MAC:

More information

Lecture 11: Middleboxes and NAT (Duct tape for IPv4)

Lecture 11: Middleboxes and NAT (Duct tape for IPv4) CSCI-351 Data communication and Networks Lecture 11: Middleboxes and NAT (Duct tape for IPv4) The slide is built with the help of Prof. Alan Mislove, Christo Wilson, and David Choffnes's class Middleboxes

More information

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address Outline IP The Internet Protocol o IP Address IP subnetting CIDR o ARP Protocol o IP Function o Fragmentation o NAT o IPv6 2 IP Address o Hostname & IP Address IP Address o The Address ping www.nu.ac.th

More information

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley. IPv4 addressing, NAT http://xkcd.com/195/ Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Some materials copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights

More information

Internetworking With TCP/IP

Internetworking With TCP/IP Internetworking With TCP/IP Application Layer Telnet Gopher NFS FTP X Win TFTP SMTP SNMP REXEC DNS RPC Transport Layer TCP UDP Network Layer ICMP IP IGMP ARP RARP Parviz Kermani NYU:Poly Link Interface

More information

HY 335 Φροντιστήριο 8 ο

HY 335 Φροντιστήριο 8 ο HY 335 Φροντιστήριο 8 ο Χειμερινό Εξάμηνο 2009-2010 Παπακωνσταντίνου Άρτεμις artpap@csd.uoc.gr 4/12/2009 Roadmap IP: The Internet Protocol IPv4 Addressing Datagram Format Transporting a datagram from source

More information

NETWORK LAYER DATA PLANE

NETWORK LAYER DATA PLANE NETWORK LAYER DATA PLANE 1 GOALS Understand principles behind network layer services, focusing on the data plane: Network layer service models Forwarding versus routing How a router works Generalized forwarding

More information

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Network Layer PREPARED BY AHMED ABDEL-RAOUF Network Layer PREPARED BY AHMED ABDEL-RAOUF Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on receiving side, delivers segments to transport

More information

COSC4377. TCP vs UDP Example Statistics

COSC4377. TCP vs UDP Example Statistics Lecture 16 TCP vs UDP Example Statistics Trace Sample UDP/TCP Ratio Total IP Traffic (pkts/bytes/flows) pkts bytes flows CAIDA OC48 08 2002 0.11 0.03 0.11 (1371M/838GB/79M) 01 2003 0.12 0.05 0.27 (463M/267GB/26M)

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer These slides are adapted from the original slides provided by J.Kurose and K.W Ross. All material copyright 1996-2012 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking:

More information

CS 457 Lecture 11 More IP Networking. Fall 2011

CS 457 Lecture 11 More IP Networking. Fall 2011 CS 457 Lecture 11 More IP Networking Fall 2011 IP datagram format IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) upper layer protocol

More information

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Layer 4: UDP, TCP, and others based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Concepts application set transport set High-level, "Application Set" protocols deal only with how handled

More information

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 5 The Network Layer part II Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it IP datagram format IP protocol version number header length (bytes) type of data max number remaining

More information

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia IP - The Internet Protocol Based on the slides of Dr. Jorg Liebeherr, University of Virginia Orientation IP (Internet Protocol) is a Network Layer Protocol. IP: The waist of the hourglass IP is the waist

More information

Introduction to Internetworking

Introduction to Internetworking Introduction to Internetworking Introductory terms Communications Network Facility that provides data transfer services An internet Collection of communications networks interconnected by bridges and/or

More information

Network Layer: Chapter 4. The Data Plane. Computer Networking: A Top Down Approach

Network Layer: Chapter 4. The Data Plane. Computer Networking: A Top Down Approach Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 13

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 13 CMPE 50/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 3 Lab3 online Due March 4 th. Introduction -2 IP addresses: how to get one? Q: how does network

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Mecanismes d Echange d Informations Chapter 4 Network Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations; and

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach Chapter 4 Network Layer: The Data Plane Part A All material copyright 996-06 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach 7 th Edition, Global Edition Jim Kurose,

More information

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management CSE/EE 461 Lecture 13 Connections and Fragmentation Tom Anderson tom@cs.washington.edu Peterson, Chapter 5.2 TCP Connection Management Setup assymetric 3-way handshake Transfer sliding window; data and

More information

Network Layer II. Getting IP addresses. DHCP client-server scenario. DHCP client-server scenario. C compiler. You writing assignment 2

Network Layer II. Getting IP addresses. DHCP client-server scenario. DHCP client-server scenario. C compiler. You writing assignment 2 Network Layer II Still chapter 4 in the textbook C compiler You writing assignment 2 Getting IP addresses ARP is the simplest way, which we will barely discuss (now) It s a mapping between Ethernet MAC

More information

History Page. Barracuda NextGen Firewall F

History Page. Barracuda NextGen Firewall F The Firewall > History page is very useful for troubleshooting. It provides information for all traffic that has passed through the Barracuda NG Firewall. It also provides messages that state why traffic

More information

ECE4110 Internetwork Programming. Introduction and Overview

ECE4110 Internetwork Programming. Introduction and Overview ECE4110 Internetwork Programming Introduction and Overview 1 EXAMPLE GENERAL NETWORK ALGORITHM Listen to wire Are signals detected Detect a preamble Yes Read Destination Address No data carrying or noise?

More information

TCP /IP Fundamentals Mr. Cantu

TCP /IP Fundamentals Mr. Cantu TCP /IP Fundamentals Mr. Cantu OSI Model and TCP/IP Model Comparison TCP / IP Protocols (Application Layer) The TCP/IP subprotocols listed in this layer are services that support a number of network functions:

More information

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015 Network Security Introduction to networks Radboud University, The Netherlands Autumn 2015 What is a (computer) network Definition A computer network is two or more computers that are connected, so that

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

RSC Part II: Network Layer 3. IP addressing (2nd part)

RSC Part II: Network Layer 3. IP addressing (2nd part) RSC Part II: Network Layer 3. IP addressing (2nd part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the companion slides to the book Computer Networking:

More information

EPL606. Internetworking. Part 2a. 1Network Layer

EPL606. Internetworking. Part 2a. 1Network Layer EPL606 Internetworking Part 2a The majority of the slides in this course are adapted from the accompanying slides to the books by Larry Peterson and Bruce Davie and by Jim Kurose and Keith Ross. Additional

More information

Internet Protocols (chapter 18)

Internet Protocols (chapter 18) Internet Protocols (chapter 18) CSE 3213 Fall 2011 Internetworking Terms 1 TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol

More information

Network Layer (4): ICMP

Network Layer (4): ICMP 1 Network Layer (4): ICMP Required reading: Kurose 4.4.3, 4.4.4 CSE 4213, Fall 2006 Instructor: N. Vlajic 2 1. Introduction 2. Network Service Models 3. Architecture 4. Network Layer Protocols in the Internet

More information

CSCE 463/612 Networks and Distributed Processing Spring 2017

CSCE 463/612 Networks and Distributed Processing Spring 2017 CSCE 46/6 Networks and Distributed Processing Spring 07 Network Layer III Dmitri Loguinov Texas A&M University April, 07 Original slides copyright 996-004 J.F Kurose and K.W. Ross Homework #4 Grading Default

More information

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall: Network Layer The Network Layer Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control 1 2 Contents 4.1.1 Connection-Oriented and Connectionless

More information

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control The Network Layer 1 Network Layer Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control 2 Contents Connection-Oriented (virtual circuit)

More information

EEC-684/584 Computer Networks

EEC-684/584 Computer Networks EEC-684/584 Computer Networks Lecture 14 wenbing@ieee.org (Lecture nodes are based on materials supplied by Dr. Louise Moser at UCSB and Prentice-Hall) Outline 2 Review of last lecture Internetworking

More information

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCE 463/612 Networks and Distributed Processing Spring 2018 CSCE 463/612 Networks and Distributed Processing Spring 2018 Network Layer II Dmitri Loguinov Texas A&M University April 3, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1 Chapter 4:

More information

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical CSE/EE 461 The Network Layer Application Presentation Session Transport Network Data Link Physical This Lecture Focus: What to do when one wire isn t big enough? Point to point link Broadcast link (Ethernet

More information

CSC358 Week 6. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

CSC358 Week 6. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved CSC358 Week 6 Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Logistics Assignment 2 posted, due Feb 24, 10pm Next week

More information

Δίκτυα Υπολογιστών ΙΙ. Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων

Δίκτυα Υπολογιστών ΙΙ. Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων Δίκτυα Υπολογιστών ΙΙ Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων Course information introductory course in computer networking course materials: text:

More information