Computer Networks Flashcards
Data packet
small piece of binary data from a file sent through a network
Two parts of data packets
Header
Payload
Header
contains .... the source IP Address Destination IP Address A checkSum The number of this packet within the sequence of packets
Payload
Data
Packet Switching (from computer A to D)
1.Computer A adds computer D’s IP
address to the packet
2.Computer A send the packet to the switch
3.Switch looks at address on packet
4.Switch compares address to stored list of addresses on the network
5.Switch forward packet to Computer D’s address
Benefits of packet switching
Packets would take the least busy route,making the network more efficient
More difficult for hackers to sniff packets and steal the data
If one router fails ,another one will be able to send the data.Packets will take different routes
Disadvantages of packet switching
Configuration of the router is complex
Routers will loss/Miss packets if they are working at full capacity
Data can be corrupted when being sent
Network Protocols
Define how you send data across the network and how it is converted
IP
Internet Protocol
defines. .
- structure of a valid data packet
- The structure of IP address
- How to reach an IP address
TCP
Transmission Control Protocol
defines. .
- How data is sent between two computers across a network
It relies on IP and guarantees delivery of packets or an error message is returned
HTTP
HyperText Transfer Protocol
defines. ..
- How hypertext is structured
- How hypertext is transferred between two computers
It uses TCP and IP
FTP
File Transfer Protcol
defines. .
- How (usually large) files or folders are transferred across a network
Uses TCP & IP. Web developers use this to transfer files to a web server
SMTP
Simple Mail transfer Protocol
defines. ..
- How a email is sent between email servers
Protocol Stack
Where protocols are stacked where protocols higher up the stack use protocols lower down
Advantages of Protocol Stacks
-Protocols higher up the stack hide how protocols lower work
-Allows different hardware to share data as they conform to the same protocol
-e.g an Ipad user can email a person with
Microsoft Word
Disadvantages of Protocol Stacks
- Technology improves but protocols may not implement the most efficient way to do something
- Agreeing and implementing a protocol is a time consuming protocol