CampusLearn
← BIT 301 Computer Networks and Security

The OSI and TCP/IP Models

Notes

Layered communication The Open Systems Interconnection (OSI) model divides network communication into seven layers: physical, data link, network, transport, session, presentation and application. Each layer offers services to the layer above while hiding implementation details. Physical transmission moves bits; the data link layer handles frames on a local link; the network layer moves packets between networks. The transport layer supports communication between processes. The upper layers organise exchanges, represent information and provide application services. Layering helps engineers isolate faults instead of treating every connectivity problem as a cable failure. Encapsulation and protocol choices The Transmission Control Protocol/Internet Protocol (TCP/IP) model commonly groups functions into application, transport, internet and link layers. Encapsulation means adding control information as data moves down these layers, then removing it at the receiver. TCP provides an ordered byte stream with acknowledgements and retransmission, whereas User Datagram Protocol (UDP) sends independent datagrams without those guarantees. Internet Protocol supplies logical addressing and forwarding. An application chooses transport according to its needs: reliable delivery suits transactions, while timely delivery may matter more than retransmission for live voice traffic. Practical example A Nairobi wholesale shop sends a 2,000 byte application message over an established TCP connection. Assume TCP adds 20 bytes and IPv4 adds 20 bytes, with no options. If the path supports 1,500 byte IP packets, the maximum TCP payload per packet is 1,500 minus 40, or 1,460 bytes. The message therefore needs two segments carrying 1,460 and 540 bytes. Their IP packet sizes are 1,500 and 580 bytes. Link headers add further overhead. If name resolution works but the service port is blocked, investigate transport filtering rather than replacing the cable.

Quiz

1. With a 1,500 byte IP limit and 40 bytes of combined IP and TCP headers, what is the largest TCP payload?

2. A host can reach a server IP address, but its TCP service port is blocked. Which area should be investigated first?

3. Why might a live voice application choose UDP?

Sign in to submit and securely grade your quiz.