CS492b Project #3-2 KIP router KAIST Dept. of CS NC Lab.

Slides:



Advertisements
Similar presentations
Routing Routing in an internetwork is the process of directing the transmission of data across two connected networks. Bridges seem to do this function.
Advertisements

Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
 WAN uses Serial ports  Ethernet Ports:  Straight through  Cross over.
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
IPv6 – IPv4 Network Address, Port & Protocol Translation & Multithreaded DNS Gateway Navpreet Singh, Abhinav Singh, Udit Gupta, Vinay Bajpai, Toshu Malhotra.
Lab 4: Simple Router CS144 Lab 4 Screencast May 2, 2008 Ben Nham Based on slides by Clay Collier and Martin Casado.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CLIENT / SERVER ARCHITECTURE AYRİS UYGUR & NİLÜFER ÇANGA.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
IP Addressing: introduction
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
The internet layer Skills: None IT concepts: layered protocols, the internet layer, IP protocol, router, dumb (“end-to- end,” “neutral”) networks This.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
FIREWALL TECHNOLOGIES Tahani al jehani. Firewall benefits  A firewall functions as a choke point – all traffic in and out must pass through this single.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
PA3: Router Junxian (Jim) Huang EECS 489 W11 /
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
Examining TCP/IP.
TCP/IP Networking Review Covered Subjects:  Packet Switched Network Structure  Issues of PSNs  Ports & IP Numbers  Delivery Services  Domain Name.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
CS 6401 Internetworking Outline Internet Architecture Best Effort Service Model.
Internet Ethernet Token Ring Video High Speed Router Host A: Client browser: REQUEST:http//mango.ee.nogradesu.edu/c461.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Marwan Al-Namari Week 5. Responsible for delivering packets between endpoints over multiple links Physical Link Network Transport Application.
INDEX oWoWhat is TCP/IP protocol suite ? oDoDifferent layers. oEoEncapsulation. oPoProtocol Interface.
Module 1: Configuring Routing by Using Routing and Remote Access.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
1 IP Datagrams And Datagram Forwarding. 2 Motivation For IP Packets Because it can connect heterogeneous networks, a router cannot transmit a copy of.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
1 Requirements for Internet Routers (Gateways) and Hosts Relates to Lab 3. (Supplement) Covers the compliance requirements of Internet routers and hosts.
1 CSE 5346 Spring Network Simulator Project.
Ethernet switch Hosts Can talk using Ethernet addresses only.
Midterm Review Chapter 1: Introduction Chapter 2: Application Layer
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
Session 25: Netlink Sockets 문준혁. Index What are netlink sockets? Opening a netlink socket –Family Netlink messages –nlmsg_type –nlmsg_flags Lab.
Configuration for routing example
Introduction to Networks
Internet Socket Programing
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
A quick intro to networking
Building an Internet Router
Forwarding and Routing IP Packets
Chapter 6 – Routing.
Introduction to Networking
Network Architecture Introductory material
Encapsulation/Decapsulation
Review of Important Networking Concepts
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Advanced Computer Networks
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
IS 4506 Server Configuration (HTTP Server)
Wide Area Networks and Internet CT1403
Network Models CCNA Instructor Training Course October 12-17, 2009
CSE 313 Data Communication
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Network Address Translation (NAT)
Figure 6.11 Configuration for Example 4
16EC Computer networks unit II Mr.M.Jagadesh
Computer Networks Protocols
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
IS 4506 Configuring the FTP Service
Presentation transcript:

CS492b Project #3-2 KIP router KAIST Dept. of CS NC Lab

Overall Architecture Client STCP KIP Server STCP KIP Actual Client Router Actual Server UDPTunnelKIPSTCPData

Details Uses simulated IP address  Use the IP address in the architecture Router has the role of Server FTP client/server is actually clients of The router FTP server/client connect to the router  Execution order is important (router->server->client) To get rid of L2 layer, tunnel header has next hop address KIP has destination IP address(not changed)

Details- Tunnel Header KTCP/IP has not L2 Layer  For Hop-by-hop datagram forwarding, Tunnel Header is needed Tunnel Header is Like L2 Header  IP address in Tunnel header is changed on each hop

Modifications When sending a packet, Based on dst_ip, Do Rtable_search(next_hop, dst_ip) Then make a tunnel header with next_hop address

Router(1/2) Router has 2 Sockets  one from FTP Client  one from FTP Server it should be executed first Read a file for static routing table (txt. file)  Hard-coded  Has host’s IP address Generates a file including its IP address (txt. file)  has router’s IP address Client/Server first reads the file for the connection Make a log file  Record IP header & time received for each packet

Router(2/2) Basically, It’s the same as KIP When receiving packets, first look at the tunnel header  If destination address is Router’s address, forwards the packet Look up routing table  If not, just drop it

Routing Table(1/2) Uses RouteEntry  Struct RouteEntry{ ip; / ip address mask; /network mask router; /next hop if not directly connected devindex; / network interface index }

Tunnel Header typedef struct iptunnelheader { IPAddr dst; IPAddr src; short size; / size of data/ char* data; /actual payload/ } IPTunnelHeader

Schedule & Deliverables Due Date : 9 th Nov.(midnight) Commented your full source code ( )  Including your Makefile Report (hard copy & thru )  Describe about your design in detail About functions you made for this project  Describe what works and what does not  Describe any peculiar strategies that you have used Demonstration (will be scheduled)

Tip Study UDP socket functions  If you want to connect two sockets in TCP way, Use connect() at both ends Or Use address structure Do NOT confuse virtual IP address with real IP address  Virtual IP address is the one that KIP can understand