UCLA COMSCI 218 - Lecture (29 pages)

Previewing pages 1, 2, 3, 27, 28, 29 of 29 page document View the full content.
View Full Document

Lecture



Previewing pages 1, 2, 3, 27, 28, 29 of actual document.

View the full content.
View Full Document
View Full Document

Lecture

108 views


Pages:
29
School:
University of California, Los Angeles
Course:
Comsci 218 - Advanced Computer Networks
Advanced Computer Networks Documents

Unformatted text preview:

encapd and the kernel networking code on the BS side The kernel level translation table is modified from user level via socket options The same request structure is used for base station and mobile requests struct ip mobreq int type Type of request structin addr imr ifaddr Address of outgoing interface struct in multi imr multi addr Multicast address of HA encaped packets u char imr multicast ttl TTL for outgoing multicasts struct in addr imr ins addr Address to insert for local packets struct in addr imr ins addr new New address to insert for local packets structmobileip ids ids IP ids of recently received packets int handoffCtlrPid Proc id of HC used for notifications char blockedIf 10 Interface for which to block packets int burstThreshold notifying HC Number of packets over 1 interface before int hdrOnly headers Whether to forward full packets or only 29 tion define LIST USED NETWORKS 4 If a USE THIS NETWORK message has been received for a network return that network define LIST USED BASESTATIONS 5 If a USE THIS BASESTATION message has been received for a base station return that base station define LIST DONTUSED NETWORKS 6 If a DONT USE THIS NETWORK message has been received for a network return that network define LIST DONTUSED BASESTATIONS 7 If a DONT USE THIS BASESTATION message has been received for a base station return that base station If the top bit is set it s a reply define REPLY MASK 0x80 So the message format is as follows client opcode num body body1 body2 bodyN 4 bytes 1 byte 1 byte bytes bytes bytes For networks messages a network is the Unix device name efp irp wlp as a null terminated string For basestations messages a body is an in addr with bytes in network order typedef char String 100 Here is a structure that can hold a message Only one of body ifs body addrs is active at one time typedef struct HandoffctlrMsg struct in addr client u char opcode u char numBody String bodyIfs 100 struct in addr bodyAddrs 100 HandoffctlrMsg Base Station



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?