ELEC-4120 Tutorial - 3 - WordPress.com

15
ELEC-4120 Tutorial - 3 Manohar Kuse ([email protected] ) http://ihome.ust.hk/~mpkuse/

Transcript of ELEC-4120 Tutorial - 3 - WordPress.com

Page 1: ELEC-4120 Tutorial - 3 - WordPress.com

ELEC-4120Tutorial - 3Manohar Kuse ([email protected])http://ihome.ust.hk/~mpkuse/

Page 2: ELEC-4120 Tutorial - 3 - WordPress.com

Recap

● IPv4● IPv6● NAT

Be sure to review the questions we did in the tutorials.

Page 3: ELEC-4120 Tutorial - 3 - WordPress.com

How Internet works - Annimationhttp://www.youtube.com/watch?v=HOaIqQAeaik

Page 4: ELEC-4120 Tutorial - 3 - WordPress.com

Some cool stuff

1. Ping 2. Traceroute

a. ‘tracert’ on dos b. ‘traceroute’ on linux

Page 5: ELEC-4120 Tutorial - 3 - WordPress.com

Data Packets

● Formatted unit of data● Carried by Packet switched network

Page 6: ELEC-4120 Tutorial - 3 - WordPress.com

Formatted….

Complete info : http://en.wikipedia.org/wiki/Network_packet#Example:_IP_packetsBrief explanation in this tutorial

Page 7: ELEC-4120 Tutorial - 3 - WordPress.com

Easy ones

● Version - IPv4, IPv6● Total length● Identification● Source IP● Destination IP

Page 8: ELEC-4120 Tutorial - 3 - WordPress.com

Sometimes Packets get corrupted

● Brief explanation of Parity Check method to recover from error

● Other ways○ Parity○ Cyclic Redundancy Check (CRC)○ 2s Complements

http://www.youtube.com/watch?v=BxCmS7NIDR4

Page 9: ELEC-4120 Tutorial - 3 - WordPress.com

Formatted….

● Now you understand “header checksum”

Page 10: ELEC-4120 Tutorial - 3 - WordPress.com

Time to live

● TTL● Safeguard - to finish off wrongly directed

packets● The TTL count is decremented (by 1) each

time a packet goes through a router

Page 11: ELEC-4120 Tutorial - 3 - WordPress.com

Protocols

● TCP● UDP● ICMP

Page 12: ELEC-4120 Tutorial - 3 - WordPress.com

Reliable data transfer

● Packets sometime get lost● Sometimes packets arrive out of order● need to recover from losses

○ Checksum○ Retransmissions

Page 13: ELEC-4120 Tutorial - 3 - WordPress.com

TCP

● Guarantees○ Error free data packet delivery○ In order delivery

Suitable for applications which require error free data delivery

Page 14: ELEC-4120 Tutorial - 3 - WordPress.com

UDP

● Connectionless● No connection establishment● No acknowledgement and/or retransmission

Suitable for application which can tolerate some loss of packets

Page 15: ELEC-4120 Tutorial - 3 - WordPress.com

Comparison