Submit Search
Upload
CRCof Computer Network Laboratory
•
Download as DOCX, PDF
•
0 likes
•
185 views
Barnali Gupta Banik
Follow
CRC programming code
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 4
Download now
Recommended
Introduction to java Programming, Addition, Substraction, Multiplication, Div...
Introduction to java Programming, Addition, Substraction, Multiplication, Div...
Laxminarayan Sharma
Reconstruction
Reconstruction
COMSATS Abbottabad
bask, bfsk, bpsk
bask, bfsk, bpsk
blzz2net
Demodulate bpsk up
Demodulate bpsk up
Huma Chaudhry
Dependent voltage source (vsource)
Dependent voltage source (vsource)
Tsuyoshi Horigome
Heroku's Ryan Smith at Waza 2013: Predictable Failure
Heroku's Ryan Smith at Waza 2013: Predictable Failure
Heroku
Scheduling in Time-Sensitive Networks (TSN) for Mixed-Criticality Industrial ...
Scheduling in Time-Sensitive Networks (TSN) for Mixed-Criticality Industrial ...
Voica Gavrilut
project_2
project_2
Tanya Srivastava
Recommended
Introduction to java Programming, Addition, Substraction, Multiplication, Div...
Introduction to java Programming, Addition, Substraction, Multiplication, Div...
Laxminarayan Sharma
Reconstruction
Reconstruction
COMSATS Abbottabad
bask, bfsk, bpsk
bask, bfsk, bpsk
blzz2net
Demodulate bpsk up
Demodulate bpsk up
Huma Chaudhry
Dependent voltage source (vsource)
Dependent voltage source (vsource)
Tsuyoshi Horigome
Heroku's Ryan Smith at Waza 2013: Predictable Failure
Heroku's Ryan Smith at Waza 2013: Predictable Failure
Heroku
Scheduling in Time-Sensitive Networks (TSN) for Mixed-Criticality Industrial ...
Scheduling in Time-Sensitive Networks (TSN) for Mixed-Criticality Industrial ...
Voica Gavrilut
project_2
project_2
Tanya Srivastava
Planificación poema - Clase 5
Planificación poema - Clase 5
Francisca Jimenez
Mi película favorita
Mi película favorita
Dany Hernandez
ibrand (002)
ibrand (002)
Tekisha Thomas, MBA
Ijetr021211
Ijetr021211
Engineering Research Publication
Diversity & Inclusion
Diversity & Inclusion
Luke Almond
Aaron
Aaron
matias21021998
Ben Sciberras - CV
Ben Sciberras - CV
Benjamin Sciberras
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
Worldspan Communications Ltd
Hyperion: planning in the global market
Hyperion: planning in the global market
Codec-dss UK
Modals of deduction
Modals of deduction
EOI Alcalá de Guadaíra
Adverbs and adverbial clauses
Adverbs and adverbial clauses
Elena Gómez
Síndrome coronario agudo
Síndrome coronario agudo
Lenin Figueroa
Diagnosticodela gestionmunicipal
Diagnosticodela gestionmunicipal
Sandra Mucha Fabian
Presentación aec 1 tic
Presentación aec 1 tic
Mónica Ortega
Alfreduki
Alfreduki
joseramonduenas
Autoconcepto
Autoconcepto
Miguel Villalobos Ticlla
Ijetr021221
Ijetr021221
Engineering Research Publication
c++ practical Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
yash production
100 bugs in Open Source C/C++ projects
100 bugs in Open Source C/C++ projects
Andrey Karpov
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
Prabhu D
Introduction to the Stat-JR software package
Introduction to the Stat-JR software package
University of Southampton
Enhancing the region model of RTSJ
Enhancing the region model of RTSJ
Universidad Carlos III de Madrid
More Related Content
Viewers also liked
Planificación poema - Clase 5
Planificación poema - Clase 5
Francisca Jimenez
Mi película favorita
Mi película favorita
Dany Hernandez
ibrand (002)
ibrand (002)
Tekisha Thomas, MBA
Ijetr021211
Ijetr021211
Engineering Research Publication
Diversity & Inclusion
Diversity & Inclusion
Luke Almond
Aaron
Aaron
matias21021998
Ben Sciberras - CV
Ben Sciberras - CV
Benjamin Sciberras
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
Worldspan Communications Ltd
Hyperion: planning in the global market
Hyperion: planning in the global market
Codec-dss UK
Modals of deduction
Modals of deduction
EOI Alcalá de Guadaíra
Adverbs and adverbial clauses
Adverbs and adverbial clauses
Elena Gómez
Síndrome coronario agudo
Síndrome coronario agudo
Lenin Figueroa
Diagnosticodela gestionmunicipal
Diagnosticodela gestionmunicipal
Sandra Mucha Fabian
Presentación aec 1 tic
Presentación aec 1 tic
Mónica Ortega
Alfreduki
Alfreduki
joseramonduenas
Autoconcepto
Autoconcepto
Miguel Villalobos Ticlla
Ijetr021221
Ijetr021221
Engineering Research Publication
Viewers also liked
(17)
Planificación poema - Clase 5
Planificación poema - Clase 5
Mi película favorita
Mi película favorita
ibrand (002)
ibrand (002)
Ijetr021211
Ijetr021211
Diversity & Inclusion
Diversity & Inclusion
Aaron
Aaron
Ben Sciberras - CV
Ben Sciberras - CV
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
TS-1635 Qnap Quad-core 16-bay 10GbE NAS
Hyperion: planning in the global market
Hyperion: planning in the global market
Modals of deduction
Modals of deduction
Adverbs and adverbial clauses
Adverbs and adverbial clauses
Síndrome coronario agudo
Síndrome coronario agudo
Diagnosticodela gestionmunicipal
Diagnosticodela gestionmunicipal
Presentación aec 1 tic
Presentación aec 1 tic
Alfreduki
Alfreduki
Autoconcepto
Autoconcepto
Ijetr021221
Ijetr021221
Similar to CRCof Computer Network Laboratory
c++ practical Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
yash production
100 bugs in Open Source C/C++ projects
100 bugs in Open Source C/C++ projects
Andrey Karpov
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
Prabhu D
Introduction to the Stat-JR software package
Introduction to the Stat-JR software package
University of Southampton
Enhancing the region model of RTSJ
Enhancing the region model of RTSJ
Universidad Carlos III de Madrid
Java Practical File Diploma
Java Practical File Diploma
mustkeem khan
Functions
Functions
Swarup Boro
SC-FDM-IDMA Scheme Employing BCH Coding
SC-FDM-IDMA Scheme Employing BCH Coding
IJECEIAES
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
Morteza Mahdilar
please help me with this and explain in details also in the first qu.pdf
please help me with this and explain in details also in the first qu.pdf
newfaransportsfitnes
A compact FPGA-based montgomery modular multiplier
A compact FPGA-based montgomery modular multiplier
nooriasukmaningtyas
java-programming.pdf
java-programming.pdf
Prof. Dr. K. Adisesha
100 bugs in Open Source C/C++ projects
100 bugs in Open Source C/C++ projects
PVS-Studio
C++20 the small things - Timur Doumler
C++20 the small things - Timur Doumler
corehard_by
AnswerNote Provided code shows several bugs, hence I implemented.pdf
AnswerNote Provided code shows several bugs, hence I implemented.pdf
anurag1231
C++ amp on linux
C++ amp on linux
Miller Lee
Robotlegs Extensions
Robotlegs Extensions
Yennick Trevels
Metrics with Ganglia
Metrics with Ganglia
Gareth Rushgrove
Fcm1
Fcm1
Imelda Honggodipuro
Fcm1
Fcm1
Imelda Honggodipuro
Similar to CRCof Computer Network Laboratory
(20)
c++ practical Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
100 bugs in Open Source C/C++ projects
100 bugs in Open Source C/C++ projects
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
Introduction to the Stat-JR software package
Introduction to the Stat-JR software package
Enhancing the region model of RTSJ
Enhancing the region model of RTSJ
Java Practical File Diploma
Java Practical File Diploma
Functions
Functions
SC-FDM-IDMA Scheme Employing BCH Coding
SC-FDM-IDMA Scheme Employing BCH Coding
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
please help me with this and explain in details also in the first qu.pdf
please help me with this and explain in details also in the first qu.pdf
A compact FPGA-based montgomery modular multiplier
A compact FPGA-based montgomery modular multiplier
java-programming.pdf
java-programming.pdf
100 bugs in Open Source C/C++ projects
100 bugs in Open Source C/C++ projects
C++20 the small things - Timur Doumler
C++20 the small things - Timur Doumler
AnswerNote Provided code shows several bugs, hence I implemented.pdf
AnswerNote Provided code shows several bugs, hence I implemented.pdf
C++ amp on linux
C++ amp on linux
Robotlegs Extensions
Robotlegs Extensions
Metrics with Ganglia
Metrics with Ganglia
Fcm1
Fcm1
Fcm1
Fcm1
Recently uploaded
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
Thermal Engineering Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
DineshKumar4165
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
NANDHAKUMARA10
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Call Girls in Nagpur High Profile
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Call Girls in Nagpur High Profile
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
BhangaleSonal
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
KreezheaRecto
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
DineshKumar4165
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
Kamal Acharya
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Arindam Chakraborty, Ph.D., P.E. (CA, TX)
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
JuliansyahHarahap1
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
rs7054576148
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
RagavanV2
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
tanu pandey
University management System project report..pdf
University management System project report..pdf
Kamal Acharya
Recently uploaded
(20)
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Thermal Engineering Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
University management System project report..pdf
University management System project report..pdf
CRCof Computer Network Laboratory
1.
EX.NO:13 DATE: IMPLEMENTATION OF
CRC AIM: To studythe CRC algorithmusingajava program. ALGORITHM: *Let g[x] be the generatorpolynomial &m[x] be the actual polynomial. *Let the receivergetthe checksumframe. *It shouldthatbe dividedbyg[x]. *If remainderisproduced,thenerroroccurs. *Let 'r' numberof zero bettertothe lowerendof frame. *Subtract the remainderfromthe message usingmodulo-2- subtraction. *The resultisthe check sumframe to be transmitted. *A receiverframe istobe dividedbythe generator. *At the remainderiszero,thenthe divisioniscorrect,ifn’tanoccur hasoccurred PROGRAM CODE importjava.io.*; importjava.util.*; classprg13{ publicstaticvoidmain(Stringargs[])throwsIOException { DataInputStreamin=newDataInputStream(System.in); System.out.println("Enterthe databitsto bitsto be transmitted="); Stringm=in.readLine(); Stringmd=m; System.out.println("Enterthe generatorcode");
2.
Stringg=in.readLine(); for(intx=0;x<g.length()-1;x++){ m=m+"0"; } char am[]=m.toCharArray(); char ag[]=g.toCharArray(); intlm=am.length; intlg=ag.length; inti=0; for(;i<lm;i++){ while(i<(lm-1)&&am[i]=='0'){ i++; } if(i<(lm-lg+1)){ for(intj=0;j<lg;i++,j++) { if(am[i]==ag[j]){ am[i]='0'; } else{ am[i]='1'; }} i=0; }
else i=lm;
3.
} inty=0; while(y<(lm-1)&&am[y]=='0'){ y++; } for(;y<lm;y++) md=md+am[y]; System.out.println("thetransmittedframe is:"); System.out.println(md); System.out.println("theframe received:"+md); Stringr=md; if(r.equals(md)) System.out.println("The
transmittedframe iscorrect"); else System.out.println("The transmittedframe isincorrect"); }} OUTPUT: C:j2sdk1.4.0-rcbin>javacprg13.java Note:prg13.javausesor overridesadeprecatedAPI. Note:Recompile with -deprecationfordetails. C:j2sdk1.4.0-rcbin>javaprg13 Enter the data bitsto bitsto be transmitted= 1110001 Enter the generatorcode 1101
4.
the transmittedframe is: 111000110 the
frame received:111000110 The transmittedframe iscorrect
Download now