{"schema":"article/1","id":"art_abd8822c00","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"ポリシングは捨て、シェーピングは待たせる","rawTitle":"ポリシングは捨て、シェーピングは待たせる","slug":"nw-basics-extra-d-qos","file":"ネットワーク_別枠D_QoSの工程","relPath":"content/published/ネットワーク_別枠D_QoSの工程.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","qos","dscp","concept"],"summary":"混んだときだけ効く 5 つの処理（分類・マーキング・ポリシング・キューイング・シェーピング）を 1 枚で見る。捨てるのはどれで、待たせるのはどれか","date":"2026-09-14","updated":"2026-09-14","links":["nw-basics-09-acl","nw-basics-11-ipsec","nw-basics-index","nw-basics-00-three-layers","nw-basics-extra-c-ios-modes"],"blocks":[{"id":"blk_681db2","type":"paragraph","markdown":"本編の図では、通信は詰まらずに流れるものとして描いてきました。","text":"本編の図では、通信は詰まらずに流れるものとして描いてきました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f3cbfd","type":"paragraph","markdown":"混んだときに何が起きるかは、1 本の通信を追う形では出てきません。\n同じ口に集まった他の通信との関係で決まる話なので、別枠の 1 枚にまとめます。","text":"混んだときに何が起きるかは、1 本の通信を追う形では出てきません。\n同じ口に集まった他の通信との関係で決まる話なので、別枠の 1 枚にまとめます。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bb713c","type":"paragraph","markdown":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","text":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","line":7,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9f86bf","type":"paragraph","markdown":"QoS が効くのは、出口の速さより入ってくる量が多いときだけです。\nCisco の文書は、混んでいないときは届いたパケットがそのまま口から出ていくと書いています。","text":"QoS が効くのは、出口の速さより入ってくる量が多いときだけです。\nCisco の文書は、混んでいないときは届いたパケットがそのまま口から出ていくと書いています。","line":10,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34ba84","type":"heading","depth":2,"markdown":"## 登場するもの","text":"登場するもの","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_158ab8","type":"heading","depth":4,"markdown":"#### 分類","text":"分類","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_27f257","type":"paragraph","markdown":"どの通信かを決める処理です。\n見るのは、送信元・宛先・ポート番号といった ACL と同じ材料か、すでに付いている印です。","text":"どの通信かを決める処理です。\n見るのは、送信元・宛先・ポート番号といった ACL と同じ材料か、すでに付いている印です。","line":17,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_663db7","type":"heading","depth":4,"markdown":"#### マーキングと DSCP","text":"マーキングと DSCP","line":20,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8bf56a","type":"paragraph","markdown":"決めた種類を、パケット自身に印として書く処理です。\n印を書く欄は DS フィールドで、RFC 2474 が IPv4 の TOS オクテットと IPv6 の Traffic Class オクテットを置き換える形で定めています。\nそのうち 6 ビットが DSCP で、パケットが各機器でどう扱われるかを選びます。","text":"決めた種類を、パケット自身に印として書く処理です。\n印を書く欄は DS フィールドで、RFC 2474 が IPv4 の TOS オクテットと IPv6 の Traffic Class オクテットを置き換える形で定めています。\nそのうち 6 ビットが DSCP で、パケットが各機器でどう扱われるかを選びます。","line":22,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1d294a","type":"heading","depth":4,"markdown":"#### PHB","text":"PHB","line":26,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1c55e9","type":"paragraph","markdown":"その印を見て、1 台ごとにどう扱うかの取り決めです。\nRFC 2474 の定義では「外から見て分かる転送の扱い」を指します。","text":"その印を見て、1 台ごとにどう扱うかの取り決めです。\nRFC 2474 の定義では「外から見て分かる転送の扱い」を指します。","line":28,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0b740e","type":"heading","depth":4,"markdown":"#### ポリシング","text":"ポリシング","line":31,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_dd7156","type":"paragraph","markdown":"決めた速さを超えた分を捨てる処理です。\nCisco の文書は、捨てるのが普通だが印を付け替えることもある、と書いています。\n入口の側で「約束以上は受け取らない」と決めるときに使います。","text":"決めた速さを超えた分を捨てる処理です。\nCisco の文書は、捨てるのが普通だが印を付け替えることもある、と書いています。\n入口の側で「約束以上は受け取らない」と決めるときに使います。","line":33,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0f420a","type":"heading","depth":4,"markdown":"#### キューイングと輻輳回避","text":"キューイングと輻輳回避","line":37,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f6ffed","type":"paragraph","markdown":"出口の待ち行列に、種類ごとに並べる処理です。\n音声のように遅れに弱い通信は、優先の列に入れて先に出します。\n列が溢れる前に印の低いものから落としておく動きが輻輳回避で、一度にまとめて落ちるのを避けます。","text":"出口の待ち行列に、種類ごとに並べる処理です。\n音声のように遅れに弱い通信は、優先の列に入れて先に出します。\n列が溢れる前に印の低いものから落としておく動きが輻輳回避で、一度にまとめて落ちるのを避けます。","line":39,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_26e492","type":"heading","depth":4,"markdown":"#### シェーピング","text":"シェーピング","line":43,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_416a2e","type":"paragraph","markdown":"決めた速さを超えた分を、待たせて後から出す処理です。\n出口の側で「契約した速さに合わせる」ときに使います。","text":"決めた速さを超えた分を、待たせて後から出す処理です。\n出口の側で「契約した速さに合わせる」ときに使います。","line":45,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e209c0","type":"heading","depth":2,"markdown":"## 別枠 D の図","text":"別枠 D の図","line":48,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0302a5","type":"paragraph","markdown":"図の左から右が入口から出口までの 5 つの処理で、右下がシェーピングの説明です。","text":"図の左から右が入口から出口までの 5 つの処理で、右下がシェーピングの説明です。","line":50,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bd3978","type":"html","markdown":"<svg viewBox=\"0 0 900 430\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"QoS の工程\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"430\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">別枠 D：QoS の工程。ルータの中で、通信が「入ってから出るまで」に受ける 5 つの処理</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">線が混んだとき（出口の速度より入ってくる量が多いとき）だけ意味を持つ。空いていれば何もしないのと同じ</text>\n  <text x=\"20\" y=\"100\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">入口</text>\n  <line x1=\"50\" y1=\"96\" x2=\"72\" y2=\"96\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"71,91 71,101 80,96\" fill=\"#1f2937\"/>\n  <rect x=\"80\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"155.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">① 分類</text>\n  <text x=\"155.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">どの通信か決める</text>\n  <text x=\"155.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（音声？ 動画？ 事務？）</text>\n  <text x=\"155.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">見るもの：ACL（送信元・</text>\n  <text x=\"155.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">宛先・ポート番号）や既存の印</text>\n  <line x1=\"230\" y1=\"140\" x2=\"252\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"251,135 251,145 260,140\" fill=\"#0a7aff\"/>\n  <rect x=\"260\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"335.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">② マーキング</text>\n  <text x=\"335.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">決めた種類を印として</text>\n  <text x=\"335.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">パケットに書く</text>\n  <text x=\"335.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（IP ヘッダの DSCP 欄）</text>\n  <text x=\"335.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">次のルータはこの印だけ見る</text>\n  <line x1=\"410\" y1=\"140\" x2=\"432\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"431,135 431,145 440,140\" fill=\"#0a7aff\"/>\n  <rect x=\"440\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"515.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">③ ポリシング</text>\n  <text x=\"515.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">決めた速さを超えた分を</text>\n  <text x=\"515.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">捨てる（または印を下げる）</text>\n  <text x=\"515.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">入口側で使う</text>\n  <text x=\"515.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">「約束以上は受け取らない」</text>\n  <line x1=\"590\" y1=\"140\" x2=\"612\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"611,135 611,145 620,140\" fill=\"#0a7aff\"/>\n  <rect x=\"620\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">④ キューイング</text>\n  <text x=\"695.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">出口の待ち行列に</text>\n  <text x=\"695.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">種類ごとに並べる</text>\n  <text x=\"695.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">音声は優先の列</text>\n  <text x=\"695.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（混んでも先に出す）</text>\n  <text x=\"700\" y=\"215\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">混みすぎたら：輻輳回避</text>\n  <text x=\"700\" y=\"229\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">（列が溢れる前に、印の低いものから間引く）</text>\n  <line x1=\"770\" y1=\"140\" x2=\"792\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"791,135 791,145 800,140\" fill=\"#0a7aff\"/>\n  <rect x=\"800\" y=\"80\" width=\"80\" height=\"120\" rx=\"8\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"840.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">⑤</text>\n  <text x=\"840.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">シェーピ</text>\n  <text x=\"840.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ング</text>\n  <text x=\"840\" y=\"215\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">出口</text>\n  <rect x=\"20\" y=\"260\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"280\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">⑤ シェーピング（出口側）</text>\n  <text x=\"32\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">決めた速さを超えた分を、待たせて後で出す（捨てない）</text>\n  <text x=\"32\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">出口側で使う。「契約した速さに合わせて均す」</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">ポリシングは捨てる、シェーピングは待たせる。ここが試験の定番</text>\n  <text x=\"32\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">待たせるので遅延は増えるが、再送は減る</text>\n  <rect x=\"460\" y=\"260\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"280\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">なぜこの順か</text>\n  <text x=\"472\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">印（②）は入口で 1 回付ければ、あとの機器は ① をやり直さなくてよい</text>\n  <text x=\"472\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">③ は入口で「受け取る量」を決め、④⑤ は出口で「出す順と速さ」を決める</text>\n  <text x=\"472\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">音声は「遅れると使えない」ので ④ で優先、事務のファイル転送は待てるので後回し</text>\n  <text x=\"472\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">3 層で言えば全部「ルータの中の手順」。通信フローの ②（テーブルを探す）の後ろに挟まる</text>\n  <text x=\"20\" y=\"410\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">用語：DSCP＝IP ヘッダの 6 ビットの印。PHB（per-hop behavior）＝「各ルータがその印を見てどう扱うか」の取り決め。試験で問われるのは工程の名前と役割で、設定コマンドではない</text>\n</svg>","text":"<svg viewBox=\"0 0 900 430\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"QoS の工程\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"430\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">別枠 D：QoS の工程。ルータの中で、通信が「入ってから出るまで」に受ける 5 つの処理</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">線が混んだとき（出口の速度より入ってくる量が多いとき）だけ意味を持つ。空いていれば何もしないのと同じ</text>\n  <text x=\"20\" y=\"100\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">入口</text>\n  <line x1=\"50\" y1=\"96\" x2=\"72\" y2=\"96\" stroke=\"#1f2937\" stroke-width=\"2\"/><polygon points=\"71,91 71,101 80,96\" fill=\"#1f2937\"/>\n  <rect x=\"80\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"155.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">① 分類</text>\n  <text x=\"155.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">どの通信か決める</text>\n  <text x=\"155.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（音声？ 動画？ 事務？）</text>\n  <text x=\"155.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">見るもの：ACL（送信元・</text>\n  <text x=\"155.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">宛先・ポート番号）や既存の印</text>\n  <line x1=\"230\" y1=\"140\" x2=\"252\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"251,135 251,145 260,140\" fill=\"#0a7aff\"/>\n  <rect x=\"260\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"335.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">② マーキング</text>\n  <text x=\"335.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">決めた種類を印として</text>\n  <text x=\"335.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">パケットに書く</text>\n  <text x=\"335.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（IP ヘッダの DSCP 欄）</text>\n  <text x=\"335.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">次のルータはこの印だけ見る</text>\n  <line x1=\"410\" y1=\"140\" x2=\"432\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"431,135 431,145 440,140\" fill=\"#0a7aff\"/>\n  <rect x=\"440\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"515.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">③ ポリシング</text>\n  <text x=\"515.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">決めた速さを超えた分を</text>\n  <text x=\"515.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">捨てる（または印を下げる）</text>\n  <text x=\"515.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">入口側で使う</text>\n  <text x=\"515.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">「約束以上は受け取らない」</text>\n  <line x1=\"590\" y1=\"140\" x2=\"612\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"611,135 611,145 620,140\" fill=\"#0a7aff\"/>\n  <rect x=\"620\" y=\"80\" width=\"150\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">④ キューイング</text>\n  <text x=\"695.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">出口の待ち行列に</text>\n  <text x=\"695.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">種類ごとに並べる</text>\n  <text x=\"695.0\" y=\"148\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">音声は優先の列</text>\n  <text x=\"695.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（混んでも先に出す）</text>\n  <text x=\"700\" y=\"215\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">混みすぎたら：輻輳回避</text>\n  <text x=\"700\" y=\"229\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">（列が溢れる前に、印の低いものから間引く）</text>\n  <line x1=\"770\" y1=\"140\" x2=\"792\" y2=\"140\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"791,135 791,145 800,140\" fill=\"#0a7aff\"/>\n  <rect x=\"800\" y=\"80\" width=\"80\" height=\"120\" rx=\"8\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"840.0\" y=\"100\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">⑤</text>\n  <text x=\"840.0\" y=\"118\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">シェーピ</text>\n  <text x=\"840.0\" y=\"133\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ング</text>\n  <text x=\"840\" y=\"215\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">出口</text>\n  <rect x=\"20\" y=\"260\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"280\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">⑤ シェーピング（出口側）</text>\n  <text x=\"32\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">決めた速さを超えた分を、待たせて後で出す（捨てない）</text>\n  <text x=\"32\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">出口側で使う。「契約した速さに合わせて均す」</text>\n  <text x=\"32\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#b45309\">ポリシングは捨てる、シェーピングは待たせる。ここが試験の定番</text>\n  <text x=\"32\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">待たせるので遅延は増えるが、再送は減る</text>\n  <rect x=\"460\" y=\"260\" width=\"420\" height=\"120\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"472\" y=\"280\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">なぜこの順か</text>\n  <text x=\"472\" y=\"298\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">印（②）は入口で 1 回付ければ、あとの機器は ① をやり直さなくてよい</text>\n  <text x=\"472\" y=\"313\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">③ は入口で「受け取る量」を決め、④⑤ は出口で「出す順と速さ」を決める</text>\n  <text x=\"472\" y=\"328\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">音声は「遅れると使えない」ので ④ で優先、事務のファイル転送は待てるので後回し</text>\n  <text x=\"472\" y=\"343\" text-anchor=\"start\" font-size=\"10\" fill=\"#0a7aff\">3 層で言えば全部「ルータの中の手順」。通信フローの ②（テーブルを探す）の後ろに挟まる</text>\n  <text x=\"20\" y=\"410\" text-anchor=\"start\" font-size=\"10\" fill=\"#6b7280\">用語：DSCP＝IP ヘッダの 6 ビットの印。PHB（per-hop behavior）＝「各ルータがその印を見てどう扱うか」の取り決め。試験で問われるのは工程の名前と役割で、設定コマンドではない</text>\n</svg>","line":52,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_22feb4","type":"heading","depth":2,"markdown":"## 捨てるのか、待たせるのか","text":"捨てるのか、待たせるのか","line":108,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1a159c","type":"paragraph","markdown":"ポリシングとシェーピングは、どちらも「決めた速さを超えた分」を相手にします。\n出典にした Cisco の文書は、両者の違いをデータ用の待ち行列を持つかどうかに置き、待ち行列を持たなければポリシングになると書いています。","text":"ポリシングとシェーピングは、どちらも「決めた速さを超えた分」を相手にします。\n出典にした Cisco の文書は、両者の違いをデータ用の待ち行列を持つかどうかに置き、待ち行列を持たなければポリシングになると書いています。","line":110,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_692641","type":"paragraph","markdown":"待たせる側は、その分だけ遅れが増えます。\n捨てる側は遅れませんが、捨てられた分は届きません。","text":"待たせる側は、その分だけ遅れが増えます。\n捨てる側は遅れませんが、捨てられた分は届きません。","line":113,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bfd4d5","type":"heading","depth":2,"markdown":"## 本編との接続","text":"本編との接続","line":116,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_0fe630","type":"paragraph","markdown":"[ネットワーク\\_09\\_ACL](/notes/nw-basics-09-acl)（`/notes/nw-basics-09-acl`）で見た「送信元・宛先・ポート番号の組で通信を選ぶ」という見方は、ここでは通す・通さないではなく、どの種類かを決めるために使われます。","text":"ネットワーク_09_ACL（/notes/nw-basics-09-acl）で見た「送信元・宛先・ポート番号の組で通信を選ぶ」という見方は、ここでは通す・通さないではなく、どの種類かを決めるために使われます。","line":118,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_8afe64","type":"paragraph","markdown":"[ネットワーク\\_11\\_IPsec](/notes/nw-basics-11-ipsec)（`/notes/nw-basics-11-ipsec`）のように外側のヘッダで包んだ通信では、途中の機器が見られるのは外側の印だけです。","text":"ネットワーク_11_IPsec（/notes/nw-basics-11-ipsec）のように外側のヘッダで包んだ通信では、途中の機器が見られるのは外側の印だけです。","line":120,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1af7df","type":"paragraph","markdown":"CCNA では、分類・マーキング・キューイング・輻輳・ポリシング・シェーピングが 4.7 に並んでいます。\n問われるのは各機器の扱い（PHB）の説明で、設定ではありません。","text":"CCNA では、分類・マーキング・キューイング・輻輳・ポリシング・シェーピングが 4.7 に並んでいます。\n問われるのは各機器の扱い（PHB）の説明で、設定ではありません。","line":122,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":125,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_6201e2","type":"list","markdown":"- 図にある「待たせるので遅延は増えるが、再送は減る」の後半は、出典で確認できませんでした。確認できたのは、シェーピングが超過分を待ち行列で遅らせることと、ポリシングが捨てるか印を付け替えることまでです。\n- 図は、この 5 つを本編の通信フローの「テーブルで一致する行を探す」の後ろに置いています。実際の機器では、入口での分類は経路を探す前に行われることがあります。図の並びは 5 つの処理の前後関係を示したもので、経路の探索との前後を確かめたものではありません。\n- 輻輳回避が印のどれを先に落とすかは、機器の設定によります。出典の文書は IP precedence または DSCP の値で落とす確率を変えると書いています。\n- 音声を優先の列に入れる動きは、Cisco の文書では低遅延キューイング（LLQ）として説明されています。図はその名前を出さず、動きだけを書いています。\n- 図と本文は、種類の決め方と印の付け方までを扱います。どの通信にどの値を割り当てるかは、この記事の範囲外です。","text":"図にある「待たせるので遅延は増えるが、再送は減る」の後半は、出典で確認できませんでした。確認できたのは、シェーピングが超過分を待ち行列で遅らせることと、ポリシングが捨てるか印を付け替えることまでです。図は、この 5 つを本編の通信フローの「テーブルで一致する行を探す」の後ろに置いています。実際の機器では、入口での分類は経路を探す前に行われることがあります。図の並びは 5 つの処理の前後関係を示したもので、経路の探索との前後を確かめたものではありません。輻輳回避が印のどれを先に落とすかは、機器の設定によります。出典の文書は IP precedence または DSCP の値で落とす確率を変えると書いています。音声を優先の列に入れる動きは、Cisco の文書では低遅延キューイング（LLQ）として説明されています。図はその名前を出さず、動きだけを書いています。図と本文は、種類の決め方と印の付け方までを扱います。どの通信にどの値を割り当てるかは、この記事の範囲外です。","line":127,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":133,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9e2d82","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [Cisco: Policing and Shaping Overview](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_plcshp/configuration/xe-16/qos-plcshp-xe-16-book/qos-plcshp-oview.html) — 「A policer typically drops traffic, but it can also change the setting or 'marking' of a packet.」「A shaper typically delays excess traffic using a buffer, or queueing mechanism, to hold packets and shape the flow when the data rate of the source is higher than expected.」「if it did not have a data buffer, it would be a policer」\n- [Cisco: Congestion Management Overview](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_conmgt/configuration/xe-16/qos-conmgt-xe-16-book/qos-conmgt-oview.html) — 「During periods with light traffic, that is, when no congestion exists, packets are sent out the interface as soon as they arrive.」「Strict PQ allows delay-sensitive data such as voice to be dequeued and sent before packets in other queues are dequeued.」\n- [Cisco: Congestion Avoidance Overview](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_conavd/configuration/xe-16/qos-conavd-xe-16-book/qos-conavd-oview.html) — 「By dropping some packets early rather than waiting until the queue is full, WRED avoids dropping large numbers of packets at once」「Packets with a higher IP precedence are less likely to be dropped than packets with a lower precedence.」\n- [RFC 2474: Definition of the Differentiated Services Field (DS Field)](https://www.rfc-editor.org/rfc/rfc2474.txt) — 「A replacement header field, called the DS field, is defined, which is intended to supersede the existing definitions of the IPv4 TOS octet and the IPv6 Traffic Class octet.」「Six bits of the DS field are used as a codepoint (DSCP) to select the PHB a packet experiences at each node.」PHB は「A description of the externally observable forwarding treatment applied at a differentiated services-compliant node to a behavior aggregate.」\n- [Cisco: CCNA 200-301 v1.1 Exam Topics](https://learningcontent.cisco.com/documents/marketing/exam-topics/200-301-CCNA-v1.1.pdf) — 「4.7 Explain the forwarding per-hop behavior (PHB) for QoS such as classification, marking, queuing, congestion, policing, and shaping」","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）Cisco: Policing and Shaping Overview — 「A policer typically drops traffic, but it can also change the setting or 'marking' of a packet.」「A shaper typically delays excess traffic using a buffer, or queueing mechanism, to hold packets and shape the flow when the data rate of the source is higher than expected.」「if it did not have a data buffer, it would be a policer」Cisco: Congestion Management Overview — 「During periods with light traffic, that is, when no congestion exists, packets are sent out the interface as soon as they arrive.」「Strict PQ allows delay-sensitive data such as voice to be dequeued and sent before packets in other queues are dequeued.」Cisco: Congestion Avoidance Overview — 「By dropping some packets early rather than waiting until the queue is full, WRED avoids dropping large numbers of packets at once」「Packets with a higher IP precedence are less likely to be dropped than packets with a lower precedence.」RFC 2474: Definition of the Differentiated Services Field (DS Field) — 「A replacement header field, called the DS field, is defined, which is intended to supersede the existing definitions of the IPv4 TOS octet and the IPv6 Traffic Class octet.」「Six bits of the DS field are used as a codepoint (DSCP) to select the PHB a packet experiences at each node.」PHB は「A description of the externally observable forwarding treatment applied at a differentiated services-compliant node to a behavior aggregate.」Cisco: CCNA 200-301 v1.1 Exam Topics — 「4.7 Explain the forwarding per-hop behavior (PHB) for QoS such as classification, marking, queuing, congestion, policing, and shaping」","line":135,"sources":["src_1","src_2","src_3","src_4","src_5"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":142,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_63fdf7","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n- 連載の入口: [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers)（`/notes/nw-basics-00-three-layers`）\n- 前の別枠: [ネットワーク\\_別枠C\\_IOSのモード地図](/notes/nw-basics-extra-c-ios-modes)（`/notes/nw-basics-extra-c-ios-modes`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）前の別枠: ネットワーク_別枠C_IOSのモード地図（/notes/nw-basics-extra-c-ios-modes）","line":144,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_plcshp/configuration/xe-16/qos-plcshp-xe-16-book/qos-plcshp-oview.html","title":"Cisco: Policing and Shaping Overview","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_conmgt/configuration/xe-16/qos-conmgt-xe-16-book/qos-conmgt-oview.html","title":"Cisco: Congestion Management Overview","accessed":"2026-09-14","kind":"secondary"},{"id":"src_3","url":"https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_conavd/configuration/xe-16/qos-conavd-xe-16-book/qos-conavd-oview.html","title":"Cisco: Congestion Avoidance Overview","accessed":"2026-09-14","kind":"secondary"},{"id":"src_4","url":"https://www.rfc-editor.org/rfc/rfc2474.txt","title":"RFC 2474: Definition of the Differentiated Services Field (DS Field)","accessed":"2026-09-14","kind":"secondary"},{"id":"src_5","url":"https://learningcontent.cisco.com/documents/marketing/exam-topics/200-301-CCNA-v1.1.pdf","title":"Cisco: CCNA 200-301 v1.1 Exam Topics","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}