Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Cisco Public
Objectives
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Quality of service
Security
Cisco Public
Cisco Public
Common protocols
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Summary
Cisco Public
Cisco Public
Cisco Public
Objectives
Describe the structure of a network, including the devices and media that are necessary for successful communications.
Explain the function of protocols in network communications. Explain the advantages of using a layered model to describe network functionality.
Describe the role of each layer in two recognized network models: The TCP/IP model and the OSI model.
Describe the importance of addressing and naming schemes in network communications.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Network Structure
Define the elements of communication
3 common elements of communication message source
the channel
message destination
Define a network
data or information networks capable of carrying many different types of communications
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Network Structure
Describe how messages are communicated
Data is sent across a network in small chunks called segments
Cisco Public
Network Structure
Define the components of a network
Network components hardware software
Cisco Public
Network Structure
Cisco Public
Network Structure
Identify the role of an intermediary device in a data network and be able to contrast that role with the role of an end device Role of an intermediary device provides connectivity and ensures data flows across network
Cisco Public
Network Structure
Define network media and criteria for making a network media choice
Network media this is the channel over which a message travels
Cisco Public
Network Types
Define Local Area Networks (LANs)
- A network serving a home, building or campus is considered a Local Area Network (LAN)
Cisco Public
Network Types
Define Wide Area Networks (WANs)
- LANs separated by geographic distance are connected by a network known as a Wide Area Network (WAN)
Cisco Public
Network Types
Define the Internet
The internet is defined as a global mesh of interconnected networks
Cisco Public
Network Types
Describe network representations
Cisco Public
Cisco Public
Cisco Public
A standard is a process or protocol that has been endorsed by the networking industry and ratified by a standards organization
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
A reference model
provides a common reference for maintaining consistency within all types of network protocols and services.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Summary
Cisco Public
Cisco Public
Cisco Public
Objectives
Define the application layer as the source and destination of data for communication across networks.
Explain the role of protocols in supporting communication between server and client processes. Describe the features, operation, and use of well-known TCP/IP application layer services (HTTP, DNS, SMTP).
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Compare and contrast client server networking with peer-to-peer networking and peer-to-peer applications
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Summary
Cisco Public
Cisco Public
Cisco Public
Data stream
IP
Ethernet, WAN technologies
Cisco Public
Cisco Public
Cisco Public
Transport layer
Enables multiple applications on the same device to send data over the network at the same time Provides reliability and error handling if required. (Checks if data has arrived and re-sends if it has not.)
Cisco Public
Cisco Public
Fast
Cisco Public
TCP
Sets up a connection with the receiving host before sending data. Checks if segments have arrived and resends if they were lost. (Reliability) Sorts segments into the right order before reassembling the data. Sends at a speed to suit the receiving host. (Flow control) But this takes time and resources.
Cisco Public
UDP
Connectionless. Does not contact receiving host before sending data. Does not check if data arrived and does not re-send. Does not sort into the right order. Best effort.
Low overhead.
Used for VoIP, streaming video, DNS, TFTP
Cisco Public
Cisco Public
Port numbers
Used by TCP and UDP as a form of addressing. Identifies the application and the conversation.
Common application protocols have default port numbers e.g. 80 for HTTP 110 for POP3 mail 20/21 for FTP 23 for Telnet
Cisco Public
Port numbers
Client PC uses port 49152. Chosen at random. Remembers this to identify application and conversation.
Client PC uses port 80. Identifies HTTP as application. Requesting a web page.
Cisco Public
Port numbers
The Internet Assigned Numbers Authority (IANA) assigns port numbers. Well Known Ports (0 to 1023) - Reserved for common services and applications such as HTTP, FTP, Telnet, POP3, SMTP. Registered Ports (1024 to 49151) - Assigned to user processes or applications. Can be dynamically selected by a client as its source port. Dynamic or Private or Ephemeral Ports (49152 to 65535) Can be assigned dynamically to client applications when initiating a connection.
Cisco Public
Netstat
Shows protocol, local address and port number, foreign address and port number.
Cisco Public
TCP has sequence numbers in the segment headers. It re-assembles segments in the right order.
UDP has no sequence numbers. It assembles datagrams in the order they arrive.
Cisco Public
Connection oriented
TCP sets up a connection between end hosts before sending data The two hosts go through a synchronization process to ensure that both hosts are ready and know the initial sequence numbers. This process is the Three-way handshake When data transfer is finished, the hosts send signals to end the session.
Cisco Public
Cisco Public
Terminating connection
Cisco Public
Expectational acknowledgement
TCP checks that data has been received. The receiving host sends an acknowledgement giving the sequence number of the byte that it expects next.
Cisco Public
Window size
Controls how many bytes are sent before an acknowledgement is expected.
Cisco Public
Lost segments
Send bytes 1 to 2999 Receive 1 to 2999, send ACK 3000
Cisco Public
Flow control
The initial window size is agreed during the three-way handshake. If this is too much for the receiver and it loses data (e.g. buffer overflow) then it can decrease the window size. If all is well then the receiver will increase the window size.
Cisco Public
TCP can re-assemble segments in the right order if they arrive out of sequence
UDP has less overhead so is faster
Cisco Public
Summary
Hierarchical Design model addresses performance, scalability, maintainability & manageability issues.
Traffic Analysis is used to monitor network performance. Hierarchical Design Model is composed of 3 layers:
Access Distribution
Core
Switches selected for each layer must meet the needs of each hierarchical layer as well as the needs of the business.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Cisco Public
Cisco Public
TCP, UDP
Packet
Frame Bits
IP
Ethernet, WAN technologies
Cisco Public
Cisco Public
Purpose of layer 3
Decide how to get the data from source to destination, then route it.
Cisco Public
Layer 3 protocol
A layer 3 protocol such as IP version 4 must: Provide an addressing scheme to identify networks and individual hosts Encapsulate a segment from layer 4 into a packet and include addresses Direct the packet across one or many networks to the destination host Decapsulate (remove the packet header) and give the segment to layer 4.
Cisco Public
Cisco Public
IP characteristics
Designed with low overhead for speed it does only what it needs to do. Connectionless does not set up connection with destination before sending packet. Best effort (unreliable) no guarantee of safe delivery, no checking or resending.
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
IP header
Cisco Public
Splitting up networks
Fully switched network, each device has its own bandwidth. You could have hundreds of computers. Why split it up? Too large to manage efficiently Too much broadcast traffic - congestion Too many addresses for switches to remember
Lack of security
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Use a router
Limits broadcasts Can provide security Addressing scheme based on networks - hierarchical
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Default gateway
Each PC is configured with an IP address and a default gateway. The default gateway is the IP address of a router port on the same network as the PC. It is the routers job to handle messages to other networks.
Cisco Public
Hops
A packet may pass through many routers on its journey. The trip from one router to the next is called a hop and the next router is called the next hop router. Each router looks at the IP address in the packet header and decides what to do with the packet next.
Cisco Public
Cisco Public
Directly connected
The networks of the routers own interfaces go into the routing table.
Cisco Public
Other networks
Routes to other networks can be configured by an administrator (static routes) Or they can be learned from another router using a routing protocol (dynamic routes) A router can have a default route. Packets for unknown networks go on this route instead of being dropped.
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Routing protocols
Routers learn routes from each other and put them in their routing tables. A routing protocol is the set of rules they use to swap information. These routes are dynamic routes
Cisco Public
Static routes
Entered by administrator
Dynamic routes
Learned from other routers Start the protocol then it runs by itself
Cisco Public
Summary
Hierarchical Design model addresses performance, scalability, maintainability & manageability issues.
Traffic Analysis is used to monitor network performance. Hierarchical Design Model is composed of 3 layers:
Access Distribution
Core
Switches selected for each layer must meet the needs of each hierarchical layer as well as the needs of the business.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Cisco Public
Cisco Public
IP addressing works at
OSI model layer 3 TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical
HTTP, FTP, TFTP, SMTP etc
TCP, UDP
Packet
Frame Bits
IP
Ethernet, WAN technologies
Cisco Public
Addressing topics
Binary and decimal Types of IP addresses
Assigning addresses
Network part and subnet masks Calculating addresses
Cisco Public
187
89 Convert to decimal
00110100
01010101 11001111
Cisco Public
248 to binary
128 1 64 1 32 1 16 1 8 1 4 0 2 0 1 0
120 -64 56
56 -32 24
24 -16 8
Cisco Public
187 to binary
128 1 64 0 32 1 16 1 8 1 4 0 2 1 1 1
187 -128 59
59 -32 27
27 -16 11
11 -8 3
3 -2 1
Cisco Public
89 to binary
128 0 64 1 32 0 16 1 8 1 4 0 2 0 1 1
89 -64 25
25 -16 9
9 -8 1
Cisco Public
00110100 to decimal
128 0 64 0 32 1 32 16 1 16 8 0 4 1 4 2 0 1 0
32 +16 + 4 52
52
Cisco Public
01010101 to decimal
128 0 64 1 64 32 0 16 1 16 8 0 4 1 4 2 0 1 1 1
64 +16 + 4 + 1 85
85
Cisco Public
11001111 to decimal
128 1 128 64 1 64 32 0 16 0 8 1 8 4 1 4 2 1 2 1 1 1
128 + 64 + 8 + 4 + 2 + 1 207
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
207
187
89
10111011
01011001
Convert to decimal
00110100
01010101 11001111
52
85 207
Cisco Public
IPv4 address
192. 11000000 168. 10101000 21. 00010101 17 00010001
octet
octet
octet
octet
network part
host part
Cisco Public
Cisco Public
Logical AND
192. 11000000 168. 10101000 21. 00010101 17 00010001
255.
11111111 192. 11000000
255.
11111111 168. 10101000
255.
11111111 21. 00010101
0
00000000 0 00000000
Cisco Public
3 types of address
Every network has: Network address the first one
Cisco Public
Classful addressing
A
10. 17. 53. 60
network part
host part
16. 38. 201
172.
network part
host part
192.
168.
21.
17
network part
host part
Cisco Public
Classful addressing
Easy to work out but very wasteful. Routers and hosts still assume class subnet masks by default Class A Class B /8 /16 255.0.0.0 255.255.0.0
Class C
/24
255.255.255.0
Cisco Public
Classless addressing
Any suitable prefix can be used We (and devices) need to know what the prefix is.
Cisco Public
16.
00010000
0.
00000000
0
00000000
Cisco Public
16.
00010000
0.
00000000
0
00000000
Cisco Public
16.
00010000
0.
00000000
0
00000000
Cisco Public
Cisco Public
Cisco Public
Calculating addresses
A host has IP address 192.168.1.70/24 What is the subnet mask?
Cisco Public
Subnet mask
Network Broadcast First host Last host
Cisco Public
192.168.1.70/24
Last octet binary Host 01000110 Last octet decimal 70 Full 192.168.1.70
Subnet mask
Network Broadcast First host Last host
00000000
00000000 11111111 00000001 11111110
0
0 255 1 254
255.255.255.0
192.168.1.0 192.168.1.255 192.168.1.1 192.168.1.254
Cisco Public
Calculating addresses
A host has IP address 192.168.1.70/26 What is the subnet mask?
Cisco Public
Subnet mask
Network Broadcast First host Last host
Cisco Public
192.168.1.70/26
Last octet binary 01000110 Last octet decimal 70 Full 192.168.1.70
Host
Subnet mask
Network Broadcast First host Last host
11000000
01000000 01111111 01000001 01111110
192
64 127 65 126
255.255.255.192
192.168.1.64 192.168.1.127 192.168.1.65 192.168.1.126
Cisco Public
Calculating addresses
A host has IP address 192.168.1.70/28 What is the subnet mask?
Cisco Public
Subnet mask
Network Broadcast First host Last host
Cisco Public
192.168.1.70/28
Last octet binary 01000110 Last octet decimal 70 Full 192.168.1.70
Host
Subnet mask
Network Broadcast First host Last host
11110000
01000000 01001111 01000001 01001110
240
64 79 65 78
255.255.255.240
192.168.1.64 192.168.1.79 192.168.1.65 192.168.1.78
Cisco Public
Cisco Public
Private IP addresses
Unrestricted use on private networks. Not routed across the Internet. 10.0.0.0 10.255.255.255 (10.0.0.0/8) 172.16.0.0 172.31.255.255 (172.16.0.0/20) 192.168.0.0 192.168.255.255 (192.168.0.0/24)
Cisco Public
Public IP addresses
Routed over the Internet Master holder is IANA
Cisco Public
Special addresses
0.0.0.0 all addresses in default route. Hosts cannot be given addresses starting 0. 127.0.0.1 is loopback. Hosts cannot be given addresses starting 127. 240.0.0.0 and higher reserved for experimental purposes.
Cisco Public
Cisco Public
Addressing hosts
Static addressing address is configured by an administrator Servers, printers, routers, switches need static addresses Dynamic addressing address is allocated automatically by DHCP by leasing addresses from a pool Dynamic addressing is best for workstations
Cisco Public
Blocks of addresses
Use Network address User hosts Address range 192.168.1.0 192.168.1.1-127 Summary 192.168.1.0/25
Servers
Peripherals Network devices Router Broadcast
192.168.1.128 - 191
192.168.1.192 - 223 192.168.1.224 - 253 192.168.1.254 192.168.1.255
192.168.1.128/26
192.168.1.192/27 192.168.1.224/27
Cisco Public
Subnetting 192.168.1.0/24
Last octet binary
Address Subnet mask 192.168.1.0 255.255.255.0 00000000 00000000
Subnet mask
Cisco Public
Subnetting 192.168.1.0/24
Borrow 2 bits from host part, give to network part, /26
Addresses 192.168.1.0 192.168.1.64 192.168.1.128 192.168.1.192 255.255.255.192 00000000 01000000 10000000 11000000 11000000
Subnet mask
Cisco Public
Subnetting 192.168.1.0/24
Borrow 3 bits from host part, give to network part, /27
Addresses 192.168.1.0 192.168.1.32 192.168.1.64 192.168.1.96 192.168.1.128 192.168.1.160 192.168.1.192 192.168.1.224 255.255.255.224 00000000 00100000 01000000 01100000 10000000 10100000 11000000 11100000 11100000
Subnet mask
Cisco Public
Subnetting 192.168.1.0/24
Borrow 4 bits from host part, give to network part, /28
192.168.1.0 192.168.1.16 192.168.1.32 192.168.1.48 192.168.1.64 192.168.1.80 192.168.1.96 192.168.1.112 192.168.1.128 192.168.1.144 192.168.1.160 192.168.1.176 192.168.1.192 192.168.1.208 192.168.1.224 192.168.1.240 11110000 00000000 00010000 00100000 00110000 01000000 01010000 01100000 01110000 10000000 10010000 10100000 10110000 11000000 11010000 11100000 11110000
And so on
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Subnetting 192.168.1.0/24
Every time you borrow another bit you: Double the number of subnets
Cisco Public
Subnetting 192.168.1.0/24
Bits borrowed No of networks Prefix 1 2 /25 2 4 /26 3 8 /27 4 16 /28 5 32 /29 6 64 /30
128
126 128
64
62 192
32
30 224
16
14 240
8
6 248
4
2 252
Cisco Public
Address space
Make a spreadsheet or table with numbers 0 to 255 Link to show table
Cisco Public
Subnet chart
Cisco Public
Subnetting
There are many subnet calculators, but you will not be able to use them in exams. Start with the biggest subnet and work down to the smallest. Make sure the subnets are valid sizes with valid subnet masks.
Cisco Public
Traceroute sends a series of messages so that each router along the path replies. You get a list of addresses of all the routers.
Cisco Public
IPv6
Development started in 1990s because of concerns about IPv4 addresses running out A whole new protocol suite not just layer 3 Uses 128-bit hierarchical addressing, written using hexadecimal Simpler header Integrated security authentication, privacy Quality of service mechanisms
Cisco Public
Subnetting - visual
Chapter 6
Cisco Public
Prefix /24
Three octets in network part, last octet in host part.
All possible numbers 0 255 in last octet belong in the same network. Network address yellow Broadcast address blue
Subnet mask 255.255.255.0
Cisco Public
Prefix /25
First bit of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.128
Cisco Public
Prefix /26
2 bits of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.192
Cisco Public
Prefix /27
3 bits of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.224
Cisco Public
Prefix /28
4 bits of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.240
Cisco Public
Prefix /29
5 bits of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.248
Cisco Public
Prefix /30
6 bits of fourth octet taken into network part.
For every bit taken, double number of networks, halve their size. Network address yellow Broadcast address blue
Subnet mask 255.255.255.252
Cisco Public
Variable length
/27
/26
Cisco Public
Summary
Hierarchical Design model addresses performance, scalability, maintainability & manageability issues.
Traffic Analysis is used to monitor network performance. Hierarchical Design Model is composed of 3 layers:
Access Distribution
Core
Switches selected for each layer must meet the needs of each hierarchical layer as well as the needs of the business.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Cisco Public