Showing posts with label summary. Show all posts
Showing posts with label summary. Show all posts

Wednesday, April 14, 2010

Colloquium: "Survivable Routing in Multi-hop Wireless Networks"

Today's class was mostly on Prof. Krishnamurthy's talk on routing within a multi-hop wireless network. Multi-hop wireless networks are networks involving multiple static routers connecting wirelessly over some area, and are commonly seen in things like city-wide wireless networks, campus networks, surveillance, and the military. Research on this kind of networks is being carried out in many places, involving Rutgers, MIT, and UCR. What separates these networks from wired networks is the fact that spatial distance and arrangement matter.

Currently, the most popular protocol uses ETX (Expected Transmission Count) as a metric of connection quality. ETX uses number of expected number of packets to send one good packet as weight on a network graph connection. However, most protocols put too much weight on number of hops needed to a destination, and so favors longer, less reliable hops over short, very reliable hops between routers. This forces each router to send more packets, expecting them to not arrive successfully. In addition, ETX is blind to where unreliable connections are located – lost packets toward the end of a path means that a failure message will have to travel all the way back to the sender, causing more network congestion.

Prof. Krishnamurthy proposes ETOP, a protocol that takes into account both the number of hops, reliability, and the location of unreliable connections. The metric uses probe packets to determine where unreliable connections are and places greater cost toward unreliable segments which are farther in the path. Because of this, the protocol generates non-commutative paths (Paths from routers A to B aren't necessarily the same as B to A). Regardless, he has proven that greedy algorithms are usable for determining paths given this metric, and so Dijkstra's algorithm is usable for the protocol.

ETOP on average shows better goodput (useful bandwidth) compared to ETX, especially for multi-hop paths. The protocol interacts somewhat chaotically with TCP, making its congestion window fluctuate wildly, but almost always better goodput nonetheless. ETOP also shows worse round trip time since it may favor paths with more hops.

Prof. Krishnamurthy also talked about security in a wireless network, in particular about safeguards against certain common attacks. A wormhole attack places an attractive link in the network, allowing the attacker to snoop on many of the packets going through the network. Gray hole and black hole attacks expand on this concept by also consuming some or all of the incoming packets. This effectively creates a denial of service attack. Sybil attacks expand on wormholes by spoofing as multiple clients to obtain disproportionately many packets. Colluded attacks involve multiple clients working together to give their fake connections more reliability.

His proposal for network security involve a protocol which detects and uproots attackers. The protocol (separate from ETOP) stops attackers by first looking for suspicious traits for every client on the network. Questionable clients are then interrogated. Challenge packets are sent to the offending clients, which must be replied to in a certain way. Failure rates incompatible with their advertised reliability would expel those clients from the network. This protocol has a very high success rate and low false positive rate, but makes the network significantly less efficient.

Thursday, April 8, 2010

Lecture 19: HTTP (April 7)

We began today with a short presentation from Justin about IPv6 and its differences from IPv4. We then began a discussion about the HTTP protocol. HTTP is the protocol that supports communication between browsers and servers. HTTP is implemented so that a clients requests something from the server and the server replies to that request. HTTP connections of this kind are stateless, and the connection can either be persistent or not.

The format of an HTTP request is in the form of lines of ASCII text followed by a carriage return and line feed. In HTTP version 1.0 and above, the version number is required as one of the lines in the request, while in previous versions this was not required.

HTTP methods that are supported across the board are GET, POST, and HEAD. Servers that use HTTP 1.1 will support PUT, DELETE, TRACE, and OPTIONS.

We then concluded the class with a discussion of what cookies are and what they are used for. Cookies are used in order to allow web sites to keep state information about you. This is implemented as a cookie value that is sent in the HTTP header as a field, and then the server will compare that value with its database of cookies. This way, state information is saved.

Monday, March 29, 2010

Lecture 13: FTP

This lecture was about the File Transfer Protocol (FTP). The main purpose of FTP is to transfer files from one computer to another across a network. FTP was implemented to help promote the sharing of files, encourage use of remote computers, and transfer data reliably between different end hosts. You might think at first that transferring files between computers is relatively easy. However, different operating systems have different structures for handling files and could be drastically different from one another. FTP is responsible for handling all these issues to make the transfer seamless for the users.

When an FTP connection is made, two separate connections are established. One is for control information and the other is for data information. First, the control connection is established and the end hosts communicate with one another. When a request is made over the control connection for a file, the data connection is established and the data transfer occurs. As data is transferred over the connections, replies are also sent back and forth. Replies are only sent over the control connection and contain much information about the state of the transfer.

Trivial File Transfer Protocol (TFTP) is a simplified version of FTP. It was designed to be small and simple and able to fit into the ROM of a computer. TFTP is mainly used for bootstrapping diskless systems.

Saturday, March 6, 2010

Lecture 12: Telnet, Email, etc.



The lecture given on wednesday, march 3rd, started, as always with a review of the previous lecture and then moved onto the new material: the application level protocols telnet, smtp, pop, imap and mime. From the previous lecture, Dr. Gunes repeated the key functions of a router, how much buffer was necessary, bridges, and spanning trees.
The new information was, in my opinion, more enjoyable. The reason I say this is obvious, application level protocols are easier to understand and experiement with. Almost all of the protocols mentioned in the class on Wednesday were not only explained, but demonstrated.

The first protocol that Dr. Gunes taught us about was telnet. Telnet is simple, bidirectional communication protocol that utilizes byte oriented communication. It is a generic TCP client that sends whatever you type into the host terminal over the TCP socket. Many unix machines have telnet servers offering functionality like echo running by default. The professor demonstrated several such examples during class to the delight of the students.

Next, the instructor educated us on several basic email protocols including smtp, pop, imap, and mime. Smtp, simple message transfer protocol is used to send emails. It can even be used through telnet! It was shown to be unsecure because it is very easy to send fraudulent emails. Next the instructor taught us about POP, post office protocol. This mail receiving protocol allows the client to read their emails by pulling them entirely from the server. this allows the emails to be read offline. After that, he taught us about IMAP, Internet Message Access protocol. This protocol is more flexible than pop3 and more complicated. Finally we discussecd webmail, which we are all quite familiar with.

Sunday, February 28, 2010

Lecture 9: Routing the Internet (Feb 22)

In today's lecture, Dr. Gunes talked about how routing in the internet works. In the entirety of the internet, it would be impractical to store all the destinations in to a routing table. The tables would be very large and inefficient. Network administrators do not want to be told how to configure their own routers, so each network may be a little different from other networks. They are all autonomous systems (AS). Each network much communicate with itself with the same intra-autonomous system routing protocol, but for other ASes to communicate with each other, there must be a Gateway router to bind them directly together.

The forwarding tables in each AS must have a intra-routing table as well as an inter-routing table to communicate with external destinations. An example from the lecture shows the tasks of the Inter-AS. When a datagram from the inside needs to be delivered to the outside, the AS must learn how the destination can be communicated to and where it can be reached through. Once it is known, the AS propagates the information to all of the routers in its network, so they are informed of how to reach that destination.

In Intra-AS routing, there are a few common routing protocols. The ones mentioned in the lecture were Routing Information Protocol (RIP) and Open Shortest Path First (OSPF). RIP uses the distance vector algorithm mentioned in the last lecture and OSPF uses the link state algorithm mentioned previously as well. A major point of RIP is that constantly exchanges its distance vectors, also called advertisements, with its neighbors every thirty-seconds and the OSPF keeps a topological map at each of its nodes where its advertisements are flooded across the network.

Thursday, February 25, 2010

Lecture 10: BGP (Feb 24)

Today's lecture started off with the introduction of Lab 2 and the requirements for that lab. We then began a discussion about BGP and what it entails. BGP is essentially a protocol for subnets to announce "I am here." Routers will exchange routing information with each other in order to learn the reachability of other routers. BGP actually consists of two separate protocols, one that is internal to the asynchronous system and then one for inter-AS communications. We have these different protocols because we want the inter-AS routing to focus on policies while the intra-AS routing can focus on performance.

Monday, February 22, 2010

Lecture 8: Routing Algorithms (Feb 17)

Today's lecture talks about routing algorithms, which are used by routers to determine where data packets should go in a network. This problem is essentially that of finding the shortest route through a weighted graph.

These algorithms may use global or local information. The routing itself can be relatively static or dynamic over time. Dijkstra's algorithm uses global information and constructs a shortest-path tree from a given router. For this strategy, every router remembers the complete topology of the network and paths toward each location. Bellman-Ford algorithm uses local information and broadcasted network changes to approximate and over time attain optimal routes. For this strategy, each router remembers their known closest distance to all locations in the network and the first hop toward that location.

In both algorithms, changes in the network may cause instabilities. Dijkstra's algorithm may have instabilities if packets change edge weights in a network graph. Bellman-Ford algorithm has troubles propagating information about increase in transmission costs or dead connections.

Wednesday, February 10, 2010

Lecture 7 : Routing (Feb 10)

Todays instruction was focused on how Routing works. It is important to understand the difference between the terms forwarding or routing. Forwarding is used when describing a packet at one hop, while routing is in reference to the whole path taken by a packet. There were two major types of connections discussed, Virtual Connections and Datagram Networks. Virtual Connections are technologies such as ATM, Frame Relay, and X2.5. These methods create a connection from end to end. This allows ATM to guarantee no loss, order, timing and rate of data transfer. Virtual Connections are efficient and practical in smaller network models, but fail in larger networks because resources are tied up in reserved connections. Datagram Networks, on the other hand, are much more efficient with large-scale networks. IP is the Datagram network protocol. There is not dedicated connection from one client to the other. The data is forward from one device to the next until it reaches the destination. IP cannot make any of the guarantees that ATM could, but it keeps the networks simple and fast. Next the lecture focused on the basics of how a forwarding table works. Forwarding tables have assigned IP address ranges that correspond to a routers interface locally. If an IP address falls within a certain range, the packet would be sent on that interface. A common method used in forwarding tables is longest prefix matching. This means that the forwarding table entry that matches the most digits in the IP address will correspond to the interface that the data will be sent on.

Monday, February 8, 2010

Lecture 6: TCP (Feb. 8)

Today's instruction was focused on how the TCP protocol communicates together between two systems. First, a connection needs to be made between the two parties. This is done via a syn, syn ack, ack three-way handshake. This is necessary to provide each party with the initial sequence number of the other and to verify a connection. After that, data can be transmitted from both sender and receiver. Each party keeps track of the sequence number, window size, and request number (ACK) of the other party to ensure that all the data is delivered reliably and securely. It's worthy to note that each party keeps two buffers. One is to hold the incoming data from the other party and the other is to hold the data sent by themselves in case they need to send it again. To terminate a connection, you can either send a RST segment which abruptly ends the session or you can do it the nice way. The nice involves one party sending a FIN segment which is following by an ACK from the other party. The connection is still alive however because the other party might still have information to send. Once the other party is finished, they send a FIN segment which is again ACK'd by the other. Then the connection is done but TCP stays on the line for a while to ensure that any lost packages have a chance to reach their destination.

Sunday, February 7, 2010

Lecture 5: TCP/IP(cont.) (Feb 3)

In today,s lecture Dr. Gunes firstly went over the previous lecture and reminded us CSMA, Ethernet and its architecture, IP addresses,IP formats, and the structure of IP Datagram. Then, he talked about TCP/IP model deeply. First, he explained IP flow control and error detection mechanisms. He talked about ICMP and showed the differences between different types of ICMP messages. Then, he explained UDP which is the other part of TCP/IP transport layer protocol. After the UDP, we begun discussing Transmission Control Protocol in depth. Dr. Gunes, explained the most important 4 features, which are connection-oriented, reliable, full-duplex and byte-stream, of TCP. Then, he talked about the TCP ports. One important thing regarding ports is that TCP and UDP ports have different namespaces, so we can use the same port number for both. Then, we talked about the TCP segment format and addressing issues in TCP/IP. Finally, we compared the TCP and UDP.

Monday, February 1, 2010

Lecture 4: TCP/IP (Feb 1)

In today’s lecture, Dr. Gunes spoke about Ethernet frames, the IP protocol and how sub-netting works. We learned the structure of the Ethernet frame and what each section of the frame is responsible for. As a class we discussed Ethernet addressing and how the 48 bit MAC addresses are used to address in a one to one. When a packet is going to be broadcasted to all the mac addresses in the sub-network the MAC address consisting of all 1’s. Internet Protocol is an extremely integral part of the internet as we know it. In class we discussed the distinct differences between MAC addressing and IP addressing. One of the interesting differences was that to broad cast to all IP addresses in the network all 0’s are used. We discussed how IP addresses are distributed across the continents and reasons for moving away from IPv4 which uses a 32 bit address towards IPv6 which uses 128 bit addresses. We talked about the different classes of IP addresses. We talked about how IP addresses have a host and network IDs and how the least significant bits can be masked to divide a sub-network and group hosts based on physical topology. Near the end of the lecture we went over Address Resolution. This is the process by which you can use the IP address of a host to query for its MAC address. Dr. Gunes ended the lecture talking about IP datagram structure and MTU’s. Over all this lecture was great for understanding the fundamentals about how IPs and MAC addresses are used at the lower layers to route traffic.

Wednesday, January 27, 2010

Lecture 3: Protocols and Layering (Jan 27)

In this lecture, Dr. Gunes went further in depth on the topic of Protocols and Layering. A protocol was defined and described using the human conversation analogy. We compared and contrasted programs and processes. We talked about the server client relationship and how a server is a process running on a machine. Dr. Gunes spoke a lot about the OSI model and its importance in networked systems. We then went into depth of each of the 7 layers in the OSI model and talked about the Responsibilities and Issues corresponding to each layer. As a class we reached a fundamental understanding of how the headers of a packet are used to navigate each of the 7 layers. Particularly interesting to me was how the MAC address was used for low level routing. This was an extremely informative lecture that delivered a firm grasp of layering and protocol fundamentals.

Monday, January 25, 2010

Lecture 2: Introduction (Jan 25)

Today, Dr. Gunes made an introduction to Network Systems in this lecture. He gave the definition of "network". He explained and compared multi-access and point to point networks. Then, he talked about different types of networks(according to their sizes) which are Local Area Network (LAN), Wide Area Network (WAN) and Metropolitan Area Network (MAN). And, he compared these different types of networks according to their reliability and speed. Then, he went over the Internet. He talked about the components of the Internet. He showed the roughly hierarchical architecture of the Internet. He explained the differences between the Tier-1,2 and 3 ISPs. For example, a university network is Tier-3 type. Then, he talked about Internet service providers and Internet design goals and principles. An interesting thing was that there is no mention of security among the Internet design goals. Finally, he explained why we use layering, the advantages of layering and gave some layered system examples. For example, federal express is a good example of layered systems. In conclusion, I highly benefited from this lecture, since it was a good introduction to Network Systems.