47 Commits

Author SHA1 Message Date
Jian Li
88addd557e Add AuthenticationDataLength field when deserialize Map-Register
Change-Id: I961ec472948df7a6a88547eb2e5e60eb38969320
2016-11-01 13:24:57 +00:00
Jian Li
6322a36cb3 [ONOS-5267] Rewrite LISP bootstrap class to use UDP rather than TCP
- Try to use MessageToMessageDecoder to decode DatagramPacket
- Use Bootstrap instead of ServerBootstrap in a way to use UDP
- Add a dummy LispController interface
- Remove unnecessary handlers from LispChannelInitializer
- Rename LispController to LispControllerBootstrap

Change-Id: I7d930f46ffb87d88b3449ba78e066d8b1c065093
2016-11-01 22:14:31 +09:00
Yoonseon Han
ca814bfbee [ONOS-5480] The implementation of LISP Encapsulated Control Message (ECM).
Changes
1. ECM message is added.
2. Default ECM message is added with builder, reader, and writer.
3. Implented other messages writeTo() methods.

Change-Id: I3ed6f66a7ec7a318f30596d64c35ac15365c8c4c
2016-10-25 16:14:43 +00:00
Jian Li
f8c2d4aa9b Add LISP MAC SHA1 and SHA256 authentication mechanisms
Change-Id: Ib699e7b400c85d0c0c22e312de56b90e1c7dad7b
2016-10-17 18:35:20 +00:00
Jian Li
451cea3762 Add LISP channel pipeline along with server bootstrap
Change-Id: I9ca12bbab5c4dad474bd6d7fa70e96a179bf4e50
2016-10-17 18:27:37 +00:00
Jian Li
84b7582ac6 Code clean up for LISP address and control message test cases
- Statically import builder classes to improve code readability
- Instantiate builder object in one line

Change-Id: I5439c5b2b160e19591234dff598e537f1c64b355
2016-10-17 18:18:24 +00:00
Jian Li
2775935682 [ONOS-5427] Add LISP Info-Request and Info-Reply message type
Change-Id: Ia54919945609a57e45b34af3bbe7b04e4a7efbec
2016-10-17 18:16:17 +00:00
Jian Li
52015761b9 [ONOS-5427] Add LISP NAT LCAF address class along with unit tests
Change-Id: I27e792d32aa2b30bf42ca0687161e9df9352cb6b
2016-10-17 18:01:43 +00:00
Jian Li
cbc57e3b22 Add type code into LispType enum to prevent arbitrary place holder
With the existing implementation, if we want to specify type value
8 to ECM Lisp type, we need to generate several place holders
inside LispType enumerator, otherwise ECM will be assigned a
subsequent number which is 5.
With this commit, we can specify arbitrary number for each Lisp
enum type, therefore, no need to add redundant placeholder for
the purpose of incrementing enum value.

Change-Id: I82a82a3f5bc313dc1f79aaa66a77889408e8c891
2016-10-03 20:49:52 +00:00
Brian O'Connor
bfc02ecd22 Bumping snapshot version to 1.8.0-SNAPSHOT
Change-Id: I4ca57b277d8ac814b8a10b107d995cb1cc4d499d
2016-09-16 17:41:55 +00:00
Brian O'Connor
b19fc86f82 Bumping version back to 1.7.0-SNAPSHOT
Change-Id: I1df9d0f12cd7ec7597499d41cacebdbe75899556
2016-09-16 00:12:21 -07:00
Brian O'Connor
338bc0cf19 Bumping pom versions to 1.7.0-rc2 and fixing some maven issues
Change-Id: I6169420328333d0916452aa92efbfa961d72e9c4
2016-09-16 00:11:45 -07:00
Jian Li
e4f12161a1 Add LispMessageEncoder and LispMessageDecoder with unit tests
Change-Id: If73a41687a9c2400de23bbde6179a63ac7f75d15
2016-09-12 17:45:49 +00:00
Jian Li
b26d350b58 Improve unit test coverage by considering MapRecord and EidRecord
Change-Id: I156d9ce8a4c3becedb188a53b6ce1b8f24a5e41b
2016-08-30 17:35:40 +00:00
Jian Li
42b3e4383c Remove recordCount and locatorCount from LISP control message class
Because recordCount or locatorCount is only used when decoding the
LISP control message received from xTR, therefore, there is no
need to provide any interface to specify this value from obj builder.

