東京大学 情報理工学系研究科 創造情報学専攻 2014年8月実施 筆記試験 第2問
Author
Description
Official examination, archived Japanese PDF. Consider the system (shown in Fig. 1) that transfers the packets arriving from the three input lines to the output line every discrete time . When there is any packet in the buffer, one packet in the buffer is transferred to the output line. Packets from the input lines arrive and are stored in the buffer. The packet arriving probability of three input lines are the same value , all of arriving packets from input lines have the same size, and the maximum number of packets to be able to be stored in the buffer is three. Since the buffer cannot store the larger number of packets than its capacity, the arrived packet(s) that can not be stored in the buffer is(are) discarded. Here, the packet(s) to be discarded is(are) randomly selected regardless of the input line. Then, answer the following questions.
(1) Show the probability , where the number of arriving packets from three input lines is in , and show the expected number of arriving packets.
(2) Show the state transition diagram, related with the number of packets in the buffer.
(3) Describe how to calculate the expected number of packets in the buffer.
(4) Describe how to calculate the probability of packet drop at the buffer.
Consider the modified system: the packets from input line 1 are given the transmission priority to the output line than the packets from other input lines, and no packet arrival from input line 3.
(5) Describe the state transition diagram with the definition of states, in order to calculate the expected number of packets in the buffer and the probability of packet drop at the buffer regarding the packets arriving from input line 2.
题目描述
图 1 的系统每隔离散时间 秒,把三条输入线到达的分组转发到一条输出线。若缓冲区非空,每个时隙先从中转发一个分组;随后输入分组到达并存入缓冲区。三条输入线在一个时隙内各自有分组到达的概率均为 (),所有分组等长,缓冲区最多存 3 个分组。超过容量而不能存入的到达分组会被丢弃,丢弃对象与输入线无关并随机选择。
- 求一个时隙内三条输入线合计到达 个分组的概率 ,以及到达分组数的期望。
- 以缓冲区分组数为状态,画状态转移图。
- 说明如何计算缓冲区内分组数的稳态期望。
- 说明如何计算缓冲区的分组丢弃概率。
再考虑修改后的系统:输入线 1 的分组比其他输入线分组具有更高的输出传输优先级,并且输入线 3 不再有分组到达。
- 为计算缓冲区中来自输入线 2 的期望分组数以及该输入线分组的丢弃概率,恰当定义能够区分优先级的状态,并画出相应状态转移图。
Kai
Use independent Bernoulli arrivals on different input lines and in different slots. Observe the buffer immediately after a slot's arrivals, and follow the stated service-then-arrival order. Excess new arrivals are selected uniformly for rejection; already buffered packets are not replaced by newer ones. These conventions determine the following transition model.
(1) Arrival distribution
If is the number of arrivals in one slot, then
and . The expectation only needs the marginal arrival probabilities. Independence is needed for the binomial distribution: if all three lines always arrive together, instead , with , despite exactly the same marginals.
(2) Buffer-count state transitions
Let be the state after arrivals in slot . After the next departure there are packets, and
In state order , the transition matrix is
Equivalently, this adjacency table specifies every arc of the state-transition graph; omitted destinations have zero probability:
| From | To 0 | To 1 | To 2 | To 3 |
|---|---|---|---|---|
| 0 | ||||
| 1 | ||||
| 2 | 0 | |||
| 3 | 0 | 0 |
Rows 0 and 1 coincide because service leaves an empty buffer in either case.
(3) Expected occupancy
Solve the four stationary balance equations and normalization
For the finite chain is irreducible and aperiodic, giving a unique limiting distribution. The post-arrival mean is
If occupancy is sampled just after service instead, its mean is ; the sampling convention must be specified. For a transient rather than a steady-state expectation, propagate an initial row vector by and use the same weighted sum. At the stationary state is 0; at it is 3.
(4) Packet drop probability
Given state and arrivals, the number rejected is
For no arrivals are dropped. For , exactly one is dropped only when ; for , one is dropped when and two when . The mean loss per slot is consequently
For , the loss probability of a randomly chosen arriving packet is
This differs from the probability that a slot has any loss, . A useful conservation check is , because the right-hand side is the mean number transmitted per slot. At , the packet loss probability is . At , there are no arrivals, so the conditional packet-loss probability has no sampled packet; it may be reported as zero by convention.
(5) Priority for line 1; no line 3 arrivals
A total count alone cannot determine which class is served. Use state , where counts line-1 packets and counts line-2 packets, with
There are ten states. If , serve a high-priority packet; otherwise serve one low-priority packet if available. The state just after this service is
The complete graph is specified by the following service mapping and arrival arcs. Every state on one row has the listed post-service state:
| Current state(s) | Post-service state |
|---|---|
Put , , and . For each current state, draw its outgoing arcs as follows:
| Post-service occupancy | Destination after arrivals | Arc probability |
|---|---|---|
In the last case, simultaneous arrivals compete for one empty slot. Each is admitted with probability , because service priority does not change the stated random drop policy. Starting empty, always holds, so states with are transient/unreachable and may be removed from the working graph.
Build from these arcs, solve with , and calculate the requested line-2 mean and its loss probability by
Indeed, line 2 loses a packet only when the pre-service buffer is full, both lines arrive, and line 2 loses the random admission choice. That event has mean loss per full-buffer slot; divide by the arrival rate . Total mean occupancy, if also desired, is . At , the stationary states and each have probability , giving and line-2 loss probability .