Skip to content

Commit

Permalink
Final version, first part of proyect. Comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaCL committed Nov 19, 2019
1 parent 09b8151 commit 60e8edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Wifi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@


T_DIFS = DIFS/Rbps
print "Tiempo de transmision de DIFS: ", T_DIFS
print "Tiempo de transmision de DIFS: ", T_DIFS, "ms"
T_SIFS = SIFS/Rbps
print "Tiempo de transmision de SIFS: ", T_SIFS
print "Tiempo de transmision de SIFS: ", T_SIFS, "ms"
T_Datos = Datos/Rbps
print "Tiempo de transmision de Datos: ", T_Datos
print "Tiempo de transmision de Datos: ", T_Datos, "ms"
T_Ack = Ack/Rbps
print "Tiempo de transmision de Ack ", T_Ack
print "Tiempo de transmision de Ack ", T_Ack, "ms"
print "-------------------------------------------------------------------------------------------------------------------------"
print "Arreglo de tiempos: + "

Expand Down Expand Up @@ -69,7 +69,7 @@ def EB(times): #Exponential Backup function.
print "-------------------------------------------------------------------------------------------------------------------------"

R_experimental = (1000*Datos)/ times_array[999][5]
print "La velocidad de transmision promedio es : ", R_experimental
print "La velocidad de transmision promedio es : ", R_experimental, "Kbps"
#print PromWin
print "El valor promedio de valores tomados por EB es: ", PromWin/1000
#print PromWin
2 changes: 1 addition & 1 deletion WifiFull.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def EB(self,times): #Exponential Backup function.
#CW = rn.randrange(0, 16*times,1)
#print fullWindow
#print CW
CW_inDIFS = CW*DIFS
CW_inDIFS = CW*DIFS
#print CW_inDIFS
Times_CW_inDIFS = CW_inDIFS/Rbps
#print Times_CW_inDIFS
Expand Down

0 comments on commit 60e8edb

Please sign in to comment.