外文翻譯-----tcpip在linux下的具體實現(xiàn).doc
約32頁DOC格式手機打開展開
外文翻譯-----tcpip在linux下的具體實現(xiàn),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...
內(nèi)容介紹
此文檔由會員 wanli1988go 發(fā)布
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下的具體實現(xiàn)
1 通用TCP/IP邏輯結構;
與ISO提出的OSI定義網(wǎng)絡層次(7層)不同,tcp/ip就定義了五層.
各層的主要功能及對應的硬件:
物理層:定義傳輸?shù)碾娖郊坝布涌跇藴?.
數(shù)據(jù)鏈路層:對應的是網(wǎng)卡的驅動(在這層調(diào)用具體的read/write函數(shù)把包通過網(wǎng)卡發(fā)出去)
網(wǎng)絡層:用來路由的,負責把一個包發(fā)到指定的網(wǎng)絡機器等;
傳輸層:把收到的包傳給具體的進程(根據(jù)端口號)等;
應用層:把有用的數(shù)據(jù)進行重新組裝,定義要傳輸?shù)亩丝诘鹊?
2 .TCP/IP協(xié)議棧在linux下的層次
LINUX下tcp/ip協(xié)議棧是以4.4 BSD為模板,估計目前大多數(shù)操作系統(tǒng)都是以此為模板的,支持BSD Socket 編程,即常用的網(wǎng)絡編程模型;
在服務器端:
1. 調(diào)用socket()創(chuàng)建一個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下的具體實現(xiàn)
1 通用TCP/IP邏輯結構;
與ISO提出的OSI定義網(wǎng)絡層次(7層)不同,tcp/ip就定義了五層.
各層的主要功能及對應的硬件:
物理層:定義傳輸?shù)碾娖郊坝布涌跇藴?.
數(shù)據(jù)鏈路層:對應的是網(wǎng)卡的驅動(在這層調(diào)用具體的read/write函數(shù)把包通過網(wǎng)卡發(fā)出去)
網(wǎng)絡層:用來路由的,負責把一個包發(fā)到指定的網(wǎng)絡機器等;
傳輸層:把收到的包傳給具體的進程(根據(jù)端口號)等;
應用層:把有用的數(shù)據(jù)進行重新組裝,定義要傳輸?shù)亩丝诘鹊?
2 .TCP/IP協(xié)議棧在linux下的層次
LINUX下tcp/ip協(xié)議棧是以4.4 BSD為模板,估計目前大多數(shù)操作系統(tǒng)都是以此為模板的,支持BSD Socket 編程,即常用的網(wǎng)絡編程模型;
在服務器端:
1. 調(diào)用socket()創(chuàng)建一個socket;
2. bind()
3. listen()
4. accept();
5. read/write()
在客戶端
1 socket();
2 connect();
3 read/write();