{
"code": 0,
"message": "success",
"data": {
"subject": "计算机网络",
"answer": "B",
"analysis": "本题考查 TCP/IP 协议栈中各层协议的功能定位。第一步,明确“可靠、端到端连接”两个关键词:端到端指通信双方主机的进程之间,而非相邻结点之间;可靠指提供确认、重传、排序、流量控制等机制。第二步,逐层对照:IP 工作在网络层,提供的是主机到主机的无连接、尽最大努力交付的数据报服务,不保证可靠;ICMP 是网络层的差错报告与控制报文协议,不建立连接;UDP 属于传输层,提供进程到进程的通信,但无连接、不可靠;TCP 属于传输层,通过三次握手建立连接,并用序号、确认、重传、滑动窗口等机制实现可靠传输。第三步,因此负责在主机间建立可靠端到端连接的是 TCP,选 B。",
"knowledge_points": [
"传输层协议概述",
"TCP 协议特点",
"UDP 协议特点",
"网络层 IP 服务模型",
"TCP/IP 体系结构"
],
"option_analysis": [
{
"item": "A. IP",
"correct": false,
"reason": "IP 位于网络层,提供无连接、尽最大努力交付的数据报服务,不保证可靠,也不建立端到端连接。"
},
{
"item": "B. TCP",
"correct": true,
"reason": "TCP 位于传输层,面向连接,通过确认、重传、序号等机制提供可靠的端到端(进程到进程)数据传输。"
},
{
"item": "C. UDP",
"correct": false,
"reason": "UDP 虽在传输层提供端到端通信,但无连接、不保证可靠,无确认重传机制。"
},
{
"item": "D. ICMP",
"correct": false,
"reason": "ICMP 是网络层控制报文协议,用于差错报告和询问,不负责建立连接或可靠传输。"
}
],
"common_mistakes": [
"把“端到端”误解为 IP 的主机到主机通信,误选 IP",
"混淆传输层 UDP 与 TCP,看到“端到端”就选 UDP 而忽略“可靠”",
"把 ICMP 当作传输层协议,误以为其参与连接管理"
],
"memory_tip": "TCP 三字诀:连(面向连接)、可(可靠)、端(端到端);IP 只管送,不管丢。",
"difficulty": "基础",
"related_exam": "TCP 与 UDP 的功能区别及 TCP 可靠传输机制是 408 计算机网络传输层的常考基础点,选择题中频繁出现。",
"llm_configured": true
}
}
curl --location --request POST 'https://zylalabs.com/api/15521/cs+postgraduate+exam+solver+api/41755/solve+question' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"question": "在 TCP/IP 协议栈中,负责在主机间建立可靠端到端连接的协议是?",
"options": ["A. IP", "B. TCP", "C. UDP", "D. ICMP"],
"subject": "计算机网络"
}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the CS Postgraduate Exam Solver API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Structured solver for China's CS graduate exam (408): answer, step-by-step analysis, knowledge points, per-option breakdown, common mistakes & memory tips.
It returns a structured solution for a computer science exam question. The response includes a status code, message, and data object containing the subject, final answer, step-by-step analysis, syllabus-level knowledge points, option-by-option explanations, common mistakes, memory techniques, and difficulty rating.
The endpoint is aligned with China’s 408 computer science entrance examination. It covers Data Structures, Computer Organization, Operating Systems, and Computer Networks, including questions in multiple-choice, fill-in-the-blank, and short-answer formats.
Submit the exam question to the POST “Solve Question” endpoint. The question may be a multiple-choice, fill-in-the-blank, or short-answer problem. Include sufficient wording, options, diagrams described in text, and relevant conditions so the solver can produce a complete analysis.
The response uses a JSON object with top-level fields such as `code`, `message`, and `data`. The `data` object organizes the result by subject, answer, analysis, knowledge points, option explanations, common errors, memory techniques, and difficulty. Knowledge points are returned as an array of strings.
The `answer` field contains the final solution. For a multiple-choice question, it may be an option such as `B`; for fill-in or short-answer questions, it can contain the expected value or a concise answer. Use it together with `analysis` to distinguish the result from its explanation.
Use `analysis` for the reasoning sequence, `knowledge_points` to identify syllabus topics, and option explanations to compare correct and incorrect choices. `common_mistakes` highlights likely misconceptions, while `memory_techniques` supports revision. The difficulty rating can help organize practice by challenge level.
Check that `code` indicates success and inspect `message` for the status description. Then read the fields inside `data`. Treat list fields such as knowledge points, option analyses, mistakes, and memory techniques as collections, and display them separately for clearer study or review workflows.
Multiple-choice questions typically include a selected option and explanations for each choice. Fill-in questions focus on the expected term, value, or expression. Short-answer questions provide a direct answer with structured reasoning and relevant concepts. The available detail may vary with the information supplied in the question.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund