Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ICMP port mấy?

    Theo mình biết thì ICMP không có port, vậy khi dữ liệu được encapsulation thì ICMP được gắn port gì?

  • #2
    Originally posted by netbaby View Post
    Theo mình biết thì ICMP không có port, vậy khi dữ liệu được encapsulation thì ICMP được gắn port gì?
    port dành cho giao thức TCP và UDP ở lớp 4

    ICMP là giao thức lớp 3 => không có port

    vd: ping là 1 giao thức thuộc ICMP dùng để test kết nối mạng dùng thông

    điệp ICMP echo và ICMP reply.

    khi bạn ping một host => gửi thông điệp echo đến đích, nếu đích phản hồi bằng reply tức là kết nối từ máy gửi đến máy

    nhận là ok (chỉ test được từ lớp 1 đến 3, ko test được problem từ lớp 4 trở lên lớp 7)
    Last edited by trainingit; 14-01-2008, 10:29 PM.
    no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

    :32::53::X:106:

    Nothing last forever...

    Comment


    • #3
      Như vậy làm sao nó phân biệt được gói tin đó là ICMP? Đúng là ICMP test lớp 3 nhưng phải có gì nhận dạng nó chứ.
      RIP ở lớp 3 cũng có port vậy: port 520
      xem link: http://www.iss.net/security_center/a...xploits/Ports/
      Một số tài liệu cho thấy nó sử dụng dịch vụ echo port 7:
      Welcome to the TechExams Community! We're proud to offer IT and security pros like you access to one of the largest IT and security certification forums on the web. Whether you stopped by for certification tips or the networking opportunities, we hope to see you online again soon. TechExams is owned by Infosec, part of Cengage.
      Last edited by netbaby; 14-01-2008, 10:38 PM.

      Comment


      • #4
        Internet Control Message Protocol (ICMP)

        TCP/IP includes ICMP, a protocol designed to help manage and control the operation of aTCP/IP network. The ICMP protocol provides a wide variety of information about a network’s health and operational status. Control Message is the most descriptive part of the name. ICMP helps control and manage IP’s work by defining a set of messages and procedures about the operation of IP. Therefore, ICMP is considered part of TCP/IP’s network layer. Because ICMP helps control IP, it can provide useful troubleshooting information. In fact, the ICMP messages sit inside an IP packet, with no transport layer header, so ICMP is truly an extension of the TCP/IP network layer.

        Nếu cần thiết biết thêm chi tiết hơn về ICMP , bạn xem tài liệu sau :
        Cisco.Press.CCENT.CCNA.ICND2.Exam.Certification.Gu ide.2nd.Edition.Sep.2007.eBook-DDU

        Chúc bạn vui 1!!
        Trần Mỹ Phúc
        tranmyphuc@hotmail.com
        Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

        Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

        Juniper Certs :
        JNCIP-ENT & JNCIP-SEC
        INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

        [version 4.0] Ôn tập CCNA


        Comment


        • #5
          Originally posted by trainingit View Post
          port dành cho giao thức TCP và UDP ở lớp 4

          ICMP là giao thức lớp 3 => không có port

          vd: ping là 1 giao thức thuộc ICMP dùng để test kết nối mạng dùng thông

          điệp ICMP echo và ICMP reply.

          khi bạn ping một host => gửi thông điệp echo đến đích, nếu đích phản hồi bằng reply tức là kết nối từ máy gửi đến máy

          nhận là ok (chỉ test được từ lớp 1 đến 3, ko test được problem từ lớp 4 trở lên lớp 7)


          ICMP không phải là giao thức lớp 3 mà nó là giao thức lớp 4 .
          Trần Mỹ Phúc
          tranmyphuc@hotmail.com
          Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

          Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

          Juniper Certs :
          JNCIP-ENT & JNCIP-SEC
          INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

          [version 4.0] Ôn tập CCNA


          Comment


          • #6
            Như vậy làm sao nó phân biệt được gói tin đó là ICMP? Đúng là ICMP test lớp 3 nhưng phải có gì nhận dạng nó chứ.
            nhận dạng dựa vào header của gói tin :D
            no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

            :32::53::X:106:

            Nothing last forever...

            Comment


            • #7
              Originally posted by tranmyphuc1988 View Post


              ICMP không phải là giao thức lớp 3 mà nó là giao thức lớp 4 .
              :D, mình sẽ post thêm một chút :105:

              ICMP là một giao thức thuộc bộ giao thức TCP/IP

              + trong mô hình TCP/IP nói rằng ICMP là giao thức hoạt động ở network layer:



              + trong mô hình OSI cũng nói rằng ICMP hoạt động ở network layer:



              (http://en.wikipedia.org/wiki/Interne...ssage_Protocol)

              :105::105:
              Last edited by trainingit; 14-01-2008, 11:06 PM.
              no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

              :32::53::X:106:

              Nothing last forever...

              Comment


              • #8
                Originally posted by trainingit View Post
                :D, mình sẽ post thêm một chút :105:

                ICMP là một giao thức thuộc bộ giao thức TCP/IP

                + trong mô hình TCP/IP nói rằng ICMP là giao thức hoạt động ở network layer:



                + trong mô hình OSI cũng nói rằng ICMP hoạt động ở network layer:



                (http://en.wikipedia.org/wiki/Interne...ssage_Protocol)

                :105::105:
                XIn lỗi mình nhầm .
                Trần Mỹ Phúc
                tranmyphuc@hotmail.com
                Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

                Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

                Juniper Certs :
                JNCIP-ENT & JNCIP-SEC
                INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

                [version 4.0] Ôn tập CCNA


                Comment


                • #9
                  Bạn tham khảo bài viết dưới nha :
                  Internet Control Message Protocol (ICMP)

                  The Internet Control Message Protocol, or ICMP, described in RFC 792, specifies a variety of messages whose common purpose is to manage the network. ICMP messages might be classified as either error messages or queries and responses. Figure 1-16 shows the general ICMP packet format. The packets are identified by type; many of the packet types have more specific types, and these are identified by the code field. Table 1-6 lists the various ICMP packet types and their codes, as described in RFC 1700.





                  Sau khi xem cấu trúc gói tin chắc bạn đã hiểu rằng nó không cần phải có port gì cả .

                  CHúc bạn vui !!!
                  Trần Mỹ Phúc
                  tranmyphuc@hotmail.com
                  Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

                  Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

                  Juniper Certs :
                  JNCIP-ENT & JNCIP-SEC
                  INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

                  [version 4.0] Ôn tập CCNA


                  Comment


                  • #10
                    Hix, xem rồi mà chưa hiểu vì sao. Mình thấy đó là các kiểu của ICMP chứ đâu thấy nói lên nó phân biệt với giao thức khác ở điểm nào.

                    Comment


                    • #11
                      Originally posted by netbaby View Post
                      Hix, xem rồi mà chưa hiểu vì sao. Mình thấy đó là các kiểu của ICMP chứ đâu thấy nói lên nó phân biệt với giao thức khác ở điểm nào.
                      bạn cần xem nhiều giao thức khác nhau, tất cả các giao thức đều khác nhau

                      ở phần header,

                      chỉ cần xem header của giao thức đó là biết đấy là giao thức nào
                      no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

                      :32::53::X:106:

                      Nothing last forever...

                      Comment


                      • #12
                        Originally posted by netbaby View Post
                        Hix, xem rồi mà chưa hiểu vì sao. Mình thấy đó là các kiểu của ICMP chứ đâu thấy nói lên nó phân biệt với giao thức khác ở điểm nào.
                        Thay cho việc dùng port , ICMP đã sử dụng identifier and sequence number

                        Bạn xem chú thích bên dưới nha

                        Echo or Echo Reply Message



                        IP Fields:

                        Addresses
                        The address of the source in an echo message will be the destination of the echo reply message. To form an echo reply message, the source and destination addresses are simply reversed, the type code changed to 0, and the checksum recomputed.


                        IP Fields:

                        Type
                        8 for echo message;
                        0 for echo reply message.


                        Code
                        0

                        Checksum

                        The checksum is the 16-bit ones's complement of the one's complement sum of the ICMP message starting with the ICMP Type. For computing the checksum , the checksum field should be zero. If the total length is odd, the received data is padded with one octet of zeros for computing the checksum. This checksum may be replaced in the future.

                        Identifier

                        If code = 0, an identifier to aid in matching echos and replies,
                        may be zero.

                        Sequence Number
                        If code = 0, a sequence number to aid in matching echos and
                        replies, may be zero.
                        Description

                        The data received in the echo message must be returned in the echo reply message.


                        The identifier and sequence number may be used by the echo sender to aid in matching the replies with the echo requests. For example, the identifier might be used like a port in TCP or UDP to identify a session, and the sequence number might be incremented on each echo request sent. The echoer returns these same values in the echo reply.
                        Code 0 may be received from a gateway or a host.
                        Trần Mỹ Phúc
                        tranmyphuc@hotmail.com
                        Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

                        Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

                        Juniper Certs :
                        JNCIP-ENT & JNCIP-SEC
                        INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

                        [version 4.0] Ôn tập CCNA


                        Comment


                        • #13
                          the identifier might be used like a port in TCP or UDP to identify a session
                          Câu này chính xác, ICMP không hẵn không có port mà sử dụng port echo của TCP hoặc UDP. Mở file services trong system32\drivers\etc sẽ thấy:

                          echo 7/tcp
                          echo 7/udp

                          Comment


                          • #14
                            Originally posted by itsoftech
                            vậy ai biết chỉ vơi : remote destop và vpn là cổng số máy vậy
                            3389 và 1723 :D
                            no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

                            :32::53::X:106:

                            Nothing last forever...

                            Comment


                            • #15
                              ah minh hoc cung co cau hoi nay:ping co port hay khong.
                              ping la mot ung dung chay dua tren IMCP
                              ICMP khong co port do kok phai la ky do ke 7t luan ping khong co port ma ping la ung dung thoi.
                              ung dung thi thuoc lop layer trong mo hinh OSI.
                              UNG DUNG thi se khong co port nhoe'':D
                              ___________
                              neu sai cac pan giai thick ro rang gium minh nha

                              Comment

                              Working...
                              X