3. Microsoft Word - Agenda
• 5 min Warm up with a game
• 5 min Introduction teacher demonstrate revision and essential
question
• 5 min Activity 1 – video 5 min
20 min Activity 3 – teacher demonstrate
• 5 min Activity 4 video 5 min
• 10 min Activity 5 - teacher demonstrate
• 5 min Activity 6– video 5 min
• 10 min Activity 5 - teacher demonstrate
• 5 min Activity 5 - video 5 min
• 5 min Reflection
• 5 min Home work
14. 14
Internet Addressing
•IP address is a 32 bit integer
•Refers to interface rather than host
•Consists of network and host portions
• Enables routers to keep 1 entry/network instead of 1/host
•Class A, B, C for unicast
•Class D for multicast
•Class E reserved
•Classless addresses
•Written as 4 octets/bytes in decimal format
•E.g. 134.79.16.1, 127.0.0.1
15. 15
Internet Class-based addresses
• Class A: large number of hosts, few networks
• 0nnnnnnn hhhhhhhh hhhhhhhh hhhhhhhh
• 7 network bits (0 and 127 reserved, so 126 networks), 24 host bits (>
16M hosts/net)
• Initial byte 1-127 (decimal)
• Class B: medium number of hosts and networks
• 10nnnnnn nnnnnnnn hhhhhhhh hhhhhhhh
• 16,384 class B networks, 65,534 hosts/network
• Initial byte 128-191 (decimal)
• Class C: large number of small networks
• 110nnnnn nnnnnnnn nnnnnnnn hhhhhhhh
• 2,097,152 networks, 254 hosts/network
• Initial byte 192-223 (decimal)
• Class D: 224-239 (decimal) Multicast [RFC1112]
• Class E: 240-255 (decimal) Reserved
16. 16
Subnets
•A subnet mask is applied to the host bits to
determine how the network is subnetted, e.g. if
the host is: 137.138.28.228, and the subnet
mask is 255.255.255.0 then the right hand 8
bits are for the host (255 is decimal for all bits
set in an octet)
•Host addresses of all bits set or no bits set,
indicate a broadcast, i.e. the packet is sent to all
hosts.
18. 18
Creative IP address allocation
• Class A addresses 64 – 127 reserved
• Handle on individual basis
• Class B only assigned given a demonstrated need
• Class C
• divided up into 8 blocks allocated to regional authorities
• 208-223 remains unassigned and unallocated
• Three main registries handle assignments
• APNIC – Asia & Pacific www.apnic.net
• ARIN – N. & S. America, Caribbean & sub-Saharan Africa
www.arin.net
• RIPE – Europe and surrounding areas www.ripe.net
20. 20
Transmission Control Protocol -TCP
• RFC 768 & host requirements RFC 1122
• Reliable stream transport
• Connection oriented (full duplex virtual circuit)
• Conceptually place call, two ends communicate to agree on details
• After agreeing application notified of connection
• During transfer, ends communicate continuously to verify data received
correctly
• When done, ends tear down the connection
• If UDP is like regular mail, TCP is like phone call
• Provides buffering and flow control
• Takes care of lost packets, out of order, duplicates, long delays
• Isolates application program from network details
• Jargon
• Segment = TCP packet
• Socket= source (address + port) + destination (address + port)
21. 21
TCP layering
• To ID connection need:
• Source: (address, port) AND Destination: (address, port)
• Only need one port on host to allow multiple connections, since each connection will
have different (host, port) at other end
• E.g. single host can serve multiple telnet connections
• Passive open: application contacts OS & indicates will accept incoming
connection, OS assigns port and listens
• Active open: application requests OS to connect to an (host, port)
IP
Port 1
TCP UDP
Port 2 Port 1 Port 2
Demux on
IP protocol
Demux on
Port number
Network
Transport
App.
IP port 6
22. 22
TCP – providing reliability
• Positive acknowledgement (ACK) with retransmission
• Sender keeps record of each packet sent
• Sender awaits an ACK
• Sender starts timer when sends packet
Send pkt 1
Rcv ACK 1
Send pkt 2
Rcv ACK 2
Network messages
Rcv pkt 1
Rcv pkt 2
Send ACK 2
Send ACK 1
Sender site Receiver site
Time
23. 23
TCP – simple lost packet recovery
Send pkt 1
Start timer
ACK normally
arrives
Rcv ACK 1
Network messages
Pkt should arrive
Rcv pkt 1
Send ACK 1
ACK should be sent
Sender site Receiver site
Loss
Timer expires
Retransmit pkt 1
start timer
24. 24
TCP – improving performance
• BUT simple ACK protocol wastes bandwidth since it must delay sending next
packet until it gets ACK
• Use sliding window
• Sender can send 4 packets of data without ACK
• When sender gets ACK then can send another packet
• Window = unacknowledged packets/bytes
• Keeps timer for each packet
1 2 3 4 5 6 7 8 …
Initial window of 4 packets
1 2 3 4 5 6 7 8 …
Window slides
Packets successfully sent
Packets sent, awaiting ACK
Packets to be sent
25. 25
What do we learn from Ping “testing”
• Host reachable
• Host may respond to ping but not be running services
• Round trip timing
• Lost packets
• Packet reordering duplicate packets
• Example:
13cottrell@noric05:~>ping -c 4 lhr.comsats.net.pk
PING lhr.comsats.net.pk (210.56.16.10) from 134.79.125.205 : 56(84) bytes of data.
64 bytes from lhr.comsats.net.pk (210.56.16.10): icmp_seq=0 ttl=242 time=716.962 msec
64 bytes from lhr.comsats.net.pk (210.56.16.10): icmp_seq=1 ttl=242 time=720.375 msec
64 bytes from lhr.comsats.net.pk (210.56.16.10): icmp_seq=2 ttl=242 time=725.907 msec
64 bytes from lhr.comsats.net.pk (210.56.16.10): icmp_seq=3 ttl=242 time=710.734 msec
--- lhr.comsats.net.pk ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/mdev = 710.734/718.494/725.907/5.566 ms
26. How to Test TCP IP and UDP
TCP/IP Protocol Testing
Applications : Qnavigator
Press here
for on line
Press here
for off line
OR
28. Installing the Network Settings - Configuring Network Settings
EX. Windows 7 Manual TCP_IP
Configuration
Press here
for on line
Press here
for off line
OR
33. Packet tracer , Download it , Install it
, use it by designing network.
Then be a clever network admin.
34. CCNA
Certified Computer Network Administrator
this Certificate from Cisco company
www.netacade.com
Exam costs 3000 L.E. in
CISCO centers
But through online exam is
free of charge
40. network in a factory select the
topology which you will use
and list the configuration of
hosts, IP addresses , network
sub netmask IP and broadband
IP