mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Add network unit 25 on TCP and UDP transport protocols.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0897f5f194
commit
d5219f5f8d
5 changed files with 158 additions and 18 deletions
28
README.md
28
README.md
|
|
@ -31,7 +31,7 @@ GTK 4 interface.
|
||||||
German learning path
|
German learning path
|
||||||
- **Správa počítačových sítí / Computer Network Administration** is open too
|
- **Správa počítačových sítí / Computer Network Administration** is open too
|
||||||
(shown with a Wi-Fi icon) and leads to a 30-unit computer-networks path;
|
(shown with a Wi-Fi icon) and leads to a 30-unit computer-networks path;
|
||||||
**units 1–24 are playable**, units 25–30 are locked placeholders
|
**units 1–25 are playable**, units 26–30 are locked placeholders
|
||||||
- **Technické vybavení / Computer Hardware** is open (chip icon) and leads
|
- **Technické vybavení / Computer Hardware** is open (chip icon) and leads
|
||||||
to a 10-unit hardware path; **units 1–3 are playable**, units 4–10 are
|
to a 10-unit hardware path; **units 1–3 are playable**, units 4–10 are
|
||||||
locked placeholders
|
locked placeholders
|
||||||
|
|
@ -62,7 +62,7 @@ GTK 4 interface.
|
||||||
- **Hints & model answers** – in exercises where you write or complete a German
|
- **Hints & model answers** – in exercises where you write or complete a German
|
||||||
sentence the Czech meaning is shown right away as a hint, and clicking the
|
sentence the Czech meaning is shown right away as a hint, and clicking the
|
||||||
check button also reveals the correct German sentence so you can compare
|
check button also reveals the correct German sentence so you can compare
|
||||||
- **Computer networks path** – twenty-four unlocked units (theory slides + practice):
|
- **Computer networks path** – twenty-five unlocked units (theory slides + practice):
|
||||||
1. **Výpočet IP adres / IP Address Calculation** – 4-slide VLSM walkthrough
|
1. **Výpočet IP adres / IP Address Calculation** – 4-slide VLSM walkthrough
|
||||||
and four interactive subnetting tasks (prefix, network, broadcast, host
|
and four interactive subnetting tasks (prefix, network, broadcast, host
|
||||||
range) with check and “show solution”
|
range) with check and “show solution”
|
||||||
|
|
@ -89,6 +89,7 @@ GTK 4 interface.
|
||||||
22. Paket IP – slides + quiz
|
22. Paket IP – slides + quiz
|
||||||
23. ICMP – slides + quiz
|
23. ICMP – slides + quiz
|
||||||
24. ARP – slides + quiz
|
24. ARP – slides + quiz
|
||||||
|
25. TCP a UDP – slides + quiz
|
||||||
Progress for networks is saved to `progress/net.conf` (one flag per unit);
|
Progress for networks is saved to `progress/net.conf` (one flag per unit);
|
||||||
completed network units show a checkmark on the path and count in Statistics
|
completed network units show a checkmark on the path and count in Statistics
|
||||||
- **Computer hardware path** – three unlocked units (theory slides + quiz):
|
- **Computer hardware path** – three unlocked units (theory slides + quiz):
|
||||||
|
|
@ -311,11 +312,11 @@ When launched, the application shows the welcome screen. From there:
|
||||||
unit 2 or **"Bei uns zu Hause"** for unit 3, then pick any bubble to start
|
unit 2 or **"Bei uns zu Hause"** for unit 3, then pick any bubble to start
|
||||||
an exercise. Units 2 and 3 are available even if the earlier units are not
|
an exercise. Units 2 and 3 are available even if the earlier units are not
|
||||||
finished yet.
|
finished yet.
|
||||||
5. On the networks path, units **1–24** are open. Unit 1 (**Výpočet IP adres**)
|
5. On the networks path, units **1–25** are open. Unit 1 (**Výpočet IP adres**)
|
||||||
walks through four VLSM slides and then four interactive subnetting tasks
|
walks through four VLSM slides and then four interactive subnetting tasks
|
||||||
with check / “show solution”. Units 2–24 each have theory slides followed by
|
with check / “show solution”. Units 2–25 each have theory slides followed by
|
||||||
a multiple-choice quiz (basic concepts through ARP).
|
a multiple-choice quiz (basic concepts through TCP and UDP).
|
||||||
Units 25–30 stay locked placeholders.
|
Units 26–30 stay locked placeholders.
|
||||||
6. On the hardware path, units **1–3** are open (architecture / von Neumann,
|
6. On the hardware path, units **1–3** are open (architecture / von Neumann,
|
||||||
computer history generations, bit & byte), each with slides and a quiz.
|
computer history generations, bit & byte), each with slides and a quiz.
|
||||||
Units 4–10 stay locked.
|
Units 4–10 stay locked.
|
||||||
|
|
@ -466,7 +467,7 @@ moderním GTK 4 rozhraním stylovaným přes CSS.
|
||||||
- **Deutsch** je otevřený (bublina s německou vlajkou) a vede na německou
|
- **Deutsch** je otevřený (bublina s německou vlajkou) a vede na německou
|
||||||
učební cestu
|
učební cestu
|
||||||
- **Správa počítačových sítí** je také otevřená (ikona Wi‑Fi) a vede na cestu
|
- **Správa počítačových sítí** je také otevřená (ikona Wi‑Fi) a vede na cestu
|
||||||
s 30 jednotkami; **jednotky 1–24 jsou hratelné**, 25–30 jsou zamčené
|
s 30 jednotkami; **jednotky 1–25 jsou hratelné**, 26–30 jsou zamčené
|
||||||
placeholdery
|
placeholdery
|
||||||
- **Technické vybavení** je otevřené (ikona čipu) a vede na cestu
|
- **Technické vybavení** je otevřené (ikona čipu) a vede na cestu
|
||||||
s 10 jednotkami; **jednotky 1–3 jsou hratelné**, 4–10 jsou zamčené
|
s 10 jednotkami; **jednotky 1–3 jsou hratelné**, 4–10 jsou zamčené
|
||||||
|
|
@ -492,7 +493,7 @@ moderním GTK 4 rozhraním stylovaným přes CSS.
|
||||||
„Was siehst du?“, řazení vět, chybějící písmena)
|
„Was siehst du?“, řazení vět, chybějící písmena)
|
||||||
- **Nápovědy a vzorové odpovědi** – u psaných / doplňovaných vět je hned
|
- **Nápovědy a vzorové odpovědi** – u psaných / doplňovaných vět je hned
|
||||||
český význam; po kontrole se ukáže i správná německá věta
|
český význam; po kontrole se ukáže i správná německá věta
|
||||||
- **Cesta počítačových sítí** – čtyřiadvacet odemčených jednotek (snímky + cvičení):
|
- **Cesta počítačových sítí** – pětadvacet odemčených jednotek (snímky + cvičení):
|
||||||
1. **Výpočet IP adres** – 4 snímky VLSM a čtyři interaktivní úlohy
|
1. **Výpočet IP adres** – 4 snímky VLSM a čtyři interaktivní úlohy
|
||||||
(prefix, síť, broadcast, rozsah uzlů) s kontrolou a „ukázat řešení“
|
(prefix, síť, broadcast, rozsah uzlů) s kontrolou a „ukázat řešení“
|
||||||
2. Základní pojmy a rozdělení sítí – snímky + kvíz
|
2. Základní pojmy a rozdělení sítí – snímky + kvíz
|
||||||
|
|
@ -518,6 +519,7 @@ moderním GTK 4 rozhraním stylovaným přes CSS.
|
||||||
22. Paket IP – snímky + kvíz
|
22. Paket IP – snímky + kvíz
|
||||||
23. ICMP – snímky + kvíz
|
23. ICMP – snímky + kvíz
|
||||||
24. ARP – snímky + kvíz
|
24. ARP – snímky + kvíz
|
||||||
|
25. TCP a UDP – snímky + kvíz
|
||||||
Postup u sítí se ukládá do `progress/net.conf` (příznak na jednotku);
|
Postup u sítí se ukládá do `progress/net.conf` (příznak na jednotku);
|
||||||
dokončené jednotky mají fajfku na cestě a počítají se ve Statistikách
|
dokončené jednotky mají fajfku na cestě a počítají se ve Statistikách
|
||||||
- **Cesta technického vybavení** – tři odemčené jednotky (snímky + kvíz):
|
- **Cesta technického vybavení** – tři odemčené jednotky (snímky + kvíz):
|
||||||
|
|
@ -738,10 +740,10 @@ Po spuštění se zobrazí úvodní obrazovka. Odtud:
|
||||||
4. Otevřete **"Neue Freunde"** (jednotka 1), **"Aus aller Welt"** (2) nebo
|
4. Otevřete **"Neue Freunde"** (jednotka 1), **"Aus aller Welt"** (2) nebo
|
||||||
**"Bei uns zu Hause"** (3) a vyberte bublinu cvičení. Jednotky 2 a 3 jdou
|
**"Bei uns zu Hause"** (3) a vyberte bublinu cvičení. Jednotky 2 a 3 jdou
|
||||||
otevřít i bez dokončení předchozích.
|
otevřít i bez dokončení předchozích.
|
||||||
5. Na síťové cestě jsou otevřené jednotky **1–24**. Jednotka 1 (**Výpočet IP
|
5. Na síťové cestě jsou otevřené jednotky **1–25**. Jednotka 1 (**Výpočet IP
|
||||||
adres**) má 4 snímky VLSM a pak 4 interaktivní úlohy s kontrolou /
|
adres**) má 4 snímky VLSM a pak 4 interaktivní úlohy s kontrolou /
|
||||||
„ukázat řešení“. Jednotky 2–24 mají snímky teorie a kvíz s výběrem
|
„ukázat řešení“. Jednotky 2–25 mají snímky teorie a kvíz s výběrem
|
||||||
(od základních pojmů po ARP). Jednotky 25–30 zůstávají zamčené.
|
(od základních pojmů po TCP a UDP). Jednotky 26–30 zůstávají zamčené.
|
||||||
6. Na cestě technického vybavení jsou otevřené jednotky **1–3** (architektura /
|
6. Na cestě technického vybavení jsou otevřené jednotky **1–3** (architektura /
|
||||||
von Neumann, historie generací, bit a byte), každá se snímky a kvízem.
|
von Neumann, historie generací, bit a byte), každá se snímky a kvízem.
|
||||||
Jednotky 4–10 zůstávají zamčené.
|
Jednotky 4–10 zůstávají zamčené.
|
||||||
|
|
@ -785,8 +787,8 @@ exercise_u1.c cvičení jednotky 1 („Neue Freunde“)
|
||||||
exercise_u2.c cvičení jednotky 2 („Aus aller Welt“)
|
exercise_u2.c cvičení jednotky 2 („Aus aller Welt“)
|
||||||
exercise_u3.c cvičení jednotky 3 („Bei uns zu Hause“)
|
exercise_u3.c cvičení jednotky 3 („Bei uns zu Hause“)
|
||||||
settings.c panel nastavení (režim, téma, jazyk)
|
settings.c panel nastavení (režim, téma, jazyk)
|
||||||
net.c cesta počítačových sítí (30 uzlů), jednotky 1–24
|
net.c cesta počítačových sítí (30 uzlů), jednotky 1–25
|
||||||
(1: VLSM cvičení; 2–24: kvízy s výběrem)
|
(1: VLSM cvičení; 2–25: kvízy s výběrem)
|
||||||
hw.c cesta technického vybavení (10 uzlů), jednotky 1–3
|
hw.c cesta technického vybavení (10 uzlů), jednotky 1–3
|
||||||
(architektura, historie, bit/byte + kvízy)
|
(architektura, historie, bit/byte + kvízy)
|
||||||
main.c vstupní bod aplikace a zapojení stránek
|
main.c vstupní bod aplikace a zapojení stránek
|
||||||
|
|
|
||||||
22
i18n.c
22
i18n.c
|
|
@ -341,6 +341,12 @@ const TrEntry tr_ui[] = {
|
||||||
"5 slides about ARP/RARP and cache, then a quiz."},
|
"5 slides about ARP/RARP and cache, then a quiz."},
|
||||||
{"net_ex24_title", "Kvíz: ARP",
|
{"net_ex24_title", "Kvíz: ARP",
|
||||||
"Quiz: ARP"},
|
"Quiz: ARP"},
|
||||||
|
{"net_unit25", "TCP a UDP",
|
||||||
|
"TCP and UDP"},
|
||||||
|
{"net_unit25_sub", "6 snímků o transportní vrstvě a pak kvíz.",
|
||||||
|
"6 slides about the transport layer, then a quiz."},
|
||||||
|
{"net_ex25_title", "Kvíz: TCP a UDP",
|
||||||
|
"Quiz: TCP and UDP"},
|
||||||
{"net_quiz_intro",
|
{"net_quiz_intro",
|
||||||
"Vyberte u každé otázky jednu správnou odpověď a stiskněte Zkontrolovat.",
|
"Vyberte u každé otázky jednu správnou odpověď a stiskněte Zkontrolovat.",
|
||||||
"Choose one correct answer for each question and press Check."},
|
"Choose one correct answer for each question and press Check."},
|
||||||
|
|
@ -390,6 +396,8 @@ const TrEntry tr_ui[] = {
|
||||||
"Quiz on ICMP"},
|
"Quiz on ICMP"},
|
||||||
{"net_quiz24_head", "Kvíz k ARP",
|
{"net_quiz24_head", "Kvíz k ARP",
|
||||||
"Quiz on ARP"},
|
"Quiz on ARP"},
|
||||||
|
{"net_quiz25_head", "Kvíz k TCP a UDP",
|
||||||
|
"Quiz on TCP and UDP"},
|
||||||
{"net_slide_next", "Další", "Next"},
|
{"net_slide_next", "Další", "Next"},
|
||||||
{"net_slide_prev", "Zpět", "Back"},
|
{"net_slide_prev", "Zpět", "Back"},
|
||||||
{"net_slide_start", "Přejít na cvičení", "Go to the exercise"},
|
{"net_slide_start", "Přejít na cvičení", "Go to the exercise"},
|
||||||
|
|
@ -762,6 +770,20 @@ const TrEntry tr_content[] = {
|
||||||
"An ARP reply is a unicast with the MAC"},
|
"An ARP reply is a unicast with the MAC"},
|
||||||
{"ARP cache ukládá výsledky dočasně (arp -a)", NULL,
|
{"ARP cache ukládá výsledky dočasně (arp -a)", NULL,
|
||||||
"ARP cache stores results temporarily (arp -a)"},
|
"ARP cache stores results temporarily (arp -a)"},
|
||||||
|
{"TCP = spolehlivý a spojovaný", NULL,
|
||||||
|
"TCP = reliable and connection-oriented"},
|
||||||
|
{"UDP = nespolehlivý, nespojovaný, malá režie", NULL,
|
||||||
|
"UDP = unreliable, connectionless, low overhead"},
|
||||||
|
{"Porty rozlišují aplikace na uzlu", NULL,
|
||||||
|
"Ports distinguish applications on a node"},
|
||||||
|
{"TCP se navazuje three-way handshake", NULL,
|
||||||
|
"TCP is established with a three-way handshake"},
|
||||||
|
{"TCP hlavička 20 B, UDP 8 B", NULL,
|
||||||
|
"TCP header is 20 B, UDP is 8 B"},
|
||||||
|
{"TCP čeká na znovudoručení – špatné pro real-time", NULL,
|
||||||
|
"TCP waits for retransmission – bad for real-time"},
|
||||||
|
{"SCTP: multihoming a multistreaming", NULL,
|
||||||
|
"SCTP: multihoming and multistreaming"},
|
||||||
{"čtrnáct", NULL, "fourteen"},
|
{"čtrnáct", NULL, "fourteen"},
|
||||||
{"sedmnáct", NULL, "seventeen"},
|
{"sedmnáct", NULL, "seventeen"},
|
||||||
{"dvacet", NULL, "twenty"},
|
{"dvacet", NULL, "twenty"},
|
||||||
|
|
|
||||||
1
main.c
1
main.c
|
|
@ -270,6 +270,7 @@ void activate(GtkApplication *app, gpointer user_data) {
|
||||||
{"netunit22", "netex22", build_net_unit22_page, build_net_unit22_exercise_page},
|
{"netunit22", "netex22", build_net_unit22_page, build_net_unit22_exercise_page},
|
||||||
{"netunit23", "netex23", build_net_unit23_page, build_net_unit23_exercise_page},
|
{"netunit23", "netex23", build_net_unit23_page, build_net_unit23_exercise_page},
|
||||||
{"netunit24", "netex24", build_net_unit24_page, build_net_unit24_exercise_page},
|
{"netunit24", "netex24", build_net_unit24_page, build_net_unit24_exercise_page},
|
||||||
|
{"netunit25", "netex25", build_net_unit25_page, build_net_unit25_exercise_page},
|
||||||
};
|
};
|
||||||
|
|
||||||
for (guint i = 0; i < G_N_ELEMENTS(net_pages); i++) {
|
for (guint i = 0; i < G_N_ELEMENTS(net_pages); i++) {
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,8 @@
|
||||||
#define NET22_SLIDES 8
|
#define NET22_SLIDES 8
|
||||||
#define NET23_SLIDES 5
|
#define NET23_SLIDES 5
|
||||||
#define NET24_SLIDES 5
|
#define NET24_SLIDES 5
|
||||||
#define NET_LESSONS 24
|
#define NET25_SLIDES 6
|
||||||
|
#define NET_LESSONS 25
|
||||||
#define HW_UNITS 10
|
#define HW_UNITS 10
|
||||||
#define HW_LESSONS 3
|
#define HW_LESSONS 3
|
||||||
#define HW_SLIDES 3
|
#define HW_SLIDES 3
|
||||||
|
|
@ -1111,6 +1112,7 @@ GtkWidget *build_net_unit21_page(void);
|
||||||
GtkWidget *build_net_unit22_page(void);
|
GtkWidget *build_net_unit22_page(void);
|
||||||
GtkWidget *build_net_unit23_page(void);
|
GtkWidget *build_net_unit23_page(void);
|
||||||
GtkWidget *build_net_unit24_page(void);
|
GtkWidget *build_net_unit24_page(void);
|
||||||
|
GtkWidget *build_net_unit25_page(void);
|
||||||
GtkWidget *net_qz_combo(void);
|
GtkWidget *net_qz_combo(void);
|
||||||
void net_qz_set_prefix(GtkComboBoxText *c, int pfx);
|
void net_qz_set_prefix(GtkComboBoxText *c, int pfx);
|
||||||
int net_qz_prefix(GtkComboBoxText *c);
|
int net_qz_prefix(GtkComboBoxText *c);
|
||||||
|
|
@ -1148,6 +1150,7 @@ GtkWidget *build_net_unit21_exercise_page(void);
|
||||||
GtkWidget *build_net_unit22_exercise_page(void);
|
GtkWidget *build_net_unit22_exercise_page(void);
|
||||||
GtkWidget *build_net_unit23_exercise_page(void);
|
GtkWidget *build_net_unit23_exercise_page(void);
|
||||||
GtkWidget *build_net_unit24_exercise_page(void);
|
GtkWidget *build_net_unit24_exercise_page(void);
|
||||||
|
GtkWidget *build_net_unit25_exercise_page(void);
|
||||||
void activate(GtkApplication *app, gpointer user_data);
|
void activate(GtkApplication *app, gpointer user_data);
|
||||||
int main(int argc, char **argv);
|
int main(int argc, char **argv);
|
||||||
|
|
||||||
|
|
|
||||||
116
net.c
116
net.c
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
NetLesson net_lessons[NET_LESSONS] = {
|
NetLesson net_lessons[NET_LESSONS] = {
|
||||||
/* UI unit N maps to lesson content: unit 1 = IP/VLSM (extra);
|
/* UI unit N maps to lesson content: unit 1 = IP/VLSM (extra);
|
||||||
* units 2–24 = source topics (Základní pojmy … ARP). */
|
* units 2–25 = source topics (Základní pojmy … TCP/UDP). */
|
||||||
{ .n_slides = NET_SLIDES, .unit_page = "netunit1", .ex_page = "netex1" },
|
{ .n_slides = NET_SLIDES, .unit_page = "netunit1", .ex_page = "netex1" },
|
||||||
{ .n_slides = NET2_SLIDES, .unit_page = "netunit2", .ex_page = "netex2" },
|
{ .n_slides = NET2_SLIDES, .unit_page = "netunit2", .ex_page = "netex2" },
|
||||||
{ .n_slides = NET3_SLIDES, .unit_page = "netunit3", .ex_page = "netex3" },
|
{ .n_slides = NET3_SLIDES, .unit_page = "netunit3", .ex_page = "netex3" },
|
||||||
|
|
@ -30,6 +30,7 @@ NetLesson net_lessons[NET_LESSONS] = {
|
||||||
{ .n_slides = NET22_SLIDES, .unit_page = "netunit22", .ex_page = "netex22" },
|
{ .n_slides = NET22_SLIDES, .unit_page = "netunit22", .ex_page = "netex22" },
|
||||||
{ .n_slides = NET23_SLIDES, .unit_page = "netunit23", .ex_page = "netex23" },
|
{ .n_slides = NET23_SLIDES, .unit_page = "netunit23", .ex_page = "netex23" },
|
||||||
{ .n_slides = NET24_SLIDES, .unit_page = "netunit24", .ex_page = "netex24" },
|
{ .n_slides = NET24_SLIDES, .unit_page = "netunit24", .ex_page = "netex24" },
|
||||||
|
{ .n_slides = NET25_SLIDES, .unit_page = "netunit25", .ex_page = "netex25" },
|
||||||
};
|
};
|
||||||
|
|
||||||
void net_paragraph(GtkWidget *box, const char *text) {
|
void net_paragraph(GtkWidget *box, const char *text) {
|
||||||
|
|
@ -472,7 +473,7 @@ void net_add_node(GtkFixed *fixed, int index) {
|
||||||
"net_unit6", "net_unit7", "net_unit8", "net_unit9", "net_unit10",
|
"net_unit6", "net_unit7", "net_unit8", "net_unit9", "net_unit10",
|
||||||
"net_unit11", "net_unit12", "net_unit13", "net_unit14", "net_unit15",
|
"net_unit11", "net_unit12", "net_unit13", "net_unit14", "net_unit15",
|
||||||
"net_unit16", "net_unit17", "net_unit18", "net_unit19", "net_unit20",
|
"net_unit16", "net_unit17", "net_unit18", "net_unit19", "net_unit20",
|
||||||
"net_unit21", "net_unit22", "net_unit23", "net_unit24"
|
"net_unit21", "net_unit22", "net_unit23", "net_unit24", "net_unit25"
|
||||||
};
|
};
|
||||||
|
|
||||||
card = gtk_button_new();
|
card = gtk_button_new();
|
||||||
|
|
@ -2096,6 +2097,76 @@ GtkWidget *build_net_unit24_page(void) {
|
||||||
slides, NET24_SLIDES);
|
slides, NET24_SLIDES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GtkWidget *build_net_unit25_page(void) {
|
||||||
|
static const NetSlide slides[NET25_SLIDES] = {
|
||||||
|
{
|
||||||
|
"1 / 6 • TCP vs UDP", "Základní rozdíly",
|
||||||
|
NULL,
|
||||||
|
{
|
||||||
|
"TCP: spolehlivý a spojovaný přenos.",
|
||||||
|
"Potvrzování, kontrola pořadí a řízení toku.",
|
||||||
|
"UDP: nespolehlivý a nespojovaný.",
|
||||||
|
"Minimální režie – neřeší potvrzení ani pořadí.",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"2 / 6 • Porty", "Multiplex a demultiplex",
|
||||||
|
NULL,
|
||||||
|
{
|
||||||
|
"Porty rozlišují aplikace (procesy) na jednom uzlu.",
|
||||||
|
"Multiplex: sběr dat od aplikací do segmentů/datagramů.",
|
||||||
|
"Demultiplex: doručení příchozích dat správné aplikaci",
|
||||||
|
"podle čísla portu.",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"3 / 6 • TCP", "Spojení a vlastnosti",
|
||||||
|
"Tip: three-way handshake",
|
||||||
|
{
|
||||||
|
"Navázání spojení: třícestné podání ruky.",
|
||||||
|
"Streamově orientovaný a full duplex.",
|
||||||
|
"Jen unicast – bez multicastu a broadcastu.",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"4 / 6 • Nevýhody TCP", "Režie a real-time",
|
||||||
|
NULL,
|
||||||
|
{
|
||||||
|
"Větší režie: hlavička 20 B (UDP má 8 B).",
|
||||||
|
"Nevhodný pro real-time média: ztráta segmentu",
|
||||||
|
"zastaví proud a čeká se na znovudoručení.",
|
||||||
|
"Bez multihomingu – výpadek rozhraní shodí spojení.",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"5 / 6 • Alternativy", "SCTP a DCCP",
|
||||||
|
NULL,
|
||||||
|
{
|
||||||
|
"SCTP: multihoming a multistreaming (až 64k proudů).",
|
||||||
|
"DCCP: datagramy s řízením zahlcení",
|
||||||
|
"(streaming, IP telefonie).",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"6 / 6 • Shrnutí", "Kdy co použít",
|
||||||
|
NULL,
|
||||||
|
{
|
||||||
|
"TCP: spolehlivá data (web, pošta, soubory).",
|
||||||
|
"UDP: rychlost a nízká režie (DNS, hry, real-time).",
|
||||||
|
NULL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
return build_net_unit_page(&net_lessons[24], "net_unit25", "net_unit25_sub",
|
||||||
|
slides, NET25_SLIDES);
|
||||||
|
}
|
||||||
|
|
||||||
/* Solutions below are the canonical "largest subnet first, in order A–D"
|
/* Solutions below are the canonical "largest subnet first, in order A–D"
|
||||||
* allocation. Scenario 3 does not fit into a /24 as written, which is why
|
* allocation. Scenario 3 does not fit into a /24 as written, which is why
|
||||||
* its "solution" explains that instead. */
|
* its "solution" explains that instead. */
|
||||||
|
|
@ -3537,3 +3608,44 @@ GtkWidget *build_net_unit24_exercise_page(void) {
|
||||||
(int)G_N_ELEMENTS(net24_qs));
|
(int)G_N_ELEMENTS(net24_qs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ChoiceQ net25_qs[] = {
|
||||||
|
{"TCP je:",
|
||||||
|
{"Spolehlivý a spojovaný", "Nespolehlivý a nespojovaný",
|
||||||
|
"Jen fyzická vrstva", "Jen ARP cache"}, 4, 0},
|
||||||
|
{"UDP je:",
|
||||||
|
{"Nespolehlivý a nespojovaný s malou režií",
|
||||||
|
"Spolehlivý se třícestným handshake", "Jen store-and-forward",
|
||||||
|
"Jen ICMP Time Exceeded"}, 4, 0},
|
||||||
|
{"Porty slouží k:",
|
||||||
|
{"Rozlišení aplikací na jednom uzlu", "Jen směrování IP",
|
||||||
|
"Jen MAC učení", "Jen lámání vlákna"}, 4, 0},
|
||||||
|
{"Navázání TCP spojení používá:",
|
||||||
|
{"Třícestné podání ruky (three-way handshake)",
|
||||||
|
"Jen broadcast ARP", "Jen Source Quench", "Jen cut-through"}, 4, 0},
|
||||||
|
{"Hlavička TCP má typicky:",
|
||||||
|
{"20 B (UDP 8 B)", "8 B (UDP 20 B)", "1500 B", "64 B min. rámec"}, 4, 0},
|
||||||
|
{"TCP není vhodný pro real-time média hlavně proto, že:",
|
||||||
|
{"Ztráta segmentu zastaví proud a čeká se na znovudoručení",
|
||||||
|
"Nemá žádné porty", "Nepodporuje unicast",
|
||||||
|
"Nemá hlavičku"}, 4, 0},
|
||||||
|
{"SCTP oproti TCP nabízí:",
|
||||||
|
{"Multihoming a multistreaming", "Jen Ethernet II",
|
||||||
|
"Jen RARP", "Jen hub flooding"}, 4, 0},
|
||||||
|
};
|
||||||
|
|
||||||
|
const char *net25_hints[] = {
|
||||||
|
"TCP = spolehlivý a spojovaný",
|
||||||
|
"UDP = nespolehlivý, nespojovaný, malá režie",
|
||||||
|
"Porty rozlišují aplikace na uzlu",
|
||||||
|
"TCP se navazuje three-way handshake",
|
||||||
|
"TCP hlavička 20 B, UDP 8 B",
|
||||||
|
"TCP čeká na znovudoručení – špatné pro real-time",
|
||||||
|
"SCTP: multihoming a multistreaming",
|
||||||
|
};
|
||||||
|
|
||||||
|
GtkWidget *build_net_unit25_exercise_page(void) {
|
||||||
|
return build_net_mcq_page(24, "netunit25", "net_ex25_title", "net_quiz25_head",
|
||||||
|
net25_qs, net25_hints,
|
||||||
|
(int)G_N_ELEMENTS(net25_qs));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue