Академический Документы
Профессиональный Документы
Культура Документы
2Cisco
Application Layer
Gives end-user applications access to network resources Where is it on my computer?
Workstation or Server Service in MS Windows
3
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Presentation Layer
Provides common data formatting between communicating devices Components make sure the receiving station can read the transferred data
3
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Session Layer
Allows applications to maintain an ongoing session Example NetBIOS Where is it on my computer?
Workstation and Server Service (MS) Windows Client for NetWare (NetWare)
3
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Transport Layer
Provides reliable data delivery Its the TCP in TCP/IP Receives info from upper layers and segments it into packets Can provide error detection and correction
3
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Network Layer
Provides networkwide addressing and a mechanism to move packets between networks (routing) Responsibilities:
Network addressing Routing
Examples:
IP from TCP/IP IPX from IPX/SPX
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Network Addresses
Network-wide addresses Used to transfer data across subnets Used by routers for packet forwarding Example:
IP Address
Where is it on my computer?
TCP/IP Software
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Physical Layer
Determines the specs for all physical components
Cabling Interconnect methods (topology / devices) Data encoding (bits to waves) Electrical properties
Examples:
Ethernet (IEEE 802.3) Token Ring (IEEE 802.5) Wireless (IEEE 802.11b)
3Graphic
courtesy of http://www.hawkclan.com/zxonly/iso/slide2.html
Cabling
Twister Pair Fiber Optic Coax Cable
DEVICE A
DEVICE B
http://www.howtheosimodelworks.com/
Technical Standards
Technical Standards
1
http://www.howtheosimodelworks.com/
Application
Application
Network
Data-Link Physical
Network
Data-Link Physical
1
http://www.howtheosimodelworks.com/
Network Layer
Defines a standard method for operating between nodes Address scheme is defined (IP) Accounts for varying topologies
Data-Link
Works with Network Layer to translate logical addresses (IP) into hardware addresses (MAC) for transmission
Application
Application
http://www.howtheosimodelworks.com/
Data-Link
Physical
Data-Link
Physical
1
http://www.howtheosimodelworks.com/
http://www.howtheosimodelworks.com/
Layers of software
Applications and services RMI Sockets and APIs; marshalling UDP and TCP
IP
An IP packet includes:
The identity of the sender machine i.e. its IP address The identity of the machine to which the packet should be delivered The packet contents application data
The Internet is a packet-switching network. Packets sent between two computers do not necessarily follow the same path.
Reliability
No validity guarantees
Where an incoming message buffer is full (at the destination computer or any intermediate router), the packet will be dropped
No integrity guarantees
Packets may be corrupted as they travel through the network; any packet may arrive more than once at the destination
Ordering
No ordering guarantees a sequence of packets may take different routes, incurring different transmission times
Synchronicity
Over a public network (e.g. the Internet) , asynchronous For a closed network, synchronous is possible
TCP communication
TCP socket
Virtual connection
Application TCP IP
Application TCP IP
Where the two processes do not cooperate correctly, the receiving process is likely to experience errors
Blocking
The receiver process blocks until sufficient data is present in the stream The sender process can be blocked by TCPs flow control mechanism
Ports
A port serves as a message source or destination
With the Internet protocols, messages are sent to (Internet address, port) pairs
Web browser Port
A local port can be bound to no more than one process Processes may use multiple ports
138.37.94.248
Sockets
A socket is a programming abstraction which provides an endpoint for communication The receiver process socket must be bound to a local port and the Internet address of the computer on which the receiver runs Messages sent to a particular Internet address and port number can be received only by a process whose socket is bound to that Internet address and port number A socket is associated with a transport protocol either TCP or UDP browser
Port 80
Web server
138.37.94.248
browser
29
Client
30