نمایش نتایج: از شماره 1 تا 3 از مجموع 3
سپاس ها 4سپاس

موضوع: SNMP و UDP

  
  1. #1
    نام حقيقي: ناج

    عضو عادی
    تاریخ عضویت
    Aug 2009
    محل سکونت
    13
    نوشته
    144
    سپاسگزاری شده
    67
    سپاسگزاری کرده
    55

    SNMP و UDP

    سلام

    ببینید مگه پروتکل SNMP مهم نیست؟ مگه نباید تک تک دیتا ها و لاگ هایی رو که میخوایم ببینیم کامل دیده بشند و اگر عملیاتی بخوایم انجام بدیم باید با اطمینان کامل انجام بشه؟

    خوب چرا روی UDP کار میکنه؟ دلیل چیست؟

    یک SNMP Trap هم هست که روی TCP کار میکنه. اطلاعی از اون ندارم.

    مرسی



    موضوعات مشابه:

  2. #2
    نام حقيقي: Mohammad

    عضو ویژه شناسه تصویری th95
    تاریخ عضویت
    Sep 2008
    نوشته
    4,263
    سپاسگزاری شده
    5765
    سپاسگزاری کرده
    2674
    نوشته های وبلاگ
    20
    سلام ناربه جان
    چطوری پسر ؟
    چون خودت استادی دیگه ترجمه نمیکنم
    اول این خلاصه رو بخون بعد متن زیر رو که از یک کتاب گذاشتم

    UDP is actually expected to work better than TCP in lossy networks (or congested networks). TCP is far better at transferring large quantities of data, but when the network fails it's more likely that UDP will get through. (in fact, I recently did a study testing this and it found that SNMP over UDP succeeded far better than SNMP over TCP in lossy networks when the UDP timeout was set properly). Generally, TCP starts behaving poorly at about 5% packet loss and becomes completely useless at 33% (ish) and UDP will still succeed (eventually).

    So the right thing to do, as always, is pick the right tool for the right job. If you're doing routine monitoring of lots of data, you might consider TCP. But be prepared to fall back to UDP for fixing problems. Most stacks these days can actually use both TCP and UDP.
    As for sending TRAPs, yes TRAPs are unreliable because they're not acknowledged. However, SNMP INFORMs are an acknowledged version of a SNMP TRAP. Thus if you want to know that the notification receiver got the message, please use INFORMs. Note that TCP does not solve this problem as it only provides layer 3 level notification that the message was received. There is no assurance that the notification receiver actually got it. SNMP INFORMs do application level acknowledgement and are much more trustworthy than assuming a TCP ack indicates they got it.




    کد:
    http://oreilly.com/catalog/esnmp/chapter/ch02.html
    Chapter 2
    A Closer Look at SNMP


    In this chapter, we start to look at SNMP in detail. By the time you finish this chapter, you should understand how SNMP sends and receives information, what exactly SNMP communities are, and how to read MIB files. We'll also look in more detail at the three MIBs that were introduced in Chapter 1, namely MIB-II, Host Resources, and RMON.
    SNMP and UDP

    SNMP uses the User Datagram Protocol (UDP) as the transport protocol for passing data between managers and agents. UDP, defined in RFC 768, was chosen over the Transmission Control Protocol (TCP) because it is connectionless; that is, no end-to-end connection is made between the agent and the NMS when datagrams (packets) are sent back and forth. This aspect of UDP makes it unreliable, since there is no acknowledgment of lost datagrams at the protocol level. It's up to the SNMP application to determine if datagrams are lost and retransmit them if it so desires. This is typically accomplished with a simple timeout. The NMS sends a UDP request to an agent and waits for a response. The length of time the NMS waits depends on how it's configured. If the timeout is reached and the NMS has not heard back from the agent, it assumes the packet was lost and retransmits the request. The number of times the NMS retransmits packets is also configurable.
    At least as far as regular information requests are concerned, the unreliable nature of UDP isn't a real problem. At worst, the management station issues a request and never receives a response. For traps, the situation is somewhat different. If an agent sends a trap and the trap never arrives, the NMS has no way of knowing that it was ever sent. The agent doesn't even know that it needs to resend the trap, because the NMS is not required to send a response back to the agent acknowledging receipt of the trap.
    The upside to the unreliable nature of UDP is that it requires low overhead, so the impact on your network's performance is reduced. SNMP has been implemented over TCP, but this is more for special-case situations in which someone is developing an agent for a proprietary piece of equipment. In a heavily congested and managed network, SNMP over TCP is a bad idea. It's also worth realizing that TCP isn't magic, and that SNMP is designed for working with networks that are in trouble--if your network never failed, you wouldn't need to monitor it. When a network is failing, a protocol that tries to get the data through but gives up if it can't is almost certainly a better design choice than a protocol that will flood the network with retransmissions in its attempt to achieve reliability.



    Reza.D، aliafzalan، NarbeH و 1 نفر دیگر سپاسگزاری کرده‌اند.

  3. #3
    نام حقيقي: ناج

    عضو عادی
    تاریخ عضویت
    Aug 2009
    محل سکونت
    13
    نوشته
    144
    سپاسگزاری شده
    67
    سپاسگزاری کرده
    55
    خیلی خیلی ممنون آقا گنجی. گرفتمش.
    موفق باشی



کلمات کلیدی در جستجوها:

ناربه آراکیل

snmp پروتکلprotokol snmpچرا snmpsnmp وچرا snmp از udpماهیت tcp و udp

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •