Title: FEC
1FEC
The Reed-Solomon Method
Project Members Alon Keren Sagi Linsker
Instructor Omer Gurewitz
2Whats today?
- Overview
- Reed-Solomon short review
- File-transfer by RS and UDP
- File encoding and packetizing
- File decoding and reassembly
- UDP considerations
- Application sending and receiving
- Sender side
- Receiver side
- Results
- 5. Future improvements
3Overview
???? ?? ?? ???????? ????? ???????? ?????? ?????
????? (????? ?????? BMP) ??? ??? ?????? ??? ????
??-??????.
????????? ????? ??? ???????? UDP ??????? ??????
Reed-Solomon ?? ??? ?????? ?? ????? ?????? ?????,
??? ??? ?? ???? ?????? ????? ?????.
4Reed-Solomon
Reed-Solomon ???? ??? ?????? ?????? (FEC), ?????
?? ??? ????? ???? ????? ????? ??????, ?? ??????
?? ????? ??? ??????, ????? ???? ????
??????. ??? ??????? ?? ??? 3 ??????? m,n,k
?????? ?? ??? RS(n,k). ???? ??? ???????? ?? n
??? n 2m 1.
5RS encoding
????? ?-RS ????? ??????
6RS decoding
????? Reed-Solomon ????? ????? ?? ????? ?????? ??
?? ???? n-k ???????? ????? ???? ?-n.
7From symbols to packets
?????? ????, ??? ????????? ?????? ?? ?????
??????. ???? ????? ????? ?????? gtgt ???? ??????,
????? ????? ??? ????? ???? ??????? ???? ??????.
?????
8File encoding packetizing
??? ??, ?????, ???? ?? ????? ??????? ?? k ??????
????? PS ?? ???, ????? ?????? ????? ?????.
File
9File encoding packetizing
???? ???? ?? ???? ?????? ????? ?????? ???
?? ????? ?????? ?-symbols (?? ??? ????? m ??????).
????????? ???????? ????? ?-i ??? ??? ????????,
??????? ?-n ????????
10File encoding packetizing
Packet 1
Packet k
Packet 2
Packet k 1
Packet n
Symbol i
Symbol i
Symbol i
Symbol i
Symbol i
??? ????? ?????? PS/m ????????, ???? ?? ????? ??
k ?????? ??? ????? ?? PS/m ?????? ?? k
????????. ????? ??????? ????? ?? ????? ???
?????? ?????? ?-i ????? ?????? ?-symbol ?-i ???
??? ?-PS/m ???????. ??, ??????? k ?????? ?????
???? ?-n, ?? ??? ????? ?? k ??????? ????????.
11File decoding reassembly
n packets
Original packets
Redundant packets
???? ????
??????
Original packets
????? ?? ????? ???? ?? ???? ?? ??????. ?????
??????? ?????? ?? ????? ?????? ?????, ????? ????
???????.
12UDP considerations
- ????? ????????? ??? ???? ?-UDP ????? ???????
????? ?????? - ????? ?????? ???? ????? ?? ??? ??????
Reed-Solomon. - ??? ?????? ??? ????? ????? ?? ??? ??? ???? ??
??? ????? ???? ????? ?????? ??? ?????. - ????? ?????? ?????? ????? ???? ??? ?????- ???? ??
??? ????? ????? ?? ?? ??? ???? ??? ????? ???????
??? ?????.
13UDP considerations (Cont.)
- -???? ????? ??????? ????? ?? ??? ???? ????? IP
????? ????? ?- port ??? ????? ???? ?????. ?????
????? ???? ????? ??????? ?? - Min IP length IP Header length UDP
Header length, - Sender buffer-size,
- Receiver buffer-size
- ????? ?? ???? ????? ????? ????? ???? ??? ???
???? ???? ????? ????? (?? ????? ??? ?????? ??
???? ??? ????? - ?? ??? ????? ???? ????? / ?????
/ ??????)
14Sender side
????????? ???
GUI - send
????? BMP Header
????? ?????? ??????? ?? ????? ??????
????? ?????? ???????
????? ???????
????? ????? ????
????? ?????
- ????? ???????? (????? ????) n, k, Packet Size,
File Size, File Type (BMP/TXT)
- ????? header ?? BMP ????? ?? ??? ?????? ????
?????? (?? ?? ??????) ??? ?????.
15Sender side (Cont.)
????????? ???
GUI - send
????? BMP Header
????? ?????? ??????? ?? ????? ??????
????? ?????? ???????
????? ???????
????? ????? ????
????? ?????
????? ?????? ??????? ????? ??????. ????????
????? ???? ?? ????? ???? ??? ???? ?????? ??
???????? ????? ???? ?? ???? ????? ???. ????????
????? ???? ????? ?? ??????? ???????? ????? ???
????? ?????? ??????? ???????? ??????? ?????????
??????. ??? ????? ????? header ?????? ?? ????
????? ?? ??? ????? ??? ?????? ??.
16Sender side (Cont.)
????????? ???
GUI - send
????? BMP Header
????? ?????? ??????? ?? ????? ??????
????? ?????? ???????
????? ???????
????? ????? ????
????? ?????
- ???? ?????? ????? ?????? ?? ??
- EPB Errors per Block
- ???? ?????? ??? ???? ??? ????? ????
- PER Packet Error Rate
- ??????? ????? ?????
17Receiver side
GUI - receive
????? ????????
???? ??????? n, k Packet Size File Size File
Type (BMP/TXT)
????? ?????? ????? ????????
???? Header ???? ???? BMP.
???? ??????? ???? ????.
????? ??????
- ???? ???????? ???? ?????? ?????? ????? ???????
???? ?????? ?? ??? ????.
????? ?-header ????? ?????? ????? ?????? ??? ??
????? (??????) ??????.
- ?????? ??????? ????????, ?????? ??? ???? ??????
??????? ?? ????? ?? ?? ??????.
18Receiver side (Cont.)
GUI - receive
????? ????????
???? ??????? n, k Packet Size File Size File
Type (BMP/TXT)
????? ?????? ????? ????????
???? Header ???? ???? BMP.
???? ??????? ???? ????.
????? ??????
- ???? ????? ????? k (???? n) ?????? ???? ???????
(??? ?? ?? ??? k ??????? ????????).
????? ?-header ????? ?????? ????? ?????? ??? ??
????? (??????) ??????.
- ???? ??? ?? ????? ?????? ??????? ??????.
??????? ???? ??????? ???? ??????? ?? ??? ?????
???? ????? ?????, ???? ????.
19Results
????????? ??? ????? ?????
- ?????? ??????? ???? ???????.
- ?????? ??????? ??? ??????.
- ???? ??????? ??????? ?????? ???? ?? ???????
??????. - ???? ??????? ??? ??????.
- ???? ????? ??????? ??????.
20Future improvements
- ????? ?-bursts ?? ??? ????? ?? ???? ???????
???????? ????? ???? ????? (interleaved) - ??????? ???? ???? ????? ????? n ?-k ???? ?????
??????? ????. - ????? ?- Multicast
21?????
- ???? ??????'
- ?? ?????
- ???? ????
- ???? ???-??
22The End