Giter Club home page Giter Club logo

fixpoint's Introduction

File info:
main.py メインプログラム
Q1.py 設問1のコード
Q2.py 設問2のコード
Q3.py 設問3のコード
Q4.py 設問4のコード
test.txt 監視ログ
testGen.py テスト用例を生成するツール

How to use:
Python main.py -argv
設問1の場合:-argvに 1 を入力
例:
Python main.py 1
設問234の場合:N m tを順番で入力(入力せずもOK、main.pyデフォルト値ある)
例:
Python main.py 2 3
Python main.py 3 2 3 200
Python main.py 4 5

テスト用例
testGen.pyのParam部分を変更して、
実行すればtest.txtの中に生成する

簡単説明:
Q1.py ログを時間順に読み取り、Dictionay<IPアドレス,タイムアウトの最初の時間>、タイムアウトから回復したら、今の時間とDictの記録値を出力。

Q2.py Dictionay<IPアドレス,[タイムアウトの最初の時間,タイムアウト回数]>、回復して && 回数>N なら、Dictの記録値を出力。

Q3.py Ping平均値を計算する Dict<ip, <[[ping1,ping2,...],date]> >を追加した。
m個のPingデータの移動平均がt以上なら、時間を記録し。
移動平均がt以下なら、Dictの記録値を出力。タイムアウトの場合、記録をリセットする。

Q4.py ネットワークプレフィックス長から、サブネットを計算し。
サブネットの状態を記録する Dict<subnetIP, Dict<serverIP,[date, タイムアウト回数, 回復したか]> > を追加した。
任意のサーバーがタイムアウトから回復した時、同じサブネットの全サーバーのステータスを検査し、
条件を満たしたら、出力する。

fixpoint's People

Contributors

lshy1993 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.