5 Tcpip
5 Tcpip
5
Possible routes for packets
Router
Router
Router Router
Source destination
6
Packet contents
Header Source IP address Where the packet has come from
Destination IP address Where to send the packet
Packet identification Necessary so the computer knows how and in what order
to reassemble the packets
Destination and source This is the address of the network card
MAC Address
Destination and source
port numbers
Protocol Which protocol is being used (eg HTTP, FTP)
Made up of four layers that pass data between each layer. The four
layers are:
Application
Transport
Network
Link
TCP/IP Model
Application layer
The transport layer establishes the end to end connection. When files
are sent over the internet they are broken up into small chunks called
packets. When they arrive at the destination computer they are
reassembled back into the original format. It is the role of the
transport layer to split the data into packets and pass the data onto the
network layer. On the recipient’s computer the transport layer
reassembles the packets into the original form. TCP and UDP are the
main protocols used in this layer. The packets are numbered by this
layer to allow them to the reassembled. The transport layer chooses
the port number for sender and receiver.
11
Consider the following message:
“Friends, Romans, Countrymen lend me you ears. I have come to bury Caesar not to praise him” William Shakespeare
The purpose of the network layer is to add the source and destination
IP address and route the packets over the network. At the destination
the network layer strips out the IP addresses.
13
Data link layer
The data link layer has a network card and deals with the physical
connection and adds the physical addresses (MAC address) of the
hardware to the packets that it receives from the network layer.
Each network interface card has a unique MAC address that is a 12 digit
hexadecimal code (e.g. 12-F3-EE-56-44-A1). For each step the sender
and receiver MAC address is removed then a new sender and receiver
MAC address is added. The receiver MAC address becomes the sender
MAC address.
14
MAC addresses
4. Application 7. Application
6. Presentation
5. Session
3. Transport 4. Transport
2. Network 3. Network
Describe the TCP/IP model, and explain the function of each layer.
Homework