Академический Документы
Профессиональный Документы
Культура Документы
Computer Networks
Lab 2
March 22, 2015
Program Output (comments on the output will be written in blue):
PROGRAM INITIALIZED.
*-------------------------------------------------------------------*
Layer 4 Sending.
Reading File...
File read. File size: 829 characters
File content:
THE TIGER by William Blake (17571827).
TIGER, tiger, burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?
In what distant deeps or skies
Burnt the fire of thine eyes?
On what wings dare he aspire?
What the hand dare seize the fire?
And what shoulder and what art
Could twist the sinews of thy heart?
And when thy heart began to beat,
What dread hand and what dread feet?
*-------------------------------------------------------------------*
Layer 2
Data split into 14 frame(s)
stuff_chars = 7
bufferSize: 1676
frames 14
120000000000000000000000000000000000000000000000000000THE TIGER by William Bla
ke (17571827).
Layer 2 receives the
TIGER, tiger, buE9CC
segments from layer 3
(including layer 3s
120010000000000000000000000000000000000000000000000000rning bright
headers) and adds onto
In the forests of the night,
this its own headers and
What immortal handE338
trailers. Layer 2 then
sums the char values
120020000000000000000000000000000000000000000000000000 or eye
contained in the frames
Could frame thy fearful symmetry?
Count, ACK, Seq#,
LFrame, and layer3
In what distant E427
header/data fields and
stores this value as a 4
120030000000000000000000000000000000000000000000000000deeps or skies
digit hex number in the
Burnt the fire of thine eyes?
Checksum field.
On what winE4F2
Within the data field,
120040000000000000000000000000000000000000000000000000gs dare he aspire?
layer 2 then adds stuffed
What the hand dare seize the fire?
characters (DLEs which
are represented by
And wE396
sideways triangles) before
each special control
120050000000000000000000000000000000000000000000000000hat shoulder and what art
character.
Could twist the sinews of thy hearE2FC
120060000000000000000000000000000000000000000000000000t?
And when thy heart began to beat,
What dread hand and whaE40B
120070000000000000000000000000000000000000000000000000t dread feet?
What the hammer? what the chain?
In what furnE46E
120080000000000000000000000000000000000000000000000000ace was thy brain?
What the anvil? What dread grasp
Dare itsE3CE
120090000000000000000000000000000000000000000000000000 deadly terrors clasp?
When the stars threw down their speaE32C
1200:0000000000000000000000000000000000000000000000000rs,
And water'd heaven with their tears,
Did He smile His E4C2
1200;0000000000000000000000000000000000000000000000000work to see?
Did He who made the lamb make thee?
Tiger, tigE4B2
*-------------------------------------------------------------------*
Layer 1
Sending layer 1 data up to layer 2
*-------------------------------------------------------------------*
Layer 2
Data split into 14 frame(s)
stuff_chars = 0
bufferSize: 1669
frames 14
120000000000000000000000000000000000000000000000000000THE TIGER by William Bla
ke (17571827).
TIGER, tiger, buE9CC
120010000000000000000000000000000000000000000000000000rning bright
In the forests of the night,
What immortal handE338
120020000000000000000000000000000000000000000000000000 or eye
Layer 3
Data split into 14 segment(s).
Packet contents:
THE TIGER by William Blake (17571827).
TIGER, tiger, burning bright
In the forests of the night
,
What immortal hand or eye
Could frame thy fearful symmetry?
In what distant deeps or skies
Burnt
the fire of thine eyes?
On what wings dare he aspire?
What the hand dare seize the fire?
And w
hat shoulder and what art
Could twist the sinews of thy heart?
And when thy heart began to beat,
Wha
t dread hand and what dread feet?
What the hammer? what the chain?
In what furnace was thy brain?
W
hat the anvil? What dread grasp
Dare its deadly terrors clasp?
When the stars threw down their spea
rs,
And water'd heaven with their tears,
Did He smile His work to see?
Did He who made the lamb ma
ke thee?
Tiger, tiger, burning bright
In the forests of the night,
What immortal hand or eye
Dare
frame thy fearful symmetry?
Writing file...
THE TIGER by William Blake (17571827).
TIGER, tiger, burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?