L7_application · a hands-on crash course · about 40 minutes
Every HTTPS page you open uses seven ideas at once. Learn them one at a time, in this order. Each stop gives you one sentence to remember, an everyday comparison, and a live experiment running real cryptography in your browser.
Building block · Integrity
A hash turns any data into a short fingerprint. Change one letter and the fingerprint changes completely, so anyone can tell if data was altered.
A fingerprint. It identifies a person without containing the person. You can't rebuild someone from their fingerprint, and two people should never share one.
MD5 is a fingerprint scanner that attackers learned to fool: since 2004 they can make two different files with the same MD5 fingerprint.
Building block · Secrecy
AES is a symmetric cipher: the same secret key encrypts and decrypts. It's very fast, so it encrypts every byte of your HTTPS traffic.
A lockbox with one key, and you and your friend each hold a copy. Fast and strong, but it raises a question: how do you hand your friend a copy of the key without someone copying it on the way? Stop 3 answers that.
| Mode | Verdict |
|---|---|
| GCM | Use it encrypts and detects tampering |
| CBC | Legacy padding-oracle attacks |
| ECB | Never identical blocks leak patterns |
Press Encrypt to see the ciphertext.
Try decrypting normally, then tamper with a byte or change the password and decrypt again.
Building block · Identity
RSA uses a key pair. The public key can be shared with anyone; only the private key's owner can create a signature that the public key verifies.
A wax seal. Everyone knows what the king's seal looks like (public key), but only the king owns the ring that makes it (private key). A sealed letter proves it came from the king.
In modern TLS, RSA does exactly this: it signs to prove identity. It no longer carries the AES key; that job moved to ECDHE (stop 5).
Putting blocks together · Trust
A certificate says "this public key belongs to shop.example.com", and a Certificate Authority (CA) vouches for it with an RSA or ECDSA signature over a SHA-256 hash.
A passport. It shows a name (the domain), a photo (the public key), an expiry date, and the stamp of a government you trust (the CA). Your browser is the border officer: it checks each detail before letting you in.
-----BEGIN CERTIFICATE-----.The protocol · Everything at once
TLS is the protocol that runs the show. In one handshake it checks the certificate, agrees on a fresh AES key, and then encrypts everything. "SSL" is its retired ancestor; people still say "SSL" out of habit.
The recipe · Reading the name
A cipher suite names which algorithm does each job. Once you know stops 1 to 5, you can read one like a sentence. The colors below match the stops.
Beyond the handshake · Trust and your data
Trust flows down the chain, from a root your device already trusts to the site's own certificate. TLS then protects cookies and payloads only while they travel. On disk they are plain again.
The chain: the government (root) authorizes a passport office (intermediate), which issues your passport (end-entity certificate). The border officer trusts the government, so the passport is accepted.
Your data: TLS is an armored truck. Money is safe inside it, but once it's unloaded into an unlocked drawer (the disk, a temp file, a log), the truck can't help.
Secure; HttpOnly; SameSite.Cache-Control: no-store, file permissions, disk encryption.Check yourself
Score: 0 / 7
Cheat sheet
L1_physical · OSI layer 1
Layer 1 moves raw bits as electrical pulses, flashes of light or radio waves. It knows nothing about addresses. When a cable, optic or radio is bad, every layer above it fails.
Copper
An Ethernet copper cable holds 4 twisted pairs (8 wires). The twists cancel interference, and the category (Cat5e, Cat6, Cat6A…) tells you how fast it can run over 100 m.
| Category | Max speed | Bandwidth | Max length | Typical use |
|---|---|---|---|---|
| Cat5e | 1 Gbps | 100 MHz | 100 m | PCs, IP phones, older buildings |
| Cat6 | 1 Gbps (10G up to 55 m) | 250 MHz | 100 m | Most office cabling today |
| Cat6A | 10 Gbps | 500 MHz | 100 m | New builds, Wi-Fi 6/7 access points |
| Cat7 | 10 Gbps | 600 MHz | 100 m | Shielded S/FTP; not a TIA standard, rarely worth it |
| Cat8 | 25 / 40 Gbps | 2000 MHz | 30 m | Data center, switch to server in the same row |
Light
Single-mode fiber has a tiny 9 µm core: light takes one path, so it reaches kilometres. Multimode has a 50 µm core: light bounces along many paths, which limits it to a few hundred metres, but the optics are cheaper.
Single-mode is a laser pointer shining down a drinking straw: one clean beam, very far. Multimode is a flashlight in a wide pipe: light bounces off the walls, some rays take longer routes, and the pulses smear out over distance.
| Type | Core / cladding | Jacket | Light | 10G reach | 100G reach | Typical use |
|---|---|---|---|---|---|---|
| OM1 | 62.5 / 125 µm | Orange | LED, 850 nm | 33 m | — | Legacy only |
| OM2 | 50 / 125 µm | Orange | 850 nm | 82 m | — | Legacy only |
| OM3 | 50 / 125 µm | Aqua | VCSEL laser, 850 nm | 300 m | 70 m (SR4) | Data center, building backbone |
| OM4 | 50 / 125 µm | Aqua or violet | VCSEL laser, 850 nm | 400 m | 100 m (SR4) | Data center (most common MM today) |
| OM5 | 50 / 125 µm | Lime green | 850–950 nm (SWDM) | 400 m | 150 m (SWDM4) | Wideband multimode, uncommon |
| OS2 single-mode | 9 / 125 µm | Yellow | Laser, 1310 / 1550 nm | 10 km (LR), 40 km (ER) | 10 km (LR4), 40 km (ER4) | Campus, metro, ISP, FTTx |
Plugs and modules
For a fiber link, check three things on both ends: the connector (LC, SC, MPO…), the polish (UPC blue or APC green) and the fiber type (single-mode or multimode).
| Module | Speed | Common optics | Connector |
|---|---|---|---|
| SFP | 1 Gbps | SX (MM, 550 m), LX (SM, 10 km), 1000BASE-T copper | LC or RJ45 |
| SFP+ | 10 Gbps | SR (MM), LR (SM), DAC cable | LC |
| SFP28 | 25 Gbps | SR (MM), LR (SM) | LC |
| QSFP+ | 40 Gbps | SR4 (MM), LR4 (SM) | MPO or LC |
| QSFP28 | 100 Gbps | SR4 (MM), LR4 / CWDM4 (SM) | MPO or LC |
| QSFP-DD / OSFP | 400 Gbps | DR4, FR4 | MPO or LC |
Both ends must match: SR with SR, LR with LR, same wavelength. Many switches only accept optics coded for their vendor.
Choosing
Pick the medium by speed and distance: copper up to 100 m, multimode fiber across a building, single-mode fiber for kilometres.
Copper is a local road: cheap and everywhere, but short. Multimode fiber is a city expressway. Single-mode fiber is a long-distance highway of light that can run 10 km or more.
| Medium | Typical speed | Reach | Connector |
|---|---|---|---|
| Cat5e / Cat6 copper | 1 Gbps (Cat6: 10G to 55 m) | 100 m | RJ45 |
| Cat6A copper | 10 Gbps | 100 m | RJ45 |
| OM3 / OM4 multimode fiber | 10–100 Gbps | 70–400 m | LC, MPO |
| OS2 single-mode fiber | 1–400 Gbps | 10–40 km+ | LC |
| Wi-Fi radio | hundreds of Mbps to a few Gbps | tens of metres indoors | antenna |
Typical IEEE reach per standard. Always check the datasheet of your exact optic and cable.
Speed and size
Link speeds are in bits per second; file sizes are in bytes. Divide by 8: a 1 Gbps link moves at most 125 MB per second.
Bandwidth is the width of a water pipe. Throughput is how much water actually comes out, always a little less because of fittings and leaks (protocol headers, retransmissions).
When it breaks
Check Layer 1 first. A surprising share of "network problems" are a bad cable, a dirty fiber or the wrong optic.
| Symptom | Likely cause | Check with |
|---|---|---|
| Link down, no light | Unplugged, wrong optic type, broken cable | show interfaces status, port LEDs, swap the cable |
| CRC or input errors keep rising | Damaged cable, dirty fiber connector, interference | show interfaces counters errors, clean the connectors |
| Link flapping up and down | Loose connector, failing optic | show logging | include changed state |
| Slow, with late collisions | Duplex mismatch (one side forced, other on auto) | show interfaces | include duplex |
| Low optical receive power | Dirty or bent fiber, too long for the optic | show interfaces transceiver |
| Gigabit port stuck at 100 Mbps | One bad pair (1G needs all 4 pairs) | Cable tester, re-terminate the RJ45 |
| AP or phone won't power on | PoE budget exhausted or wrong PoE class | show power inline |
L2_data_link · OSI layer 2
Layer 2 delivers frames between devices on the same local network using MAC addresses. Switches learn where each MAC lives and send frames only where they need to go.
The unit of Layer 2
Every frame carries a destination MAC, a source MAC, a type, the payload, and a checksum at the end.
An envelope inside one building. The MAC addresses are the "to" and "from" desk numbers; the letter inside is the IP packet from Layer 3.
FF:FF:FF:FF:FF:FF is the broadcast address: every host in the VLAN gets it.0x0800 IPv4, 0x86DD IPv6, 0x0806 ARP.How switches think
A switch learns which port each MAC lives on from the source address of every frame. Unknown destinations are flooded; known ones go out a single port.
A new mail clerk. At first they don't know anyone's desk, so they shout the letter to the whole floor. Every time someone sends mail, the clerk notes where the sender sits. Soon every letter goes straight to the right desk.
Separating and finding
VLANs split one switch into separate networks. ARP finds the MAC behind an IP on the same network.
One office building with floors that have separate intercoms: VLAN 10 can't hear VLAN 20. To talk between floors you go through reception, which is the router or Layer 3 switch.
FF:FF:FF:FF:FF:FF: "Who has 192.168.1.1? Tell 192.168.1.20."arp -a.When it breaks
Link lights are on but nothing works? Think VLANs, loops and ARP.
| Symptom | Likely cause | Check with |
|---|---|---|
| Link up, can't reach the gateway | Port in the wrong VLAN | show vlan brief, show interfaces switchport |
| Whole network slows or dies, switch CPU high | Layer 2 loop, broadcast storm | show spanning-tree, logs about MAC flapping |
| VLAN works on one switch, not across | VLAN not allowed on the trunk, native VLAN mismatch | show interfaces trunk |
| Port shut itself down | Port security or BPDU guard put it in err-disabled | show interfaces status err-disabled |
| Two devices fight over one IP | Duplicate IP, ARP conflict | arp -a, show ip arp |
| Port-channel only uses one link | LACP mismatch or hashing | show etherchannel summary |
L3_network · OSI layer 3
Layer 3 gives every device an IP address and moves packets between networks. Each router picks only the next hop, from its routing table, one hop at a time.
Addressing
An IPv4 address is 32 bits. The prefix length says how many bits name the network; the rest number the hosts.
A street address: the street name is the network part and the house number is the host part. A /24 is a street with room for 254 houses.
Forwarding
For every packet the router looks up the destination IP. If several routes match, the most specific (longest prefix) wins. If none match, the default route is used.
Road signs. "Bangkok →" and "Sukhumvit Soi 11 →" both match your trip, but you follow the more specific sign.
show ip route, ip route, route print.Helpers
TTL stops packets looping forever, ICMP reports what went wrong, and NAT lets private addresses share a public one.
* * * means that hop didn't reply (often ICMP is filtered), not always that it's down.| Inside (private) | Outside (public) | Destination |
|---|---|---|
192.168.1.20:51544 | 203.0.113.5:40001 | 142.250.4.100:443 |
192.168.1.21:51544 | 203.0.113.5:40002 | 142.250.4.100:443 |
192.168.1.35:60210 | 203.0.113.5:40003 | 1.1.1.1:53 |
Three PCs share one public IP. The router tells replies apart by the translated port.
When it breaks
Ask two questions: is there a route there, and is there a route back?
| Symptom | Likely cause | Check with |
|---|---|---|
| Can ping the gateway, not the Internet | Missing default route or NAT rule | show ip route 0.0.0.0, show ip nat translations |
| "Destination host unreachable" | No route, or ARP for the next hop fails | route print, tracert |
| "Request timed out" | Firewall or ACL drops it, or the return route is missing | Check both directions; capture on the far side |
| Traceroute repeats the same hops | Routing loop | tracert -d, compare routing tables |
| Wrong subnet or gateway on a host | Static IP typo, DHCP scope error | ipconfig /all, ip addr |
| Big transfers hang, small ones work | MTU problem, ICMP "fragmentation needed" blocked | ping -f -l 1472 <host> |
L4_transport · OSI layer 4
Layer 4 carries data between programs. Ports say which program gets the data. TCP adds reliability and order; UDP trades that for speed.
Two choices
TCP guarantees every byte arrives, in order, or tells you it couldn't. UDP just sends, which is exactly what live voice, video, DNS and QUIC want.
TCP is registered mail: numbered pages, a signature for every delivery, resent if lost. UDP is shouting across a room: fast, and if a word is missed, you just carry on.
| TCP | UDP | |
|---|---|---|
| Connection | Yes, three-way handshake | No |
| Delivery | Guaranteed, with retransmission | Best effort |
| Order | Kept, using sequence numbers | Not guaranteed |
| Flow and congestion control | Yes (window size) | No |
| Used by | HTTP/1.1–2, SSH, SMTP, databases, BGP | DNS, DHCP, VoIP, video, SNMP, syslog, QUIC |
A connection's life
Every TCP connection opens with SYN, SYN-ACK, ACK, numbers every byte with sequence numbers, and closes with a FIN and ACK from each side.
Addresses for programs
The IP address finds the host; the port finds the program. The 5-tuple (source IP, destination IP, source port, destination port, protocol) identifies one connection.
netstat -ano (Windows), ss -tulpn (Linux).Test-NetConnection host -Port 443, nc -vz host 443.When it breaks
"Refused" and "timed out" mean different things. Refused: something answered no. Timed out: nothing answered at all.
| Symptom | Likely cause | Check with |
|---|---|---|
| Connection refused (RST) | Nothing listening on that port, or the service is down | ss -tlnp, netstat -ano | findstr :443 |
| Connection timed out | Firewall silently drops it, or no route | Test-NetConnection host -Port 443 |
| Slow on long-distance links | Small TCP window, packet loss | iperf3, retransmissions in Wireshark |
| Thousands of TIME_WAIT, new connections fail | Ephemeral port exhaustion (often behind NAT) | netstat -an | find "TIME_WAIT" /c |
| Idle connections drop after N minutes | Firewall or NAT session timeout | TCP keepalive (see L5_session) |
L5_session · OSI layer 5
Layer 5 opens, maintains and closes conversations between applications. TCP/IP has no separate Layer 5 protocol; its jobs live inside TLS, login sessions, RPC, and the session tables of firewalls and load balancers.
Open · keep · close
A session is the whole conversation, not one message. It starts with setup and login, stays alive with keepalives, and ends with a logout or a timeout.
A phone call. You dial and say hello (open), say "still there?" during long silences (keepalive), and say goodbye (close). If the line stays silent too long, the operator hangs up for you (timeout).
Sessions behind a load balancer
If each server keeps its own session memory, a user must keep landing on the same server (stickiness), or all servers must share one session store.
Faster reconnects
After a first full handshake, a client can resume with a saved key (PSK) and skip the certificate, or even send data immediately with 0-RTT.
| Mode | Round trips before data | Certificate sent? | Watch out |
|---|---|---|---|
| Full handshake | 1 | Yes | Slowest, but always works |
| Resumption (PSK) | 1 | No | Less CPU; keep forward secrecy with (EC)DHE mode |
| 0-RTT early data | 0 | No | Can be replayed: only for safe, repeatable requests like GET |
See the full handshake packet by packet in L7_application → SSL / TLS.
When it breaks
If something breaks after exactly the same amount of time every time, look for a timeout.
| Symptom | Likely cause | Check with |
|---|---|---|
| Idle SSH or database connections drop | Firewall or NAT idle timeout | ServerAliveInterval 60 in SSH config, TCP keepalive |
| Users logged out at random | Load balancer without persistence, or a server restart | LB persistence settings, shared session store |
| App breaks after exactly N minutes | Session table timeout on a firewall | show conn detail, timeout configuration |
| VPN reconnects every few hours | Rekey or session lifetime mismatch | IKE and IPsec lifetimes on both peers |
| "Too many sessions", license limit hit | Sessions never closed | Session list on the firewall or server |
L6_presentation · OSI layer 6
Layer 6 translates data into a format both sides understand: character encoding, data formats, compression and encryption. Like Layer 5, it has no single protocol today; these jobs happen inside applications and TLS.
Characters to bytes
Networks carry bytes, not letters. UTF-8 stores English letters in 1 byte and Thai letters in 3 bytes. If the receiver guesses the wrong encoding, you get garbage like สวัส.
The same sounds written in different alphabets. Both sides must agree on the alphabet (the encoding) before a single word makes sense.
Content-Type: text/html; charset=utf-8.Structure
Programs agree on a format to turn objects into bytes (serialization). JSON is the web's default, XML is older and wordier, and binary formats like Protobuf are the smallest.
The same record three ways. Protobuf is smallest because both sides already know the field names from a shared schema; only field numbers travel.
Smaller on the wire
Repetitive data shrinks a lot; random or encrypted data barely shrinks at all. That's why you compress before you encrypt.
Writing "the same line again ×40" instead of copying it 40 times. Random noise has no repeats to point at, so there's nothing to save.
Content-Encoding: gzip or br.When it breaks
The network delivered every byte, but the result is unreadable? It's a format problem.
| Symptom | Likely cause | Check with |
|---|---|---|
| Thai text shows as สว… or ???? | UTF-8 read as Latin-1 or Windows-874, or the reverse | curl -I and look at the charset |
| API says "invalid JSON" | Trailing comma, wrong quotes, a BOM at the start | jq . file.json |
| File corrupted after FTP | Transferred in ASCII mode instead of binary | Use binary mode, compare SHA-256 hashes |
| Page downloads as gibberish | Compressed twice, or wrong Content-Encoding | curl -sI --compressed URL |
| "Secret" readable in config files | Base64 used as if it were encryption | Move secrets to a vault or secret manager |
tshoot · network troubleshooting · Windows / Linux / macOS
Work from the bottom up: link, IP address, gateway, Internet, DNS, then the service. Pick your OS once and every command on this page follows it. Press Copy and paste it into your terminal.
Guided
Run the steps in order and stop at the first one that fails. That step tells you which layer is broken.
Cheat sheet
The same job has a different command on each OS. Search by task or by command.
PS marks a PowerShell command. Other Windows commands work in both Command Prompt and PowerShell. Commands starting with sudo need admin rights; on Windows, open the terminal as Administrator for those.
Decode
The exact wording tells you where it failed. "Refused" and "timed out" are different problems.
| Message | What it means | Next step |
|---|---|---|
Request timed out | No reply came back: host down, firewall dropping ICMP, or no route back | Try another target; check the return route |
Destination host unreachable | From your own IP: no route or ARP failed locally. From a router's IP: that router has no route | Check the gateway and routing table |
TTL expired in transit | The packet looped until its TTL reached 0 | Routing loop: traceroute shows repeating hops |
General failure · Network is unreachable | No usable route, or the adapter is down | Check the link and IP configuration |
could not find host · Name or service not known | DNS lookup failed | Run the "DNS problems" steps |
* * * in traceroute | That hop doesn't answer traceroute probes | Normal if later hops still answer |
Connection refused | The host is reachable, but nothing listens on that port (it sent RST) | Start the service, check the port number |
Connection timed out | No answer at all | Firewall drop or routing problem |
NXDOMAIN | The name does not exist | Typo, wrong domain, missing record |
SERVFAIL | The DNS server couldn't get an answer | Upstream down or DNSSEC failure; try another resolver |
Non-authoritative answer | The answer came from a cache, not the domain's own server | Normal, nothing to fix |
169.254.x.x address | No DHCP answer; Windows and macOS picked a link-local address | Run the "169.254" steps |
unable to get local issuer certificate | Missing intermediate certificate, or an unknown CA | See L7_application › Certificates |
certificate has expired · not yet valid | Expired certificate, or the client clock is wrong | Check the time: w32tm /query /status, timedatectl |
Packet needs to be fragmented but DF set · Message too long | The packet is bigger than the path MTU | Run the "MTU black hole" playbook |
tcp.analysis.retransmission in Wireshark | Data was lost and sent again | Find where loss starts: mtr / pathping, interface errors |
TCP ZeroWindow | The receiver's buffer is full: the app reads too slowly | Look at the receiving host, not the network |
handshake failure · protocol version alert | No common TLS version or cipher suite | Run the "TLS handshake fails" playbook |
Advanced · capture
Capture only what you need. One set of choices becomes a tcpdump command, both kinds of Wireshark filter, and a Windows pktmon recipe.
Advanced · analysis
Capture filters decide what gets saved; display filters decide what you see. These find most problems in a big capture fast.
Advanced · numbers
Two numbers explain many "mystery" problems: the MTU left inside a tunnel, and how much a single TCP connection can carry across a long, lossy path.
api · REST, RESTCONF, NETCONF and friends
An API lets a program ask a device or service for data, or change its configuration, without screen-scraping the CLI. Most network APIs today are HTTPS requests that send and receive JSON.
The basics
Every call is a request (method, URL, headers, optional body) and a response (status code, headers, body). Learn to read these parts and you can use any API.
Ordering at a counter. The method is the verb ("give me", "add", "change", "remove"), the URL is the item on the menu, headers are your notes ("I pay by card", "no ice"), and the body is the order form. The status code is the cashier's answer.
/devices, /devices/42/interfaces.?site=bkk&limit=50.Accept says what you want back; Content-Type says what you're sending.| Method | Does | Safe to repeat? | Network example |
|---|---|---|---|
GET | Read | Yes, changes nothing | List devices, read interface counters |
POST | Create, or run an action | No, may create duplicates | Add a VLAN, start a backup job |
PUT | Replace the whole resource | Yes (same result each time) | Replace an interface's full config |
PATCH | Change some fields | Usually | Change only the description |
DELETE | Remove | Yes | Remove a static route |
The answer
The first digit tells you who to blame: 2xx success, 3xx go elsewhere, 4xx your request is wrong, 5xx the server is broken.
Who are you?
Most APIs use one of a handful of methods. The rule for all of them: credentials go in headers, never in the URL, and never in your code.
| Method | How it's sent | Seen in | Notes |
|---|---|---|---|
| API key | X-API-Key: abc123… (header name varies) | Meraki, many SaaS tools | Simple; rotate it and scope it read-only where possible |
| Basic | Authorization: Basic base64(user:pass) | RESTCONF on IOS-XE, many devices | Base64 is not encryption: only ever over HTTPS |
| Bearer token | Authorization: Bearer eyJ… | Catalyst Center (DNA Center), cloud APIs | Get a token once, reuse until it expires (often 1 hour) |
| OAuth 2.0 | Exchange a client ID + secret for a bearer token | Microsoft Graph, Google, large platforms | Tokens carry scopes: exactly what the app may do |
| Session / cookie | POST a login, reuse the cookie or key it returns | Older firewall and appliance APIs | Log out when done: sessions count against limits |
| mTLS | A client certificate in the TLS handshake | gNMI, high-security APIs | Strongest; see L7_application › Certificates |
Authorization: Bearer <token>.-k, verify=False) only in a lab.Try it
Describe the call once and get it as curl, PowerShell and Python. Secrets are read from environment variables, so nothing sensitive ends up in the command.
Using the answer
JSON is objects { } with named fields and arrays [ ] counted from 0. A path like response[0].hostname walks down to the value you need.
[*] for "every item"For network gear
Controllers and cloud dashboards expose vendor REST APIs. Individual devices speak standard, YANG-modelled APIs: RESTCONF, NETCONF and gNMI.
| API | Transport | Data | Model | Best for |
|---|---|---|---|---|
| Vendor REST | HTTPS 443 | JSON | Vendor-specific | Controllers and cloud: Meraki, Catalyst Center, FortiGate, Palo Alto, Aruba Central |
| RESTCONF (RFC 8040) | HTTPS 443 | JSON or XML | YANG | Simple read / change of one device's config and state |
| NETCONF (RFC 6241) | SSH, port 830 | XML | YANG | Safe changes: lock, edit a candidate config, validate, commit, roll back |
| gNMI | gRPC over HTTP/2 + TLS | Protobuf | YANG (OpenConfig) | Streaming telemetry every few seconds, at scale |
| eAPI / NX-API | HTTPS | JSON-RPC | CLI commands | Run show commands and get structured JSON back (Arista, Nexus) |
| SNMP | UDP 161 / 162 | ASN.1 | MIB | Legacy polling and traps; mostly read-only |
restconf and ip http secure-server enabled)
Same data over NETCONF with Python (pip install ncclient)
Ansible: run a show command on many switches at once (cisco.ios collection)
application/yang-data+json or +xml. Plain application/json may get 415.commit (where supported).When it breaks
Start with curl -v: it shows the TLS handshake, every header you sent, and the exact status and body that came back.
| Symptom | Likely cause | Fix |
|---|---|---|
401 after it used to work | The token expired, or the clock is wrong | Get a new token; check NTP |
403 | Logged in, but the role or scope lacks that permission | Give the API account the specific permission |
415 on RESTCONF | Wrong Content-Type | Use application/yang-data+json |
429 | Rate limit hit | Wait for Retry-After, back off exponentially, batch or cache |
| Always exactly 50 / 100 results | Pagination | Follow the next link, cursor or offset until it's empty |
CERTIFICATE_VERIFY_FAILED | Device uses a self-signed certificate | Trust its CA (--cacert, verify="ca.pem"); use -k only in a lab |
| Works in Postman, fails in a script | Missing header, a proxy variable, different auth | Compare with curl -v; Postman can export the request as code |
| Connection timed out | Firewall to the management interface, or the API isn't enabled | Test-NetConnection 10.0.0.1 -Port 443 · see tshoot |
| NETCONF edit "succeeded" but nothing changed | Edited the candidate datastore without committing | Send <commit/> |
| CORS error in the browser console | The API doesn't allow calls from that web page's origin | Not a network fault: call the API from a backend or script |
202 Accepted but no result | The job runs in the background | Poll the task or job URL returned in the response |
Cardaba banana · กล้วยหิน
คู่มือย่อสำหรับผู้ปลูกกล้วยหิน ตั้งแต่ประวัติความเป็นมา การเจริญเติบโต การปลูก การใส่ปุ๋ย การดูแลรักษา จนถึงการเก็บเกี่ยว พร้อมเครื่องคำนวณจำนวนต้น ปริมาณปุ๋ย และวันสำคัญของแปลงคุณ
หมายเหตุ: ตัวเลขในหน้านี้ (อายุ ระยะปลูก อัตราปุ๋ย ผลผลิต) เป็นค่าประมาณจากคำแนะนำการปลูกกล้วยทั่วไป ผลจริงขึ้นกับดิน น้ำ และสภาพอากาศของแต่ละพื้นที่ ควรตรวจวิเคราะห์ดินก่อนใส่ปุ๋ย และปรึกษาสำนักงานเกษตรอำเภอในพื้นที่ของคุณ
ประวัติความเป็นมา
กล้วยหินเป็นกล้วยพื้นเมืองของภาคใต้ตอนล่าง พบมากตามริมแม่น้ำปัตตานีในจังหวัดยะลา เนื้อผลแน่นและแข็งกว่ากล้วยทั่วไป จึงนิยมทำกล้วยฉาบ กล้วยต้ม และผลิตภัณฑ์แปรรูป
คำว่า "หิน" มักอธิบายไว้สองแบบ แบบแรกคือเนื้อผลแน่นและแข็งเหมือนหิน แบบที่สองคือขึ้นได้ดีตามริมฝั่งแม่น้ำที่มีดินปนหินกรวด
ชาวบ้านในพื้นที่ปลูกกันมานาน ทั้งไว้กินในครัวเรือนและขายเป็นรายได้ ปัจจุบันมีการแปรรูปเป็นสินค้าขึ้นชื่อของจังหวัดยะลา
ลักษณะต่าง ๆ เป็นค่าประมาณและแตกต่างกันไปตามสภาพแปลงและการดูแล
การเจริญเติบโต
ต้นกล้วยหินผ่าน4 ช่วงหลัก คือ ตั้งตัว สร้างลำต้นและใบ ออกปลี และผลเจริญเติบโต เก็บเกี่ยวรุ่นแรกได้ราว12–15 เดือนหลังปลูก
การปลูก
เลือกพื้นที่ระบายน้ำดี ใช้หน่อดาบหรือต้นเนื้อเยื่อจากแปลงที่ปลอดโรค และปลูกช่วงต้นฤดูฝน ให้ต้นตั้งตัวได้ด้วยน้ำฝน
การใส่ปุ๋ย
ช่วงแรกกล้วยต้องการไนโตรเจนเพื่อสร้างลำต้นและใบ พอใกล้ออกปลีต้องการโพแทสเซียมสูง เพื่อให้เครือใหญ่ ผลเต็ม เนื้อแน่น
การดูแลรักษา
กล้วยที่ดูแลดีมีต้นแม่ 1 ต้นกับหน่อตาม 1 หน่อต่อกอ ใบเขียวพอเพียงตอนออกปลี และแปลงสะอาด ไม่มีซากที่เป็นแหล่งโรคและแมลง
| โรค / แมลง | อาการ | การป้องกันและจัดการ |
|---|---|---|
| โรคตายพราย เชื้อรา Fusarium | ใบแก่เหลืองจากขอบใบ ก้านใบหักพับรอบต้น ผ่าลำต้นเห็นท่อน้ำเป็นเส้นสีน้ำตาลแดง | ใช้หน่อจากแปลงปลอดโรคหรือต้นเนื้อเยื่อ ขุดต้นเป็นโรคออกทำลาย โรยปูนขาวในหลุม ไม่ปลูกกล้วยซ้ำที่เดิม ระบายน้ำดี (ยังไม่มีสารเคมีรักษาให้หาย) |
| โรคใบจุด Sigatoka และใบจุดอื่น ๆ | จุดหรือขีดสีน้ำตาลถึงดำบนใบ ลามจนใบแห้งเร็ว เครือเล็ก | ตัดใบเป็นโรคออกไปทำลาย ไม่ปลูกชิดเกินไป ให้อากาศถ่ายเท ใช้สารป้องกันเชื้อราตามคำแนะนำบนฉลากเมื่อระบาด |
| ด้วงงวงเจาะเหง้า | หนอนเจาะกินในเหง้า ต้นแคระ ใบเหลือง ล้มง่าย | ใช้หน่อสะอาด ตัดต้นหลังเก็บเกี่ยวชิดดินแล้วสับทิ้ง วางกับดักท่อนกล้วยผ่าซีกไว้รอบกอแล้วเก็บตัวด้วงทำลาย |
| ด้วงงวงเจาะลำต้น | มีรูและยางไหลที่กาบลำต้น ต้นหักกลางลำ | เก็บเศษซากต้นออกจากแปลง ใช้กับดักแบบเดียวกัน ตรวจแปลงสม่ำเสมอ |
| หนอนม้วนใบกล้วย | ใบถูกม้วนเป็นหลอด มีหนอนอยู่ข้างใน ใบขาดเสียหาย | ตัดใบที่ม้วนแล้วทำลายหนอน ใช้เชื้อ BT (บาซิลลัส ทูริงเยนซิส) ตามคำแนะนำเมื่อพบมาก |
| ไส้เดือนฝอย | รากเน่าหรือเป็นปม ต้นโตช้า ล้มง่าย | ใช้หน่อปลอดโรค ตัดแต่งรากและเหง้าก่อนปลูก เพิ่มอินทรียวัตถุในดิน |
การใช้สารเคมีทุกชนิดให้ทำตามฉลากและคำแนะนำของเจ้าหน้าที่เกษตร และเว้นระยะก่อนเก็บเกี่ยวตามที่ฉลากกำหนด
การเก็บเกี่ยว
เก็บเกี่ยวเมื่อผลแก่ราว75–90% หรือประมาณ100–120 วันหลังออกปลี สังเกตจากเหลี่ยมผลที่เริ่มมนและผลอวบเต็ม
Pisang Awak Banana · กล้วยน้ำว้า
กล้วยที่คนไทยคุ้นเคยที่สุด ปลูกได้ทั่วประเทศ ทนแล้ง ใช้ประโยชน์ได้ตั้งแต่ผล ใบ ปลี จนถึงลำต้น หน้านี้รวบรวมวิธีปลูก ผลผลิตและรายได้ และการแปรรูปเพื่อเพิ่มมูลค่า
หมายเหตุ: ตัวเลขในหน้านี้ (อายุ ระยะปลูก น้ำหนักเครือ อัตราแปรรูป) เป็นค่าประมาณจากคำแนะนำทั่วไป ผลจริงขึ้นกับพันธุ์ ดิน น้ำ และการดูแล ราคาขายให้ใส่ตามราคารับซื้อจริงในพื้นที่ของคุณ
รู้จักกล้วยน้ำว้า
กล้วยน้ำว้าเป็นกล้วยลูกผสมจีโนม ABB จึงทั้งทนแล้งและปรับตัวเก่ง ปลูกได้เกือบทุกภาค เนื้อผลเหนียวนุ่ม รสหวานอมเปรี้ยว ใช้ได้ทั้งกินสด ทำขนม และแปรรูป
| พันธุ์ | ลักษณะเด่น | เหมาะกับ |
|---|---|---|
| น้ำว้ามะลิอ่อง | ผลใหญ่ เนื้อแน่นละเอียด รสหวาน | กินสด ขายผล แปรรูป |
| น้ำว้าปากช่อง 50 | พันธุ์คัดเลือกจากมหาวิทยาลัยเกษตรศาสตร์ เครือใหญ่ ผลดก | ปลูกเชิงการค้า |
| น้ำว้าค่อม | ลำต้นเตี้ย ล้มยาก | พื้นที่ลมแรง แปลงเล็ก หลังบ้าน |
| น้ำว้าเหลือง | เนื้อสีเหลืองสวยเมื่อสุก | กล้วยตาก ขนม |
| น้ำว้าขาว | เนื้อสีขาวนวล | กินสด กล้วยบวชชี |
ลักษณะพันธุ์อาจต่างกันไปตามแหล่งพันธุ์และพื้นที่ปลูก ควรดูต้นแม่ในแปลงจริงก่อนซื้อหน่อ
วิธีปลูก
กล้วยน้ำว้าปลูกได้หลายแบบ: ปลูกเพื่อเก็บผล ปลูกเพื่อตัดใบตอง หรือปลูกแซมในสวน แต่ละแบบใช้ระยะปลูกและการดูแลต่างกัน
| เดือนหลังปลูก (โดยประมาณ) | งานที่ต้องทำ |
|---|---|
| 0 | ปลูก รดน้ำ คลุมโคน |
| 1, 3, 5 | ใส่ปุ๋ย 15-15-15 ครั้งละราว 100–250 กรัม/ต้น (เพิ่มตามขนาดต้น) กำจัดวัชพืช |
| 5–6 | เลือกไว้หน่อตาม 1–2 หน่อ ตัดหน่ออื่นทิ้ง |
| 6–8 | ใส่ปุ๋ยสูตรโพแทสเซียมสูง เช่น 13-13-21 ราว 250 กรัม/ต้น |
| 7–9 | ออกปลี → ตัดปลีเมื่อหวีสุดท้ายบาน → ห่อเครือ ค้ำเครือ |
| 10–13 | เก็บเกี่ยว (ราว 90–110 วันหลังออกปลี) แล้วดูแลหน่อตามเป็นรุ่นถัดไป |
ผลผลิตและรายได้
รายได้จากกล้วยน้ำว้ามาได้หลายทาง: ขายผลเป็นเครือหรือหวี ขายใบตอง และแปรรูป หลังรุ่นแรกหน่อตามให้ผลต่อเนื่องโดยไม่ต้องปลูกใหม่
การแปรรูป
กล้วยน้ำว้าผลสุกทำกล้วยตาก กล้วยกวน ขนม ส่วนผลดิบทำกล้วยฉาบและแป้งกล้วย และใบ ปลี ลำต้นก็ขายหรือใช้ประโยชน์ได้
Exam · Cisco 300-715 SISE · สมาชิกเท่านั้น
ข้อสอบเลือกตอบ 279 ข้อ ข้อสอบแบบลากวาง 14 ข้อ โหมดจำลองการสอบจริง และอภิธานศัพท์ พร้อมคำอธิบายภาษาไทย ใช้งานได้ทั้งบนคอมพิวเตอร์และมือถือ ต้องเข้าสู่ระบบด้วยบัญชี Google และลงทะเบียนก่อนใช้งาน
Trip-JP · โอซาก้า – เกียวโต – นาโกย่า · 5–10 พ.ย. 2569 · 6 วัน 4 คืน
โปรแกรมรายวันพร้อมแผนที่ บันทึกข้อความและค่าใช้จ่ายของแต่ละวัน แล้วกด สรุปผล เพื่อดูยอดรวมและสัดส่วนตามหมวด เช่น ภาษีสนามบิน ค่าโทรศัพท์ ค่าอาหาร ขนม ของฝาก
เที่ยวบิน · แอร์เอเชีย เอ็กซ์ (A330-300)
| เที่ยว | เที่ยวบิน | เวลา (เวลาท้องถิ่น) |
|---|---|---|
| ขาไป · ศุกร์ 6 พ.ย. | XJ612 | DMK 01:40 → KIX 09:15 เวลาใหม่ เดิม 00:55 → 08:40 |
| ขากลับ · อังคาร 10 พ.ย. | XJ613 | KIX 10:30 → DMK 15:05 เวลาใหม่ เดิม 09:55 → 14:25 |
กระเป๋าโหลด 20 กก./ท่าน · ถือขึ้นเครื่อง 7 กก. · ไม่มีอาหารและเครื่องดื่มบนเครื่อง · เวลาญี่ปุ่นเร็วกว่าไทย 2 ชม.
สภาพลม ฟ้า อากาศ
โรงแรม
| โรงแรม | เข้าพัก | ที่อยู่ / โทร |
|---|---|---|
| Hotel Koyo | 6–7 พ.ย. (1 คืน) | 1 Chome-45 Funabashicho Dezuka, Hashima, Gifu 501-6304 โทร 058-398-1100แผนที่ ↗ |
| The B Nagoya | 7–8 พ.ย. (1 คืน) | 4 Chome 15-23, Sakae, Nagoya, Aichi 460-0008 โทร 052-241-1500แผนที่ ↗ |
| Hotel B Suites | 8–10 พ.ย. (2 คืน) | 2 Chome-10-10 Nipponbashi, Chuo Ward, Osaka 542-0073 โทร 06-6649-5000แผนที่ ↗ |
โรงแรมญี่ปุ่นมักไม่มีพนักงานยกกระเป๋า ควรเตรียมสัมภาระที่ยกเองไหว
ทำก่อนเดินทาง · 15–20 นาที
เว็บไซต์ vjw.digital.go.jp ↗ · อีเมลเดียวลงทะเบียนได้ไม่เกิน 10 คน · เสร็จแล้วได้ QR Code ตม. และศุลกากร ให้แคปหน้าจอเก็บไว้
| ช่อง | ใส่ว่า |
|---|---|
| วันที่เดินทางถึงญี่ปุ่น | 2026/11/06 |
| สายการบิน / เที่ยวบิน | AirAsia X · XJ612 |
| วันที่ออกจากญี่ปุ่น | 2026/11/10 (XJ613) |
| รหัสไปรษณีย์ที่พัก | 501-6304 |
| จังหวัด / เมือง | Gifu / Hashima |
| ที่อยู่ | 1 Chome-45 Funabashicho Dezuka |
| ชื่อโรงแรม | Hotel Koyo |
| เบอร์โทรที่พัก | 058-398-1100 |
ตั้งแต่ 1 พ.ย. 2569
ร้านค้าไม่หักภาษี 10% ที่เคาน์เตอร์อีกต่อไป ต้องจ่ายราคาเต็มแล้วขอคืนตอนออกจากญี่ปุ่น
สัมภาระและข้อห้าม
ปฏิเสธการสแกนลายนิ้วมือ/ถ่ายภาพ อาจไม่ได้รับอนุญาตให้เข้าประเทศ
ข้อควรรู้อื่น ๆ
ข้อมูลจากใบเตรียมตัวการเดินทาง (XJ367) 05–10 พ.ย. 2569 และเอกสารแจ้งเปลี่ยนเวลาบินของแอร์เอเชีย เอ็กซ์ · อาจมีการเปลี่ยนแปลง โปรดตรวจสอบกับบริษัททัวร์อีกครั้ง · ลิงก์แผนที่เป็นการค้นหาใน Google Maps
glossary · คลังศัพท์
From cables to cloud: each term has a one-line English definition, a Thai explanation, and a command or example where one helps. Search in English or Thai.