外文翻译-----tcpip在linux下的具体实现.doc
约32页DOC格式手机打开展开
外文翻译-----tcpip在linux下的具体实现,tcp / ip in linux implementation1common tcp / ip logic structure;and iso proposed osi network layer (layer 7), tcp / ip defines five layer.function of each laye...
内容介绍
此文档由会员 wanli1988go 发布
TCP / IP in Linux implementation
1common TCP / IP logic structure;
And ISO proposed OSI network layer (layer 7), TCP / IP defines five layer.
Function of each layer and the corresponding hardware:
Physical layer: defines the transport level and hardware interface standard..
Data link layer: corresponding to the card ( in this layer to call the specific read / write functions to the package through the card out )
Network layer: used for routing, put in charge of a packet sent to the specified network machine;
Transport layer: the received packet is transmitted from the specific processes ( according to the port number );
Application layer: the useful data for reassembly, defining a transmission port and so on;
2 TCP / IP protocol stack in Linux level
LINUX under the TCP / IP protocol stack is 4.4BSD as template, estimated to be present in most operating system is used as a template, support for BSD Socket programming, that is commonly used in network programming model;
On the server side:
1call socket ( ) to create a socket;
TCP/IP在linux下的具体实现
1 通用TCP/IP逻辑结构;
与ISO提出的OSI定义网络层次(7层)不同,tcp/ip就定义了五层.
各层的主要功能及对应的硬件:
物理层:定义传输的电平及硬件接口标准..
数据链路层:对应的是网卡的驱动(在这层调用具体的read/write函数把包通过网卡发出去)
网络层:用来路由的,负责把一个包发到指定的网络机器等;
传输层:把收到的包传给具体的进程(根据端口号)等;
应用层:把有用的数据进行重新组装,定义要传输的端口等等;
2 .TCP/IP协议栈在linux下的层次
LINUX下tcp/ip协议栈是以4.4 BSD为模板,估计目前大多数操作系统都是以此为模板的,支持BSD Socket 编程,即常用的网络编程模型;
在服务器端:
1. 调用socket()创建一个socket;
2. bind()
3. listen()
4. accept();
5. read/write()
在客户端
1 socket();
2 connect();
3 read/write();
1common TCP / IP logic structure;
And ISO proposed OSI network layer (layer 7), TCP / IP defines five layer.
Function of each layer and the corresponding hardware:
Physical layer: defines the transport level and hardware interface standard..
Data link layer: corresponding to the card ( in this layer to call the specific read / write functions to the package through the card out )
Network layer: used for routing, put in charge of a packet sent to the specified network machine;
Transport layer: the received packet is transmitted from the specific processes ( according to the port number );
Application layer: the useful data for reassembly, defining a transmission port and so on;
2 TCP / IP protocol stack in Linux level
LINUX under the TCP / IP protocol stack is 4.4BSD as template, estimated to be present in most operating system is used as a template, support for BSD Socket programming, that is commonly used in network programming model;
On the server side:
1call socket ( ) to create a socket;
TCP/IP在linux下的具体实现
1 通用TCP/IP逻辑结构;
与ISO提出的OSI定义网络层次(7层)不同,tcp/ip就定义了五层.
各层的主要功能及对应的硬件:
物理层:定义传输的电平及硬件接口标准..
数据链路层:对应的是网卡的驱动(在这层调用具体的read/write函数把包通过网卡发出去)
网络层:用来路由的,负责把一个包发到指定的网络机器等;
传输层:把收到的包传给具体的进程(根据端口号)等;
应用层:把有用的数据进行重新组装,定义要传输的端口等等;
2 .TCP/IP协议栈在linux下的层次
LINUX下tcp/ip协议栈是以4.4 BSD为模板,估计目前大多数操作系统都是以此为模板的,支持BSD Socket 编程,即常用的网络编程模型;
在服务器端:
1. 调用socket()创建一个socket;
2. bind()
3. listen()
4. accept();
5. read/write()
在客户端
1 socket();
2 connect();
3 read/write();