-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,181 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
### SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
"""Analyze ts2phc log messages""" | ||
|
||
from .analyzer import TimeErrorAnalyzerBase | ||
from .analyzer import TimeDeviationAnalyzerBase | ||
from .analyzer import MaxTimeIntervalErrorAnalyzerBase | ||
|
||
|
||
class TimeErrorAnalyzer(TimeErrorAnalyzerBase): | ||
"""Analyze time error""" | ||
id_ = 'ts2phc/time-error' | ||
parser = id_ | ||
locked = frozenset({'s2'}) | ||
|
||
|
||
class TimeDeviationAnalyzer(TimeDeviationAnalyzerBase): | ||
"""Analyze time deviation""" | ||
id_ = 'ts2phc/time-deviation' | ||
parser = 'ts2phc/time-error' | ||
locked = frozenset({'s2'}) | ||
|
||
|
||
class MaxTimeIntervalErrorAnalyzer(MaxTimeIntervalErrorAnalyzerBase): | ||
"""Analyze max time interval error""" | ||
id_ = 'ts2phc/mtie' | ||
parser = 'ts2phc/time-error' | ||
locked = frozenset({'s2'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
### SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
"""Requirements specified in standards""" | ||
"""Requirements specified in ITU-T G.8272/Y.1367""" | ||
|
||
REQUIREMENTS = { | ||
'G.8272/PRTC-A': { | ||
'maximum-time-interval-error-in-locked-mode/us': { | ||
(None, 273): lambda t: 0.000275 * t + 0.025, | ||
(274, None): lambda t: 0.10 | ||
}, | ||
'time-deviation-in-locked-mode/ns': { | ||
(None, 100): lambda t: 3, | ||
(101, 1000): lambda t: 0.03 * t, | ||
(1001, 10000): lambda t: 30 | ||
}, | ||
'time-error-in-locked-mode/ns': 100, | ||
}, | ||
'G.8272/PRTC-B': { | ||
'maximum-time-interval-error-in-locked-mode/us': { | ||
(None, 54.5): lambda t: 0.000275 * t + 0.025, | ||
(54.5, None): lambda t: 0.04 | ||
}, | ||
'time-deviation-in-locked-mode/ns': { | ||
(None, 100): lambda t: 1, | ||
(101, 500): lambda t: 0.01 * t, | ||
(501, 100000): lambda t: 5 | ||
}, | ||
'time-error-in-locked-mode/ns': 40, | ||
}, | ||
'workload/RAN': { | ||
'time-error-in-locked-mode/ns': 100, | ||
'time-deviation-in-locked-mode/ns': { | ||
(None, 100000): lambda t: 100 | ||
}, | ||
'maximum-time-interval-error-in-locked-mode/us': { | ||
(None, 100000): lambda t: 1 | ||
} | ||
}, | ||
} |
Oops, something went wrong.