daniel2009 wrote: » RIP messages get encapsulated into The Data Link Frame Header IP Packet header UDP Segment header RIP Message Does the RIP protocol code encapsulate the data link frame header, ip packet header, udp segment header and rip message. Or is the encapsulating done by 4 codes (ip protocol, udp protocol code, rip protocol code, and one other?)
daniel2009 wrote: » Seems RIP is just a sub-part of the UDP protocol ( List of TCP and UDP port numbers - Wikipedia, the free encyclopedia ) I guess the UDP protocol code is a really big part of the IOS, in which RIP is a sub-part. So the encapsulation is done by RIP sub-routing protocol of UDP routing protocol and IP (Internet Protocol) Or am I understanding wrong? Are the other protocols supported in the Cisco IOS? for example, can a router do ssh?
class Program { static void Main(string[] args) { /* Initialize RIP server, and start RIP client threads somewhere else */ int recv; byte[] data = new byte[1024]; IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 520); Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); newsock.Bind(ipep); /* wait for clients (routers/pcs/switches) to connect */ IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0); EndPoint Remote = (EndPoint)(sender); /* handle RIP messages now. listen and send/request RIP messages. */ recv = newsock.ReceiveFrom(data, ref Remote); Console.WriteLine("RIP message received from :", Remote.ToString()); } }