Change-Id: I380b275e6f06feb4846b84f62ebf2430ad5a9ec6
2016-08-30 17:35:30 +00:00
Jian Li
d4e6370b21 Add NotNull and Argument check during object build for LISP object
Also correct IP enumeration type into IP4.

Change-Id: Id970ee608c885826cfd2de7b5448b2bc451e079f
2016-08-30 17:31:51 +00:00
Jian Li
e4ba2a4460 Add unit tests for LISP control message serializer and deserializer
Change-Id: Id517db99635ad8e055d6581e5c0f3ac9f45f2869
2016-08-29 16:55:37 +00:00
Jian Li
76ea05796d Add unit tests for LISP address serializer and deserializer
Change-Id: I56538221f3951d18c1feb9343d87cbb46c3ed04d
2016-08-29 16:52:22 +00:00
Jian Li
edc5db1346 [ONOS-4718] Initial implementation of LISP control msg serializer
Change-Id: Ia068e1b158f05dd70839cb1020f15dc66b0142a0
2016-08-29 16:51:31 +00:00
GUNi
ba87170b5e [ONOS-4718] Initial implementation of LISP address serializer
Change-Id: I71e1923f6daf1abdf2bf9798a9e421c81926a45c
2016-08-22 18:26:37 +00:00
Jian Li
a7b394d410 [ONOS-4718] Deserialize addresses from LISP control message class
With this commit, we try to deserilize all LispAfiAddress from
all LISP control message classes.

Change-Id: Iaf911bff90c45a70859285e426dc1649c3e6db32
2016-08-22 18:20:37 +00:00
Jian Li
4eb3e3ace0 Revise comments to align protocol stack
Change-Id: If39b022398b90bcff6c2086da1bab8247f6c03ff
2016-08-22 18:14:46 +00:00
Jian Li
115d8602af [ONOS-4718] Initial implementation of LISP address deserializer
Change-Id: I522e16e7fd197380cf4c99038561fe9aa8f93730
2016-08-22 18:14:15 +00:00
Yuta HIGUCHI
0de4ba9401 Remove duplicate version specifications
Change-Id: I0fe6027e66815ab2e7db5e090dd5aea39b3c36e1
2016-08-18 15:59:50 +00:00
Jian Li
47671905bb [ONOS-4718] Initial implementation of LISP control msg deserializer
- Add LispLocatorRecord interface along with
  DefaultLispLocatorRecord class and unit test class
- Add deserialization logic for four LISP control message classes
  and two auxiliary classes
- Add ByteOperator utility to ease the bit access and manipulation
  for byte data type

Change-Id: I68edf6877a0ebb52260296fc556e0690b795a845
2016-08-12 22:35:34 +00:00
Jian Li
26069e2d35 [ONOS-4718] Add skeleton code for de-serializing LISP ctrl messages
Change-Id: I52f7905538e5832e5282812df869b8158ce23334
2016-08-12 22:15:52 +00:00
Jian Li
e9af3b4810 Add unit test for LISP address to check obj equality & construction
This commit adds various unit tests of LISP addresses in a way to
check object equality and construction.
This commit also makes minor changes to existing LISP address
classes to allow the test cases to pass all unit tests.

Change-Id: Ice9f9634bdd243baaf1eed1539ea8d5808dda01d
2016-08-08 23:40:23 +00:00
Jian Li
8fc2d2f354 Fix: Javadoc fix for LISP related classes
Change-Id: I41365828f05b0096d0d2998cd1f19a07eadd76ec
2016-08-08 23:35:16 +00:00
Jian Li
18f3bce539 Add unit test for LISP msg to check object equality and construction
Change-Id: I5365f7654df10f4cf157c79f098c7ce26c29a300
2016-08-08 23:19:19 +00:00
Jian Li
20850d3947 [ONOS-4718] Add toString, equals, hashCode for LISP control message
Change-Id: I722ab27f50074af26ea92503aac237dec0c64bcf
2016-08-08 22:46:36 +00:00
Jian Li
525fded431 Move build method to each control msg, realize createBuilder method
Change-Id: Iff9e60cc5f929e031b0d927e0bdc08fed826e0db
2016-08-08 21:31:31 +00:00
Jian Li
79b1bb2f4d Remove solicit map request message class and interface
This control message is a special type of map request message,
therefore, it can be merged with LispMapRequest class.

