Escolar Documentos
Profissional Documentos
Cultura Documentos
ITS Training Services 23 Willard Building University Park, PA 16802 814-863-9522 itstraining@psu.edu http://its.psu.edu/training/ Version 07/28/2011
Statement of Non-Discrimination
The Pennsylvania State University is committed to the policy that all persons shall have equal access to programs, facilities, admission, and employment without regard to personal characteristics not related to ability, performance, or qualifications as determined by University policy or by state or federal authorities. It is the policy of the University to maintain an academic and work environment free of discrimination, including harassment. The Pennsylvania State University prohibits discrimination and harassment against any person because of age, ancestry, color, disability or handicap, national origin, race, religious creed, sex, sexual orientation, or veteran status. Discrimination or harassment against faculty, staff, or students will not be tolerated at The Pennsylvania State University. Direct all inquiries regarding the nondiscrimination policy to the Affirmative Action Director, The Pennsylvania State University, 328 Boucke Building, University Park, PA 16802-5901; Tel 814-865-4700/V, 814-863-1150/TTY.
Objectives
Part I 7 Layers of the OSI Model
Adjacent and Peer Communication The Encapsulation Process The 7 Layers
Characteristics Devices Protocols
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets, Subnetting, and Summarization Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Objectives
Part I 7 Layers of the OSI Model
Adjacent and Peer Communication The Encapsulation Process The 7 Layers
Characteristics Devices Protocols
Media Layers
Layer 3 Network Layer 2 Data-Link Layer 1 - Physical
Objectives
Part I 7 Layers of the OSI Model
Adjacent and Peer Communication The Encapsulation Process The 7 Layers
Characteristics Devices Protocols
Encapsulation
The process by which one layer packages its data in headers with fields that adjacent and peer layers understand, in order to facilitate DE-capsulation of data on subsequent systems
Header
Series of fields describing PDU contents Handling instructions and payload information Relevant to both adjacent and peer layers
Objectives
Part I 7 Layers of the OSI Model
Adjacent and Peer Communication The Encapsulation Process The 7 Layers
Characteristics Devices Protocols
Physical devices
Switches, bridges, NIC cards
Protocols at layer 2
Ethernet, 802.11
Protocols at Layer 1
10BaseT, 100BaseTX, T1 Media specifications
10
End of Part I
Questions on the 7 layers of the OSI model?
11
Introduction to TCP/IP
Branch of DoD ARPA
Advanced Research Projects Agency
Military implications
Support
Error correction Failover Scaleable Vendor-neutral Still works when part is destroyed
TCP/IP
TCP/IP
The set of communications protocols that implement the protocol stack on which the Internet and most commercial networks run
- Wikipedia
12
TCP/IP
TCP/IP protocol stack
The suite of protocols in its entirety
Name is derived from two of the many protocols in the TCP/IP protocol suite
TCP Transmission Control Protocol IP Internet Protocol
A Few Definitions
internet (an internet)
Any network using TCP/IP
13
Byte
8 bits
Octet
8 bits (1 byte) of an IP address Separated by decimals
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets, Subnetting, and Summarization Transport Layer: TCP and UDP Configuring TCP/IP in Windows
14
Elements of an IP Address
4 octets in an IP address:
A.B.C.D
32 bits total
15
1000 0000 ? 1100 0000 ? 1000 0001 ? 1000 1000 ? 0000 0100 ?
? ? ? ? ?
16
IP Address Overview
Address divided into network and host portions Five classes of IP addresses: A E
Determined by the first octet
140.211.166.198 10001100.11010011.10100110.11000110
How?
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets, Subnetting, and Summarization Transport Layer: TCP and UDP Configuring TCP/IP in Windows
17
Class B:
16 network bits First octet is 128 191; binary starts with 10
Class C:
24 network bits First octet begins with 192 223; binary starts with 110
The fewer the network bits, the more hosts and subnets* possible
5 Classes of IP Addresses
Class D: Reserved for multicast
First octet is 224 239; Binary starts with 1110
18
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets, Subnetting, and Summarization Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Private IP addresses
Set aside for internal use only Alleviate problem of limited addresses
19
172.16.0.0 172.31.255.255
172.16.0.0 / 12 16 adjoining class B networks
192.168.0.0 192.168.255.255
192.168.0.0 / 24 256 adjacent class C networks
Broadcast Address
Uses all 1s for the host portion of the IP address Represents every address in a particular network or subnet 192.168.1.255 / 24
20
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets, Subnetting, and Summarization Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Subnets
A logical group of addresses within a network If College Ave was a network 100 block might be a particular subnet Allen to Atherton might be a subnet Hosts are defined by the prefix portion of the IP address in common Length of the prefix is defined by a secondary address This is the subnet mask Example: 255.255.255.224
21
22
Subnetting review
Borrows bits from the host portion to create a subnet address The more bits borrowed, the more subnets can be created And the fewer hosts for each subnet All hosts on a common subnet will have a common subnet address
You Do One
A company has 12 departments and wants to create a subnet for each department The smallest department has 7 employees; the largest has 14 They have been assigned 220.10.20.0 What should they do?
23
Questions To Ask:
12 Departments; 7 12 employees each 220.10.20.0 What class address is this? How many host bits do I need to borrow to get the number of subnets that I need? Will this leave enough hosts in each subnet to accommodate the departmental need?
The answer
Borrow 4 bits:
220.10.20.0 / 28 220.10.20.0 255.255.255.240 Subnets: 24 = 16; 16 2 = 14 subnets Hosts: 24 = 16
24
Route Summarization
Addresses must be carefully allocated, hierarchically, ahead of time Useful for Classless Inter-Domain Routing (CIDR)
Subnet masks are passed as well as the network address
Limits the size of routing tables Decreases network overhead Lowers processing time for routers and firewalls
Route Summarization
For example:
10.32.35.0 and 10.32.45.0 and 10.32.55.0 Can be summarized as: 10.32.32.0/19
If all networks exist via the same port One entry to process, rather than three
25
Route Summarization
How its done:
Convert each network to binary
00001010.00100000.00100011.00000000 00001010.00100000.00101101.00000000 00001010.00100000.00110111.00000000
You Do One
146.186.20.0 146.186.21.0 146.186.26.0 146.186.30.0 00010100 00010101 00011010 00011110
146.186.16.0 / 20
26
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets and Subnetting Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Flow control
Windowing (window size) Sequence numbers
Error correction
Checksum Acknowledgments
27
TCP
Each segment of data has a header with a sequence number and is acknowledged Window: the number of segments that can be exchanged per acknowledgement Using sequence numbers, data is reassembled in its original form
28
29
Ipconfig /all
MAC, IP, Subnet mask, WINS, DNS, Gateway information
30
Remember
A segment is a PDU PDUs provide services to adjacent layers as well as peers
31
32
More on Ports
There are 16 bits for source and destination ports (65,536)
Well-known Ephemeral e.g. HTTP usually uses port 80 Can use ANY port
Well-known ports
Well-known ports are 0 1023 A few examples:
FTP (21), SSH (22), Telnet (23), SMTP (25), DNS (53), HTTP (80), POP3 (110), HTTPS (443) The protocol defines that these services listen on these ports by default
33
Ephemeral Ports
Ephemeral ports range from 1,024 49,151 Temporary ports used to maintain a session Example: HTTP communication Requires two IPs and two ports Source & destination IPs are known Destination port is known (listen on port 80) Source port? Uses an ephemeral port Destination uses this for its destination port When the session is over, the port is recovered
34
35
36
Objectives
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets and Subnetting Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Configuring TCP / IP
Start View Network Connections Right-click the network adapter Properties Select Internet Protocol Version 4 (TCP/IPv4) Properties
37
Configuring TCP / IP
IP address, subnet mask, gateway, DNS Automatic vs DHCP All IPs unique
common network portion common subnet mask common gateway
Source: Juniper.net
38
Benefits of IPv6
Vastly more address space Simplified header decreases overhead Labeling of traffic flows Authentication of traffic
IPv6 Notation
Format
32 hex characters - 8 groups of 4 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
39
40
Troubleshooting TCP/IP
Command prompt
Ping to test reachability
Problem Isolation
Can you reach other sites? Can other systems reach the site? Can you reach local computers? Can you reach the local router? Can the local router reach the site?
Summary
Part I 7 Layers of the OSI Model
Adjacent and Peer Communication The Encapsulation Process The 7 Layers
Services at each layer Devices at each layer Protocols at each layer
41
Summary
Part II TCP/IP Primer
Format of IP Addresses Classes of IP Addresses Types of IP Addresses Subnets and Subnetting Transport Layer: TCP and UDP Configuring TCP/IP in Windows
Resources
Technology Training Resources ITS Training Services Web site: http://its.psu.edu/training
Register for training Request group training Take video tutorials View handouts and files Join the Training News list
Online Community: http://technologytraining.psu.edu Technology Help Resources ITS Help Desk: helpdesk@psu.edu or 814-865-HELP ITS Knowledge Base: http://kb.its.psu.edu
42
Technology Training Provided by ITS Training Services 23 Willard Building University Park, PA 16802 Phone: (814) 863-9522 Fax: (814) 865-3556 itstraining@psu.edu
http://its.psu.edu/training/