컴퓨터 네트워크 계층

      
                      

     
                              

TCP/IP     
           (ip)       

TCP/IP         ,              。 

wireshark:
Capture Option   
1、Interface( ) Link-layer header type( )
2、Limit each packet to N bytes( N )
3、Capture packets in promiscuous mode( )
4、Filter( )
5、Capture files( )
6、Display Options( )
7、Stop Capture( )
8、Name resolution( )
(Frame)
(Frame),Wireshark 、 、 、 。

14 ,6 6 ,2 。
: (08 00)。
IP

TCP 20 。2 。4 ,4 。1 。2 ,2 ,2 。



: ,
TCP : 。
: ,
:SYN、ACK、PSH、RST、URG、FIN
SYN:
ACK:
PSH:
RST:
URG:
FIN:

: TCP ,
: , U R G 1
: , , ,

Wireshark    :
 、IP  :    IP    IP    IP
  :ip.src addr==192.168.0.208  or ip.src addr eq 192.168.0.208     IP
        ip.dst addr==192.168.0.208  or ip.dst addr eq 192.168.0.208     IP

 、    :
  :tcp.port eq 80 //                 
        tcp.port == 80
        tcp.port eq 2722
        tcp.port eq 80 or udp.port eq 80
        tcp.dstport == 80 //   tcp       80
        tcp.srcport == 80 //   tcp       80

      
tcp.port >= 1 and tcp.port <= 80

 、    :tcp
udp
arp
icmp
http
smtp
ftp
dns
msnms
ip
ssl
  
  ssl , !ssl     not ssl

 、     :
  :
udp.length == 26       udp      8  udp         
tcp.len >= 7     ip   (tcp      ),   tcp  
ip.len == 94           14,     ip.len,  ip     
frame.len == 119        , eth     

 、http    :
  :
http.request.method == “GET”
http.request.method == “POST”
http.request.uri == “/img/logo-edu.gif”
http contains “GET”
http contains “HTTP/1.”

// GET 
http.request.method == “GET” && http contains “Host: ”
http.request.method == “GET” && http contains “User-Agent: ”
// POST 
http.request.method == “POST” && http contains “Host: ”
http.request.method == “POST” && http contains “User-Agent: ”
//    
http contains “HTTP/1.1 200 OK” && http contains “Content-Type: ”
http contains “HTTP/1.0 200 OK” && http contains “Content-Type: ”
      
Content-Type:

 、    and / or

 、   :!(arp.src==192.168.1.1) and !(arp.dst.proto_ipv4==192.168.1.243)

좋은 웹페이지 즐겨찾기