310 likes | 319 Views
Learn about internetworking - connecting computer networks, key devices, and protocols. Explore HTTP and its role in web application development, including requests, responses, and protocols. Understand the importance of internet implementation for optimal web app performance.
E N D
Internetworking and HTTP Web Application Development
Agenda • Internetworking, Internet Protocol (IP) addresses, protocol data units (PDUs) • Hypertext Transfer Protocol (HTTP)
Internetworking Web Application Development
What is Internetworking? • Literally, internet means “between networks” • A computer network is a collection of electronically programmable devices connected by a communications medium. • An internetwork is a collection of computer networks connected by a communications media. Perhaps the most famous internetwork is the Internet. • Internetworking is the implementation of internetworks.
Why is internetworking important? • It is important for web developers to understand the concept of internetworking for the same reason that it is important for automobile drivers to understand the concept of roads. • The effectiveness of a web application can depend significantly upon the internet implementation upon which the applications run—the capacity of a connection versus the number of users using the connection—just as the duration of a road trip may depend on the roads—the quality of the roads versus the number of other drivers on the roads. • Sometimes underlying internetworking issues must be considered in order to optimize web application performance. In extreme cases, web apps can even be made to function in off-line mode. See video: Taking Your Web Apps Offline
Bus Topology Within a network, computers can communicate directly with each other. Image source: Novell.com
* Network segment is not the same as TCP segment Network Segments* Switches and hubs can be used to increase the number of devices using the same network. • “According to the defining IEEE 802.3 standards for Ethernet, a network segment is an electrical connection between networked devices using a shared medium.” • Source: Wikipedia Hub Switch Image source: CCNA Study Guide (Sixth Edition)
Network devices • Hub • Bridge • Switch (MAC address) • Router (IP address) Other Concepts • Collision Domain • Broadcast Domain Hub Image source: CCNA Study Guide (Sixth Edition)
Collision and broadcast Domains • A hub extends a collision domain. A hub allows more devices to connect to the same port on a switch or router. • A switch extends a broadcast domain. A switch allows more devices to connect to the same port on a switch or router. • A switch breaks up a collision domain. A switch separates sets of MAC addresses. • A router defines separate broadcast domains. A router separates sets of IP addresses.
Routers Internetworking is accomplished using routers. Network 1 Network 2 Image source: Intense School
Routing Tables Network 10.4.0.0 is 2 “hops” from router A Routers maintain routing tables. Image source: Techhive.com
Traceroute You can find the number of hops between two Internet-connected computers. There are 16 hops from my laptop to www.google.com. Visual traceroute: https://www.monitis.com/traceroute/
Routers ignore packet contents Packets of data arrive out of order. It’s up to the receiving computer to reassemble in order. Image source: Slideplayer.com
End-to-end Principle • Internet Protocol (IP) is a connectionless datagram service with no delivery guarantees. • On the internet IP is used for nearly all communications. • End-to-end acknowledgment and retransmission is the responsibility of the connection-oriented Transmission Control Protocol (TCP) which sits on top of IP. • The functional split between IP and TCP exemplifies proper application of the end-to-end principle to transport protocol design. • Source: Wikipedia
Network Layers Ports (TCP) IP addresses (IP) MAC addresses (Ethernet) Image source: Intense School
OSI stands for Open Systems Interconnection OSI Model Image source: CCNA Study Guide (Sixth Edition)
TCP/IP Model Image source: clinetworking.files.wordpress.com
* TCP segment is not the same as Network Segment Protocol Data Unit (PDU) • Protocol Data Units (PDUs), aka datagrams, are discrete portions of communication transmitted over a network. See also: Wikipedia. • HTTP “datagram” • TCP segment* • IP packet • Ethernet frame • Physical bits Image source: CCNA Study Guide (Sixth Edition)
Analogy: Postal Networks Router Image source: Researchgate
HTTP works similarly Example: email Image source: what-when-how.com
HTTP Web Application Development
HTTPRequest-response loop Image source: Slideshare
An HTTP request is an application layer PDU HTTP Request Image source: umbc.edu
HTTP Request Method URL Version Image source: tcpipguide.com
Chrome Spy: Examine requests/responses Chrome Spy
Summary Web Application Development
Now You Know a bit about • Internetworking, Internet Protocol (IP) addresses, protocol data units (PDUs) • Hypertext Transfer Protocol (HTTP)
THE END • Thank you.