Skip to main content

Improving the Analysis of GPC in Real-Time Calculus

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 11951))

Abstract

Real-Time Calculus (RTC) is a framework for modeling and performance analysis of real-time networked systems. In RTC, workload and resources are modeled as arrival and service curves, and processing semantics are modeled by abstract components. Greedy Processing Component (GPC) is one of the fundamental abstract components in RTC, which processes incoming events in a greedy fashion as long as there are available resources. The relations between inputs and outputs of GPC have been established, which are consistent with its behaviors. In this paper, we first revise the original proof of calculating output curves in GPC, and then propose a new method to obtain tighter output arrival curves. Experiment results show that the precision of output arrival curves can be improved by our method compared with the original calculation and existing work.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    \(R[s,t) = - R[t,s), R[s,s) = 0\).

  2. 2.

    \(C[s,t) = - C[t,s), C[s,s) = 0\).

  3. 3.

    For ease of presentation we assume stabp to be integer in following proofs.

  4. 4.

    This part is just briefly explained as \('a \ge b\) since \(t \ge s'\) in the existing proof [4].

  5. 5.

    Note that this is not applicable to all task sets.

  6. 6.

    Note that p and c are relatively small since larger values will cause computation exception with larger-scale GPC networks.

  7. 7.

    This is not detailed in [4].

References

  1. Thiele, L., Chakraborty, S., Gries, M., Kunzli, S.: Design space exploration of network processor architectures. Netw. Processor Des. : Issues Pract. 1, 1–12 (2002)

    Google Scholar 

  2. Fersman, E., Mokrushin, L., Pettersson, P., Yi, W.: Schedulability analysis of fixed-priority systems using timed automata. Theor. Comput. Sci. - Tools Algorithms Constr. Anal. Syst. 354(2), 301–317 (2006)

    MathSciNet  MATH  Google Scholar 

  3. Bondorf, S., Schmitt, J.: Improving cross-trac bounds in feed-forward networks there is a job for everyone. In: Remke, A., Haverkort, B.R. (eds.) Measurement, Modeling and Evaluation of Dependable Computer and Communication Systems. Lecture Notes in Computer Science, vol. 9629, pp. 9–24. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-31559-1_3

    Chapter  Google Scholar 

  4. Wandeler, E.: Modular performance analysis and interface-based design for embedded real-time systems. Ph.D. Thesis, Publisher, Swiss federal institute of technology Zurich (2006)

    Google Scholar 

  5. Chakraborty, S., Knzli, S., Thiele, L.: A general framework for analysing system properties in platform-based embedded system designs. In: DATE, pp. 1–6. IEEE, Munich, Germany, Germany (2003)

    Google Scholar 

  6. Thiele, L., Chakraborty, S., Gries, M., Kunzli, S.: A framework for evaluating design tradeoffs in packet processing architectures. In: DAC, pp. 880–885. IEEE, New Orleans, Louisiana, USA (2002)

    Google Scholar 

  7. Chakraborty, S., Phan, L.T.X., Thiagarajan, P.S.: Event count automata: a state-based model for stream processing systems. In: RTSS, pp. 87–98. IEEE, Miami, FL, USA (2005)

    Google Scholar 

  8. Tang, Y., Guan, N., Liu, W.C., Phan, L.T.X., Yi, W.: Revisiting GPC and AND connector in real-time calculus. In: RTSS, pp. 1–10. IEEE, Paris, France (2017)

    Google Scholar 

  9. Guan. N., Yi, W.: Finitary real-time calculus: efficient performance analysis of distributed embedded systems. In: RTSS, pp. 1–10. Vancouver, BC, Canada (2013)

    Google Scholar 

  10. Lampka, K., Bondorf S., Schmitt, J.B., Guan N., Yi, W.: Generalized finitary real-time calculus. In: INFOCOM, pp. 1–9. Atlanta, GA, USA (2017)

    Google Scholar 

  11. RTC Toolbox Homepage. https://www.mpa.ethz.ch/static/html/Navigation.html

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yuming Jiang .

Editor information

Editors and Affiliations

Appendix : Proof of Theorem 2

Appendix : Proof of Theorem 2