Change-Id: I9549a18277411947cf4d485f62f92d8259575c94
2016-08-08 21:23:12 +00:00
Jian Li
631e62a646 [ONOS-4718] Implement DefaultLispMapRecord class with interface mod
Change-Id: I1544fd52adc4081614b5471f8ab263efbd6c840b
2016-08-08 21:15:14 +00:00
Jian Li
f59c0adb2c [ONOS-4718] Implement LISP control message classes
Change-Id: I26ab3b8da383d8967c08e14b4f11f03e0663de73
2016-08-08 21:14:53 +00:00
Jian Li
10a09066cd [ONOS-4718] Add LispMapRecord, rename EidRecord to LispEidRecord
Change-Id: Ib43ad5201787a7d9a3b18c0cd8949822d2e31e29
2016-08-08 17:57:22 +00:00
Yuta HIGUCHI
4b0221198b Fix LISP related javadoc
Change-Id: Ia83fdeaf0cbdd8914c6a105f30c4cfa1b174af3a
2016-08-03 11:04:34 -07:00
Jian Li
719b3bf9bf [ONOS-4718] Initial implementation of LISP control message objects
Change-Id: I22cdb1a4b5d7bb7f0681c9fa9a45223b60bdb282
2016-08-03 16:57:18 +00:00
Jian Li
451175eb3f [ONOS-4718] Initially add five LISP message interfaces and classes
Change-Id: I9d21595823680644ec107c85b0b38acdd1534568
2016-08-03 16:56:17 +00:00
Jian Li
ac32718820 BuildFix: add missing netty-buffer lib in BUCK build file
Change-Id: Ibc47a296f7ecf9c68b78a6484acadb82d0d20b2f
2016-07-21 09:31:02 +09:00
Jian Li
cb1fca2a86 [ONOS-4718] Initial commit for LISP protocol message package
Change-Id: Ic4237723692327ee2d644f563413bdd7148d694a
2016-07-20 22:51:28 +00:00
Jian Li
d56f97ea73 [ONOS-4718] Add LispDistinguishedNameAddress, modify hashCode logic
Change-Id: Ic9b840f6dc0102bed35d3c88b76b6e8b36a051f5
2016-07-20 22:48:31 +00:00
Jian Li
c7e20a5f32 [ONOS-4718] Add more LCAF type address with augmented LCAF class
In this commit, we added List Type, Instance ID Type, Source/Dest
Key Type and Application Data Type LCAF address classes.

Change-Id: I39881714069a32c52474ee82f8a9acdfcdc862b7
2016-07-20 20:30:41 +00:00
Jian Li
0959600951 [ONOS-4718] Add LISP Canonical Address Format Enum and Address class
Change-Id: Ife7f0b98207424b1ce1df390d73b72eb7b5890fe
2016-07-20 19:33:30 +00:00
Jian Li
6b77dc0825 [ONOS-4718] Add several data types used for addressing LISP locator
Change-Id: If6263957b2ce1d9a6a07bbc12f4fb9c9e2fa7616
2016-07-20 19:25:47 +00:00
Jian Li
35734392cc Initial commit for LISP SBI Encoder and Decoder package
This commit is for check-in initial skeleton code of LISP message
encoder and decoder.

Change-Id: I007240036852a78ac273e9ec4a84a07ab22ba675
2016-07-20 19:23:22 +00:00
Yuta HIGUCHI
da27f52941 Attempt to fix onos-master job issue.
- Temporary workaraound for onos-master job failing with:
   javadoc: error - No public or protected classes found to document.

Change-Id: Iea3f419584130176a85abb173eba91f842c32068
2016-07-07 22:06:45 -07:00
Jian Li
b6957627a1 [ONOS-4718] Initial commit for LISP SBI protocols
Change-Id: I5ae2f19f9ed6e4df579cf2246cd0ab0d31fd3396
2016-07-06 13:41:12 +00:00