Cho 2 Flashcards
Data sent over long distances usually is broken up into
Data packets
Advantages of data packets
Small which is easier to control than a long continuous stream of data
It’s also a benefit if the route is busy
Packet structure
Packet header
Payload
Trailer
Header
IP address of the sending and receiving device
The sequence number
Packet size
Payload
Consists of the actual data in the packets
Trailer
Some way of identifying the end of packer this is the essential to allow each packet to be separated from each other as they travel from sending to receiving station
And an error checking method to ensure the packet arrived error free
Cyclic redundancy checks (CRCs)
This involves the sending computer adding up all the 1 bit in the payload and storing this as a hex value in the trailer before it is sent
Once the packet arrives the receiving computer recalculates the number of 1 bits in the payload
The computer then checks this value against the one sent in the trailer
If the two values match then no transmission errors have occurred otherwise the packet needs to be re sent
Packet switching example for a photograph going from two computers
I sent for. Computer A to computer B. The photograph will be split up into a number of packets before it’s sent. There will be several possible routes for the packets between computer a sender and computer B receiver . Each stage in the route contains a routers. A router receives a data packet and based on the information in the header decided where to send it next
Job of a router
Decides where to send it next
Packet switching
Method of data transmission in which a message is broken up into a number of pakcets. Each packet can then be sent independently from start point to end point. At the destination the packets will need to be reassembled into their correct order. At each stage there are nodes that contain a router. Each router will determine which route the packet needs to take, in order to reach its destination
Order of packet switching
Each packet will follow its own path or route
Routers will determine the route of each packet
Routing selection depends on the number of packets waiting to be processed at each node
The shortest possible path available is always selected this may not always be the shifters path that could be taken since certain parts of the route may be too busy or not suitable
Unfortunately packets can reach the destination in a different order to that in which they were sent
Benefits of packet switching are
There is no need to tie up a single communication line
It is possible to overcome failed, busy or faulty lines by sim plying re routing packets
It is relatively easy to expand package usage
A high data transmission rate is possiblem
Drawbacks of packet switching
Packets can be lost and need to be resent
The method is more prone to error with real time streaming
There is a delay at the destination whilst the packets are being re ordered
Why can packets get lost
Because they keep bouncing around from router to router and never actually reach their destination. Eventually the network would just grind to a halt as the number of lost packets mount up clogging the system
How can you overcome hopping
A Hop number is added to the header of each packet and this number is reduced every time it reaches a router each packet has. A max hop number to start with. Once the hoo number i]recahes 0nand the packet hasn’t reached their destination the packet is deleted
Data transmission
Can be either over a short distance or over longer distances
Three factors of data transmission
The direction of data transmission
The method of transmission
How will data be synchronised
These factors are considered by a communication protocol
Simplex data transmission
Simplex mode occurs when data can be sent in ONE DIRECTION ONLY ex sending data from a computer to a printer
Half duplex
Data is sent in BOTH DIRECTIONS BUT NOT AT THE SAME TIME ex walkie talkie where a message can be sent in one direction only at a time but messages can be both received and send
Full duplex
BOTH DIRECTUONS AT THE SAME TIME
Ex board band internet connection
Serial data transmission
Occurs when data is sent One bit at a time over a single wire / channel
Serial data transmission feuaturee
Works well over long distances
Data is transmitted slower than parallel data transmission
Because only one channel wire is used data will arrive at its destination fully sync ex connecting a computer to printer via usb