(1) We first prove \(\alpha '^u\). Suppose p is an arbitrarily small time such that the backlog satisfies \(B(p) = 0\).

Then for all \(p \le s \le t\),

$$\begin{aligned}&R'[s,t) \\&= R'[p,t) - R'[p,s) \\&= \sup _{p \le b \le s}\{C[p,b) - R[p,b)\}^+ - \sup _{p \le a \le t}\{C[p,a) - R[p,a)\}^+ + C[p,t) - C[p,s) \end{aligned}$$

Since \(C[p,p) = R[p,p) = C[p,p) - R[p,p) = 0\), the suprema are nonnegative and we have

$$\begin{aligned}&R'[s,t) \\&= \sup \limits _{p \le b \le s}\{C[p,b) - R[p,b)\} - \sup \limits _{p \le a \le t}\{C[p,a) - R[p,a)\} + C[p,t) - C[p,s)\\&= \sup _{p \le b \le s}\{\inf _{p \le a \le t}\{R[b,a) + C[a,t) - C[b,s)\}\} \\&= \sup _{p \le b \le s}\{\inf _{p \le a \le t}\{C[s,t) + C[a,b) - R[a,b)\}\} \\&= C[s,t) + \sup _{p \le b \le s}\{\inf _{p \le a \le t}\{ C[a,b) - R[a,b)\}\} \\&= C[s,t) + \sup _{p \le b \le s}\{min\{\inf _{b \le a \le t}\{ C[a,b) - R[a,b)\}, \inf _{p \le a \le b}\{ C[a,b) - R[a,b)\}\}\} \end{aligned}$$

Let \(\chi = \sup \limits _{p \le b \le s}\{min\{\inf \limits _{b \le a \le t}\{ C[a,b) - R[a,b)\}, \inf \limits _{p \le a \le b}\{ C[a,b) - R[a,b)\}\}\}\),

\(\chi _1(b) = \inf \limits _{b \le a \le t}\{C[a,b) - R[a,b)\} = min\{C[b, b) -R[b, b), C[b + 1, b) -R[b+ 1, b ), ..., C[t, b) -R[t, b) \} \le 0\),

\(\chi _2(b) = \inf \limits _{p \le a \le b}\{C[a,b) - R[a,b)\} = min\{C[p, b) -R[p, b), C[p + 1, b) -R[p + 1, b), ..., C[b -1, b) -R[b - 1, b), C[b, b) -R[b, b)\} \le 0\).

Next we prove \(\chi = \sup \limits _{p \le b \le s} \{\chi _1(b)\}\)Footnote 7.

We consider two cases:

  1. (1)

    For any \(i \in [p, s]\), \(\chi _1(i) \le \chi _2(i)\), then \(\chi = \sup \limits _{p \le b \le s} \{\chi _1(b)\}\).

  2. (2)

    There exists at least one \(i \in [p, s]\) satisfying \(\chi _1(i) > \chi _2(i)\), then \( min \{\chi _1(i), \chi _2(i)\} = \chi _2(i) < 0\),

Similar as the proof for \(\beta '^l\), there exists \(x \in [p, s]\) such that \(\min \{\chi _1(x),\) \(\chi _2(x)\} = \chi _1(x) = \chi _2(x) = 0\).

Then

$$\begin{aligned} \chi&= \sup \limits _{p \le b \le s} \{min\{\chi _1(b), \chi _2(b)\}\} \\&= max \{min\{\chi _1(p), \chi _2(p) \},..., min\{\chi _1(x), \chi _2(x) \}, ...,min\{\chi _1(s), \chi _2(s)\} \} \\&= \sup \limits _{ b \in \phi }\{min\{\chi _1(b), \chi _2(b)\}\} = \sup \limits _{ b \in \phi } \{\chi _1(b)\} \end{aligned}$$

where \(\psi \) is the set of values in [ps] which satisfy for any \(b \in \phi \), \(\chi _1(b) \le \chi _2(b)\).

On the other hand, \(\sup \limits _{p \le b \le s}\{\chi _1(b)\} = \sup \limits _{ b \in \psi }\{\chi _1(b)\}\), since when \(b \in ([p,s] - \psi )\), \(\chi _1(b) < 0\). Then we have \(\chi = \sup \limits _{p \le b \le s}\{\chi _1(b)\}\).

So in both two cases we have \(\chi = \sup \limits _{p \le b \le s}\{\chi _1(b)\}\).

Then

$$\begin{aligned}&R'[s,t) \\&= C[s,t) + \sup _{p \le b \le s}\{\inf _{p \le a \le t}\{ C[a,b) - R[a,b)\}\} \\&= C[s,t) + \sup _{p \le b \le s}\{\inf _{b \le a \le t}\{ C[a,b) - R[a,b)\}\} \\&= \sup _{p \le b \le s}\{\inf _{b \le a \le t}\{ C[s,t) + C[a,b) - R[a,b)\}\} \\&= \sup _{p \le b \le s}\{\inf _{b \le a \le t}\{R[b,a) + C[a,t) - C[b,s)\}\} \end{aligned}$$

Then with \(\lambda = s - b\) and \(\mu = a + \lambda -s\), we have

$$\begin{aligned}&R'[s,t) \\&= \sup _{p \le b \le s}\{\inf _{b \le a \le t}\{R[b,a) + C[a,t) - C[b,s)\}\} \\&= \sup _{0 \le \lambda \le s - p}\{\inf _{0 \le \mu \le \lambda + (t - s)}\{R[s - \lambda , \mu - \lambda + s) + C[\mu - \lambda + s,t) - C[s - \lambda ,s)\}\} \\&\le \sup _{0 \le \lambda \le s - p}\{\inf _{0 \le \mu \le \lambda + (t - s)}\{\alpha ^u(\mu ) + \beta ^u(\lambda + (t - s) - \mu ) - \beta ^l(\lambda )\}\} \\&\le \sup _{0 \le \lambda }\{\inf _{0 \le \mu \le \lambda + (t - s)}\{\alpha ^u(\mu ) + \beta ^u(\lambda + (t - s) - \mu ) - \beta ^l(\lambda )\}\} \\&= (\alpha ^u \otimes \beta ^u) \oslash \beta ^l \end{aligned}$$

Since the number of processed events can not be larger than the available resource, \(R'[s,t) \le \beta ^u(t - s)\), then we have \(R'[s,t) \le \min ( (\alpha ^u \otimes \beta ^u) \oslash \beta ^l , \beta ^u)\).

(2) The results for \(\alpha '^l\) can be proved as with a combination of \(\beta '^u\) and \(\alpha '^u\) .

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Tang, Y., Jiang, Y., Guan, N. (2019). Improving the Analysis of GPC in Real-Time Calculus. In: Guan, N., Katoen, JP., Sun, J. (eds) Dependable Software Engineering. Theories, Tools, and Applications. SETTA 2019. Lecture Notes in Computer Science(), vol 11951. Springer, Cham. https://doi.org/10.1007/978-3-030-35540-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-35540-1_7

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-35539-5

  • Online ISBN: 978-3-030-35540-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics