计算机网络知识点,期末

编程入门 行业动态 更新时间:2024-10-09 20:22:40

计算机网络<a href=https://www.elefans.com/category/jswz/34/1770093.html style=知识点,期末"/>

计算机网络知识点,期末

  • 计算机网络做成原理期末考试知识点***

填空:

1.A(protocol协议)is an agreement between the communicating peers on how communication is to proceed
2.Connections are established in TCP by means of(three)between the server and the client
3.Guided media, such as(Twisted Pair双绞线), Coaxial Cable and Fiber Optics
4.IPv6 address is(128)bit
5.In the WWW service, Pages are named using(URL), which includes three parts: protocol, the hostname and the page s path
6.Network security problems can be divided roughly into three aspects:Confidentiality、Integrity and(Availability可用性
7.Two types of links: one is point-to-point ,the other one is(broadcast广播)
8.The OSI model has(seven)layers
9.The processing unit in the data link layer is the (frame帧
10.The processing unit of the network layer is the(packet包
11.The data link layer has two sublayers: logical link control and (media access control(MAC)截止访问控制MAC子层)
12.The(ICMP),is used by hosts to test the Network connectivity, for example, when running a ping command, an error such as “Destination unreachable” may occur
13.The range of frequencies transmitted without being strongly attenuated is called the(bandwidth宽带)
14.(ARP)solves the problem of finding out which Ethernet address corresponds to a given IP address
15.(VPN)is a means of carrying private traffic over a public network

简答:

1.An autonomous system has five local area networks. The number of IP addresses required for each LAN is 20. The IP address block assigned to the autonomous system is 61.145.120.0/24. Try to give the address blocks(including netmask ) for each LAN.

2.Please point out the difference between TCP and UDP.
面向连接/面向无连接
传输效率相对低/传输效率相对高
提供可靠的服务/不可靠的服务
点到点/一对多和一对—
3.What is the socket?
套接字是通信的基石,是支持TCP/IP协议的网络通信的基本操作单元
他是网络通信过程中,端点的抽象表示
包含五种信息:使用的协议、本地主机的IP地址、本地进程端口、远地主机IP地址、远地进程的协议端口
4.The TCP/IP Reference Model has five layers, please write out each layer of the TCP/IP Model.
从下往上每一层为:物理层、数据链路层、网络层、传输层、应用层

判断:1.CSMA/CD is an important protocol widely used in the Ethernet√
2.DNS is an application-layer protocol that maps host names to IP addresses√
3…DES is an important public-key algorithm and much practical security is based on it X
4.Firewall is a very important network security device√
5.If an HTTP server is serving 1000 clients, then at least 1000 sockets are open at the server√
6.Python is not an object oriented computer programming language √
7.RIP and OSPF are static routing protocols X
8.Switches operate in the network layer X
9.TCP uses a sliding window to complete the flow control of end-to-end√
10.The first computer network emerged in 1969,namely ARANET√
11.The ports of 0-1023 are Well-known ports, can be used by any application√
12.UDP is designed to provide a reliable end-to-end byte stream transmission X
13.WLAN uses optical fiber as a transmission medium X
14.When a host in a private network want to communicate with a host in the Internet, NAT can be used√
15.When web page is transmitted over SSL, the protocol used is HTTP X

选择:1.In common network services, web services use the ( HTTP) protocol
2.In the TCP/IP protocol, the port address with(16)bits length
3.In the TCP header, the (ACK) field specifies the number of the next byte expected
4.Which one is not network interconnection device?(mouse)
5.Which is a MAC address ?(FC-F8-AE-D3-BE-2A)
6.When using super scan to scan the target network, it is found that a host is open on ports 25 and 110, which are most likely (Email) servers
7.Which of the following routing protocol is belong to EGP?(BGP)
8.The main task of the(Transport) layer is to provide for the reliable transfer of information across the physical link
9.The data link layer uses(CRC) for error detection
10.The ( ping) instruction is used to detect the connectivity of the destination host
11.The IP address of a server is 128.36.199.3, This IP address belongs to(class B)
12…There are(two)protocols available in the transport layer
13.The popular point-to-point DLC protocol is(PPP).
14.(IEEE802.3z) is not belong the WLAN series
15.(SYN) an attack is an attack by creating a large number of “semi-connections” that can be attacked on any host connected to the Internet and providing TCP based network services

大题:

Use Python to write a client and server program based on TCP protocol to achieve mutual communication.
Requirement:
1)The client can send messages to the server, and the server can display the message sent by the client.
2)When the client sends “Q”, it will interrupt the socket connection and the program automatically quit.

// server
import socket

def serve(ip, port):
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tcp_socket.bind((ip, port))
tcp_socket.listen()
client_socket, client_addr = tcp_socket.accept()
while True:
recv_data = client_socket.recv(1024)
if recv_data:
print(“客户端:”, recv_data.decode())
else:
Break

def main():
serve(“127.0.0.1”, 9999)

if name == ‘main’:
main()

// client
import socket

def client(ip, port):
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tcp_socket.bind((ip, port))
tcp_socket.connect((“127.0.0.1”, 9999))
while True:
msg = input(“请输入要发送内容:”)
if msg == “Q”:
tcp_socket.close()
break
tcp_socket.send(msg.encode())

def main():
client(“127.0.0.1”, 9998)

if name == ‘main’:
main()

更多推荐

计算机网络知识点,期末

本文发布于:2024-03-23 19:21:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1741856.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:知识点   计算机网络   期末

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!